From 4558222e5c7ab8dd414c6c653d2af1eabdb16aca Mon Sep 17 00:00:00 2001 From: zakir <80246097+zakir-code@users.noreply.github.com> Date: Wed, 25 Sep 2024 07:48:05 +0800 Subject: [PATCH] revert: recover transaction msg proto definition --- app/app_test.go | 4 +- ...posal.proto => evm_proposal_testnet.proto} | 2 +- .../gov/v1/{legacy.proto => gov_legacy.proto} | 2 +- proto/fx/gravity/v1/gravity_legacy.proto | 110 + .../applications/transfer/v1/ibc_legacy.proto | 45 + proto/fx/staking/v1/staking_legacy.proto | 23 + scripts/protoc-swagger-gen.sh | 2 +- .../legacy/evm_proposal.go | 0 .../legacy/evm_proposal_testnet.pb.go | 438 +- .../legacy/gov_legacy.pb.go | 260 +- types/legacy/gravity_legacy.pb.go | 3828 +++++++++++++++++ types/legacy/ibc_legacy.pb.go | 736 ++++ types/legacy/staking_legacy.pb.go | 774 ++++ x/evm/types/codec.go | 2 +- x/gov/legacy/legacy_msg.go | 33 - x/gov/types/codec.go | 2 +- 16 files changed, 5872 insertions(+), 389 deletions(-) rename proto/ethermint/evm/v1/{testnet_proposal.proto => evm_proposal_testnet.proto} (98%) rename proto/fx/gov/v1/{legacy.proto => gov_legacy.proto} (97%) create mode 100644 proto/fx/gravity/v1/gravity_legacy.proto create mode 100644 proto/fx/ibc/applications/transfer/v1/ibc_legacy.proto create mode 100644 proto/fx/staking/v1/staking_legacy.proto rename x/evm/legacy/init_evm_proposal.go => types/legacy/evm_proposal.go (100%) rename x/evm/legacy/testnet_proposal.pb.go => types/legacy/evm_proposal_testnet.pb.go (75%) rename x/gov/legacy/legacy.pb.go => types/legacy/gov_legacy.pb.go (74%) create mode 100644 types/legacy/gravity_legacy.pb.go create mode 100644 types/legacy/ibc_legacy.pb.go create mode 100644 types/legacy/staking_legacy.pb.go delete mode 100644 x/gov/legacy/legacy_msg.go diff --git a/app/app_test.go b/app/app_test.go index f3edd7c1a..030b03a80 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/functionx/fx-core/v8/testutil/helpers" + "github.com/functionx/fx-core/v8/types/legacy" crosschaintypes "github.com/functionx/fx-core/v8/x/crosschain/types" - govlegacy "github.com/functionx/fx-core/v8/x/gov/legacy" ) func Test_MsgServiceRouter(t *testing.T) { @@ -18,7 +18,7 @@ func Test_MsgServiceRouter(t *testing.T) { deprecated := map[string]struct{}{ sdk.MsgTypeURL(&crosschaintypes.MsgSetOrchestratorAddress{}): {}, sdk.MsgTypeURL(&crosschaintypes.MsgAddOracleDeposit{}): {}, - sdk.MsgTypeURL(&govlegacy.MsgUpdateParams{}): {}, + sdk.MsgTypeURL(&legacy.MsgUpdateParams{}): {}, } for _, msg := range myApp.InterfaceRegistry().ListImplementations(sdk.MsgInterfaceProtoName) { if _, ok := deprecated[msg]; ok { diff --git a/proto/ethermint/evm/v1/testnet_proposal.proto b/proto/ethermint/evm/v1/evm_proposal_testnet.proto similarity index 98% rename from proto/ethermint/evm/v1/testnet_proposal.proto rename to proto/ethermint/evm/v1/evm_proposal_testnet.proto index 4f029d4b4..5e465f0d3 100644 --- a/proto/ethermint/evm/v1/testnet_proposal.proto +++ b/proto/ethermint/evm/v1/evm_proposal_testnet.proto @@ -3,7 +3,7 @@ package ethermint.evm.v1; import "gogoproto/gogo.proto"; -option go_package = "github.com/functionx/fx-core/x/evm/legacy"; +option go_package = "github.com/functionx/fx-core/types/legacy"; // Deprecated: Do not use. message InitEvmParamsProposal { diff --git a/proto/fx/gov/v1/legacy.proto b/proto/fx/gov/v1/gov_legacy.proto similarity index 97% rename from proto/fx/gov/v1/legacy.proto rename to proto/fx/gov/v1/gov_legacy.proto index efc3845c9..dbec3888b 100644 --- a/proto/fx/gov/v1/legacy.proto +++ b/proto/fx/gov/v1/gov_legacy.proto @@ -7,7 +7,7 @@ import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; -option go_package = "github.com/functionx/fx-core/x/gov/legacy"; +option go_package = "github.com/functionx/fx-core/types/legacy"; // Deprecated: Do not use. message MsgUpdateParams { diff --git a/proto/fx/gravity/v1/gravity_legacy.proto b/proto/fx/gravity/v1/gravity_legacy.proto new file mode 100644 index 000000000..a1b8d995b --- /dev/null +++ b/proto/fx/gravity/v1/gravity_legacy.proto @@ -0,0 +1,110 @@ +syntax = "proto3"; +package fx.gravity.v1; + +import "cosmos/base/v1beta1/coin.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/functionx/fx-core/types/legacy"; + +// Deprecated: after upgrade v3 +message MsgValsetConfirm { + uint64 nonce = 1; + string orchestrator = 2; + string eth_address = 3; + string signature = 4; +} + +// Deprecated: after upgrade v3 +message MsgSendToEth { + string sender = 1; + string eth_dest = 2; + cosmos.base.v1beta1.Coin amount = 3 [ (gogoproto.nullable) = false ]; + cosmos.base.v1beta1.Coin bridge_fee = 4 [ (gogoproto.nullable) = false ]; +} + +// Deprecated: after upgrade v3 +message MsgRequestBatch { + string sender = 1; + string denom = 2; + string minimum_fee = 3 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + string feeReceive = 4; + string base_fee = 5 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; +} + +// Deprecated: after upgrade v3 +message MsgConfirmBatch { + uint64 nonce = 1; + string token_contract = 2; + string eth_signer = 3; + string orchestrator = 4; + string signature = 5; +} + +// Deprecated: after upgrade v3 +message MsgDepositClaim { + uint64 event_nonce = 1; + uint64 block_height = 2; + string token_contract = 3; + string amount = 4 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + string eth_sender = 5; + string fx_receiver = 6; + string target_ibc = 7; + string orchestrator = 8; +} + +// Deprecated: after upgrade v3 +message MsgWithdrawClaim { + uint64 event_nonce = 1; + uint64 block_height = 2; + uint64 batch_nonce = 3; + string token_contract = 4; + string orchestrator = 5; +} + +// Deprecated: after upgrade v3 +message MsgCancelSendToEth { + uint64 transaction_id = 1; + string sender = 2; +} + +// Deprecated: after upgrade v3 +message MsgValsetUpdatedClaim { + uint64 event_nonce = 1; + uint64 block_height = 2; + uint64 valset_nonce = 3; + repeated BridgeValidator members = 4; + string orchestrator = 6; +} + +// Deprecated: after upgrade v3 +message BridgeValidator { + uint64 power = 1; + string eth_address = 2; +} + +// Deprecated: after upgrade v3 +message MsgSetOrchestratorAddress { + string validator = 1; + string orchestrator = 2; + string eth_address = 3; +} + +// Deprecated: after upgrade v3 +message MsgFxOriginatedTokenClaim { + uint64 event_nonce = 1; + uint64 block_height = 2; + string token_contract = 3; + string name = 4; + string symbol = 5; + uint64 decimals = 6; + string orchestrator = 7; +} diff --git a/proto/fx/ibc/applications/transfer/v1/ibc_legacy.proto b/proto/fx/ibc/applications/transfer/v1/ibc_legacy.proto new file mode 100644 index 000000000..cc9ed1404 --- /dev/null +++ b/proto/fx/ibc/applications/transfer/v1/ibc_legacy.proto @@ -0,0 +1,45 @@ +syntax = "proto3"; +package fx.ibc.applications.transfer.v1; + +import "cosmos/base/v1beta1/coin.proto"; +import "gogoproto/gogo.proto"; +import "ibc/applications/transfer/v1/tx.proto"; +import "ibc/core/client/v1/client.proto"; + +option go_package = "github.com/functionx/fx-core/types/legacy"; + +// MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between +// ICS20 enabled chains. See ICS Spec here: +// https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures +message MsgTransfer { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // the port on which the packet will be sent + string source_port = 1 [ (gogoproto.moretags) = "yaml:\"source_port\"" ]; + // the channel by which the packet will be sent + string source_channel = 2 + [ (gogoproto.moretags) = "yaml:\"source_channel\"" ]; + // the tokens to be transferred + cosmos.base.v1beta1.Coin token = 3 [ (gogoproto.nullable) = false ]; + // the sender address + string sender = 4; + // the recipient address on the destination chain + string receiver = 5; + // Timeout height relative to the current block height. + // The timeout is disabled when set to 0. + .ibc.core.client.v1.Height timeout_height = 6 [ + (gogoproto.moretags) = "yaml:\"timeout_height\"", + (gogoproto.nullable) = false + ]; + // Timeout timestamp (in nanoseconds) relative to the current block timestamp. + // The timeout is disabled when set to 0. + uint64 timeout_timestamp = 7 + [ (gogoproto.moretags) = "yaml:\"timeout_timestamp\"" ]; + // the router is hook destination chain + string router = 8; + // the tokens to be destination fee + cosmos.base.v1beta1.Coin fee = 9 [ (gogoproto.nullable) = false ]; + // optional memo + string memo = 10; +} diff --git a/proto/fx/staking/v1/staking_legacy.proto b/proto/fx/staking/v1/staking_legacy.proto new file mode 100644 index 000000000..a7eb783cf --- /dev/null +++ b/proto/fx/staking/v1/staking_legacy.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; +package fx.staking.v1; + +import "cosmos_proto/cosmos.proto"; +import "google/protobuf/any.proto"; + +option go_package = "github.com/functionx/fx-core/types/legacy"; + +message MsgGrantPrivilege { + string validator_address = 1; // validator address + string from_address = 2; // from address + google.protobuf.Any to_pubkey = 3 + [ (cosmos_proto.accepts_interface) = + "cosmos.crypto.PubKey" ]; // to pub_key + string signature = 4; // signature +} + +message MsgEditConsensusPubKey { + string validator_address = 1; + string from = 2; + google.protobuf.Any pubkey = 3 + [ (cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey" ]; +} diff --git a/scripts/protoc-swagger-gen.sh b/scripts/protoc-swagger-gen.sh index e4814655f..ba955de0b 100644 --- a/scripts/protoc-swagger-gen.sh +++ b/scripts/protoc-swagger-gen.sh @@ -3,7 +3,7 @@ set -eo pipefail mkdir -p ./tmp-swagger-gen ./third_party ./build -trap 'rm -rf ./tmp-swagger-gen ./third_party ./build' EXIT +trap 'rm -rf ./tmp-swagger-gen ./third_party' EXIT commit_hash=$(go list -m -f '{{.Replace.Version}}' github.com/evmos/ethermint | awk -F '-' '{print $NF}') if [[ ! -f "./build/$commit_hash.zip" ]]; then diff --git a/x/evm/legacy/init_evm_proposal.go b/types/legacy/evm_proposal.go similarity index 100% rename from x/evm/legacy/init_evm_proposal.go rename to types/legacy/evm_proposal.go diff --git a/x/evm/legacy/testnet_proposal.pb.go b/types/legacy/evm_proposal_testnet.pb.go similarity index 75% rename from x/evm/legacy/testnet_proposal.pb.go rename to types/legacy/evm_proposal_testnet.pb.go index 454b1c557..5e96f29ca 100644 --- a/x/evm/legacy/testnet_proposal.pb.go +++ b/types/legacy/evm_proposal_testnet.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: ethermint/evm/v1/testnet_proposal.proto +// source: ethermint/evm/v1/evm_proposal_testnet.proto package legacy @@ -35,7 +35,7 @@ type InitEvmParamsProposal struct { func (m *InitEvmParamsProposal) Reset() { *m = InitEvmParamsProposal{} } func (*InitEvmParamsProposal) ProtoMessage() {} func (*InitEvmParamsProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_3a3ef9b2114a8339, []int{0} + return fileDescriptor_3abe68b8de0c92e9, []int{0} } func (m *InitEvmParamsProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *EVMParams) Reset() { *m = EVMParams{} } func (m *EVMParams) String() string { return proto.CompactTextString(m) } func (*EVMParams) ProtoMessage() {} func (*EVMParams) Descriptor() ([]byte, []int) { - return fileDescriptor_3a3ef9b2114a8339, []int{1} + return fileDescriptor_3abe68b8de0c92e9, []int{1} } func (m *EVMParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -163,7 +163,7 @@ func (m *EVMChainConfig) Reset() { *m = EVMChainConfig{} } func (m *EVMChainConfig) String() string { return proto.CompactTextString(m) } func (*EVMChainConfig) ProtoMessage() {} func (*EVMChainConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_3a3ef9b2114a8339, []int{2} + return fileDescriptor_3abe68b8de0c92e9, []int{2} } func (m *EVMChainConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -219,7 +219,7 @@ func (m *FeemarketParams) Reset() { *m = FeemarketParams{} } func (m *FeemarketParams) String() string { return proto.CompactTextString(m) } func (*FeemarketParams) ProtoMessage() {} func (*FeemarketParams) Descriptor() ([]byte, []int) { - return fileDescriptor_3a3ef9b2114a8339, []int{3} + return fileDescriptor_3abe68b8de0c92e9, []int{3} } func (m *FeemarketParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -291,78 +291,78 @@ func init() { } func init() { - proto.RegisterFile("ethermint/evm/v1/testnet_proposal.proto", fileDescriptor_3a3ef9b2114a8339) + proto.RegisterFile("ethermint/evm/v1/evm_proposal_testnet.proto", fileDescriptor_3abe68b8de0c92e9) } -var fileDescriptor_3a3ef9b2114a8339 = []byte{ - // 1066 bytes of a gzipped FileDescriptorProto +var fileDescriptor_3abe68b8de0c92e9 = []byte{ + // 1069 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0x4f, 0x6f, 0xe3, 0xc4, 0x1b, 0xc7, 0x93, 0x6d, 0x77, 0x7f, 0xc9, 0xe4, 0x9f, 0xd7, 0x9b, 0xee, 0x2f, 0x50, 0x29, 0x2e, - 0xe6, 0x40, 0x39, 0x6c, 0xd2, 0x6e, 0x29, 0x94, 0x95, 0x56, 0x68, 0xdd, 0xa6, 0x6c, 0x8b, 0x56, - 0x54, 0xb3, 0x12, 0x08, 0x84, 0x64, 0xc6, 0xce, 0x24, 0x1e, 0x65, 0xec, 0xb1, 0xec, 0x49, 0x68, - 0x78, 0x05, 0x1c, 0x39, 0x72, 0xec, 0xcb, 0xd9, 0xe3, 0x1e, 0x11, 0x48, 0x16, 0x4a, 0x85, 0xc4, - 0x39, 0xe2, 0x8a, 0x84, 0x3c, 0x33, 0x71, 0xfe, 0xb4, 0x44, 0xbd, 0xe5, 0x79, 0x9e, 0xef, 0xf3, - 0xf9, 0x3e, 0x33, 0x9e, 0x78, 0x0c, 0x3e, 0xc0, 0xdc, 0xc3, 0x91, 0x4f, 0x02, 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0x69, 0xb5, 0xd2, 0x69, - 0xc2, 0x6a, 0x96, 0xb1, 0xd2, 0x84, 0xee, 0x81, 0x6a, 0x17, 0x31, 0xbb, 0xc7, 0xa2, 0x81, 0x82, - 0x8b, 0x93, 0x68, 0x59, 0xff, 0x09, 0x9f, 0x24, 0x46, 0xf9, 0xe4, 0xc5, 0x97, 0xa7, 0x2c, 0x1a, - 0x08, 0xc4, 0x34, 0x31, 0xb6, 0xa4, 0xd9, 0x32, 0xc8, 0x84, 0xe5, 0x2e, 0x62, 0x99, 0x4c, 0xff, - 0x1a, 0x68, 0x99, 0x20, 0x1e, 0x86, 0x21, 0x8b, 0xb8, 0x7a, 0x7a, 0x4f, 0x26, 0x89, 0x51, 0x55, - 0xc8, 0xd7, 0xb2, 0x32, 0x4d, 0x8c, 0xff, 0xaf, 0x40, 0x55, 0x8f, 0x09, 0xab, 0x0a, 0xab, 0xa4, - 0xba, 0x03, 0xca, 0x98, 0x84, 0xfb, 0x87, 0x7b, 0x6a, 0x01, 0x9b, 0x62, 0x01, 0x9f, 0xad, 0x5b, - 0x40, 0xa9, 0x73, 0x76, 0xb1, 0x7f, 0xb8, 0x37, 0x9b, 0x5f, 0x3d, 0x97, 0x45, 0x8a, 0x09, 0x4b, - 0x32, 0x94, 0xc3, 0x9f, 0x01, 0x15, 0xda, 0x1e, 0x8a, 0x3d, 0xf1, 0xe0, 0x8b, 0xd6, 0xee, 0x24, - 0x31, 0x80, 0x24, 0xbd, 0x44, 0xb1, 0x37, 0xdf, 0x75, 0x67, 0xfc, 0x23, 0x0a, 0x38, 0x19, 0xfa, - 0x33, 0x16, 0x90, 0xcd, 0xa9, 0x2a, 0x1b, 0xf7, 0x50, 0x8d, 0xfb, 0xe0, 0xae, 0xe3, 0x1e, 0xde, - 0x36, 0xee, 0xe1, 0xf2, 0xb8, 0x52, 0x93, 0x79, 0x1c, 0x29, 0x8f, 0xff, 0xdd, 0xd5, 0xe3, 0xe8, - 0x36, 0x8f, 0xa3, 0x65,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a6, 0x3d, 0x84, 0x95, 0x31, - 0xa3, 0xcc, 0x1e, 0x1d, 0x48, 0x39, 0x2c, 0xe1, 0x1f, 0x50, 0xac, 0xce, 0x1d, 0xac, 0xba, 0x88, - 0x23, 0x3a, 0x8e, 0xb9, 0x62, 0xfd, 0x9d, 0x07, 0xb5, 0x95, 0x0b, 0x51, 0x6f, 0x82, 0x52, 0xc0, - 0x6c, 0x07, 0xc5, 0xd8, 0xee, 0x61, 0x79, 0x8b, 0x17, 0x60, 0x31, 0x60, 0x16, 0x8a, 0xf1, 0x29, - 0xc6, 0xfa, 0x73, 0xb0, 0x3d, 0x2b, 0xda, 0xae, 0x87, 0x82, 0x3e, 0x96, 0x97, 0x1e, 0x09, 0x10, - 0x67, 0x91, 0x78, 0x9f, 0x56, 0x60, 0xc3, 0x91, 0xea, 0x63, 0x21, 0x38, 0x99, 0xd7, 0xf5, 0x03, - 0xb0, 0x85, 0x29, 0x8a, 0x39, 0x71, 0x09, 0x1f, 0xdb, 0xfe, 0x90, 0x72, 0x12, 0x52, 0x82, 0x23, - 0xf1, 0x72, 0xac, 0xc0, 0xfa, 0xbc, 0xf8, 0x2a, 0xab, 0xe9, 0xbb, 0x40, 0x23, 0x01, 0xe1, 0x04, - 0xd1, 0xf9, 0x60, 0xe9, 0x7b, 0x6f, 0x03, 0x56, 0x55, 0x7e, 0x36, 0xdd, 0xfb, 0xd9, 0x75, 0xeb, - 0x61, 0xd2, 0xf7, 0xb8, 0x78, 0x77, 0x6d, 0xcc, 0x2e, 0xd5, 0x97, 0x22, 0x67, 0x1d, 0xbf, 0x99, - 0x34, 0xf3, 0x6f, 0x27, 0xcd, 0xfc, 0x1f, 0x93, 0x66, 0xfe, 0xe7, 0xeb, 0x66, 0xee, 0xed, 0x75, - 0x33, 0xf7, 0xeb, 0x75, 0x33, 0xf7, 0xed, 0x87, 0x7d, 0xc2, 0xbd, 0xa1, 0xd3, 0x72, 0x99, 0xdf, - 0xee, 0x0d, 0x03, 0x37, 0x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, 0x43, 0x41, 0x1f, 0xcb, 0x4b, 0x8f, + 0x04, 0x88, 0xb3, 0x48, 0xbc, 0x4f, 0x2b, 0xb0, 0xe1, 0x48, 0xf5, 0xb1, 0x10, 0x9c, 0xcc, 0xeb, + 0xfa, 0x01, 0xd8, 0xc2, 0x14, 0xc5, 0x9c, 0xb8, 0x84, 0x8f, 0x6d, 0x7f, 0x48, 0x39, 0x09, 0x29, + 0xc1, 0x91, 0x78, 0x39, 0x56, 0x60, 0x7d, 0x5e, 0x7c, 0x95, 0xd5, 0xf4, 0x5d, 0xa0, 0x91, 0x80, + 0x70, 0x82, 0xe8, 0x7c, 0xb0, 0xf4, 0xbd, 0xb7, 0x01, 0xab, 0x2a, 0x3f, 0x9b, 0xee, 0xfd, 0xec, + 0xba, 0xf5, 0x30, 0xe9, 0x7b, 0x5c, 0xbc, 0xbb, 0x36, 0x66, 0x97, 0xea, 0x4b, 0x91, 0xb3, 0x8e, + 0xdf, 0x4c, 0x9a, 0xf9, 0xb7, 0x93, 0x66, 0xfe, 0x8f, 0x49, 0x33, 0xff, 0xf3, 0x75, 0x33, 0xf7, + 0xf6, 0xba, 0x99, 0xfb, 0xf5, 0xba, 0x99, 0xfb, 0xf6, 0x83, 0x3e, 0xe1, 0xde, 0xd0, 0x69, 0xb9, + 0xcc, 0x6f, 0xf7, 0x86, 0x81, 0x9b, 0xfe, 0x33, 0xb9, 0x6c, 0xf7, 0x2e, 0x9f, 0xb8, 0x2c, 0xc2, + 0x6d, 0x3e, 0x0e, 0x71, 0xdc, 0xa6, 0xb8, 0x8f, 0xdc, 0xb1, 0xf3, 0x40, 0xfc, 0x11, 0x3a, 0xf8, + 0x37, 0x00, 0x00, 0xff, 0xff, 0x33, 0x8b, 0xd6, 0x7f, 0x5f, 0x09, 0x00, 0x00, } func (m *InitEvmParamsProposal) Marshal() (dAtA []byte, err error) { @@ -392,7 +392,7 @@ func (m *InitEvmParamsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -404,7 +404,7 @@ func (m *InitEvmParamsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -412,14 +412,14 @@ func (m *InitEvmParamsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintTestnetProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(len(m.Description))) i-- dAtA[i] = 0x12 } if len(m.Title) > 0 { i -= len(m.Title) copy(dAtA[i:], m.Title) - i = encodeVarintTestnetProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -452,7 +452,7 @@ func (m *EVMParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a @@ -471,7 +471,7 @@ func (m *EVMParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i -= j4 copy(dAtA[i:], dAtA5[:j4]) - i = encodeVarintTestnetProposal(dAtA, i, uint64(j4)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(j4)) i-- dAtA[i] = 0x22 } @@ -498,7 +498,7 @@ func (m *EVMParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.EvmDenom) > 0 { i -= len(m.EvmDenom) copy(dAtA[i:], m.EvmDenom) - i = encodeVarintTestnetProposal(dAtA, i, uint64(len(m.EvmDenom))) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(len(m.EvmDenom))) i-- dAtA[i] = 0xa } @@ -532,7 +532,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.LondonBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1 @@ -546,7 +546,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.BerlinBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x6a @@ -558,7 +558,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.MuirGlacierBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x62 @@ -570,7 +570,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.IstanbulBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a @@ -582,7 +582,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.PetersburgBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 @@ -594,7 +594,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.ConstantinopleBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x4a @@ -606,7 +606,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.ByzantiumBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 @@ -618,7 +618,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.EIP158Block.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a @@ -630,7 +630,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.EIP155Block.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 @@ -638,7 +638,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.EIP150Hash) > 0 { i -= len(m.EIP150Hash) copy(dAtA[i:], m.EIP150Hash) - i = encodeVarintTestnetProposal(dAtA, i, uint64(len(m.EIP150Hash))) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(len(m.EIP150Hash))) i-- dAtA[i] = 0x2a } @@ -649,7 +649,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.EIP150Block.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -671,7 +671,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.DAOForkBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -683,7 +683,7 @@ func (m *EVMChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.HomesteadBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTestnetProposal(dAtA, i, uint64(size)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -712,22 +712,22 @@ func (m *FeemarketParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.EnableHeight != 0 { - i = encodeVarintTestnetProposal(dAtA, i, uint64(m.EnableHeight)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(m.EnableHeight)) i-- dAtA[i] = 0x28 } if m.InitialBaseFee != 0 { - i = encodeVarintTestnetProposal(dAtA, i, uint64(m.InitialBaseFee)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(m.InitialBaseFee)) i-- dAtA[i] = 0x20 } if m.ElasticityMultiplier != 0 { - i = encodeVarintTestnetProposal(dAtA, i, uint64(m.ElasticityMultiplier)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(m.ElasticityMultiplier)) i-- dAtA[i] = 0x18 } if m.BaseFeeChangeDenominator != 0 { - i = encodeVarintTestnetProposal(dAtA, i, uint64(m.BaseFeeChangeDenominator)) + i = encodeVarintEvmProposalTestnet(dAtA, i, uint64(m.BaseFeeChangeDenominator)) i-- dAtA[i] = 0x10 } @@ -744,8 +744,8 @@ func (m *FeemarketParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintTestnetProposal(dAtA []byte, offset int, v uint64) int { - offset -= sovTestnetProposal(v) +func encodeVarintEvmProposalTestnet(dAtA []byte, offset int, v uint64) int { + offset -= sovEvmProposalTestnet(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -763,19 +763,19 @@ func (m *InitEvmParamsProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.EvmParams != nil { l = m.EvmParams.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.FeemarketParams != nil { l = m.FeemarketParams.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } return n } @@ -788,7 +788,7 @@ func (m *EVMParams) Size() (n int) { _ = l l = len(m.EvmDenom) if l > 0 { - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.EnableCreate { n += 2 @@ -799,12 +799,12 @@ func (m *EVMParams) Size() (n int) { if len(m.ExtraEIPs) > 0 { l = 0 for _, e := range m.ExtraEIPs { - l += sovTestnetProposal(uint64(e)) + l += sovEvmProposalTestnet(uint64(e)) } - n += 1 + sovTestnetProposal(uint64(l)) + l + n += 1 + sovEvmProposalTestnet(uint64(l)) + l } l = m.ChainConfig.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) return n } @@ -816,58 +816,58 @@ func (m *EVMChainConfig) Size() (n int) { _ = l if m.HomesteadBlock != nil { l = m.HomesteadBlock.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.DAOForkBlock != nil { l = m.DAOForkBlock.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.DAOForkSupport { n += 2 } if m.EIP150Block != nil { l = m.EIP150Block.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } l = len(m.EIP150Hash) if l > 0 { - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.EIP155Block != nil { l = m.EIP155Block.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.EIP158Block != nil { l = m.EIP158Block.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.ByzantiumBlock != nil { l = m.ByzantiumBlock.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.ConstantinopleBlock != nil { l = m.ConstantinopleBlock.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.PetersburgBlock != nil { l = m.PetersburgBlock.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.IstanbulBlock != nil { l = m.IstanbulBlock.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.MuirGlacierBlock != nil { l = m.MuirGlacierBlock.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.BerlinBlock != nil { l = m.BerlinBlock.Size() - n += 1 + l + sovTestnetProposal(uint64(l)) + n += 1 + l + sovEvmProposalTestnet(uint64(l)) } if m.LondonBlock != nil { l = m.LondonBlock.Size() - n += 2 + l + sovTestnetProposal(uint64(l)) + n += 2 + l + sovEvmProposalTestnet(uint64(l)) } return n } @@ -882,25 +882,25 @@ func (m *FeemarketParams) Size() (n int) { n += 2 } if m.BaseFeeChangeDenominator != 0 { - n += 1 + sovTestnetProposal(uint64(m.BaseFeeChangeDenominator)) + n += 1 + sovEvmProposalTestnet(uint64(m.BaseFeeChangeDenominator)) } if m.ElasticityMultiplier != 0 { - n += 1 + sovTestnetProposal(uint64(m.ElasticityMultiplier)) + n += 1 + sovEvmProposalTestnet(uint64(m.ElasticityMultiplier)) } if m.InitialBaseFee != 0 { - n += 1 + sovTestnetProposal(uint64(m.InitialBaseFee)) + n += 1 + sovEvmProposalTestnet(uint64(m.InitialBaseFee)) } if m.EnableHeight != 0 { - n += 1 + sovTestnetProposal(uint64(m.EnableHeight)) + n += 1 + sovEvmProposalTestnet(uint64(m.EnableHeight)) } return n } -func sovTestnetProposal(x uint64) (n int) { +func sovEvmProposalTestnet(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTestnetProposal(x uint64) (n int) { - return sovTestnetProposal(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozEvmProposalTestnet(x uint64) (n int) { + return sovEvmProposalTestnet(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -910,7 +910,7 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -938,7 +938,7 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -952,11 +952,11 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -970,7 +970,7 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -984,11 +984,11 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1002,7 +1002,7 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1015,11 +1015,11 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1038,7 +1038,7 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1051,11 +1051,11 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1069,12 +1069,12 @@ func (m *InitEvmParamsProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTestnetProposal(dAtA[iNdEx:]) + skippy, err := skipEvmProposalTestnet(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1096,7 +1096,7 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1124,7 +1124,7 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1138,11 +1138,11 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1156,7 +1156,7 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1176,7 +1176,7 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1194,7 +1194,7 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1211,7 +1211,7 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1224,11 +1224,11 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + packedLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1248,7 +1248,7 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1272,7 +1272,7 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1285,11 +1285,11 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1300,12 +1300,12 @@ func (m *EVMParams) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTestnetProposal(dAtA[iNdEx:]) + skippy, err := skipEvmProposalTestnet(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1327,7 +1327,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1355,7 +1355,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1369,11 +1369,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1391,7 +1391,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1405,11 +1405,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1427,7 +1427,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1447,7 +1447,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1461,11 +1461,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1483,7 +1483,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1497,11 +1497,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1515,7 +1515,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1529,11 +1529,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1551,7 +1551,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1565,11 +1565,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1587,7 +1587,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1601,11 +1601,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1623,7 +1623,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1637,11 +1637,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1659,7 +1659,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1673,11 +1673,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1695,7 +1695,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1709,11 +1709,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1731,7 +1731,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1745,11 +1745,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1767,7 +1767,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1781,11 +1781,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1803,7 +1803,7 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1817,11 +1817,11 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if postIndex > l { return io.ErrUnexpectedEOF @@ -1834,12 +1834,12 @@ func (m *EVMChainConfig) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTestnetProposal(dAtA[iNdEx:]) + skippy, err := skipEvmProposalTestnet(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1861,7 +1861,7 @@ func (m *FeemarketParams) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1889,7 +1889,7 @@ func (m *FeemarketParams) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1909,7 +1909,7 @@ func (m *FeemarketParams) Unmarshal(dAtA []byte) error { m.BaseFeeChangeDenominator = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1928,7 +1928,7 @@ func (m *FeemarketParams) Unmarshal(dAtA []byte) error { m.ElasticityMultiplier = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1947,7 +1947,7 @@ func (m *FeemarketParams) Unmarshal(dAtA []byte) error { m.InitialBaseFee = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1966,7 +1966,7 @@ func (m *FeemarketParams) Unmarshal(dAtA []byte) error { m.EnableHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTestnetProposal + return ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1980,12 +1980,12 @@ func (m *FeemarketParams) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTestnetProposal(dAtA[iNdEx:]) + skippy, err := skipEvmProposalTestnet(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTestnetProposal + return ErrInvalidLengthEvmProposalTestnet } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1999,7 +1999,7 @@ func (m *FeemarketParams) Unmarshal(dAtA []byte) error { } return nil } -func skipTestnetProposal(dAtA []byte) (n int, err error) { +func skipEvmProposalTestnet(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -2007,7 +2007,7 @@ func skipTestnetProposal(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTestnetProposal + return 0, ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2024,7 +2024,7 @@ func skipTestnetProposal(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTestnetProposal + return 0, ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2040,7 +2040,7 @@ func skipTestnetProposal(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTestnetProposal + return 0, ErrIntOverflowEvmProposalTestnet } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2053,14 +2053,14 @@ func skipTestnetProposal(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTestnetProposal + return 0, ErrInvalidLengthEvmProposalTestnet } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTestnetProposal + return 0, ErrUnexpectedEndOfGroupEvmProposalTestnet } depth-- case 5: @@ -2069,7 +2069,7 @@ func skipTestnetProposal(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTestnetProposal + return 0, ErrInvalidLengthEvmProposalTestnet } if depth == 0 { return iNdEx, nil @@ -2079,7 +2079,7 @@ func skipTestnetProposal(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTestnetProposal = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTestnetProposal = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTestnetProposal = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthEvmProposalTestnet = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvmProposalTestnet = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvmProposalTestnet = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/gov/legacy/legacy.pb.go b/types/legacy/gov_legacy.pb.go similarity index 74% rename from x/gov/legacy/legacy.pb.go rename to types/legacy/gov_legacy.pb.go index 6878b6b96..68dbd803a 100644 --- a/x/gov/legacy/legacy.pb.go +++ b/types/legacy/gov_legacy.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fx/gov/v1/legacy.proto +// source: fx/gov/v1/gov_legacy.proto package legacy @@ -41,7 +41,7 @@ func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_99883380d54fa8eb, []int{0} + return fileDescriptor_645155d0813cbede, []int{0} } func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -109,7 +109,7 @@ func (m *LegacyParams) Reset() { *m = LegacyParams{} } func (m *LegacyParams) String() string { return proto.CompactTextString(m) } func (*LegacyParams) ProtoMessage() {} func (*LegacyParams) Descriptor() ([]byte, []int) { - return fileDescriptor_99883380d54fa8eb, []int{1} + return fileDescriptor_645155d0813cbede, []int{1} } func (m *LegacyParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -206,55 +206,55 @@ func init() { proto.RegisterType((*LegacyParams)(nil), "fx.gov.v1.LegacyParams") } -func init() { proto.RegisterFile("fx/gov/v1/legacy.proto", fileDescriptor_99883380d54fa8eb) } +func init() { proto.RegisterFile("fx/gov/v1/gov_legacy.proto", fileDescriptor_645155d0813cbede) } -var fileDescriptor_99883380d54fa8eb = []byte{ - // 710 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0x4f, 0xdb, 0x48, - 0x18, 0xc6, 0x63, 0x60, 0x03, 0x99, 0x84, 0x2c, 0x6b, 0x58, 0x70, 0xd8, 0xc5, 0x89, 0x10, 0x2b, - 0x65, 0x57, 0x8b, 0xad, 0xb0, 0xda, 0x3d, 0xec, 0x8d, 0x90, 0x4a, 0x45, 0x2a, 0x12, 0x75, 0x29, - 0x52, 0x2b, 0x55, 0x96, 0x63, 0x4f, 0x26, 0xa3, 0x66, 0x3c, 0xae, 0x67, 0x6c, 0x25, 0xd7, 0x7e, - 0x02, 0x8e, 0xfd, 0x18, 0x3d, 0xf0, 0x19, 0x2a, 0x8e, 0x88, 0x53, 0xd5, 0x43, 0x5a, 0xc1, 0xa1, - 0x12, 0x9f, 0xa2, 0xf2, 0xcc, 0xe4, 0x4f, 0x0b, 0xb4, 0xdc, 0x3c, 0x33, 0xcf, 0xf3, 0xfe, 0xde,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c5, 0xe9, - 0x36, 0x50, 0x21, 0x5b, 0xd0, 0x77, 0x54, 0x51, 0x9d, 0x00, 0x9d, 0x78, 0xfd, 0x51, 0xa0, 0x51, - 0xa7, 0xf9, 0x1f, 0x75, 0xba, 0x75, 0x3d, 0xac, 0xfe, 0x7e, 0xd3, 0x38, 0xc1, 0x89, 0x24, 0x4b, - 0xc4, 0xeb, 0xab, 0xdb, 0x50, 0x69, 0x3a, 0xa0, 0xc0, 0xbb, 0x31, 0x64, 0x5d, 0xda, 0x0b, 0x8c, - 0x79, 0x11, 0xe8, 0xe1, 0xfd, 0x02, 0x2d, 0x8f, 0x7d, 0x77, 0x66, 0x9a, 0x94, 0xd6, 0x39, 0x28, - 0xa7, 0x90, 0x53, 0x77, 0x02, 0x5b, 0x10, 0xb0, 0x83, 0xfb, 0xc1, 0x8c, 0xaf, 0xcd, 0x77, 0x12, - 0x17, 0x33, 0xdd, 0xd1, 0x98, 0xba, 0x0f, 0x2a, 0xb7, 0xbc, 0x12, 0x57, 0xdc, 0x99, 0x51, 0x10, - 0x0d, 0x94, 0xbf, 0xa9, 0xb0, 0x7a, 0xe3, 0xdd, 0x38, 0x99, 0x5a, 0xaf, 0x83, 0xa5, 0x76, 0x12, - 0x87, 0x6e, 0x4a, 0x39, 0x74, 0xd5, 0x03, 0x00, 0x35, 0xad, 0xbe, 0xe0, 0x94, 0xb3, 0xfd, 0x63, - 0xca, 0xe1, 0x63, 0x39, 0xc1, 0x5d, 0xb0, 0x21, 0x94, 0x51, 0x4c, 0x23, 0xca, 0xa6, 0xb0, 0x51, - 0x0c, 0x33, 0xb7, 0x51, 0x14, 0xb6, 0xf5, 0x4c, 0x74, 0xa8, 0x34, 0xa3, 0xa1, 0x48, 0x85, 0xbe, - 0x05, 0xca, 0x13, 0x58, 0x16, 0xc9, 0x28, 0x09, 0x4f, 0x69, 0x84, 0x3a, 0x86, 0x9c, 0x36, 0xf7, - 0xce, 0x2e, 0x4d, 0xed, 0xfc, 0xd2, 0xd4, 0x3e, 0x5d, 0x9a, 0xda, 0xc9, 0x95, 0x99, 0x3b, 0xbf, - 0x32, 0x73, 0xef, 0xaf, 0xcc, 0xdc, 0xf3, 0x3f, 0x11, 0xe6, 0xdd, 0xa4, 0x6d, 0xf9, 0x94, 0xd8, - 0x9d, 0x24, 0xf4, 0xb3, 0x27, 0xd2, 0xb7, 0x3b, 0xfd, 0x6d, 0x9f, 0xc6, 0xd0, 0x96, 0xbf, 0x4f, - 0xf9, 0xef, 0x6c, 0xe7, 0xc5, 0x5b, 0xfa, 0xe7, 0x4b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x05, 0x6a, - 0xfc, 0xa3, 0x56, 0x05, 0x00, 0x00, +var fileDescriptor_645155d0813cbede = []byte{ + // 709 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0x4f, 0x13, 0x41, + 0x18, 0xc6, 0xbb, 0x80, 0x85, 0x4e, 0x4b, 0xc5, 0x05, 0x65, 0x5b, 0x65, 0xdb, 0x10, 0x4c, 0xaa, + 0x91, 0xdd, 0x14, 0xa3, 0x07, 0x6f, 0x94, 0x9a, 0x48, 0x22, 0x09, 0xae, 0x48, 0xa2, 0x89, 0xd9, + 0x6c, 0x77, 0xa7, 0xdb, 0x89, 0x9d, 0x9d, 0x75, 0x67, 0x76, 0xd3, 0x5e, 0xfd, 0x04, 0x1c, 0xfd, + 0x18, 0x1e, 0xf8, 0x0c, 0x86, 0x23, 0xe1, 0x64, 0x3c, 0x54, 0x03, 0x07, 0x13, 0x3e, 0x85, 0xd9, + 0x99, 0xe9, 0x1f, 0x05, 0x94, 0x53, 0x3b, 0x33, 0xcf, 0xf3, 0xfe, 0xde, 0x67, 0xde, 0x69, 0x41, + 0xb9, 0xdd, 0x33, 0x7d, 0x92, 0x98, 0x49, 0x3d, 0xfd, 0xb0, 0xbb, 0xd0, 0x77, 0xdc, 0xbe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b, 0xd6, 0x2c, 0xa6, 0xfe, 0x5e, 0x3f, 0x84, 0xea, 0x5b, 0x90, + 0xc7, 0x28, 0xb0, 0x3d, 0x18, 0x12, 0x8a, 0x98, 0x36, 0x55, 0x9d, 0xae, 0xe5, 0x37, 0x4a, 0x86, + 0xec, 0x34, 0xbd, 0x5e, 0x43, 0x5e, 0xaf, 0xb1, 0x45, 0x50, 0xd0, 0x58, 0x49, 0xc9, 0xe7, 0x83, + 0xca, 0xed, 0x09, 0xd7, 0x23, 0x82, 0x11, 0x83, 0x38, 0x64, 0x7d, 0x0b, 0x60, 0x14, 0x34, 0xc5, + 0xae, 0x1a, 0x82, 0xc5, 0x54, 0x84, 0x02, 0xc4, 0x90, 0xd3, 0x1d, 0x21, 0xa6, 0x79, 0xb4, 0x7f, + 0x20, 0xee, 0x4b, 0xc4, 0xca, 0x25, 0xee, 0x09, 0xd4, 0x2d, 0x8c, 0x82, 0x6d, 0x71, 0x3a, 0x24, + 0x36, 0xc1, 0x7c, 0x42, 0x18, 0x0a, 0x7c, 0x3b, 0x84, 0x11, 0x22, 0x9e, 0x36, 0x23, 0x59, 0x62, + 0x86, 0xc6, 0x70, 0x86, 0x46, 0x53, 0xce, 0xb0, 0x31, 0xf3, 0xf9, 0x47, 0x45, 0xb1, 0x0a, 0xc2, + 0xb5, 0xcb, 0x4d, 0xea, 0x7b, 0x90, 0xfd, 0x18, 0x93, 0x28, 0xc6, 0xda, 0x0d, 0x3e, 0xba, 0xe7, + 0x69, 0x3f, 0xdf, 0x07, 0x95, 0xbb, 0xa2, 0x63, 0xea, 0x7d, 0x30, 0x10, 0x31, 0xb1, 0xc3, 0x3a, + 0x72, 0x28, 0x4d, 0xe8, 0x9e, 0x0f, 0x2a, 0x0b, 0xc2, 0x34, 0xee, 0xf0, 0xe4, 0x70, 0x1d, 0xc8, + 0x90, 0x4d, 0xe8, 0x5a, 0xb2, 0xa8, 0x8a, 0x81, 0x8a, 0x9d, 0xde, 0x30, 0xd0, 0xb0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ee, 0x81, 0x8f, 0x58, 0x27, 0x6e, 0x19, 0x2e, 0xc1, 0x66, 0x3b, 0x0e, + 0xdc, 0xf4, 0x89, 0xf4, 0xcc, 0x76, 0x6f, 0xdd, 0x25, 0x11, 0x34, 0xd3, 0x1f, 0x3a, 0x35, 0xc5, + 0x7f, 0x67, 0x2b, 0xcb, 0xdf, 0xd2, 0xe3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x08, 0x70, 0xa6, + 0x37, 0x5a, 0x05, 0x00, 0x00, } func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { @@ -283,14 +283,14 @@ func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintLegacy(dAtA, i, uint64(size)) + i = encodeVarintGovLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if len(m.Authority) > 0 { i -= len(m.Authority) copy(dAtA[i:], m.Authority) - i = encodeVarintLegacy(dAtA, i, uint64(len(m.Authority))) + i = encodeVarintGovLegacy(dAtA, i, uint64(len(m.Authority))) i-- dAtA[i] = 0xa } @@ -350,7 +350,7 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.MinInitialDepositRatio) > 0 { i -= len(m.MinInitialDepositRatio) copy(dAtA[i:], m.MinInitialDepositRatio) - i = encodeVarintLegacy(dAtA, i, uint64(len(m.MinInitialDepositRatio))) + i = encodeVarintGovLegacy(dAtA, i, uint64(len(m.MinInitialDepositRatio))) i-- dAtA[i] = 0x4a } @@ -360,7 +360,7 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.VetoThreshold.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintLegacy(dAtA, i, uint64(size)) + i = encodeVarintGovLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 @@ -370,7 +370,7 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Threshold.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintLegacy(dAtA, i, uint64(size)) + i = encodeVarintGovLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a @@ -380,7 +380,7 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err2 } i -= n2 - i = encodeVarintLegacy(dAtA, i, uint64(n2)) + i = encodeVarintGovLegacy(dAtA, i, uint64(n2)) i-- dAtA[i] = 0x32 } @@ -390,7 +390,7 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Quorum.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintLegacy(dAtA, i, uint64(size)) + i = encodeVarintGovLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a @@ -400,7 +400,7 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err3 } i -= n3 - i = encodeVarintLegacy(dAtA, i, uint64(n3)) + i = encodeVarintGovLegacy(dAtA, i, uint64(n3)) i-- dAtA[i] = 0x22 } @@ -410,7 +410,7 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintLegacy(dAtA, i, uint64(size)) + i = encodeVarintGovLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -422,7 +422,7 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintLegacy(dAtA, i, uint64(size)) + i = encodeVarintGovLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -431,15 +431,15 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.MsgType) > 0 { i -= len(m.MsgType) copy(dAtA[i:], m.MsgType) - i = encodeVarintLegacy(dAtA, i, uint64(len(m.MsgType))) + i = encodeVarintGovLegacy(dAtA, i, uint64(len(m.MsgType))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintLegacy(dAtA []byte, offset int, v uint64) int { - offset -= sovLegacy(v) +func encodeVarintGovLegacy(dAtA []byte, offset int, v uint64) int { + offset -= sovGovLegacy(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -457,10 +457,10 @@ func (m *MsgUpdateParams) Size() (n int) { _ = l l = len(m.Authority) if l > 0 { - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) } l = m.Params.Size() - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) return n } @@ -472,33 +472,33 @@ func (m *LegacyParams) Size() (n int) { _ = l l = len(m.MsgType) if l > 0 { - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) } if len(m.MinDeposit) > 0 { for _, e := range m.MinDeposit { l = e.Size() - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) } } l = m.MinInitialDeposit.Size() - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) if m.VotingPeriod != nil { l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.VotingPeriod) - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) } l = m.Quorum.Size() - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) if m.MaxDepositPeriod != nil { l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.MaxDepositPeriod) - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) } l = m.Threshold.Size() - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) l = m.VetoThreshold.Size() - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) l = len(m.MinInitialDepositRatio) if l > 0 { - n += 1 + l + sovLegacy(uint64(l)) + n += 1 + l + sovGovLegacy(uint64(l)) } if m.BurnVoteQuorum { n += 2 @@ -512,11 +512,11 @@ func (m *LegacyParams) Size() (n int) { return n } -func sovLegacy(x uint64) (n int) { +func sovGovLegacy(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozLegacy(x uint64) (n int) { - return sovLegacy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozGovLegacy(x uint64) (n int) { + return sovGovLegacy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -526,7 +526,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -554,7 +554,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -568,11 +568,11 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -586,7 +586,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -599,11 +599,11 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -614,12 +614,12 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipLegacy(dAtA[iNdEx:]) + skippy, err := skipGovLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -641,7 +641,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -669,7 +669,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -683,11 +683,11 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -701,7 +701,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -714,11 +714,11 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -735,7 +735,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -748,11 +748,11 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -768,7 +768,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -781,11 +781,11 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -804,7 +804,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -818,11 +818,11 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -838,7 +838,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -851,11 +851,11 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -874,7 +874,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -888,11 +888,11 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -908,7 +908,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -922,11 +922,11 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -942,7 +942,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -956,11 +956,11 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -974,7 +974,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -994,7 +994,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1014,7 +1014,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowLegacy + return ErrIntOverflowGovLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1029,12 +1029,12 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { m.BurnVoteVeto = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipLegacy(dAtA[iNdEx:]) + skippy, err := skipGovLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthLegacy + return ErrInvalidLengthGovLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1048,7 +1048,7 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { } return nil } -func skipLegacy(dAtA []byte) (n int, err error) { +func skipGovLegacy(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -1056,7 +1056,7 @@ func skipLegacy(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowLegacy + return 0, ErrIntOverflowGovLegacy } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1073,7 +1073,7 @@ func skipLegacy(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowLegacy + return 0, ErrIntOverflowGovLegacy } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1089,7 +1089,7 @@ func skipLegacy(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowLegacy + return 0, ErrIntOverflowGovLegacy } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1102,14 +1102,14 @@ func skipLegacy(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthLegacy + return 0, ErrInvalidLengthGovLegacy } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupLegacy + return 0, ErrUnexpectedEndOfGroupGovLegacy } depth-- case 5: @@ -1118,7 +1118,7 @@ func skipLegacy(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthLegacy + return 0, ErrInvalidLengthGovLegacy } if depth == 0 { return iNdEx, nil @@ -1128,7 +1128,7 @@ func skipLegacy(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthLegacy = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowLegacy = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupLegacy = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthGovLegacy = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGovLegacy = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGovLegacy = fmt.Errorf("proto: unexpected end of group") ) diff --git a/types/legacy/gravity_legacy.pb.go b/types/legacy/gravity_legacy.pb.go new file mode 100644 index 000000000..c1689322d --- /dev/null +++ b/types/legacy/gravity_legacy.pb.go @@ -0,0 +1,3828 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: fx/gravity/v1/gravity_legacy.proto + +package legacy + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Deprecated: after upgrade v3 +type MsgValsetConfirm struct { + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + Orchestrator string `protobuf:"bytes,2,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"` + EthAddress string `protobuf:"bytes,3,opt,name=eth_address,json=ethAddress,proto3" json:"eth_address,omitempty"` + Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (m *MsgValsetConfirm) Reset() { *m = MsgValsetConfirm{} } +func (m *MsgValsetConfirm) String() string { return proto.CompactTextString(m) } +func (*MsgValsetConfirm) ProtoMessage() {} +func (*MsgValsetConfirm) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{0} +} +func (m *MsgValsetConfirm) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgValsetConfirm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgValsetConfirm.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 *MsgValsetConfirm) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgValsetConfirm.Merge(m, src) +} +func (m *MsgValsetConfirm) XXX_Size() int { + return m.Size() +} +func (m *MsgValsetConfirm) XXX_DiscardUnknown() { + xxx_messageInfo_MsgValsetConfirm.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgValsetConfirm proto.InternalMessageInfo + +func (m *MsgValsetConfirm) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *MsgValsetConfirm) GetOrchestrator() string { + if m != nil { + return m.Orchestrator + } + return "" +} + +func (m *MsgValsetConfirm) GetEthAddress() string { + if m != nil { + return m.EthAddress + } + return "" +} + +func (m *MsgValsetConfirm) GetSignature() string { + if m != nil { + return m.Signature + } + return "" +} + +// Deprecated: after upgrade v3 +type MsgSendToEth struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + EthDest string `protobuf:"bytes,2,opt,name=eth_dest,json=ethDest,proto3" json:"eth_dest,omitempty"` + Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` + BridgeFee types.Coin `protobuf:"bytes,4,opt,name=bridge_fee,json=bridgeFee,proto3" json:"bridge_fee"` +} + +func (m *MsgSendToEth) Reset() { *m = MsgSendToEth{} } +func (m *MsgSendToEth) String() string { return proto.CompactTextString(m) } +func (*MsgSendToEth) ProtoMessage() {} +func (*MsgSendToEth) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{1} +} +func (m *MsgSendToEth) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSendToEth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSendToEth.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 *MsgSendToEth) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSendToEth.Merge(m, src) +} +func (m *MsgSendToEth) XXX_Size() int { + return m.Size() +} +func (m *MsgSendToEth) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSendToEth.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSendToEth proto.InternalMessageInfo + +func (m *MsgSendToEth) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *MsgSendToEth) GetEthDest() string { + if m != nil { + return m.EthDest + } + return "" +} + +func (m *MsgSendToEth) GetAmount() types.Coin { + if m != nil { + return m.Amount + } + return types.Coin{} +} + +func (m *MsgSendToEth) GetBridgeFee() types.Coin { + if m != nil { + return m.BridgeFee + } + return types.Coin{} +} + +// Deprecated: after upgrade v3 +type MsgRequestBatch struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + MinimumFee cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=minimum_fee,json=minimumFee,proto3,customtype=cosmossdk.io/math.Int" json:"minimum_fee"` + FeeReceive string `protobuf:"bytes,4,opt,name=feeReceive,proto3" json:"feeReceive,omitempty"` + BaseFee cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=base_fee,json=baseFee,proto3,customtype=cosmossdk.io/math.Int" json:"base_fee"` +} + +func (m *MsgRequestBatch) Reset() { *m = MsgRequestBatch{} } +func (m *MsgRequestBatch) String() string { return proto.CompactTextString(m) } +func (*MsgRequestBatch) ProtoMessage() {} +func (*MsgRequestBatch) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{2} +} +func (m *MsgRequestBatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRequestBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRequestBatch.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 *MsgRequestBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestBatch.Merge(m, src) +} +func (m *MsgRequestBatch) XXX_Size() int { + return m.Size() +} +func (m *MsgRequestBatch) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestBatch.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRequestBatch proto.InternalMessageInfo + +func (m *MsgRequestBatch) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *MsgRequestBatch) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *MsgRequestBatch) GetFeeReceive() string { + if m != nil { + return m.FeeReceive + } + return "" +} + +// Deprecated: after upgrade v3 +type MsgConfirmBatch struct { + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + TokenContract string `protobuf:"bytes,2,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"` + EthSigner string `protobuf:"bytes,3,opt,name=eth_signer,json=ethSigner,proto3" json:"eth_signer,omitempty"` + Orchestrator string `protobuf:"bytes,4,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"` + Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (m *MsgConfirmBatch) Reset() { *m = MsgConfirmBatch{} } +func (m *MsgConfirmBatch) String() string { return proto.CompactTextString(m) } +func (*MsgConfirmBatch) ProtoMessage() {} +func (*MsgConfirmBatch) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{3} +} +func (m *MsgConfirmBatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgConfirmBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgConfirmBatch.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 *MsgConfirmBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgConfirmBatch.Merge(m, src) +} +func (m *MsgConfirmBatch) XXX_Size() int { + return m.Size() +} +func (m *MsgConfirmBatch) XXX_DiscardUnknown() { + xxx_messageInfo_MsgConfirmBatch.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgConfirmBatch proto.InternalMessageInfo + +func (m *MsgConfirmBatch) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *MsgConfirmBatch) GetTokenContract() string { + if m != nil { + return m.TokenContract + } + return "" +} + +func (m *MsgConfirmBatch) GetEthSigner() string { + if m != nil { + return m.EthSigner + } + return "" +} + +func (m *MsgConfirmBatch) GetOrchestrator() string { + if m != nil { + return m.Orchestrator + } + return "" +} + +func (m *MsgConfirmBatch) GetSignature() string { + if m != nil { + return m.Signature + } + return "" +} + +// Deprecated: after upgrade v3 +type MsgDepositClaim struct { + EventNonce uint64 `protobuf:"varint,1,opt,name=event_nonce,json=eventNonce,proto3" json:"event_nonce,omitempty"` + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + TokenContract string `protobuf:"bytes,3,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"` + Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + EthSender string `protobuf:"bytes,5,opt,name=eth_sender,json=ethSender,proto3" json:"eth_sender,omitempty"` + FxReceiver string `protobuf:"bytes,6,opt,name=fx_receiver,json=fxReceiver,proto3" json:"fx_receiver,omitempty"` + TargetIbc string `protobuf:"bytes,7,opt,name=target_ibc,json=targetIbc,proto3" json:"target_ibc,omitempty"` + Orchestrator string `protobuf:"bytes,8,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"` +} + +func (m *MsgDepositClaim) Reset() { *m = MsgDepositClaim{} } +func (m *MsgDepositClaim) String() string { return proto.CompactTextString(m) } +func (*MsgDepositClaim) ProtoMessage() {} +func (*MsgDepositClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{4} +} +func (m *MsgDepositClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDepositClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDepositClaim.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 *MsgDepositClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDepositClaim.Merge(m, src) +} +func (m *MsgDepositClaim) XXX_Size() int { + return m.Size() +} +func (m *MsgDepositClaim) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDepositClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDepositClaim proto.InternalMessageInfo + +func (m *MsgDepositClaim) GetEventNonce() uint64 { + if m != nil { + return m.EventNonce + } + return 0 +} + +func (m *MsgDepositClaim) GetBlockHeight() uint64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *MsgDepositClaim) GetTokenContract() string { + if m != nil { + return m.TokenContract + } + return "" +} + +func (m *MsgDepositClaim) GetEthSender() string { + if m != nil { + return m.EthSender + } + return "" +} + +func (m *MsgDepositClaim) GetFxReceiver() string { + if m != nil { + return m.FxReceiver + } + return "" +} + +func (m *MsgDepositClaim) GetTargetIbc() string { + if m != nil { + return m.TargetIbc + } + return "" +} + +func (m *MsgDepositClaim) GetOrchestrator() string { + if m != nil { + return m.Orchestrator + } + return "" +} + +// Deprecated: after upgrade v3 +type MsgWithdrawClaim struct { + EventNonce uint64 `protobuf:"varint,1,opt,name=event_nonce,json=eventNonce,proto3" json:"event_nonce,omitempty"` + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + BatchNonce uint64 `protobuf:"varint,3,opt,name=batch_nonce,json=batchNonce,proto3" json:"batch_nonce,omitempty"` + TokenContract string `protobuf:"bytes,4,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"` + Orchestrator string `protobuf:"bytes,5,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"` +} + +func (m *MsgWithdrawClaim) Reset() { *m = MsgWithdrawClaim{} } +func (m *MsgWithdrawClaim) String() string { return proto.CompactTextString(m) } +func (*MsgWithdrawClaim) ProtoMessage() {} +func (*MsgWithdrawClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{5} +} +func (m *MsgWithdrawClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgWithdrawClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgWithdrawClaim.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 *MsgWithdrawClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgWithdrawClaim.Merge(m, src) +} +func (m *MsgWithdrawClaim) XXX_Size() int { + return m.Size() +} +func (m *MsgWithdrawClaim) XXX_DiscardUnknown() { + xxx_messageInfo_MsgWithdrawClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgWithdrawClaim proto.InternalMessageInfo + +func (m *MsgWithdrawClaim) GetEventNonce() uint64 { + if m != nil { + return m.EventNonce + } + return 0 +} + +func (m *MsgWithdrawClaim) GetBlockHeight() uint64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *MsgWithdrawClaim) GetBatchNonce() uint64 { + if m != nil { + return m.BatchNonce + } + return 0 +} + +func (m *MsgWithdrawClaim) GetTokenContract() string { + if m != nil { + return m.TokenContract + } + return "" +} + +func (m *MsgWithdrawClaim) GetOrchestrator() string { + if m != nil { + return m.Orchestrator + } + return "" +} + +// Deprecated: after upgrade v3 +type MsgCancelSendToEth struct { + TransactionId uint64 `protobuf:"varint,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` +} + +func (m *MsgCancelSendToEth) Reset() { *m = MsgCancelSendToEth{} } +func (m *MsgCancelSendToEth) String() string { return proto.CompactTextString(m) } +func (*MsgCancelSendToEth) ProtoMessage() {} +func (*MsgCancelSendToEth) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{6} +} +func (m *MsgCancelSendToEth) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCancelSendToEth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCancelSendToEth.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 *MsgCancelSendToEth) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCancelSendToEth.Merge(m, src) +} +func (m *MsgCancelSendToEth) XXX_Size() int { + return m.Size() +} +func (m *MsgCancelSendToEth) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCancelSendToEth.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCancelSendToEth proto.InternalMessageInfo + +func (m *MsgCancelSendToEth) GetTransactionId() uint64 { + if m != nil { + return m.TransactionId + } + return 0 +} + +func (m *MsgCancelSendToEth) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +// Deprecated: after upgrade v3 +type MsgValsetUpdatedClaim struct { + EventNonce uint64 `protobuf:"varint,1,opt,name=event_nonce,json=eventNonce,proto3" json:"event_nonce,omitempty"` + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + ValsetNonce uint64 `protobuf:"varint,3,opt,name=valset_nonce,json=valsetNonce,proto3" json:"valset_nonce,omitempty"` + Members []*BridgeValidator `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` + Orchestrator string `protobuf:"bytes,6,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"` +} + +func (m *MsgValsetUpdatedClaim) Reset() { *m = MsgValsetUpdatedClaim{} } +func (m *MsgValsetUpdatedClaim) String() string { return proto.CompactTextString(m) } +func (*MsgValsetUpdatedClaim) ProtoMessage() {} +func (*MsgValsetUpdatedClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{7} +} +func (m *MsgValsetUpdatedClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgValsetUpdatedClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgValsetUpdatedClaim.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 *MsgValsetUpdatedClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgValsetUpdatedClaim.Merge(m, src) +} +func (m *MsgValsetUpdatedClaim) XXX_Size() int { + return m.Size() +} +func (m *MsgValsetUpdatedClaim) XXX_DiscardUnknown() { + xxx_messageInfo_MsgValsetUpdatedClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgValsetUpdatedClaim proto.InternalMessageInfo + +func (m *MsgValsetUpdatedClaim) GetEventNonce() uint64 { + if m != nil { + return m.EventNonce + } + return 0 +} + +func (m *MsgValsetUpdatedClaim) GetBlockHeight() uint64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *MsgValsetUpdatedClaim) GetValsetNonce() uint64 { + if m != nil { + return m.ValsetNonce + } + return 0 +} + +func (m *MsgValsetUpdatedClaim) GetMembers() []*BridgeValidator { + if m != nil { + return m.Members + } + return nil +} + +func (m *MsgValsetUpdatedClaim) GetOrchestrator() string { + if m != nil { + return m.Orchestrator + } + return "" +} + +// Deprecated: after upgrade v3 +type BridgeValidator struct { + Power uint64 `protobuf:"varint,1,opt,name=power,proto3" json:"power,omitempty"` + EthAddress string `protobuf:"bytes,2,opt,name=eth_address,json=ethAddress,proto3" json:"eth_address,omitempty"` +} + +func (m *BridgeValidator) Reset() { *m = BridgeValidator{} } +func (m *BridgeValidator) String() string { return proto.CompactTextString(m) } +func (*BridgeValidator) ProtoMessage() {} +func (*BridgeValidator) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{8} +} +func (m *BridgeValidator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BridgeValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BridgeValidator.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 *BridgeValidator) XXX_Merge(src proto.Message) { + xxx_messageInfo_BridgeValidator.Merge(m, src) +} +func (m *BridgeValidator) XXX_Size() int { + return m.Size() +} +func (m *BridgeValidator) XXX_DiscardUnknown() { + xxx_messageInfo_BridgeValidator.DiscardUnknown(m) +} + +var xxx_messageInfo_BridgeValidator proto.InternalMessageInfo + +func (m *BridgeValidator) GetPower() uint64 { + if m != nil { + return m.Power + } + return 0 +} + +func (m *BridgeValidator) GetEthAddress() string { + if m != nil { + return m.EthAddress + } + return "" +} + +// Deprecated: after upgrade v3 +type MsgSetOrchestratorAddress struct { + Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + Orchestrator string `protobuf:"bytes,2,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"` + EthAddress string `protobuf:"bytes,3,opt,name=eth_address,json=ethAddress,proto3" json:"eth_address,omitempty"` +} + +func (m *MsgSetOrchestratorAddress) Reset() { *m = MsgSetOrchestratorAddress{} } +func (m *MsgSetOrchestratorAddress) String() string { return proto.CompactTextString(m) } +func (*MsgSetOrchestratorAddress) ProtoMessage() {} +func (*MsgSetOrchestratorAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{9} +} +func (m *MsgSetOrchestratorAddress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetOrchestratorAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetOrchestratorAddress.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 *MsgSetOrchestratorAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetOrchestratorAddress.Merge(m, src) +} +func (m *MsgSetOrchestratorAddress) XXX_Size() int { + return m.Size() +} +func (m *MsgSetOrchestratorAddress) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetOrchestratorAddress.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetOrchestratorAddress proto.InternalMessageInfo + +func (m *MsgSetOrchestratorAddress) GetValidator() string { + if m != nil { + return m.Validator + } + return "" +} + +func (m *MsgSetOrchestratorAddress) GetOrchestrator() string { + if m != nil { + return m.Orchestrator + } + return "" +} + +func (m *MsgSetOrchestratorAddress) GetEthAddress() string { + if m != nil { + return m.EthAddress + } + return "" +} + +// Deprecated: after upgrade v3 +type MsgFxOriginatedTokenClaim struct { + EventNonce uint64 `protobuf:"varint,1,opt,name=event_nonce,json=eventNonce,proto3" json:"event_nonce,omitempty"` + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + TokenContract string `protobuf:"bytes,3,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Symbol string `protobuf:"bytes,5,opt,name=symbol,proto3" json:"symbol,omitempty"` + Decimals uint64 `protobuf:"varint,6,opt,name=decimals,proto3" json:"decimals,omitempty"` + Orchestrator string `protobuf:"bytes,7,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"` +} + +func (m *MsgFxOriginatedTokenClaim) Reset() { *m = MsgFxOriginatedTokenClaim{} } +func (m *MsgFxOriginatedTokenClaim) String() string { return proto.CompactTextString(m) } +func (*MsgFxOriginatedTokenClaim) ProtoMessage() {} +func (*MsgFxOriginatedTokenClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_bcc6d4f0faf73764, []int{10} +} +func (m *MsgFxOriginatedTokenClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgFxOriginatedTokenClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgFxOriginatedTokenClaim.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 *MsgFxOriginatedTokenClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgFxOriginatedTokenClaim.Merge(m, src) +} +func (m *MsgFxOriginatedTokenClaim) XXX_Size() int { + return m.Size() +} +func (m *MsgFxOriginatedTokenClaim) XXX_DiscardUnknown() { + xxx_messageInfo_MsgFxOriginatedTokenClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgFxOriginatedTokenClaim proto.InternalMessageInfo + +func (m *MsgFxOriginatedTokenClaim) GetEventNonce() uint64 { + if m != nil { + return m.EventNonce + } + return 0 +} + +func (m *MsgFxOriginatedTokenClaim) GetBlockHeight() uint64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *MsgFxOriginatedTokenClaim) GetTokenContract() string { + if m != nil { + return m.TokenContract + } + return "" +} + +func (m *MsgFxOriginatedTokenClaim) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MsgFxOriginatedTokenClaim) GetSymbol() string { + if m != nil { + return m.Symbol + } + return "" +} + +func (m *MsgFxOriginatedTokenClaim) GetDecimals() uint64 { + if m != nil { + return m.Decimals + } + return 0 +} + +func (m *MsgFxOriginatedTokenClaim) GetOrchestrator() string { + if m != nil { + return m.Orchestrator + } + return "" +} + +func init() { + proto.RegisterType((*MsgValsetConfirm)(nil), "fx.gravity.v1.MsgValsetConfirm") + proto.RegisterType((*MsgSendToEth)(nil), "fx.gravity.v1.MsgSendToEth") + proto.RegisterType((*MsgRequestBatch)(nil), "fx.gravity.v1.MsgRequestBatch") + proto.RegisterType((*MsgConfirmBatch)(nil), "fx.gravity.v1.MsgConfirmBatch") + proto.RegisterType((*MsgDepositClaim)(nil), "fx.gravity.v1.MsgDepositClaim") + proto.RegisterType((*MsgWithdrawClaim)(nil), "fx.gravity.v1.MsgWithdrawClaim") + proto.RegisterType((*MsgCancelSendToEth)(nil), "fx.gravity.v1.MsgCancelSendToEth") + proto.RegisterType((*MsgValsetUpdatedClaim)(nil), "fx.gravity.v1.MsgValsetUpdatedClaim") + proto.RegisterType((*BridgeValidator)(nil), "fx.gravity.v1.BridgeValidator") + proto.RegisterType((*MsgSetOrchestratorAddress)(nil), "fx.gravity.v1.MsgSetOrchestratorAddress") + proto.RegisterType((*MsgFxOriginatedTokenClaim)(nil), "fx.gravity.v1.MsgFxOriginatedTokenClaim") +} + +func init() { + proto.RegisterFile("fx/gravity/v1/gravity_legacy.proto", fileDescriptor_bcc6d4f0faf73764) +} + +var fileDescriptor_bcc6d4f0faf73764 = []byte{ + // 896 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xc1, 0x6e, 0xdb, 0x46, + 0x10, 0x35, 0x6d, 0x4a, 0xb2, 0x46, 0x76, 0x53, 0x10, 0x4e, 0x21, 0x1b, 0x8d, 0xe4, 0x10, 0x28, + 0xe0, 0x1e, 0x4a, 0xc2, 0x29, 0x8a, 0xe6, 0x14, 0xa0, 0x52, 0x6a, 0xc4, 0x07, 0x27, 0x00, 0x9d, + 0xa6, 0x40, 0x2f, 0xc4, 0x92, 0x1c, 0x91, 0x0b, 0x8b, 0xbb, 0xea, 0xee, 0x4a, 0x91, 0x2f, 0xfd, + 0x81, 0x5e, 0xfa, 0x27, 0xbd, 0xf5, 0xd0, 0x63, 0x4f, 0x39, 0xe6, 0xd8, 0x16, 0x45, 0x50, 0xd8, + 0x7f, 0xd0, 0x2f, 0x28, 0xb8, 0xbb, 0xb2, 0x65, 0x49, 0x01, 0x7c, 0x30, 0x72, 0xdb, 0x7d, 0xdc, + 0x99, 0x7d, 0xf3, 0xe6, 0x71, 0x48, 0xf0, 0x07, 0xd3, 0x30, 0x17, 0x64, 0x42, 0xd5, 0x79, 0x38, + 0x39, 0x9c, 0x2d, 0xe3, 0x21, 0xe6, 0x24, 0x3d, 0x0f, 0x46, 0x82, 0x2b, 0xee, 0x6d, 0x0f, 0xa6, + 0x81, 0x7d, 0x10, 0x4c, 0x0e, 0xf7, 0x3a, 0x29, 0x97, 0x25, 0x97, 0x61, 0x42, 0x24, 0x86, 0x93, + 0xc3, 0x04, 0x15, 0x39, 0x0c, 0x53, 0x4e, 0x99, 0x39, 0xbe, 0xb7, 0x93, 0xf3, 0x9c, 0xeb, 0x65, + 0x58, 0xad, 0x0c, 0xea, 0xff, 0xec, 0xc0, 0xc7, 0x27, 0x32, 0x7f, 0x45, 0x86, 0x12, 0x55, 0x9f, + 0xb3, 0x01, 0x15, 0xa5, 0xb7, 0x03, 0x35, 0xc6, 0x59, 0x8a, 0x6d, 0x67, 0xdf, 0x39, 0x70, 0x23, + 0xb3, 0xf1, 0x7c, 0xd8, 0xe2, 0x22, 0x2d, 0x50, 0x2a, 0x41, 0x14, 0x17, 0xed, 0xf5, 0x7d, 0xe7, + 0xa0, 0x19, 0xdd, 0xc0, 0xbc, 0x2e, 0xb4, 0x50, 0x15, 0x31, 0xc9, 0x32, 0x81, 0x52, 0xb6, 0x37, + 0xf4, 0x11, 0x40, 0x55, 0x7c, 0x63, 0x10, 0xef, 0x53, 0x68, 0x4a, 0x9a, 0x33, 0xa2, 0xc6, 0x02, + 0xdb, 0xae, 0x7e, 0x7c, 0x0d, 0xf8, 0xbf, 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, 0xce, 0xcb, 0x84, 0x0f, 0xad, 0x71, + 0xed, 0xce, 0xdb, 0x83, 0xcd, 0x0c, 0x53, 0x5a, 0x92, 0xa1, 0xd4, 0xed, 0x71, 0xa3, 0xab, 0xfd, + 0x92, 0x2a, 0x8d, 0x65, 0x55, 0x7a, 0xfd, 0x37, 0x17, 0x1d, 0xe7, 0xed, 0x45, 0xc7, 0xf9, 0xf7, + 0xa2, 0xe3, 0xfc, 0x72, 0xd9, 0x59, 0x7b, 0x7b, 0xd9, 0x59, 0xfb, 0xf3, 0xb2, 0xb3, 0xf6, 0xc3, + 0xe7, 0x39, 0x55, 0xc5, 0x38, 0x09, 0x52, 0x5e, 0x86, 0x83, 0x31, 0xd3, 0x36, 0x9f, 0x86, 0x83, + 0xe9, 0x17, 0x29, 0x17, 0x18, 0xaa, 0xf3, 0x11, 0xca, 0xd0, 0xfc, 0x59, 0x24, 0x75, 0xfd, 0x57, + 0xf0, 0xe5, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x1f, 0x4f, 0x86, 0x80, 0x08, 0x00, 0x00, +} + +func (m *MsgValsetConfirm) 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 *MsgValsetConfirm) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgValsetConfirm) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x22 + } + if len(m.EthAddress) > 0 { + i -= len(m.EthAddress) + copy(dAtA[i:], m.EthAddress) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.EthAddress))) + i-- + dAtA[i] = 0x1a + } + if len(m.Orchestrator) > 0 { + i -= len(m.Orchestrator) + copy(dAtA[i:], m.Orchestrator) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Orchestrator))) + i-- + dAtA[i] = 0x12 + } + if m.Nonce != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgSendToEth) 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 *MsgSendToEth) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSendToEth) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.BridgeFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGravityLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGravityLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.EthDest) > 0 { + i -= len(m.EthDest) + copy(dAtA[i:], m.EthDest) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.EthDest))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRequestBatch) 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 *MsgRequestBatch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRequestBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.BaseFee.Size() + i -= size + if _, err := m.BaseFee.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGravityLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.FeeReceive) > 0 { + i -= len(m.FeeReceive) + copy(dAtA[i:], m.FeeReceive) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.FeeReceive))) + i-- + dAtA[i] = 0x22 + } + { + size := m.MinimumFee.Size() + i -= size + if _, err := m.MinimumFee.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGravityLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgConfirmBatch) 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 *MsgConfirmBatch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgConfirmBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x2a + } + if len(m.Orchestrator) > 0 { + i -= len(m.Orchestrator) + copy(dAtA[i:], m.Orchestrator) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Orchestrator))) + i-- + dAtA[i] = 0x22 + } + if len(m.EthSigner) > 0 { + i -= len(m.EthSigner) + copy(dAtA[i:], m.EthSigner) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.EthSigner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenContract) > 0 { + i -= len(m.TokenContract) + copy(dAtA[i:], m.TokenContract) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.TokenContract))) + i-- + dAtA[i] = 0x12 + } + if m.Nonce != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgDepositClaim) 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 *MsgDepositClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDepositClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Orchestrator) > 0 { + i -= len(m.Orchestrator) + copy(dAtA[i:], m.Orchestrator) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Orchestrator))) + i-- + dAtA[i] = 0x42 + } + if len(m.TargetIbc) > 0 { + i -= len(m.TargetIbc) + copy(dAtA[i:], m.TargetIbc) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.TargetIbc))) + i-- + dAtA[i] = 0x3a + } + if len(m.FxReceiver) > 0 { + i -= len(m.FxReceiver) + copy(dAtA[i:], m.FxReceiver) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.FxReceiver))) + i-- + dAtA[i] = 0x32 + } + if len(m.EthSender) > 0 { + i -= len(m.EthSender) + copy(dAtA[i:], m.EthSender) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.EthSender))) + i-- + dAtA[i] = 0x2a + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGravityLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.TokenContract) > 0 { + i -= len(m.TokenContract) + copy(dAtA[i:], m.TokenContract) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.TokenContract))) + i-- + dAtA[i] = 0x1a + } + if m.BlockHeight != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.EventNonce != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.EventNonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgWithdrawClaim) 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 *MsgWithdrawClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgWithdrawClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Orchestrator) > 0 { + i -= len(m.Orchestrator) + copy(dAtA[i:], m.Orchestrator) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Orchestrator))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenContract) > 0 { + i -= len(m.TokenContract) + copy(dAtA[i:], m.TokenContract) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.TokenContract))) + i-- + dAtA[i] = 0x22 + } + if m.BatchNonce != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.BatchNonce)) + i-- + dAtA[i] = 0x18 + } + if m.BlockHeight != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.EventNonce != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.EventNonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgCancelSendToEth) 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 *MsgCancelSendToEth) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCancelSendToEth) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x12 + } + if m.TransactionId != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.TransactionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgValsetUpdatedClaim) 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 *MsgValsetUpdatedClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgValsetUpdatedClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Orchestrator) > 0 { + i -= len(m.Orchestrator) + copy(dAtA[i:], m.Orchestrator) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Orchestrator))) + i-- + dAtA[i] = 0x32 + } + if len(m.Members) > 0 { + for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGravityLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.ValsetNonce != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.ValsetNonce)) + i-- + dAtA[i] = 0x18 + } + if m.BlockHeight != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.EventNonce != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.EventNonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BridgeValidator) 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 *BridgeValidator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BridgeValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EthAddress) > 0 { + i -= len(m.EthAddress) + copy(dAtA[i:], m.EthAddress) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.EthAddress))) + i-- + dAtA[i] = 0x12 + } + if m.Power != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.Power)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgSetOrchestratorAddress) 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 *MsgSetOrchestratorAddress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetOrchestratorAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EthAddress) > 0 { + i -= len(m.EthAddress) + copy(dAtA[i:], m.EthAddress) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.EthAddress))) + i-- + dAtA[i] = 0x1a + } + if len(m.Orchestrator) > 0 { + i -= len(m.Orchestrator) + copy(dAtA[i:], m.Orchestrator) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Orchestrator))) + i-- + dAtA[i] = 0x12 + } + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgFxOriginatedTokenClaim) 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 *MsgFxOriginatedTokenClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgFxOriginatedTokenClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Orchestrator) > 0 { + i -= len(m.Orchestrator) + copy(dAtA[i:], m.Orchestrator) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Orchestrator))) + i-- + dAtA[i] = 0x3a + } + if m.Decimals != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.Decimals)) + i-- + dAtA[i] = 0x30 + } + if len(m.Symbol) > 0 { + i -= len(m.Symbol) + copy(dAtA[i:], m.Symbol) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Symbol))) + i-- + dAtA[i] = 0x2a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x22 + } + if len(m.TokenContract) > 0 { + i -= len(m.TokenContract) + copy(dAtA[i:], m.TokenContract) + i = encodeVarintGravityLegacy(dAtA, i, uint64(len(m.TokenContract))) + i-- + dAtA[i] = 0x1a + } + if m.BlockHeight != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.EventNonce != 0 { + i = encodeVarintGravityLegacy(dAtA, i, uint64(m.EventNonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintGravityLegacy(dAtA []byte, offset int, v uint64) int { + offset -= sovGravityLegacy(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgValsetConfirm) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Nonce != 0 { + n += 1 + sovGravityLegacy(uint64(m.Nonce)) + } + l = len(m.Orchestrator) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.EthAddress) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + return n +} + +func (m *MsgSendToEth) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.EthDest) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovGravityLegacy(uint64(l)) + l = m.BridgeFee.Size() + n += 1 + l + sovGravityLegacy(uint64(l)) + return n +} + +func (m *MsgRequestBatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = m.MinimumFee.Size() + n += 1 + l + sovGravityLegacy(uint64(l)) + l = len(m.FeeReceive) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = m.BaseFee.Size() + n += 1 + l + sovGravityLegacy(uint64(l)) + return n +} + +func (m *MsgConfirmBatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Nonce != 0 { + n += 1 + sovGravityLegacy(uint64(m.Nonce)) + } + l = len(m.TokenContract) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.EthSigner) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.Orchestrator) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + return n +} + +func (m *MsgDepositClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EventNonce != 0 { + n += 1 + sovGravityLegacy(uint64(m.EventNonce)) + } + if m.BlockHeight != 0 { + n += 1 + sovGravityLegacy(uint64(m.BlockHeight)) + } + l = len(m.TokenContract) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovGravityLegacy(uint64(l)) + l = len(m.EthSender) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.FxReceiver) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.TargetIbc) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.Orchestrator) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + return n +} + +func (m *MsgWithdrawClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EventNonce != 0 { + n += 1 + sovGravityLegacy(uint64(m.EventNonce)) + } + if m.BlockHeight != 0 { + n += 1 + sovGravityLegacy(uint64(m.BlockHeight)) + } + if m.BatchNonce != 0 { + n += 1 + sovGravityLegacy(uint64(m.BatchNonce)) + } + l = len(m.TokenContract) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.Orchestrator) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + return n +} + +func (m *MsgCancelSendToEth) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TransactionId != 0 { + n += 1 + sovGravityLegacy(uint64(m.TransactionId)) + } + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + return n +} + +func (m *MsgValsetUpdatedClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EventNonce != 0 { + n += 1 + sovGravityLegacy(uint64(m.EventNonce)) + } + if m.BlockHeight != 0 { + n += 1 + sovGravityLegacy(uint64(m.BlockHeight)) + } + if m.ValsetNonce != 0 { + n += 1 + sovGravityLegacy(uint64(m.ValsetNonce)) + } + if len(m.Members) > 0 { + for _, e := range m.Members { + l = e.Size() + n += 1 + l + sovGravityLegacy(uint64(l)) + } + } + l = len(m.Orchestrator) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + return n +} + +func (m *BridgeValidator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Power != 0 { + n += 1 + sovGravityLegacy(uint64(m.Power)) + } + l = len(m.EthAddress) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + return n +} + +func (m *MsgSetOrchestratorAddress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.Orchestrator) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.EthAddress) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + return n +} + +func (m *MsgFxOriginatedTokenClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EventNonce != 0 { + n += 1 + sovGravityLegacy(uint64(m.EventNonce)) + } + if m.BlockHeight != 0 { + n += 1 + sovGravityLegacy(uint64(m.BlockHeight)) + } + l = len(m.TokenContract) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + l = len(m.Symbol) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + if m.Decimals != 0 { + n += 1 + sovGravityLegacy(uint64(m.Decimals)) + } + l = len(m.Orchestrator) + if l > 0 { + n += 1 + l + sovGravityLegacy(uint64(l)) + } + return n +} + +func sovGravityLegacy(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGravityLegacy(x uint64) (n int) { + return sovGravityLegacy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgValsetConfirm) 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 ErrIntOverflowGravityLegacy + } + 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: MsgValsetConfirm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgValsetConfirm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Orchestrator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Orchestrator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSendToEth) 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 ErrIntOverflowGravityLegacy + } + 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: MsgSendToEth: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSendToEth: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthDest", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthDest = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.BridgeFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRequestBatch) 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 ErrIntOverflowGravityLegacy + } + 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: MsgRequestBatch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRequestBatch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinimumFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MinimumFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeReceive", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeReceive = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.BaseFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgConfirmBatch) 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 ErrIntOverflowGravityLegacy + } + 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: MsgConfirmBatch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgConfirmBatch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenContract", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenContract = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthSigner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthSigner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Orchestrator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Orchestrator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDepositClaim) 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 ErrIntOverflowGravityLegacy + } + 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: MsgDepositClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDepositClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventNonce", wireType) + } + m.EventNonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EventNonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenContract", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenContract = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthSender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthSender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FxReceiver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FxReceiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetIbc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetIbc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Orchestrator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Orchestrator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgWithdrawClaim) 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 ErrIntOverflowGravityLegacy + } + 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: MsgWithdrawClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgWithdrawClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventNonce", wireType) + } + m.EventNonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EventNonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BatchNonce", wireType) + } + m.BatchNonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BatchNonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenContract", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenContract = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Orchestrator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Orchestrator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCancelSendToEth) 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 ErrIntOverflowGravityLegacy + } + 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: MsgCancelSendToEth: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCancelSendToEth: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) + } + m.TransactionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TransactionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgValsetUpdatedClaim) 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 ErrIntOverflowGravityLegacy + } + 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: MsgValsetUpdatedClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgValsetUpdatedClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventNonce", wireType) + } + m.EventNonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EventNonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValsetNonce", wireType) + } + m.ValsetNonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ValsetNonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Members = append(m.Members, &BridgeValidator{}) + if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Orchestrator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Orchestrator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BridgeValidator) 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 ErrIntOverflowGravityLegacy + } + 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: BridgeValidator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BridgeValidator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) + } + m.Power = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Power |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetOrchestratorAddress) 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 ErrIntOverflowGravityLegacy + } + 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: MsgSetOrchestratorAddress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetOrchestratorAddress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Orchestrator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Orchestrator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgFxOriginatedTokenClaim) 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 ErrIntOverflowGravityLegacy + } + 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: MsgFxOriginatedTokenClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgFxOriginatedTokenClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventNonce", wireType) + } + m.EventNonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EventNonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenContract", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenContract = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Symbol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + m.Decimals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimals |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Orchestrator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGravityLegacy + } + 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 ErrInvalidLengthGravityLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGravityLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Orchestrator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGravityLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGravityLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGravityLegacy(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGravityLegacy + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGravityLegacy + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGravityLegacy + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGravityLegacy + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGravityLegacy = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGravityLegacy = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGravityLegacy = fmt.Errorf("proto: unexpected end of group") +) diff --git a/types/legacy/ibc_legacy.pb.go b/types/legacy/ibc_legacy.pb.go new file mode 100644 index 000000000..c4e2df9d2 --- /dev/null +++ b/types/legacy/ibc_legacy.pb.go @@ -0,0 +1,736 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: fx/ibc/applications/transfer/v1/ibc_legacy.proto + +package legacy + +import ( + fmt "fmt" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" + types1 "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between +// ICS20 enabled chains. See ICS Spec here: +// https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures +type MsgTransfer struct { + // the port on which the packet will be sent + SourcePort string `protobuf:"bytes,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty" yaml:"source_port"` + // the channel by which the packet will be sent + SourceChannel string `protobuf:"bytes,2,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty" yaml:"source_channel"` + // the tokens to be transferred + Token types.Coin `protobuf:"bytes,3,opt,name=token,proto3" json:"token"` + // the sender address + Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` + // the recipient address on the destination chain + Receiver string `protobuf:"bytes,5,opt,name=receiver,proto3" json:"receiver,omitempty"` + // Timeout height relative to the current block height. + // The timeout is disabled when set to 0. + TimeoutHeight types1.Height `protobuf:"bytes,6,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height" yaml:"timeout_height"` + // Timeout timestamp (in nanoseconds) relative to the current block timestamp. + // The timeout is disabled when set to 0. + TimeoutTimestamp uint64 `protobuf:"varint,7,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty" yaml:"timeout_timestamp"` + // the router is hook destination chain + Router string `protobuf:"bytes,8,opt,name=router,proto3" json:"router,omitempty"` + // the tokens to be destination fee + Fee types.Coin `protobuf:"bytes,9,opt,name=fee,proto3" json:"fee"` + // optional memo + Memo string `protobuf:"bytes,10,opt,name=memo,proto3" json:"memo,omitempty"` +} + +func (m *MsgTransfer) Reset() { *m = MsgTransfer{} } +func (m *MsgTransfer) String() string { return proto.CompactTextString(m) } +func (*MsgTransfer) ProtoMessage() {} +func (*MsgTransfer) Descriptor() ([]byte, []int) { + return fileDescriptor_94c7270e688125fc, []int{0} +} +func (m *MsgTransfer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransfer.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 *MsgTransfer) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransfer.Merge(m, src) +} +func (m *MsgTransfer) XXX_Size() int { + return m.Size() +} +func (m *MsgTransfer) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransfer.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransfer proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgTransfer)(nil), "fx.ibc.applications.transfer.v1.MsgTransfer") +} + +func init() { + proto.RegisterFile("fx/ibc/applications/transfer/v1/ibc_legacy.proto", fileDescriptor_94c7270e688125fc) +} + +var fileDescriptor_94c7270e688125fc = []byte{ + // 498 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0xb5, 0x69, 0x1a, 0xd2, 0x8d, 0x5a, 0xc1, 0x0a, 0xaa, 0x6d, 0x04, 0x76, 0x64, 0x09, 0x29, + 0x1c, 0xd8, 0xc5, 0x20, 0x84, 0xd4, 0x13, 0x4a, 0x2e, 0x70, 0x40, 0x42, 0x56, 0x4f, 0x5c, 0x82, + 0xbd, 0x8c, 0x9d, 0x15, 0xb1, 0xd7, 0x5a, 0x6f, 0xa2, 0xe4, 0x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0xd2, 0x77, 0xfe, 0x5c, 0xfa, 0xce, 0x70, 0x74, 0xb5, + 0xf6, 0xdc, 0xeb, 0xb5, 0xe7, 0xfe, 0x5e, 0x7b, 0xee, 0xcf, 0x8d, 0xe7, 0x5c, 0x6f, 0x3c, 0xe7, + 0xd7, 0xc6, 0x73, 0x3e, 0x3f, 0xcf, 0x84, 0x9e, 0xcc, 0x12, 0xca, 0x65, 0xce, 0xd2, 0x59, 0xc1, + 0xcd, 0xc5, 0x2d, 0x58, 0xba, 0x78, 0x51, 0x9f, 0x96, 0x5e, 0x96, 0x50, 0x31, 0x7b, 0xf5, 0x49, + 0xbb, 0xbe, 0xab, 0xd7, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x84, 0x6a, 0x34, 0x2a, 0x03, + 0x00, 0x00, +} + +func (m *MsgTransfer) 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 *MsgTransfer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Memo) > 0 { + i -= len(m.Memo) + copy(dAtA[i:], m.Memo) + i = encodeVarintIbcLegacy(dAtA, i, uint64(len(m.Memo))) + i-- + dAtA[i] = 0x52 + } + { + size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbcLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + if len(m.Router) > 0 { + i -= len(m.Router) + copy(dAtA[i:], m.Router) + i = encodeVarintIbcLegacy(dAtA, i, uint64(len(m.Router))) + i-- + dAtA[i] = 0x42 + } + if m.TimeoutTimestamp != 0 { + i = encodeVarintIbcLegacy(dAtA, i, uint64(m.TimeoutTimestamp)) + i-- + dAtA[i] = 0x38 + } + { + size, err := m.TimeoutHeight.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbcLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintIbcLegacy(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x2a + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintIbcLegacy(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x22 + } + { + size, err := m.Token.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbcLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.SourceChannel) > 0 { + i -= len(m.SourceChannel) + copy(dAtA[i:], m.SourceChannel) + i = encodeVarintIbcLegacy(dAtA, i, uint64(len(m.SourceChannel))) + i-- + dAtA[i] = 0x12 + } + if len(m.SourcePort) > 0 { + i -= len(m.SourcePort) + copy(dAtA[i:], m.SourcePort) + i = encodeVarintIbcLegacy(dAtA, i, uint64(len(m.SourcePort))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintIbcLegacy(dAtA []byte, offset int, v uint64) int { + offset -= sovIbcLegacy(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgTransfer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SourcePort) + if l > 0 { + n += 1 + l + sovIbcLegacy(uint64(l)) + } + l = len(m.SourceChannel) + if l > 0 { + n += 1 + l + sovIbcLegacy(uint64(l)) + } + l = m.Token.Size() + n += 1 + l + sovIbcLegacy(uint64(l)) + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovIbcLegacy(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovIbcLegacy(uint64(l)) + } + l = m.TimeoutHeight.Size() + n += 1 + l + sovIbcLegacy(uint64(l)) + if m.TimeoutTimestamp != 0 { + n += 1 + sovIbcLegacy(uint64(m.TimeoutTimestamp)) + } + l = len(m.Router) + if l > 0 { + n += 1 + l + sovIbcLegacy(uint64(l)) + } + l = m.Fee.Size() + n += 1 + l + sovIbcLegacy(uint64(l)) + l = len(m.Memo) + if l > 0 { + n += 1 + l + sovIbcLegacy(uint64(l)) + } + return n +} + +func sovIbcLegacy(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozIbcLegacy(x uint64) (n int) { + return sovIbcLegacy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgTransfer) 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 ErrIntOverflowIbcLegacy + } + 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: MsgTransfer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransfer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourcePort", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + 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 ErrInvalidLengthIbcLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIbcLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourcePort = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChannel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + 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 ErrInvalidLengthIbcLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIbcLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceChannel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbcLegacy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbcLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + 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 ErrInvalidLengthIbcLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIbcLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + 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 ErrInvalidLengthIbcLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIbcLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeoutHeight", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbcLegacy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbcLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TimeoutHeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeoutTimestamp", wireType) + } + m.TimeoutTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TimeoutTimestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Router", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + 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 ErrInvalidLengthIbcLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIbcLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Router = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbcLegacy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbcLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbcLegacy + } + 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 ErrInvalidLengthIbcLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIbcLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Memo = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIbcLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbcLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipIbcLegacy(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIbcLegacy + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIbcLegacy + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIbcLegacy + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthIbcLegacy + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupIbcLegacy + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthIbcLegacy + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthIbcLegacy = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowIbcLegacy = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupIbcLegacy = fmt.Errorf("proto: unexpected end of group") +) diff --git a/types/legacy/staking_legacy.pb.go b/types/legacy/staking_legacy.pb.go new file mode 100644 index 000000000..4c30f956a --- /dev/null +++ b/types/legacy/staking_legacy.pb.go @@ -0,0 +1,774 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: fx/staking/v1/staking_legacy.proto + +package legacy + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type MsgGrantPrivilege struct { + ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + FromAddress string `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` + ToPubkey *types.Any `protobuf:"bytes,3,opt,name=to_pubkey,json=toPubkey,proto3" json:"to_pubkey,omitempty"` + Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (m *MsgGrantPrivilege) Reset() { *m = MsgGrantPrivilege{} } +func (m *MsgGrantPrivilege) String() string { return proto.CompactTextString(m) } +func (*MsgGrantPrivilege) ProtoMessage() {} +func (*MsgGrantPrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_74ac4460055f235c, []int{0} +} +func (m *MsgGrantPrivilege) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGrantPrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGrantPrivilege.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 *MsgGrantPrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGrantPrivilege.Merge(m, src) +} +func (m *MsgGrantPrivilege) XXX_Size() int { + return m.Size() +} +func (m *MsgGrantPrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGrantPrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgGrantPrivilege proto.InternalMessageInfo + +func (m *MsgGrantPrivilege) GetValidatorAddress() string { + if m != nil { + return m.ValidatorAddress + } + return "" +} + +func (m *MsgGrantPrivilege) GetFromAddress() string { + if m != nil { + return m.FromAddress + } + return "" +} + +func (m *MsgGrantPrivilege) GetToPubkey() *types.Any { + if m != nil { + return m.ToPubkey + } + return nil +} + +func (m *MsgGrantPrivilege) GetSignature() string { + if m != nil { + return m.Signature + } + return "" +} + +type MsgEditConsensusPubKey struct { + ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + Pubkey *types.Any `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` +} + +func (m *MsgEditConsensusPubKey) Reset() { *m = MsgEditConsensusPubKey{} } +func (m *MsgEditConsensusPubKey) String() string { return proto.CompactTextString(m) } +func (*MsgEditConsensusPubKey) ProtoMessage() {} +func (*MsgEditConsensusPubKey) Descriptor() ([]byte, []int) { + return fileDescriptor_74ac4460055f235c, []int{1} +} +func (m *MsgEditConsensusPubKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgEditConsensusPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgEditConsensusPubKey.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 *MsgEditConsensusPubKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgEditConsensusPubKey.Merge(m, src) +} +func (m *MsgEditConsensusPubKey) XXX_Size() int { + return m.Size() +} +func (m *MsgEditConsensusPubKey) XXX_DiscardUnknown() { + xxx_messageInfo_MsgEditConsensusPubKey.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgEditConsensusPubKey proto.InternalMessageInfo + +func (m *MsgEditConsensusPubKey) GetValidatorAddress() string { + if m != nil { + return m.ValidatorAddress + } + return "" +} + +func (m *MsgEditConsensusPubKey) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgEditConsensusPubKey) GetPubkey() *types.Any { + if m != nil { + return m.Pubkey + } + return nil +} + +func init() { + proto.RegisterType((*MsgGrantPrivilege)(nil), "fx.staking.v1.MsgGrantPrivilege") + proto.RegisterType((*MsgEditConsensusPubKey)(nil), "fx.staking.v1.MsgEditConsensusPubKey") +} + +func init() { + proto.RegisterFile("fx/staking/v1/staking_legacy.proto", fileDescriptor_74ac4460055f235c) +} + +var fileDescriptor_74ac4460055f235c = []byte{ + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0xc1, 0x6a, 0xea, 0x40, + 0x14, 0x75, 0xde, 0x13, 0x79, 0x8e, 0xef, 0xc1, 0x33, 0xc8, 0x23, 0xca, 0x23, 0x58, 0x57, 0x96, + 0xe2, 0x0c, 0xb6, 0x5f, 0xa0, 0xd2, 0x76, 0x21, 0x82, 0xb8, 0xec, 0x26, 0x4c, 0x92, 0xc9, 0x74, + 0x30, 0xce, 0x84, 0x99, 0x49, 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xc8, 0x65, 0x31, 0x6f, 0xfd, + 0x87, 0x4d, 0xcd, 0x99, 0x20, 0x26, 0x51, 0xd4, 0xae, 0x17, 0xc7, 0x3e, 0x81, 0xc1, 0x23, 0x80, + 0xff, 0x16, 0x9a, 0x5d, 0x07, 0xdc, 0xcc, 0xa4, 0xd0, 0x54, 0xe8, 0x44, 0x97, 0x2b, 0xbe, 0x96, + 0xca, 0x82, 0xf5, 0x43, 0x82, 0x2a, 0x4d, 0x51, 0x5b, 0x37, 0xb0, 0xf1, 0xad, 0x0c, 0xd5, 0xf4, + 0x74, 0xf6, 0xbc, 0x73, 0xc0, 0x76, 0xe7, 0x80, 0xf7, 0x9d, 0x03, 0x1e, 0xf6, 0x4e, 0x6d, 0xbb, + 0x77, 0x6a, 0x6f, 0x7b, 0xa7, 0x76, 0x77, 0xce, 0xb8, 0xb9, 0x4f, 0x3c, 0xe4, 0xcb, 0x0d, 0x0e, + 0x13, 0xe1, 0x1b, 0x2e, 0x45, 0x86, 0xc3, 0x6c, 0xe4, 0x4b, 0x45, 0xb1, 0xc9, 0x63, 0xaa, 0x71, + 0xf9, 0x04, 0x5e, 0xa3, 0x38, 0x7a, 0xf5, 0x11, 0x00, 0x00, 0xff, 0xff, 0x45, 0x99, 0x6c, 0x8d, + 0x2b, 0x02, 0x00, 0x00, +} + +func (m *MsgGrantPrivilege) 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 *MsgGrantPrivilege) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGrantPrivilege) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintStakingLegacy(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x22 + } + if m.ToPubkey != nil { + { + size, err := m.ToPubkey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStakingLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.FromAddress) > 0 { + i -= len(m.FromAddress) + copy(dAtA[i:], m.FromAddress) + i = encodeVarintStakingLegacy(dAtA, i, uint64(len(m.FromAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.ValidatorAddress) > 0 { + i -= len(m.ValidatorAddress) + copy(dAtA[i:], m.ValidatorAddress) + i = encodeVarintStakingLegacy(dAtA, i, uint64(len(m.ValidatorAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgEditConsensusPubKey) 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 *MsgEditConsensusPubKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgEditConsensusPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pubkey != nil { + { + size, err := m.Pubkey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStakingLegacy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintStakingLegacy(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ValidatorAddress) > 0 { + i -= len(m.ValidatorAddress) + copy(dAtA[i:], m.ValidatorAddress) + i = encodeVarintStakingLegacy(dAtA, i, uint64(len(m.ValidatorAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintStakingLegacy(dAtA []byte, offset int, v uint64) int { + offset -= sovStakingLegacy(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgGrantPrivilege) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ValidatorAddress) + if l > 0 { + n += 1 + l + sovStakingLegacy(uint64(l)) + } + l = len(m.FromAddress) + if l > 0 { + n += 1 + l + sovStakingLegacy(uint64(l)) + } + if m.ToPubkey != nil { + l = m.ToPubkey.Size() + n += 1 + l + sovStakingLegacy(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovStakingLegacy(uint64(l)) + } + return n +} + +func (m *MsgEditConsensusPubKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ValidatorAddress) + if l > 0 { + n += 1 + l + sovStakingLegacy(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovStakingLegacy(uint64(l)) + } + if m.Pubkey != nil { + l = m.Pubkey.Size() + n += 1 + l + sovStakingLegacy(uint64(l)) + } + return n +} + +func sovStakingLegacy(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozStakingLegacy(x uint64) (n int) { + return sovStakingLegacy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgGrantPrivilege) 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 ErrIntOverflowStakingLegacy + } + 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: MsgGrantPrivilege: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgGrantPrivilege: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStakingLegacy + } + 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 ErrInvalidLengthStakingLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStakingLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FromAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStakingLegacy + } + 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 ErrInvalidLengthStakingLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStakingLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FromAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToPubkey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStakingLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthStakingLegacy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStakingLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ToPubkey == nil { + m.ToPubkey = &types.Any{} + } + if err := m.ToPubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStakingLegacy + } + 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 ErrInvalidLengthStakingLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStakingLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStakingLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStakingLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgEditConsensusPubKey) 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 ErrIntOverflowStakingLegacy + } + 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: MsgEditConsensusPubKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgEditConsensusPubKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStakingLegacy + } + 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 ErrInvalidLengthStakingLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStakingLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStakingLegacy + } + 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 ErrInvalidLengthStakingLegacy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStakingLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStakingLegacy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthStakingLegacy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStakingLegacy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pubkey == nil { + m.Pubkey = &types.Any{} + } + if err := m.Pubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStakingLegacy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStakingLegacy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipStakingLegacy(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowStakingLegacy + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowStakingLegacy + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowStakingLegacy + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthStakingLegacy + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupStakingLegacy + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthStakingLegacy + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthStakingLegacy = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowStakingLegacy = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupStakingLegacy = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/evm/types/codec.go b/x/evm/types/codec.go index 8045e15b0..1060d93e5 100644 --- a/x/evm/types/codec.go +++ b/x/evm/types/codec.go @@ -8,7 +8,7 @@ import ( govv1betal "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" "github.com/evmos/ethermint/crypto/ethsecp256k1" - "github.com/functionx/fx-core/v8/x/evm/legacy" + "github.com/functionx/fx-core/v8/types/legacy" ) // RegisterInterfaces registers the client interfaces to protobuf Any. diff --git a/x/gov/legacy/legacy_msg.go b/x/gov/legacy/legacy_msg.go deleted file mode 100644 index e9f4953f8..000000000 --- a/x/gov/legacy/legacy_msg.go +++ /dev/null @@ -1,33 +0,0 @@ -package legacy - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" -) - -var _ sdk.Msg = &MsgUpdateParams{} - -// Route returns the MsgUpdateParams message route. -func (m *MsgUpdateParams) Route() string { return govtypes.ModuleName } - -// Type returns the MsgUpdateParams message type. -func (m *MsgUpdateParams) Type() string { return "" } - -// GetSignBytes returns the raw bytes for a MsgUpdateParams message that -// the expected signer needs to sign. -func (m *MsgUpdateParams) GetSignBytes() []byte { - return []byte{} -} - -// GetSigners returns the expected signers for a MsgUpdateParams message. -func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress { - return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.Authority)} -} - -func (m *MsgUpdateParams) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil { - return errorsmod.Wrap(err, "authority") - } - return nil -} diff --git a/x/gov/types/codec.go b/x/gov/types/codec.go index ea7b2c933..1dcedc9b7 100644 --- a/x/gov/types/codec.go +++ b/x/gov/types/codec.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" - "github.com/functionx/fx-core/v8/x/gov/legacy" + "github.com/functionx/fx-core/v8/types/legacy" ) // RegisterInterfaces register implementations