diff --git a/proto/zetachain/zetacore/crosschain/legacy_msgs.proto b/proto/zetachain/zetacore/crosschain/legacy_msgs.proto index 0d81d9329c..452ce0d94d 100644 --- a/proto/zetachain/zetacore/crosschain/legacy_msgs.proto +++ b/proto/zetachain/zetacore/crosschain/legacy_msgs.proto @@ -90,3 +90,13 @@ message MsgVoteOnObservedInboundTx { // event index of the sent asset in the observed tx uint64 event_index = 15; } + +// legacy MsgVoteGasPrice +// defined to keep codec compatibility +message MsgGasPriceVoter { + string creator = 1; + int64 chain_id = 2; + uint64 price = 3; + uint64 block_number = 4; + string supply = 5; +} diff --git a/typescript/zetachain/zetacore/crosschain/legacy_msgs_pb.d.ts b/typescript/zetachain/zetacore/crosschain/legacy_msgs_pb.d.ts index 9cd661564a..fe99443d97 100644 --- a/typescript/zetachain/zetacore/crosschain/legacy_msgs_pb.d.ts +++ b/typescript/zetachain/zetacore/crosschain/legacy_msgs_pb.d.ts @@ -340,3 +340,50 @@ export declare class MsgVoteOnObservedInboundTx extends Message | undefined, b: MsgVoteOnObservedInboundTx | PlainMessage | undefined): boolean; } +/** + * legacy MsgVoteGasPrice + * defined to keep codec compatibility + * + * @generated from message zetachain.zetacore.crosschain.MsgGasPriceVoter + */ +export declare class MsgGasPriceVoter extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: uint64 price = 3; + */ + price: bigint; + + /** + * @generated from field: uint64 block_number = 4; + */ + blockNumber: bigint; + + /** + * @generated from field: string supply = 5; + */ + supply: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgGasPriceVoter"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgGasPriceVoter; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgGasPriceVoter; + + static fromJsonString(jsonString: string, options?: Partial): MsgGasPriceVoter; + + static equals(a: MsgGasPriceVoter | PlainMessage | undefined, b: MsgGasPriceVoter | PlainMessage | undefined): boolean; +} + diff --git a/x/crosschain/types/legacy_msgs.go b/x/crosschain/types/legacy_msgs.go index ee63affc68..8b29ae9507 100644 --- a/x/crosschain/types/legacy_msgs.go +++ b/x/crosschain/types/legacy_msgs.go @@ -150,3 +150,32 @@ func (msg *MsgRemoveFromOutTxTracker) GetSignBytes() []byte { func (msg *MsgRemoveFromOutTxTracker) ValidateBasic() error { return nil } + +// MsgGasPriceVoter + +var _ sdk.Msg = &MsgGasPriceVoter{} + +func (msg *MsgGasPriceVoter) Route() string { + return RouterKey +} + +func (msg *MsgGasPriceVoter) Type() string { + return "GasPriceVoter" +} + +func (msg *MsgGasPriceVoter) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + return []sdk.AccAddress{creator} +} + +func (msg *MsgGasPriceVoter) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgGasPriceVoter) ValidateBasic() error { + return nil +} diff --git a/x/crosschain/types/legacy_msgs.pb.go b/x/crosschain/types/legacy_msgs.pb.go index 4aa4ef0652..e5a6e67355 100644 --- a/x/crosschain/types/legacy_msgs.pb.go +++ b/x/crosschain/types/legacy_msgs.pb.go @@ -543,12 +543,91 @@ func (m *MsgVoteOnObservedInboundTx) GetEventIndex() uint64 { return 0 } +// legacy MsgVoteGasPrice +// defined to keep codec compatibility +type MsgGasPriceVoter struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ChainId int64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` + BlockNumber uint64 `protobuf:"varint,4,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + Supply string `protobuf:"bytes,5,opt,name=supply,proto3" json:"supply,omitempty"` +} + +func (m *MsgGasPriceVoter) Reset() { *m = MsgGasPriceVoter{} } +func (m *MsgGasPriceVoter) String() string { return proto.CompactTextString(m) } +func (*MsgGasPriceVoter) ProtoMessage() {} +func (*MsgGasPriceVoter) Descriptor() ([]byte, []int) { + return fileDescriptor_246a7cc819884e07, []int{5} +} +func (m *MsgGasPriceVoter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGasPriceVoter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGasPriceVoter.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgGasPriceVoter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGasPriceVoter.Merge(m, src) +} +func (m *MsgGasPriceVoter) XXX_Size() int { + return m.Size() +} +func (m *MsgGasPriceVoter) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGasPriceVoter.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgGasPriceVoter proto.InternalMessageInfo + +func (m *MsgGasPriceVoter) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgGasPriceVoter) GetChainId() int64 { + if m != nil { + return m.ChainId + } + return 0 +} + +func (m *MsgGasPriceVoter) GetPrice() uint64 { + if m != nil { + return m.Price + } + return 0 +} + +func (m *MsgGasPriceVoter) GetBlockNumber() uint64 { + if m != nil { + return m.BlockNumber + } + return 0 +} + +func (m *MsgGasPriceVoter) GetSupply() string { + if m != nil { + return m.Supply + } + return "" +} + func init() { proto.RegisterType((*MsgAddToOutTxTracker)(nil), "zetachain.zetacore.crosschain.MsgAddToOutTxTracker") proto.RegisterType((*MsgAddToInTxTracker)(nil), "zetachain.zetacore.crosschain.MsgAddToInTxTracker") proto.RegisterType((*MsgRemoveFromOutTxTracker)(nil), "zetachain.zetacore.crosschain.MsgRemoveFromOutTxTracker") proto.RegisterType((*MsgVoteOnObservedOutboundTx)(nil), "zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTx") proto.RegisterType((*MsgVoteOnObservedInboundTx)(nil), "zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTx") + proto.RegisterType((*MsgGasPriceVoter)(nil), "zetachain.zetacore.crosschain.MsgGasPriceVoter") } func init() { @@ -556,66 +635,69 @@ func init() { } var fileDescriptor_246a7cc819884e07 = []byte{ - // 932 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0x4f, 0x6f, 0xe3, 0x44, - 0x14, 0xaf, 0xfb, 0x27, 0x8d, 0x5f, 0x37, 0xa9, 0xf0, 0x16, 0xd6, 0x4d, 0xd9, 0xb4, 0x8a, 0xd8, - 0x52, 0x21, 0xea, 0x48, 0x45, 0x70, 0x58, 0x71, 0x21, 0x05, 0xba, 0x41, 0x94, 0xac, 0x4c, 0x96, - 0x03, 0x17, 0x6b, 0x62, 0x4f, 0x9c, 0x51, 0xe2, 0x99, 0xc8, 0x33, 0x89, 0xdc, 0xbd, 0x73, 0xe7, - 0xc6, 0x89, 0xef, 0xb3, 0xc7, 0x3d, 0x22, 0x0e, 0x15, 0x6a, 0xbf, 0x00, 0xe2, 0x13, 0x20, 0xbf, - 0x19, 0xb7, 0x49, 0xd9, 0xb4, 0x50, 0x84, 0xb8, 0x78, 0xe6, 0x3d, 0xbf, 0xdf, 0x9b, 0xf7, 0xde, - 0xbc, 0xdf, 0x1b, 0x68, 0xbe, 0xa4, 0x8a, 0x84, 0x03, 0xc2, 0xb8, 0xde, 0x89, 0x94, 0x36, 0xc3, - 0x54, 0x48, 0xa9, 0x75, 0x23, 0x1a, 0x93, 0xf0, 0x2c, 0x48, 0x64, 0x2c, 0xbd, 0x71, 0x2a, 0x94, - 0x70, 0x1e, 0x5f, 0x01, 0xbc, 0x02, 0xe0, 0x5d, 0x03, 0x6a, 0x5b, 0xb1, 0x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0x17, 0x75, 0xeb, 0xf5, 0x45, 0xdd, 0xfa, 0xed, 0xa2, - 0x6e, 0xfd, 0x78, 0x59, 0x5f, 0x7a, 0x7d, 0x59, 0x5f, 0xfa, 0xe5, 0xb2, 0xbe, 0xf4, 0xfd, 0xe1, - 0x4c, 0x7d, 0xf3, 0xf0, 0x0e, 0xf5, 0x13, 0xcf, 0x45, 0x44, 0x9b, 0xd9, 0xec, 0xa3, 0x8f, 0xa5, - 0xee, 0x95, 0xf0, 0xb1, 0xff, 0xe8, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x33, 0x35, 0x71, 0x81, - 0x40, 0x09, 0x00, 0x00, + // 979 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0xaf, 0xdb, 0x34, 0x8d, 0x5f, 0x9a, 0x14, 0xbc, 0x85, 0x75, 0x53, 0x36, 0x2d, 0x11, 0x5b, + 0x2a, 0x44, 0x13, 0xa9, 0x08, 0x0e, 0x2b, 0x2e, 0xa4, 0x40, 0x37, 0x88, 0x6e, 0x56, 0x26, 0xcb, + 0x81, 0x8b, 0xe5, 0xd8, 0x13, 0x67, 0x94, 0x78, 0x26, 0xf2, 0x8c, 0x23, 0x67, 0xef, 0xdc, 0xb9, + 0xc1, 0x85, 0xef, 0xb3, 0xc7, 0x3d, 0x22, 0x0e, 0x15, 0x6a, 0xbf, 0x00, 0xe2, 0x13, 0x20, 0xbf, + 0x19, 0xb7, 0x49, 0xe9, 0x1f, 0x28, 0x42, 0x5c, 0xe2, 0x79, 0xcf, 0xef, 0xf7, 0xe6, 0xfd, 0xfb, + 0xbd, 0x18, 0x5a, 0x2f, 0x89, 0xf4, 0xfc, 0xa1, 0x47, 0x99, 0x3a, 0xf1, 0x98, 0xb4, 0xfc, 0x98, + 0x0b, 0xa1, 0x74, 0x63, 0x12, 0x7a,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b, 0x4d, 0x00, 0x40, 0xd5, 0x51, 0xa6, 0xb1, 0xf6, + 0x60, 0x43, 0x19, 0x48, 0x21, 0x5c, 0x35, 0xbb, 0x25, 0x2c, 0x48, 0x05, 0xd5, 0x3d, 0x21, 0x9e, + 0xe1, 0x6a, 0x5b, 0x60, 0xb9, 0x79, 0x2f, 0x96, 0x37, 0x7e, 0x2c, 0x40, 0xed, 0x2f, 0x3c, 0xe8, + 0xb0, 0xbb, 0x69, 0xf0, 0x36, 0x14, 0x05, 0x61, 0x01, 0x89, 0x35, 0x07, 0xb4, 0x94, 0x05, 0xaf, + 0x4e, 0xee, 0x05, 0x21, 0x57, 0x30, 0xc3, 0x8a, 0x52, 0x1f, 0x69, 0x5a, 0xd6, 0xa0, 0xa4, 0xeb, + 0x1c, 0xeb, 0xc5, 0x7c, 0x21, 0x5b, 0x8f, 0xa1, 0x9a, 0x9f, 0x75, 0x91, 0x56, 0x95, 0x8b, 0x5c, + 0xab, 0xea, 0x74, 0x0c, 0x45, 0x2f, 0xe2, 0x09, 0x93, 0x6a, 0xc3, 0xb4, 0x5b, 0xff, 0xb0, 0xef, + 0x8e, 0x86, 0x67, 0x59, 0x46, 0x44, 0x08, 0x2f, 0x54, 0x85, 0x36, 0x9d, 0x5c, 0xb4, 0xde, 0x01, + 0xc0, 0x3f, 0x2c, 0x45, 0x63, 0x53, 0xc5, 0x49, 0x99, 0x66, 0xef, 0x1e, 0x6c, 0x50, 0xe6, 0xea, + 0x4d, 0xa7, 0x28, 0xab, 0x78, 0x57, 0xa1, 0x6c, 0x9e, 0xa7, 0xdb, 0x60, 0x5e, 0xce, 0x76, 0x19, + 0x2d, 0x4a, 0x61, 0x3e, 0xc5, 0x0b, 0x5d, 0x5c, 0xbf, 0xdf, 0xae, 0xde, 0x06, 0x53, 0xa6, 0x2e, + 0x8f, 0x69, 0x48, 0x99, 0x5d, 0x51, 0x51, 0xca, 0xb4, 0x8b, 0x72, 0xb6, 0x00, 0x3d, 0x21, 0x88, + 0xb4, 0xab, 0xf8, 0x42, 0x09, 0xd9, 0x14, 0x92, 0x29, 0x61, 0x52, 0xaf, 0xe1, 0x0d, 0x8c, 0x0a, + 0x50, 0xa5, 0x36, 0xf1, 0x4f, 0x06, 0xbc, 0x71, 0x22, 0xc2, 0x9c, 0xb9, 0xd9, 0x84, 0xdc, 0x7f, + 0x03, 0xab, 0x95, 0xa2, 0x37, 0x30, 0x0a, 0xd6, 0xbb, 0xb0, 0xae, 0x2a, 0xc7, 0x92, 0xa8, 0xaf, + 0x87, 0xa0, 0xe0, 0x94, 0x51, 0xf7, 0x0c, 0x55, 0x38, 0x63, 0xc9, 0x64, 0x32, 0x9e, 0x29, 0x62, + 0x3b, 0x5a, 0x6a, 0x1f, 0xbf, 0x3a, 0xab, 0x1b, 0xaf, 0xcf, 0xea, 0xc6, 0x6f, 0x67, 0x75, 0xe3, + 0x87, 0xf3, 0xfa, 0xd2, 0xeb, 0xf3, 0xfa, 0xd2, 0x2f, 0xe7, 0xf5, 0xa5, 0xef, 0x0e, 0xe6, 0x5a, + 0x9f, 0x55, 0xee, 0x40, 0x7d, 0x7d, 0x30, 0x1e, 0x90, 0x56, 0x3a, 0xff, 0x3d, 0x82, 0x53, 0xd0, + 0x2f, 0xe2, 0x77, 0xc8, 0x47, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0x59, 0xa5, 0x4e, 0x23, 0xdb, + 0x09, 0x00, 0x00, } func (m *MsgAddToOutTxTracker) Marshal() (dAtA []byte, err error) { @@ -1011,6 +1093,58 @@ func (m *MsgVoteOnObservedInboundTx) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } +func (m *MsgGasPriceVoter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGasPriceVoter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGasPriceVoter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Supply) > 0 { + i -= len(m.Supply) + copy(dAtA[i:], m.Supply) + i = encodeVarintLegacyMsgs(dAtA, i, uint64(len(m.Supply))) + i-- + dAtA[i] = 0x2a + } + if m.BlockNumber != 0 { + i = encodeVarintLegacyMsgs(dAtA, i, uint64(m.BlockNumber)) + i-- + dAtA[i] = 0x20 + } + if m.Price != 0 { + i = encodeVarintLegacyMsgs(dAtA, i, uint64(m.Price)) + i-- + dAtA[i] = 0x18 + } + if m.ChainId != 0 { + i = encodeVarintLegacyMsgs(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintLegacyMsgs(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintLegacyMsgs(dAtA []byte, offset int, v uint64) int { offset -= sovLegacyMsgs(v) base := offset @@ -1212,6 +1346,32 @@ func (m *MsgVoteOnObservedInboundTx) Size() (n int) { return n } +func (m *MsgGasPriceVoter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovLegacyMsgs(uint64(l)) + } + if m.ChainId != 0 { + n += 1 + sovLegacyMsgs(uint64(m.ChainId)) + } + if m.Price != 0 { + n += 1 + sovLegacyMsgs(uint64(m.Price)) + } + if m.BlockNumber != 0 { + n += 1 + sovLegacyMsgs(uint64(m.BlockNumber)) + } + l = len(m.Supply) + if l > 0 { + n += 1 + l + sovLegacyMsgs(uint64(l)) + } + return n +} + func sovLegacyMsgs(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -2585,6 +2745,177 @@ func (m *MsgVoteOnObservedInboundTx) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgGasPriceVoter) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLegacyMsgs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgGasPriceVoter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgGasPriceVoter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLegacyMsgs + } + 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 ErrInvalidLengthLegacyMsgs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLegacyMsgs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLegacyMsgs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + m.Price = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLegacyMsgs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Price |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) + } + m.BlockNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLegacyMsgs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLegacyMsgs + } + 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 ErrInvalidLengthLegacyMsgs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLegacyMsgs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Supply = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLegacyMsgs(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLegacyMsgs + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipLegacyMsgs(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0