From 48a60d4e5a93f0d8b88784b0e60c87adfde0359a Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Fri, 26 Jan 2024 19:43:13 -0700 Subject: [PATCH] [1789]: Looks like the metadata proto stuff was missing a few updates. --- docs/proto-docs.md | 1 - x/metadata/types/events.pb.go | 126 ++++++++++------------------------ 2 files changed, 37 insertions(+), 90 deletions(-) diff --git a/docs/proto-docs.md b/docs/proto-docs.md index 746f92899d..ef18e8316c 100644 --- a/docs/proto-docs.md +++ b/docs/proto-docs.md @@ -6155,7 +6155,6 @@ EventSetNetAssetValue event emitted when Net Asset Value for a scope is update o | ----- | ---- | ----- | ----------- | | `scope_id` | [string](#string) | | | | `price` | [string](#string) | | | -| `volume` | [string](#string) | | | | `source` | [string](#string) | | | diff --git a/x/metadata/types/events.pb.go b/x/metadata/types/events.pb.go index 4dbd64a310..1026b2e400 100644 --- a/x/metadata/types/events.pb.go +++ b/x/metadata/types/events.pb.go @@ -1167,8 +1167,7 @@ func (m *EventOSLocatorDeleted) GetOwner() string { type EventSetNetAssetValue struct { ScopeId string `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty"` Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` - Volume string `protobuf:"bytes,3,opt,name=volume,proto3" json:"volume,omitempty"` - Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` + Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` } func (m *EventSetNetAssetValue) Reset() { *m = EventSetNetAssetValue{} } @@ -1218,13 +1217,6 @@ func (m *EventSetNetAssetValue) GetPrice() string { return "" } -func (m *EventSetNetAssetValue) GetVolume() string { - if m != nil { - return m.Volume - } - return "" -} - func (m *EventSetNetAssetValue) GetSource() string { if m != nil { return m.Source @@ -1263,43 +1255,42 @@ func init() { } var fileDescriptor_476cf6cf9459cf25 = []byte{ - // 565 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x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e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x9b, 0x8b, 0xe5, - 0x65, 0x2d, 0x09, 0x00, 0x00, + // 556 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0x8d, 0x13, 0x7d, 0x6d, 0x73, 0xfb, 0x2d, 0xc0, 0x40, 0x70, 0x40, 0xb8, 0x3f, 0x6c, 0xba, + 0xa9, 0xad, 0x02, 0x0b, 0xc4, 0x02, 0xa9, 0x04, 0x16, 0x48, 0x08, 0x50, 0x52, 0x40, 0xea, 0x86, + 0x4e, 0x67, 0x2e, 0x65, 0x44, 0xe2, 0xb1, 0x66, 0x26, 0x69, 0x79, 0x0b, 0x5e, 0x80, 0xf7, 0x61, + 0xd9, 0x25, 0x4b, 0x94, 0xbc, 0x08, 0xf2, 0x78, 0x86, 0xb8, 0x8d, 0x8b, 0x81, 0x50, 0x60, 0x79, + 0x66, 0xee, 0x39, 0xe7, 0xde, 0xe3, 0x9b, 0x68, 0xe0, 0x66, 0x2a, 0xc5, 0x08, 0x13, 0x92, 0x50, + 0x8c, 0x07, 0xa8, 0x09, 0x23, 0x9a, 0xc4, 0xa3, 0xad, 0x18, 0x47, 0x98, 0x68, 0x15, 0xa5, 0x52, + 0x68, 0xe1, 0xb7, 0xa6, 0x45, 0x91, 0x2b, 0x8a, 0x46, 0x5b, 0xeb, 0x7b, 0x70, 0xe1, 0x51, 0x56, + 0xb7, 0x73, 0xd4, 0x11, 0x83, 0xb4, 0x8f, 0x1a, 0x99, 0xdf, 0x82, 0x85, 0x81, 0x60, 0xc3, 0x3e, + 0x06, 0xde, 0xaa, 0xb7, 0xd1, 0xec, 0x5a, 0xe4, 0x5f, 0x83, 0x25, 0x4c, 0x58, 0x2a, 0x78, 0xa2, + 0x83, 0xba, 0xb9, 0xf9, 0x86, 0xfd, 0x00, 0x16, 0x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0x7e, 0x9f, 0xa2, 0xda, 0x5f, 0x30, 0xcf, 0x9d, 0xdb, 0x5f, 0x03, + 0x00, 0x00, 0xff, 0xff, 0xaa, 0xcf, 0x7c, 0x06, 0x15, 0x09, 0x00, 0x00, } func (m *EventTxCompleted) Marshal() (dAtA []byte, err error) { @@ -2080,13 +2071,6 @@ func (m *EventSetNetAssetValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Source) i = encodeVarintEvents(dAtA, i, uint64(len(m.Source))) i-- - dAtA[i] = 0x22 - } - if len(m.Volume) > 0 { - i -= len(m.Volume) - copy(dAtA[i:], m.Volume) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Volume))) - i-- dAtA[i] = 0x1a } if len(m.Price) > 0 { @@ -2471,10 +2455,6 @@ func (m *EventSetNetAssetValue) Size() (n int) { if l > 0 { n += 1 + l + sovEvents(uint64(l)) } - l = len(m.Volume) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } l = len(m.Source) if l > 0 { n += 1 + l + sovEvents(uint64(l)) @@ -4802,38 +4782,6 @@ func (m *EventSetNetAssetValue) Unmarshal(dAtA []byte) error { m.Price = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volume = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) }