From 4e73e0f817b3e9ab75937c705fb49c6e5ae99eb0 Mon Sep 17 00:00:00 2001 From: Cory Date: Thu, 18 Jun 2020 10:04:26 -0700 Subject: [PATCH] Update proto files & definitions in accordance with ADR023 (#6413) * consolidate proto files into single directory, turn on PACKAGE_DIRECTORY_MATCH linting * add third_party root for third party proto files * move ibc proto files to top level folder, rename .proto files to types.proto as before * update protocgen script, and run code generation * move vesting proto definition to cosmos namespace, rename from types.proto in alignment with buf.build naming conventions * update Makefile so proto dependencies are set with new structure when updated * add comment for sed usage in makefile * remove unused aliases of proto generated types * add settings.json instructions to contributing.md for including protobuf paths Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Aaron Craelius --- CONTRIBUTING.md | 15 + Makefile | 17 +- buf.yaml | 14 +- crypto/types/{types.pb.go => crypto.pb.go} | 249 ++-- .../cosmos/auth/auth.proto | 6 +- .../cosmos/bank/bank.proto | 16 +- .../types => proto/cosmos/bank}/query.proto | 12 +- .../cosmos/capability/capability.proto | 5 +- .../types.proto => proto/cosmos/cosmos.proto | 6 +- .../cosmos/crisis/crisis.proto | 4 +- .../cosmos/crypto/crypto.proto | 4 +- .../cosmos/distribution/distribution.proto | 20 +- .../cosmos/evidence/evidence.proto | 4 +- .../types.proto => proto/cosmos/gov/gov.proto | 16 +- .../cosmos/mint/mint.proto | 6 +- .../cosmos/params/params.proto | 4 +- .../cosmos/slashing/slashing.proto | 4 +- .../cosmos/staking/staking.proto | 16 +- .../cosmos/tx/signing/signing.proto | 2 +- .../types.proto => proto/cosmos/tx/tx.proto | 18 +- .../cosmos/upgrade/upgrade.proto | 4 +- .../cosmos/vesting/vesting.proto | 18 +- .../ibc/channel/channel.proto | 4 +- .../ibc/commitment/commitment.proto | 8 +- .../ibc/connection/connection.proto | 8 +- .../ibc/localhost/localhost.proto | 4 +- .../ibc/transfer/transfer.proto | 12 +- scripts/protocgen.sh | 10 +- .../cosmos.proto | 0 third_party/proto/google/protobuf/any.proto | 2 +- .../proto/tendermint/abci/types/types.proto | 6 +- .../tendermint/crypto/merkle/merkle.proto | 2 +- .../proto/tendermint/libs/kv/types.proto | 2 +- types/{types.pb.go => cosmos.pb.go} | 401 +++--- .../tx/signing/{types.pb.go => signing.pb.go} | 40 +- types/tx/{types.pb.go => tx.pb.go} | 472 ++++--- x/auth/types/{types.pb.go => auth.pb.go} | 249 ++-- .../types/{types.pb.go => vesting.pb.go} | 286 ++-- x/bank/types/{types.pb.go => bank.pb.go} | 258 ++-- x/bank/types/query.pb.go | 127 +- .../types/{types.pb.go => capability.pb.go} | 156 +-- x/crisis/types/{types.pb.go => crisis.pb.go} | 117 +- .../types/{types.pb.go => distribution.pb.go} | 605 ++++----- .../types/{types.pb.go => evidence.pb.go} | 165 ++- x/gov/types/{types.pb.go => gov.pb.go} | 580 ++++---- .../types/{types.pb.go => transfer.pb.go} | 241 ++-- .../types/{types.pb.go => connection.pb.go} | 552 ++++---- x/ibc/04-channel/alias.go | 3 - .../types/{types.pb.go => channel.pb.go} | 892 ++++++------ .../types/{types.pb.go => localhost.pb.go} | 89 +- .../types/{types.pb.go => commitment.pb.go} | 256 ++-- x/mint/types/{types.pb.go => mint.pb.go} | 193 ++- .../proposal/{types.pb.go => params.pb.go} | 163 ++- .../types/{types.pb.go => slashing.pb.go} | 179 ++- .../types/{types.pb.go => staking.pb.go} | 1198 ++++++++--------- .../types/{types.pb.go => upgrade.pb.go} | 213 ++- 56 files changed, 3969 insertions(+), 3984 deletions(-) rename crypto/types/{types.pb.go => crypto.pb.go} (79%) rename x/auth/types/types.proto => proto/cosmos/auth/auth.proto (93%) rename x/bank/types/types.proto => proto/cosmos/bank/bank.proto (85%) rename {x/bank/types => proto/cosmos/bank}/query.proto (84%) rename x/capability/types/types.proto => proto/cosmos/capability/capability.proto (91%) rename types/types.proto => proto/cosmos/cosmos.proto (95%) rename x/crisis/types/types.proto => proto/cosmos/crisis/crisis.proto (86%) rename crypto/types/types.proto => proto/cosmos/crypto/crypto.proto (95%) rename x/distribution/types/types.proto => proto/cosmos/distribution/distribution.proto (93%) rename x/evidence/types/types.proto => proto/cosmos/evidence/evidence.proto (93%) rename x/gov/types/types.proto => proto/cosmos/gov/gov.proto (95%) rename x/mint/types/types.proto => proto/cosmos/mint/mint.proto (93%) rename x/params/types/proposal/types.proto => proto/cosmos/params/params.proto (89%) rename x/slashing/types/types.proto => proto/cosmos/slashing/slashing.proto (94%) rename x/staking/types/types.proto => proto/cosmos/staking/staking.proto (97%) rename types/tx/signing/types.proto => proto/cosmos/tx/signing/signing.proto (95%) rename types/tx/types.proto => proto/cosmos/tx/tx.proto (92%) rename x/upgrade/types/types.proto => proto/cosmos/upgrade/upgrade.proto (95%) rename x/auth/vesting/types/types.proto => proto/cosmos/vesting/vesting.proto (86%) rename x/ibc/04-channel/types/types.proto => proto/ibc/channel/channel.proto (99%) rename x/ibc/23-commitment/types/types.proto => proto/ibc/commitment/commitment.proto (92%) rename x/ibc/03-connection/types/types.proto => proto/ibc/connection/connection.proto (96%) rename x/ibc/09-localhost/types/types.proto => proto/ibc/localhost/localhost.proto (76%) rename x/ibc-transfer/types/types.proto => proto/ibc/transfer/transfer.proto (91%) rename third_party/proto/{cosmos-proto => cosmos_proto}/cosmos.proto (100%) rename types/{types.pb.go => cosmos.pb.go} (81%) rename types/tx/signing/{types.pb.go => signing.pb.go} (53%) rename types/tx/{types.pb.go => tx.pb.go} (81%) rename x/auth/types/{types.pb.go => auth.pb.go} (72%) rename x/auth/vesting/types/{types.pb.go => vesting.pb.go} (78%) rename x/bank/types/{types.pb.go => bank.pb.go} (80%) rename x/capability/types/{types.pb.go => capability.pb.go} (75%) rename x/crisis/types/{types.pb.go => crisis.pb.go} (71%) rename x/distribution/types/{types.pb.go => distribution.pb.go} (82%) rename x/evidence/types/{types.pb.go => evidence.pb.go} (73%) rename x/gov/types/{types.pb.go => gov.pb.go} (77%) rename x/ibc-transfer/types/{types.pb.go => transfer.pb.go} (77%) rename x/ibc/03-connection/types/{types.pb.go => connection.pb.go} (78%) rename x/ibc/04-channel/types/{types.pb.go => channel.pb.go} (80%) rename x/ibc/09-localhost/types/{types.pb.go => localhost.pb.go} (68%) rename x/ibc/23-commitment/types/{types.pb.go => commitment.pb.go} (76%) rename x/mint/types/{types.pb.go => mint.pb.go} (73%) rename x/params/types/proposal/{types.pb.go => params.pb.go} (75%) rename x/slashing/types/{types.pb.go => slashing.pb.go} (73%) rename x/staking/types/{types.pb.go => staking.pb.go} (82%) rename x/upgrade/types/{types.pb.go => upgrade.pb.go} (78%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5b58594b98b8..d1e6a74c67d6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -146,6 +146,21 @@ For linting and checking breaking changes, we use [buf](https://buf.build/). The To generate the protobuf stubs you must have `protoc` and `protoc-gen-gocosmos` installed. To install these tools run `make protoc` & `make protoc-gen-gocosmos`. After this step you will be able to run `make proto-gen` to generate the protobuf stubs. +In order for imports to properly compile in your IDE, you may need to manually set your protobuf path in your IDE's workspace settings/config. + +For example, in vscode your `.vscode/settings.json` should look like: + +``` +{ + "protoc": { + "options": [ + "--proto_path=${workspaceRoot}/proto", + "--proto_path=${workspaceRoot}/third_party/proto" + ] + } +} +``` + ## Testing All repos should be hooked up to [CircleCI](https://circleci.com/). diff --git a/Makefile b/Makefile index b2eb1db8b62b..b52ce1cf4a81 100644 --- a/Makefile +++ b/Makefile @@ -283,11 +283,7 @@ TM_KV_TYPES = third_party/proto/tendermint/libs/kv TM_MERKLE_TYPES = third_party/proto/tendermint/crypto/merkle TM_ABCI_TYPES = third_party/proto/tendermint/abci/types GOGO_PROTO_TYPES = third_party/proto/gogoproto -COSMOS_PROTO_TYPES = third_party/proto/cosmos-proto -SDK_PROTO_TYPES = third_party/proto/cosmos-sdk/types -AUTH_PROTO_TYPES = third_party/proto/cosmos-sdk/x/auth/types -VESTING_PROTO_TYPES = third_party/proto/cosmos-sdk/x/auth/vesting/types -SUPPLY_PROTO_TYPES = third_party/proto/cosmos-sdk/x/supply/types +COSMOS_PROTO_TYPES = third_party/proto/cosmos_proto proto-update-deps: @mkdir -p $(GOGO_PROTO_TYPES) @@ -296,16 +292,23 @@ proto-update-deps: @mkdir -p $(COSMOS_PROTO_TYPES) @curl -sSL $(COSMOS_PROTO_URL)/cosmos.proto > $(COSMOS_PROTO_TYPES)/cosmos.proto +## Importing of tendermint protobuf definitions currently requires the +## use of `sed` in order to build properly with cosmos-sdk's proto file layout +## (which is the standard Buf.build FILE_LAYOUT) +## Issue link: https://github.com/tendermint/tendermint/issues/5021 @mkdir -p $(TM_ABCI_TYPES) @curl -sSL $(TM_URL)/abci/types/types.proto > $(TM_ABCI_TYPES)/types.proto - @sed -i '' '8 s|crypto/merkle/merkle.proto|third_party/proto/tendermint/crypto/merkle/merkle.proto|g' $(TM_ABCI_TYPES)/types.proto - @sed -i '' '9 s|libs/kv/types.proto|third_party/proto/tendermint/libs/kv/types.proto|g' $(TM_ABCI_TYPES)/types.proto + @sed -i '' '7 s|third_party/proto/||g' $(TM_ABCI_TYPES)/types.proto + @sed -i '' '8 s|crypto/merkle/merkle.proto|tendermint/crypto/merkle/merkle.proto|g' $(TM_ABCI_TYPES)/types.proto + @sed -i '' '9 s|libs/kv/types.proto|tendermint/libs/kv/types.proto|g' $(TM_ABCI_TYPES)/types.proto @mkdir -p $(TM_KV_TYPES) @curl -sSL $(TM_URL)/libs/kv/types.proto > $(TM_KV_TYPES)/types.proto + @sed -i '' '5 s|third_party/proto/||g' $(TM_KV_TYPES)/types.proto @mkdir -p $(TM_MERKLE_TYPES) @curl -sSL $(TM_URL)/crypto/merkle/merkle.proto > $(TM_MERKLE_TYPES)/merkle.proto + @sed -i '' '7 s|third_party/proto/||g' $(TM_MERKLE_TYPES)/merkle.proto .PHONY: proto-all proto-gen proto-lint proto-check-breaking proto-update-deps diff --git a/buf.yaml b/buf.yaml index 56fb6cba7592..2a32feaf6300 100644 --- a/buf.yaml +++ b/buf.yaml @@ -1,6 +1,7 @@ build: roots: - - . + - proto + - third_party/proto excludes: - third_party/proto/google lint: @@ -11,13 +12,16 @@ lint: except: - UNARY_RPC - COMMENT_FIELD - - PACKAGE_DIRECTORY_MATCH - SERVICE_SUFFIX + - PACKAGE_VERSION_SUFFIX ignore: - - third_party - - codec/testdata + - tendermint + - gogoproto + - cosmos_proto breaking: use: - FILE ignore: - - third_party + - tendermint + - gogoproto + - cosmos_proto diff --git a/crypto/types/types.pb.go b/crypto/types/crypto.pb.go similarity index 79% rename from crypto/types/types.pb.go rename to crypto/types/crypto.pb.go index a1f1b83dbf56..8fbc185d1190 100644 --- a/crypto/types/types.pb.go +++ b/crypto/types/crypto.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: crypto/types/types.proto +// source: cosmos/crypto/crypto.proto package types @@ -42,7 +42,7 @@ func (m *PublicKey) Reset() { *m = PublicKey{} } func (m *PublicKey) String() string { return proto.CompactTextString(m) } func (*PublicKey) ProtoMessage() {} func (*PublicKey) Descriptor() ([]byte, []int) { - return fileDescriptor_2165b2a1badb1b0c, []int{0} + return fileDescriptor_5fa415c569c5d31a, []int{0} } func (m *PublicKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -175,7 +175,7 @@ func (m *PubKeyMultisigThreshold) Reset() { *m = PubKeyMultisigThreshold func (m *PubKeyMultisigThreshold) String() string { return proto.CompactTextString(m) } func (*PubKeyMultisigThreshold) ProtoMessage() {} func (*PubKeyMultisigThreshold) Descriptor() ([]byte, []int) { - return fileDescriptor_2165b2a1badb1b0c, []int{1} + return fileDescriptor_5fa415c569c5d31a, []int{1} } func (m *PubKeyMultisigThreshold) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -230,7 +230,7 @@ func (m *MultiSignature) Reset() { *m = MultiSignature{} } func (m *MultiSignature) String() string { return proto.CompactTextString(m) } func (*MultiSignature) ProtoMessage() {} func (*MultiSignature) Descriptor() ([]byte, []int) { - return fileDescriptor_2165b2a1badb1b0c, []int{2} + return fileDescriptor_5fa415c569c5d31a, []int{2} } func (m *MultiSignature) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -278,7 +278,7 @@ type CompactBitArray struct { func (m *CompactBitArray) Reset() { *m = CompactBitArray{} } func (*CompactBitArray) ProtoMessage() {} func (*CompactBitArray) Descriptor() ([]byte, []int) { - return fileDescriptor_2165b2a1badb1b0c, []int{3} + return fileDescriptor_5fa415c569c5d31a, []int{3} } func (m *CompactBitArray) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -322,49 +322,48 @@ func (m *CompactBitArray) GetElems() []byte { } func init() { - proto.RegisterType((*PublicKey)(nil), "cosmos_sdk.crypto.v1.PublicKey") - proto.RegisterType((*PubKeyMultisigThreshold)(nil), "cosmos_sdk.crypto.v1.PubKeyMultisigThreshold") - proto.RegisterType((*MultiSignature)(nil), "cosmos_sdk.crypto.v1.MultiSignature") - proto.RegisterType((*CompactBitArray)(nil), "cosmos_sdk.crypto.v1.CompactBitArray") + proto.RegisterType((*PublicKey)(nil), "cosmos.crypto.PublicKey") + proto.RegisterType((*PubKeyMultisigThreshold)(nil), "cosmos.crypto.PubKeyMultisigThreshold") + proto.RegisterType((*MultiSignature)(nil), "cosmos.crypto.MultiSignature") + proto.RegisterType((*CompactBitArray)(nil), "cosmos.crypto.CompactBitArray") } -func init() { proto.RegisterFile("crypto/types/types.proto", fileDescriptor_2165b2a1badb1b0c) } +func init() { proto.RegisterFile("cosmos/crypto/crypto.proto", fileDescriptor_5fa415c569c5d31a) } -var fileDescriptor_2165b2a1badb1b0c = []byte{ - // 514 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0xc1, 0x6a, 0xdb, 0x4a, - 0x14, 0x95, 0xec, 0xf8, 0x25, 0x1e, 0xe7, 0xc5, 0xed, 0x60, 0xa8, 0x62, 0xa8, 0x64, 0xb4, 0x28, - 0x6e, 0x21, 0x12, 0x76, 0x71, 0x4a, 0xbd, 0x8b, 0xb2, 0x09, 0x98, 0x82, 0x51, 0xba, 0x2a, 0x14, - 0x21, 0xc9, 0x53, 0x59, 0x58, 0xf2, 0x88, 0xb9, 0xa3, 0xd2, 0xf9, 0x89, 0xd2, 0x65, 0x97, 0xc9, - 0x37, 0xf4, 0x27, 0xba, 0xf4, 0xb2, 0x2b, 0x53, 0xec, 0x3f, 0xc8, 0x17, 0x94, 0x68, 0xa4, 0xd8, - 0x94, 0x66, 0x23, 0xe9, 0x9e, 0x73, 0x46, 0xf7, 0xdc, 0x73, 0x25, 0xa4, 0x85, 0x4c, 0x64, 0x9c, - 0xda, 0x5c, 0x64, 0x04, 0xe4, 0xd5, 0xca, 0x18, 0xe5, 0x14, 0x77, 0x42, 0x0a, 0x29, 0x05, 0x0f, - 0x66, 0x0b, 0x4b, 0x8a, 0xac, 0xcf, 0x83, 0xee, 0x0b, 0x3e, 0x8f, 0xd9, 0xcc, 0xcb, 0x7c, 0xc6, - 0x85, 0x5d, 0x08, 0xed, 0x88, 0x46, 0x74, 0xf7, 0x24, 0x4f, 0x77, 0x4f, 0x23, 0x4a, 0xa3, 0x84, - 0x48, 0x49, 0x90, 0x7f, 0xb2, 0xfd, 0xa5, 0x90, 0x94, 0xf9, 0xb5, 0x86, 0x9a, 0xd3, 0x3c, 0x48, - 0xe2, 0x70, 0x42, 0x04, 0xd6, 0x51, 0x13, 0x48, 0x98, 0x0d, 0x47, 0xe7, 0x8b, 0x81, 0xa6, 0xf6, - 0xd4, 0xfe, 0xf1, 0x95, 0xe2, 0xee, 0x20, 0xdc, 0x45, 0x87, 0x64, 0x36, 0x1c, 0x8d, 0x06, 0x6f, - 0xb5, 0x5a, 0xc9, 0x56, 0xc0, 0x3d, 0x07, 0x4c, 0x72, 0xf5, 0x8a, 0x2b, 0x01, 0x3c, 0x41, 0x47, - 0x69, 0x9e, 0xf0, 0x18, 0xe2, 0x48, 0x3b, 0xe8,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7d, 0x49, 0xd3, 0xcc, - 0x0f, 0xb9, 0x13, 0xf3, 0x0b, 0xc6, 0x7c, 0x81, 0x5f, 0xa1, 0xa7, 0xe4, 0x0b, 0x67, 0xbe, 0x17, - 0xc4, 0x1c, 0x3c, 0xe0, 0x94, 0x91, 0x72, 0x58, 0xb7, 0x5d, 0x10, 0x4e, 0xcc, 0xe1, 0xba, 0x80, - 0x71, 0x07, 0x35, 0x48, 0x42, 0x52, 0x90, 0x5f, 0x83, 0x2b, 0x8b, 0xf1, 0xd1, 0xf7, 0x1b, 0x43, - 0xb9, 0xb9, 0x35, 0x14, 0xe7, 0xf2, 0xe7, 0x46, 0x57, 0x57, 0x1b, 0x5d, 0xfd, 0xbd, 0xd1, 0xd5, - 0x6f, 0x5b, 0x5d, 0x59, 0x6d, 0x75, 0xe5, 0xd7, 0x56, 0x57, 0x3e, 0xbc, 0x8c, 0x62, 0x3e, 0xcf, - 0x03, 0x2b, 0xa4, 0xa9, 0x2d, 0x63, 0x28, 0x6f, 0x67, 0x30, 0x5b, 0xd8, 0xfb, 0xff, 0x41, 0xf0, - 0x5f, 0xb1, 0xb3, 0xd7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x46, 0x56, 0x25, 0x1e, 0x03, - 0x00, 0x00, +var fileDescriptor_5fa415c569c5d31a = []byte{ + // 500 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0xd3, 0x30, + 0x18, 0xc7, 0xe3, 0x76, 0x65, 0xab, 0xbb, 0xad, 0x60, 0x55, 0x22, 0xab, 0x44, 0x52, 0xe5, 0x80, + 0x0a, 0x12, 0xa9, 0x5a, 0xd4, 0x21, 0x7a, 0x5b, 0xc6, 0x61, 0x52, 0x85, 0x54, 0x65, 0x1c, 0x10, + 0x12, 0xaa, 0x92, 0xd4, 0xa4, 0x51, 0x93, 0x38, 0xb2,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, 0x8c, 0x13, 0xa6, 0xee, 0xdf, 0x55, 0xc5, 0xe4, 0xe0, 0xdb, 0x95, 0xa9, + 0x5d, 0x5d, 0x9b, 0x9a, 0x73, 0xfe, 0xa3, 0x30, 0xc0, 0xba, 0x30, 0xc0, 0xaf, 0xc2, 0x00, 0x5f, + 0xb7, 0x86, 0xb6, 0xde, 0x1a, 0xda, 0xcf, 0xad, 0xa1, 0x7d, 0x78, 0x16, 0x46, 0x7c, 0x99, 0xfb, + 0x76, 0x40, 0x92, 0x41, 0xf5, 0xa0, 0xe5, 0xf2, 0x82, 0x2d, 0x56, 0xd5, 0xdb, 0xe6, 0x22, 0xc3, + 0xcc, 0x7f, 0x20, 0x2f, 0xeb, 0xe5, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0xa2, 0x1f, 0xee, + 0xf9, 0x02, 0x00, 0x00, } func (m *PublicKey) Marshal() (dAtA []byte, err error) { @@ -409,7 +408,7 @@ func (m *PublicKey_Secp256K1) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.Secp256K1 != nil { i -= len(m.Secp256K1) copy(dAtA[i:], m.Secp256K1) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Secp256K1))) + i = encodeVarintCrypto(dAtA, i, uint64(len(m.Secp256K1))) i-- dAtA[i] = 0xa } @@ -425,7 +424,7 @@ func (m *PublicKey_Ed25519) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.Ed25519 != nil { i -= len(m.Ed25519) copy(dAtA[i:], m.Ed25519) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Ed25519))) + i = encodeVarintCrypto(dAtA, i, uint64(len(m.Ed25519))) i-- dAtA[i] = 0x12 } @@ -441,7 +440,7 @@ func (m *PublicKey_Sr25519) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.Sr25519 != nil { i -= len(m.Sr25519) copy(dAtA[i:], m.Sr25519) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Sr25519))) + i = encodeVarintCrypto(dAtA, i, uint64(len(m.Sr25519))) i-- dAtA[i] = 0x1a } @@ -461,7 +460,7 @@ func (m *PublicKey_Multisig) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCrypto(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -478,7 +477,7 @@ func (m *PublicKey_Secp256R1) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.Secp256R1 != nil { i -= len(m.Secp256R1) copy(dAtA[i:], m.Secp256R1) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Secp256R1))) + i = encodeVarintCrypto(dAtA, i, uint64(len(m.Secp256R1))) i-- dAtA[i] = 0x2a } @@ -498,7 +497,7 @@ func (m *PublicKey_AnyPubkey) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCrypto(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x7a @@ -533,14 +532,14 @@ func (m *PubKeyMultisigThreshold) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCrypto(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.K != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.K)) + i = encodeVarintCrypto(dAtA, i, uint64(m.K)) i-- dAtA[i] = 0x8 } @@ -575,7 +574,7 @@ func (m *MultiSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Signatures[iNdEx]) copy(dAtA[i:], m.Signatures[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signatures[iNdEx]))) + i = encodeVarintCrypto(dAtA, i, uint64(len(m.Signatures[iNdEx]))) i-- dAtA[i] = 0xa } @@ -606,20 +605,20 @@ func (m *CompactBitArray) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Elems) > 0 { i -= len(m.Elems) copy(dAtA[i:], m.Elems) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Elems))) + i = encodeVarintCrypto(dAtA, i, uint64(len(m.Elems))) i-- dAtA[i] = 0x12 } if m.ExtraBitsStored != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ExtraBitsStored)) + i = encodeVarintCrypto(dAtA, i, uint64(m.ExtraBitsStored)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintCrypto(dAtA []byte, offset int, v uint64) int { + offset -= sovCrypto(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -649,7 +648,7 @@ func (m *PublicKey_Secp256K1) Size() (n int) { _ = l if m.Secp256K1 != nil { l = len(m.Secp256K1) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrypto(uint64(l)) } return n } @@ -661,7 +660,7 @@ func (m *PublicKey_Ed25519) Size() (n int) { _ = l if m.Ed25519 != nil { l = len(m.Ed25519) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrypto(uint64(l)) } return n } @@ -673,7 +672,7 @@ func (m *PublicKey_Sr25519) Size() (n int) { _ = l if m.Sr25519 != nil { l = len(m.Sr25519) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrypto(uint64(l)) } return n } @@ -685,7 +684,7 @@ func (m *PublicKey_Multisig) Size() (n int) { _ = l if m.Multisig != nil { l = m.Multisig.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrypto(uint64(l)) } return n } @@ -697,7 +696,7 @@ func (m *PublicKey_Secp256R1) Size() (n int) { _ = l if m.Secp256R1 != nil { l = len(m.Secp256R1) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrypto(uint64(l)) } return n } @@ -709,7 +708,7 @@ func (m *PublicKey_AnyPubkey) Size() (n int) { _ = l if m.AnyPubkey != nil { l = m.AnyPubkey.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrypto(uint64(l)) } return n } @@ -720,12 +719,12 @@ func (m *PubKeyMultisigThreshold) Size() (n int) { var l int _ = l if m.K != 0 { - n += 1 + sovTypes(uint64(m.K)) + n += 1 + sovCrypto(uint64(m.K)) } if len(m.PubKeys) > 0 { for _, e := range m.PubKeys { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrypto(uint64(l)) } } return n @@ -740,7 +739,7 @@ func (m *MultiSignature) Size() (n int) { if len(m.Signatures) > 0 { for _, b := range m.Signatures { l = len(b) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrypto(uint64(l)) } } if m.XXX_unrecognized != nil { @@ -749,11 +748,11 @@ func (m *MultiSignature) Size() (n int) { return n } -func sovTypes(x uint64) (n int) { +func sovCrypto(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozCrypto(x uint64) (n int) { + return sovCrypto(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *PublicKey) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -763,7 +762,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -791,7 +790,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -804,11 +803,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if postIndex > l { return io.ErrUnexpectedEOF @@ -824,7 +823,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -837,11 +836,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if postIndex > l { return io.ErrUnexpectedEOF @@ -857,7 +856,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -870,11 +869,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if postIndex > l { return io.ErrUnexpectedEOF @@ -890,7 +889,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -903,11 +902,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if postIndex > l { return io.ErrUnexpectedEOF @@ -925,7 +924,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -938,11 +937,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if postIndex > l { return io.ErrUnexpectedEOF @@ -958,7 +957,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -971,11 +970,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if postIndex > l { return io.ErrUnexpectedEOF @@ -988,15 +987,15 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCrypto(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1018,7 +1017,7 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1046,7 +1045,7 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error { m.K = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1065,7 +1064,7 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1078,11 +1077,11 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if postIndex > l { return io.ErrUnexpectedEOF @@ -1094,15 +1093,15 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCrypto(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1124,7 +1123,7 @@ func (m *MultiSignature) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1152,7 +1151,7 @@ func (m *MultiSignature) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1165,11 +1164,11 @@ func (m *MultiSignature) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if postIndex > l { return io.ErrUnexpectedEOF @@ -1179,15 +1178,15 @@ func (m *MultiSignature) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCrypto(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1210,7 +1209,7 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1238,7 +1237,7 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error { m.ExtraBitsStored = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1257,7 +1256,7 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrypto } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1270,11 +1269,11 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if postIndex > l { return io.ErrUnexpectedEOF @@ -1286,15 +1285,15 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCrypto(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrypto } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1308,7 +1307,7 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipCrypto(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -1316,7 +1315,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCrypto } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1333,7 +1332,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCrypto } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1349,7 +1348,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCrypto } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1362,14 +1361,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCrypto } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupCrypto } depth-- case 5: @@ -1378,7 +1377,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCrypto } if depth == 0 { return iNdEx, nil @@ -1388,7 +1387,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthCrypto = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCrypto = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCrypto = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/auth/types/types.proto b/proto/cosmos/auth/auth.proto similarity index 93% rename from x/auth/types/types.proto rename to proto/cosmos/auth/auth.proto index f59bd907b4ac..ad748b560a5b 100644 --- a/x/auth/types/types.proto +++ b/proto/cosmos/auth/auth.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package cosmos_sdk.x.auth.v1; +package cosmos.auth; -import "third_party/proto/cosmos-proto/cosmos.proto"; -import "third_party/proto/gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "gogoproto/gogo.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; diff --git a/x/bank/types/types.proto b/proto/cosmos/bank/bank.proto similarity index 85% rename from x/bank/types/types.proto rename to proto/cosmos/bank/bank.proto index 3cd381bf64ef..f695cb99d671 100644 --- a/x/bank/types/types.proto +++ b/proto/cosmos/bank/bank.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package cosmos_sdk.x.bank.v1; +package cosmos.bank; -import "third_party/proto/gogoproto/gogo.proto"; -import "third_party/proto/cosmos-proto/cosmos.proto"; -import "types/types.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/cosmos.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; @@ -19,7 +19,7 @@ message MsgSend { (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress", (gogoproto.moretags) = "yaml:\"to_address\"" ]; - repeated cosmos_sdk.v1.Coin amount = 3 + repeated cosmos.Coin amount = 3 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } @@ -28,7 +28,7 @@ message Input { option (gogoproto.equal) = true; bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; - repeated cosmos_sdk.v1.Coin coins = 2 + repeated cosmos.Coin coins = 2 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } @@ -37,7 +37,7 @@ message Output { option (gogoproto.equal) = true; bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; - repeated cosmos_sdk.v1.Coin coins = 2 + repeated cosmos.Coin coins = 2 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } @@ -57,6 +57,6 @@ message Supply { option (gogoproto.goproto_stringer) = false; option (cosmos_proto.implements_interface) = "*github.com/cosmos/cosmos-sdk/x/bank/exported.SupplyI"; - repeated cosmos_sdk.v1.Coin total = 1 + repeated cosmos.Coin total = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } diff --git a/x/bank/types/query.proto b/proto/cosmos/bank/query.proto similarity index 84% rename from x/bank/types/query.proto rename to proto/cosmos/bank/query.proto index 9c23127f5ce9..e5c4cfa08c8d 100644 --- a/x/bank/types/query.proto +++ b/proto/cosmos/bank/query.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package cosmos_sdk.x.bank.v1; +package cosmos.bank; -import "third_party/proto/gogoproto/gogo.proto"; -import "types/types.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/cosmos.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; @@ -34,7 +34,7 @@ message QueryBalanceRequest { message QueryBalanceResponse { // balance is the balance of the coin - cosmos_sdk.v1.Coin balance = 1; + cosmos.Coin balance = 1; } // QueryBalanceRequest is the request type for the Query/AllBalances RPC method @@ -46,7 +46,7 @@ message QueryAllBalancesRequest { // QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method message QueryAllBalancesResponse { // balances is the balances of the coins - repeated cosmos_sdk.v1.Coin balances = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + repeated cosmos.Coin balances = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } // QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC method @@ -55,7 +55,7 @@ message QueryTotalSupplyRequest { } // QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC method message QueryTotalSupplyResponse { // supply is the supply of the coins - repeated cosmos_sdk.v1.Coin supply = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + repeated cosmos.Coin supply = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } // QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method diff --git a/x/capability/types/types.proto b/proto/cosmos/capability/capability.proto similarity index 91% rename from x/capability/types/types.proto rename to proto/cosmos/capability/capability.proto index 1468d4f5ba5e..977006cc0283 100644 --- a/x/capability/types/types.proto +++ b/proto/cosmos/capability/capability.proto @@ -1,10 +1,9 @@ syntax = "proto3"; - -package cosmos_sdk.x.capability.v1; +package cosmos.capability; option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types"; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; // Capability defines an implementation of an object capability. The index provided to // a Capability must be globally unique. diff --git a/types/types.proto b/proto/cosmos/cosmos.proto similarity index 95% rename from types/types.proto rename to proto/cosmos/cosmos.proto index 63854537bdd4..42a7abbe030c 100644 --- a/types/types.proto +++ b/proto/cosmos/cosmos.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package cosmos_sdk.v1; +package cosmos; -import "third_party/proto/gogoproto/gogo.proto"; -import "third_party/proto/tendermint/abci/types/types.proto"; +import "gogoproto/gogo.proto"; +import "tendermint/abci/types/types.proto"; option go_package = "github.com/cosmos/cosmos-sdk/types"; option (gogoproto.goproto_stringer_all) = false; diff --git a/x/crisis/types/types.proto b/proto/cosmos/crisis/crisis.proto similarity index 86% rename from x/crisis/types/types.proto rename to proto/cosmos/crisis/crisis.proto index 8298aa0b0af9..76953662ce28 100644 --- a/x/crisis/types/types.proto +++ b/proto/cosmos/crisis/crisis.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package cosmos_sdk.x.crisis.v1; +package cosmos.crisis; option go_package = "github.com/cosmos/cosmos-sdk/x/crisis/types"; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; // MsgVerifyInvariant - message struct to verify a particular invariance message MsgVerifyInvariant { diff --git a/crypto/types/types.proto b/proto/cosmos/crypto/crypto.proto similarity index 95% rename from crypto/types/types.proto rename to proto/cosmos/crypto/crypto.proto index 97a2c67859b2..ad31f6686333 100644 --- a/crypto/types/types.proto +++ b/proto/cosmos/crypto/crypto.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package cosmos_sdk.crypto.v1; +package cosmos.crypto; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; option go_package = "github.com/cosmos/cosmos-sdk/crypto/types"; diff --git a/x/distribution/types/types.proto b/proto/cosmos/distribution/distribution.proto similarity index 93% rename from x/distribution/types/types.proto rename to proto/cosmos/distribution/distribution.proto index db6c4e907a00..a0c655b8dbed 100644 --- a/x/distribution/types/types.proto +++ b/proto/cosmos/distribution/distribution.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package cosmos_sdk.x.distribution.v1; +package cosmos.distribution; option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; option (gogoproto.equal_all) = true; -import "third_party/proto/gogoproto/gogo.proto"; -import "types/types.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/cosmos.proto"; // msg struct for changing the withdraw address for a delegator (or validator self-delegation) message MsgSetWithdrawAddress { @@ -42,7 +42,7 @@ message MsgWithdrawValidatorCommission { // MsgFundCommunityPool defines a Msg type that allows an account to directly // fund the community pool. message MsgFundCommunityPool { - repeated cosmos_sdk.v1.Coin amount = 1 [ + repeated cosmos.Coin amount = 1 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; @@ -83,7 +83,7 @@ message Params { // + number of slashes which ended the associated period (and might need to read that record) // + one per validator for the zeroeth period, set on initialization message ValidatorHistoricalRewards { - repeated cosmos_sdk.v1.DecCoin cumulative_reward_ratio = 1 [ + repeated cosmos.DecCoin cumulative_reward_ratio = 1 [ (gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false @@ -95,7 +95,7 @@ message ValidatorHistoricalRewards { // kept as a running counter and incremented each block // as long as the validator's tokens remain constant message ValidatorCurrentRewards { - repeated cosmos_sdk.v1.DecCoin rewards = 1 [ + repeated cosmos.DecCoin rewards = 1 [ (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false ]; @@ -105,7 +105,7 @@ message ValidatorCurrentRewards { // accumulated commission for a validator // kept as a running counter, can be withdrawn at any time message ValidatorAccumulatedCommission { - repeated cosmos_sdk.v1.DecCoin commission = 1 [ + repeated cosmos.DecCoin commission = 1 [ (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false ]; @@ -114,7 +114,7 @@ message ValidatorAccumulatedCommission { // outstanding (un-withdrawn) rewards for a validator // inexpensive to track, allows simple sanity checks message ValidatorOutstandingRewards { - repeated cosmos_sdk.v1.DecCoin rewards = 1 [ + repeated cosmos.DecCoin rewards = 1 [ (gogoproto.moretags) = "yaml:\"rewards\"", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false @@ -142,7 +142,7 @@ message ValidatorSlashEvents { // global fee pool for distribution message FeePool { - repeated cosmos_sdk.v1.DecCoin community_pool = 1 [ + repeated cosmos.DecCoin community_pool = 1 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.moretags) = "yaml:\"community_pool\"" @@ -156,7 +156,7 @@ message CommunityPoolSpendProposal { string title = 1; string description = 2; bytes recipient = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; - repeated cosmos_sdk.v1.Coin amount = 4 [ + repeated cosmos.Coin amount = 4 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; diff --git a/x/evidence/types/types.proto b/proto/cosmos/evidence/evidence.proto similarity index 93% rename from x/evidence/types/types.proto rename to proto/cosmos/evidence/evidence.proto index 1cbacfd9729c..a418e965c749 100644 --- a/x/evidence/types/types.proto +++ b/proto/cosmos/evidence/evidence.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package cosmos_sdk.x.evidence.v1; +package cosmos.evidence; option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; option (gogoproto.equal_all) = true; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/any.proto"; diff --git a/x/gov/types/types.proto b/proto/cosmos/gov/gov.proto similarity index 95% rename from x/gov/types/types.proto rename to proto/cosmos/gov/gov.proto index 307ea245724f..afc599e11f3e 100644 --- a/x/gov/types/types.proto +++ b/proto/cosmos/gov/gov.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package cosmos_sdk.x.gov.v1; +package cosmos.gov; -import "types/types.proto"; -import "third_party/proto/gogoproto/gogo.proto"; -import "third_party/proto/cosmos-proto/cosmos.proto"; +import "cosmos/cosmos.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/any.proto"; @@ -18,7 +18,7 @@ message MsgSubmitProposal { option (gogoproto.equal) = true; google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"]; - repeated cosmos_sdk.v1.Coin initial_deposit = 2 [ + repeated cosmos.Coin initial_deposit = 2 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"initial_deposit\"" @@ -49,7 +49,7 @@ message MsgDeposit { (gogoproto.jsontag) = "proposal_id" ]; bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; - repeated cosmos_sdk.v1.Coin amount = 3 + repeated cosmos.Coin amount = 3 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } @@ -88,7 +88,7 @@ message Deposit { uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID", (gogoproto.moretags) = "yaml:\"proposal_id\""]; bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; - repeated cosmos_sdk.v1.Coin amount = 3 + repeated cosmos.Coin amount = 3 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } @@ -106,7 +106,7 @@ message Proposal { [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"submit_time\""]; google.protobuf.Timestamp deposit_end_time = 6 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"deposit_end_time\""]; - repeated cosmos_sdk.v1.Coin total_deposit = 7 [ + repeated cosmos.Coin total_deposit = 7 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"total_deposit\"" diff --git a/x/mint/types/types.proto b/proto/cosmos/mint/mint.proto similarity index 93% rename from x/mint/types/types.proto rename to proto/cosmos/mint/mint.proto index 700e05cb1ad4..e31cbc34f0bc 100644 --- a/x/mint/types/types.proto +++ b/proto/cosmos/mint/mint.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package cosmos_sdk.x.mint.v1; +package cosmos.mint; -option go_package = "types"; +option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types"; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; // Minter represents the minting state. message Minter { diff --git a/x/params/types/proposal/types.proto b/proto/cosmos/params/params.proto similarity index 89% rename from x/params/types/proposal/types.proto rename to proto/cosmos/params/params.proto index 8563b8c82d4b..b42c7ed577a2 100644 --- a/x/params/types/proposal/types.proto +++ b/proto/cosmos/params/params.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package cosmos_sdk.x.params.v1; +package cosmos.params; option go_package = "github.com/cosmos/cosmos-sdk/x/params/types/proposal"; option (gogoproto.equal_all) = true; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; // ParameterChangeProposal defines a proposal which contains multiple parameter // changes. diff --git a/x/slashing/types/types.proto b/proto/cosmos/slashing/slashing.proto similarity index 94% rename from x/slashing/types/types.proto rename to proto/cosmos/slashing/slashing.proto index d89affb62fb2..6f546a7d19a2 100644 --- a/x/slashing/types/types.proto +++ b/proto/cosmos/slashing/slashing.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package cosmos_sdk.x.slashing.v1; +package cosmos.slashing; option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types"; option (gogoproto.equal_all) = true; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; // MsgUnjail - struct for unjailing jailed validator diff --git a/x/staking/types/types.proto b/proto/cosmos/staking/staking.proto similarity index 97% rename from x/staking/types/types.proto rename to proto/cosmos/staking/staking.proto index 15e8733c981d..ddcf36b400a2 100644 --- a/x/staking/types/types.proto +++ b/proto/cosmos/staking/staking.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package cosmos_sdk.x.staking.v1; +package cosmos.staking; -import "third_party/proto/gogoproto/gogo.proto"; -import "third_party/proto/tendermint/abci/types/types.proto"; +import "gogoproto/gogo.proto"; +import "tendermint/abci/types/types.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; -import "types/types.proto"; +import "cosmos/cosmos.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; @@ -29,7 +29,7 @@ message MsgCreateValidator { (gogoproto.moretags) = "yaml:\"validator_address\"" ]; string pubkey = 6; - cosmos_sdk.v1.Coin value = 7 [(gogoproto.nullable) = false]; + cosmos.Coin value = 7 [(gogoproto.nullable) = false]; } // MsgEditValidator defines an SDK message for editing an existing validator. @@ -70,7 +70,7 @@ message MsgDelegate { (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress", (gogoproto.moretags) = "yaml:\"validator_address\"" ]; - cosmos_sdk.v1.Coin amount = 3 [(gogoproto.nullable) = false]; + cosmos.Coin amount = 3 [(gogoproto.nullable) = false]; } // MsgBeginRedelegate defines an SDK message for performing a redelegation from @@ -90,7 +90,7 @@ message MsgBeginRedelegate { (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress", (gogoproto.moretags) = "yaml:\"validator_dst_address\"" ]; - cosmos_sdk.v1.Coin amount = 4 [(gogoproto.nullable) = false]; + cosmos.Coin amount = 4 [(gogoproto.nullable) = false]; } // MsgUndelegate defines an SDK message for performing an undelegation from a @@ -106,7 +106,7 @@ message MsgUndelegate { (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress", (gogoproto.moretags) = "yaml:\"validator_address\"" ]; - cosmos_sdk.v1.Coin amount = 3 [(gogoproto.nullable) = false]; + cosmos.Coin amount = 3 [(gogoproto.nullable) = false]; } // HistoricalInfo contains the historical information that gets stored at diff --git a/types/tx/signing/types.proto b/proto/cosmos/tx/signing/signing.proto similarity index 95% rename from types/tx/signing/types.proto rename to proto/cosmos/tx/signing/signing.proto index d015f8cc1ef0..c4536e09a5bf 100644 --- a/types/tx/signing/types.proto +++ b/proto/cosmos/tx/signing/signing.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package cosmos_sdk.tx.signing.v1; +package cosmos.tx.signing; option go_package = "github.com/cosmos/cosmos-sdk/types/tx/signing"; diff --git a/types/tx/types.proto b/proto/cosmos/tx/tx.proto similarity index 92% rename from types/tx/types.proto rename to proto/cosmos/tx/tx.proto index 9aa2f64a8a1e..4405d9c779c9 100644 --- a/types/tx/types.proto +++ b/proto/cosmos/tx/tx.proto @@ -1,13 +1,13 @@ syntax = "proto3"; -package cosmos_sdk.tx.v1; +package cosmos.tx; -import "third_party/proto/gogoproto/gogo.proto"; -import "crypto/types/types.proto"; -import "types/types.proto"; -import "types/tx/signing/types.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/crypto/crypto.proto"; +import "cosmos/cosmos.proto"; +import "cosmos/tx/signing/signing.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/tx/types"; +option go_package = "github.com/cosmos/cosmos-sdk/types/tx"; // Tx is the standard type used for broadcasting transactions message Tx { @@ -105,13 +105,13 @@ message ModeInfo { // to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the future message Single { // mode is the signing mode of the single signer - cosmos_sdk.tx.signing.v1.SignMode mode = 1; + cosmos.tx.signing.SignMode mode = 1; } // Multi is the mode info for a multisig public key message Multi { // bitarray specifies which keys within the multisig are signing - cosmos_sdk.crypto.v1.CompactBitArray bitarray = 1; + cosmos.crypto.CompactBitArray bitarray = 1; // mode_infos is the corresponding modes of the signers of the multisig // which could include nested multisig public keys @@ -124,7 +124,7 @@ message ModeInfo { // which must be above some miminum to be accepted into the mempool. message Fee { // amount is the amount of coins to be paid as a fee - repeated cosmos_sdk.v1.Coin amount = 1 + repeated cosmos.Coin amount = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; // gas_limit is the maximum gas that can be used in transaction processing diff --git a/x/upgrade/types/types.proto b/proto/cosmos/upgrade/upgrade.proto similarity index 95% rename from x/upgrade/types/types.proto rename to proto/cosmos/upgrade/upgrade.proto index ba1191773fb6..969131b0cc16 100644 --- a/x/upgrade/types/types.proto +++ b/proto/cosmos/upgrade/upgrade.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package cosmos_sdk.x.upgrade.v1; +package cosmos.upgrade; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/upgrade/types"; diff --git a/x/auth/vesting/types/types.proto b/proto/cosmos/vesting/vesting.proto similarity index 86% rename from x/auth/vesting/types/types.proto rename to proto/cosmos/vesting/vesting.proto index 7ce129553289..baee7f75643a 100644 --- a/x/auth/vesting/types/types.proto +++ b/proto/cosmos/vesting/vesting.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package cosmos_sdk.x.auth.vesting.v1; +package cosmos.vesting; -import "third_party/proto/gogoproto/gogo.proto"; -import "types/types.proto"; -import "x/auth/types/types.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/cosmos.proto"; +import "cosmos/auth/auth.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"; @@ -13,18 +13,18 @@ message BaseVestingAccount { option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_stringer) = false; - cosmos_sdk.x.auth.v1.BaseAccount base_account = 1 [(gogoproto.embed) = true]; - repeated cosmos_sdk.v1.Coin original_vesting = 2 [ + cosmos.auth.BaseAccount base_account = 1 [(gogoproto.embed) = true]; + repeated cosmos.Coin original_vesting = 2 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"original_vesting\"" ]; - repeated cosmos_sdk.v1.Coin delegated_free = 3 [ + repeated cosmos.Coin delegated_free = 3 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"delegated_free\"" ]; - repeated cosmos_sdk.v1.Coin delegated_vesting = 4 [ + repeated cosmos.Coin delegated_vesting = 4 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"delegated_vesting\"" @@ -57,7 +57,7 @@ message Period { option (gogoproto.goproto_stringer) = false; int64 length = 1; - repeated cosmos_sdk.v1.Coin amount = 2 [ + repeated cosmos.Coin amount = 2 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; diff --git a/x/ibc/04-channel/types/types.proto b/proto/ibc/channel/channel.proto similarity index 99% rename from x/ibc/04-channel/types/types.proto rename to proto/ibc/channel/channel.proto index a9354017eeb6..2175a0fa64e5 100644 --- a/x/ibc/04-channel/types/types.proto +++ b/proto/ibc/channel/channel.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package cosmos_sdk.x.ibc.channel.v1; +package ibc.channel; option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/04-channel/types"; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; // MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It is // called by a relayer on Chain A. diff --git a/x/ibc/23-commitment/types/types.proto b/proto/ibc/commitment/commitment.proto similarity index 92% rename from x/ibc/23-commitment/types/types.proto rename to proto/ibc/commitment/commitment.proto index 5bc1792d1e06..99062d4f1c02 100644 --- a/x/ibc/23-commitment/types/types.proto +++ b/proto/ibc/commitment/commitment.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package cosmos_sdk.x.ibc.commitment.v1; +package ibc.commitment; option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/23-commitment/types"; -import "third_party/proto/gogoproto/gogo.proto"; -import "third_party/proto/tendermint/crypto/merkle/merkle.proto"; +import "gogoproto/gogo.proto"; +import "tendermint/crypto/merkle/merkle.proto"; // MerkleRoot defines a merkle root hash. // In the Cosmos SDK, the AppHash of a block header becomes the root. @@ -66,4 +66,4 @@ enum KeyEncoding { KEY_ENCODING_URL_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "URL"]; // Hex encoding KEY_ENCODING_HEX = 1 [(gogoproto.enumvalue_customname) = "HEX"]; -} \ No newline at end of file +} diff --git a/x/ibc/03-connection/types/types.proto b/proto/ibc/connection/connection.proto similarity index 96% rename from x/ibc/03-connection/types/types.proto rename to proto/ibc/connection/connection.proto index 278846f1d4d6..c94babc3f5b4 100644 --- a/x/ibc/03-connection/types/types.proto +++ b/proto/ibc/connection/connection.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package cosmos_sdk.x.ibc.connection.v1; +package ibc.connection; option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/03-connection/types"; -import "third_party/proto/gogoproto/gogo.proto"; -import "x/ibc/23-commitment/types/types.proto"; +import "gogoproto/gogo.proto"; +import "ibc/commitment/commitment.proto"; // MsgConnectionOpenInit defines the msg sent by an account on Chain A to // initialize a connection with Chain B. @@ -105,7 +105,7 @@ message Counterparty { // identifies the connection end on the counterparty chain associated with a given connection. string connection_id = 2 [(gogoproto.customname) = "ConnectionID", (gogoproto.moretags) = "yaml:\"connection_id\""]; // commitment merkle prefix of the counterparty chain - cosmos_sdk.x.ibc.commitment.v1.MerklePrefix prefix = 3 [(gogoproto.nullable) = false]; + ibc.commitment.MerklePrefix prefix = 3 [(gogoproto.nullable) = false]; } // ClientPaths define all the connection paths for a client state. diff --git a/x/ibc/09-localhost/types/types.proto b/proto/ibc/localhost/localhost.proto similarity index 76% rename from x/ibc/09-localhost/types/types.proto rename to proto/ibc/localhost/localhost.proto index 087ec3b8c6f5..b05cf4f3eeab 100644 --- a/x/ibc/09-localhost/types/types.proto +++ b/proto/ibc/localhost/localhost.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package cosmos_sdk.ibc.localhost.v1; +package ibc.localhost; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/09-localhost/types"; diff --git a/x/ibc-transfer/types/types.proto b/proto/ibc/transfer/transfer.proto similarity index 91% rename from x/ibc-transfer/types/types.proto rename to proto/ibc/transfer/transfer.proto index 3fee31361ca7..28672735398c 100644 --- a/x/ibc-transfer/types/types.proto +++ b/proto/ibc/transfer/transfer.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package cosmos_sdk.x.transfer.v1; +package ibc.transfer; option go_package = "github.com/cosmos/cosmos-sdk/x/ibc-transfer/types"; -import "third_party/proto/gogoproto/gogo.proto"; -import "types/types.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/cosmos.proto"; // 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 @@ -18,7 +18,7 @@ message MsgTransfer { (gogoproto.moretags) = "yaml:\"source_channel\"" ]; // the tokens to be transferred - repeated cosmos_sdk.v1.Coin amount = 3 [ + repeated cosmos.Coin amount = 3 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; @@ -40,7 +40,7 @@ message MsgTransfer { // See FungibleTokenPacketData spec: https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures message FungibleTokenPacketData { // the tokens to be transferred - repeated cosmos_sdk.v1.Coin amount = 1 [ + repeated cosmos.Coin amount = 1 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; @@ -56,4 +56,4 @@ message FungibleTokenPacketData { message FungibleTokenPacketAcknowledgement { bool success = 1; string error = 2; -} \ No newline at end of file +} diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 7f2e72c4d2f3..2a5a76e00e6f 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -2,11 +2,15 @@ set -eo pipefail -proto_dirs=$(find . -path ./third_party -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) +proto_dirs=$(find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) for dir in $proto_dirs; do protoc \ - -I. \ - --gocosmos_out=plugins=interfacetype+grpc,paths=source_relative,\ + -I "proto" \ + -I "third_party/proto" \ + --gocosmos_out=plugins=interfacetype+grpc,\ Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:. \ $(find "${dir}" -maxdepth 1 -name '*.proto') done + +cp -r github.com/cosmos/cosmos-sdk/* ./ +rm -rf github.com diff --git a/third_party/proto/cosmos-proto/cosmos.proto b/third_party/proto/cosmos_proto/cosmos.proto similarity index 100% rename from third_party/proto/cosmos-proto/cosmos.proto rename to third_party/proto/cosmos_proto/cosmos.proto diff --git a/third_party/proto/google/protobuf/any.proto b/third_party/proto/google/protobuf/any.proto index a769fa3b2229..1431810ea45f 100644 --- a/third_party/proto/google/protobuf/any.proto +++ b/third_party/proto/google/protobuf/any.proto @@ -32,7 +32,7 @@ syntax = "proto3"; package google.protobuf; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option go_package = "types"; diff --git a/third_party/proto/tendermint/abci/types/types.proto b/third_party/proto/tendermint/abci/types/types.proto index 7fb4b1bdb703..317a6cd4b68e 100644 --- a/third_party/proto/tendermint/abci/types/types.proto +++ b/third_party/proto/tendermint/abci/types/types.proto @@ -4,9 +4,9 @@ option go_package = "github.com/tendermint/tendermint/abci/types"; // For more information on gogo.proto, see: // https://github.com/gogo/protobuf/blob/master/extensions.md -import "third_party/proto/gogoproto/gogo.proto"; -import "third_party/proto/tendermint/crypto/merkle/merkle.proto"; -import "third_party/proto/tendermint/libs/kv/types.proto"; +import "gogoproto/gogo.proto"; +import "tendermint/crypto/merkle/merkle.proto"; +import "tendermint/libs/kv/types.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; diff --git a/third_party/proto/tendermint/crypto/merkle/merkle.proto b/third_party/proto/tendermint/crypto/merkle/merkle.proto index 159fc58c98dd..d0b657ef04b3 100644 --- a/third_party/proto/tendermint/crypto/merkle/merkle.proto +++ b/third_party/proto/tendermint/crypto/merkle/merkle.proto @@ -4,7 +4,7 @@ option go_package = "github.com/tendermint/tendermint/crypto/merkle"; // For more information on gogo.proto, see: // https://github.com/gogo/protobuf/blob/master/extensions.md -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.unmarshaler_all) = true; diff --git a/third_party/proto/tendermint/libs/kv/types.proto b/third_party/proto/tendermint/libs/kv/types.proto index 7e1375c21aba..334eab5ac30b 100644 --- a/third_party/proto/tendermint/libs/kv/types.proto +++ b/third_party/proto/tendermint/libs/kv/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package tendermint.libs.kv; option go_package = "github.com/tendermint/tendermint/libs/kv"; -import "third_party/proto/gogoproto/gogo.proto"; +import "gogoproto/gogo.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.unmarshaler_all) = true; diff --git a/types/types.pb.go b/types/cosmos.pb.go similarity index 81% rename from types/types.pb.go rename to types/cosmos.pb.go index 930fcdcdc179..0915284ece01 100644 --- a/types/types.pb.go +++ b/types/cosmos.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: types/types.proto +// source: cosmos/cosmos.proto package types @@ -38,7 +38,7 @@ type Coin struct { func (m *Coin) Reset() { *m = Coin{} } func (*Coin) ProtoMessage() {} func (*Coin) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{0} + return fileDescriptor_809e58c688fefd51, []int{0} } func (m *Coin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,7 +86,7 @@ type DecCoin struct { func (m *DecCoin) Reset() { *m = DecCoin{} } func (*DecCoin) ProtoMessage() {} func (*DecCoin) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{1} + return fileDescriptor_809e58c688fefd51, []int{1} } func (m *DecCoin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -130,7 +130,7 @@ type IntProto struct { func (m *IntProto) Reset() { *m = IntProto{} } func (*IntProto) ProtoMessage() {} func (*IntProto) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{2} + return fileDescriptor_809e58c688fefd51, []int{2} } func (m *IntProto) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -167,7 +167,7 @@ type DecProto struct { func (m *DecProto) Reset() { *m = DecProto{} } func (*DecProto) ProtoMessage() {} func (*DecProto) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{3} + return fileDescriptor_809e58c688fefd51, []int{3} } func (m *DecProto) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -204,7 +204,7 @@ type ValAddresses struct { func (m *ValAddresses) Reset() { *m = ValAddresses{} } func (*ValAddresses) ProtoMessage() {} func (*ValAddresses) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{4} + return fileDescriptor_809e58c688fefd51, []int{4} } func (m *ValAddresses) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -251,7 +251,7 @@ type GasInfo struct { func (m *GasInfo) Reset() { *m = GasInfo{} } func (*GasInfo) ProtoMessage() {} func (*GasInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{5} + return fileDescriptor_809e58c688fefd51, []int{5} } func (m *GasInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -309,7 +309,7 @@ type Result struct { func (m *Result) Reset() { *m = Result{} } func (*Result) ProtoMessage() {} func (*Result) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{6} + return fileDescriptor_809e58c688fefd51, []int{6} } func (m *Result) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -348,7 +348,7 @@ type SimulationResponse struct { func (m *SimulationResponse) Reset() { *m = SimulationResponse{} } func (*SimulationResponse) ProtoMessage() {} func (*SimulationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{7} + return fileDescriptor_809e58c688fefd51, []int{7} } func (m *SimulationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -393,7 +393,7 @@ type MsgData struct { func (m *MsgData) Reset() { *m = MsgData{} } func (*MsgData) ProtoMessage() {} func (*MsgData) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{8} + return fileDescriptor_809e58c688fefd51, []int{8} } func (m *MsgData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -445,7 +445,7 @@ type TxData struct { func (m *TxData) Reset() { *m = TxData{} } func (*TxData) ProtoMessage() {} func (*TxData) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{9} + return fileDescriptor_809e58c688fefd51, []int{9} } func (m *TxData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -482,59 +482,58 @@ func (m *TxData) GetData() []*MsgData { } func init() { - proto.RegisterType((*Coin)(nil), "cosmos_sdk.v1.Coin") - proto.RegisterType((*DecCoin)(nil), "cosmos_sdk.v1.DecCoin") - proto.RegisterType((*IntProto)(nil), "cosmos_sdk.v1.IntProto") - proto.RegisterType((*DecProto)(nil), "cosmos_sdk.v1.DecProto") - proto.RegisterType((*ValAddresses)(nil), "cosmos_sdk.v1.ValAddresses") - proto.RegisterType((*GasInfo)(nil), "cosmos_sdk.v1.GasInfo") - proto.RegisterType((*Result)(nil), "cosmos_sdk.v1.Result") - proto.RegisterType((*SimulationResponse)(nil), "cosmos_sdk.v1.SimulationResponse") - proto.RegisterType((*MsgData)(nil), "cosmos_sdk.v1.MsgData") - proto.RegisterType((*TxData)(nil), "cosmos_sdk.v1.TxData") -} - -func init() { proto.RegisterFile("types/types.proto", fileDescriptor_2c0f90c600ad7e2e) } - -var fileDescriptor_2c0f90c600ad7e2e = []byte{ - // 586 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x4d, 0x6f, 0xd3, 0x40, - 0x10, 0xb5, 0x6b, 0xe3, 0xa4, 0x9b, 0xf2, 0xd1, 0x85, 0xa2, 0x50, 0x81, 0x1d, 0x19, 0x09, 0x15, - 0x44, 0x6d, 0xd1, 0x72, 0x32, 0x12, 0x12, 0x26, 0xa8, 0x2a, 0x12, 0x12, 0x32, 0x05, 0x24, 0x2e, - 0xd1, 0xc6, 0xde, 0xba, 0x56, 0xe3, 0x5d, 0xcb, 0xbb, 0x29, 0xe4, 0x96, 0x23, 0x47, 0x7e, 0x42, - 0x7f, 0x4e, 0x8f, 0x39, 0x56, 0x08, 0x59, 0x90, 0x5c, 0x38, 0xf7, 0xc8, 0x09, 0xed, 0xda, 0xc4, - 0x34, 0xe5, 0xc4, 0xc5, 0x9e, 0x9d, 0x79, 0xf3, 0x66, 0xe6, 0xed, 0x2c, 0x58, 0xe5, 0xa3, 0x0c, - 0x33, 0x57, 0x7e, 0x9d, 0x2c, 0xa7, 0x9c, 0xc2, 0xcb, 0x21, 0x65, 0x29, 0x65, 0x3d, 0x16, 0x1d, - 0x3a, 0x47, 0x8f, 0xd6, 0xef, 0xf1, 0x83, 0x24, 0x8f, 0x7a, 0x19, 0xca, 0xf9, 0xc8, 0x95, 0x08, - 0x37, 0xa6, 0x31, 0xad, 0xad, 0x32, 0x6d, 0x7d, 0xfb, 0x22, 0x8e, 0x63, 0x12, 0xe1, 0x3c, 0x4d, - 0x08, 0x77, 0x51, 0x3f, 0x4c, 0xdc, 0x0b, 0xb5, 0xec, 0x1d, 0xa0, 0x3f, 0xa7, 0x09, 0x81, 0x37, - 0xc0, 0xa5, 0x08, 0x13, 0x9a, 0xb6, 0xd5, 0x8e, 0xba, 0xb1, 0x1c, 0x94, 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0x84, 0x40, 0x8f, 0x10, 0x47, 0xb2, 0xd2, 0x4a, 0x20, 0x6d, 0x78, 0x0d, 0x68, 0x03, - 0x1a, 0x97, 0x82, 0x06, 0xc2, 0x84, 0x1e, 0x30, 0xf0, 0x11, 0x26, 0x9c, 0xb5, 0xb5, 0x8e, 0xb6, - 0xd1, 0xda, 0xba, 0xed, 0xd4, 0x3b, 0xe0, 0x88, 0x1d, 0x70, 0xca, 0xdb, 0x7f, 0x21, 0x40, 0xbe, - 0x2e, 0x44, 0x0a, 0xaa, 0x0c, 0x4f, 0xff, 0x7c, 0x6c, 0x29, 0xf6, 0x58, 0x05, 0xf0, 0x4d, 0x92, - 0x0e, 0x07, 0x88, 0x27, 0x94, 0x04, 0x98, 0x65, 0x94, 0x30, 0x0c, 0x9f, 0x94, 0x8d, 0x27, 0x64, - 0x9f, 0xca, 0x16, 0x5a, 0x5b, 0x37, 0x9d, 0x73, 0x7b, 0xea, 0x54, 0xc2, 0xf8, 0x4d, 0x41, 0x3a, - 0x29, 0x2c, 0x55, 0x4e, 0x21, 0xb5, 0xda, 0x04, 0x46, 0x2e, 0xa7, 0x90, 0xad, 0xb6, 0xb6, 0xd6, - 0x16, 0x52, 0xcb, 0x11, 0x83, 0x0a, 0x64, 0x3f, 0x05, 0x8d, 0x57, 0x2c, 0xee, 0x8a, 0x09, 0x6f, - 0x81, 0x66, 0xca, 0xe2, 0x9e, 0x68, 0xba, 0x5a, 0xa7, 0x46, 0xca, 0xe2, 0xbd, 0x51, 0x86, 0xe7, - 0x82, 0x2c, 0xd5, 0x82, 0x54, 0xb7, 0xe4, 0x01, 0x63, 0xef, 0x93, 0x4c, 0x7f, 0x30, 0x17, 0x4d, - 0xfb, 0x47, 0xc7, 0x55, 0x91, 0xbf, 0x73, 0xfd, 0xee, 0xe9, 0x0f, 0x53, 0x19, 0x4f, 0x4d, 0xe5, - 0x64, 0x6a, 0xaa, 0x93, 0xa9, 0xa9, 0x7e, 0x9f, 0x9a, 0xea, 0x97, 0x99, 0xa9, 0x4c, 0x66, 0xa6, - 0x72, 0x3a, 0x33, 0x95, 0x0f, 0x76, 0x9c, 0xf0, 0x83, 0x61, 0xdf, 0x09, 0x69, 0xea, 0x96, 0x7c, - 0xd5, 0x6f, 0x93, 0x45, 0x87, 0xe5, 0xe3, 0xea, 0x1b, 0xf2, 0x75, 0x6d, 0xff, 0x0e, 0x00, 0x00, - 0xff, 0xff, 0xb6, 0xfc, 0xcd, 0xf8, 0xde, 0x03, 0x00, 0x00, + proto.RegisterType((*Coin)(nil), "cosmos.Coin") + proto.RegisterType((*DecCoin)(nil), "cosmos.DecCoin") + proto.RegisterType((*IntProto)(nil), "cosmos.IntProto") + proto.RegisterType((*DecProto)(nil), "cosmos.DecProto") + proto.RegisterType((*ValAddresses)(nil), "cosmos.ValAddresses") + proto.RegisterType((*GasInfo)(nil), "cosmos.GasInfo") + proto.RegisterType((*Result)(nil), "cosmos.Result") + proto.RegisterType((*SimulationResponse)(nil), "cosmos.SimulationResponse") + proto.RegisterType((*MsgData)(nil), "cosmos.MsgData") + proto.RegisterType((*TxData)(nil), "cosmos.TxData") +} + +func init() { proto.RegisterFile("cosmos/cosmos.proto", fileDescriptor_809e58c688fefd51) } + +var fileDescriptor_809e58c688fefd51 = []byte{ + // 567 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xc1, 0x6f, 0xd3, 0x3e, + 0x14, 0x4e, 0x96, 0xfc, 0xd2, 0xee, 0x75, 0xda, 0x7e, 0x78, 0x43, 0x2a, 0x13, 0x24, 0x25, 0x93, + 0xd0, 0x90, 0x20, 0x95, 0xba, 0x9d, 0x7a, 0x40, 0x22, 0x14, 0x4d, 0x45, 0x42, 0x42, 0x61, 0x80, + 0xc4, 0x65, 0x72, 0x13, 0x2f, 0x44, 0x34, 0x76, 0x55, 0xbb, 0x40, 0x6f, 0x3b, 0x72, 0xe4, 0x4f,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8, 0x72, 0xd1, 0x34, 0x5b, 0xd6, 0xee, 0x5a, 0xb8, 0xfe, 0xa7, + 0xf0, 0xa0, 0x02, 0x45, 0x15, 0xa0, 0x6b, 0x9f, 0xfc, 0x68, 0x99, 0x3e, 0x83, 0xda, 0x01, 0xe6, + 0x7d, 0x7a, 0xcc, 0xd0, 0x3e, 0x40, 0x8a, 0xf9, 0xd1, 0x67, 0x4c, 0x05, 0x49, 0xd4, 0xa6, 0x76, + 0x78, 0xfb, 0xa2, 0xf0, 0x6e, 0x4d, 0x71, 0x3e, 0xec, 0xfa, 0x55, 0xcd, 0x8f, 0x56, 0x53, 0xcc, + 0xdf, 0xa9, 0x18, 0x05, 0x50, 0x97, 0x95, 0x09, 0x27, 0x89, 0xf2, 0xc1, 0x0e, 0x37, 0x2f, 0x0a, + 0x6f, 0xa3, 0xea, 0x91, 0x15, 0x3f, 0xaa, 0xa5, 0x98, 0xbf, 0x91, 0xd1, 0x08, 0x9c, 0x88, 0xf0, + 0xc9, 0x50, 0x20, 0x04, 0x76, 0x82, 0x05, 0x56, 0x3b, 0xad, 0x45, 0x2a, 0x46, 0xff, 0x83, 0x35, + 0x64, 0xa9, 0x36, 0x34, 0x92, 0x21, 0xea, 0x82, 0x43, 0x3e, 0x11, 0x2a, 0x78, 0xd3, 0x6a, 0x59, + 0xbb, 0x8d, 0xce, 0xdd, 0xa0, 0x9a, 0x81, 0x40, 0xce, 0x40, 0xa0, 0x6f, 0xff, 0xb9, 0x04, 0x85, + 0xb6, 0x34, 0x29, 0x2a, 0x3b, 0xba, 0xf6, 0xd7, 0x53, 0xcf, 0xf0, 0xc7, 0x80, 0x5e, 0x67, 0xf9, + 0x64, 0x88, 0x45, 0xc6, 0x68, 0x44, 0xf8, 0x88, 0x51, 0x4e, 0xd0, 0xbe, 0xd6, 0x9d, 0xd1, 0x63, + 0xa6, 0x14, 0x34, 0x3a, 0x1b, 0x41, 0x39, 0x89, 0xa5, 0x21, 0x61, 0x5d, 0x92, 0xcd, 0x0a, 0xcf, + 0x54, 0xea, 0x95, 0x47, 0x0f, 0xc0, 0x19, 0x2b, 0xf5, 0x4a, 0x62, 0xa3, 0xb3, 0x7e, 0xd9, 0xa3, + 0xcf, 0x14, 0x95, 0x55, 0xff, 0x09, 0xd4, 0x5e, 0xf2, 0xb4, 0x27, 0x8f, 0x74, 0x07, 0xea, 0x39, + 0x4f, 0x8f, 0xa4, 0xca, 0x72, 0x7e, 0x6a, 0x39, 0x4f, 0x0f, 0xa7, 0x23, 0xb2, 0x74, 0x60, 0xa5, + 0x72, 0xa0, 0xbc, 0x96, 0x3d, 0x70, 0x0e, 0xbf, 0xa8, 0xf6, 0x9d, 0xa5, 0x4b, 0xd6, 0x55, 0x8d, + 0x25, 0xfb, 0xd5, 0xa6, 0xb0, 0x77, 0xfe, 0xcb, 0x35, 0x4e, 0xe6, 0xae, 0x71, 0x36, 0x77, 0xcd, + 0xd9, 0xdc, 0x35, 0x7f, 0xce, 0x5d, 0xf3, 0xdb, 0xc2, 0x35, 0x66, 0x0b, 0xd7, 0x38, 0x5f, 0xb8, + 0xc6, 0x7b, 0x3f, 0xcd, 0xc4, 0x87, 0xc9, 0x20, 0x88, 0x59, 0xde, 0xbe, 0xf6, 0xfa, 0x1e, 0xf3, + 0xe4, 0xa3, 0x7e, 0x46, 0x03, 0x47, 0xbd, 0xa3, 0xbd, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x39, + 0x8e, 0x45, 0x07, 0x9f, 0x03, 0x00, 0x00, } func (this *Coin) Equal(that interface{}) bool { @@ -617,14 +616,14 @@ func (m *Coin) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCosmos(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if len(m.Denom) > 0 { i -= len(m.Denom) copy(dAtA[i:], m.Denom) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Denom))) + i = encodeVarintCosmos(dAtA, i, uint64(len(m.Denom))) i-- dAtA[i] = 0xa } @@ -657,14 +656,14 @@ func (m *DecCoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCosmos(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if len(m.Denom) > 0 { i -= len(m.Denom) copy(dAtA[i:], m.Denom) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Denom))) + i = encodeVarintCosmos(dAtA, i, uint64(len(m.Denom))) i-- dAtA[i] = 0xa } @@ -697,7 +696,7 @@ func (m *IntProto) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Int.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCosmos(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -730,7 +729,7 @@ func (m *DecProto) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Dec.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCosmos(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -761,7 +760,7 @@ func (m *ValAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Addresses[iNdEx]) copy(dAtA[i:], m.Addresses[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Addresses[iNdEx]))) + i = encodeVarintCosmos(dAtA, i, uint64(len(m.Addresses[iNdEx]))) i-- dAtA[i] = 0xa } @@ -790,12 +789,12 @@ func (m *GasInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.GasUsed != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed)) + i = encodeVarintCosmos(dAtA, i, uint64(m.GasUsed)) i-- dAtA[i] = 0x10 } if m.GasWanted != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted)) + i = encodeVarintCosmos(dAtA, i, uint64(m.GasWanted)) i-- dAtA[i] = 0x8 } @@ -830,7 +829,7 @@ func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCosmos(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -839,14 +838,14 @@ func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Log) > 0 { i -= len(m.Log) copy(dAtA[i:], m.Log) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) + i = encodeVarintCosmos(dAtA, i, uint64(len(m.Log))) i-- dAtA[i] = 0x12 } if len(m.Data) > 0 { i -= len(m.Data) copy(dAtA[i:], m.Data) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) + i = encodeVarintCosmos(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0xa } @@ -880,7 +879,7 @@ func (m *SimulationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCosmos(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -891,7 +890,7 @@ func (m *SimulationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCosmos(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -921,14 +920,14 @@ func (m *MsgData) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Data) > 0 { i -= len(m.Data) copy(dAtA[i:], m.Data) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) + i = encodeVarintCosmos(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0x12 } if len(m.MsgType) > 0 { i -= len(m.MsgType) copy(dAtA[i:], m.MsgType) - i = encodeVarintTypes(dAtA, i, uint64(len(m.MsgType))) + i = encodeVarintCosmos(dAtA, i, uint64(len(m.MsgType))) i-- dAtA[i] = 0xa } @@ -963,7 +962,7 @@ func (m *TxData) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCosmos(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -972,8 +971,8 @@ func (m *TxData) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintCosmos(dAtA []byte, offset int, v uint64) int { + offset -= sovCosmos(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -991,10 +990,10 @@ func (m *Coin) Size() (n int) { _ = l l = len(m.Denom) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } l = m.Amount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) return n } @@ -1006,10 +1005,10 @@ func (m *DecCoin) Size() (n int) { _ = l l = len(m.Denom) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } l = m.Amount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) return n } @@ -1020,7 +1019,7 @@ func (m *IntProto) Size() (n int) { var l int _ = l l = m.Int.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) return n } @@ -1031,7 +1030,7 @@ func (m *DecProto) Size() (n int) { var l int _ = l l = m.Dec.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) return n } @@ -1044,7 +1043,7 @@ func (m *ValAddresses) Size() (n int) { if len(m.Addresses) > 0 { for _, b := range m.Addresses { l = len(b) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } } return n @@ -1057,10 +1056,10 @@ func (m *GasInfo) Size() (n int) { var l int _ = l if m.GasWanted != 0 { - n += 1 + sovTypes(uint64(m.GasWanted)) + n += 1 + sovCosmos(uint64(m.GasWanted)) } if m.GasUsed != 0 { - n += 1 + sovTypes(uint64(m.GasUsed)) + n += 1 + sovCosmos(uint64(m.GasUsed)) } return n } @@ -1073,16 +1072,16 @@ func (m *Result) Size() (n int) { _ = l l = len(m.Data) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } l = len(m.Log) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } if len(m.Events) > 0 { for _, e := range m.Events { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } } return n @@ -1095,10 +1094,10 @@ func (m *SimulationResponse) Size() (n int) { var l int _ = l l = m.GasInfo.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) if m.Result != nil { l = m.Result.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } return n } @@ -1111,11 +1110,11 @@ func (m *MsgData) Size() (n int) { _ = l l = len(m.MsgType) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } l = len(m.Data) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } return n } @@ -1129,17 +1128,17 @@ func (m *TxData) Size() (n int) { if len(m.Data) > 0 { for _, e := range m.Data { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCosmos(uint64(l)) } } return n } -func sovTypes(x uint64) (n int) { +func sovCosmos(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozCosmos(x uint64) (n int) { + return sovCosmos(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (this *ValAddresses) String() string { if this == nil { @@ -1177,7 +1176,7 @@ func (this *TxData) String() string { }, "") return s } -func valueToStringTypes(v interface{}) string { +func valueToStringCosmos(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" @@ -1193,7 +1192,7 @@ func (m *Coin) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1221,7 +1220,7 @@ func (m *Coin) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1235,11 +1234,11 @@ func (m *Coin) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1253,7 +1252,7 @@ func (m *Coin) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1267,11 +1266,11 @@ func (m *Coin) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1282,15 +1281,15 @@ func (m *Coin) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1312,7 +1311,7 @@ func (m *DecCoin) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1340,7 +1339,7 @@ func (m *DecCoin) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1354,11 +1353,11 @@ func (m *DecCoin) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1372,7 +1371,7 @@ func (m *DecCoin) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1386,11 +1385,11 @@ func (m *DecCoin) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1401,15 +1400,15 @@ func (m *DecCoin) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1431,7 +1430,7 @@ func (m *IntProto) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1459,7 +1458,7 @@ func (m *IntProto) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1473,11 +1472,11 @@ func (m *IntProto) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1488,15 +1487,15 @@ func (m *IntProto) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1518,7 +1517,7 @@ func (m *DecProto) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1546,7 +1545,7 @@ func (m *DecProto) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1560,11 +1559,11 @@ func (m *DecProto) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1575,15 +1574,15 @@ func (m *DecProto) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1605,7 +1604,7 @@ func (m *ValAddresses) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1633,7 +1632,7 @@ func (m *ValAddresses) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1646,11 +1645,11 @@ func (m *ValAddresses) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1660,15 +1659,15 @@ func (m *ValAddresses) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1690,7 +1689,7 @@ func (m *GasInfo) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1718,7 +1717,7 @@ func (m *GasInfo) Unmarshal(dAtA []byte) error { m.GasWanted = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1737,7 +1736,7 @@ func (m *GasInfo) Unmarshal(dAtA []byte) error { m.GasUsed = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1751,15 +1750,15 @@ func (m *GasInfo) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1781,7 +1780,7 @@ func (m *Result) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1809,7 +1808,7 @@ func (m *Result) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1822,11 +1821,11 @@ func (m *Result) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1843,7 +1842,7 @@ func (m *Result) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1857,11 +1856,11 @@ func (m *Result) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1875,7 +1874,7 @@ func (m *Result) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1888,11 +1887,11 @@ func (m *Result) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1904,15 +1903,15 @@ func (m *Result) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1934,7 +1933,7 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1962,7 +1961,7 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1975,11 +1974,11 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -1995,7 +1994,7 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2008,11 +2007,11 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -2026,15 +2025,15 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2056,7 +2055,7 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2084,7 +2083,7 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2098,11 +2097,11 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -2116,7 +2115,7 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2129,11 +2128,11 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -2145,15 +2144,15 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2175,7 +2174,7 @@ func (m *TxData) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2203,7 +2202,7 @@ func (m *TxData) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCosmos } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2216,11 +2215,11 @@ func (m *TxData) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if postIndex > l { return io.ErrUnexpectedEOF @@ -2232,15 +2231,15 @@ func (m *TxData) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCosmos(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCosmos } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2254,7 +2253,7 @@ func (m *TxData) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipCosmos(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -2262,7 +2261,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCosmos } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2279,7 +2278,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCosmos } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2295,7 +2294,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCosmos } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2308,14 +2307,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCosmos } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupCosmos } depth-- case 5: @@ -2324,7 +2323,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCosmos } if depth == 0 { return iNdEx, nil @@ -2334,7 +2333,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthCosmos = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCosmos = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCosmos = fmt.Errorf("proto: unexpected end of group") ) diff --git a/types/tx/signing/types.pb.go b/types/tx/signing/signing.pb.go similarity index 53% rename from types/tx/signing/types.pb.go rename to types/tx/signing/signing.pb.go index 4207f12ad27f..26943a171b47 100644 --- a/types/tx/signing/types.pb.go +++ b/types/tx/signing/signing.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: types/tx/signing/types.proto +// source: cosmos/tx/signing/signing.proto package signing @@ -56,29 +56,29 @@ func (x SignMode) String() string { } func (SignMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_52d5d5e2efced9ba, []int{0} + return fileDescriptor_8a04324e5f3729bf, []int{0} } func init() { - proto.RegisterEnum("cosmos_sdk.tx.signing.v1.SignMode", SignMode_name, SignMode_value) + proto.RegisterEnum("cosmos.tx.signing.SignMode", SignMode_name, SignMode_value) } -func init() { proto.RegisterFile("types/tx/signing/types.proto", fileDescriptor_52d5d5e2efced9ba) } +func init() { proto.RegisterFile("cosmos/tx/signing/signing.proto", fileDescriptor_8a04324e5f3729bf) } -var fileDescriptor_52d5d5e2efced9ba = []byte{ - // 222 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0xa9, 0x2c, 0x48, - 0x2d, 0xd6, 0x2f, 0xa9, 0xd0, 0x2f, 0xce, 0x4c, 0xcf, 0xcb, 0xcc, 0x4b, 0xd7, 0x07, 0x0b, 0xe8, - 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x49, 0x24, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xc7, 0x17, 0xa7, - 0x64, 0xeb, 0x95, 0x54, 0xe8, 0x41, 0x95, 0xe8, 0x95, 0x19, 0x6a, 0x15, 0x73, 0x71, 0x04, 0x67, - 0xa6, 0xe7, 0xf9, 0xe6, 0xa7, 0xa4, 0x0a, 0x49, 0x72, 0x89, 0x06, 0x7b, 0xba, 0xfb, 0xc5, 0xfb, - 0xfa, 0xbb, 0xb8, 0xc6, 0x87, 0xfa, 0x05, 0x07, 0xb8, 0x3a, 0x7b, 0xba, 0x79, 0xba, 0xba, 0x08, - 0x30, 0x08, 0x89, 0x70, 0x09, 0x20, 0xa4, 0x5c, 0x3c, 0x83, 0x5c, 0x9d, 0x43, 0x04, 0x18, 0x85, - 0x44, 0xb9, 0x04, 0x11, 0xa2, 0x21, 0xae, 0x11, 0x21, 0xa1, 0x8e, 0x3e, 0x02, 0x4c, 0x42, 0xf2, - 0x5c, 0xd2, 0x08, 0x61, 0x1f, 0x57, 0x77, 0x47, 0xe7, 0xc8, 0x78, 0x47, 0x5f, 0x4f, 0x3f, 0xff, - 0x78, 0xaf, 0x60, 0x7f, 0x3f, 0x81, 0x7a, 0x27, 0xf7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, - 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, - 0x96, 0x63, 0x88, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, - 0xb8, 0x19, 0x4a, 0xe9, 0x16, 0xa7, 0x64, 0xeb, 0xa3, 0xfb, 0x31, 0x89, 0x0d, 0xec, 0x3d, 0x63, - 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x11, 0xdd, 0x92, 0xfe, 0x00, 0x00, 0x00, +var fileDescriptor_8a04324e5f3729bf = []byte{ + // 214 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0x2f, 0xa9, 0xd0, 0x2f, 0xce, 0x4c, 0xcf, 0xcb, 0xcc, 0x4b, 0x87, 0xd1, 0x7a, + 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x82, 0x10, 0x05, 0x7a, 0x25, 0x15, 0x7a, 0x50, 0x09, 0xad, + 0x62, 0x2e, 0x8e, 0xe0, 0xcc, 0xf4, 0x3c, 0xdf, 0xfc, 0x94, 0x54, 0x21, 0x49, 0x2e, 0xd1, 0x60, + 0x4f, 0x77, 0xbf, 0x78, 0x5f, 0x7f, 0x17, 0xd7, 0xf8, 0x50, 0xbf, 0xe0, 0x00, 0x57, 0x67, 0x4f, + 0x37, 0x4f, 0x57, 0x17, 0x01, 0x06, 0x21, 0x11, 0x2e, 0x01, 0x84, 0x94, 0x8b, 0x67, 0x90, 0xab, + 0x73, 0x88, 0x00, 0xa3, 0x90, 0x28, 0x97, 0x20, 0x42, 0x34, 0xc4, 0x35, 0x22, 0x24, 0xd4, 0xd1, + 0x47, 0x80, 0x49, 0x48, 0x9e, 0x4b, 0x1a, 0x21, 0xec, 0xe3, 0xea, 0xee, 0xe8, 0x1c, 0x19, 0xef, + 0xe8, 0xeb, 0xe9, 0xe7, 0x1f, 0xef, 0x15, 0xec, 0xef, 0x27, 0x50, 0xef, 0xe4, 0x7e, 0xe2, 0x91, + 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, + 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xba, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, + 0xc9, 0xf9, 0xb9, 0xfa, 0x50, 0xdf, 0x40, 0x28, 0xdd, 0xe2, 0x94, 0x6c, 0xfd, 0x92, 0xca, 0x82, + 0x54, 0x64, 0xef, 0x25, 0xb1, 0x81, 0xfd, 0x65, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x92, + 0x08, 0x61, 0xfa, 0x00, 0x00, 0x00, } diff --git a/types/tx/types.pb.go b/types/tx/tx.pb.go similarity index 81% rename from types/tx/types.pb.go rename to types/tx/tx.pb.go index 770cc3610778..9fb635b818d3 100644 --- a/types/tx/types.pb.go +++ b/types/tx/tx.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: types/tx/types.proto +// source: cosmos/tx/tx.proto -package types +package tx import ( fmt "fmt" @@ -43,7 +43,7 @@ func (m *Tx) Reset() { *m = Tx{} } func (m *Tx) String() string { return proto.CompactTextString(m) } func (*Tx) ProtoMessage() {} func (*Tx) Descriptor() ([]byte, []int) { - return fileDescriptor_1c6ac8fa65877134, []int{0} + return fileDescriptor_9b35c9d5d6b7bce8, []int{0} } func (m *Tx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -114,7 +114,7 @@ func (m *SignDoc) Reset() { *m = SignDoc{} } func (m *SignDoc) String() string { return proto.CompactTextString(m) } func (*SignDoc) ProtoMessage() {} func (*SignDoc) Descriptor() ([]byte, []int) { - return fileDescriptor_1c6ac8fa65877134, []int{1} + return fileDescriptor_9b35c9d5d6b7bce8, []int{1} } func (m *SignDoc) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -201,7 +201,7 @@ func (m *TxBody) Reset() { *m = TxBody{} } func (m *TxBody) String() string { return proto.CompactTextString(m) } func (*TxBody) ProtoMessage() {} func (*TxBody) Descriptor() ([]byte, []int) { - return fileDescriptor_1c6ac8fa65877134, []int{2} + return fileDescriptor_9b35c9d5d6b7bce8, []int{2} } func (m *TxBody) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -280,7 +280,7 @@ func (m *AuthInfo) Reset() { *m = AuthInfo{} } func (m *AuthInfo) String() string { return proto.CompactTextString(m) } func (*AuthInfo) ProtoMessage() {} func (*AuthInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1c6ac8fa65877134, []int{3} + return fileDescriptor_9b35c9d5d6b7bce8, []int{3} } func (m *AuthInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -337,7 +337,7 @@ func (m *SignerInfo) Reset() { *m = SignerInfo{} } func (m *SignerInfo) String() string { return proto.CompactTextString(m) } func (*SignerInfo) ProtoMessage() {} func (*SignerInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1c6ac8fa65877134, []int{4} + return fileDescriptor_9b35c9d5d6b7bce8, []int{4} } func (m *SignerInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -395,7 +395,7 @@ func (m *ModeInfo) Reset() { *m = ModeInfo{} } func (m *ModeInfo) String() string { return proto.CompactTextString(m) } func (*ModeInfo) ProtoMessage() {} func (*ModeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1c6ac8fa65877134, []int{5} + return fileDescriptor_9b35c9d5d6b7bce8, []int{5} } func (m *ModeInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -473,14 +473,14 @@ func (*ModeInfo) XXX_OneofWrappers() []interface{} { // to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the future type ModeInfo_Single struct { // mode is the signing mode of the single signer - Mode signing.SignMode `protobuf:"varint,1,opt,name=mode,proto3,enum=cosmos_sdk.tx.signing.v1.SignMode" json:"mode,omitempty"` + Mode signing.SignMode `protobuf:"varint,1,opt,name=mode,proto3,enum=cosmos.tx.signing.SignMode" json:"mode,omitempty"` } func (m *ModeInfo_Single) Reset() { *m = ModeInfo_Single{} } func (m *ModeInfo_Single) String() string { return proto.CompactTextString(m) } func (*ModeInfo_Single) ProtoMessage() {} func (*ModeInfo_Single) Descriptor() ([]byte, []int) { - return fileDescriptor_1c6ac8fa65877134, []int{5, 0} + return fileDescriptor_9b35c9d5d6b7bce8, []int{5, 0} } func (m *ModeInfo_Single) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -529,7 +529,7 @@ func (m *ModeInfo_Multi) Reset() { *m = ModeInfo_Multi{} } func (m *ModeInfo_Multi) String() string { return proto.CompactTextString(m) } func (*ModeInfo_Multi) ProtoMessage() {} func (*ModeInfo_Multi) Descriptor() ([]byte, []int) { - return fileDescriptor_1c6ac8fa65877134, []int{5, 1} + return fileDescriptor_9b35c9d5d6b7bce8, []int{5, 1} } func (m *ModeInfo_Multi) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -587,7 +587,7 @@ func (m *Fee) Reset() { *m = Fee{} } func (m *Fee) String() string { return proto.CompactTextString(m) } func (*Fee) ProtoMessage() {} func (*Fee) Descriptor() ([]byte, []int) { - return fileDescriptor_1c6ac8fa65877134, []int{6} + return fileDescriptor_9b35c9d5d6b7bce8, []int{6} } func (m *Fee) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -631,70 +631,68 @@ func (m *Fee) GetGasLimit() uint64 { } func init() { - proto.RegisterType((*Tx)(nil), "cosmos_sdk.tx.v1.Tx") - proto.RegisterType((*SignDoc)(nil), "cosmos_sdk.tx.v1.SignDoc") - proto.RegisterType((*TxBody)(nil), "cosmos_sdk.tx.v1.TxBody") - proto.RegisterType((*AuthInfo)(nil), "cosmos_sdk.tx.v1.AuthInfo") - proto.RegisterType((*SignerInfo)(nil), "cosmos_sdk.tx.v1.SignerInfo") - proto.RegisterType((*ModeInfo)(nil), "cosmos_sdk.tx.v1.ModeInfo") - proto.RegisterType((*ModeInfo_Single)(nil), "cosmos_sdk.tx.v1.ModeInfo.Single") - proto.RegisterType((*ModeInfo_Multi)(nil), "cosmos_sdk.tx.v1.ModeInfo.Multi") - proto.RegisterType((*Fee)(nil), "cosmos_sdk.tx.v1.Fee") -} - -func init() { proto.RegisterFile("types/tx/types.proto", fileDescriptor_1c6ac8fa65877134) } - -var fileDescriptor_1c6ac8fa65877134 = []byte{ - // 774 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x3d, 0x6f, 0xe3, 0x46, - 0x10, 0x15, 0x45, 0x49, 0x96, 0xc6, 0xdf, 0x1b, 0x07, 0xa0, 0x65, 0x83, 0x56, 0x08, 0x38, 0x51, - 0x80, 0x84, 0x72, 0x6c, 0x20, 0x1f, 0x48, 0xe1, 0x48, 0x4e, 0x0c, 0x1b, 0x89, 0x13, 0x80, 0x72, - 0x65, 0x20, 0x20, 0x28, 0x72, 0x45, 0x2d, 0x2c, 0xee, 0x2a, 0xdc, 0x65, 0x20, 0xa5, 0x4b, 0x91, - 0x2a, 0x4d, 0x9a, 0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2e, 0xd9, 0x5d, 0x96, 0x3a, 0x1c, 0xb1, 0x68, 0xe4, 0xf9, 0xa2, - 0x43, 0x44, 0x3b, 0x25, 0x3b, 0x53, 0x19, 0xfa, 0x0e, 0x60, 0xda, 0x4b, 0x6e, 0x14, 0xe5, 0xd8, - 0xe7, 0x35, 0xb3, 0x96, 0x37, 0x93, 0x77, 0xca, 0xa0, 0xf3, 0x24, 0xb2, 0xfe, 0xd6, 0x40, 0x3f, - 0xc6, 0x18, 0xfd, 0x0e, 0x15, 0x2f, 0x4a, 0xff, 0x78, 0x6a, 0x79, 0x3e, 0xba, 0xef, 0x22, 0x6b, - 0x20, 0xb4, 0xb3, 0x77, 0xf5, 0x62, 0xa7, 0xf0, 0xe4, 0xe5, 0x4e, 0x33, 0x24, 0x62, 0x90, 0xf4, - 0x6c, 0x9f, 0x45, 0xad, 0x8c, 0xa6, 0x7e, 0xbe, 0xe4, 0xc1, 0xa5, 0xba, 0x46, 0x53, 0x01, 0x77, - 0x94, 0x29, 0xda, 0x82, 0x5a, 0xe8, 0x71, 0x77, 0x48, 0x22, 0x22, 0x64, 0xd7, 0x4b, 0x4e, 0x35, - 0xf4, 0xf8, 0x2f, 0xe9, 0x73, 0xe7, 0xf0, 0xea, 0xc6, 0xd4, 0xae, 0x6f, 0x4c, 0xed, 0xd5, 0x8d, - 0xa9, 0xfd, 0x77, 0x6b, 0x16, 0xae, 0x6f, 0xcd, 0xc2, 0xb3, 0x5b, 0xb3, 0x70, 0xb1, 0x3b, 0x3f, - 0x91, 0xfa, 0x6e, 0xf4, 0x2a, 0x72, 0xd7, 0x0e, 0xde, 0x04, 0x00, 0x00, 0xff, 0xff, 0x03, 0x5c, - 0xe0, 0x71, 0x50, 0x06, 0x00, 0x00, + proto.RegisterType((*Tx)(nil), "cosmos.tx.Tx") + proto.RegisterType((*SignDoc)(nil), "cosmos.tx.SignDoc") + proto.RegisterType((*TxBody)(nil), "cosmos.tx.TxBody") + proto.RegisterType((*AuthInfo)(nil), "cosmos.tx.AuthInfo") + proto.RegisterType((*SignerInfo)(nil), "cosmos.tx.SignerInfo") + proto.RegisterType((*ModeInfo)(nil), "cosmos.tx.ModeInfo") + proto.RegisterType((*ModeInfo_Single)(nil), "cosmos.tx.ModeInfo.Single") + proto.RegisterType((*ModeInfo_Multi)(nil), "cosmos.tx.ModeInfo.Multi") + proto.RegisterType((*Fee)(nil), "cosmos.tx.Fee") +} + +func init() { proto.RegisterFile("cosmos/tx/tx.proto", fileDescriptor_9b35c9d5d6b7bce8) } + +var fileDescriptor_9b35c9d5d6b7bce8 = []byte{ + // 749 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcd, 0x6e, 0xdb, 0x38, + 0x10, 0xb6, 0x2c, 0xdb, 0xb1, 0x27, 0xff, 0x4c, 0x16, 0x50, 0x1c, 0x40, 0x31, 0x0c, 0x04, 0xf0, + 0x1e, 0x56, 0xca, 0x3a, 0x7b, 0xd8, 0xdd, 0xcb, 0x22, 0xce, 0x6e, 0x90, 0x60, 0x9b, 0x16, 0xa0, + 0x83, 0x1e, 0x72, 0x11, 0x64, 0x99, 0x96, 0x89, 0x58, 0xa4, 0x2b, 0x52, 0xa8, 0x5d, 0xa0, 0xef, + 0xd0, 0x4b, 0x5f, 0xa2, 0x87, 0x3e, 0x47, 0x6e, 0xcd, 0xb1, 0xa7, 0xb6, 0x48, 0x1e, 0xa4, 0x85, + 0x28, 0xca, 0x71, 0x0b, 0x37, 0x3d, 0xf5, 0xa4, 0xe1, 0x37, 0xdf, 0x37, 0x33, 0x9c, 0x19, 0x11, + 0x50, 0xc0, 0x45, 0xc4, 0x85, 0x2b, 0x27, 0xae, 0x9c, 0x38, 0xe3, 0x98, 0x4b, 0x8e, 0x6a, 0x19, + 0xe6, 0xc8, 0x49, 0x7d, 0x3b, 0xe4, 0x21, 0x57, 0xa8, 0x9b, 0x5a, 0x19, 0xa1, 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0xe2, 0xba, 0xc6, 0xbb, 0x1a, 0x6e, 0xbe, 0x2e, 0x42, 0x25, 0xab, 0x17, 0x1d, 0x40, 0x35, + 0x22, 0x42, 0xf8, 0x21, 0x11, 0x96, 0xd1, 0x30, 0x5b, 0xcb, 0xed, 0x6d, 0x27, 0x9b, 0x84, 0x93, + 0x4f, 0xc2, 0x39, 0x62, 0x53, 0x3c, 0x63, 0x21, 0x04, 0xa5, 0x88, 0x44, 0xd9, 0xb5, 0x6a, 0x58, + 0xd9, 0x69, 0x89, 0x92, 0x46, 0x84, 0x27, 0xd2, 0x1b, 0x12, 0x1a, 0x0e, 0xa5, 0xba, 0x83, 0x89, + 0x57, 0x35, 0x7a, 0xaa, 0x40, 0xd4, 0x81, 0x4d, 0x32, 0x91, 0x84, 0x09, 0xca, 0x99, 0xc7, 0xc7, + 0x92, 0x72, 0x26, 0xac, 0xcf, 0x4b, 0x0f, 0xa4, 0xdd, 0x98, 0xf1, 0x9f, 0x64, 0x74, 0x74, 0x09, + 0x36, 0xe3, 0xcc, 0x0b, 0x62, 0x2a, 0x69, 0xe0, 0x8f, 0xbc, 0x05, 0x01, 0xd7, 0x1f, 0x08, 0xb8, + 0xcb, 0x38, 0x3b, 0xd6, 0xda, 0xff, 0xbe, 0x89, 0xdd, 0x1c, 0x40, 0x35, 0x1f, 0x0d, 0xfa, 0x13, + 0x56, 0xd2, 0x1d, 0x20, 0xb1, 0x1a, 0x62, 0xde, 0x9c, 0x5f, 0xe6, 0xa6, 0xd8, 0x55, 0x6e, 0x35, + 0xc7, 0x65, 0x31, 0xb3, 0x05, 0x6a, 0x80, 0x39, 0x20, 0x44, 0x8f, 0x7d, 0x6d, 0x4e, 0x70, 0x42, + 0x08, 0x4e, 0x5d, 0x4d, 0x01, 0x70, 0x2f, 0x46, 0x87, 0x00, 0xe3, 0xa4, 0x37, 0xa2, 0x81, 0x77, + 0x45, 0xf2, 0xcd, 0x5a, 0x5c, 0x7c, 0x2d, 0xe3, 0xfd, 0x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, 0xe8, 0x5f, + 0xb9, 0x72, 0x3a, 0x26, 0x99, 0x40, 0x60, 0x1d, 0x0d, 0xed, 0x42, 0x2d, 0xf4, 0x85, 0x37, 0xa2, + 0x11, 0x95, 0xaa, 0xa1, 0x25, 0x5c, 0x0d, 0x7d, 0xf1, 0x28, 0x3d, 0x77, 0xfe, 0xb9, 0xbe, 0xb5, + 0x8d, 0x9b, 0x5b, 0xdb, 0xf8, 0x74, 0x6b, 0x1b, 0xaf, 0xee, 0xec, 0xc2, 0xcd, 0x9d, 0x5d, 0x78, + 0x7f, 0x67, 0x17, 0x2e, 0xf7, 0x7f, 0x9c, 0xc8, 0x95, 0x93, 0x5e, 0x45, 0x2d, 0xce, 0xe1, 0x97, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x14, 0xf8, 0x98, 0x8a, 0xde, 0x05, 0x00, 0x00, } func (m *Tx) Marshal() (dAtA []byte, err error) { @@ -721,7 +719,7 @@ func (m *Tx) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Signatures[iNdEx]) copy(dAtA[i:], m.Signatures[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signatures[iNdEx]))) + i = encodeVarintTx(dAtA, i, uint64(len(m.Signatures[iNdEx]))) i-- dAtA[i] = 0x1a } @@ -733,7 +731,7 @@ func (m *Tx) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -745,7 +743,7 @@ func (m *Tx) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -774,19 +772,19 @@ func (m *SignDoc) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.AccountSequence != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.AccountSequence)) + i = encodeVarintTx(dAtA, i, uint64(m.AccountSequence)) i-- dAtA[i] = 0x28 } if m.AccountNumber != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.AccountNumber)) + i = encodeVarintTx(dAtA, i, uint64(m.AccountNumber)) i-- dAtA[i] = 0x20 } if len(m.ChainId) > 0 { i -= len(m.ChainId) copy(dAtA[i:], m.ChainId) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainId))) + i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId))) i-- dAtA[i] = 0x1a } @@ -797,7 +795,7 @@ func (m *SignDoc) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -809,7 +807,7 @@ func (m *SignDoc) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -845,7 +843,7 @@ func (m *TxBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x7f @@ -861,7 +859,7 @@ func (m *TxBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3f @@ -870,14 +868,14 @@ func (m *TxBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if m.TimeoutHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.TimeoutHeight)) + i = encodeVarintTx(dAtA, i, uint64(m.TimeoutHeight)) i-- dAtA[i] = 0x18 } if len(m.Memo) > 0 { i -= len(m.Memo) copy(dAtA[i:], m.Memo) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Memo))) + i = encodeVarintTx(dAtA, i, uint64(len(m.Memo))) i-- dAtA[i] = 0x12 } @@ -889,7 +887,7 @@ func (m *TxBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -925,7 +923,7 @@ func (m *AuthInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -938,7 +936,7 @@ func (m *AuthInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -974,7 +972,7 @@ func (m *SignerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -986,7 +984,7 @@ func (m *SignerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1040,7 +1038,7 @@ func (m *ModeInfo_Single_) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1061,7 +1059,7 @@ func (m *ModeInfo_Multi_) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -1089,7 +1087,7 @@ func (m *ModeInfo_Single) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Mode != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Mode)) + i = encodeVarintTx(dAtA, i, uint64(m.Mode)) i-- dAtA[i] = 0x8 } @@ -1124,7 +1122,7 @@ func (m *ModeInfo_Multi) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -1137,7 +1135,7 @@ func (m *ModeInfo_Multi) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1166,7 +1164,7 @@ func (m *Fee) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.GasLimit != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.GasLimit)) + i = encodeVarintTx(dAtA, i, uint64(m.GasLimit)) i-- dAtA[i] = 0x10 } @@ -1178,7 +1176,7 @@ func (m *Fee) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1187,8 +1185,8 @@ func (m *Fee) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -1206,16 +1204,16 @@ func (m *Tx) Size() (n int) { _ = l if m.Body != nil { l = m.Body.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } if m.AuthInfo != nil { l = m.AuthInfo.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } if len(m.Signatures) > 0 { for _, b := range m.Signatures { l = len(b) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } } return n @@ -1229,21 +1227,21 @@ func (m *SignDoc) Size() (n int) { _ = l if m.Body != nil { l = m.Body.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } if m.AuthInfo != nil { l = m.AuthInfo.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } l = len(m.ChainId) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } if m.AccountNumber != 0 { - n += 1 + sovTypes(uint64(m.AccountNumber)) + n += 1 + sovTx(uint64(m.AccountNumber)) } if m.AccountSequence != 0 { - n += 1 + sovTypes(uint64(m.AccountSequence)) + n += 1 + sovTx(uint64(m.AccountSequence)) } return n } @@ -1257,26 +1255,26 @@ func (m *TxBody) Size() (n int) { if len(m.Messages) > 0 { for _, e := range m.Messages { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } } l = len(m.Memo) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } if m.TimeoutHeight != 0 { - n += 1 + sovTypes(uint64(m.TimeoutHeight)) + n += 1 + sovTx(uint64(m.TimeoutHeight)) } if len(m.ExtensionOptions) > 0 { for _, e := range m.ExtensionOptions { l = e.Size() - n += 2 + l + sovTypes(uint64(l)) + n += 2 + l + sovTx(uint64(l)) } } if len(m.NonCriticalExtensionOptions) > 0 { for _, e := range m.NonCriticalExtensionOptions { l = e.Size() - n += 2 + l + sovTypes(uint64(l)) + n += 2 + l + sovTx(uint64(l)) } } return n @@ -1291,12 +1289,12 @@ func (m *AuthInfo) Size() (n int) { if len(m.SignerInfos) > 0 { for _, e := range m.SignerInfos { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } } if m.Fee != nil { l = m.Fee.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } return n } @@ -1309,11 +1307,11 @@ func (m *SignerInfo) Size() (n int) { _ = l if m.PublicKey != nil { l = m.PublicKey.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } if m.ModeInfo != nil { l = m.ModeInfo.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } return n } @@ -1338,7 +1336,7 @@ func (m *ModeInfo_Single_) Size() (n int) { _ = l if m.Single != nil { l = m.Single.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } return n } @@ -1350,7 +1348,7 @@ func (m *ModeInfo_Multi_) Size() (n int) { _ = l if m.Multi != nil { l = m.Multi.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } return n } @@ -1361,7 +1359,7 @@ func (m *ModeInfo_Single) Size() (n int) { var l int _ = l if m.Mode != 0 { - n += 1 + sovTypes(uint64(m.Mode)) + n += 1 + sovTx(uint64(m.Mode)) } return n } @@ -1374,12 +1372,12 @@ func (m *ModeInfo_Multi) Size() (n int) { _ = l if m.Bitarray != nil { l = m.Bitarray.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } if len(m.ModeInfos) > 0 { for _, e := range m.ModeInfos { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } } return n @@ -1394,20 +1392,20 @@ func (m *Fee) Size() (n int) { if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTx(uint64(l)) } } if m.GasLimit != 0 { - n += 1 + sovTypes(uint64(m.GasLimit)) + n += 1 + sovTx(uint64(m.GasLimit)) } return n } -func sovTypes(x uint64) (n int) { +func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Tx) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -1417,7 +1415,7 @@ func (m *Tx) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1445,7 +1443,7 @@ func (m *Tx) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1458,11 +1456,11 @@ func (m *Tx) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1481,7 +1479,7 @@ func (m *Tx) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1494,11 +1492,11 @@ func (m *Tx) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1517,7 +1515,7 @@ func (m *Tx) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1530,11 +1528,11 @@ func (m *Tx) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1544,15 +1542,15 @@ func (m *Tx) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1574,7 +1572,7 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1602,7 +1600,7 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1615,11 +1613,11 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1638,7 +1636,7 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1651,11 +1649,11 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1674,7 +1672,7 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1688,11 +1686,11 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1706,7 +1704,7 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { m.AccountNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1725,7 +1723,7 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { m.AccountSequence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1739,15 +1737,15 @@ func (m *SignDoc) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1769,7 +1767,7 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1797,7 +1795,7 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1810,11 +1808,11 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1831,7 +1829,7 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1845,11 +1843,11 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1863,7 +1861,7 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { m.TimeoutHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1882,7 +1880,7 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1895,11 +1893,11 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1916,7 +1914,7 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1929,11 +1927,11 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -1945,15 +1943,15 @@ func (m *TxBody) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1975,7 +1973,7 @@ func (m *AuthInfo) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2003,7 +2001,7 @@ func (m *AuthInfo) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2016,11 +2014,11 @@ func (m *AuthInfo) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -2037,7 +2035,7 @@ func (m *AuthInfo) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2050,11 +2048,11 @@ func (m *AuthInfo) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -2068,15 +2066,15 @@ func (m *AuthInfo) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2098,7 +2096,7 @@ func (m *SignerInfo) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2126,7 +2124,7 @@ func (m *SignerInfo) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2139,11 +2137,11 @@ func (m *SignerInfo) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -2162,7 +2160,7 @@ func (m *SignerInfo) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2175,11 +2173,11 @@ func (m *SignerInfo) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -2193,15 +2191,15 @@ func (m *SignerInfo) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2223,7 +2221,7 @@ func (m *ModeInfo) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2251,7 +2249,7 @@ func (m *ModeInfo) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2264,11 +2262,11 @@ func (m *ModeInfo) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -2286,7 +2284,7 @@ func (m *ModeInfo) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2299,11 +2297,11 @@ func (m *ModeInfo) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -2316,15 +2314,15 @@ func (m *ModeInfo) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2346,7 +2344,7 @@ func (m *ModeInfo_Single) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2374,7 +2372,7 @@ func (m *ModeInfo_Single) Unmarshal(dAtA []byte) error { m.Mode = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2388,15 +2386,15 @@ func (m *ModeInfo_Single) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2418,7 +2416,7 @@ func (m *ModeInfo_Multi) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2446,7 +2444,7 @@ func (m *ModeInfo_Multi) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2459,11 +2457,11 @@ func (m *ModeInfo_Multi) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -2482,7 +2480,7 @@ func (m *ModeInfo_Multi) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2495,11 +2493,11 @@ func (m *ModeInfo_Multi) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -2511,15 +2509,15 @@ func (m *ModeInfo_Multi) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2541,7 +2539,7 @@ func (m *Fee) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2569,7 +2567,7 @@ func (m *Fee) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2582,11 +2580,11 @@ func (m *Fee) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF @@ -2603,7 +2601,7 @@ func (m *Fee) Unmarshal(dAtA []byte) error { m.GasLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTx } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2617,15 +2615,15 @@ func (m *Fee) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2639,7 +2637,7 @@ func (m *Fee) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -2647,7 +2645,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowTx } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2664,7 +2662,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowTx } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2680,7 +2678,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowTx } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2693,14 +2691,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthTx } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupTx } depth-- case 5: @@ -2709,7 +2707,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthTx } if depth == 0 { return iNdEx, nil @@ -2719,7 +2717,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/auth/types/types.pb.go b/x/auth/types/auth.pb.go similarity index 72% rename from x/auth/types/types.pb.go rename to x/auth/types/auth.pb.go index e90c4f1bf60e..cc56b31a299b 100644 --- a/x/auth/types/types.pb.go +++ b/x/auth/types/auth.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/auth/types/types.proto +// source: cosmos/auth/auth.proto package types @@ -38,7 +38,7 @@ type BaseAccount struct { func (m *BaseAccount) Reset() { *m = BaseAccount{} } func (*BaseAccount) ProtoMessage() {} func (*BaseAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_2d526fa662daab74, []int{0} + return fileDescriptor_ec2401f40a84da7e, []int{0} } func (m *BaseAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ type ModuleAccount struct { func (m *ModuleAccount) Reset() { *m = ModuleAccount{} } func (*ModuleAccount) ProtoMessage() {} func (*ModuleAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_2d526fa662daab74, []int{1} + return fileDescriptor_ec2401f40a84da7e, []int{1} } func (m *ModuleAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,7 +118,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_2d526fa662daab74, []int{2} + return fileDescriptor_ec2401f40a84da7e, []int{2} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -183,57 +183,56 @@ func (m *Params) GetSigVerifyCostSecp256k1() uint64 { } func init() { - proto.RegisterType((*BaseAccount)(nil), "cosmos_sdk.x.auth.v1.BaseAccount") - proto.RegisterType((*ModuleAccount)(nil), "cosmos_sdk.x.auth.v1.ModuleAccount") - proto.RegisterType((*Params)(nil), "cosmos_sdk.x.auth.v1.Params") + proto.RegisterType((*BaseAccount)(nil), "cosmos.auth.BaseAccount") + proto.RegisterType((*ModuleAccount)(nil), "cosmos.auth.ModuleAccount") + proto.RegisterType((*Params)(nil), "cosmos.auth.Params") } -func init() { proto.RegisterFile("x/auth/types/types.proto", fileDescriptor_2d526fa662daab74) } +func init() { proto.RegisterFile("cosmos/auth/auth.proto", fileDescriptor_ec2401f40a84da7e) } -var fileDescriptor_2d526fa662daab74 = []byte{ - // 668 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x4f, 0xdb, 0x48, - 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 0x7e, 0x23, 0xa0, 0x99, 0x15, 0x36, 0xc1, 0x13, 0x69, 0x39, 0x02, 0x9b, 0x77, - 0x19, 0x0c, 0x3b, 0xfe, 0xf6, 0xce, 0xc3, 0x6e, 0x53, 0xf9, 0x2b, 0x33, 0x7d, 0x34, 0x8c, 0xe1, - 0xfa, 0x84, 0xe9, 0xe9, 0x0d, 0x22, 0x89, 0x61, 0x6d, 0xba, 0xed, 0x58, 0x44, 0x33, 0xd7, 0xd9, - 0x54, 0x6e, 0x6b, 0x3e, 0xdd, 0xf7, 0xb7, 0x4b, 0x28, 0x19, 0xfb, 0x1f, 0x87, 0xaa, 0x74, 0x35, - 0x54, 0xa5, 0xaf, 0x43, 0x55, 0x7a, 0x73, 0xad, 0x16, 0xae, 0xae, 0xd5, 0xc2, 0xe7, 0x6b, 0xb5, - 0xf0, 0xf2, 0xff, 0x3f, 0xfe, 0xb6, 0xf9, 0xd7, 0xc7, 0x9e, 0xcd, 0x5e, 0x83, 0x07, 0x3f, 0x03, - 0x00, 0x00, 0xff, 0xff, 0x11, 0xf8, 0x99, 0x15, 0x94, 0x04, 0x00, 0x00, +var fileDescriptor_ec2401f40a84da7e = []byte{ + // 650 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x4f, 0xdb, 0x4e, + 0x10, 0x8d, 0x49, 0x7e, 0xfc, 0xd9, 0x00, 0x12, 0x26, 0x80, 0xc9, 0xaf, 0xf2, 0x46, 0x3e, 0x51, + 0xa9, 0x09, 0x82, 0x8a, 0x4a, 0xe4, 0x50, 0x15, 0xd3, 0x56, 0x42, 0x14, 0x84, 0x16, 0xa9, 0xaa, + 0x7a, 0xb1, 0xd6, 0xce, 0x36, 0x58, 0x64, 0xb3, 0xc6, 0xbb, 0xae, 0x62, 0x3e, 0x41, 0x8f, 0x3d, + 0x55, 0x3d, 0xf2, 0x21, 0x7a, 0xeb,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b7, 0x2b, 0xb3, 0xf4, 0xfa, 0xfe, 0x3f, + 0x6f, 0xeb, 0x40, 0x3d, 0x20, 0xf2, 0xd2, 0xba, 0x93, 0xf2, 0x11, 0x78, 0xf8, 0x27, 0x00, 0x00, + 0xff, 0xff, 0x10, 0x68, 0x06, 0x78, 0x5c, 0x04, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -293,26 +292,26 @@ func (m *BaseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Sequence != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Sequence)) + i = encodeVarintAuth(dAtA, i, uint64(m.Sequence)) i-- dAtA[i] = 0x20 } if m.AccountNumber != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.AccountNumber)) + i = encodeVarintAuth(dAtA, i, uint64(m.AccountNumber)) i-- dAtA[i] = 0x18 } if len(m.PubKey) > 0 { i -= len(m.PubKey) copy(dAtA[i:], m.PubKey) - i = encodeVarintTypes(dAtA, i, uint64(len(m.PubKey))) + i = encodeVarintAuth(dAtA, i, uint64(len(m.PubKey))) i-- dAtA[i] = 0x12 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) + i = encodeVarintAuth(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -343,7 +342,7 @@ func (m *ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.Permissions) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Permissions[iNdEx]) copy(dAtA[i:], m.Permissions[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Permissions[iNdEx]))) + i = encodeVarintAuth(dAtA, i, uint64(len(m.Permissions[iNdEx]))) i-- dAtA[i] = 0x1a } @@ -351,7 +350,7 @@ func (m *ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Name))) + i = encodeVarintAuth(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x12 } @@ -362,7 +361,7 @@ func (m *ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintAuth(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -391,35 +390,35 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.SigVerifyCostSecp256k1 != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.SigVerifyCostSecp256k1)) + i = encodeVarintAuth(dAtA, i, uint64(m.SigVerifyCostSecp256k1)) i-- dAtA[i] = 0x28 } if m.SigVerifyCostED25519 != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.SigVerifyCostED25519)) + i = encodeVarintAuth(dAtA, i, uint64(m.SigVerifyCostED25519)) i-- dAtA[i] = 0x20 } if m.TxSizeCostPerByte != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.TxSizeCostPerByte)) + i = encodeVarintAuth(dAtA, i, uint64(m.TxSizeCostPerByte)) i-- dAtA[i] = 0x18 } if m.TxSigLimit != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.TxSigLimit)) + i = encodeVarintAuth(dAtA, i, uint64(m.TxSigLimit)) i-- dAtA[i] = 0x10 } if m.MaxMemoCharacters != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MaxMemoCharacters)) + i = encodeVarintAuth(dAtA, i, uint64(m.MaxMemoCharacters)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintAuth(dAtA []byte, offset int, v uint64) int { + offset -= sovAuth(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -437,17 +436,17 @@ func (m *BaseAccount) Size() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovAuth(uint64(l)) } l = len(m.PubKey) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovAuth(uint64(l)) } if m.AccountNumber != 0 { - n += 1 + sovTypes(uint64(m.AccountNumber)) + n += 1 + sovAuth(uint64(m.AccountNumber)) } if m.Sequence != 0 { - n += 1 + sovTypes(uint64(m.Sequence)) + n += 1 + sovAuth(uint64(m.Sequence)) } return n } @@ -460,16 +459,16 @@ func (m *ModuleAccount) Size() (n int) { _ = l if m.BaseAccount != nil { l = m.BaseAccount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovAuth(uint64(l)) } l = len(m.Name) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovAuth(uint64(l)) } if len(m.Permissions) > 0 { for _, s := range m.Permissions { l = len(s) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovAuth(uint64(l)) } } return n @@ -482,28 +481,28 @@ func (m *Params) Size() (n int) { var l int _ = l if m.MaxMemoCharacters != 0 { - n += 1 + sovTypes(uint64(m.MaxMemoCharacters)) + n += 1 + sovAuth(uint64(m.MaxMemoCharacters)) } if m.TxSigLimit != 0 { - n += 1 + sovTypes(uint64(m.TxSigLimit)) + n += 1 + sovAuth(uint64(m.TxSigLimit)) } if m.TxSizeCostPerByte != 0 { - n += 1 + sovTypes(uint64(m.TxSizeCostPerByte)) + n += 1 + sovAuth(uint64(m.TxSizeCostPerByte)) } if m.SigVerifyCostED25519 != 0 { - n += 1 + sovTypes(uint64(m.SigVerifyCostED25519)) + n += 1 + sovAuth(uint64(m.SigVerifyCostED25519)) } if m.SigVerifyCostSecp256k1 != 0 { - n += 1 + sovTypes(uint64(m.SigVerifyCostSecp256k1)) + n += 1 + sovAuth(uint64(m.SigVerifyCostSecp256k1)) } return n } -func sovTypes(x uint64) (n int) { +func sovAuth(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozAuth(x uint64) (n int) { + return sovAuth(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *BaseAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -513,7 +512,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -541,7 +540,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -554,11 +553,11 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if postIndex > l { return io.ErrUnexpectedEOF @@ -575,7 +574,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -588,11 +587,11 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if postIndex > l { return io.ErrUnexpectedEOF @@ -609,7 +608,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error { m.AccountNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -628,7 +627,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error { m.Sequence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -642,15 +641,15 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipAuth(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -672,7 +671,7 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -700,7 +699,7 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -713,11 +712,11 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if postIndex > l { return io.ErrUnexpectedEOF @@ -736,7 +735,7 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -750,11 +749,11 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if postIndex > l { return io.ErrUnexpectedEOF @@ -768,7 +767,7 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -782,11 +781,11 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if postIndex > l { return io.ErrUnexpectedEOF @@ -795,15 +794,15 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipAuth(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -825,7 +824,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -853,7 +852,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.MaxMemoCharacters = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -872,7 +871,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.TxSigLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -891,7 +890,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.TxSizeCostPerByte = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -910,7 +909,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.SigVerifyCostED25519 = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -929,7 +928,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.SigVerifyCostSecp256k1 = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowAuth } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -943,15 +942,15 @@ func (m *Params) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipAuth(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthAuth } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -965,7 +964,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipAuth(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -973,7 +972,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowAuth } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -990,7 +989,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowAuth } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1006,7 +1005,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowAuth } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1019,14 +1018,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthAuth } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupAuth } depth-- case 5: @@ -1035,7 +1034,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthAuth } if depth == 0 { return iNdEx, nil @@ -1045,7 +1044,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/auth/vesting/types/types.pb.go b/x/auth/vesting/types/vesting.pb.go similarity index 78% rename from x/auth/vesting/types/types.pb.go rename to x/auth/vesting/types/vesting.pb.go index adfa4af2ee88..bafa583a4bff 100644 --- a/x/auth/vesting/types/types.pb.go +++ b/x/auth/vesting/types/vesting.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/auth/vesting/types/types.proto +// source: cosmos/vesting/vesting.proto package types @@ -39,7 +39,7 @@ type BaseVestingAccount struct { func (m *BaseVestingAccount) Reset() { *m = BaseVestingAccount{} } func (*BaseVestingAccount) ProtoMessage() {} func (*BaseVestingAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_b7f744d63a45e116, []int{0} + return fileDescriptor_ae36726ee12abd18, []int{0} } func (m *BaseVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,7 +78,7 @@ type ContinuousVestingAccount struct { func (m *ContinuousVestingAccount) Reset() { *m = ContinuousVestingAccount{} } func (*ContinuousVestingAccount) ProtoMessage() {} func (*ContinuousVestingAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_b7f744d63a45e116, []int{1} + return fileDescriptor_ae36726ee12abd18, []int{1} } func (m *ContinuousVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -117,7 +117,7 @@ type DelayedVestingAccount struct { func (m *DelayedVestingAccount) Reset() { *m = DelayedVestingAccount{} } func (*DelayedVestingAccount) ProtoMessage() {} func (*DelayedVestingAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_b7f744d63a45e116, []int{2} + return fileDescriptor_ae36726ee12abd18, []int{2} } func (m *DelayedVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -155,7 +155,7 @@ type Period struct { func (m *Period) Reset() { *m = Period{} } func (*Period) ProtoMessage() {} func (*Period) Descriptor() ([]byte, []int) { - return fileDescriptor_b7f744d63a45e116, []int{3} + return fileDescriptor_ae36726ee12abd18, []int{3} } func (m *Period) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -209,7 +209,7 @@ type PeriodicVestingAccount struct { func (m *PeriodicVestingAccount) Reset() { *m = PeriodicVestingAccount{} } func (*PeriodicVestingAccount) ProtoMessage() {} func (*PeriodicVestingAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_b7f744d63a45e116, []int{4} + return fileDescriptor_ae36726ee12abd18, []int{4} } func (m *PeriodicVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -239,55 +239,53 @@ func (m *PeriodicVestingAccount) XXX_DiscardUnknown() { var xxx_messageInfo_PeriodicVestingAccount proto.InternalMessageInfo func init() { - proto.RegisterType((*BaseVestingAccount)(nil), "cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount") - proto.RegisterType((*ContinuousVestingAccount)(nil), "cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount") - proto.RegisterType((*DelayedVestingAccount)(nil), "cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount") - proto.RegisterType((*Period)(nil), "cosmos_sdk.x.auth.vesting.v1.Period") - proto.RegisterType((*PeriodicVestingAccount)(nil), "cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount") + proto.RegisterType((*BaseVestingAccount)(nil), "cosmos.vesting.BaseVestingAccount") + proto.RegisterType((*ContinuousVestingAccount)(nil), "cosmos.vesting.ContinuousVestingAccount") + proto.RegisterType((*DelayedVestingAccount)(nil), "cosmos.vesting.DelayedVestingAccount") + proto.RegisterType((*Period)(nil), "cosmos.vesting.Period") + proto.RegisterType((*PeriodicVestingAccount)(nil), "cosmos.vesting.PeriodicVestingAccount") } -func init() { proto.RegisterFile("x/auth/vesting/types/types.proto", fileDescriptor_b7f744d63a45e116) } +func init() { proto.RegisterFile("cosmos/vesting/vesting.proto", fileDescriptor_ae36726ee12abd18) } -var fileDescriptor_b7f744d63a45e116 = []byte{ - // 593 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0x4f, 0x8f, 0xd2, 0x40, - 0x1c, 0xed, 0x2c, 0x88, 0xeb, 0xa0, 0xcb, 0xd2, 0x15, 0x6c, 0x88, 0x69, 0xb1, 0x31, 0x86, 0x8b, - 0xd3, 0x65, 0xf5, 0xc4, 0xcd, 0xae, 0x31, 0xd1, 0xf5, 0x60, 0x1a, 0xe3, 0xc1, 0xc4, 0x34, 0x85, - 0x8e, 0x65, 0xb2, 0xb4, 0x43, 0x3a, 0x03, 0x59, 0x3e, 0xc0, 0x26, 0x26, 0x9b, 0x18, 0x8f, 0x1e, - 0xf7, 0xec, 0xcd, 0x8f, 0x60, 0xe2, 0x61, 0x8f, 0x1c, 0x3d, 0xa1, 0x81, 0x6f, 0xc0, 0x27, 0x30, - 0x74, 0x06, 0x58, 0xcb, 0x2e, 0xc9, 0x7a, 0x30, 0xf1, 0x02, 0x9d, 0x3f, 0xef, 0xfd, 0xde, 0xfb, - 0xcd, 0x9b, 0x16, 0x56, 0x8f, 0x2c, 0xaf, 0xc7, 0xdb, 0x56, 0x1f, 0x33, 0x4e, 0xa2, 0xc0, 0xe2, - 0x83, 0x2e, 0x66, 0xe2, 0x17, 0x75, 0x63, 0xca, 0xa9, 0x7a, 0xb7, 0x45, 0x59, 0x48, 0x99, 0xcb, - 0xfc, 0x43, 0x74, 0x84, 0x66, 0x9b, 0x91, 0xdc, 0x8c, 0xfa, 0xf5, 0xca, 0x03, 0xde, 0x26, 0xb1, - 0xef, 0x76, 0xbd, 0x98, 0x0f, 0xac, 0x04, 0x60, 0x05, 0x34, 0xa0, 0xcb, 0x27, 0xc1, 0x52, 0x29, - 0xae, 0x10, 0x57, 0x34, 0x59, 0x7a, 0x65, 0xc5, 0xfc, 0x96, 0x85, 0xaa, 0xed, 0x31, 0xfc, 0x46, - 0xd4, 0x79, 0xd2, 0x6a, 0xd1, 0x5e, 0xc4, 0xd5, 0x17, 0xf0, 0x66, 0xd3, 0x63, 0xd8, 0xf5, 0xc4, - 0x58, 0x03, 0x55, 0x50, 0xcb, 0xef, 0xdd, 0x43, 0x17, 0x08, 0xac, 0xa3, 0x19, 0x5e, 0x02, 0xed, - 0xec, 0x70, 0x64, 0x00, 0x27, 0xdf, 0x5c, 0x4e, 0xa9, 0x27, 0x00, 0x6e, 0xd3, 0x98, 0x04, 0x24, - 0xf2, 0x3a, 0xae, 0xf4, 0xa3, 0x6d, 0x54, 0x33, 0xb5, 0xfc, 0xde, 0xce, 0x79, 0xc2, 0x7e, 0x1d, - 0xed, 0x53, 0x12, 0xd9, 0x07, 0x67, 0x23, 0x43, 0x99, 0x8e, 0x8c, 0x3b, 0x03, 0x2f, 0xec, 0x34, - 0xcc, 0x34, 0xd4, 0xfc, 0xf2, 0xd3, 0xa8, 0x05, 0x84, 0xb7, 0x7b, 0x4d, 0xd4, 0xa2, 0xa1, 0x25, - 0x18, 0xe4, 0xdf, 0x43, 0xe6, 0x1f, 0x4a, 0x7f, 0x33, 0x2e, 0xe6, 0x14, 0xe6, 0x70, 0x69, 0x50, - 0x3d, 0x06, 0x70, 0xcb, 0xc7, 0x1d, 0x1c, 0x78, 0x1c, 0xfb, 0xee, 0xfb, 0x18, 0x63, 0x2d, 0x73, - 0xb9, 0x96, 0xe7, 0x52, 0x4b, 0x49, 0x68, 0xf9, 0x13, 0x78, 0x35, 0x25, 0xb7, 0x16, 0xe0, 0x67, - 0x31, 0xc6, 0xea, 0x47, 0x00, 0x8b, 0x4b, 0xba, 0x79, 0x5b, 0xb2, 0x97, 0x4b, 0x79, 0x29, 0xa5, - 0x68, 0x69, 0x29, 0x7f, 0xd5, 0x97, 0xed, 0x05, 0x7e, 0xde, 0x18, 0x04, 0x37, 0x71, 0xe4, 0xbb, - 0x9c, 0x84, 0x58, 0xbb, 0x56, 0x05, 0xb5, 0x8c, 0xbd, 0x33, 0x1d, 0x19, 0x05, 0x51, 0x6d, 0xbe, - 0x62, 0x3a, 0xd7, 0x71, 0xe4, 0xbf, 0x26, 0x21, 0x6e, 0x6c, 0x7e, 0x38, 0x35, 0x94, 0xcf, 0xa7, - 0x86, 0x62, 0x7e, 0x07, 0x50, 0xdb, 0xa7, 0x11, 0x27, 0x51, 0x8f, 0xf6, 0x58, 0x2a, 0x49, 0x6d, - 0x78, 0x3b, 0x49, 0x92, 0x54, 0x99, 0x4a, 0xd4, 0x2e, 0x5a, 0x17, 0x79, 0xb4, 0x9a, 0x4c, 0x19, - 0x30, 0xb5, 0xb9, 0x9a, 0xd9, 0xc7, 0x10, 0x32, 0xee, 0xc5, 0x5c, 0x58, 0xd8, 0x48, 0x2c, 0x94, - 0xa6, 0x23, 0xa3, 0x28, 0x2c, 0x2c, 0xd7, 0x4c, 0xe7, 0x46, 0x32, 0x48, 0xd9, 0x38, 0x01, 0xb0, - 0xf4, 0x14, 0x77, 0xbc, 0xc1, 0xa2, 0x27, 0xff, 0xdc, 0xc3, 0x39, 0x35, 0xc7, 0x00, 0xe6, 0x5e, - 0xe1, 0x98, 0x50, 0x5f, 0x2d, 0xc3, 0x5c, 0x07, 0x47, 0x01, 0x6f, 0x27, 0x05, 0x33, 0x8e, 0x1c, - 0xa9, 0xef, 0x60, 0xce, 0x0b, 0x13, 0x21, 0x6b, 0x6e, 0xd3, 0xee, 0x2c, 0x36, 0x57, 0x8a, 0x86, - 0x24, 0x6d, 0x64, 0x13, 0x1d, 0x5f, 0x37, 0x60, 0x59, 0xe8, 0x20, 0xad, 0xff, 0xeb, 0x68, 0xd5, - 0x10, 0x16, 0xe6, 0xd2, 0xba, 0x89, 0x03, 0x26, 0xaf, 0xfa, 0xfd, 0xf5, 0xd2, 0x84, 0x5d, 0x5b, - 0x97, 0x17, 0xae, 0x2c, 0x8a, 0xa4, 0xa8, 0x4c, 0x67, 0x4b, 0xce, 0x88, 0xed, 0x6c, 0x79, 0x76, - 0xf6, 0xc1, 0xd9, 0x58, 0x07, 0xc3, 0xb1, 0x0e, 0x7e, 0x8d, 0x75, 0xf0, 0x69, 0xa2, 0x2b, 0xc3, - 0x89, 0xae, 0xfc, 0x98, 0xe8, 0xca, 0xdb, 0xfa, 0xda, 0x53, 0xb8, 0xe8, 0x03, 0xd1, 0xcc, 0x25, - 0x2f, 0xea, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x89, 0x54, 0xae, 0x4f, 0x3f, 0x06, 0x00, - 0x00, +var fileDescriptor_ae36726ee12abd18 = []byte{ + // 567 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08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 0xf9, 0x90, 0x3e, 0xfc, 0x15, 0x00, 0x00, 0xff, 0xff, 0xb4, + 0x69, 0xaa, 0x1c, 0xbb, 0x05, 0x00, 0x00, } func (m *BaseVestingAccount) Marshal() (dAtA []byte, err error) { @@ -311,7 +309,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.EndTime != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.EndTime)) + i = encodeVarintVesting(dAtA, i, uint64(m.EndTime)) i-- dAtA[i] = 0x28 } @@ -323,7 +321,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintVesting(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -337,7 +335,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintVesting(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -351,7 +349,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintVesting(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -364,7 +362,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintVesting(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -393,7 +391,7 @@ func (m *ContinuousVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error var l int _ = l if m.StartTime != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.StartTime)) + i = encodeVarintVesting(dAtA, i, uint64(m.StartTime)) i-- dAtA[i] = 0x10 } @@ -404,7 +402,7 @@ func (m *ContinuousVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintVesting(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -439,7 +437,7 @@ func (m *DelayedVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintVesting(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -475,14 +473,14 @@ func (m *Period) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintVesting(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Length != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Length)) + i = encodeVarintVesting(dAtA, i, uint64(m.Length)) i-- dAtA[i] = 0x8 } @@ -517,14 +515,14 @@ func (m *PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintVesting(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } } if m.StartTime != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.StartTime)) + i = encodeVarintVesting(dAtA, i, uint64(m.StartTime)) i-- dAtA[i] = 0x10 } @@ -535,7 +533,7 @@ func (m *PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintVesting(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -543,8 +541,8 @@ func (m *PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintVesting(dAtA []byte, offset int, v uint64) int { + offset -= sovVesting(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -562,28 +560,28 @@ func (m *BaseVestingAccount) Size() (n int) { _ = l if m.BaseAccount != nil { l = m.BaseAccount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovVesting(uint64(l)) } if len(m.OriginalVesting) > 0 { for _, e := range m.OriginalVesting { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovVesting(uint64(l)) } } if len(m.DelegatedFree) > 0 { for _, e := range m.DelegatedFree { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovVesting(uint64(l)) } } if len(m.DelegatedVesting) > 0 { for _, e := range m.DelegatedVesting { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovVesting(uint64(l)) } } if m.EndTime != 0 { - n += 1 + sovTypes(uint64(m.EndTime)) + n += 1 + sovVesting(uint64(m.EndTime)) } return n } @@ -596,10 +594,10 @@ func (m *ContinuousVestingAccount) Size() (n int) { _ = l if m.BaseVestingAccount != nil { l = m.BaseVestingAccount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovVesting(uint64(l)) } if m.StartTime != 0 { - n += 1 + sovTypes(uint64(m.StartTime)) + n += 1 + sovVesting(uint64(m.StartTime)) } return n } @@ -612,7 +610,7 @@ func (m *DelayedVestingAccount) Size() (n int) { _ = l if m.BaseVestingAccount != nil { l = m.BaseVestingAccount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovVesting(uint64(l)) } return n } @@ -624,12 +622,12 @@ func (m *Period) Size() (n int) { var l int _ = l if m.Length != 0 { - n += 1 + sovTypes(uint64(m.Length)) + n += 1 + sovVesting(uint64(m.Length)) } if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovVesting(uint64(l)) } } return n @@ -643,25 +641,25 @@ func (m *PeriodicVestingAccount) Size() (n int) { _ = l if m.BaseVestingAccount != nil { l = m.BaseVestingAccount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovVesting(uint64(l)) } if m.StartTime != 0 { - n += 1 + sovTypes(uint64(m.StartTime)) + n += 1 + sovVesting(uint64(m.StartTime)) } if len(m.VestingPeriods) > 0 { for _, e := range m.VestingPeriods { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovVesting(uint64(l)) } } return n } -func sovTypes(x uint64) (n int) { +func sovVesting(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozVesting(x uint64) (n int) { + return sovVesting(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -671,7 +669,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -699,7 +697,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -712,11 +710,11 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if postIndex > l { return io.ErrUnexpectedEOF @@ -735,7 +733,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -748,11 +746,11 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if postIndex > l { return io.ErrUnexpectedEOF @@ -769,7 +767,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -782,11 +780,11 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if postIndex > l { return io.ErrUnexpectedEOF @@ -803,7 +801,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -816,11 +814,11 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if postIndex > l { return io.ErrUnexpectedEOF @@ -837,7 +835,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { m.EndTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -851,15 +849,15 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipVesting(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -881,7 +879,7 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -909,7 +907,7 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -922,11 +920,11 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if postIndex > l { return io.ErrUnexpectedEOF @@ -945,7 +943,7 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { m.StartTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -959,15 +957,15 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipVesting(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -989,7 +987,7 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1017,7 +1015,7 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1030,11 +1028,11 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if postIndex > l { return io.ErrUnexpectedEOF @@ -1048,15 +1046,15 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipVesting(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1078,7 +1076,7 @@ func (m *Period) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1106,7 +1104,7 @@ func (m *Period) Unmarshal(dAtA []byte) error { m.Length = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1125,7 +1123,7 @@ func (m *Period) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1138,11 +1136,11 @@ func (m *Period) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if postIndex > l { return io.ErrUnexpectedEOF @@ -1154,15 +1152,15 @@ func (m *Period) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipVesting(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1184,7 +1182,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1212,7 +1210,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1225,11 +1223,11 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if postIndex > l { return io.ErrUnexpectedEOF @@ -1248,7 +1246,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { m.StartTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1267,7 +1265,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowVesting } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1280,11 +1278,11 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if postIndex > l { return io.ErrUnexpectedEOF @@ -1296,15 +1294,15 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipVesting(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthVesting } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1318,7 +1316,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipVesting(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -1326,7 +1324,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowVesting } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1343,7 +1341,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowVesting } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1359,7 +1357,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowVesting } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1372,14 +1370,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthVesting } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupVesting } depth-- case 5: @@ -1388,7 +1386,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthVesting } if depth == 0 { return iNdEx, nil @@ -1398,7 +1396,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthVesting = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowVesting = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupVesting = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/bank/types/types.pb.go b/x/bank/types/bank.pb.go similarity index 80% rename from x/bank/types/types.pb.go rename to x/bank/types/bank.pb.go index d8f4f2dbb09d..760a52ffc5a7 100644 --- a/x/bank/types/types.pb.go +++ b/x/bank/types/bank.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/bank/types/types.proto +// source: cosmos/bank/bank.proto package types @@ -38,7 +38,7 @@ func (m *MsgSend) Reset() { *m = MsgSend{} } func (m *MsgSend) String() string { return proto.CompactTextString(m) } func (*MsgSend) ProtoMessage() {} func (*MsgSend) Descriptor() ([]byte, []int) { - return fileDescriptor_934ff6b24d3432e2, []int{0} + return fileDescriptor_717c78e54d4b5794, []int{0} } func (m *MsgSend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -98,7 +98,7 @@ func (m *Input) Reset() { *m = Input{} } func (m *Input) String() string { return proto.CompactTextString(m) } func (*Input) ProtoMessage() {} func (*Input) Descriptor() ([]byte, []int) { - return fileDescriptor_934ff6b24d3432e2, []int{1} + return fileDescriptor_717c78e54d4b5794, []int{1} } func (m *Input) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -151,7 +151,7 @@ func (m *Output) Reset() { *m = Output{} } func (m *Output) String() string { return proto.CompactTextString(m) } func (*Output) ProtoMessage() {} func (*Output) Descriptor() ([]byte, []int) { - return fileDescriptor_934ff6b24d3432e2, []int{2} + return fileDescriptor_717c78e54d4b5794, []int{2} } func (m *Output) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -204,7 +204,7 @@ func (m *MsgMultiSend) Reset() { *m = MsgMultiSend{} } func (m *MsgMultiSend) String() string { return proto.CompactTextString(m) } func (*MsgMultiSend) ProtoMessage() {} func (*MsgMultiSend) Descriptor() ([]byte, []int) { - return fileDescriptor_934ff6b24d3432e2, []int{3} + return fileDescriptor_717c78e54d4b5794, []int{3} } func (m *MsgMultiSend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -256,7 +256,7 @@ type Supply struct { func (m *Supply) Reset() { *m = Supply{} } func (*Supply) ProtoMessage() {} func (*Supply) Descriptor() ([]byte, []int) { - return fileDescriptor_934ff6b24d3432e2, []int{4} + return fileDescriptor_717c78e54d4b5794, []int{4} } func (m *Supply) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -286,48 +286,46 @@ func (m *Supply) XXX_DiscardUnknown() { var xxx_messageInfo_Supply proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgSend)(nil), "cosmos_sdk.x.bank.v1.MsgSend") - proto.RegisterType((*Input)(nil), "cosmos_sdk.x.bank.v1.Input") - proto.RegisterType((*Output)(nil), "cosmos_sdk.x.bank.v1.Output") - proto.RegisterType((*MsgMultiSend)(nil), "cosmos_sdk.x.bank.v1.MsgMultiSend") - proto.RegisterType((*Supply)(nil), "cosmos_sdk.x.bank.v1.Supply") + proto.RegisterType((*MsgSend)(nil), "cosmos.bank.MsgSend") + proto.RegisterType((*Input)(nil), "cosmos.bank.Input") + proto.RegisterType((*Output)(nil), "cosmos.bank.Output") + proto.RegisterType((*MsgMultiSend)(nil), "cosmos.bank.MsgMultiSend") + proto.RegisterType((*Supply)(nil), "cosmos.bank.Supply") } -func init() { proto.RegisterFile("x/bank/types/types.proto", fileDescriptor_934ff6b24d3432e2) } +func init() { proto.RegisterFile("cosmos/bank/bank.proto", fileDescriptor_717c78e54d4b5794) } -var fileDescriptor_934ff6b24d3432e2 = []byte{ - // 481 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xa8, 0xd0, 0x4f, 0x4a, - 0xcc, 0xcb, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x86, 0x90, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, - 0x42, 0x22, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xf1, 0xc5, 0x29, 0xd9, 0x7a, 0x15, 0x7a, 0x20, - 0x45, 0x7a, 0x65, 0x86, 0x52, 0x6a, 0x25, 0x19, 0x99, 0x45, 0x29, 0xf1, 0x05, 0x89, 0x45, 0x25, - 0x95, 0xfa, 0x60, 0x85, 0xfa, 0xe9, 0xf9, 0xe9, 0xf9, 0x08, 0x16, 0x44, 0xb7, 0x94, 0x36, 0xa6, - 0x3a, 0x88, 0x79, 0xba, 0xc8, 0x1c, 0xa8, 0x62, 0x41, 0x0c, 0xdb, 0x95, 0x0e, 0x31, 0x71, 0xb1, - 0xfb, 0x16, 0xa7, 0x07, 0xa7, 0xe6, 0xa5, 0x08, 0x65, 0x73, 0xf1, 0xa4, 0x15, 0xe5, 0xe7, 0xc6, - 0x27, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x38, 0x79, 0x7c, - 0xba, 0x27, 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 0x69, 0x4e, 0x49, 0x26, 0x38, 0xf9, - 0x5a, 0x72, 0xb1, 0x65, 0x82, 0x22, 0x01, 0xe4, 0x7e, 0x90, 0xa5, 0xd2, 0x7a, 0xd8, 0x72, 0x96, - 0x1e, 0x38, 0xa2, 0x9c, 0x58, 0x40, 0x96, 0x07, 0x41, 0x35, 0x08, 0xd9, 0x70, 0xb1, 0xe7, 0x83, - 0x43, 0x01, 0xe6, 0x60, 0x19, 0xec, 0x7a, 0x21, 0x41, 0x05, 0xd5, 0x0c, 0xd3, 0x02, 0x75, 0xcf, - 0x1a, 0x46, 0x2e, 0xb6, 0xe0, 0xd2, 0x82, 0x82, 0x9c, 0x4a, 0x90, 0xef, 0x4b, 0xf2, 0x4b, 0x12, - 0x73, 0xa0, 0x0e, 0xa1, 0x96, 0xef, 0xc1, 0x66, 0x5a, 0xb9, 0x76, 0x2c, 0x90, 0x67, 0x98, 0xb1, - 0x40, 0x9e, 0x01, 0x64, 0xeb, 0xa5, 0x2d, 0xba, 0xa6, 0x5a, 0x78, 0x4d, 0x80, 0x96, 0x3b, 0xa9, - 0x15, 0x05, 0xf9, 0x45, 0x25, 0xa9, 0x29, 0x7a, 0x10, 0x27, 0x7a, 0x3a, 0x39, 0x9f, 0x78, 0x24, - 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, - 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x26, 0x31, 0xe6, 0x81, 0x1d, 0x96, 0xc4, 0x06, - 0x2e, 0x44, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x5a, 0x2d, 0x41, 0xde, 0x04, 0x00, - 0x00, +var fileDescriptor_717c78e54d4b5794 = []byte{ + // 457 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff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x25, 0x12, 0xcc, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0x3c, 0x7a, 0x50, 0xef, 0x3b, 0xe7, 0x67, 0xe6, + 0x39, 0x19, 0x9c, 0xb8, 0x27, 0xcf, 0xb0, 0xea, 0xbe, 0xbc, 0x06, 0x11, 0xe6, 0x83, 0x34, 0x14, + 0x07, 0x41, 0x4d, 0xb3, 0x62, 0x79, 0xb1, 0x40, 0x9e, 0x51, 0x69, 0x03, 0x23, 0x17, 0xab, 0x67, + 0x5e, 0x41, 0x69, 0x89, 0x90, 0x37, 0x17, 0x3b, 0x6a, 0xb0, 0x19, 0x92, 0xee, 0x6c, 0x98, 0x09, + 0x42, 0x21, 0x5c, 0xac, 0xc9, 0x20, 0xdb, 0x24, 0x98, 0xa8, 0xe2, 0x66, 0x88, 0x61, 0x50, 0x27, + 0x6f, 0x64, 0xe4, 0x62, 0xf3, 0x2f, 0x2d, 0x19, 0x52, 0x6e, 0xae, 0xe6, 0xe2, 0xf1, 0x2d, 0x4e, + 0xf7, 0x2d, 0xcd, 0x29, 0xc9, 0x04, 0x27, 0x54, 0x03, 0x2e, 0xb6, 0x4c, 0x50, 0xa8, 0x83, 0xdc, + 0x0d, 0xb2, 0x4c, 0x48, 0x0f, 0x29, 0x63, 0xe8, 0x81, 0x23, 0xc4, 0x89, 0x05, 0x64, 0x65, 0x10, + 0x54, 0x9d, 0x90, 0x31, 0x17, 0x7b, 0x3e, 0xd8, 0xd3, 0x30, 0xf7, 0x09, 0xa3, 0x68, 0x81, 0x04, + 0x08, 0x54, 0x0f, 0x4c, 0x25, 0xd4, 0xf2, 0xa5, 0x8c, 0x5c, 0x6c, 0xc1, 0xa5, 0x05, 0x05, 0x39, + 0x95, 0x20, 0x3f, 0x96, 0xe4, 0x97, 0x24, 0xe6, 0x40, 0xad, 0xa5, 0xd8, 0x8f, 0x60, 0xc3, 0xac, + 0x5c, 0x3b, 0x16, 0xc8, 0x33, 0xcc, 0x58, 0x20, 0xcf, 0x00, 0xb2, 0xee, 0xd2, 0x16, 0x5d, 0x53, + 0x2d, 0xbc, 0x26, 0x54, 0x40, 0x8a, 0x85, 0xd4, 0x8a, 0x82, 0xfc, 0xa2, 0x92, 0xd4, 0x14, 0x3d, + 0x88, 0xdb, 0x3c, 0x9d, 0x9c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, + 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, + 0x93, 0x18, 0xf3, 0xc0, 0x0e, 0x4b, 0x62, 0x03, 0x97, 0x0a, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xa5, 0xa6, 0xc2, 0x41, 0x82, 0x04, 0x00, 0x00, } func (this *MsgSend) Equal(that interface{}) bool { @@ -523,7 +521,7 @@ func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintBank(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -532,14 +530,14 @@ func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ToAddress) > 0 { i -= len(m.ToAddress) copy(dAtA[i:], m.ToAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ToAddress))) + i = encodeVarintBank(dAtA, i, uint64(len(m.ToAddress))) i-- dAtA[i] = 0x12 } if len(m.FromAddress) > 0 { i -= len(m.FromAddress) copy(dAtA[i:], m.FromAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.FromAddress))) + i = encodeVarintBank(dAtA, i, uint64(len(m.FromAddress))) i-- dAtA[i] = 0xa } @@ -574,7 +572,7 @@ func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintBank(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -583,7 +581,7 @@ func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) + i = encodeVarintBank(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -618,7 +616,7 @@ func (m *Output) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintBank(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -627,7 +625,7 @@ func (m *Output) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) + i = encodeVarintBank(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -662,7 +660,7 @@ func (m *MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintBank(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -676,7 +674,7 @@ func (m *MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintBank(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -713,7 +711,7 @@ func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintBank(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -722,8 +720,8 @@ func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintBank(dAtA []byte, offset int, v uint64) int { + offset -= sovBank(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -741,16 +739,16 @@ func (m *MsgSend) Size() (n int) { _ = l l = len(m.FromAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } l = len(m.ToAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } } return n @@ -764,12 +762,12 @@ func (m *Input) Size() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } if len(m.Coins) > 0 { for _, e := range m.Coins { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } } return n @@ -783,12 +781,12 @@ func (m *Output) Size() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } if len(m.Coins) > 0 { for _, e := range m.Coins { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } } return n @@ -803,13 +801,13 @@ func (m *MsgMultiSend) Size() (n int) { if len(m.Inputs) > 0 { for _, e := range m.Inputs { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } } if len(m.Outputs) > 0 { for _, e := range m.Outputs { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } } return n @@ -824,17 +822,17 @@ func (m *Supply) Size() (n int) { if len(m.Total) > 0 { for _, e := range m.Total { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovBank(uint64(l)) } } return n } -func sovTypes(x uint64) (n int) { +func sovBank(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozBank(x uint64) (n int) { + return sovBank(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgSend) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -844,7 +842,7 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -872,7 +870,7 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -885,11 +883,11 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -906,7 +904,7 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -919,11 +917,11 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -940,7 +938,7 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -953,11 +951,11 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -969,15 +967,15 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipBank(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -999,7 +997,7 @@ func (m *Input) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1027,7 +1025,7 @@ func (m *Input) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1040,11 +1038,11 @@ func (m *Input) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -1061,7 +1059,7 @@ func (m *Input) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1074,11 +1072,11 @@ func (m *Input) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -1090,15 +1088,15 @@ func (m *Input) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipBank(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1120,7 +1118,7 @@ func (m *Output) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1148,7 +1146,7 @@ func (m *Output) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1161,11 +1159,11 @@ func (m *Output) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -1182,7 +1180,7 @@ func (m *Output) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1195,11 +1193,11 @@ func (m *Output) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -1211,15 +1209,15 @@ func (m *Output) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipBank(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1241,7 +1239,7 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1269,7 +1267,7 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1282,11 +1280,11 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -1303,7 +1301,7 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1316,11 +1314,11 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -1332,15 +1330,15 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipBank(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1362,7 +1360,7 @@ func (m *Supply) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1390,7 +1388,7 @@ func (m *Supply) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowBank } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1403,11 +1401,11 @@ func (m *Supply) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if postIndex > l { return io.ErrUnexpectedEOF @@ -1419,15 +1417,15 @@ func (m *Supply) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipBank(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthBank } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1441,7 +1439,7 @@ func (m *Supply) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipBank(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -1449,7 +1447,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowBank } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1466,7 +1464,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowBank } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1482,7 +1480,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowBank } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1495,14 +1493,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthBank } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupBank } depth-- case 5: @@ -1511,7 +1509,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthBank } if depth == 0 { return iNdEx, nil @@ -1521,7 +1519,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthBank = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBank = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBank = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/bank/types/query.pb.go b/x/bank/types/query.pb.go index bd25ff3fb91a..f1fc663dbc38 100644 --- a/x/bank/types/query.pb.go +++ b/x/bank/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/bank/types/query.proto +// source: cosmos/bank/query.proto package types @@ -42,7 +42,7 @@ func (m *QueryBalanceRequest) Reset() { *m = QueryBalanceRequest{} } func (m *QueryBalanceRequest) String() string { return proto.CompactTextString(m) } func (*QueryBalanceRequest) ProtoMessage() {} func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b761440f9b86d1e8, []int{0} + return fileDescriptor_1b02ea4db7d9aa9f, []int{0} } func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -95,7 +95,7 @@ func (m *QueryBalanceResponse) Reset() { *m = QueryBalanceResponse{} } func (m *QueryBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryBalanceResponse) ProtoMessage() {} func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b761440f9b86d1e8, []int{1} + return fileDescriptor_1b02ea4db7d9aa9f, []int{1} } func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -141,7 +141,7 @@ func (m *QueryAllBalancesRequest) Reset() { *m = QueryAllBalancesRequest func (m *QueryAllBalancesRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllBalancesRequest) ProtoMessage() {} func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b761440f9b86d1e8, []int{2} + return fileDescriptor_1b02ea4db7d9aa9f, []int{2} } func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -187,7 +187,7 @@ func (m *QueryAllBalancesResponse) Reset() { *m = QueryAllBalancesRespon func (m *QueryAllBalancesResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllBalancesResponse) ProtoMessage() {} func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b761440f9b86d1e8, []int{3} + return fileDescriptor_1b02ea4db7d9aa9f, []int{3} } func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -231,7 +231,7 @@ func (m *QueryTotalSupplyRequest) Reset() { *m = QueryTotalSupplyRequest func (m *QueryTotalSupplyRequest) String() string { return proto.CompactTextString(m) } func (*QueryTotalSupplyRequest) ProtoMessage() {} func (*QueryTotalSupplyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b761440f9b86d1e8, []int{4} + return fileDescriptor_1b02ea4db7d9aa9f, []int{4} } func (m *QueryTotalSupplyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -270,7 +270,7 @@ func (m *QueryTotalSupplyResponse) Reset() { *m = QueryTotalSupplyRespon func (m *QueryTotalSupplyResponse) String() string { return proto.CompactTextString(m) } func (*QueryTotalSupplyResponse) ProtoMessage() {} func (*QueryTotalSupplyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b761440f9b86d1e8, []int{5} + return fileDescriptor_1b02ea4db7d9aa9f, []int{5} } func (m *QueryTotalSupplyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -315,7 +315,7 @@ func (m *QuerySupplyOfRequest) Reset() { *m = QuerySupplyOfRequest{} } func (m *QuerySupplyOfRequest) String() string { return proto.CompactTextString(m) } func (*QuerySupplyOfRequest) ProtoMessage() {} func (*QuerySupplyOfRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b761440f9b86d1e8, []int{6} + return fileDescriptor_1b02ea4db7d9aa9f, []int{6} } func (m *QuerySupplyOfRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -361,7 +361,7 @@ func (m *QuerySupplyOfResponse) Reset() { *m = QuerySupplyOfResponse{} } func (m *QuerySupplyOfResponse) String() string { return proto.CompactTextString(m) } func (*QuerySupplyOfResponse) ProtoMessage() {} func (*QuerySupplyOfResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b761440f9b86d1e8, []int{7} + return fileDescriptor_1b02ea4db7d9aa9f, []int{7} } func (m *QuerySupplyOfResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -391,51 +391,50 @@ func (m *QuerySupplyOfResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QuerySupplyOfResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*QueryBalanceRequest)(nil), "cosmos_sdk.x.bank.v1.QueryBalanceRequest") - proto.RegisterType((*QueryBalanceResponse)(nil), "cosmos_sdk.x.bank.v1.QueryBalanceResponse") - proto.RegisterType((*QueryAllBalancesRequest)(nil), "cosmos_sdk.x.bank.v1.QueryAllBalancesRequest") - proto.RegisterType((*QueryAllBalancesResponse)(nil), "cosmos_sdk.x.bank.v1.QueryAllBalancesResponse") - proto.RegisterType((*QueryTotalSupplyRequest)(nil), "cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest") - proto.RegisterType((*QueryTotalSupplyResponse)(nil), "cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse") - proto.RegisterType((*QuerySupplyOfRequest)(nil), "cosmos_sdk.x.bank.v1.QuerySupplyOfRequest") - proto.RegisterType((*QuerySupplyOfResponse)(nil), "cosmos_sdk.x.bank.v1.QuerySupplyOfResponse") -} - -func init() { proto.RegisterFile("x/bank/types/query.proto", fileDescriptor_b761440f9b86d1e8) } - -var fileDescriptor_b761440f9b86d1e8 = []byte{ - // 493 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcb, 0x6e, 0xd3, 0x40, - 0x14, 0xb5, 0xa9, 0x9a, 0x94, 0x5b, 0x36, 0x4c, 0x83, 0x08, 0x5e, 0x38, 0xd5, 0x2c, 0xaa, 0x14, - 0xc8, 0x98, 0x94, 0x2f, 0x88, 0x2b, 0x90, 0x10, 0x0b, 0x84, 0x61, 0x85, 0x84, 0x22, 0x3f, 0xa6, - 0x69, 0x54, 0xc7, 0xe3, 0x7a, 0xc6, 0x55, 0xbc, 0xe0, 0x1f, 0xf8, 0x0e, 0x96, 0x7c, 0x45, 0x97, - 0x5d, 0x22, 0x16,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, 0x94, - 0x49, 0xa1, 0xba, 0x9d, 0xb9, 0x15, 0xbe, 0xf1, 0xa4, 0x11, 0xb6, 0x94, 0xb1, 0x8f, 0x2f, 0x97, - 0xa6, 0x7e, 0xb5, 0x34, 0xf5, 0x9f, 0x4b, 0x53, 0xff, 0xbc, 0x32, 0xb5, 0xab, 0x95, 0xa9, 0x7d, - 0x5b, 0x99, 0xda, 0x87, 0xc3, 0xda, 0xf8, 0xab, 0x67, 0xa4, 0xd7, 0x2a, 0x4e, 0xb3, 0xe7, 0xbf, - 0x03, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x7b, 0xe0, 0xb4, 0x3a, 0x05, 0x00, 0x00, + proto.RegisterType((*QueryBalanceRequest)(nil), "cosmos.bank.QueryBalanceRequest") + proto.RegisterType((*QueryBalanceResponse)(nil), "cosmos.bank.QueryBalanceResponse") + proto.RegisterType((*QueryAllBalancesRequest)(nil), "cosmos.bank.QueryAllBalancesRequest") + proto.RegisterType((*QueryAllBalancesResponse)(nil), "cosmos.bank.QueryAllBalancesResponse") + proto.RegisterType((*QueryTotalSupplyRequest)(nil), "cosmos.bank.QueryTotalSupplyRequest") + proto.RegisterType((*QueryTotalSupplyResponse)(nil), "cosmos.bank.QueryTotalSupplyResponse") + proto.RegisterType((*QuerySupplyOfRequest)(nil), "cosmos.bank.QuerySupplyOfRequest") + proto.RegisterType((*QuerySupplyOfResponse)(nil), "cosmos.bank.QuerySupplyOfResponse") +} + +func init() { proto.RegisterFile("cosmos/bank/query.proto", fileDescriptor_1b02ea4db7d9aa9f) } + +var fileDescriptor_1b02ea4db7d9aa9f = []byte{ + // 473 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0xb5, 0x8b, 0x9a, 0x94, 0x49, 0x4f, 0xdb, 0xa0, 0x06, 0x1f, 0xec, 0xb0, 0x82, 0x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b3, 0xd7, 0x72, 0x6b, 0x63, 0x6f, 0x26, + 0xde, 0xc6, 0xde, 0x12, 0x3e, 0xd6, 0xd0, 0x11, 0x6c, 0x55, 0x67, 0x8e, 0x5a, 0x96, 0x5d, 0x49, + 0xcf, 0xc0, 0xeb, 0x20, 0x15, 0xa9, 0x73, 0x78, 0x39, 0x37, 0xf5, 0xab, 0xb9, 0xa9, 0xff, 0x9a, + 0x9b, 0xfa, 0xd7, 0x85, 0xa9, 0x5d, 0x2d, 0x4c, 0xed, 0xfb, 0xc2, 0xd4, 0x8e, 0x1f, 0xaf, 0x8d, + 0xed, 0x42, 0xbe, 0x53, 0x22, 0x3d, 0xbf, 0x23, 0x1e, 0x9c, 0xe7, 0x7f, 0x03, 0x00, 0x00, 0xff, + 0xff, 0x27, 0x7c, 0xfe, 0x36, 0xc3, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -470,7 +469,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { out := new(QueryBalanceResponse) - err := c.cc.Invoke(ctx, "/cosmos_sdk.x.bank.v1.Query/Balance", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bank.Query/Balance", in, out, opts...) if err != nil { return nil, err } @@ -479,7 +478,7 @@ func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) { out := new(QueryAllBalancesResponse) - err := c.cc.Invoke(ctx, "/cosmos_sdk.x.bank.v1.Query/AllBalances", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bank.Query/AllBalances", in, out, opts...) if err != nil { return nil, err } @@ -488,7 +487,7 @@ func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesReque func (c *queryClient) TotalSupply(ctx context.Context, in *QueryTotalSupplyRequest, opts ...grpc.CallOption) (*QueryTotalSupplyResponse, error) { out := new(QueryTotalSupplyResponse) - err := c.cc.Invoke(ctx, "/cosmos_sdk.x.bank.v1.Query/TotalSupply", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bank.Query/TotalSupply", in, out, opts...) if err != nil { return nil, err } @@ -497,7 +496,7 @@ func (c *queryClient) TotalSupply(ctx context.Context, in *QueryTotalSupplyReque func (c *queryClient) SupplyOf(ctx context.Context, in *QuerySupplyOfRequest, opts ...grpc.CallOption) (*QuerySupplyOfResponse, error) { out := new(QuerySupplyOfResponse) - err := c.cc.Invoke(ctx, "/cosmos_sdk.x.bank.v1.Query/SupplyOf", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bank.Query/SupplyOf", in, out, opts...) if err != nil { return nil, err } @@ -547,7 +546,7 @@ func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cosmos_sdk.x.bank.v1.Query/Balance", + FullMethod: "/cosmos.bank.Query/Balance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) @@ -565,7 +564,7 @@ func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cosmos_sdk.x.bank.v1.Query/AllBalances", + FullMethod: "/cosmos.bank.Query/AllBalances", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest)) @@ -583,7 +582,7 @@ func _Query_TotalSupply_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cosmos_sdk.x.bank.v1.Query/TotalSupply", + FullMethod: "/cosmos.bank.Query/TotalSupply", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).TotalSupply(ctx, req.(*QueryTotalSupplyRequest)) @@ -601,7 +600,7 @@ func _Query_SupplyOf_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cosmos_sdk.x.bank.v1.Query/SupplyOf", + FullMethod: "/cosmos.bank.Query/SupplyOf", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).SupplyOf(ctx, req.(*QuerySupplyOfRequest)) @@ -610,7 +609,7 @@ func _Query_SupplyOf_Handler(srv interface{}, ctx context.Context, dec func(inte } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cosmos_sdk.x.bank.v1.Query", + ServiceName: "cosmos.bank.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -631,7 +630,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "x/bank/types/query.proto", + Metadata: "cosmos/bank/query.proto", } func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/capability/types/types.pb.go b/x/capability/types/capability.pb.go similarity index 75% rename from x/capability/types/types.pb.go rename to x/capability/types/capability.pb.go index 30edfedddac9..33c9b798f89b 100644 --- a/x/capability/types/types.pb.go +++ b/x/capability/types/capability.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/capability/types/types.proto +// source: cosmos/capability/capability.proto package types @@ -32,7 +32,7 @@ type Capability struct { func (m *Capability) Reset() { *m = Capability{} } func (*Capability) ProtoMessage() {} func (*Capability) Descriptor() ([]byte, []int) { - return fileDescriptor_d73d5c48b3550cdd, []int{0} + return fileDescriptor_ed9f06ee1908474a, []int{0} } func (m *Capability) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,7 +78,7 @@ type Owner struct { func (m *Owner) Reset() { *m = Owner{} } func (*Owner) ProtoMessage() {} func (*Owner) Descriptor() ([]byte, []int) { - return fileDescriptor_d73d5c48b3550cdd, []int{1} + return fileDescriptor_ed9f06ee1908474a, []int{1} } func (m *Owner) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -117,7 +117,7 @@ func (m *CapabilityOwners) Reset() { *m = CapabilityOwners{} } func (m *CapabilityOwners) String() string { return proto.CompactTextString(m) } func (*CapabilityOwners) ProtoMessage() {} func (*CapabilityOwners) Descriptor() ([]byte, []int) { - return fileDescriptor_d73d5c48b3550cdd, []int{2} + return fileDescriptor_ed9f06ee1908474a, []int{2} } func (m *CapabilityOwners) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -154,35 +154,35 @@ func (m *CapabilityOwners) GetOwners() []Owner { } func init() { - proto.RegisterType((*Capability)(nil), "cosmos_sdk.x.capability.v1.Capability") - proto.RegisterType((*Owner)(nil), "cosmos_sdk.x.capability.v1.Owner") - proto.RegisterType((*CapabilityOwners)(nil), "cosmos_sdk.x.capability.v1.CapabilityOwners") -} - -func init() { proto.RegisterFile("x/capability/types/types.proto", fileDescriptor_d73d5c48b3550cdd) } - -var fileDescriptor_d73d5c48b3550cdd = []byte{ - // 308 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xab, 0xd0, 0x4f, 0x4e, - 0x2c, 0x48, 0x4c, 0xca, 0xcc, 0xc9, 0x2c, 0xa9, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x86, 0x90, - 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x52, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xf1, 0xc5, - 0x29, 0xd9, 0x7a, 0x15, 0x7a, 0x08, 0xa5, 0x7a, 0x65, 0x86, 0x52, 0x6a, 0x25, 0x19, 0x99, 0x45, - 0x29, 0xf1, 0x05, 0x89, 0x45, 0x25, 0x95, 0xfa, 0x60, 0xe5, 0xfa, 0xe9, 0xf9, 0xe9, 0xf9, 0x08, - 0x16, 0xc4, 0x0c, 0x25, 0x2b, 0x2e, 0x2e, 0x67, 0xb8, 0x46, 0x21, 0x35, 0x2e, 0xd6, 0xcc, 0xbc, - 0x94, 0xd4, 0x0a, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x16, 0x27, 0x81, 0x4f, 0xf7, 0xe4, 0x79, 0x2a, - 0x13, 0x73, 0x73, 0xac, 0x94, 0xc0, 0xc2, 0x4a, 0x41, 0x10, 0x69, 0x2b, 0x96, 0x19, 0x0b, 0xe4, - 0x19, 0x94, 0x12, 0xb9, 0x58, 0xfd, 0xcb, 0xf3, 0x52, 0x8b, 0x84, 0x34, 0xb9, 0xd8, 0x72, 0xf3, - 0x53, 0x4a, 0x73, 0x52, 0xc1, 0xfa, 0x38, 0x9d, 0x04, 0x3f, 0xdd, 0x93, 0xe7, 0x85, 0xe8, 0x83, - 0x88, 0x2b, 0x05, 0x41, 0x15, 0x08, 0x29, 0x73, 0xb1, 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x81, - 0x15, 0xf2, 0x7f, 0xba, 0x27, 0xcf, 0x0d, 0x51, 0x08, 0x12, 0x55, 0x0a, 0x02, 0x4b, 0x5a, 0x71, - 0x74, 0x2c, 0x90, 0x67, 0x00, 0x5b, 0x11, 0xcc, 0x25, 0x80, 0x70, 0x1e, 0xd8, 0xb2, 0x62, 0x21, - 0x7b, 0x2e, 0xb6, 0x7c, 0x30, 0x4b, 0x82, 0x51, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x51, 0x0f, 0x77, - 0x38, 0xe8, 0x81, 0xf5, 0x38, 0xb1, 0x9c, 0xb8, 0x27, 0xcf, 0x10, 0x04, 0xd5, 0xe6, 0xe4, 0x79, - 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, - 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xfa, 0xe9, 0x99, 0x25, 0x19, 0xa5, - 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0x43, 0xa1, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x3e, 0x66, - 0x74, 0x24, 0xb1, 0x81, 0x43, 0xd1, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x14, 0xb2, 0xaf, - 0xab, 0x01, 0x00, 0x00, + proto.RegisterType((*Capability)(nil), "cosmos.capability.Capability") + proto.RegisterType((*Owner)(nil), "cosmos.capability.Owner") + proto.RegisterType((*CapabilityOwners)(nil), "cosmos.capability.CapabilityOwners") +} + +func init() { + proto.RegisterFile("cosmos/capability/capability.proto", fileDescriptor_ed9f06ee1908474a) +} + +var fileDescriptor_ed9f06ee1908474a = []byte{ + // 288 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0x4f, 0x4e, 0x2c, 0x48, 0x4c, 0xca, 0xcc, 0xc9, 0x2c, 0xa9, 0x44, 0x62, 0xea, + 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x42, 0xd4, 0xe8, 0x21, 0x24, 0xa4, 0x44, 0xd2, 0xf3, + 0xd3, 0xf3, 0xc1, 0xb2, 0xfa, 0x20, 0x16, 0x44, 0xa1, 0x92, 0x15, 0x17, 0x97, 0x33, 0x5c, 0x8d, + 0x90, 0x1a, 0x17, 0x6b, 0x66, 0x5e, 0x4a, 0x6a, 0x85, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x8b, 0x93, + 0xc0, 0xa7, 0x7b, 0xf2, 0x3c, 0x95, 0x89, 0xb9, 0x39, 0x56, 0x4a, 0x60, 0x61, 0xa5, 0x20, 0x88, + 0xb4, 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 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, 0x00, } func (m *Capability) Marshal() (dAtA []byte, err error) { @@ -206,7 +206,7 @@ func (m *Capability) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Index != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Index)) + i = encodeVarintCapability(dAtA, i, uint64(m.Index)) i-- dAtA[i] = 0x8 } @@ -236,14 +236,14 @@ func (m *Owner) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Name))) + i = encodeVarintCapability(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x12 } if len(m.Module) > 0 { i -= len(m.Module) copy(dAtA[i:], m.Module) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Module))) + i = encodeVarintCapability(dAtA, i, uint64(len(m.Module))) i-- dAtA[i] = 0xa } @@ -278,7 +278,7 @@ func (m *CapabilityOwners) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCapability(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -287,8 +287,8 @@ func (m *CapabilityOwners) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintCapability(dAtA []byte, offset int, v uint64) int { + offset -= sovCapability(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -305,7 +305,7 @@ func (m *Capability) Size() (n int) { var l int _ = l if m.Index != 0 { - n += 1 + sovTypes(uint64(m.Index)) + n += 1 + sovCapability(uint64(m.Index)) } return n } @@ -318,11 +318,11 @@ func (m *Owner) Size() (n int) { _ = l l = len(m.Module) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCapability(uint64(l)) } l = len(m.Name) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCapability(uint64(l)) } return n } @@ -336,17 +336,17 @@ func (m *CapabilityOwners) Size() (n int) { if len(m.Owners) > 0 { for _, e := range m.Owners { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCapability(uint64(l)) } } return n } -func sovTypes(x uint64) (n int) { +func sovCapability(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozCapability(x uint64) (n int) { + return sovCapability(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Capability) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -356,7 +356,7 @@ func (m *Capability) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCapability } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -384,7 +384,7 @@ func (m *Capability) Unmarshal(dAtA []byte) error { m.Index = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCapability } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -398,15 +398,15 @@ func (m *Capability) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCapability(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -428,7 +428,7 @@ func (m *Owner) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCapability } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -456,7 +456,7 @@ func (m *Owner) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCapability } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -470,11 +470,11 @@ func (m *Owner) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } if postIndex > l { return io.ErrUnexpectedEOF @@ -488,7 +488,7 @@ func (m *Owner) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCapability } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -502,11 +502,11 @@ func (m *Owner) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } if postIndex > l { return io.ErrUnexpectedEOF @@ -515,15 +515,15 @@ func (m *Owner) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCapability(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -545,7 +545,7 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCapability } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -573,7 +573,7 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCapability } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -586,11 +586,11 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } if postIndex > l { return io.ErrUnexpectedEOF @@ -602,15 +602,15 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCapability(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCapability } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -624,7 +624,7 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipCapability(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -632,7 +632,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCapability } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -649,7 +649,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCapability } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -665,7 +665,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCapability } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -678,14 +678,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCapability } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupCapability } depth-- case 5: @@ -694,7 +694,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCapability } if depth == 0 { return iNdEx, nil @@ -704,7 +704,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthCapability = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCapability = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCapability = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/crisis/types/types.pb.go b/x/crisis/types/crisis.pb.go similarity index 71% rename from x/crisis/types/types.pb.go rename to x/crisis/types/crisis.pb.go index c98ec52dfde0..7ed33013e12f 100644 --- a/x/crisis/types/types.pb.go +++ b/x/crisis/types/crisis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/crisis/types/types.proto +// source: cosmos/crisis/crisis.proto package types @@ -36,7 +36,7 @@ func (m *MsgVerifyInvariant) Reset() { *m = MsgVerifyInvariant{} } func (m *MsgVerifyInvariant) String() string { return proto.CompactTextString(m) } func (*MsgVerifyInvariant) ProtoMessage() {} func (*MsgVerifyInvariant) Descriptor() ([]byte, []int) { - return fileDescriptor_d15f5abb7502dad7, []int{0} + return fileDescriptor_cc68222b2e6ddda9, []int{0} } func (m *MsgVerifyInvariant) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -87,32 +87,31 @@ func (m *MsgVerifyInvariant) GetInvariantRoute() string { } func init() { - proto.RegisterType((*MsgVerifyInvariant)(nil), "cosmos_sdk.x.crisis.v1.MsgVerifyInvariant") + proto.RegisterType((*MsgVerifyInvariant)(nil), "cosmos.crisis.MsgVerifyInvariant") } -func init() { proto.RegisterFile("x/crisis/types/types.proto", fileDescriptor_d15f5abb7502dad7) } +func init() { proto.RegisterFile("cosmos/crisis/crisis.proto", fileDescriptor_cc68222b2e6ddda9) } -var fileDescriptor_d15f5abb7502dad7 = []byte{ - // 301 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xaa, 0xd0, 0x4f, 0x2e, - 0xca, 0x2c, 0xce, 0x2c, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x85, 0x92, 0x7a, 0x05, 0x45, 0xf9, 0x25, - 0xf9, 0x42, 0x62, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xf1, 0xc5, 0x29, 0xd9, 0x7a, 0x15, 0x7a, - 0x10, 0x65, 0x7a, 0x65, 0x86, 0x52, 0x6a, 0x25, 0x19, 0x99, 0x45, 0x29, 0xf1, 0x05, 0x89, 0x45, - 0x25, 0x95, 0xfa, 0x60, 0xa5, 0xfa, 0xe9, 0xf9, 0xe9, 0xf9, 0x08, 0x16, 0x44, 0xbf, 0x52, 0x03, - 0x13, 0x97, 0x90, 0x6f, 0x71, 0x7a, 0x58, 0x6a, 0x51, 0x66, 0x5a, 0xa5, 0x67, 0x5e, 0x59, 0x62, - 0x51, 0x66, 0x62, 0x5e, 0x89, 0x90, 0x27, 0x17, 0x5b, 0x71, 0x6a, 0x5e, 0x4a, 0x6a, 0x91, 0x04, - 0xa3, 0x02, 0xa3, 0x06, 0x8f, 0x93, 0xe1, 0xaf, 0x7b, 0xf2, 0xba, 0xe9, 0x99, 0x25, 0x19, 0xa5, - 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0x5b, 0xa1, 0x94, 0x6e, 0x71, 0x4a, 0x36, 0xd4, 0x51, - 0x8e, 0xc9, 0xc9, 0x8e, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x41, 0x50, 0x03, 0x84, 0x42, 0xb8, - 0x44, 0x33, 0x61, 0xe6, 0xc6, 0xe7, 0xe6, 0xa7, 0x94, 0xe6, 0xa4, 0xc6, 0xe7, 0x25, 0xe6, 0xa6, - 0x4a, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x3a, 0x29, 0x7c, 0xba, 0x27, 0x2f, 0x53, 0x99, 0x98, 0x9b, - 0x63, 0xa5, 0x84, 0x55, 0x99, 0x52, 0x90, 0x30, 0x5c, 0xdc, 0x17, 0x2c, 0xec, 0x97, 0x98, 0x9b, - 0x2a, 0xe4, 0xcc, 0xc5, 0x8f, 0x50, 0x5e, 0x94, 0x5f, 0x5a, 0x92, 0x2a, 0xc1, 0x0c, 0x36, 0x4f, - 0xea, 0xd3, 0x3d, 0x79, 0x31, 0x74, 0xf3, 0xc0, 0x0a, 0x94, 0x82, 0xf8, 0xe0, 0x22, 0x41, 0x20, - 0x01, 0x2b, 0x96, 0x17, 0x0b, 0xe4, 0x19, 0x9d, 0x5c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, - 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, - 0x58, 0x8e, 0x21, 0x4a, 0x1b, 0xaf, 0x8f, 0x51, 0x63, 0x25, 0x89, 0x0d, 0x1c, 0xa0, 0xc6, 0x80, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x65, 0xef, 0x2c, 0xae, 0x01, 0x00, 0x00, +var fileDescriptor_cc68222b2e6ddda9 = []byte{ + // 282 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00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0x67, 0x2e, 0x7e, 0x84, + 0xf2, 0xa2, 0xfc, 0xd2, 0x92, 0x54, 0x09, 0x66, 0xb0, 0x79, 0x52, 0x9f, 0xee, 0xc9, 0x8b, 0xa1, + 0x9b, 0x07, 0x56, 0xa0, 0x14, 0xc4, 0x07, 0x17, 0x09, 0x02, 0x09, 0x58, 0xb1, 0xbc, 0x58, 0x20, + 0xcf, 0xe8, 0xe4, 0x7a, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, + 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xda, 0x78, + 0x7d, 0x5c, 0x01, 0x0b, 0x75, 0xb0, 0xd7, 0x93, 0xd8, 0xc0, 0x01, 0x6a, 0x0c, 0x08, 0x00, 0x00, + 0xff, 0xff, 0xe1, 0xbb, 0x7c, 0x71, 0x93, 0x01, 0x00, 0x00, } func (this *MsgVerifyInvariant) Equal(that interface{}) bool { @@ -168,29 +167,29 @@ func (m *MsgVerifyInvariant) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.InvariantRoute) > 0 { i -= len(m.InvariantRoute) copy(dAtA[i:], m.InvariantRoute) - i = encodeVarintTypes(dAtA, i, uint64(len(m.InvariantRoute))) + i = encodeVarintCrisis(dAtA, i, uint64(len(m.InvariantRoute))) i-- dAtA[i] = 0x1a } if len(m.InvariantModuleName) > 0 { i -= len(m.InvariantModuleName) copy(dAtA[i:], m.InvariantModuleName) - i = encodeVarintTypes(dAtA, i, uint64(len(m.InvariantModuleName))) + i = encodeVarintCrisis(dAtA, i, uint64(len(m.InvariantModuleName))) i-- dAtA[i] = 0x12 } if len(m.Sender) > 0 { i -= len(m.Sender) copy(dAtA[i:], m.Sender) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Sender))) + i = encodeVarintCrisis(dAtA, i, uint64(len(m.Sender))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintCrisis(dAtA []byte, offset int, v uint64) int { + offset -= sovCrisis(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -208,24 +207,24 @@ func (m *MsgVerifyInvariant) Size() (n int) { _ = l l = len(m.Sender) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrisis(uint64(l)) } l = len(m.InvariantModuleName) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrisis(uint64(l)) } l = len(m.InvariantRoute) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCrisis(uint64(l)) } return n } -func sovTypes(x uint64) (n int) { +func sovCrisis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozCrisis(x uint64) (n int) { + return sovCrisis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -235,7 +234,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrisis } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -263,7 +262,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrisis } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -276,11 +275,11 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrisis } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrisis } if postIndex > l { return io.ErrUnexpectedEOF @@ -297,7 +296,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrisis } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -311,11 +310,11 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrisis } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrisis } if postIndex > l { return io.ErrUnexpectedEOF @@ -329,7 +328,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCrisis } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -343,11 +342,11 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrisis } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrisis } if postIndex > l { return io.ErrUnexpectedEOF @@ -356,15 +355,15 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCrisis(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrisis } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCrisis } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -378,7 +377,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipCrisis(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -386,7 +385,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCrisis } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -403,7 +402,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCrisis } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -419,7 +418,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCrisis } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -432,14 +431,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCrisis } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupCrisis } depth-- case 5: @@ -448,7 +447,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCrisis } if depth == 0 { return iNdEx, nil @@ -458,7 +457,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthCrisis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCrisis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCrisis = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/distribution/types/types.pb.go b/x/distribution/types/distribution.pb.go similarity index 82% rename from x/distribution/types/types.pb.go rename to x/distribution/types/distribution.pb.go index e8e131f3a572..23c4ef5992bf 100644 --- a/x/distribution/types/types.pb.go +++ b/x/distribution/types/distribution.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/distribution/types/types.proto +// source: cosmos/distribution/distribution.proto package types @@ -36,7 +36,7 @@ func (m *MsgSetWithdrawAddress) Reset() { *m = MsgSetWithdrawAddress{} } func (m *MsgSetWithdrawAddress) String() string { return proto.CompactTextString(m) } func (*MsgSetWithdrawAddress) ProtoMessage() {} func (*MsgSetWithdrawAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{0} + return fileDescriptor_49870d4e3df20cf9, []int{0} } func (m *MsgSetWithdrawAddress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -89,7 +89,7 @@ func (m *MsgWithdrawDelegatorReward) Reset() { *m = MsgWithdrawDelegator func (m *MsgWithdrawDelegatorReward) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawDelegatorReward) ProtoMessage() {} func (*MsgWithdrawDelegatorReward) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{1} + return fileDescriptor_49870d4e3df20cf9, []int{1} } func (m *MsgWithdrawDelegatorReward) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -141,7 +141,7 @@ func (m *MsgWithdrawValidatorCommission) Reset() { *m = MsgWithdrawValid func (m *MsgWithdrawValidatorCommission) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawValidatorCommission) ProtoMessage() {} func (*MsgWithdrawValidatorCommission) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{2} + return fileDescriptor_49870d4e3df20cf9, []int{2} } func (m *MsgWithdrawValidatorCommission) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -188,7 +188,7 @@ func (m *MsgFundCommunityPool) Reset() { *m = MsgFundCommunityPool{} } func (m *MsgFundCommunityPool) String() string { return proto.CompactTextString(m) } func (*MsgFundCommunityPool) ProtoMessage() {} func (*MsgFundCommunityPool) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{3} + return fileDescriptor_49870d4e3df20cf9, []int{3} } func (m *MsgFundCommunityPool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -242,7 +242,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{4} + return fileDescriptor_49870d4e3df20cf9, []int{4} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -299,7 +299,7 @@ func (m *ValidatorHistoricalRewards) Reset() { *m = ValidatorHistoricalR func (m *ValidatorHistoricalRewards) String() string { return proto.CompactTextString(m) } func (*ValidatorHistoricalRewards) ProtoMessage() {} func (*ValidatorHistoricalRewards) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{5} + return fileDescriptor_49870d4e3df20cf9, []int{5} } func (m *ValidatorHistoricalRewards) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -354,7 +354,7 @@ func (m *ValidatorCurrentRewards) Reset() { *m = ValidatorCurrentRewards func (m *ValidatorCurrentRewards) String() string { return proto.CompactTextString(m) } func (*ValidatorCurrentRewards) ProtoMessage() {} func (*ValidatorCurrentRewards) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{6} + return fileDescriptor_49870d4e3df20cf9, []int{6} } func (m *ValidatorCurrentRewards) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -407,7 +407,7 @@ func (m *ValidatorAccumulatedCommission) Reset() { *m = ValidatorAccumul func (m *ValidatorAccumulatedCommission) String() string { return proto.CompactTextString(m) } func (*ValidatorAccumulatedCommission) ProtoMessage() {} func (*ValidatorAccumulatedCommission) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{7} + return fileDescriptor_49870d4e3df20cf9, []int{7} } func (m *ValidatorAccumulatedCommission) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -453,7 +453,7 @@ func (m *ValidatorOutstandingRewards) Reset() { *m = ValidatorOutstandin func (m *ValidatorOutstandingRewards) String() string { return proto.CompactTextString(m) } func (*ValidatorOutstandingRewards) ProtoMessage() {} func (*ValidatorOutstandingRewards) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{8} + return fileDescriptor_49870d4e3df20cf9, []int{8} } func (m *ValidatorOutstandingRewards) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -502,7 +502,7 @@ func (m *ValidatorSlashEvent) Reset() { *m = ValidatorSlashEvent{} } func (m *ValidatorSlashEvent) String() string { return proto.CompactTextString(m) } func (*ValidatorSlashEvent) ProtoMessage() {} func (*ValidatorSlashEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{9} + return fileDescriptor_49870d4e3df20cf9, []int{9} } func (m *ValidatorSlashEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -546,7 +546,7 @@ type ValidatorSlashEvents struct { func (m *ValidatorSlashEvents) Reset() { *m = ValidatorSlashEvents{} } func (*ValidatorSlashEvents) ProtoMessage() {} func (*ValidatorSlashEvents) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{10} + return fileDescriptor_49870d4e3df20cf9, []int{10} } func (m *ValidatorSlashEvents) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -591,7 +591,7 @@ func (m *FeePool) Reset() { *m = FeePool{} } func (m *FeePool) String() string { return proto.CompactTextString(m) } func (*FeePool) ProtoMessage() {} func (*FeePool) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{11} + return fileDescriptor_49870d4e3df20cf9, []int{11} } func (m *FeePool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -638,7 +638,7 @@ type CommunityPoolSpendProposal struct { func (m *CommunityPoolSpendProposal) Reset() { *m = CommunityPoolSpendProposal{} } func (*CommunityPoolSpendProposal) ProtoMessage() {} func (*CommunityPoolSpendProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{12} + return fileDescriptor_49870d4e3df20cf9, []int{12} } func (m *CommunityPoolSpendProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -684,7 +684,7 @@ func (m *DelegatorStartingInfo) Reset() { *m = DelegatorStartingInfo{} } func (m *DelegatorStartingInfo) String() string { return proto.CompactTextString(m) } func (*DelegatorStartingInfo) ProtoMessage() {} func (*DelegatorStartingInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_9fddf2a8e4a90b09, []int{13} + return fileDescriptor_49870d4e3df20cf9, []int{13} } func (m *DelegatorStartingInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -728,96 +728,97 @@ func (m *DelegatorStartingInfo) GetHeight() uint64 { } func init() { - proto.RegisterType((*MsgSetWithdrawAddress)(nil), "cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress") - proto.RegisterType((*MsgWithdrawDelegatorReward)(nil), "cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward") - proto.RegisterType((*MsgWithdrawValidatorCommission)(nil), "cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission") - proto.RegisterType((*MsgFundCommunityPool)(nil), "cosmos_sdk.x.distribution.v1.MsgFundCommunityPool") - proto.RegisterType((*Params)(nil), "cosmos_sdk.x.distribution.v1.Params") - proto.RegisterType((*ValidatorHistoricalRewards)(nil), "cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards") - proto.RegisterType((*ValidatorCurrentRewards)(nil), "cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards") - proto.RegisterType((*ValidatorAccumulatedCommission)(nil), "cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission") - proto.RegisterType((*ValidatorOutstandingRewards)(nil), "cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards") - proto.RegisterType((*ValidatorSlashEvent)(nil), "cosmos_sdk.x.distribution.v1.ValidatorSlashEvent") - proto.RegisterType((*ValidatorSlashEvents)(nil), "cosmos_sdk.x.distribution.v1.ValidatorSlashEvents") - proto.RegisterType((*FeePool)(nil), "cosmos_sdk.x.distribution.v1.FeePool") - proto.RegisterType((*CommunityPoolSpendProposal)(nil), "cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal") - proto.RegisterType((*DelegatorStartingInfo)(nil), "cosmos_sdk.x.distribution.v1.DelegatorStartingInfo") -} - -func init() { proto.RegisterFile("x/distribution/types/types.proto", fileDescriptor_9fddf2a8e4a90b09) } - -var fileDescriptor_9fddf2a8e4a90b09 = []byte{ - // 1116 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0x38, 0x6e, 0x9a, 0x4c, 0xd3, 0xa4, 0xd9, 0xd8, 0x49, 0xe4, 0x14, 0xaf, 0x35, 0x12, - 0x55, 0x24, 0x14, 0x87, 0xd0, 0x5b, 0x0e, 0x48, 0x71, 0x7e, 0x08, 0x50, 0x43, 0xa2, 0x4d, 0x28, - 0x12, 0x12, 0x5a, 0x8d, 0x77, 0x27, 0xf6, 0x28, 0xeb, 0x9d, 0xd5, 0xcc, 0xd8, 0x4e, 0x7a, 0x41, - 0xe2, 0x04, 0x02, 0x2a, 0x0e, 0x08, 0x7a, 0xe0, 0xd0, 0x0b, 0x12, 0x54, 0xe2, 0xdf, 0x40, 0x3d, - 0xf6, 0x06, 0xe2, 0xe0, 0xa2, 0xe4, 0xc6, 0x31, 0x37, 0x38, 0xa1, 0xdd, 0x19, 0xef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e7, 0xac, 0x6b, 0xe6, 0x95, 0xf3, 0xe7, - 0xc0, 0x90, 0x35, 0x11, 0x3f, 0xef, 0xe3, 0x23, 0xe3, 0x33, 0x98, 0xaf, 0x61, 0x41, 0xec, 0x80, - 0xb3, 0x80, 0x09, 0xc2, 0x6d, 0x1e, 0xdd, 0xf7, 0x68, 0x4f, 0xe3, 0xd5, 0xed, 0xa1, 0x39, 0x17, - 0x14, 0xe7, 0x20, 0x4c, 0x64, 0x19, 0x61, 0x78, 0x57, 0x47, 0x75, 0x62, 0x7d, 0x0e, 0x60, 0xa1, - 0xc6, 0xfc, 0x96, 0xb8, 0x20, 0x61, 0x24, 0x92, 0xf0, 0xe1, 0xd0, 0x12, 0x6e, 0x6b, 0x09, 0x83, - 0x40, 0x91, 0x35, 0x13, 0xc5, 0xfb, 0x44, 0xec, 0xc3, 0xc2, 0xb9, 0x9a, 0x62, 0x13, 0x1f, 0xd7, - 0x3c, 0xe2, 0xce, 0xe7, 0xca, 0x60, 0x71, 0xac, 0x5a, 0x4e, 0x50, 0x07, 0x4e, 0x43, 0xd6, 0x4c, - 0xba, 0x9c, 0x6c, 0xaa, 0xe8, 0x6a, 0xee, 0xd1, 0x63, 0x33, 0x83, 0xbe, 0xcc, 0xc2, 0x62, 0x9c, - 0x36, 0xef, 0x51, 0x21, 0x19, 0xa7, 0x0e, 0xf6, 0x14, 0xb3, 0x30, 0x7e, 0x02, 0x70, 0xce, 0x69, - 0x35, 0x5b, 0x1e, 0x96, 0xb4, 0x4d, 0xb4, 0x4c, 0x9b, 0x63, 0x49, 0x99, 0xbe, 0xba, 0xb3, 0x7d, - 0x57, 0x77, 0x83, 0x38, 0xd1, 0xed, 0xfd, 0x28, 0x74, 0xe6, 0xac, 0x6b, 0x96, 0xf4, 0x31, 0x0f, - 0x06, 0x41, 0x4f, 0x9e, 0x9b, 0x6f, 0x5d, 0xce, 0x3b, 0x75, 0xc5, 0x0b, 0x09, 0x90, 0xd2, 0x68, - 0x85, 0x30, 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0xf6, 0x22, - 0x3a, 0x0b, 0xf6, 0xe1, 0x35, 0x21, 0xf1, 0x21, 0xd1, 0x29, 0xf0, 0xee, 0xd0, 0x5d, 0x70, 0x42, - 0x11, 0x45, 0x20, 0xc8, 0x52, 0x60, 0xc6, 0x26, 0x1c, 0x6d, 0x10, 0x5a, 0x6f, 0x28, 0xaf, 0x73, - 0xd5, 0xa5, 0xbf, 0xbb, 0xe6, 0x94, 0xc3, 0x49, 0x58, 0xe1, 0x7d, 0x5b, 0x0d, 0x25, 0x22, 0xfb, - 0x06, 0x90, 0xa5, 0x17, 0x57, 0x77, 0x7e, 0x3e, 0x29, 0x81, 0xa7, 0x27, 0x25, 0xf0, 0xec, 0xa4, - 0x04, 0xfe, 0x3a, 0x29, 0x81, 0x6f, 0x4f, 0x4b, 0x99, 0x67, 0xa7, 0xa5, 0xcc, 0x1f, 0xa7, 0xa5, - 0xcc, 0x27, 0x2b, 0x2f, 0xd4, 0x38, 0xe8, 0x83, 0xa7, 0x36, 0x1a, 0x7d, 0x92, 0xdc, 0xfd, 0x2f, - 0x00, 0x00, 0xff, 0xff, 0x34, 0x5a, 0x18, 0x60, 0x0f, 0x0d, 0x00, 0x00, + proto.RegisterType((*MsgSetWithdrawAddress)(nil), "cosmos.distribution.MsgSetWithdrawAddress") + proto.RegisterType((*MsgWithdrawDelegatorReward)(nil), "cosmos.distribution.MsgWithdrawDelegatorReward") + proto.RegisterType((*MsgWithdrawValidatorCommission)(nil), "cosmos.distribution.MsgWithdrawValidatorCommission") + proto.RegisterType((*MsgFundCommunityPool)(nil), "cosmos.distribution.MsgFundCommunityPool") + proto.RegisterType((*Params)(nil), "cosmos.distribution.Params") + proto.RegisterType((*ValidatorHistoricalRewards)(nil), "cosmos.distribution.ValidatorHistoricalRewards") + proto.RegisterType((*ValidatorCurrentRewards)(nil), "cosmos.distribution.ValidatorCurrentRewards") + proto.RegisterType((*ValidatorAccumulatedCommission)(nil), "cosmos.distribution.ValidatorAccumulatedCommission") + proto.RegisterType((*ValidatorOutstandingRewards)(nil), "cosmos.distribution.ValidatorOutstandingRewards") + proto.RegisterType((*ValidatorSlashEvent)(nil), "cosmos.distribution.ValidatorSlashEvent") + proto.RegisterType((*ValidatorSlashEvents)(nil), "cosmos.distribution.ValidatorSlashEvents") + proto.RegisterType((*FeePool)(nil), "cosmos.distribution.FeePool") + proto.RegisterType((*CommunityPoolSpendProposal)(nil), "cosmos.distribution.CommunityPoolSpendProposal") + proto.RegisterType((*DelegatorStartingInfo)(nil), "cosmos.distribution.DelegatorStartingInfo") +} + +func init() { + proto.RegisterFile("cosmos/distribution/distribution.proto", fileDescriptor_49870d4e3df20cf9) +} + +var fileDescriptor_49870d4e3df20cf9 = []byte{ + // 1098 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xf7, 0x38, 0x6e, 0x9a, 0x4c, 0xd3, 0xa4, 0xdd, 0xd8, 0x49, 0xe4, 0x80, 0x37, 0x1a, 0x89, + 0x2a, 0x12, 0x8a, 0x43, 0xe9, 0x2d, 0x07, 0xa4, 0x38, 0x1f, 0x02, 0xd4, 0x90, 0x68, 0x13, 0x82, + 0xc4, 0x01, 0x6b, 0xbc, 0x3b, 0x71, 0x46, 0x59, 0xef, 0xac, 0x66, 0xc6, 0xf9, 0xe8, 0x05, 0xa9, + 0xe2, 0xeb, 0x80, 0x44, 0x91, 0x38, 0x70, 0x40, 0xa8, 0x07, 0x0e, 0xd0, 0x7f, 0x82, 0x6b, 0x8f, + 0xbd, 0x81, 0x38, 0xb8, 0x28, 0xb9, 0x71, 0xcc, 0x0d, 0x4e, 0x68, 0x67, 0x66, 0x3f, 0xec, 0xb8, + 0x10, 0x47, 0x15, 0xdc, 0x3c, 0x6f, 0xde, 0xfc, 0x7e, 0xbf, 0x79, 0xef, 0xcd, 0x7b, 0x6b, 0x78, + 0xc7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0xec, 0x87, 0x89, + 0x1c, 0x2b, 0x32, 0x6f, 0x19, 0xab, 0x79, 0x51, 0x0f, 0x01, 0x2c, 0x35, 0x58, 0xd0, 0x16, 0x17, + 0x24, 0x0c, 0x29, 0x09, 0xef, 0x0d, 0x2c, 0xe1, 0x15, 0x23, 0xa1, 0x1f, 0x28, 0x72, 0x26, 0x95, + 0xbd, 0x47, 0xc4, 0x0e, 0x2c, 0x75, 0x35, 0x93, 0x3a, 0x09, 0x70, 0xc3, 0x27, 0xde, 0x4c, 0x61, + 0x0e, 0xcc, 0x8f, 0xd4, 0xe6, 0x52, 0xd4, 0xbe, 0x6e, 0xc8, 0x99, 0xcc, 0xf6, 0x91, 0x35, 0x6d, + 0x5d, 0x2a, 0x7c, 0xfb, 0xd8, 0xce, 0xa1, 0x87, 0x79, 0x58, 0x4e, 0xde, 0xcb, 0xdb, 0x54, 0x48, + 0xc6, 0xa9, 0x8b, 0x7d, 0xcd, 0x2c, 0xac, 0xef, 0x01, 0x9c, 0x76, 0xdb, 0xad, 0xb6, 0x8f, 0x25, + 0x3d, 0x24, 0x46, 0x66, 0x9d, 0x63, 0x49, 0x99, 0xa9, 0xd9, 0x89, 0xb8, 0x66, 0x57, 0x89, 0xab, + 0xca, 0xf6, 0xfd, 0x28, 0x24, 0xe7, 0x1d, 0xbb, 0x62, 0xf2, 0xdb, 0xff, 0x34, 0x7a, 0xf2, 0xdc, + 0x7e, 0xfd, 0x72, 0x41, 0xd3, 0xb5, 0x5d, 0x4a, 0x81, 0xb4, 0x38, 0x27, 0x82, 0xb1, 0x56, 0xe0, + 0x04, 0x27, 0x7b, 0x84, 0x93, 0xc0, 0x25, 0x75, 0x57, 0xbd, 0xa5, 0xa8, 0x38, 0x6e, 0xd6, 0xca, + 0xe7, 0x1d, 0x7b, 0x4a, 0x4b, 0xe8, 0x71, 0x40, 0xce, 0x78, 0x62, 0x59, 0x51, 0x86, 0xaf, 0x01, + 0x9c, 0x4e, 0x9b, 0x46, 0x9b, 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 0x9c, 0x44, 0x5d, 0x3b, 0xa8, 0xeb, 0xad, 0x54, 0x64, 0xcf, 0x06, 0x72, 0xcc, 0xe1, 0xda, + 0xe6, 0x8f, 0xa7, 0x15, 0xf0, 0xf4, 0xb4, 0x02, 0x9e, 0x9d, 0x56, 0xc0, 0xef, 0xa7, 0x15, 0xf0, + 0xe8, 0xac, 0x92, 0x7b, 0x76, 0x56, 0xc9, 0xfd, 0x7a, 0x56, 0xc9, 0x7d, 0x78, 0xf7, 0x1f, 0x35, + 0x1e, 0x77, 0xff, 0x3d, 0x51, 0x92, 0x1b, 0xc3, 0xea, 0x8f, 0xc5, 0xbd, 0xbf, 0x03, 0x00, 0x00, + 0xff, 0xff, 0xda, 0x06, 0xab, 0xc7, 0xc2, 0x0c, 0x00, 0x00, } func (this *MsgSetWithdrawAddress) Equal(that interface{}) bool { @@ -1261,14 +1262,14 @@ func (m *MsgSetWithdrawAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.WithdrawAddress) > 0 { i -= len(m.WithdrawAddress) copy(dAtA[i:], m.WithdrawAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.WithdrawAddress))) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.WithdrawAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -1298,14 +1299,14 @@ func (m *MsgWithdrawDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, err if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddress))) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.ValidatorAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -1335,7 +1336,7 @@ func (m *MsgWithdrawValidatorCommission) MarshalToSizedBuffer(dAtA []byte) (int, if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddress))) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.ValidatorAddress))) i-- dAtA[i] = 0xa } @@ -1365,7 +1366,7 @@ func (m *MsgFundCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Depositor) > 0 { i -= len(m.Depositor) copy(dAtA[i:], m.Depositor) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Depositor))) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.Depositor))) i-- dAtA[i] = 0x12 } @@ -1377,7 +1378,7 @@ func (m *MsgFundCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1422,7 +1423,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.BonusProposerReward.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -1432,7 +1433,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.BaseProposerReward.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -1442,7 +1443,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.CommunityTax.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1470,7 +1471,7 @@ func (m *ValidatorHistoricalRewards) MarshalToSizedBuffer(dAtA []byte) (int, err var l int _ = l if m.ReferenceCount != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ReferenceCount)) + i = encodeVarintDistribution(dAtA, i, uint64(m.ReferenceCount)) i-- dAtA[i] = 0x10 } @@ -1482,7 +1483,7 @@ func (m *ValidatorHistoricalRewards) MarshalToSizedBuffer(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1512,7 +1513,7 @@ func (m *ValidatorCurrentRewards) MarshalToSizedBuffer(dAtA []byte) (int, error) var l int _ = l if m.Period != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Period)) + i = encodeVarintDistribution(dAtA, i, uint64(m.Period)) i-- dAtA[i] = 0x10 } @@ -1524,7 +1525,7 @@ func (m *ValidatorCurrentRewards) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1561,7 +1562,7 @@ func (m *ValidatorAccumulatedCommission) MarshalToSizedBuffer(dAtA []byte) (int, return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1598,7 +1599,7 @@ func (m *ValidatorOutstandingRewards) MarshalToSizedBuffer(dAtA []byte) (int, er return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1633,12 +1634,12 @@ func (m *ValidatorSlashEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Fraction.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if m.ValidatorPeriod != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ValidatorPeriod)) + i = encodeVarintDistribution(dAtA, i, uint64(m.ValidatorPeriod)) i-- dAtA[i] = 0x8 } @@ -1673,7 +1674,7 @@ func (m *ValidatorSlashEvents) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1710,7 +1711,7 @@ func (m *FeePool) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1747,7 +1748,7 @@ func (m *CommunityPoolSpendProposal) MarshalToSizedBuffer(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -1756,21 +1757,21 @@ func (m *CommunityPoolSpendProposal) MarshalToSizedBuffer(dAtA []byte) (int, err if len(m.Recipient) > 0 { i -= len(m.Recipient) copy(dAtA[i:], m.Recipient) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Recipient))) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.Recipient))) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Description))) + i = encodeVarintDistribution(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 = encodeVarintTypes(dAtA, i, uint64(len(m.Title))) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -1798,7 +1799,7 @@ func (m *DelegatorStartingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Height != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Height)) + i = encodeVarintDistribution(dAtA, i, uint64(m.Height)) i-- dAtA[i] = 0x18 } @@ -1808,20 +1809,20 @@ func (m *DelegatorStartingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Stake.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintDistribution(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if m.PreviousPeriod != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.PreviousPeriod)) + i = encodeVarintDistribution(dAtA, i, uint64(m.PreviousPeriod)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintDistribution(dAtA []byte, offset int, v uint64) int { + offset -= sovDistribution(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -1839,11 +1840,11 @@ func (m *MsgSetWithdrawAddress) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } l = len(m.WithdrawAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } return n } @@ -1856,11 +1857,11 @@ func (m *MsgWithdrawDelegatorReward) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } l = len(m.ValidatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } return n } @@ -1873,7 +1874,7 @@ func (m *MsgWithdrawValidatorCommission) Size() (n int) { _ = l l = len(m.ValidatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } return n } @@ -1887,12 +1888,12 @@ func (m *MsgFundCommunityPool) Size() (n int) { if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } } l = len(m.Depositor) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } return n } @@ -1904,11 +1905,11 @@ func (m *Params) Size() (n int) { var l int _ = l l = m.CommunityTax.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) l = m.BaseProposerReward.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) l = m.BonusProposerReward.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) if m.WithdrawAddrEnabled { n += 2 } @@ -1924,11 +1925,11 @@ func (m *ValidatorHistoricalRewards) Size() (n int) { if len(m.CumulativeRewardRatio) > 0 { for _, e := range m.CumulativeRewardRatio { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } } if m.ReferenceCount != 0 { - n += 1 + sovTypes(uint64(m.ReferenceCount)) + n += 1 + sovDistribution(uint64(m.ReferenceCount)) } return n } @@ -1942,11 +1943,11 @@ func (m *ValidatorCurrentRewards) Size() (n int) { if len(m.Rewards) > 0 { for _, e := range m.Rewards { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } } if m.Period != 0 { - n += 1 + sovTypes(uint64(m.Period)) + n += 1 + sovDistribution(uint64(m.Period)) } return n } @@ -1960,7 +1961,7 @@ func (m *ValidatorAccumulatedCommission) Size() (n int) { if len(m.Commission) > 0 { for _, e := range m.Commission { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } } return n @@ -1975,7 +1976,7 @@ func (m *ValidatorOutstandingRewards) Size() (n int) { if len(m.Rewards) > 0 { for _, e := range m.Rewards { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } } return n @@ -1988,10 +1989,10 @@ func (m *ValidatorSlashEvent) Size() (n int) { var l int _ = l if m.ValidatorPeriod != 0 { - n += 1 + sovTypes(uint64(m.ValidatorPeriod)) + n += 1 + sovDistribution(uint64(m.ValidatorPeriod)) } l = m.Fraction.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) return n } @@ -2004,7 +2005,7 @@ func (m *ValidatorSlashEvents) Size() (n int) { if len(m.ValidatorSlashEvents) > 0 { for _, e := range m.ValidatorSlashEvents { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } } return n @@ -2019,7 +2020,7 @@ func (m *FeePool) Size() (n int) { if len(m.CommunityPool) > 0 { for _, e := range m.CommunityPool { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } } return n @@ -2033,20 +2034,20 @@ func (m *CommunityPoolSpendProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } l = len(m.Recipient) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) } } return n @@ -2059,21 +2060,21 @@ func (m *DelegatorStartingInfo) Size() (n int) { var l int _ = l if m.PreviousPeriod != 0 { - n += 1 + sovTypes(uint64(m.PreviousPeriod)) + n += 1 + sovDistribution(uint64(m.PreviousPeriod)) } l = m.Stake.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovDistribution(uint64(l)) if m.Height != 0 { - n += 1 + sovTypes(uint64(m.Height)) + n += 1 + sovDistribution(uint64(m.Height)) } return n } -func sovTypes(x uint64) (n int) { +func sovDistribution(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozDistribution(x uint64) (n int) { + return sovDistribution(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgSetWithdrawAddress) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -2083,7 +2084,7 @@ func (m *MsgSetWithdrawAddress) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2111,7 +2112,7 @@ func (m *MsgSetWithdrawAddress) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2124,11 +2125,11 @@ func (m *MsgSetWithdrawAddress) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2145,7 +2146,7 @@ func (m *MsgSetWithdrawAddress) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2158,11 +2159,11 @@ func (m *MsgSetWithdrawAddress) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2174,15 +2175,15 @@ func (m *MsgSetWithdrawAddress) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2204,7 +2205,7 @@ func (m *MsgWithdrawDelegatorReward) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2232,7 +2233,7 @@ func (m *MsgWithdrawDelegatorReward) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2245,11 +2246,11 @@ func (m *MsgWithdrawDelegatorReward) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2266,7 +2267,7 @@ func (m *MsgWithdrawDelegatorReward) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2279,11 +2280,11 @@ func (m *MsgWithdrawDelegatorReward) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2295,15 +2296,15 @@ func (m *MsgWithdrawDelegatorReward) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2325,7 +2326,7 @@ func (m *MsgWithdrawValidatorCommission) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2353,7 +2354,7 @@ func (m *MsgWithdrawValidatorCommission) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2366,11 +2367,11 @@ func (m *MsgWithdrawValidatorCommission) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2382,15 +2383,15 @@ func (m *MsgWithdrawValidatorCommission) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2412,7 +2413,7 @@ func (m *MsgFundCommunityPool) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2440,7 +2441,7 @@ func (m *MsgFundCommunityPool) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2453,11 +2454,11 @@ func (m *MsgFundCommunityPool) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2474,7 +2475,7 @@ func (m *MsgFundCommunityPool) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2487,11 +2488,11 @@ func (m *MsgFundCommunityPool) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2503,15 +2504,15 @@ func (m *MsgFundCommunityPool) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2533,7 +2534,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2561,7 +2562,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2575,11 +2576,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2595,7 +2596,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2609,11 +2610,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2629,7 +2630,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2643,11 +2644,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2663,7 +2664,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2678,15 +2679,15 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.WithdrawAddrEnabled = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2708,7 +2709,7 @@ func (m *ValidatorHistoricalRewards) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2736,7 +2737,7 @@ func (m *ValidatorHistoricalRewards) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2749,11 +2750,11 @@ func (m *ValidatorHistoricalRewards) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2770,7 +2771,7 @@ func (m *ValidatorHistoricalRewards) Unmarshal(dAtA []byte) error { m.ReferenceCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2784,15 +2785,15 @@ func (m *ValidatorHistoricalRewards) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2814,7 +2815,7 @@ func (m *ValidatorCurrentRewards) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2842,7 +2843,7 @@ func (m *ValidatorCurrentRewards) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2855,11 +2856,11 @@ func (m *ValidatorCurrentRewards) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2876,7 +2877,7 @@ func (m *ValidatorCurrentRewards) Unmarshal(dAtA []byte) error { m.Period = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2890,15 +2891,15 @@ func (m *ValidatorCurrentRewards) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2920,7 +2921,7 @@ func (m *ValidatorAccumulatedCommission) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2948,7 +2949,7 @@ func (m *ValidatorAccumulatedCommission) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2961,11 +2962,11 @@ func (m *ValidatorAccumulatedCommission) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -2977,15 +2978,15 @@ func (m *ValidatorAccumulatedCommission) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3007,7 +3008,7 @@ func (m *ValidatorOutstandingRewards) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3035,7 +3036,7 @@ func (m *ValidatorOutstandingRewards) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3048,11 +3049,11 @@ func (m *ValidatorOutstandingRewards) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -3064,15 +3065,15 @@ func (m *ValidatorOutstandingRewards) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3094,7 +3095,7 @@ func (m *ValidatorSlashEvent) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3122,7 +3123,7 @@ func (m *ValidatorSlashEvent) Unmarshal(dAtA []byte) error { m.ValidatorPeriod = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3141,7 +3142,7 @@ func (m *ValidatorSlashEvent) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3155,11 +3156,11 @@ func (m *ValidatorSlashEvent) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -3170,15 +3171,15 @@ func (m *ValidatorSlashEvent) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3200,7 +3201,7 @@ func (m *ValidatorSlashEvents) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3228,7 +3229,7 @@ func (m *ValidatorSlashEvents) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3241,11 +3242,11 @@ func (m *ValidatorSlashEvents) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -3257,15 +3258,15 @@ func (m *ValidatorSlashEvents) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3287,7 +3288,7 @@ func (m *FeePool) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3315,7 +3316,7 @@ func (m *FeePool) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3328,11 +3329,11 @@ func (m *FeePool) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -3344,15 +3345,15 @@ func (m *FeePool) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3374,7 +3375,7 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3402,7 +3403,7 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3416,11 +3417,11 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -3434,7 +3435,7 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3448,11 +3449,11 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -3466,7 +3467,7 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3479,11 +3480,11 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -3500,7 +3501,7 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3513,11 +3514,11 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -3529,15 +3530,15 @@ func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3559,7 +3560,7 @@ func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3587,7 +3588,7 @@ func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error { m.PreviousPeriod = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3606,7 +3607,7 @@ func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3620,11 +3621,11 @@ func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if postIndex > l { return io.ErrUnexpectedEOF @@ -3640,7 +3641,7 @@ func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error { m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowDistribution } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3654,15 +3655,15 @@ func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipDistribution(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthDistribution } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3676,7 +3677,7 @@ func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipDistribution(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -3684,7 +3685,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowDistribution } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3701,7 +3702,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowDistribution } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3717,7 +3718,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowDistribution } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3730,14 +3731,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthDistribution } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupDistribution } depth-- case 5: @@ -3746,7 +3747,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthDistribution } if depth == 0 { return iNdEx, nil @@ -3756,7 +3757,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthDistribution = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDistribution = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDistribution = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/evidence/types/types.pb.go b/x/evidence/types/evidence.pb.go similarity index 73% rename from x/evidence/types/types.pb.go rename to x/evidence/types/evidence.pb.go index cb7ca7b77d6c..6baa6aabb85b 100644 --- a/x/evidence/types/types.pb.go +++ b/x/evidence/types/evidence.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/evidence/types/types.proto +// source: cosmos/evidence/evidence.proto package types @@ -41,7 +41,7 @@ func (m *MsgSubmitEvidence) Reset() { *m = MsgSubmitEvidence{} } func (m *MsgSubmitEvidence) String() string { return proto.CompactTextString(m) } func (*MsgSubmitEvidence) ProtoMessage() {} func (*MsgSubmitEvidence) Descriptor() ([]byte, []int) { - return fileDescriptor_72113e6a7b2536ae, []int{0} + return fileDescriptor_a2cafccc38cf08ce, []int{0} } func (m *MsgSubmitEvidence) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -82,7 +82,7 @@ type Equivocation struct { func (m *Equivocation) Reset() { *m = Equivocation{} } func (*Equivocation) ProtoMessage() {} func (*Equivocation) Descriptor() ([]byte, []int) { - return fileDescriptor_72113e6a7b2536ae, []int{1} + return fileDescriptor_a2cafccc38cf08ce, []int{1} } func (m *Equivocation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -112,40 +112,39 @@ func (m *Equivocation) XXX_DiscardUnknown() { var xxx_messageInfo_Equivocation proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgSubmitEvidence)(nil), "cosmos_sdk.x.evidence.v1.MsgSubmitEvidence") - proto.RegisterType((*Equivocation)(nil), "cosmos_sdk.x.evidence.v1.Equivocation") + proto.RegisterType((*MsgSubmitEvidence)(nil), "cosmos.evidence.MsgSubmitEvidence") + proto.RegisterType((*Equivocation)(nil), "cosmos.evidence.Equivocation") } -func init() { proto.RegisterFile("x/evidence/types/types.proto", fileDescriptor_72113e6a7b2536ae) } +func init() { proto.RegisterFile("cosmos/evidence/evidence.proto", fileDescriptor_a2cafccc38cf08ce) } -var fileDescriptor_72113e6a7b2536ae = []byte{ - // 414 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xbd, 0xae, 0xd3, 0x30, - 0x18, 0x8d, 0xb9, 0xe5, 0xaa, 0x98, 0x3b, 0xd0, 0xa8, 0x42, 0xa1, 0x42, 0x71, 0x95, 0x01, 0x75, - 0xa9, 0x43, 0x61, 0x41, 0xdd, 0x5a, 0xd4, 0x09, 0x01, 0x52, 0x60, 0x62, 0xa9, 0xf2, 0x63, 0x12, - 0xab, 0x4d, 0x1c, 0x62, 0xa7, 0x34, 0xe2, 0x05, 0x18, 0x3b, 0x32, 0x30, 0x74, 0xe4, 0x51,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0x1a, 0x36, 0xbe, 0xae, 0x91, 0x62, 0xfc, 0x05, 0xf0, 0x66, - 0xf2, 0x29, 0xa5, 0x0b, 0xe6, 0xda, 0x82, 0xb2, 0x48, 0x7d, 0x08, 0xaf, 0x03, 0x42, 0xfd, 0x40, - 0x94, 0xb2, 0xae, 0xac, 0xaa, 0x52, 0x5f, 0xc0, 0xc6, 0xc1, 0x75, 0x45, 0xde, 0xb9, 0x20, 0x7f, - 0x5f, 0x47, 0x32, 0x6e, 0x6e, 0x72, 0xa4, 0xac, 0x7e, 0x21, 0x60, 0x95, 0x27, 0xd4, 0x36, 0xbc, - 0x1b, 0xb3, 0xcf, 0x24, 0xd1, 0xae, 0x4a, 0x42, 0x59, 0xa8, 0x5f, 0x60, 0xcb, 0x65, 0x11, 0x27, - 0x11, 0x4f, 0xf9, 0xd4, 0x96, 0x86, 0xb4, 0x46, 0x99, 0xc4, 0x9b, 0x3f, 0x39, 0xd2, 0x32, 0x3b, - 0x9c, 0x0f, 0x8d, 0x0b, 0x88, 0xb1, 0xcf, 0x11, 0xbe, 0x45, 0x4a, 0x2f, 0x59, 0xc4, 0xeb, 0x98, - 0x1e, 0x1c, 0x59, 0xaa, 0xce, 0xb0, 0x79, 0xf0, 0xfe, 0x6d, 0x8d, 0x94, 0xf1, 0xab, 0x1f, 0x85, - 0x0e, 0x36, 0x85, 0x0e, 0xb6, 0x85, 0x0e, 0x7e, 0x17, 0x3a, 0x58, 0xed, 0x74, 0x65, 0xbb, 0xd3, - 0x95, 0x9f, 0x3b, 0x5d, 0xf9, 0xf0, 0xff, 0xf7, 0x38, 0xff, 0x75, 0xce, 0x75, 0x99, 0xc6, 0xf3, - 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2c, 0xbe, 0x1a, 0x9c, 0x90, 0x02, 0x00, 0x00, +var fileDescriptor_a2cafccc38cf08ce = []byte{ + // 400 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0x4f, 0x2d, 0xcb, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0x85, 0x33, 0xf4, 0x0a, 0x8a, + 0xf2, 0x4b, 0xf2, 0x85, 0xf8, 0x21, 0xf2, 0x7a, 0x30, 0x61, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, + 0xb0, 0x9c, 0x3e, 0x88, 0x05, 0x51, 0x26, 0x25, 0x9f, 0x9e, 0x9f, 0x9f, 0x9e, 0x93, 0xaa, 0x0f, + 0xe6, 0x25, 0x95, 0xa6, 0xe9, 0x97, 0x64, 0xe6, 0xa6, 0x16, 0x97, 0x24, 0xe6, 0x16, 0x40, 0x15, + 0x48, 0xa2, 0x2b, 0x48, 0xcc, 0xab, 0x84, 0x48, 0x29, 0xcd, 0x61, 0xe4, 0x12, 0xf4, 0x2d, 0x4e, + 0x0f, 0x2e, 0x4d, 0xca, 0xcd, 0x2c, 0x71, 0x85, 0xda, 0x23, 0xe4, 0xcf, 0xc5, 0x59, 0x0c, 0x16, + 0x29, 0x49, 0x2d, 0x92, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x71, 0x32, 0xfc, 0x75, 0x4f, 0x5e, 0x37, + 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xea, 0x74, 0x08, 0xa5, 0x5b, + 0x9c, 0x92, 0xad, 0x5f, 0x52, 0x59, 0x90, 0x5a, 0xac, 0xe7, 0x98, 0x9c, 0xec, 0x98, 0x92, 0x52, + 0x94, 0x5a, 0x5c, 0x1c, 0x84, 0x30, 0x43, 0xc8, 0x80, 0x8b, 0x03, 0xe6, 0x09, 0x09, 0x26, 0x05, + 0x46, 0x0d, 0x6e, 0x23, 0x11, 0x3d, 0x88, 0xa3, 0xf4, 0x60, 0x8e, 0xd2, 0x73, 0xcc, 0xab, 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 0x7c, 0x54, 0x20, 0xd2, 0x15, 0xd8, 0xd2, 0x24, 0x36, 0x70, + 0x68, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x56, 0x68, 0x52, 0xd8, 0x77, 0x02, 0x00, 0x00, } func (this *MsgSubmitEvidence) Equal(that interface{}) bool { @@ -235,7 +234,7 @@ func (m *MsgSubmitEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintEvidence(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -243,7 +242,7 @@ func (m *MsgSubmitEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Submitter) > 0 { i -= len(m.Submitter) copy(dAtA[i:], m.Submitter) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Submitter))) + i = encodeVarintEvidence(dAtA, i, uint64(len(m.Submitter))) i-- dAtA[i] = 0xa } @@ -273,12 +272,12 @@ func (m *Equivocation) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ConsensusAddress) > 0 { i -= len(m.ConsensusAddress) copy(dAtA[i:], m.ConsensusAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ConsensusAddress))) + i = encodeVarintEvidence(dAtA, i, uint64(len(m.ConsensusAddress))) i-- dAtA[i] = 0x22 } if m.Power != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Power)) + i = encodeVarintEvidence(dAtA, i, uint64(m.Power)) i-- dAtA[i] = 0x18 } @@ -287,19 +286,19 @@ func (m *Equivocation) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err2 } i -= n2 - i = encodeVarintTypes(dAtA, i, uint64(n2)) + i = encodeVarintEvidence(dAtA, i, uint64(n2)) i-- dAtA[i] = 0x12 if m.Height != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Height)) + i = encodeVarintEvidence(dAtA, i, uint64(m.Height)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintEvidence(dAtA []byte, offset int, v uint64) int { + offset -= sovEvidence(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -317,11 +316,11 @@ func (m *MsgSubmitEvidence) Size() (n int) { _ = l l = len(m.Submitter) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovEvidence(uint64(l)) } if m.Evidence != nil { l = m.Evidence.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovEvidence(uint64(l)) } return n } @@ -333,25 +332,25 @@ func (m *Equivocation) Size() (n int) { var l int _ = l if m.Height != 0 { - n += 1 + sovTypes(uint64(m.Height)) + n += 1 + sovEvidence(uint64(m.Height)) } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovEvidence(uint64(l)) if m.Power != 0 { - n += 1 + sovTypes(uint64(m.Power)) + n += 1 + sovEvidence(uint64(m.Power)) } l = len(m.ConsensusAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovEvidence(uint64(l)) } return n } -func sovTypes(x uint64) (n int) { +func sovEvidence(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozEvidence(x uint64) (n int) { + return sovEvidence(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -361,7 +360,7 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowEvidence } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -389,7 +388,7 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowEvidence } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -402,11 +401,11 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } if postIndex > l { return io.ErrUnexpectedEOF @@ -423,7 +422,7 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowEvidence } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -436,11 +435,11 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } if postIndex > l { return io.ErrUnexpectedEOF @@ -454,15 +453,15 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipEvidence(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -484,7 +483,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowEvidence } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -512,7 +511,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error { m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowEvidence } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -531,7 +530,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowEvidence } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -544,11 +543,11 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } if postIndex > l { return io.ErrUnexpectedEOF @@ -564,7 +563,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error { m.Power = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowEvidence } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -583,7 +582,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowEvidence } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -596,11 +595,11 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } if postIndex > l { return io.ErrUnexpectedEOF @@ -612,15 +611,15 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipEvidence(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthEvidence } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -634,7 +633,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipEvidence(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -642,7 +641,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowEvidence } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -659,7 +658,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowEvidence } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -675,7 +674,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowEvidence } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -688,14 +687,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthEvidence } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupEvidence } depth-- case 5: @@ -704,7 +703,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthEvidence } if depth == 0 { return iNdEx, nil @@ -714,7 +713,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthEvidence = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvidence = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvidence = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/gov/types/types.pb.go b/x/gov/types/gov.pb.go similarity index 77% rename from x/gov/types/types.pb.go rename to x/gov/types/gov.pb.go index 590f19869dcd..2bec81b30b98 100644 --- a/x/gov/types/types.pb.go +++ b/x/gov/types/gov.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/gov/types/types.proto +// source: cosmos/gov/gov.proto package types @@ -65,7 +65,7 @@ var VoteOption_value = map[string]int32{ } func (VoteOption) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{0} + return fileDescriptor_67fb57f9a603bed5, []int{0} } // ProposalStatus is a type alias that represents a proposal status as a byte @@ -105,7 +105,7 @@ var ProposalStatus_value = map[string]int32{ } func (ProposalStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{1} + return fileDescriptor_67fb57f9a603bed5, []int{1} } // MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary @@ -119,7 +119,7 @@ type MsgSubmitProposal struct { func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} } func (*MsgSubmitProposal) ProtoMessage() {} func (*MsgSubmitProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{0} + return fileDescriptor_67fb57f9a603bed5, []int{0} } func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -152,13 +152,13 @@ var xxx_messageInfo_MsgSubmitProposal proto.InternalMessageInfo type MsgVote struct { ProposalID uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id" yaml:"proposal_id"` Voter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=voter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"voter,omitempty"` - Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos_sdk.x.gov.v1.VoteOption" json:"option,omitempty"` + Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.VoteOption" json:"option,omitempty"` } func (m *MsgVote) Reset() { *m = MsgVote{} } func (*MsgVote) ProtoMessage() {} func (*MsgVote) Descriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{1} + return fileDescriptor_67fb57f9a603bed5, []int{1} } func (m *MsgVote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -197,7 +197,7 @@ type MsgDeposit struct { func (m *MsgDeposit) Reset() { *m = MsgDeposit{} } func (*MsgDeposit) ProtoMessage() {} func (*MsgDeposit) Descriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{2} + return fileDescriptor_67fb57f9a603bed5, []int{2} } func (m *MsgDeposit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -236,7 +236,7 @@ type TextProposal struct { func (m *TextProposal) Reset() { *m = TextProposal{} } func (*TextProposal) ProtoMessage() {} func (*TextProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{3} + return fileDescriptor_67fb57f9a603bed5, []int{3} } func (m *TextProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -275,7 +275,7 @@ type Deposit struct { func (m *Deposit) Reset() { *m = Deposit{} } func (*Deposit) ProtoMessage() {} func (*Deposit) Descriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{4} + return fileDescriptor_67fb57f9a603bed5, []int{4} } func (m *Deposit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -308,7 +308,7 @@ var xxx_messageInfo_Deposit proto.InternalMessageInfo type Proposal struct { ProposalID uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"id" yaml:"id"` Content *types.Any `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` - Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos_sdk.x.gov.v1.ProposalStatus" json:"status,omitempty" yaml:"proposal_status"` + Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.ProposalStatus" json:"status,omitempty" yaml:"proposal_status"` FinalTallyResult TallyResult `protobuf:"bytes,4,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result" yaml:"final_tally_result"` SubmitTime time.Time `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time" yaml:"submit_time"` DepositEndTime time.Time `protobuf:"bytes,6,opt,name=deposit_end_time,json=depositEndTime,proto3,stdtime" json:"deposit_end_time" yaml:"deposit_end_time"` @@ -320,7 +320,7 @@ type Proposal struct { func (m *Proposal) Reset() { *m = Proposal{} } func (*Proposal) ProtoMessage() {} func (*Proposal) Descriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{5} + return fileDescriptor_67fb57f9a603bed5, []int{5} } func (m *Proposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -360,7 +360,7 @@ type TallyResult struct { func (m *TallyResult) Reset() { *m = TallyResult{} } func (*TallyResult) ProtoMessage() {} func (*TallyResult) Descriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{6} + return fileDescriptor_67fb57f9a603bed5, []int{6} } func (m *TallyResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -394,13 +394,13 @@ var xxx_messageInfo_TallyResult proto.InternalMessageInfo type Vote struct { ProposalID uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"` Voter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=voter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"voter,omitempty"` - Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos_sdk.x.gov.v1.VoteOption" json:"option,omitempty"` + Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.VoteOption" json:"option,omitempty"` } func (m *Vote) Reset() { *m = Vote{} } func (*Vote) ProtoMessage() {} func (*Vote) Descriptor() ([]byte, []int) { - return fileDescriptor_a5ae5e91b5b3fb03, []int{7} + return fileDescriptor_67fb57f9a603bed5, []int{7} } func (m *Vote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -430,102 +430,100 @@ func (m *Vote) XXX_DiscardUnknown() { var xxx_messageInfo_Vote proto.InternalMessageInfo func init() { - proto.RegisterEnum("cosmos_sdk.x.gov.v1.VoteOption", VoteOption_name, VoteOption_value) - proto.RegisterEnum("cosmos_sdk.x.gov.v1.ProposalStatus", ProposalStatus_name, ProposalStatus_value) - proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos_sdk.x.gov.v1.MsgSubmitProposal") - proto.RegisterType((*MsgVote)(nil), "cosmos_sdk.x.gov.v1.MsgVote") - proto.RegisterType((*MsgDeposit)(nil), "cosmos_sdk.x.gov.v1.MsgDeposit") - proto.RegisterType((*TextProposal)(nil), "cosmos_sdk.x.gov.v1.TextProposal") - proto.RegisterType((*Deposit)(nil), "cosmos_sdk.x.gov.v1.Deposit") - proto.RegisterType((*Proposal)(nil), "cosmos_sdk.x.gov.v1.Proposal") - proto.RegisterType((*TallyResult)(nil), "cosmos_sdk.x.gov.v1.TallyResult") - proto.RegisterType((*Vote)(nil), "cosmos_sdk.x.gov.v1.Vote") -} - -func init() { proto.RegisterFile("x/gov/types/types.proto", fileDescriptor_a5ae5e91b5b3fb03) } - -var fileDescriptor_a5ae5e91b5b3fb03 = []byte{ - // 1275 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0xbd, 0x6f, 0xdb, 0xd6, - 0x17, 0x15, 0xe9, 0x0f, 0xd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x0a, 0x6a, 0x7b, - 0xd8, 0x85, 0x6f, 0x81, 0xff, 0x8f, 0x92, 0x37, 0xca, 0x56, 0xb1, 0x74, 0x25, 0xe2, 0x8a, 0xf2, - 0xb1, 0x5e, 0x5f, 0x83, 0x8c, 0xbb, 0x11, 0x4e, 0x35, 0xa7, 0x9e, 0x05, 0xc7, 0x46, 0xa9, 0x95, - 0x5c, 0xb5, 0x6a, 0x14, 0xa4, 0x31, 0x59, 0xea, 0xf5, 0xb5, 0x34, 0xe3, 0x54, 0x1c, 0x42, 0x90, - 0x0b, 0xcf, 0x83, 0xcc, 0x28, 0xda, 0x34, 0xae, 0x19, 0x6b, 0x96, 0x51, 0x90, 0xc6, 0x65, 0xd8, - 0xeb, 0x6b, 0xb3, 0x0c, 0x6f, 0xa2, 0x0f, 0x51, 0x8d, 0xa2, 0x43, 0xf5, 0x2f, 0xe7, 0x8a, 0xd7, - 0x8d, 0x82, 0x34, 0x11, 0xd7, 0xbf, 0xec, 0x78, 0x0d, 0xe4, 0xee, 0xb7, 0x35, 0x5f, 0xda, 0x7d, - 0xaa, 0x24, 0x1e, 0x3f, 0x55, 0x12, 0x77, 0xf7, 0x94, 0xc4, 0xee, 0x9e, 0x22, 0x3c, 0xda, 0x53, - 0x84, 0x1f, 0xf7, 0x14, 0xe1, 0xfe, 0x33, 0x25, 0xf1, 0xe8, 0x99, 0x92, 0x78, 0xfc, 0x4c, 0x49, - 0xbc, 0xf7, 0xc7, 0x4b, 0x3a, 0xf6, 0xe3, 0x6c, 0x6b, 0x32, 0xdc, 0x83, 0x17, 0x7f, 0x0f, 0x00, - 0x00, 0xff, 0xff, 0xd6, 0x34, 0x18, 0x2d, 0xb2, 0x0d, 0x00, 0x00, + proto.RegisterEnum("cosmos.gov.VoteOption", VoteOption_name, VoteOption_value) + proto.RegisterEnum("cosmos.gov.ProposalStatus", ProposalStatus_name, ProposalStatus_value) + proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos.gov.MsgSubmitProposal") + proto.RegisterType((*MsgVote)(nil), "cosmos.gov.MsgVote") + proto.RegisterType((*MsgDeposit)(nil), "cosmos.gov.MsgDeposit") + proto.RegisterType((*TextProposal)(nil), "cosmos.gov.TextProposal") + proto.RegisterType((*Deposit)(nil), "cosmos.gov.Deposit") + proto.RegisterType((*Proposal)(nil), "cosmos.gov.Proposal") + proto.RegisterType((*TallyResult)(nil), "cosmos.gov.TallyResult") + proto.RegisterType((*Vote)(nil), "cosmos.gov.Vote") +} + +func init() { proto.RegisterFile("cosmos/gov/gov.proto", fileDescriptor_67fb57f9a603bed5) } + +var fileDescriptor_67fb57f9a603bed5 = []byte{ + // 1247 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xf6, 0x6e, 0x7e, 0x3f, 0x3b, 0xc9, 0x76, 0x12, 0x25, 0xee, 0x22, 0xd6, 0x5b, 0x53, 0xa1, + 0xa8, 0x6a, 0x9d, 0x92, 0x9e, 0x28, 0x12, 0xc2, 0x8e, 0xb7, 0xad, 0xab, 0xc6, 0xb6, 0xd6, 0x5b, + 0x57, 0x85, 0xc3, 0x6a, 0x63, 0x4f, 0x9d, 0x05, 0x7b, 0xc7, 0xf2, 0x4e, 0x42, 0x2d, 0x2e, 0x70, + 0x43, 0x3e, 0x95, 0x3f, 0xc0, 0x12, 0x12, 0x3d, 0x00, 0x27, 0x0e, 0xfc, 0x11, 0x11, 0xe2, 0x50, + 0x21, 0x0e, 0x15, 0x07, 0x97, 0xa6, 0x12, 0x42, 0x1c, 0x38, 0xf4, 0xc8, 0x05, 0xb4, 0x33, 0xb3, + 0xf5, 0xda, 0x89, 0x68, 0xcd, 0x0f, 0x21, 0x71, 0x88, 0xe4, 0x7d, 0xf3, 0x7d, 0xdf, 0x9b, 0xf7, + 0xed, 0x9b, 0x37, 0x1b, 0x58, 0xad, 0x11, 0xbf, 0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x3d, 0x78, 0xa2, 0xc5, 0x1e, 0x3e, 0xd1, + 0x62, 0x6f, 0xff, 0xf9, 0x6c, 0xbe, 0xcb, 0xfe, 0x51, 0x62, 0xfd, 0xbd, 0x3b, 0xcb, 0xc6, 0xdf, + 0xa5, 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xa5, 0x92, 0x7f, 0x43, 0x0d, 0x00, 0x00, } func (this *MsgSubmitProposal) Equal(that interface{}) bool { @@ -829,7 +827,7 @@ func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Proposer) > 0 { i -= len(m.Proposer) copy(dAtA[i:], m.Proposer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Proposer))) + i = encodeVarintGov(dAtA, i, uint64(len(m.Proposer))) i-- dAtA[i] = 0x1a } @@ -841,7 +839,7 @@ func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -854,7 +852,7 @@ func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -883,19 +881,19 @@ func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Option != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Option)) + i = encodeVarintGov(dAtA, i, uint64(m.Option)) i-- dAtA[i] = 0x18 } if len(m.Voter) > 0 { i -= len(m.Voter) copy(dAtA[i:], m.Voter) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Voter))) + i = encodeVarintGov(dAtA, i, uint64(len(m.Voter))) i-- dAtA[i] = 0x12 } if m.ProposalID != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProposalID)) + i = encodeVarintGov(dAtA, i, uint64(m.ProposalID)) i-- dAtA[i] = 0x8 } @@ -930,7 +928,7 @@ func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -939,12 +937,12 @@ func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Depositor) > 0 { i -= len(m.Depositor) copy(dAtA[i:], m.Depositor) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Depositor))) + i = encodeVarintGov(dAtA, i, uint64(len(m.Depositor))) i-- dAtA[i] = 0x12 } if m.ProposalID != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProposalID)) + i = encodeVarintGov(dAtA, i, uint64(m.ProposalID)) i-- dAtA[i] = 0x8 } @@ -974,14 +972,14 @@ func (m *TextProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Description))) + i = encodeVarintGov(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 = encodeVarintTypes(dAtA, i, uint64(len(m.Title))) + i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -1016,7 +1014,7 @@ func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -1025,12 +1023,12 @@ func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Depositor) > 0 { i -= len(m.Depositor) copy(dAtA[i:], m.Depositor) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Depositor))) + i = encodeVarintGov(dAtA, i, uint64(len(m.Depositor))) i-- dAtA[i] = 0x12 } if m.ProposalID != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProposalID)) + i = encodeVarintGov(dAtA, i, uint64(m.ProposalID)) i-- dAtA[i] = 0x8 } @@ -1062,7 +1060,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err2 } i -= n2 - i = encodeVarintTypes(dAtA, i, uint64(n2)) + i = encodeVarintGov(dAtA, i, uint64(n2)) i-- dAtA[i] = 0x4a n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.VotingStartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.VotingStartTime):]) @@ -1070,7 +1068,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err3 } i -= n3 - i = encodeVarintTypes(dAtA, i, uint64(n3)) + i = encodeVarintGov(dAtA, i, uint64(n3)) i-- dAtA[i] = 0x42 if len(m.TotalDeposit) > 0 { @@ -1081,7 +1079,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a @@ -1092,7 +1090,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err4 } i -= n4 - i = encodeVarintTypes(dAtA, i, uint64(n4)) + i = encodeVarintGov(dAtA, i, uint64(n4)) i-- dAtA[i] = 0x32 n5, err5 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.SubmitTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.SubmitTime):]) @@ -1100,7 +1098,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err5 } i -= n5 - i = encodeVarintTypes(dAtA, i, uint64(n5)) + i = encodeVarintGov(dAtA, i, uint64(n5)) i-- dAtA[i] = 0x2a { @@ -1109,12 +1107,12 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 if m.Status != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Status)) + i = encodeVarintGov(dAtA, i, uint64(m.Status)) i-- dAtA[i] = 0x18 } @@ -1125,13 +1123,13 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if m.ProposalID != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProposalID)) + i = encodeVarintGov(dAtA, i, uint64(m.ProposalID)) i-- dAtA[i] = 0x8 } @@ -1164,7 +1162,7 @@ func (m *TallyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.NoWithVeto.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -1174,7 +1172,7 @@ func (m *TallyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.No.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -1184,7 +1182,7 @@ func (m *TallyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Abstain.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -1194,7 +1192,7 @@ func (m *TallyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Yes.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintGov(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1222,27 +1220,27 @@ func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Option != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Option)) + i = encodeVarintGov(dAtA, i, uint64(m.Option)) i-- dAtA[i] = 0x18 } if len(m.Voter) > 0 { i -= len(m.Voter) copy(dAtA[i:], m.Voter) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Voter))) + i = encodeVarintGov(dAtA, i, uint64(len(m.Voter))) i-- dAtA[i] = 0x12 } if m.ProposalID != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProposalID)) + i = encodeVarintGov(dAtA, i, uint64(m.ProposalID)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintGov(dAtA []byte, offset int, v uint64) int { + offset -= sovGov(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -1260,17 +1258,17 @@ func (m *MsgSubmitProposal) Size() (n int) { _ = l if m.Content != nil { l = m.Content.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } if len(m.InitialDeposit) > 0 { for _, e := range m.InitialDeposit { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } } l = len(m.Proposer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } return n } @@ -1282,14 +1280,14 @@ func (m *MsgVote) Size() (n int) { var l int _ = l if m.ProposalID != 0 { - n += 1 + sovTypes(uint64(m.ProposalID)) + n += 1 + sovGov(uint64(m.ProposalID)) } l = len(m.Voter) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } if m.Option != 0 { - n += 1 + sovTypes(uint64(m.Option)) + n += 1 + sovGov(uint64(m.Option)) } return n } @@ -1301,16 +1299,16 @@ func (m *MsgDeposit) Size() (n int) { var l int _ = l if m.ProposalID != 0 { - n += 1 + sovTypes(uint64(m.ProposalID)) + n += 1 + sovGov(uint64(m.ProposalID)) } l = len(m.Depositor) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } } return n @@ -1324,11 +1322,11 @@ func (m *TextProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } return n } @@ -1340,16 +1338,16 @@ func (m *Deposit) Size() (n int) { var l int _ = l if m.ProposalID != 0 { - n += 1 + sovTypes(uint64(m.ProposalID)) + n += 1 + sovGov(uint64(m.ProposalID)) } l = len(m.Depositor) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } } return n @@ -1362,31 +1360,31 @@ func (m *Proposal) Size() (n int) { var l int _ = l if m.ProposalID != 0 { - n += 1 + sovTypes(uint64(m.ProposalID)) + n += 1 + sovGov(uint64(m.ProposalID)) } if m.Content != nil { l = m.Content.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } if m.Status != 0 { - n += 1 + sovTypes(uint64(m.Status)) + n += 1 + sovGov(uint64(m.Status)) } l = m.FinalTallyResult.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) l = github_com_gogo_protobuf_types.SizeOfStdTime(m.SubmitTime) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) l = github_com_gogo_protobuf_types.SizeOfStdTime(m.DepositEndTime) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) if len(m.TotalDeposit) > 0 { for _, e := range m.TotalDeposit { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.VotingStartTime) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) l = github_com_gogo_protobuf_types.SizeOfStdTime(m.VotingEndTime) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) return n } @@ -1397,13 +1395,13 @@ func (m *TallyResult) Size() (n int) { var l int _ = l l = m.Yes.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) l = m.Abstain.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) l = m.No.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) l = m.NoWithVeto.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) return n } @@ -1414,23 +1412,23 @@ func (m *Vote) Size() (n int) { var l int _ = l if m.ProposalID != 0 { - n += 1 + sovTypes(uint64(m.ProposalID)) + n += 1 + sovGov(uint64(m.ProposalID)) } l = len(m.Voter) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovGov(uint64(l)) } if m.Option != 0 { - n += 1 + sovTypes(uint64(m.Option)) + n += 1 + sovGov(uint64(m.Option)) } return n } -func sovTypes(x uint64) (n int) { +func sovGov(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozGov(x uint64) (n int) { + return sovGov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -1440,7 +1438,7 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1468,7 +1466,7 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1481,11 +1479,11 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -1504,7 +1502,7 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1517,11 +1515,11 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -1538,7 +1536,7 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1551,11 +1549,11 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -1567,15 +1565,15 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipGov(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1597,7 +1595,7 @@ func (m *MsgVote) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1625,7 +1623,7 @@ func (m *MsgVote) Unmarshal(dAtA []byte) error { m.ProposalID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1644,7 +1642,7 @@ func (m *MsgVote) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1657,11 +1655,11 @@ func (m *MsgVote) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -1678,7 +1676,7 @@ func (m *MsgVote) Unmarshal(dAtA []byte) error { m.Option = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1692,15 +1690,15 @@ func (m *MsgVote) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipGov(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1722,7 +1720,7 @@ func (m *MsgDeposit) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1750,7 +1748,7 @@ func (m *MsgDeposit) Unmarshal(dAtA []byte) error { m.ProposalID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1769,7 +1767,7 @@ func (m *MsgDeposit) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1782,11 +1780,11 @@ func (m *MsgDeposit) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -1803,7 +1801,7 @@ func (m *MsgDeposit) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1816,11 +1814,11 @@ func (m *MsgDeposit) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -1832,15 +1830,15 @@ func (m *MsgDeposit) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipGov(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1862,7 +1860,7 @@ func (m *TextProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1890,7 +1888,7 @@ func (m *TextProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1904,11 +1902,11 @@ func (m *TextProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -1922,7 +1920,7 @@ func (m *TextProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1936,11 +1934,11 @@ func (m *TextProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -1949,15 +1947,15 @@ func (m *TextProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipGov(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1979,7 +1977,7 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2007,7 +2005,7 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { m.ProposalID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2026,7 +2024,7 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2039,11 +2037,11 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2060,7 +2058,7 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2073,11 +2071,11 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2089,15 +2087,15 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipGov(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2119,7 +2117,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2147,7 +2145,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { m.ProposalID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2166,7 +2164,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2179,11 +2177,11 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2202,7 +2200,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { m.Status = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2221,7 +2219,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2234,11 +2232,11 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2254,7 +2252,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2267,11 +2265,11 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2287,7 +2285,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2300,11 +2298,11 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2320,7 +2318,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2333,11 +2331,11 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2354,7 +2352,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2367,11 +2365,11 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2387,7 +2385,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2400,11 +2398,11 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2415,15 +2413,15 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipGov(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2445,7 +2443,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2473,7 +2471,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2487,11 +2485,11 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2507,7 +2505,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2521,11 +2519,11 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2541,7 +2539,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2555,11 +2553,11 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2575,7 +2573,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2589,11 +2587,11 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2604,15 +2602,15 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipGov(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2634,7 +2632,7 @@ func (m *Vote) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2662,7 +2660,7 @@ func (m *Vote) Unmarshal(dAtA []byte) error { m.ProposalID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2681,7 +2679,7 @@ func (m *Vote) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2694,11 +2692,11 @@ func (m *Vote) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if postIndex > l { return io.ErrUnexpectedEOF @@ -2715,7 +2713,7 @@ func (m *Vote) Unmarshal(dAtA []byte) error { m.Option = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowGov } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2729,15 +2727,15 @@ func (m *Vote) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipGov(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthGov } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2751,7 +2749,7 @@ func (m *Vote) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipGov(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -2759,7 +2757,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowGov } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2776,7 +2774,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowGov } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2792,7 +2790,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowGov } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2805,14 +2803,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthGov } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupGov } depth-- case 5: @@ -2821,7 +2819,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthGov } if depth == 0 { return iNdEx, nil @@ -2831,7 +2829,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/ibc-transfer/types/types.pb.go b/x/ibc-transfer/types/transfer.pb.go similarity index 77% rename from x/ibc-transfer/types/types.pb.go rename to x/ibc-transfer/types/transfer.pb.go index dbccda8ee858..6df49844dac7 100644 --- a/x/ibc-transfer/types/types.pb.go +++ b/x/ibc-transfer/types/transfer.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/ibc-transfer/types/types.proto +// source: ibc/transfer/transfer.proto package types @@ -50,7 +50,7 @@ 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_36db19b72d57f809, []int{0} + return fileDescriptor_08134a70fd29e656, []int{0} } func (m *MsgTransfer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -143,7 +143,7 @@ func (m *FungibleTokenPacketData) Reset() { *m = FungibleTokenPacketData func (m *FungibleTokenPacketData) String() string { return proto.CompactTextString(m) } func (*FungibleTokenPacketData) ProtoMessage() {} func (*FungibleTokenPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_36db19b72d57f809, []int{1} + return fileDescriptor_08134a70fd29e656, []int{1} } func (m *FungibleTokenPacketData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -205,7 +205,7 @@ func (m *FungibleTokenPacketAcknowledgement) Reset() { *m = FungibleToke func (m *FungibleTokenPacketAcknowledgement) String() string { return proto.CompactTextString(m) } func (*FungibleTokenPacketAcknowledgement) ProtoMessage() {} func (*FungibleTokenPacketAcknowledgement) Descriptor() ([]byte, []int) { - return fileDescriptor_36db19b72d57f809, []int{2} + return fileDescriptor_08134a70fd29e656, []int{2} } func (m *FungibleTokenPacketAcknowledgement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -249,47 +249,46 @@ func (m *FungibleTokenPacketAcknowledgement) GetError() string { } func init() { - proto.RegisterType((*MsgTransfer)(nil), "cosmos_sdk.x.transfer.v1.MsgTransfer") - proto.RegisterType((*FungibleTokenPacketData)(nil), "cosmos_sdk.x.transfer.v1.FungibleTokenPacketData") - proto.RegisterType((*FungibleTokenPacketAcknowledgement)(nil), "cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement") + proto.RegisterType((*MsgTransfer)(nil), "ibc.transfer.MsgTransfer") + proto.RegisterType((*FungibleTokenPacketData)(nil), "ibc.transfer.FungibleTokenPacketData") + proto.RegisterType((*FungibleTokenPacketAcknowledgement)(nil), "ibc.transfer.FungibleTokenPacketAcknowledgement") } -func init() { proto.RegisterFile("x/ibc-transfer/types/types.proto", fileDescriptor_36db19b72d57f809) } +func init() { proto.RegisterFile("ibc/transfer/transfer.proto", fileDescriptor_08134a70fd29e656) } -var fileDescriptor_36db19b72d57f809 = []byte{ - // 498 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0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d, - 0x53, 0xd5, 0x06, 0xeb, 0xd2, 0x57, 0x0d, 0x3d, 0x78, 0x9d, 0xb1, 0x20, 0x1a, 0x8d, 0x61, 0xc0, - 0x63, 0x60, 0xe7, 0x1e, 0x8d, 0x41, 0xbd, 0xf2, 0x94, 0xb7, 0x11, 0xb7, 0x76, 0x1d, 0x71, 0x9f, - 0xac, 0xe3, 0x2e, 0xee, 0xc1, 0xce, 0xec, 0xea, 0xdb, 0xd9, 0x99, 0x03, 0x64, 0xee, 0xf8, 0xdb, - 0x1e, 0x8d, 0x19, 0xff, 0x34, 0x06, 0x3f, 0x80, 0x04, 0x98, 0xc2, 0x04, 0x1d, 0xc8, 0x8c, 0x52, - 0x90, 0xb2, 0xb8, 0x9e, 0x87, 0xee, 0x0a, 0xe2, 0x7b, 0x68, 0x1f, 0x84, 0xe0, 0xab, 0x4f, 0x96, - 0xa0, 0xff, 0xf6, 0x72, 0xa6, 0x6b, 0x57, 0x33, 0x5d, 0xfb, 0x39, 0xd3, 0xb5, 0xcf, 0x73, 0xbd, - 0x76, 0x35, 0xd7, 0x6b, 0xdf, 0xe6, 0x7a, 0xed, 0x7d, 0xf7, 0x9f, 0xae, 0x76, 0x2d, 0xe4, 0xa8, - 0x51, 0xac, 0xcd, 0xb3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x83, 0xf7, 0x16, 0x2f, 0xaf, 0x03, - 0x00, 0x00, +var fileDescriptor_08134a70fd29e656 = []byte{ + // 484 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0x3f, 0x6f, 0xd3, 0x40, + 0x1c, 0x8d, 0x49, 0x9b, 0x96, 0x4b, 0x8a, 0xe0, 0x28, 0xe5, 0x08, 0xc8, 0x8e, 0x3c, 0x79, 0x49, + 0x4c, 0x61, 0x40, 0x62, 0x22, 0x29, 0x42, 0x54, 0x08, 0xa9, 0xb2, 0x22, 0x06, 0x96, 0xca, 0x3e, + 0xff, 0x70, 0x4e, 0x89, 0xef, 0xa2, 0xbb, 0x33, 0xd0, 0x6f, 0xc1, 0x97, 0x60, 0xe1, 0x93, 0x74, + 0xec, 0xc0, 0xc0, 0x64, 0x50, 0xf2, 0x0d, 0x32, 0x32, 0x21, 0xff, 0x89, 0x89, 0xa5, 0x08, 0x31, + 0x74, 0xba, 0x7b, 0xef, 0xfd, 0x7e, 0xcf, 0xf7, 0x7b, 0xbe, 0x43, 0x0f, 0x59, 0x40, 0x5d, 0x2d, + 0x7d, 0xae, 0x3e, 0x80, 0xac, 0x36, 0x83, 0xb9, 0x14, 0x5a, 0xe0, 0x0e, 0x0b, 0xe8, 0x60, 0xcd, + 0x75, 0x0f, 0x23, 0x11, 0x89, 0x5c, 0x70, 0xb3, 0x5d, 0x51, 0xd3, 0xbd, 0x4b, 0x85, 0x8a, 0x85, + 0x72, 0x8b, 0xa5, 0x20, 0xed, 0xef, 0x4d, 0xd4, 0x7e, 0xab, 0xa2, 0x71, 0xd9, 0x8a, 0x9f, 0xa1, + 0xb6, 0x12, 0x89, 0xa4, 0x70, 0x3e, 0x17, 0x52, 0x13, 0xa3, 0x67, 0x38, 0x37, 0x47, 0x47, 0xab, + 0xd4, 0xc2, 0x17, 0x7e, 0x3c, 0x7b, 0x6e, 0x6f, 0x88, 0xb6, 0x87, 0x0a, 0x74, 0x26, 0xa4, 0xc6, + 0x2f, 0xd0, 0xad, 0x52, 0xa3, 0x13, 0x9f, 0x73, 0x98, 0x91, 0x1b, 0x79, 0xef, 0x83, 0x55, 0x6a, + 0xdd, 0xab, 0xf5, 0x96, 0xba, 0xed, 0x1d, 0x14, 0xc4, 0x49, 0x81, 0xf1, 0x3b, 0xd4, 0xf2, 0x63, + 0x91, 0x70, 0x4d, 0x9a, 0xbd, 0xa6, 0xd3, 0x7e, 0xd2, 0x19, 0x94, 0x27, 0x3d, 0x11, 0x8c, 0x8f, + 0x1e, 0x5f, 0xa6, 0x56, 0xe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0x54, 0x7e, 0x21, 0xf7, + 0xbd, 0x35, 0xc4, 0x87, 0x68, 0x17, 0xa4, 0x14, 0xeb, 0x4f, 0x16, 0x60, 0xf4, 0xe6, 0x72, 0x61, + 0x1a, 0x57, 0x0b, 0xd3, 0xf8, 0xb5, 0x30, 0x8d, 0x2f, 0x4b, 0xb3, 0x71, 0xb5, 0x34, 0x1b, 0x3f, + 0x96, 0x66, 0xe3, 0xfd, 0xf1, 0x3f, 0xa7, 0xfa, 0xec, 0xb2, 0x80, 0xf6, 0xff, 0xbe, 0xb1, 0x6c, + 0xc8, 0xa0, 0x95, 0x3f, 0x94, 0xa7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x95, 0x43, 0xad, + 0x80, 0x03, 0x00, 0x00, } func (m *MsgTransfer) Marshal() (dAtA []byte, err error) { @@ -313,26 +312,26 @@ func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.TimeoutTimestamp != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.TimeoutTimestamp)) + i = encodeVarintTransfer(dAtA, i, uint64(m.TimeoutTimestamp)) i-- dAtA[i] = 0x38 } if m.TimeoutHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.TimeoutHeight)) + i = encodeVarintTransfer(dAtA, i, uint64(m.TimeoutHeight)) i-- dAtA[i] = 0x30 } if len(m.Receiver) > 0 { i -= len(m.Receiver) copy(dAtA[i:], m.Receiver) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Receiver))) + i = encodeVarintTransfer(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 = encodeVarintTypes(dAtA, i, uint64(len(m.Sender))) + i = encodeVarintTransfer(dAtA, i, uint64(len(m.Sender))) i-- dAtA[i] = 0x22 } @@ -344,7 +343,7 @@ func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTransfer(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -353,14 +352,14 @@ func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.SourceChannel) > 0 { i -= len(m.SourceChannel) copy(dAtA[i:], m.SourceChannel) - i = encodeVarintTypes(dAtA, i, uint64(len(m.SourceChannel))) + i = encodeVarintTransfer(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 = encodeVarintTypes(dAtA, i, uint64(len(m.SourcePort))) + i = encodeVarintTransfer(dAtA, i, uint64(len(m.SourcePort))) i-- dAtA[i] = 0xa } @@ -390,14 +389,14 @@ func (m *FungibleTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) if len(m.Receiver) > 0 { i -= len(m.Receiver) copy(dAtA[i:], m.Receiver) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Receiver))) + i = encodeVarintTransfer(dAtA, i, uint64(len(m.Receiver))) i-- dAtA[i] = 0x1a } if len(m.Sender) > 0 { i -= len(m.Sender) copy(dAtA[i:], m.Sender) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Sender))) + i = encodeVarintTransfer(dAtA, i, uint64(len(m.Sender))) i-- dAtA[i] = 0x12 } @@ -409,7 +408,7 @@ func (m *FungibleTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintTransfer(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -441,7 +440,7 @@ func (m *FungibleTokenPacketAcknowledgement) MarshalToSizedBuffer(dAtA []byte) ( if len(m.Error) > 0 { i -= len(m.Error) copy(dAtA[i:], m.Error) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Error))) + i = encodeVarintTransfer(dAtA, i, uint64(len(m.Error))) i-- dAtA[i] = 0x12 } @@ -458,8 +457,8 @@ func (m *FungibleTokenPacketAcknowledgement) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintTransfer(dAtA []byte, offset int, v uint64) int { + offset -= sovTransfer(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -477,31 +476,31 @@ func (m *MsgTransfer) Size() (n int) { _ = l l = len(m.SourcePort) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTransfer(uint64(l)) } l = len(m.SourceChannel) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTransfer(uint64(l)) } if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTransfer(uint64(l)) } } l = len(m.Sender) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTransfer(uint64(l)) } l = len(m.Receiver) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTransfer(uint64(l)) } if m.TimeoutHeight != 0 { - n += 1 + sovTypes(uint64(m.TimeoutHeight)) + n += 1 + sovTransfer(uint64(m.TimeoutHeight)) } if m.TimeoutTimestamp != 0 { - n += 1 + sovTypes(uint64(m.TimeoutTimestamp)) + n += 1 + sovTransfer(uint64(m.TimeoutTimestamp)) } return n } @@ -515,16 +514,16 @@ func (m *FungibleTokenPacketData) Size() (n int) { if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTransfer(uint64(l)) } } l = len(m.Sender) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTransfer(uint64(l)) } l = len(m.Receiver) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTransfer(uint64(l)) } return n } @@ -540,16 +539,16 @@ func (m *FungibleTokenPacketAcknowledgement) Size() (n int) { } l = len(m.Error) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovTransfer(uint64(l)) } return n } -func sovTypes(x uint64) (n int) { +func sovTransfer(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozTransfer(x uint64) (n int) { + return sovTransfer(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgTransfer) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -559,7 +558,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -587,7 +586,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -601,11 +600,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if postIndex > l { return io.ErrUnexpectedEOF @@ -619,7 +618,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -633,11 +632,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if postIndex > l { return io.ErrUnexpectedEOF @@ -651,7 +650,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -664,11 +663,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if postIndex > l { return io.ErrUnexpectedEOF @@ -685,7 +684,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -698,11 +697,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if postIndex > l { return io.ErrUnexpectedEOF @@ -719,7 +718,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -733,11 +732,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if postIndex > l { return io.ErrUnexpectedEOF @@ -751,7 +750,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { m.TimeoutHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -770,7 +769,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { m.TimeoutTimestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -784,15 +783,15 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTransfer(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -814,7 +813,7 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -842,7 +841,7 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -855,11 +854,11 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if postIndex > l { return io.ErrUnexpectedEOF @@ -876,7 +875,7 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -890,11 +889,11 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if postIndex > l { return io.ErrUnexpectedEOF @@ -908,7 +907,7 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -922,11 +921,11 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if postIndex > l { return io.ErrUnexpectedEOF @@ -935,15 +934,15 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTransfer(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -965,7 +964,7 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -993,7 +992,7 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1013,7 +1012,7 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowTransfer } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1027,11 +1026,11 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if postIndex > l { return io.ErrUnexpectedEOF @@ -1040,15 +1039,15 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipTransfer(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthTransfer } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1062,7 +1061,7 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipTransfer(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -1070,7 +1069,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowTransfer } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1087,7 +1086,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowTransfer } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1103,7 +1102,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowTransfer } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1116,14 +1115,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthTransfer } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupTransfer } depth-- case 5: @@ -1132,7 +1131,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthTransfer } if depth == 0 { return iNdEx, nil @@ -1142,7 +1141,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthTransfer = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTransfer = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTransfer = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/ibc/03-connection/types/types.pb.go b/x/ibc/03-connection/types/connection.pb.go similarity index 78% rename from x/ibc/03-connection/types/types.pb.go rename to x/ibc/03-connection/types/connection.pb.go index 8e9982d560d8..d7f0e8d4ae5e 100644 --- a/x/ibc/03-connection/types/types.pb.go +++ b/x/ibc/03-connection/types/connection.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/ibc/03-connection/types/types.proto +// source: ibc/connection/connection.proto package types @@ -59,7 +59,7 @@ func (x State) String() string { } func (State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_30ee50c03d1fbe43, []int{0} + return fileDescriptor_3bf62bacf5a27ee9, []int{0} } // MsgConnectionOpenInit defines the msg sent by an account on Chain A to @@ -75,7 +75,7 @@ func (m *MsgConnectionOpenInit) Reset() { *m = MsgConnectionOpenInit{} } func (m *MsgConnectionOpenInit) String() string { return proto.CompactTextString(m) } func (*MsgConnectionOpenInit) ProtoMessage() {} func (*MsgConnectionOpenInit) Descriptor() ([]byte, []int) { - return fileDescriptor_30ee50c03d1fbe43, []int{0} + return fileDescriptor_3bf62bacf5a27ee9, []int{0} } func (m *MsgConnectionOpenInit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -152,7 +152,7 @@ func (m *MsgConnectionOpenTry) Reset() { *m = MsgConnectionOpenTry{} } func (m *MsgConnectionOpenTry) String() string { return proto.CompactTextString(m) } func (*MsgConnectionOpenTry) ProtoMessage() {} func (*MsgConnectionOpenTry) Descriptor() ([]byte, []int) { - return fileDescriptor_30ee50c03d1fbe43, []int{1} + return fileDescriptor_3bf62bacf5a27ee9, []int{1} } func (m *MsgConnectionOpenTry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -262,7 +262,7 @@ func (m *MsgConnectionOpenAck) Reset() { *m = MsgConnectionOpenAck{} } func (m *MsgConnectionOpenAck) String() string { return proto.CompactTextString(m) } func (*MsgConnectionOpenAck) ProtoMessage() {} func (*MsgConnectionOpenAck) Descriptor() ([]byte, []int) { - return fileDescriptor_30ee50c03d1fbe43, []int{2} + return fileDescriptor_3bf62bacf5a27ee9, []int{2} } func (m *MsgConnectionOpenAck) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -354,7 +354,7 @@ func (m *MsgConnectionOpenConfirm) Reset() { *m = MsgConnectionOpenConfi func (m *MsgConnectionOpenConfirm) String() string { return proto.CompactTextString(m) } func (*MsgConnectionOpenConfirm) ProtoMessage() {} func (*MsgConnectionOpenConfirm) Descriptor() ([]byte, []int) { - return fileDescriptor_30ee50c03d1fbe43, []int{3} + return fileDescriptor_3bf62bacf5a27ee9, []int{3} } func (m *MsgConnectionOpenConfirm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -424,7 +424,7 @@ type ConnectionEnd struct { // channels or packets utilising this connection Versions []string `protobuf:"bytes,3,rep,name=versions,proto3" json:"versions,omitempty"` // current state of the connection end. - State State `protobuf:"varint,4,opt,name=state,proto3,enum=cosmos_sdk.x.ibc.connection.v1.State" json:"state,omitempty"` + State State `protobuf:"varint,4,opt,name=state,proto3,enum=ibc.connection.State" json:"state,omitempty"` // counterparty chain associated with this connection. Counterparty Counterparty `protobuf:"bytes,5,opt,name=counterparty,proto3" json:"counterparty"` } @@ -433,7 +433,7 @@ func (m *ConnectionEnd) Reset() { *m = ConnectionEnd{} } func (m *ConnectionEnd) String() string { return proto.CompactTextString(m) } func (*ConnectionEnd) ProtoMessage() {} func (*ConnectionEnd) Descriptor() ([]byte, []int) { - return fileDescriptor_30ee50c03d1fbe43, []int{4} + return fileDescriptor_3bf62bacf5a27ee9, []int{4} } func (m *ConnectionEnd) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -476,7 +476,7 @@ func (m *Counterparty) Reset() { *m = Counterparty{} } func (m *Counterparty) String() string { return proto.CompactTextString(m) } func (*Counterparty) ProtoMessage() {} func (*Counterparty) Descriptor() ([]byte, []int) { - return fileDescriptor_30ee50c03d1fbe43, []int{5} + return fileDescriptor_3bf62bacf5a27ee9, []int{5} } func (m *Counterparty) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -514,7 +514,7 @@ func (m *ClientPaths) Reset() { *m = ClientPaths{} } func (m *ClientPaths) String() string { return proto.CompactTextString(m) } func (*ClientPaths) ProtoMessage() {} func (*ClientPaths) Descriptor() ([]byte, []int) { - return fileDescriptor_30ee50c03d1fbe43, []int{6} + return fileDescriptor_3bf62bacf5a27ee9, []int{6} } func (m *ClientPaths) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -551,78 +551,74 @@ func (m *ClientPaths) GetPaths() []string { } func init() { - proto.RegisterEnum("cosmos_sdk.x.ibc.connection.v1.State", State_name, State_value) - proto.RegisterType((*MsgConnectionOpenInit)(nil), "cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit") - proto.RegisterType((*MsgConnectionOpenTry)(nil), "cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry") - proto.RegisterType((*MsgConnectionOpenAck)(nil), "cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck") - proto.RegisterType((*MsgConnectionOpenConfirm)(nil), "cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm") - proto.RegisterType((*ConnectionEnd)(nil), "cosmos_sdk.x.ibc.connection.v1.ConnectionEnd") - proto.RegisterType((*Counterparty)(nil), "cosmos_sdk.x.ibc.connection.v1.Counterparty") - proto.RegisterType((*ClientPaths)(nil), "cosmos_sdk.x.ibc.connection.v1.ClientPaths") -} - -func init() { - proto.RegisterFile("x/ibc/03-connection/types/types.proto", fileDescriptor_30ee50c03d1fbe43) -} - -var fileDescriptor_30ee50c03d1fbe43 = []byte{ - // 889 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x56, 0xbf, 0x6f, 0xdb, 0x46, - 0x14, 0x16, 0x29, 0x4a, 0x96, 0xce, 0x72, 0xa2, 0x30, 0x72, 0x43, 0xb0, 0x05, 0xc9, 0x32, 0x48, - 0x21, 0x14, 0x35, 0x55, 0x3b, 0x45, 0x06, 0x17, 0x1d, 0x24, 0x59, 0x41, 0x59, 0xd4, 0x8a, 0x40, - 0xcb, 0x01, 0x9a, 0x85, 0x90, 0x48, 0x5a, 0x3a, 0xc8, 0x22, 0x05, 0xde, 0x39, 0xb0, 0xf6, 0x0e, - 0x81, 0xa7, 0xae, 0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x0b, 0x95, 0x45, 0x46, 0xcc, 0x5d, - 0x5c, 0x2a, 0x5c, 0x78, 0xe6, 0x25, 0xb0, 0x45, 0x2d, 0x6d, 0xe3, 0xa7, 0x17, 0xad, 0x46, 0xb3, - 0xc8, 0x8a, 0x9b, 0x17, 0x97, 0xca, 0x46, 0x24, 0x26, 0x91, 0xc4, 0x98, 0xa6, 0x91, 0xe1, 0x59, - 0xe4, 0xde, 0xbc, 0x95, 0x52, 0xb5, 0xd6, 0xd5, 0x44, 0x62, 0xde, 0x4d, 0x24, 0xe6, 0xaf, 0x89, - 0xc4, 0xfc, 0x72, 0x2d, 0xa5, 0xde, 0x5d, 0x4b, 0xa9, 0x3f, 0xaf, 0xa5, 0xd4, 0xab, 0x67, 0xb7, - 0x3e, 0x2f, 0xff, 0xf9, 0xb1, 0xd9, 0xcd, 0x92, 0x0f, 0xbf, 0xa7, 0xff, 0x06, 0x00, 0x00, 0xff, - 0xff, 0x9f, 0x6b, 0x1d, 0x24, 0x90, 0x0a, 0x00, 0x00, + proto.RegisterEnum("ibc.connection.State", State_name, State_value) + proto.RegisterType((*MsgConnectionOpenInit)(nil), "ibc.connection.MsgConnectionOpenInit") + proto.RegisterType((*MsgConnectionOpenTry)(nil), "ibc.connection.MsgConnectionOpenTry") + proto.RegisterType((*MsgConnectionOpenAck)(nil), "ibc.connection.MsgConnectionOpenAck") + proto.RegisterType((*MsgConnectionOpenConfirm)(nil), "ibc.connection.MsgConnectionOpenConfirm") + proto.RegisterType((*ConnectionEnd)(nil), "ibc.connection.ConnectionEnd") + proto.RegisterType((*Counterparty)(nil), "ibc.connection.Counterparty") + proto.RegisterType((*ClientPaths)(nil), "ibc.connection.ClientPaths") +} + +func init() { proto.RegisterFile("ibc/connection/connection.proto", fileDescriptor_3bf62bacf5a27ee9) } + +var fileDescriptor_3bf62bacf5a27ee9 = []byte{ + // 864 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,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 0x3b, 0x6d, 0x9f, 0x74, 0x5a, 0x4d, 0xe5, 0x50, 0x69, 0x1d, 0x14, 0x62, 0xfc, 0xcb, + 0xf9, 0x8d, 0x94, 0x5f, 0x03, 0xb0, 0x1c, 0x00, 0x24, 0xce, 0x33, 0x16, 0x28, 0x3e, 0x3d, 0xbf, + 0x91, 0x18, 0x4f, 0x66, 0x05, 0x90, 0x27, 0x9e, 0xae, 0xfa, 0xfd, 0x71, 0xa7, 0xd5, 0x2e, 0xd0, + 0x7c, 0x76, 0x7e, 0x23, 0xa5, 0x7c, 0x35, 0x8c, 0xc4, 0xce, 0x38, 0x89, 0xf4, 0x64, 0x9e, 0xb9, + 0xbe, 0x15, 0x62, 0x8d, 0xce, 0xdd, 0x42, 0xa0, 0xee, 0x17, 0x02, 0xf5, 0xfb, 0x42, 0xa0, 0x7e, + 0x7c, 0x10, 0x62, 0xf7, 0x0f, 0x42, 0xec, 0xb7, 0x07, 0x21, 0x76, 0xf6, 0xf1, 0x6f, 0xe7, 0xff, + 0xaa, 0xea, 0xbd, 0xd4, 0xbe, 0xfc, 0xb0, 0x1f, 0x79, 0xf3, 0xe1, 0xff, 0xc4, 0x20, 0x89, 0x1f, + 0x6a, 0x1f, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xc4, 0xbd, 0x23, 0x7f, 0x12, 0x0a, 0x00, 0x00, } func (m *MsgConnectionOpenInit) Marshal() (dAtA []byte, err error) { @@ -648,7 +644,7 @@ func (m *MsgConnectionOpenInit) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x22 } @@ -658,21 +654,21 @@ func (m *MsgConnectionOpenInit) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintConnection(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ConnectionID) > 0 { i -= len(m.ConnectionID) copy(dAtA[i:], m.ConnectionID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ConnectionID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ConnectionID))) i-- dAtA[i] = 0x12 } if len(m.ClientID) > 0 { i -= len(m.ClientID) copy(dAtA[i:], m.ClientID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ClientID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ClientID))) i-- dAtA[i] = 0xa } @@ -702,31 +698,31 @@ func (m *MsgConnectionOpenTry) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x4a } if m.ConsensusHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ConsensusHeight)) + i = encodeVarintConnection(dAtA, i, uint64(m.ConsensusHeight)) i-- dAtA[i] = 0x40 } if len(m.ProofConsensus) > 0 { i -= len(m.ProofConsensus) copy(dAtA[i:], m.ProofConsensus) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ProofConsensus))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ProofConsensus))) i-- dAtA[i] = 0x3a } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintConnection(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x30 } if len(m.ProofInit) > 0 { i -= len(m.ProofInit) copy(dAtA[i:], m.ProofInit) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ProofInit))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ProofInit))) i-- dAtA[i] = 0x2a } @@ -734,7 +730,7 @@ func (m *MsgConnectionOpenTry) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.CounterpartyVersions) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.CounterpartyVersions[iNdEx]) copy(dAtA[i:], m.CounterpartyVersions[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.CounterpartyVersions[iNdEx]))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.CounterpartyVersions[iNdEx]))) i-- dAtA[i] = 0x22 } @@ -745,21 +741,21 @@ func (m *MsgConnectionOpenTry) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintConnection(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ConnectionID) > 0 { i -= len(m.ConnectionID) copy(dAtA[i:], m.ConnectionID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ConnectionID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ConnectionID))) i-- dAtA[i] = 0x12 } if len(m.ClientID) > 0 { i -= len(m.ClientID) copy(dAtA[i:], m.ClientID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ClientID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ClientID))) i-- dAtA[i] = 0xa } @@ -789,45 +785,45 @@ func (m *MsgConnectionOpenAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x3a } if m.ConsensusHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ConsensusHeight)) + i = encodeVarintConnection(dAtA, i, uint64(m.ConsensusHeight)) i-- dAtA[i] = 0x30 } if len(m.ProofConsensus) > 0 { i -= len(m.ProofConsensus) copy(dAtA[i:], m.ProofConsensus) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ProofConsensus))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ProofConsensus))) i-- dAtA[i] = 0x2a } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintConnection(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x20 } if len(m.ProofTry) > 0 { i -= len(m.ProofTry) copy(dAtA[i:], m.ProofTry) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ProofTry))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ProofTry))) i-- dAtA[i] = 0x1a } if len(m.Version) > 0 { i -= len(m.Version) copy(dAtA[i:], m.Version) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Version))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.Version))) i-- dAtA[i] = 0x12 } if len(m.ConnectionID) > 0 { i -= len(m.ConnectionID) copy(dAtA[i:], m.ConnectionID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ConnectionID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ConnectionID))) i-- dAtA[i] = 0xa } @@ -857,26 +853,26 @@ func (m *MsgConnectionOpenConfirm) MarshalToSizedBuffer(dAtA []byte) (int, error if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x22 } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintConnection(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x18 } if len(m.ProofAck) > 0 { i -= len(m.ProofAck) copy(dAtA[i:], m.ProofAck) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ProofAck))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ProofAck))) i-- dAtA[i] = 0x12 } if len(m.ConnectionID) > 0 { i -= len(m.ConnectionID) copy(dAtA[i:], m.ConnectionID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ConnectionID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ConnectionID))) i-- dAtA[i] = 0xa } @@ -909,12 +905,12 @@ func (m *ConnectionEnd) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintConnection(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a if m.State != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.State)) + i = encodeVarintConnection(dAtA, i, uint64(m.State)) i-- dAtA[i] = 0x20 } @@ -922,7 +918,7 @@ func (m *ConnectionEnd) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.Versions) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Versions[iNdEx]) copy(dAtA[i:], m.Versions[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Versions[iNdEx]))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.Versions[iNdEx]))) i-- dAtA[i] = 0x1a } @@ -930,14 +926,14 @@ func (m *ConnectionEnd) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ClientID) > 0 { i -= len(m.ClientID) copy(dAtA[i:], m.ClientID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ClientID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ClientID))) i-- dAtA[i] = 0x12 } if len(m.ID) > 0 { i -= len(m.ID) copy(dAtA[i:], m.ID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ID))) i-- dAtA[i] = 0xa } @@ -970,21 +966,21 @@ func (m *Counterparty) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintConnection(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ConnectionID) > 0 { i -= len(m.ConnectionID) copy(dAtA[i:], m.ConnectionID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ConnectionID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ConnectionID))) i-- dAtA[i] = 0x12 } if len(m.ClientID) > 0 { i -= len(m.ClientID) copy(dAtA[i:], m.ClientID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ClientID))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.ClientID))) i-- dAtA[i] = 0xa } @@ -1015,7 +1011,7 @@ func (m *ClientPaths) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.Paths) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Paths[iNdEx]) copy(dAtA[i:], m.Paths[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Paths[iNdEx]))) + i = encodeVarintConnection(dAtA, i, uint64(len(m.Paths[iNdEx]))) i-- dAtA[i] = 0xa } @@ -1023,8 +1019,8 @@ func (m *ClientPaths) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintConnection(dAtA []byte, offset int, v uint64) int { + offset -= sovConnection(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -1042,17 +1038,17 @@ func (m *MsgConnectionOpenInit) Size() (n int) { _ = l l = len(m.ClientID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = len(m.ConnectionID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = m.Counterparty.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } return n } @@ -1065,37 +1061,37 @@ func (m *MsgConnectionOpenTry) Size() (n int) { _ = l l = len(m.ClientID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = len(m.ConnectionID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = m.Counterparty.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) if len(m.CounterpartyVersions) > 0 { for _, s := range m.CounterpartyVersions { l = len(s) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } } l = len(m.ProofInit) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovConnection(uint64(m.ProofHeight)) } l = len(m.ProofConsensus) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } if m.ConsensusHeight != 0 { - n += 1 + sovTypes(uint64(m.ConsensusHeight)) + n += 1 + sovConnection(uint64(m.ConsensusHeight)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } return n } @@ -1108,29 +1104,29 @@ func (m *MsgConnectionOpenAck) Size() (n int) { _ = l l = len(m.ConnectionID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = len(m.Version) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = len(m.ProofTry) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovConnection(uint64(m.ProofHeight)) } l = len(m.ProofConsensus) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } if m.ConsensusHeight != 0 { - n += 1 + sovTypes(uint64(m.ConsensusHeight)) + n += 1 + sovConnection(uint64(m.ConsensusHeight)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } return n } @@ -1143,18 +1139,18 @@ func (m *MsgConnectionOpenConfirm) Size() (n int) { _ = l l = len(m.ConnectionID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = len(m.ProofAck) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovConnection(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } return n } @@ -1167,23 +1163,23 @@ func (m *ConnectionEnd) Size() (n int) { _ = l l = len(m.ID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = len(m.ClientID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } if len(m.Versions) > 0 { for _, s := range m.Versions { l = len(s) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } } if m.State != 0 { - n += 1 + sovTypes(uint64(m.State)) + n += 1 + sovConnection(uint64(m.State)) } l = m.Counterparty.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) return n } @@ -1195,14 +1191,14 @@ func (m *Counterparty) Size() (n int) { _ = l l = len(m.ClientID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = len(m.ConnectionID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } l = m.Prefix.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) return n } @@ -1215,17 +1211,17 @@ func (m *ClientPaths) Size() (n int) { if len(m.Paths) > 0 { for _, s := range m.Paths { l = len(s) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovConnection(uint64(l)) } } return n } -func sovTypes(x uint64) (n int) { +func sovConnection(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozConnection(x uint64) (n int) { + return sovConnection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -1235,7 +1231,7 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1263,7 +1259,7 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1277,11 +1273,11 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1295,7 +1291,7 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1309,11 +1305,11 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1327,7 +1323,7 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1340,11 +1336,11 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1360,7 +1356,7 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1373,11 +1369,11 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1389,15 +1385,15 @@ func (m *MsgConnectionOpenInit) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipConnection(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1419,7 +1415,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1447,7 +1443,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1461,11 +1457,11 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1479,7 +1475,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1493,11 +1489,11 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1511,7 +1507,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1524,11 +1520,11 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1544,7 +1540,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1558,11 +1554,11 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1576,7 +1572,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1589,11 +1585,11 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1610,7 +1606,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1629,7 +1625,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1642,11 +1638,11 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1663,7 +1659,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { m.ConsensusHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1682,7 +1678,7 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1695,11 +1691,11 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1711,15 +1707,15 @@ func (m *MsgConnectionOpenTry) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipConnection(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1741,7 +1737,7 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1769,7 +1765,7 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1783,11 +1779,11 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1801,7 +1797,7 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1815,11 +1811,11 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1833,7 +1829,7 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1846,11 +1842,11 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1867,7 +1863,7 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1886,7 +1882,7 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1899,11 +1895,11 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1920,7 +1916,7 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { m.ConsensusHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1939,7 +1935,7 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1952,11 +1948,11 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -1968,15 +1964,15 @@ func (m *MsgConnectionOpenAck) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipConnection(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1998,7 +1994,7 @@ func (m *MsgConnectionOpenConfirm) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2026,7 +2022,7 @@ func (m *MsgConnectionOpenConfirm) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2040,11 +2036,11 @@ func (m *MsgConnectionOpenConfirm) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2058,7 +2054,7 @@ func (m *MsgConnectionOpenConfirm) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2071,11 +2067,11 @@ func (m *MsgConnectionOpenConfirm) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2092,7 +2088,7 @@ func (m *MsgConnectionOpenConfirm) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2111,7 +2107,7 @@ func (m *MsgConnectionOpenConfirm) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2124,11 +2120,11 @@ func (m *MsgConnectionOpenConfirm) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2140,15 +2136,15 @@ func (m *MsgConnectionOpenConfirm) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipConnection(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2170,7 +2166,7 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2198,7 +2194,7 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2212,11 +2208,11 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2230,7 +2226,7 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2244,11 +2240,11 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2262,7 +2258,7 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2276,11 +2272,11 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2294,7 +2290,7 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { m.State = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2313,7 +2309,7 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2326,11 +2322,11 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2341,15 +2337,15 @@ func (m *ConnectionEnd) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipConnection(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2371,7 +2367,7 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2399,7 +2395,7 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2413,11 +2409,11 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2431,7 +2427,7 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2445,11 +2441,11 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2463,7 +2459,7 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2476,11 +2472,11 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2491,15 +2487,15 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipConnection(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2521,7 +2517,7 @@ func (m *ClientPaths) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2549,7 +2545,7 @@ func (m *ClientPaths) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowConnection } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2563,11 +2559,11 @@ func (m *ClientPaths) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if postIndex > l { return io.ErrUnexpectedEOF @@ -2576,15 +2572,15 @@ func (m *ClientPaths) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipConnection(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthConnection } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2598,7 +2594,7 @@ func (m *ClientPaths) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipConnection(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -2606,7 +2602,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowConnection } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2623,7 +2619,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowConnection } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2639,7 +2635,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowConnection } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2652,14 +2648,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthConnection } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupConnection } depth-- case 5: @@ -2668,7 +2664,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthConnection } if depth == 0 { return iNdEx, nil @@ -2678,7 +2674,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthConnection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowConnection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupConnection = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/ibc/04-channel/alias.go b/x/ibc/04-channel/alias.go index 3afc7365a527..91175a394a19 100644 --- a/x/ibc/04-channel/alias.go +++ b/x/ibc/04-channel/alias.go @@ -111,9 +111,6 @@ var ( EventTypeChannelCloseInit = types.EventTypeChannelCloseInit EventTypeChannelCloseConfirm = types.EventTypeChannelCloseConfirm AttributeValueCategory = types.AttributeValueCategory - ErrInvalidLengthTypes = types.ErrInvalidLengthTypes - ErrIntOverflowTypes = types.ErrIntOverflowTypes - ErrUnexpectedEndOfGroupTypes = types.ErrUnexpectedEndOfGroupTypes ) // nolint: golint diff --git a/x/ibc/04-channel/types/types.pb.go b/x/ibc/04-channel/types/channel.pb.go similarity index 80% rename from x/ibc/04-channel/types/types.pb.go rename to x/ibc/04-channel/types/channel.pb.go index 5bee9a4667e6..b44e804616af 100644 --- a/x/ibc/04-channel/types/types.pb.go +++ b/x/ibc/04-channel/types/channel.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/ibc/04-channel/types/types.proto +// source: ibc/channel/channel.proto package types @@ -63,7 +63,7 @@ func (x State) String() string { } func (State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{0} + return fileDescriptor_9277922ccfb7f043, []int{0} } // Order defines if a channel is ORDERED or UNORDERED @@ -95,7 +95,7 @@ func (x Order) String() string { } func (Order) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{1} + return fileDescriptor_9277922ccfb7f043, []int{1} } // MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It is @@ -111,7 +111,7 @@ func (m *MsgChannelOpenInit) Reset() { *m = MsgChannelOpenInit{} } func (m *MsgChannelOpenInit) String() string { return proto.CompactTextString(m) } func (*MsgChannelOpenInit) ProtoMessage() {} func (*MsgChannelOpenInit) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{0} + return fileDescriptor_9277922ccfb7f043, []int{0} } func (m *MsgChannelOpenInit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -184,7 +184,7 @@ func (m *MsgChannelOpenTry) Reset() { *m = MsgChannelOpenTry{} } func (m *MsgChannelOpenTry) String() string { return proto.CompactTextString(m) } func (*MsgChannelOpenTry) ProtoMessage() {} func (*MsgChannelOpenTry) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{1} + return fileDescriptor_9277922ccfb7f043, []int{1} } func (m *MsgChannelOpenTry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -277,7 +277,7 @@ func (m *MsgChannelOpenAck) Reset() { *m = MsgChannelOpenAck{} } func (m *MsgChannelOpenAck) String() string { return proto.CompactTextString(m) } func (*MsgChannelOpenAck) ProtoMessage() {} func (*MsgChannelOpenAck) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{2} + return fileDescriptor_9277922ccfb7f043, []int{2} } func (m *MsgChannelOpenAck) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -362,7 +362,7 @@ func (m *MsgChannelOpenConfirm) Reset() { *m = MsgChannelOpenConfirm{} } func (m *MsgChannelOpenConfirm) String() string { return proto.CompactTextString(m) } func (*MsgChannelOpenConfirm) ProtoMessage() {} func (*MsgChannelOpenConfirm) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{3} + return fileDescriptor_9277922ccfb7f043, []int{3} } func (m *MsgChannelOpenConfirm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -438,7 +438,7 @@ func (m *MsgChannelCloseInit) Reset() { *m = MsgChannelCloseInit{} } func (m *MsgChannelCloseInit) String() string { return proto.CompactTextString(m) } func (*MsgChannelCloseInit) ProtoMessage() {} func (*MsgChannelCloseInit) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{4} + return fileDescriptor_9277922ccfb7f043, []int{4} } func (m *MsgChannelCloseInit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -502,7 +502,7 @@ func (m *MsgChannelCloseConfirm) Reset() { *m = MsgChannelCloseConfirm{} func (m *MsgChannelCloseConfirm) String() string { return proto.CompactTextString(m) } func (*MsgChannelCloseConfirm) ProtoMessage() {} func (*MsgChannelCloseConfirm) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{5} + return fileDescriptor_9277922ccfb7f043, []int{5} } func (m *MsgChannelCloseConfirm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -578,7 +578,7 @@ func (m *MsgPacket) Reset() { *m = MsgPacket{} } func (m *MsgPacket) String() string { return proto.CompactTextString(m) } func (*MsgPacket) ProtoMessage() {} func (*MsgPacket) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{6} + return fileDescriptor_9277922ccfb7f043, []int{6} } func (m *MsgPacket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -648,7 +648,7 @@ func (m *MsgTimeout) Reset() { *m = MsgTimeout{} } func (m *MsgTimeout) String() string { return proto.CompactTextString(m) } func (*MsgTimeout) ProtoMessage() {} func (*MsgTimeout) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{7} + return fileDescriptor_9277922ccfb7f043, []int{7} } func (m *MsgTimeout) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -725,7 +725,7 @@ func (m *MsgAcknowledgement) Reset() { *m = MsgAcknowledgement{} } func (m *MsgAcknowledgement) String() string { return proto.CompactTextString(m) } func (*MsgAcknowledgement) ProtoMessage() {} func (*MsgAcknowledgement) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{8} + return fileDescriptor_9277922ccfb7f043, []int{8} } func (m *MsgAcknowledgement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -794,9 +794,9 @@ func (m *MsgAcknowledgement) GetSigner() github_com_cosmos_cosmos_sdk_types.AccA // packets and one end capable of receiving packets. type Channel struct { // current state of the channel end - State State `protobuf:"varint,1,opt,name=state,proto3,enum=cosmos_sdk.x.ibc.channel.v1.State" json:"state,omitempty"` + State State `protobuf:"varint,1,opt,name=state,proto3,enum=ibc.channel.State" json:"state,omitempty"` // whether the channel is ordered or unordered - Ordering Order `protobuf:"varint,2,opt,name=ordering,proto3,enum=cosmos_sdk.x.ibc.channel.v1.Order" json:"ordering,omitempty"` + Ordering Order `protobuf:"varint,2,opt,name=ordering,proto3,enum=ibc.channel.Order" json:"ordering,omitempty"` // counterparty channel end Counterparty Counterparty `protobuf:"bytes,3,opt,name=counterparty,proto3" json:"counterparty"` // list of connection identifiers, in order, along which packets sent on this @@ -810,7 +810,7 @@ func (m *Channel) Reset() { *m = Channel{} } func (m *Channel) String() string { return proto.CompactTextString(m) } func (*Channel) ProtoMessage() {} func (*Channel) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{9} + return fileDescriptor_9277922ccfb7f043, []int{9} } func (m *Channel) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -851,7 +851,7 @@ func (m *Counterparty) Reset() { *m = Counterparty{} } func (m *Counterparty) String() string { return proto.CompactTextString(m) } func (*Counterparty) ProtoMessage() {} func (*Counterparty) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{10} + return fileDescriptor_9277922ccfb7f043, []int{10} } func (m *Counterparty) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -906,7 +906,7 @@ func (m *Packet) Reset() { *m = Packet{} } func (m *Packet) String() string { return proto.CompactTextString(m) } func (*Packet) ProtoMessage() {} func (*Packet) Descriptor() ([]byte, []int) { - return fileDescriptor_a69005b45bd92d03, []int{11} + return fileDescriptor_9277922ccfb7f043, []int{11} } func (m *Packet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -936,105 +936,101 @@ func (m *Packet) XXX_DiscardUnknown() { var xxx_messageInfo_Packet proto.InternalMessageInfo func init() { - proto.RegisterEnum("cosmos_sdk.x.ibc.channel.v1.State", State_name, State_value) - proto.RegisterEnum("cosmos_sdk.x.ibc.channel.v1.Order", Order_name, Order_value) - proto.RegisterType((*MsgChannelOpenInit)(nil), "cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit") - proto.RegisterType((*MsgChannelOpenTry)(nil), "cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry") - proto.RegisterType((*MsgChannelOpenAck)(nil), "cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck") - proto.RegisterType((*MsgChannelOpenConfirm)(nil), "cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm") - proto.RegisterType((*MsgChannelCloseInit)(nil), "cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit") - proto.RegisterType((*MsgChannelCloseConfirm)(nil), "cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm") - proto.RegisterType((*MsgPacket)(nil), "cosmos_sdk.x.ibc.channel.v1.MsgPacket") - proto.RegisterType((*MsgTimeout)(nil), "cosmos_sdk.x.ibc.channel.v1.MsgTimeout") - proto.RegisterType((*MsgAcknowledgement)(nil), "cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement") - proto.RegisterType((*Channel)(nil), "cosmos_sdk.x.ibc.channel.v1.Channel") - proto.RegisterType((*Counterparty)(nil), "cosmos_sdk.x.ibc.channel.v1.Counterparty") - proto.RegisterType((*Packet)(nil), "cosmos_sdk.x.ibc.channel.v1.Packet") -} - -func init() { - proto.RegisterFile("x/ibc/04-channel/types/types.proto", fileDescriptor_a69005b45bd92d03) -} - -var fileDescriptor_a69005b45bd92d03 = []byte{ - // 1219 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x4b, 0x8f, 0xdb, 0xd4, - 0x17, 0x8f, 0xf3, 0x9c, 0x9c, 0x79, 0x65, 0xee, 0xb4, 0xd3, 0x34, 0xed, 0x3f, 0x8e, 0xfc, 0xaf, - 0x50, 0xa8, 0xd4, 0x84, 0x3e, 0x78, 0xa8, 0x0b, 0x44, 0x5e, 0x55, 0x23, 0x3a, 0xc9, 0xe8, 0x26, - 0x45, 0xa2, 0x1b, 0xcb, 0x63, 0xdf, 0x26, 0x56, 0x26, 0x76, 0xb0, 0x3d, 0xd3, 0xe6, 0x1b, 0x54, - 0xb3, 0x40, 0xec, 0xd1, 0x00, 0x12, 0x1f, 0x02, 0xb1, 0x60, 0x5f, 0x89, 0x05, 0x5d, 0x22, 0x16, - 0x06, 0x4d, 0xd9, 0xb1, 0xcb, 0x92, 0x15, 0xf2, 0xbd, 0xd7, 0x89, 0x93, 0x19, 0x82, 0x34, 0xa9, - 0x14, 0xd8, 0xc4, 0xf7, 0x3c, 0x7e, 0xc7, 0xe7, 0xfc, 0xce, 0xbd, 0xd7, 0x47, 0x01, 0xe9, 0x79, - 0x51, 0xdf, 0x57, 0x8b, 0xef, 0xdc, 0xbb, 0xa5, 0x76, 0x15, 0xc3, 0x20, 0x07, 0x45, 0x67, 0x38, - 0x20, 0x36, 0xfb, 0x2d, 0x0c, 0x2c, 0xd3, 0x31, 0xd1, 0x35, 0xd5, 0xb4, 0xfb, 0xa6, 0x2d, 0xdb, - 0x5a, 0xaf, 0xf0, 0xbc, 0xa0, 0xef, 0xab, 0x05, 0xee, 0x5b, 0x38, 0xba, 0x9d, 0x79, 0xcb, 0xe9, - 0xea, 0x96, 0x26, 0x0f, 0x14, 0xcb, 0x19, 0x16, 0xa9, 0x7f, 0xb1, 0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xb8, 0x38, 0x41, 0x52, 0x63, 0x84, 0x21, 0xa9, - 0xe5, 0x3a, 0xac, 0x31, 0x4b, 0xe5, 0x51, 0xb3, 0x55, 0xab, 0xa6, 0xa2, 0x19, 0x38, 0x3e, 0xc9, - 0xc5, 0x99, 0x94, 0x89, 0xbe, 0xf8, 0x36, 0x1b, 0xba, 0xf9, 0x0c, 0x62, 0xf4, 0xe4, 0xa3, 0x1b, - 0xb0, 0xd3, 0xc4, 0xd5, 0x1a, 0x96, 0x1b, 0xcd, 0x46, 0x6d, 0x26, 0x5f, 0x1a, 0xd2, 0xd3, 0x23, - 0x09, 0x36, 0x99, 0xd7, 0xe3, 0x06, 0x7d, 0xd6, 0xaa, 0x29, 0x21, 0xb3, 0x7e, 0x7c, 0x92, 0x4b, - 0x8e, 0x15, 0x5e, 0xc2, 0xcc, 0xc7, 0xf7, 0xe0, 0x09, 0x73, 0x91, 0xbd, 0xb8, 0xbc, 0xfb, 0xf2, - 0x34, 0x2b, 0xbc, 0x3a, 0xcd, 0x0a, 0xbf, 0x9d, 0x66, 0x85, 0x2f, 0x5e, 0x67, 0x43, 0xaf, 0x5e, - 0x67, 0x43, 0x3f, 0xbf, 0xce, 0x86, 0x9e, 0xdc, 0x9d, 0x7b, 0x6d, 0x9e, 0xff, 0xa7, 0xc7, 0x7e, - 0x9c, 0xfe, 0x55, 0x71, 0xf7, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x44, 0x7a, 0xc9, 0x51, 0x15, - 0x11, 0x00, 0x00, + proto.RegisterEnum("ibc.channel.State", State_name, State_value) + proto.RegisterEnum("ibc.channel.Order", Order_name, Order_value) + proto.RegisterType((*MsgChannelOpenInit)(nil), "ibc.channel.MsgChannelOpenInit") + proto.RegisterType((*MsgChannelOpenTry)(nil), "ibc.channel.MsgChannelOpenTry") + proto.RegisterType((*MsgChannelOpenAck)(nil), "ibc.channel.MsgChannelOpenAck") + proto.RegisterType((*MsgChannelOpenConfirm)(nil), "ibc.channel.MsgChannelOpenConfirm") + proto.RegisterType((*MsgChannelCloseInit)(nil), "ibc.channel.MsgChannelCloseInit") + proto.RegisterType((*MsgChannelCloseConfirm)(nil), "ibc.channel.MsgChannelCloseConfirm") + proto.RegisterType((*MsgPacket)(nil), "ibc.channel.MsgPacket") + proto.RegisterType((*MsgTimeout)(nil), "ibc.channel.MsgTimeout") + proto.RegisterType((*MsgAcknowledgement)(nil), "ibc.channel.MsgAcknowledgement") + proto.RegisterType((*Channel)(nil), "ibc.channel.Channel") + proto.RegisterType((*Counterparty)(nil), "ibc.channel.Counterparty") + proto.RegisterType((*Packet)(nil), "ibc.channel.Packet") +} + +func init() { proto.RegisterFile("ibc/channel/channel.proto", fileDescriptor_9277922ccfb7f043) } + +var fileDescriptor_9277922ccfb7f043 = []byte{ + // 1196 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x16, 0xf5, 0x6b, 0x8d, 0x64, 0x5b, 0x5e, 0xff, 0x44, 0x56, 0x5c, 0x51, 0x20, 0x7a, 0x10, + 0x02, 0x58, 0xaa, 0x1d, 0xb7, 0x05, 0x7c, 0xaa, 0xfe, 0x82, 0x08, 0x8d, 0x25, 0x63, 0x2d, 0x17, + 0x68, 0x2e, 0x02, 0x4d, 0x6d, 0x64, 0x42, 0x16, 0xa9, 0x92, 0xb4, 0x13, 0xbd, 0x41, 0x60, 0xa0, + 0x69, 0xef, 0x85, 0x81, 0x02, 0x3d, 0xf5, 0x09, 0xfa, 0x0a, 0x01, 0x7a, 0x68, 0x0e, 0x3d, 0x14, + 0x2d, 0xc0, 0x16, 0xf6, 0x1b, 0xe8, 0xd8, 0x53, 0xc1, 0xdd, 0xa5, 0x44, 0xca, 0x69, 0x0e, 0x56, + 0x01, 0x35, 0x27, 0xee, 0xcc, 0x7c, 0x33, 0x3b, 0xf3, 0xcd, 0xfe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e, 0x96, 0x65, + 0x7f, 0x14, 0xce, 0xde, 0xb4, 0x7a, 0xc2, 0x6e, 0xe8, 0x5d, 0xec, 0xce, 0x69, 0x6b, 0x7c, 0x1d, + 0x84, 0x18, 0x3f, 0x05, 0x50, 0x1e, 0x22, 0xa6, 0x25, 0x5b, 0x84, 0x92, 0xb0, 0xb4, 0x8b, 0x7c, + 0x24, 0x1c, 0x39, 0x16, 0xcc, 0x00, 0xa8, 0x00, 0x0b, 0xba, 0xd1, 0x21, 0x86, 0xaa, 0x75, 0x69, + 0xd5, 0xd3, 0xe0, 0xa6, 0x63, 0xc4, 0x63, 0x0c, 0xaa, 0x40, 0xd2, 0x7b, 0x9d, 0xf3, 0x77, 0xde, + 0xa6, 0xff, 0x9d, 0xe7, 0x01, 0x70, 0xae, 0x7d, 0x4e, 0xa8, 0x02, 0xcb, 0x8a, 0xae, 0x69, 0x44, + 0xb1, 0x54, 0x5d, 0x6b, 0x9f, 0xea, 0x03, 0x33, 0x1d, 0xce, 0x85, 0xf2, 0xf1, 0x72, 0x66, 0x64, + 0x8b, 0x1b, 0xee, 0x5b, 0xc2, 0x07, 0x90, 0xf0, 0xd2, 0x44, 0xf3, 0x58, 0x1f, 0x98, 0x28, 0x0d, + 0x31, 0xf7, 0x21, 0xe2, 0x70, 0x17, 0xc7, 0xae, 0xb8, 0x1f, 0x7e, 0xf9, 0xbd, 0x18, 0x90, 0x5e, + 0x09, 0x90, 0xf4, 0x66, 0x32, 0xbf, 0x23, 0x97, 0x27, 0xf4, 0x67, 0x08, 0xa2, 0xfc, 0xe0, 0xca, + 0xc0, 0x82, 0xbb, 0x57, 0x68, 0x2e, 0x61, 0x3c, 0x96, 0xd1, 0xa7, 0x90, 0x30, 0xf5, 0x73, 0x43, + 0x21, 0x6d, 0x27, 0x01, 0x3e, 0xe1, 0xc6, 0xc8, 0x16, 0x11, 0x9b, 0xc3, 0x63, 0x94, 0x30, 0x30, + 0xc9, 0x29, 0x02, 0x7d, 0x06, 0x4b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c, 0xcf, 0x51, 0xa6, 0x84, 0xcc, 0xc2, + 0xe5, 0x55, 0x2e, 0xec, 0x8c, 0x51, 0x16, 0x16, 0x99, 0xa5, 0x85, 0xbf, 0x6c, 0x1e, 0xd6, 0x1a, + 0xa9, 0x60, 0x26, 0x71, 0x79, 0x95, 0x8b, 0x71, 0x71, 0xe2, 0x49, 0x8d, 0x21, 0xe6, 0x49, 0x2d, + 0x5b, 0x90, 0x64, 0x96, 0xca, 0x93, 0xe6, 0x51, 0xad, 0x9a, 0x0a, 0x67, 0xe0, 0xf2, 0x2a, 0x17, + 0x65, 0x52, 0x26, 0xfc, 0xf2, 0x87, 0x6c, 0xe0, 0xc1, 0x73, 0x88, 0xd0, 0x9d, 0x8e, 0x3e, 0x84, + 0x8d, 0x26, 0xae, 0xd6, 0x70, 0xbb, 0xd1, 0x6c, 0xd4, 0xa6, 0xf2, 0xa5, 0x21, 0x1d, 0x3d, 0x92, + 0x60, 0x99, 0xa1, 0x8e, 0x1b, 0xf4, 0x5b, 0xab, 0xa6, 0x84, 0xcc, 0xe2, 0xe5, 0x55, 0x2e, 0x3e, + 0x56, 0x38, 0x09, 0x33, 0x8c, 0x8b, 0xe0, 0x09, 0x73, 0x91, 0x4d, 0x5c, 0x3e, 0x78, 0x7d, 0x9d, + 0x15, 0xde, 0x5c, 0x67, 0x85, 0xbf, 0xae, 0xb3, 0xc2, 0xb7, 0x37, 0xd9, 0xc0, 0x9b, 0x9b, 0x6c, + 0xe0, 0xb7, 0x9b, 0x6c, 0xe0, 0xe9, 0xc3, 0x77, 0x1e, 0x83, 0x2f, 0x8a, 0xea, 0x89, 0x52, 0xfc, + 0x68, 0x6f, 0xdb, 0xfd, 0x9d, 0x40, 0xcf, 0xc5, 0x93, 0x28, 0xfd, 0x55, 0xf0, 0xf0, 0x9f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x39, 0x21, 0x50, 0x48, 0x6a, 0x10, 0x00, 0x00, } func (m *MsgChannelOpenInit) Marshal() (dAtA []byte, err error) { @@ -1060,7 +1056,7 @@ func (m *MsgChannelOpenInit) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x22 } @@ -1070,21 +1066,21 @@ func (m *MsgChannelOpenInit) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ChannelID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.PortID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } @@ -1114,26 +1110,26 @@ func (m *MsgChannelOpenTry) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x3a } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x30 } if len(m.ProofInit) > 0 { i -= len(m.ProofInit) copy(dAtA[i:], m.ProofInit) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ProofInit))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ProofInit))) i-- dAtA[i] = 0x2a } if len(m.CounterpartyVersion) > 0 { i -= len(m.CounterpartyVersion) copy(dAtA[i:], m.CounterpartyVersion) - i = encodeVarintTypes(dAtA, i, uint64(len(m.CounterpartyVersion))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.CounterpartyVersion))) i-- dAtA[i] = 0x22 } @@ -1143,21 +1139,21 @@ func (m *MsgChannelOpenTry) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ChannelID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.PortID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } @@ -1187,40 +1183,40 @@ func (m *MsgChannelOpenAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x32 } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x28 } if len(m.ProofTry) > 0 { i -= len(m.ProofTry) copy(dAtA[i:], m.ProofTry) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ProofTry))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ProofTry))) i-- dAtA[i] = 0x22 } if len(m.CounterpartyVersion) > 0 { i -= len(m.CounterpartyVersion) copy(dAtA[i:], m.CounterpartyVersion) - i = encodeVarintTypes(dAtA, i, uint64(len(m.CounterpartyVersion))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.CounterpartyVersion))) i-- dAtA[i] = 0x1a } if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ChannelID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.PortID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } @@ -1250,33 +1246,33 @@ func (m *MsgChannelOpenConfirm) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x2a } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x20 } if len(m.ProofAck) > 0 { i -= len(m.ProofAck) copy(dAtA[i:], m.ProofAck) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ProofAck))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ProofAck))) i-- dAtA[i] = 0x1a } if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ChannelID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.PortID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } @@ -1306,21 +1302,21 @@ func (m *MsgChannelCloseInit) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x1a } if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ChannelID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.PortID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } @@ -1350,33 +1346,33 @@ func (m *MsgChannelCloseConfirm) MarshalToSizedBuffer(dAtA []byte) (int, error) if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x2a } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x20 } if len(m.ProofInit) > 0 { i -= len(m.ProofInit) copy(dAtA[i:], m.ProofInit) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ProofInit))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ProofInit))) i-- dAtA[i] = 0x1a } if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ChannelID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.PortID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } @@ -1406,19 +1402,19 @@ func (m *MsgPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x22 } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x18 } if len(m.Proof) > 0 { i -= len(m.Proof) copy(dAtA[i:], m.Proof) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Proof))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Proof))) i-- dAtA[i] = 0x12 } @@ -1428,7 +1424,7 @@ func (m *MsgPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1458,24 +1454,24 @@ func (m *MsgTimeout) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x2a } if m.NextSequenceRecv != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.NextSequenceRecv)) + i = encodeVarintChannel(dAtA, i, uint64(m.NextSequenceRecv)) i-- dAtA[i] = 0x20 } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x18 } if len(m.Proof) > 0 { i -= len(m.Proof) copy(dAtA[i:], m.Proof) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Proof))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Proof))) i-- dAtA[i] = 0x12 } @@ -1485,7 +1481,7 @@ func (m *MsgTimeout) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1515,26 +1511,26 @@ func (m *MsgAcknowledgement) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x2a } if m.ProofHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.ProofHeight)) + i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x20 } if len(m.Proof) > 0 { i -= len(m.Proof) copy(dAtA[i:], m.Proof) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Proof))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Proof))) i-- dAtA[i] = 0x1a } if len(m.Acknowledgement) > 0 { i -= len(m.Acknowledgement) copy(dAtA[i:], m.Acknowledgement) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Acknowledgement))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Acknowledgement))) i-- dAtA[i] = 0x12 } @@ -1544,7 +1540,7 @@ func (m *MsgAcknowledgement) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1574,7 +1570,7 @@ func (m *Channel) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Version) > 0 { i -= len(m.Version) copy(dAtA[i:], m.Version) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Version))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Version))) i-- dAtA[i] = 0x2a } @@ -1582,7 +1578,7 @@ func (m *Channel) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.ConnectionHops) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ConnectionHops[iNdEx]) copy(dAtA[i:], m.ConnectionHops[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ConnectionHops[iNdEx]))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ConnectionHops[iNdEx]))) i-- dAtA[i] = 0x22 } @@ -1593,17 +1589,17 @@ func (m *Channel) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if m.Ordering != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Ordering)) + i = encodeVarintChannel(dAtA, i, uint64(m.Ordering)) i-- dAtA[i] = 0x10 } if m.State != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.State)) + i = encodeVarintChannel(dAtA, i, uint64(m.State)) i-- dAtA[i] = 0x8 } @@ -1633,14 +1629,14 @@ func (m *Counterparty) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ChannelID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) - i = encodeVarintTypes(dAtA, i, uint64(len(m.PortID))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } @@ -1668,60 +1664,60 @@ func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.TimeoutTimestamp != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.TimeoutTimestamp)) + i = encodeVarintChannel(dAtA, i, uint64(m.TimeoutTimestamp)) i-- dAtA[i] = 0x40 } if m.TimeoutHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.TimeoutHeight)) + i = encodeVarintChannel(dAtA, i, uint64(m.TimeoutHeight)) i-- dAtA[i] = 0x38 } if len(m.Data) > 0 { i -= len(m.Data) copy(dAtA[i:], m.Data) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0x32 } if len(m.DestinationChannel) > 0 { i -= len(m.DestinationChannel) copy(dAtA[i:], m.DestinationChannel) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DestinationChannel))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.DestinationChannel))) i-- dAtA[i] = 0x2a } if len(m.DestinationPort) > 0 { i -= len(m.DestinationPort) copy(dAtA[i:], m.DestinationPort) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DestinationPort))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.DestinationPort))) i-- dAtA[i] = 0x22 } if len(m.SourceChannel) > 0 { i -= len(m.SourceChannel) copy(dAtA[i:], m.SourceChannel) - i = encodeVarintTypes(dAtA, i, uint64(len(m.SourceChannel))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.SourceChannel))) i-- dAtA[i] = 0x1a } if len(m.SourcePort) > 0 { i -= len(m.SourcePort) copy(dAtA[i:], m.SourcePort) - i = encodeVarintTypes(dAtA, i, uint64(len(m.SourcePort))) + i = encodeVarintChannel(dAtA, i, uint64(len(m.SourcePort))) i-- dAtA[i] = 0x12 } if m.Sequence != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Sequence)) + i = encodeVarintChannel(dAtA, i, uint64(m.Sequence)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintChannel(dAtA []byte, offset int, v uint64) int { + offset -= sovChannel(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -1739,17 +1735,17 @@ func (m *MsgChannelOpenInit) Size() (n int) { _ = l l = len(m.PortID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = m.Channel.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -1762,28 +1758,28 @@ func (m *MsgChannelOpenTry) Size() (n int) { _ = l l = len(m.PortID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = m.Channel.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) l = len(m.CounterpartyVersion) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ProofInit) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -1796,26 +1792,26 @@ func (m *MsgChannelOpenAck) Size() (n int) { _ = l l = len(m.PortID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.CounterpartyVersion) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ProofTry) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -1828,22 +1824,22 @@ func (m *MsgChannelOpenConfirm) Size() (n int) { _ = l l = len(m.PortID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ProofAck) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -1856,15 +1852,15 @@ func (m *MsgChannelCloseInit) Size() (n int) { _ = l l = len(m.PortID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -1877,22 +1873,22 @@ func (m *MsgChannelCloseConfirm) Size() (n int) { _ = l l = len(m.PortID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ProofInit) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -1904,17 +1900,17 @@ func (m *MsgPacket) Size() (n int) { var l int _ = l l = m.Packet.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) l = len(m.Proof) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -1926,20 +1922,20 @@ func (m *MsgTimeout) Size() (n int) { var l int _ = l l = m.Packet.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) l = len(m.Proof) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovChannel(uint64(m.ProofHeight)) } if m.NextSequenceRecv != 0 { - n += 1 + sovTypes(uint64(m.NextSequenceRecv)) + n += 1 + sovChannel(uint64(m.NextSequenceRecv)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -1951,21 +1947,21 @@ func (m *MsgAcknowledgement) Size() (n int) { var l int _ = l l = m.Packet.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) l = len(m.Acknowledgement) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.Proof) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { - n += 1 + sovTypes(uint64(m.ProofHeight)) + n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -1977,22 +1973,22 @@ func (m *Channel) Size() (n int) { var l int _ = l if m.State != 0 { - n += 1 + sovTypes(uint64(m.State)) + n += 1 + sovChannel(uint64(m.State)) } if m.Ordering != 0 { - n += 1 + sovTypes(uint64(m.Ordering)) + n += 1 + sovChannel(uint64(m.Ordering)) } l = m.Counterparty.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) if len(m.ConnectionHops) > 0 { for _, s := range m.ConnectionHops { l = len(s) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } } l = len(m.Version) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -2005,11 +2001,11 @@ func (m *Counterparty) Size() (n int) { _ = l l = len(m.PortID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } return n } @@ -2021,42 +2017,42 @@ func (m *Packet) Size() (n int) { var l int _ = l if m.Sequence != 0 { - n += 1 + sovTypes(uint64(m.Sequence)) + n += 1 + sovChannel(uint64(m.Sequence)) } l = len(m.SourcePort) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.SourceChannel) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.DestinationPort) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.DestinationChannel) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } l = len(m.Data) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovChannel(uint64(l)) } if m.TimeoutHeight != 0 { - n += 1 + sovTypes(uint64(m.TimeoutHeight)) + n += 1 + sovChannel(uint64(m.TimeoutHeight)) } if m.TimeoutTimestamp != 0 { - n += 1 + sovTypes(uint64(m.TimeoutTimestamp)) + n += 1 + sovChannel(uint64(m.TimeoutTimestamp)) } return n } -func sovTypes(x uint64) (n int) { +func sovChannel(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozChannel(x uint64) (n int) { + return sovChannel(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -2066,7 +2062,7 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2094,7 +2090,7 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2108,11 +2104,11 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2126,7 +2122,7 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2140,11 +2136,11 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2158,7 +2154,7 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2171,11 +2167,11 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2191,7 +2187,7 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2204,11 +2200,11 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2220,15 +2216,15 @@ func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2250,7 +2246,7 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2278,7 +2274,7 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2292,11 +2288,11 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2310,7 +2306,7 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2324,11 +2320,11 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2342,7 +2338,7 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2355,11 +2351,11 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2375,7 +2371,7 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2389,11 +2385,11 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2407,7 +2403,7 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2420,11 +2416,11 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2441,7 +2437,7 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2460,7 +2456,7 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2473,11 +2469,11 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2489,15 +2485,15 @@ func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2519,7 +2515,7 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2547,7 +2543,7 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2561,11 +2557,11 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2579,7 +2575,7 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2593,11 +2589,11 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2611,7 +2607,7 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2625,11 +2621,11 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2643,7 +2639,7 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2656,11 +2652,11 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2677,7 +2673,7 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2696,7 +2692,7 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2709,11 +2705,11 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2725,15 +2721,15 @@ func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2755,7 +2751,7 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2783,7 +2779,7 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2797,11 +2793,11 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2815,7 +2811,7 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2829,11 +2825,11 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2847,7 +2843,7 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2860,11 +2856,11 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2881,7 +2877,7 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2900,7 +2896,7 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2913,11 +2909,11 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -2929,15 +2925,15 @@ func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2959,7 +2955,7 @@ func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2987,7 +2983,7 @@ func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3001,11 +2997,11 @@ func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3019,7 +3015,7 @@ func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3033,11 +3029,11 @@ func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3051,7 +3047,7 @@ func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3064,11 +3060,11 @@ func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3080,15 +3076,15 @@ func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3110,7 +3106,7 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3138,7 +3134,7 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3152,11 +3148,11 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3170,7 +3166,7 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3184,11 +3180,11 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3202,7 +3198,7 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3215,11 +3211,11 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3236,7 +3232,7 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3255,7 +3251,7 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3268,11 +3264,11 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3284,15 +3280,15 @@ func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3314,7 +3310,7 @@ func (m *MsgPacket) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3342,7 +3338,7 @@ func (m *MsgPacket) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3355,11 +3351,11 @@ func (m *MsgPacket) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3375,7 +3371,7 @@ func (m *MsgPacket) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3388,11 +3384,11 @@ func (m *MsgPacket) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3409,7 +3405,7 @@ func (m *MsgPacket) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3428,7 +3424,7 @@ func (m *MsgPacket) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3441,11 +3437,11 @@ func (m *MsgPacket) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3457,15 +3453,15 @@ func (m *MsgPacket) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3487,7 +3483,7 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3515,7 +3511,7 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3528,11 +3524,11 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3548,7 +3544,7 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3561,11 +3557,11 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3582,7 +3578,7 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3601,7 +3597,7 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { m.NextSequenceRecv = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3620,7 +3616,7 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3633,11 +3629,11 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3649,15 +3645,15 @@ func (m *MsgTimeout) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3679,7 +3675,7 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3707,7 +3703,7 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3720,11 +3716,11 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3740,7 +3736,7 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3753,11 +3749,11 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3774,7 +3770,7 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3787,11 +3783,11 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3808,7 +3804,7 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3827,7 +3823,7 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3840,11 +3836,11 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3856,15 +3852,15 @@ func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3886,7 +3882,7 @@ func (m *Channel) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3914,7 +3910,7 @@ func (m *Channel) Unmarshal(dAtA []byte) error { m.State = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3933,7 +3929,7 @@ func (m *Channel) Unmarshal(dAtA []byte) error { m.Ordering = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3952,7 +3948,7 @@ func (m *Channel) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3965,11 +3961,11 @@ func (m *Channel) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -3985,7 +3981,7 @@ func (m *Channel) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3999,11 +3995,11 @@ func (m *Channel) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -4017,7 +4013,7 @@ func (m *Channel) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4031,11 +4027,11 @@ func (m *Channel) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -4044,15 +4040,15 @@ func (m *Channel) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4074,7 +4070,7 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4102,7 +4098,7 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4116,11 +4112,11 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -4134,7 +4130,7 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4148,11 +4144,11 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -4161,15 +4157,15 @@ func (m *Counterparty) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4191,7 +4187,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4219,7 +4215,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { m.Sequence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4238,7 +4234,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4252,11 +4248,11 @@ func (m *Packet) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -4270,7 +4266,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4284,11 +4280,11 @@ func (m *Packet) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -4302,7 +4298,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4316,11 +4312,11 @@ func (m *Packet) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -4334,7 +4330,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4348,11 +4344,11 @@ func (m *Packet) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -4366,7 +4362,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4379,11 +4375,11 @@ func (m *Packet) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF @@ -4400,7 +4396,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { m.TimeoutHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4419,7 +4415,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { m.TimeoutTimestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4433,15 +4429,15 @@ func (m *Packet) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4455,7 +4451,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipChannel(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -4463,7 +4459,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowChannel } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -4480,7 +4476,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowChannel } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -4496,7 +4492,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowChannel } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -4509,14 +4505,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthChannel } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupChannel } depth-- case 5: @@ -4525,7 +4521,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthChannel } if depth == 0 { return iNdEx, nil @@ -4535,7 +4531,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthChannel = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowChannel = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupChannel = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/ibc/09-localhost/types/types.pb.go b/x/ibc/09-localhost/types/localhost.pb.go similarity index 68% rename from x/ibc/09-localhost/types/types.pb.go rename to x/ibc/09-localhost/types/localhost.pb.go index 2d8fed4c98bb..cec5c7bf7fad 100644 --- a/x/ibc/09-localhost/types/types.pb.go +++ b/x/ibc/09-localhost/types/localhost.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/ibc/09-localhost/types/types.proto +// source: ibc/localhost/localhost.proto package types @@ -33,7 +33,7 @@ func (m *MsgCreateClient) Reset() { *m = MsgCreateClient{} } func (m *MsgCreateClient) String() string { return proto.CompactTextString(m) } func (*MsgCreateClient) ProtoMessage() {} func (*MsgCreateClient) Descriptor() ([]byte, []int) { - return fileDescriptor_a8da40ad8942fbdc, []int{0} + return fileDescriptor_6a04d924e6f8a88e, []int{0} } func (m *MsgCreateClient) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -70,29 +70,26 @@ func (m *MsgCreateClient) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddr } func init() { - proto.RegisterType((*MsgCreateClient)(nil), "cosmos_sdk.ibc.localhost.v1.MsgCreateClient") + proto.RegisterType((*MsgCreateClient)(nil), "ibc.localhost.MsgCreateClient") } -func init() { - proto.RegisterFile("x/ibc/09-localhost/types/types.proto", fileDescriptor_a8da40ad8942fbdc) -} +func init() { proto.RegisterFile("ibc/localhost/localhost.proto", fileDescriptor_6a04d924e6f8a88e) } -var fileDescriptor_a8da40ad8942fbdc = []byte{ - // 220 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xa9, 0xd0, 0xcf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, 0x5e, 0x03, 0x71, 0xf9, 0x3f, 0x89, 0x0d, 0xec, 0x6a, 0x63, 0x40, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x9c, 0xe5, 0xb5, 0xd4, 0x22, 0x01, 0x00, 0x00, +var fileDescriptor_6a04d924e6f8a88e = []byte{ + // 200 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0x4c, 0x4a, 0xd6, + 0xcf, 0xc9, 0x4f, 0x4e, 0xcc, 0xc9, 0xc8, 0x2f, 0x2e, 0x41, 0xb0, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, + 0xf2, 0x85, 0x78, 0x33, 0x93, 0x92, 0xf5, 0xe0, 0x82, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, + 0x19, 0x7d, 0x10, 0x0b, 0xa2, 0x48, 0x29, 0x86, 0x8b, 0xdf, 0xb7, 0x38, 0xdd, 0xb9, 0x28, 0x35, + 0xb1, 0x24, 0xd5, 0x39, 0x27, 0x33, 0x35, 0xaf, 0x44, 0xc8, 0x93, 0x8b, 0xad, 0x38, 0x33, 0x3d, + 0x2f, 0xb5, 0x48, 0x82, 0x51, 0x81, 0x51, 0x83, 0xc7, 0xc9, 0xf0, 0xd7, 0x3d, 0x79, 0xdd, 0xf4, + 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xe4, 0xfc, 0xe2, 0xdc, 0xfc, 0x62, + 0x28, 0xa5, 0x5b, 0x9c, 0x92, 0xad, 0x5f, 0x52, 0x59, 0x90, 0x5a, 0xac, 0xe7, 0x98, 0x9c, 0xec, + 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x1c, 0x04, 0x35, 0xc0, 0xc9, 0xff, 0xc4, 0x23, 0x39, 0xc6, + 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, + 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x4c, 0xf1, 0x1a, 0x58, 0xa1, 0x0f, 0xf2, 0x9a, 0x81, 0xa5, + 0x2e, 0xc2, 0x77, 0x60, 0x3b, 0x92, 0xd8, 0xc0, 0xae, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, + 0x0c, 0x82, 0x3a, 0x52, 0xfb, 0x00, 0x00, 0x00, } func (m *MsgCreateClient) Marshal() (dAtA []byte, err error) { @@ -118,15 +115,15 @@ func (m *MsgCreateClient) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer))) + i = encodeVarintLocalhost(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintLocalhost(dAtA []byte, offset int, v uint64) int { + offset -= sovLocalhost(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -144,16 +141,16 @@ func (m *MsgCreateClient) Size() (n int) { _ = l l = len(m.Signer) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovLocalhost(uint64(l)) } return n } -func sovTypes(x uint64) (n int) { +func sovLocalhost(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozLocalhost(x uint64) (n int) { + return sovLocalhost(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgCreateClient) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -163,7 +160,7 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowLocalhost } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -191,7 +188,7 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowLocalhost } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -204,11 +201,11 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthLocalhost } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthLocalhost } if postIndex > l { return io.ErrUnexpectedEOF @@ -220,15 +217,15 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipLocalhost(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthLocalhost } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthLocalhost } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -242,7 +239,7 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipLocalhost(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -250,7 +247,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowLocalhost } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -267,7 +264,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowLocalhost } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -283,7 +280,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowLocalhost } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -296,14 +293,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthLocalhost } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupLocalhost } depth-- case 5: @@ -312,7 +309,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthLocalhost } if depth == 0 { return iNdEx, nil @@ -322,7 +319,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthLocalhost = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLocalhost = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLocalhost = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/ibc/23-commitment/types/types.pb.go b/x/ibc/23-commitment/types/commitment.pb.go similarity index 76% rename from x/ibc/23-commitment/types/types.pb.go rename to x/ibc/23-commitment/types/commitment.pb.go index 3c60a5c696b4..f5c8784e0e22 100644 --- a/x/ibc/23-commitment/types/types.pb.go +++ b/x/ibc/23-commitment/types/commitment.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/ibc/23-commitment/types/types.proto +// source: ibc/commitment/commitment.proto package types @@ -45,7 +45,7 @@ var KeyEncoding_value = map[string]int32{ } func (KeyEncoding) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1004b8837466efb9, []int{0} + return fileDescriptor_71f36b3839a24c54, []int{0} } // MerkleRoot defines a merkle root hash. @@ -58,7 +58,7 @@ func (m *MerkleRoot) Reset() { *m = MerkleRoot{} } func (m *MerkleRoot) String() string { return proto.CompactTextString(m) } func (*MerkleRoot) ProtoMessage() {} func (*MerkleRoot) Descriptor() ([]byte, []int) { - return fileDescriptor_1004b8837466efb9, []int{0} + return fileDescriptor_71f36b3839a24c54, []int{0} } func (m *MerkleRoot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -97,7 +97,7 @@ func (m *MerklePrefix) Reset() { *m = MerklePrefix{} } func (m *MerklePrefix) String() string { return proto.CompactTextString(m) } func (*MerklePrefix) ProtoMessage() {} func (*MerklePrefix) Descriptor() ([]byte, []int) { - return fileDescriptor_1004b8837466efb9, []int{1} + return fileDescriptor_71f36b3839a24c54, []int{1} } func (m *MerklePrefix) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -142,7 +142,7 @@ type MerklePath struct { func (m *MerklePath) Reset() { *m = MerklePath{} } func (*MerklePath) ProtoMessage() {} func (*MerklePath) Descriptor() ([]byte, []int) { - return fileDescriptor_1004b8837466efb9, []int{2} + return fileDescriptor_71f36b3839a24c54, []int{2} } func (m *MerklePath) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -190,7 +190,7 @@ func (m *MerkleProof) Reset() { *m = MerkleProof{} } func (m *MerkleProof) String() string { return proto.CompactTextString(m) } func (*MerkleProof) ProtoMessage() {} func (*MerkleProof) Descriptor() ([]byte, []int) { - return fileDescriptor_1004b8837466efb9, []int{3} + return fileDescriptor_71f36b3839a24c54, []int{3} } func (m *MerkleProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -234,7 +234,7 @@ type KeyPath struct { func (m *KeyPath) Reset() { *m = KeyPath{} } func (*KeyPath) ProtoMessage() {} func (*KeyPath) Descriptor() ([]byte, []int) { - return fileDescriptor_1004b8837466efb9, []int{4} + return fileDescriptor_71f36b3839a24c54, []int{4} } func (m *KeyPath) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -266,14 +266,14 @@ var xxx_messageInfo_KeyPath proto.InternalMessageInfo // Key defines a proof Key type Key struct { name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - enc KeyEncoding `protobuf:"varint,2,opt,name=enc,proto3,enum=cosmos_sdk.x.ibc.commitment.v1.KeyEncoding" json:"enc,omitempty"` + enc KeyEncoding `protobuf:"varint,2,opt,name=enc,proto3,enum=ibc.commitment.KeyEncoding" json:"enc,omitempty"` } func (m *Key) Reset() { *m = Key{} } func (m *Key) String() string { return proto.CompactTextString(m) } func (*Key) ProtoMessage() {} func (*Key) Descriptor() ([]byte, []int) { - return fileDescriptor_1004b8837466efb9, []int{5} + return fileDescriptor_71f36b3839a24c54, []int{5} } func (m *Key) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -303,55 +303,51 @@ func (m *Key) XXX_DiscardUnknown() { var xxx_messageInfo_Key proto.InternalMessageInfo func init() { - proto.RegisterEnum("cosmos_sdk.x.ibc.commitment.v1.KeyEncoding", KeyEncoding_name, KeyEncoding_value) - proto.RegisterType((*MerkleRoot)(nil), "cosmos_sdk.x.ibc.commitment.v1.MerkleRoot") - proto.RegisterType((*MerklePrefix)(nil), "cosmos_sdk.x.ibc.commitment.v1.MerklePrefix") - proto.RegisterType((*MerklePath)(nil), "cosmos_sdk.x.ibc.commitment.v1.MerklePath") - proto.RegisterType((*MerkleProof)(nil), "cosmos_sdk.x.ibc.commitment.v1.MerkleProof") - proto.RegisterType((*KeyPath)(nil), "cosmos_sdk.x.ibc.commitment.v1.KeyPath") - proto.RegisterType((*Key)(nil), "cosmos_sdk.x.ibc.commitment.v1.Key") -} - -func init() { - proto.RegisterFile("x/ibc/23-commitment/types/types.proto", fileDescriptor_1004b8837466efb9) -} - -var fileDescriptor_1004b8837466efb9 = []byte{ - // 534 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0x6d, 0x62, 0x48, 0xb8, 0x54, 0x50, 0x4e, 0x42, 0x44, 0x51, 0xb1, 0x23, 0x23, 0x4a, - 0x00, 0xf5, 0x2c, 0x52, 0xa0, 0x52, 0xc6, 0x34, 0x2e, 0x0d, 0x09, 0x21, 0x3a, 0x14, 0xa9, 0xc0, - 0x60, 0x39, 0xce, 0x35, 0xb6, 0x5c, 0xfb, 0x8c, 0x7d, 0xa0, 0xf8, 0x1b, 0x54, 0x4c, 0x8c, 0x2c, - 0x48, 0x95, 0x60, 0xe0, 0xa3, 0x74, 0xec, 0xc8, 0x14, 0xa1, 0x64, 0x61, 0xee, 0x27, 0x40, 0xbe, - 0x73, 0x95, 0x22, 0x04, 0xea, 0xf2, 0xee, 0x3d, 0xdd, 0xef, 0x9f, 0xff, 0xcb, 0xdf, 0x36, 0xb8, - 0x3b, 0x35, 0xbc, 0x91, 0x63, 0x34, 0x36, 0x37, 0x1c, 0x1a, 0x04, 0x1e, 0x0b, 0x48, 0xc8, 0x0c, - 0x96, 0x46, 0x24, 0x11, 0x15, 0x45, 0x31, 0x65, 0x14, 0xaa, 0x0e, 0x4d, 0x02, 0x9a, 0x58, 0xc9, - 0xd8, 0x47, 0x53, 0xe4, 0x8d, 0x1c, 0xb4, 0xc4, 0xd1, 0x87, 0x47, 0xd5, 0x75, 0xe6, 0x7a, 0xf1, - 0xd8, 0x8a, 0xec, 0x98, 0xa5, 0x06, 0x97, 0x18, 0x13, 0x3a, 0xa1, 0xcb, 0x4e, 0xfc, 0x4e, 0x75, - 0xeb, 0x6f, 0x8e, 0x91, 0x70, 0x4c, 0xe2, 0xc0, 0x0b, 0x99, 0xe1, 0xc4, 0x69, 0xc4, 0xa8, 0x11, - 0x90, 0xd8, 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7, 0x80, 0x12, 0xda, 0x01, 0xc9, 0x13, 0x2c, 0xcd, - 0x67, 0x1a, 0x9f, 0x31, 0xaf, 0x70, 0x07, 0x14, 0x48, 0xe8, 0x54, 0x2e, 0xd5, 0xe4, 0xfa, 0xb5, - 0xc6, 0xc3, 0x0b, 0xd8, 0x98, 0xa1, 0x43, 0xc7, 0x5e, 0x38, 0x69, 0x15, 0xe7, 0x33, 0x2d, 0xd3, - 0xe2, 0xac, 0x88, 0x67, 0xf8, 0xc0, 0x06, 0xe5, 0x73, 0x08, 0xbc, 0x0f, 0xd6, 0xba, 0xe6, 0x6b, - 0xcb, 0xec, 0x6f, 0xbf, 0x6c, 0x77, 0xfa, 0xcf, 0xac, 0x21, 0xee, 0x59, 0xc3, 0xfe, 0xab, 0x81, - 0xb9, 0xdd, 0xd9, 0xe9, 0x98, 0xed, 0x55, 0xa9, 0x5a, 0xfc, 0xf8, 0xa5, 0x56, 0x18, 0xe2, 0x1e, - 0xbc, 0x0d, 0x56, 0xff, 0x40, 0x77, 0xcd, 0xbd, 0x55, 0x59, 0x5c, 0xef, 0x9a, 0x7b, 0xd5, 0xd2, - 0xe1, 0x57, 0x55, 0xfa, 0xfe, 0x4d, 0x95, 0x5a, 0x83, 0xe3, 0xb9, 0x2a, 0x9f, 0xcc, 0x55, 0xf9, - 0xe7, 0x5c, 0x95, 0x3f, 0x2d, 0x54, 0xe9, 0x64, 0xa1, 0x4a, 0x3f, 0x16, 0xaa, 0xf4, 0xe6, 0xe9, - 0xc4, 0x63, 0xee, 0xfb, 0x51, 0xb6, 0xb2, 0x21, 0xfe, 0x47, 0x7e, 0x6c, 0x24, 0x63, 0xdf, 0xf8, - 0xe7, 0xd7, 0x32, 0xba, 0xc2, 0xdf, 0xd3, 0xcd, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x4d, - 0x65, 0x02, 0x51, 0x03, 0x00, 0x00, + proto.RegisterEnum("ibc.commitment.KeyEncoding", KeyEncoding_name, KeyEncoding_value) + proto.RegisterType((*MerkleRoot)(nil), "ibc.commitment.MerkleRoot") + proto.RegisterType((*MerklePrefix)(nil), "ibc.commitment.MerklePrefix") + proto.RegisterType((*MerklePath)(nil), "ibc.commitment.MerklePath") + proto.RegisterType((*MerkleProof)(nil), "ibc.commitment.MerkleProof") + proto.RegisterType((*KeyPath)(nil), "ibc.commitment.KeyPath") + proto.RegisterType((*Key)(nil), "ibc.commitment.Key") +} + +func init() { proto.RegisterFile("ibc/commitment/commitment.proto", fileDescriptor_71f36b3839a24c54) } + +var fileDescriptor_71f36b3839a24c54 = []byte{ + // 509 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x31, 0x6f, 0xd3, 0x40, + 0x14, 0xc7, 0x6d, 0x62, 0x48, 0xb8, 0x54, 0x25, 0x1c, 0xa0, 0x46, 0xa1, 0xd8, 0x91, 0x25, 0x20, + 0x20, 0xd5, 0x96, 0x52, 0xe8, 0x10, 0x31, 0xa5, 0x31, 0x34, 0xa4, 0x84, 0xe8, 0x50, 0xa4, 0xc2, + 0x12, 0x39, 0xce, 0x35, 0xb6, 0x5c, 0xfb, 0x2c, 0xfb, 0x90, 0xea, 0x6f, 0x50, 0x31, 0x31, 0xb2, + 0x20, 0x55, 0x82, 0x81, 0x8f, 0xd2, 0xb1, 0x23, 0x93, 0x85, 0x9c, 0x85, 0xb9, 0x9f, 0xa0, 0xba, + 0x3b, 0x57, 0x49, 0xa5, 0x2e, 0x77, 0xef, 0xf9, 0xfd, 0xfc, 0xde, 0xdf, 0x7f, 0x3f, 0xa0, 0x79, + 0x53, 0xc7, 0x74, 0x48, 0x10, 0x78, 0x34, 0xc0, 0x21, 0x5d, 0x09, 0x8d, 0x28, 0x26, 0x94, 0xc0, + 0x75, 0x6f, 0xea, 0x18, 0xcb, 0xa7, 0x8d, 0x87, 0x73, 0x32, 0x27, 0xbc, 0x64, 0xb2, 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8d, 0x70, 0x32, 0xbd, 0xc3, 0xf7, 0x6e, 0xfb, + 0x32, 0x00, 0x00, 0xff, 0xff, 0xef, 0xa1, 0xaa, 0x6d, 0xe7, 0x02, 0x00, 0x00, } func (this *MerkleProof) Equal(that interface{}) bool { @@ -401,7 +397,7 @@ func (m *MerkleRoot) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Hash) > 0 { i -= len(m.Hash) copy(dAtA[i:], m.Hash) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) + i = encodeVarintCommitment(dAtA, i, uint64(len(m.Hash))) i-- dAtA[i] = 0xa } @@ -431,7 +427,7 @@ func (m *MerklePrefix) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.KeyPrefix) > 0 { i -= len(m.KeyPrefix) copy(dAtA[i:], m.KeyPrefix) - i = encodeVarintTypes(dAtA, i, uint64(len(m.KeyPrefix))) + i = encodeVarintCommitment(dAtA, i, uint64(len(m.KeyPrefix))) i-- dAtA[i] = 0xa } @@ -464,7 +460,7 @@ func (m *MerklePath) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCommitment(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -498,7 +494,7 @@ func (m *MerkleProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCommitment(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -534,7 +530,7 @@ func (m *KeyPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintCommitment(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -564,22 +560,22 @@ func (m *Key) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.enc != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.enc)) + i = encodeVarintCommitment(dAtA, i, uint64(m.enc)) i-- dAtA[i] = 0x10 } if len(m.name) > 0 { i -= len(m.name) copy(dAtA[i:], m.name) - i = encodeVarintTypes(dAtA, i, uint64(len(m.name))) + i = encodeVarintCommitment(dAtA, i, uint64(len(m.name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintCommitment(dAtA []byte, offset int, v uint64) int { + offset -= sovCommitment(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -597,7 +593,7 @@ func (m *MerkleRoot) Size() (n int) { _ = l l = len(m.Hash) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCommitment(uint64(l)) } return n } @@ -610,7 +606,7 @@ func (m *MerklePrefix) Size() (n int) { _ = l l = len(m.KeyPrefix) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCommitment(uint64(l)) } return n } @@ -622,7 +618,7 @@ func (m *MerklePath) Size() (n int) { var l int _ = l l = m.KeyPath.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCommitment(uint64(l)) return n } @@ -634,7 +630,7 @@ func (m *MerkleProof) Size() (n int) { _ = l if m.Proof != nil { l = m.Proof.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCommitment(uint64(l)) } return n } @@ -648,7 +644,7 @@ func (m *KeyPath) Size() (n int) { if len(m.Keys) > 0 { for _, e := range m.Keys { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCommitment(uint64(l)) } } return n @@ -662,19 +658,19 @@ func (m *Key) Size() (n int) { _ = l l = len(m.name) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovCommitment(uint64(l)) } if m.enc != 0 { - n += 1 + sovTypes(uint64(m.enc)) + n += 1 + sovCommitment(uint64(m.enc)) } return n } -func sovTypes(x uint64) (n int) { +func sovCommitment(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozCommitment(x uint64) (n int) { + return sovCommitment(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MerkleRoot) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -684,7 +680,7 @@ func (m *MerkleRoot) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -712,7 +708,7 @@ func (m *MerkleRoot) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -725,11 +721,11 @@ func (m *MerkleRoot) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if postIndex > l { return io.ErrUnexpectedEOF @@ -741,15 +737,15 @@ func (m *MerkleRoot) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCommitment(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -771,7 +767,7 @@ func (m *MerklePrefix) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -799,7 +795,7 @@ func (m *MerklePrefix) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -812,11 +808,11 @@ func (m *MerklePrefix) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if postIndex > l { return io.ErrUnexpectedEOF @@ -828,15 +824,15 @@ func (m *MerklePrefix) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCommitment(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -858,7 +854,7 @@ func (m *MerklePath) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -886,7 +882,7 @@ func (m *MerklePath) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -899,11 +895,11 @@ func (m *MerklePath) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if postIndex > l { return io.ErrUnexpectedEOF @@ -914,15 +910,15 @@ func (m *MerklePath) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCommitment(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -944,7 +940,7 @@ func (m *MerkleProof) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -972,7 +968,7 @@ func (m *MerkleProof) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -985,11 +981,11 @@ func (m *MerkleProof) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if postIndex > l { return io.ErrUnexpectedEOF @@ -1003,15 +999,15 @@ func (m *MerkleProof) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCommitment(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1033,7 +1029,7 @@ func (m *KeyPath) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1061,7 +1057,7 @@ func (m *KeyPath) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1074,11 +1070,11 @@ func (m *KeyPath) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if postIndex > l { return io.ErrUnexpectedEOF @@ -1090,15 +1086,15 @@ func (m *KeyPath) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCommitment(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1120,7 +1116,7 @@ func (m *Key) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1148,7 +1144,7 @@ func (m *Key) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1161,11 +1157,11 @@ func (m *Key) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if postIndex > l { return io.ErrUnexpectedEOF @@ -1182,7 +1178,7 @@ func (m *Key) Unmarshal(dAtA []byte) error { m.enc = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowCommitment } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1196,15 +1192,15 @@ func (m *Key) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipCommitment(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthCommitment } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1218,7 +1214,7 @@ func (m *Key) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipCommitment(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -1226,7 +1222,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCommitment } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1243,7 +1239,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCommitment } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1259,7 +1255,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowCommitment } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1272,14 +1268,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCommitment } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupCommitment } depth-- case 5: @@ -1288,7 +1284,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthCommitment } if depth == 0 { return iNdEx, nil @@ -1298,7 +1294,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthCommitment = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCommitment = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCommitment = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/mint/types/types.pb.go b/x/mint/types/mint.pb.go similarity index 73% rename from x/mint/types/types.pb.go rename to x/mint/types/mint.pb.go index 039fcbe0814b..7460185dcd43 100644 --- a/x/mint/types/types.pb.go +++ b/x/mint/types/mint.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/mint/types/types.proto +// source: cosmos/mint/mint.proto package types @@ -36,7 +36,7 @@ func (m *Minter) Reset() { *m = Minter{} } func (m *Minter) String() string { return proto.CompactTextString(m) } func (*Minter) ProtoMessage() {} func (*Minter) Descriptor() ([]byte, []int) { - return fileDescriptor_fcb8be2eaea25b48, []int{0} + return fileDescriptor_22dc6d61d55f89c8, []int{0} } func (m *Minter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -84,7 +84,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_fcb8be2eaea25b48, []int{1} + return fileDescriptor_22dc6d61d55f89c8, []int{1} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -128,42 +128,41 @@ func (m *Params) GetBlocksPerYear() uint64 { } func init() { - proto.RegisterType((*Minter)(nil), "cosmos_sdk.x.mint.v1.Minter") - proto.RegisterType((*Params)(nil), "cosmos_sdk.x.mint.v1.Params") + proto.RegisterType((*Minter)(nil), "cosmos.mint.Minter") + proto.RegisterType((*Params)(nil), "cosmos.mint.Params") } -func init() { proto.RegisterFile("x/mint/types/types.proto", fileDescriptor_fcb8be2eaea25b48) } +func init() { proto.RegisterFile("cosmos/mint/mint.proto", fileDescriptor_22dc6d61d55f89c8) } -var fileDescriptor_fcb8be2eaea25b48 = []byte{ - // 439 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xb1, 0x6e, 0xd3, 0x40, - 0x1c, 0xc6, 0x6d, 0x48, 0x23, 0xe5, 0xa0, 0x02, 0x8e, 0x82, 0xac, 0x0a, 0xec, 0xca, 0x43, 0xd5, - 0x05, 0x5b, 0x88, 0xad, 0xa3, 0x89, 0x18, 0x10, 0x45, 0x91, 0x37, 0x58, 0x4e, 0xff, 0xd8, 0x87, - 0x73, 0x8a, 0xef, 0xce, 0xba, 0xbb, 0x16, 0x67, 0xe5, 0x09, 0x18, 0x19, 0x79, 0x0b, 0x5e, 0xa1, - 0x1b, 0x1d, 0x11, 0x43, 0x84, 0x92, 0x37, 0xe8, 0x13, 0x20, 0xdf, 0x45, 0x09, 0x04, 0x96, 0x48, - 0x5d, 0x6c, 0xff, 0x3f, 0x7d, 0xff, 0xef, 0xf7, 0xf9, 0xa4, 0x43, 0x41, 0x9b, 0x72, 0x26, 0x4c, - 0x6a, 0x66, 0x0d, 0xd5, 0xee, 0x99, 0x34, 0x4a, 0x1a, 0x89, 0x0f, 0x0a, 0xa9, 0xb9, 0xd4, 0x44, - 0x97, 0xd3, 0xa4, 0x4d, 0x3a, 0x53, 0x72, 0xf1, 0xfc, 0xf0, 0xd8, 0x4c, 0x98, 0x2a, 0x49, 0x03, - 0xca, 0xcc, 0x52, 0x6b, 0x4c, 0x2b, 0x59,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 0x22, 0xe8, 0xdd, 0x18, - 0x8c, 0x89, 0xbf, 0x60, 0x4c, 0x60, 0x8a, 0xee, 0x54, 0x12, 0x6a, 0x32, 0x96, 0xa2, 0xa4, 0x65, - 0xb0, 0x67, 0x51, 0xc3, 0x9d, 0x51, 0xd8, 0xa1, 0xfe, 0x88, 0x8a, 0x73, 0xd4, 0x4d, 0x99, 0x1d, - 0x70, 0x86, 0xee, 0x8d, 0x6b, 0x59, 0x4c, 0x35, 0x69, 0xa8, 0x22, 0x33, 0x0a, 0x2a, 0xe8, 0x1f, - 0xf9, 0x27, 0xbd, 0xec, 0xf0, 0x7a, 0x1e, 0x3d, 0x76, 0xcb, 0x5b, 0x86, 0x38, 0xdf, 0x77, 0xca, - 0x88, 0xaa, 0x77, 0x14, 0xd4, 0x69, 0xef, 0xcb, 0xd7, 0xc8, 0xcb, 0xa2, 0xcb, 0x45, 0xe8, 0x5f, - 0x2d, 0x42, 0xff, 0xd7, 0x22, 0xf4, 0x3f, 0x2f, 0x43, 0xef, 0x6a, 0x19, 0x7a, 0x3f, 0x96, 0xa1, - 0xf7, 0x7e, 0xcf, 0x16, 0x1a, 0xf7, 0xed, 0x9d, 0x79, 0xf1, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x9e, - 0xe3, 0xbd, 0x88, 0x8d, 0x03, 0x00, 0x00, +var fileDescriptor_22dc6d61d55f89c8 = []byte{ + // 427 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xb1, 0x6e, 0xd4, 0x30, + 0x18, 0xc7, 0x63, 0x38, 0x4e, 0x3a, 0x97, 0x0a, 0x30, 0xa5, 0x8a, 0x2a, 0x48, 0xaa, 0x0c, 0xa8, + 0x0c, 0x24, 0x03, 0x5b, 0xc7, 0xf4, 0xc4, 0x80, 0x28, 0x3a, 0x79, 0x83, 0x25, 0x72, 0x12, 0x93, + 0x5a, 0x17, 0xdb, 0x91, 0xed, 0x42, 0x6e, 0xe5, 0x09, 0x18, 0x19, 0x79, 0x0b, 0x5e, 0xa1, 0x1b, + 0x1d, 0x11, 0x43, 0x84, 0xee, 0xde, 0xa0, 0x4f, 0x80, 0x62, 0x57, 0x77, 0x70, 0x20, 0xa4, 0x48, + 0x2c, 0x49, 0xbe, 0x9f, 0xbe, 0xfc, 0x7f, 0x7f, 0x0f, 0x86, 0xfb, 0x85, 0xd4, 0x5c, 0xea, 0x84, + 0x33, 0x61, 0xec, 0x23, 0x6e, 0x94, 0x34, 0x12, 0xed, 0x38, 0x1e, 0xf7, 0xe8, 0x60, 0xaf, 0x92, + 0x95, 0xb4, 0x3c, 0xe9, 0xbf, 0xdc, 0x4a, 0xf4, 0x15, 0xc0, 0xf1, 0x29, 0x13, 0x86, 0x2a, 0xf4, + 0x12, 0x4e, 0x98, 0x78, 0x5b, 0x13, 0xc3, 0xa4, 0xf0, 0xc1, 0x21, 0x38, 0x9a, 0xa4, 0xf1, 0x45, + 0x17, 0x7a, 0xdf, 0xbb, 0xf0, 0x71, 0xc5, 0xcc, 0xd9, 0x79, 0x1e, 0x17, 0x92, 0x27, 0xd7, 0x2e, + 0xf7, 0x7a, 0xaa, 0xcb, 0x79, 0x62, 0x16, 0x0d, 0xd5, 0xf1, 0x94, 0x16, 0x78, 0x13, 0x80, 0xde, + 0xc3, 0x7b, 0x44, 0x88, 0x73, 0x52, 0x67, 0x8d, 0x92, 0xef, 0x98, 0x66, 0x52, 0x68, 0xff, 0x86, + 0x4d, 0x7d, 0x31, 0x2c, 0xf5, 0xaa, 0x0b, 0xfd, 0x05, 0xe1, 0xf5, 0x71, 0xf4, 0x47, 0x60, 0x84, + 0xef, 0x3a, 0x36, 0xdb, 0xa0, 0x2f, 0x23, 0x38, 0x9e, 0x11, 0x45, 0xb8, 0x46, 0x8f, 0x20, 0xec, + 0x8f, 0x9e, 0x95, 0x54, 0x48, 0xee, 0x8e, 0x84, 0x27, 0x3d, 0x99, 0xf6,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, 0xff, 0x5e, 0x81, 0xfe, 0x84, 0x94, 0x03, 0x00, 0x00, } func (m *Minter) Marshal() (dAtA []byte, err error) { @@ -192,7 +191,7 @@ func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.AnnualProvisions.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintMint(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -202,7 +201,7 @@ func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Inflation.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintMint(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -230,7 +229,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.BlocksPerYear != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.BlocksPerYear)) + i = encodeVarintMint(dAtA, i, uint64(m.BlocksPerYear)) i-- dAtA[i] = 0x30 } @@ -240,7 +239,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.GoalBonded.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintMint(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a @@ -250,7 +249,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.InflationMin.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintMint(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -260,7 +259,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.InflationMax.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintMint(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -270,22 +269,22 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.InflationRateChange.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintMint(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if len(m.MintDenom) > 0 { i -= len(m.MintDenom) copy(dAtA[i:], m.MintDenom) - i = encodeVarintTypes(dAtA, i, uint64(len(m.MintDenom))) + i = encodeVarintMint(dAtA, i, uint64(len(m.MintDenom))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintMint(dAtA []byte, offset int, v uint64) int { + offset -= sovMint(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -302,9 +301,9 @@ func (m *Minter) Size() (n int) { var l int _ = l l = m.Inflation.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovMint(uint64(l)) l = m.AnnualProvisions.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovMint(uint64(l)) return n } @@ -316,27 +315,27 @@ func (m *Params) Size() (n int) { _ = l l = len(m.MintDenom) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovMint(uint64(l)) } l = m.InflationRateChange.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovMint(uint64(l)) l = m.InflationMax.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovMint(uint64(l)) l = m.InflationMin.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovMint(uint64(l)) l = m.GoalBonded.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovMint(uint64(l)) if m.BlocksPerYear != 0 { - n += 1 + sovTypes(uint64(m.BlocksPerYear)) + n += 1 + sovMint(uint64(m.BlocksPerYear)) } return n } -func sovTypes(x uint64) (n int) { +func sovMint(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozMint(x uint64) (n int) { + return sovMint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Minter) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -346,7 +345,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -374,7 +373,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -388,11 +387,11 @@ func (m *Minter) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if postIndex > l { return io.ErrUnexpectedEOF @@ -408,7 +407,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -422,11 +421,11 @@ func (m *Minter) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if postIndex > l { return io.ErrUnexpectedEOF @@ -437,15 +436,15 @@ func (m *Minter) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipMint(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -467,7 +466,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -495,7 +494,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -509,11 +508,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if postIndex > l { return io.ErrUnexpectedEOF @@ -527,7 +526,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -541,11 +540,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if postIndex > l { return io.ErrUnexpectedEOF @@ -561,7 +560,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -575,11 +574,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if postIndex > l { return io.ErrUnexpectedEOF @@ -595,7 +594,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -609,11 +608,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if postIndex > l { return io.ErrUnexpectedEOF @@ -629,7 +628,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -643,11 +642,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if postIndex > l { return io.ErrUnexpectedEOF @@ -663,7 +662,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.BlocksPerYear = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowMint } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -677,15 +676,15 @@ func (m *Params) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipMint(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthMint } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -699,7 +698,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipMint(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -707,7 +706,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowMint } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -724,7 +723,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowMint } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -740,7 +739,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowMint } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -753,14 +752,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthMint } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupMint } depth-- case 5: @@ -769,7 +768,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthMint } if depth == 0 { return iNdEx, nil @@ -779,7 +778,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthMint = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMint = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMint = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/params/types/proposal/types.pb.go b/x/params/types/proposal/params.pb.go similarity index 75% rename from x/params/types/proposal/types.pb.go rename to x/params/types/proposal/params.pb.go index 29f95f728a8e..6ed21b9a1a3f 100644 --- a/x/params/types/proposal/types.pb.go +++ b/x/params/types/proposal/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/params/types/proposal/types.proto +// source: cosmos/params/params.proto package proposal @@ -34,7 +34,7 @@ type ParameterChangeProposal struct { func (m *ParameterChangeProposal) Reset() { *m = ParameterChangeProposal{} } func (*ParameterChangeProposal) ProtoMessage() {} func (*ParameterChangeProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_0ab50f1d22a2cb61, []int{0} + return fileDescriptor_5ac7103bc6a10dd8, []int{0} } func (m *ParameterChangeProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,7 +73,7 @@ type ParamChange struct { func (m *ParamChange) Reset() { *m = ParamChange{} } func (*ParamChange) ProtoMessage() {} func (*ParamChange) Descriptor() ([]byte, []int) { - return fileDescriptor_0ab50f1d22a2cb61, []int{1} + return fileDescriptor_5ac7103bc6a10dd8, []int{1} } func (m *ParamChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -124,36 +124,33 @@ func (m *ParamChange) GetValue() string { } func init() { - proto.RegisterType((*ParameterChangeProposal)(nil), "cosmos_sdk.x.params.v1.ParameterChangeProposal") - proto.RegisterType((*ParamChange)(nil), "cosmos_sdk.x.params.v1.ParamChange") + proto.RegisterType((*ParameterChangeProposal)(nil), "cosmos.params.ParameterChangeProposal") + proto.RegisterType((*ParamChange)(nil), "cosmos.params.ParamChange") } -func init() { - proto.RegisterFile("x/params/types/proposal/types.proto", fileDescriptor_0ab50f1d22a2cb61) -} +func init() { proto.RegisterFile("cosmos/params/params.proto", fileDescriptor_5ac7103bc6a10dd8) } -var fileDescriptor_0ab50f1d22a2cb61 = []byte{ - // 317 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xae, 0xd0, 0x2f, 0x48, - 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc8, - 0x2f, 0x4e, 0xcc, 0x81, 0x70, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xc4, 0x92, 0xf3, 0x8b, - 0x73, 0xf3, 0x8b, 0xe3, 0x8b, 0x53, 0xb2, 0xf5, 0x2a, 0xf4, 0x20, 0xea, 0xf5, 0xca, 0x0c, 0xa5, - 0xd4, 0x4a, 0x32, 0x32, 0x8b, 0x52, 0xe2, 0x0b, 0x12, 0x8b, 0x4a, 0x2a, 0xf5, 0xc1, 0x4a, 0xf5, - 0xd3, 0xf3, 0xd3, 0xf3, 0x11, 0x2c, 0x88, 0x7e, 0xa5, 0x05, 0x8c, 0x5c, 0xe2, 0x01, 0x20, 0x5d, - 0xa9, 0x25, 0xa9, 0x45, 0xce, 0x19, 0x89, 0x79, 0xe9, 0xa9, 0x01, 0x50, 0x7b, 0x84, 0x44, 0xb8, - 0x58, 0x4b, 0x32, 0x4b, 0x72, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x20, 0x1c, 0x21, - 0x05, 0x2e, 0xee, 0x94, 0xd4, 0xe2, 0xe4, 0xa2, 0xcc, 0x82, 0x92, 0xcc, 0xfc, 0x3c, 0x09, 0x26, - 0xb0, 0x1c, 0xb2, 0x90, 0x90, 0x33, 0x17, 0x7b, 0x32, 0xd8, 0xa4, 0x62, 0x09, 0x66, 0x05, 0x66, - 0x0d, 0x6e, 0x23, 0x65, 0x3d, 0xec, 0xae, 0xd4, 0x03, 0xdb, 0x0c, 0xb1, 0xd5, 0x89, 0xe5, 0xc4, - 0x3d, 0x79, 0x86, 0x20, 0x98, 0x4e, 0x2b, 0x8e, 0x8e, 0x05, 0xf2, 0x0c, 0x33, 0x16, 0xc8, 0x33, - 0x28, 0x85, 0x73, 0x71, 0x23, 0xa9, 0x13, 0x92, 0xe2, 0xe2, 0x28, 0x2e, 0x4d, 0x2a, 0x2e, 0x48, - 0x4c, 0x86, 0x39, 0x0c, 0xce, 0x17, 0x12, 0xe0, 0x62, 0xce, 0x4e, 0xad, 0x84, 0xba, 0x09, 0xc4, - 0x04, 0xf9, 0xa1, 0x2c, 0x31, 0xa7, 0x34, 0x55, 0x82, 0x19, 0xe2, 0x07, 0x30, 0xc7, 0x8a, 0x05, - 0x64, 0xb0, 0x53, 0xd0, 0x8a, 0x47, 0x72, 0x8c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, - 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, - 0xc7, 0x10, 0x65, 0x92, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x71, - 0x3e, 0x94, 0xd2, 0x2d, 0x4e, 0xc9, 0xd6, 0xc7, 0x11, 0x37, 0x49, 0x6c, 0xe0, 0x60, 0x35, 0x06, - 0x04, 0x00, 0x00, 0xff, 0xff, 0x17, 0xa9, 0xe7, 0x51, 0xbd, 0x01, 0x00, 0x00, +var fileDescriptor_5ac7103bc6a10dd8 = []byte{ + // 296 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0x51, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, + 0x42, 0xbc, 0x10, 0x39, 0x3d, 0x88, 0xa0, 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x58, 0x46, 0x1f, + 0xc4, 0x82, 0x28, 0x52, 0x9a, 0xce, 0xc8, 0x25, 0x1e, 0x00, 0x52, 0x90, 0x5a, 0x92, 0x5a, 0xe4, + 0x9c, 0x91, 0x98, 0x97, 0x9e, 0x1a, 0x50, 0x94, 0x5f, 0x90, 0x5f, 0x9c, 0x98, 0x23, 0x24, 0xc2, + 0xc5, 0x5a, 0x92, 0x59, 0x92, 0x93, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0xe1, 0x08, + 0x29, 0x70, 0x71, 0xa7, 0xa4, 0x16, 0x27, 0x17, 0x65, 0x16, 0x94, 0x64, 0xe6, 0xe7, 0x49, 0x30, + 0x81, 0xe5, 0x90, 0x85, 0x84, 0xac, 0xb8, 0xd8, 0x93, 0xc1, 0x26, 0x15, 0x4b, 0x30, 0x2b, 0x30, + 0x6b, 0x70, 0x1b, 0x49, 0xe9, 0xa1, 0x38, 0x45, 0x0f, 0x6c, 0x21, 0xc4, 0x32, 0x27, 0x96, 0x13, + 0xf7, 0xe4, 0x19, 0x82, 0x60, 0x1a, 0xac, 0x38, 0x3a, 0x16, 0xc8, 0x33, 0xcc, 0x58, 0x20, 0xcf, + 0xa0, 0x14, 0xce, 0xc5, 0x8d, 0xa4, 0x4e, 0x48, 0x8a, 0x8b, 0xa3, 0xb8, 0x34, 0xa9, 0xb8, 0x20, + 0x31, 0x19, 0xe6, 0x1e, 0x38, 0x5f, 0x48, 0x80, 0x8b, 0x39, 0x3b, 0xb5, 0x12, 0xea, 0x14, 0x10, + 0x13, 0xe4, 0xf4, 0xb2, 0xc4, 0x9c, 0xd2, 0x54, 0x09, 0x66, 0x88, 0xd3, 0xc1, 0x1c, 0x2b, 0x16, + 0x90, 0xc1, 0x4e, 0x41, 0x2b, 0x1e, 0xc9, 0x31, 0x9e, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, + 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, + 0x1c, 0x43, 0x94, 0x49, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x34, + 0x70, 0x21, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 0x05, 0x2c, 0xa4, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, + 0xf5, 0x0b, 0xa0, 0x41, 0x95, 0xc4, 0x06, 0x0e, 0x4d, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x67, 0x91, 0x5a, 0x29, 0x90, 0x01, 0x00, 0x00, } func (this *ParameterChangeProposal) Equal(that interface{}) bool { @@ -249,7 +246,7 @@ func (m *ParameterChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintParams(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -258,14 +255,14 @@ func (m *ParameterChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Description))) + i = encodeVarintParams(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 = encodeVarintTypes(dAtA, i, uint64(len(m.Title))) + i = encodeVarintParams(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -295,29 +292,29 @@ func (m *ParamChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Value) > 0 { i -= len(m.Value) copy(dAtA[i:], m.Value) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) + i = encodeVarintParams(dAtA, i, uint64(len(m.Value))) i-- dAtA[i] = 0x1a } if len(m.Key) > 0 { i -= len(m.Key) copy(dAtA[i:], m.Key) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Key))) + i = encodeVarintParams(dAtA, i, uint64(len(m.Key))) i-- dAtA[i] = 0x12 } if len(m.Subspace) > 0 { i -= len(m.Subspace) copy(dAtA[i:], m.Subspace) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Subspace))) + i = encodeVarintParams(dAtA, i, uint64(len(m.Subspace))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -335,16 +332,16 @@ func (m *ParameterChangeProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovParams(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovParams(uint64(l)) } if len(m.Changes) > 0 { for _, e := range m.Changes { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovParams(uint64(l)) } } return n @@ -358,24 +355,24 @@ func (m *ParamChange) Size() (n int) { _ = l l = len(m.Subspace) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovParams(uint64(l)) } l = len(m.Key) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovParams(uint64(l)) } l = len(m.Value) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovParams(uint64(l)) } return n } -func sovTypes(x uint64) (n int) { +func sovParams(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -385,7 +382,7 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowParams } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -413,7 +410,7 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowParams } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -427,11 +424,11 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if postIndex > l { return io.ErrUnexpectedEOF @@ -445,7 +442,7 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowParams } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -459,11 +456,11 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if postIndex > l { return io.ErrUnexpectedEOF @@ -477,7 +474,7 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowParams } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -490,11 +487,11 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if postIndex > l { return io.ErrUnexpectedEOF @@ -506,15 +503,15 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipParams(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -536,7 +533,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowParams } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -564,7 +561,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowParams } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -578,11 +575,11 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if postIndex > l { return io.ErrUnexpectedEOF @@ -596,7 +593,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowParams } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -610,11 +607,11 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if postIndex > l { return io.ErrUnexpectedEOF @@ -628,7 +625,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowParams } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -642,11 +639,11 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if postIndex > l { return io.ErrUnexpectedEOF @@ -655,15 +652,15 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipParams(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthParams } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -677,7 +674,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipParams(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -685,7 +682,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowParams } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -702,7 +699,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowParams } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -718,7 +715,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowParams } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -731,14 +728,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthParams } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupParams } depth-- case 5: @@ -747,7 +744,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthParams } if depth == 0 { return iNdEx, nil @@ -757,7 +754,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/slashing/types/types.pb.go b/x/slashing/types/slashing.pb.go similarity index 73% rename from x/slashing/types/types.pb.go rename to x/slashing/types/slashing.pb.go index 7358555a1043..ffc106bfb167 100644 --- a/x/slashing/types/types.pb.go +++ b/x/slashing/types/slashing.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/slashing/types/types.proto +// source: cosmos/slashing/slashing.proto package types @@ -38,7 +38,7 @@ func (m *MsgUnjail) Reset() { *m = MsgUnjail{} } func (m *MsgUnjail) String() string { return proto.CompactTextString(m) } func (*MsgUnjail) ProtoMessage() {} func (*MsgUnjail) Descriptor() ([]byte, []int) { - return fileDescriptor_57cb37764f972476, []int{0} + return fileDescriptor_3d04e6c6c2071212, []int{0} } func (m *MsgUnjail) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -92,7 +92,7 @@ type ValidatorSigningInfo struct { func (m *ValidatorSigningInfo) Reset() { *m = ValidatorSigningInfo{} } func (*ValidatorSigningInfo) ProtoMessage() {} func (*ValidatorSigningInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_57cb37764f972476, []int{1} + return fileDescriptor_3d04e6c6c2071212, []int{1} } func (m *ValidatorSigningInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -164,45 +164,44 @@ func (m *ValidatorSigningInfo) GetMissedBlocksCounter() int64 { } func init() { - proto.RegisterType((*MsgUnjail)(nil), "cosmos_sdk.x.slashing.v1.MsgUnjail") - proto.RegisterType((*ValidatorSigningInfo)(nil), "cosmos_sdk.x.slashing.v1.ValidatorSigningInfo") -} - -func init() { proto.RegisterFile("x/slashing/types/types.proto", fileDescriptor_57cb37764f972476) } - -var fileDescriptor_57cb37764f972476 = []byte{ - // 492 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbf, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0x73, 0x04, 0x4a, 0xb9, 0x84, 0x0e, 0x2e, 0x08, 0x2b, 0xaa, 0x7c, 0x91, 0x07, 0x94, - 0xa5, 0xb6, 0x28, 0x5b, 0x36, 0xdc, 0x05, 0xc4, 0x2f, 0xc9, 0xb4, 0x1d, 0x18, 0xb0, 0xce, 0xb9, - 0xcb, 0xf9, 0x88, 0x7d, 0x17, 0xf9, 0xce, 0x55, 0xb2,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 0xaf, 0x32, 0x37, 0xdc, 0x35, 0x3c, 0xa8, 0xf1, 0xa1, 0xa1, 0xc3, - 0xed, 0xcf, 0xe7, 0xa8, 0xf5, 0xf3, 0x1c, 0x81, 0xe0, 0xe5, 0x97, 0x85, 0x03, 0x2e, 0x16, 0x0e, - 0xb8, 0x5c, 0x38, 0xe0, 0xc7, 0xc2, 0x01, 0x67, 0x4b, 0xa7, 0x75, 0xb9, 0x74, 0x5a, 0xdf, 0x96, - 0x4e, 0xeb, 0xfd, 0xbf, 0x9f, 0xc6, 0xcd, 0xf7, 0x1f, 0x6f, 0xd5, 0xd7, 0xf1, 0xf4, 0x77, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x72, 0x9e, 0xc6, 0x73, 0x1a, 0x03, 0x00, 0x00, + proto.RegisterType((*MsgUnjail)(nil), "cosmos.slashing.MsgUnjail") + proto.RegisterType((*ValidatorSigningInfo)(nil), "cosmos.slashing.ValidatorSigningInfo") +} + +func init() { proto.RegisterFile("cosmos/slashing/slashing.proto", fileDescriptor_3d04e6c6c2071212) } + +var fileDescriptor_3d04e6c6c2071212 = []byte{ + // 476 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbf, 0x6f, 0xd4, 0x30, + 0x14, 0xc7, 0xcf, 0x1c, 0x94, 0xe2, 0x3b, 0x8a, 0x94, 0x16, 0x11, 0x9d, 0x90, 0x1d, 0x65, 0xba, + 0xa5, 0x89, 0x54, 0xb6, 0xdb, 0x48, 0x17, 0x10, 0xbf, 0xa4, 0xd0, 0x76, 0x60, 0x20, 0x72, 0x2e, + 0x3e, 0x9f, 0x69, 0x62, 0x9f, 0x62, 0x07, 0xb5, 0x2b, 0x7f, 0x41, 0x47, 0xc6, 0x8e, 0xfc, 0x11, + 0xfc, 0x01, 0x1d, 0x3b, 0x32, 0x05, 0x74, 0xb7, 0x20, 0xc6, 0x1b, 0x3b, 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2d, 0x50, 0xe7, 0x72, 0x81, 0x3a, 0xdf, 0x16, 0xa8, 0xf3, + 0xee, 0xdf, 0xa3, 0x71, 0x72, 0x33, 0xe1, 0xa6, 0x73, 0xe9, 0x86, 0xf9, 0x8e, 0x27, 0xbf, 0x03, + 0x00, 0x00, 0xff, 0xff, 0xe3, 0x3b, 0x55, 0x14, 0x01, 0x03, 0x00, 0x00, } func (this *MsgUnjail) Equal(that interface{}) bool { @@ -291,7 +290,7 @@ func (m *MsgUnjail) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ValidatorAddr) > 0 { i -= len(m.ValidatorAddr) copy(dAtA[i:], m.ValidatorAddr) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddr))) + i = encodeVarintSlashing(dAtA, i, uint64(len(m.ValidatorAddr))) i-- dAtA[i] = 0xa } @@ -319,7 +318,7 @@ func (m *ValidatorSigningInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.MissedBlocksCounter != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MissedBlocksCounter)) + i = encodeVarintSlashing(dAtA, i, uint64(m.MissedBlocksCounter)) i-- dAtA[i] = 0x30 } @@ -338,31 +337,31 @@ func (m *ValidatorSigningInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err1 } i -= n1 - i = encodeVarintTypes(dAtA, i, uint64(n1)) + i = encodeVarintSlashing(dAtA, i, uint64(n1)) i-- dAtA[i] = 0x22 if m.IndexOffset != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.IndexOffset)) + i = encodeVarintSlashing(dAtA, i, uint64(m.IndexOffset)) i-- dAtA[i] = 0x18 } if m.StartHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.StartHeight)) + i = encodeVarintSlashing(dAtA, i, uint64(m.StartHeight)) i-- dAtA[i] = 0x10 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) + i = encodeVarintSlashing(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintSlashing(dAtA []byte, offset int, v uint64) int { + offset -= sovSlashing(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -380,7 +379,7 @@ func (m *MsgUnjail) Size() (n int) { _ = l l = len(m.ValidatorAddr) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovSlashing(uint64(l)) } return n } @@ -393,30 +392,30 @@ func (m *ValidatorSigningInfo) Size() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovSlashing(uint64(l)) } if m.StartHeight != 0 { - n += 1 + sovTypes(uint64(m.StartHeight)) + n += 1 + sovSlashing(uint64(m.StartHeight)) } if m.IndexOffset != 0 { - n += 1 + sovTypes(uint64(m.IndexOffset)) + n += 1 + sovSlashing(uint64(m.IndexOffset)) } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.JailedUntil) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovSlashing(uint64(l)) if m.Tombstoned { n += 2 } if m.MissedBlocksCounter != 0 { - n += 1 + sovTypes(uint64(m.MissedBlocksCounter)) + n += 1 + sovSlashing(uint64(m.MissedBlocksCounter)) } return n } -func sovTypes(x uint64) (n int) { +func sovSlashing(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozSlashing(x uint64) (n int) { + return sovSlashing(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgUnjail) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -426,7 +425,7 @@ func (m *MsgUnjail) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowSlashing } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -454,7 +453,7 @@ func (m *MsgUnjail) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowSlashing } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -467,11 +466,11 @@ func (m *MsgUnjail) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } if postIndex > l { return io.ErrUnexpectedEOF @@ -483,15 +482,15 @@ func (m *MsgUnjail) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipSlashing(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -513,7 +512,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowSlashing } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -541,7 +540,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowSlashing } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -554,11 +553,11 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } if postIndex > l { return io.ErrUnexpectedEOF @@ -575,7 +574,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { m.StartHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowSlashing } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -594,7 +593,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { m.IndexOffset = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowSlashing } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -613,7 +612,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowSlashing } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -626,11 +625,11 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } if postIndex > l { return io.ErrUnexpectedEOF @@ -646,7 +645,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowSlashing } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -666,7 +665,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { m.MissedBlocksCounter = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowSlashing } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -680,15 +679,15 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipSlashing(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthSlashing } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -702,7 +701,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipSlashing(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -710,7 +709,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowSlashing } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -727,7 +726,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowSlashing } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -743,7 +742,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowSlashing } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -756,14 +755,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthSlashing } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupSlashing } depth-- case 5: @@ -772,7 +771,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthSlashing } if depth == 0 { return iNdEx, nil @@ -782,7 +781,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthSlashing = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSlashing = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSlashing = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/staking/types/types.pb.go b/x/staking/types/staking.pb.go similarity index 82% rename from x/staking/types/types.pb.go rename to x/staking/types/staking.pb.go index ca9394854763..3a473a7d70ff 100644 --- a/x/staking/types/types.pb.go +++ b/x/staking/types/staking.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/staking/types/types.proto +// source: cosmos/staking/staking.proto package types @@ -47,7 +47,7 @@ func (m *MsgCreateValidator) Reset() { *m = MsgCreateValidator{} } func (m *MsgCreateValidator) String() string { return proto.CompactTextString(m) } func (*MsgCreateValidator) ProtoMessage() {} func (*MsgCreateValidator) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{0} + return fileDescriptor_146003fcdb99b683, []int{0} } func (m *MsgCreateValidator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -135,7 +135,7 @@ func (m *MsgEditValidator) Reset() { *m = MsgEditValidator{} } func (m *MsgEditValidator) String() string { return proto.CompactTextString(m) } func (*MsgEditValidator) ProtoMessage() {} func (*MsgEditValidator) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{1} + return fileDescriptor_146003fcdb99b683, []int{1} } func (m *MsgEditValidator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -190,7 +190,7 @@ func (m *MsgDelegate) Reset() { *m = MsgDelegate{} } func (m *MsgDelegate) String() string { return proto.CompactTextString(m) } func (*MsgDelegate) ProtoMessage() {} func (*MsgDelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{2} + return fileDescriptor_146003fcdb99b683, []int{2} } func (m *MsgDelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -253,7 +253,7 @@ func (m *MsgBeginRedelegate) Reset() { *m = MsgBeginRedelegate{} } func (m *MsgBeginRedelegate) String() string { return proto.CompactTextString(m) } func (*MsgBeginRedelegate) ProtoMessage() {} func (*MsgBeginRedelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{3} + return fileDescriptor_146003fcdb99b683, []int{3} } func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -322,7 +322,7 @@ func (m *MsgUndelegate) Reset() { *m = MsgUndelegate{} } func (m *MsgUndelegate) String() string { return proto.CompactTextString(m) } func (*MsgUndelegate) ProtoMessage() {} func (*MsgUndelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{4} + return fileDescriptor_146003fcdb99b683, []int{4} } func (m *MsgUndelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -383,7 +383,7 @@ func (m *HistoricalInfo) Reset() { *m = HistoricalInfo{} } func (m *HistoricalInfo) String() string { return proto.CompactTextString(m) } func (*HistoricalInfo) ProtoMessage() {} func (*HistoricalInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{5} + return fileDescriptor_146003fcdb99b683, []int{5} } func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -437,7 +437,7 @@ type CommissionRates struct { func (m *CommissionRates) Reset() { *m = CommissionRates{} } func (*CommissionRates) ProtoMessage() {} func (*CommissionRates) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{6} + return fileDescriptor_146003fcdb99b683, []int{6} } func (m *CommissionRates) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -475,7 +475,7 @@ type Commission struct { func (m *Commission) Reset() { *m = Commission{} } func (*Commission) ProtoMessage() {} func (*Commission) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{7} + return fileDescriptor_146003fcdb99b683, []int{7} } func (m *Commission) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -523,7 +523,7 @@ type Description struct { func (m *Description) Reset() { *m = Description{} } func (*Description) ProtoMessage() {} func (*Description) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{8} + return fileDescriptor_146003fcdb99b683, []int{8} } func (m *Description) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -611,7 +611,7 @@ type Validator struct { func (m *Validator) Reset() { *m = Validator{} } func (*Validator) ProtoMessage() {} func (*Validator) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{9} + return fileDescriptor_146003fcdb99b683, []int{9} } func (m *Validator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -651,7 +651,7 @@ type DVPair struct { func (m *DVPair) Reset() { *m = DVPair{} } func (*DVPair) ProtoMessage() {} func (*DVPair) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{10} + return fileDescriptor_146003fcdb99b683, []int{10} } func (m *DVPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -703,7 +703,7 @@ func (m *DVPairs) Reset() { *m = DVPairs{} } func (m *DVPairs) String() string { return proto.CompactTextString(m) } func (*DVPairs) ProtoMessage() {} func (*DVPairs) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{11} + return fileDescriptor_146003fcdb99b683, []int{11} } func (m *DVPairs) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -752,7 +752,7 @@ type DVVTriplet struct { func (m *DVVTriplet) Reset() { *m = DVVTriplet{} } func (*DVVTriplet) ProtoMessage() {} func (*DVVTriplet) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{12} + return fileDescriptor_146003fcdb99b683, []int{12} } func (m *DVVTriplet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -811,7 +811,7 @@ func (m *DVVTriplets) Reset() { *m = DVVTriplets{} } func (m *DVVTriplets) String() string { return proto.CompactTextString(m) } func (*DVVTriplets) ProtoMessage() {} func (*DVVTriplets) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{13} + return fileDescriptor_146003fcdb99b683, []int{13} } func (m *DVVTriplets) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -859,7 +859,7 @@ type Delegation struct { func (m *Delegation) Reset() { *m = Delegation{} } func (*Delegation) ProtoMessage() {} func (*Delegation) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{14} + return fileDescriptor_146003fcdb99b683, []int{14} } func (m *Delegation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -913,7 +913,7 @@ type UnbondingDelegation struct { func (m *UnbondingDelegation) Reset() { *m = UnbondingDelegation{} } func (*UnbondingDelegation) ProtoMessage() {} func (*UnbondingDelegation) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{15} + return fileDescriptor_146003fcdb99b683, []int{15} } func (m *UnbondingDelegation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -974,7 +974,7 @@ type UnbondingDelegationEntry struct { func (m *UnbondingDelegationEntry) Reset() { *m = UnbondingDelegationEntry{} } func (*UnbondingDelegationEntry) ProtoMessage() {} func (*UnbondingDelegationEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{16} + return fileDescriptor_146003fcdb99b683, []int{16} } func (m *UnbondingDelegationEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1028,7 +1028,7 @@ type RedelegationEntry struct { func (m *RedelegationEntry) Reset() { *m = RedelegationEntry{} } func (*RedelegationEntry) ProtoMessage() {} func (*RedelegationEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{17} + return fileDescriptor_146003fcdb99b683, []int{17} } func (m *RedelegationEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1083,7 +1083,7 @@ type Redelegation struct { func (m *Redelegation) Reset() { *m = Redelegation{} } func (*Redelegation) ProtoMessage() {} func (*Redelegation) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{18} + return fileDescriptor_146003fcdb99b683, []int{18} } func (m *Redelegation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1152,7 +1152,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_c669c0a3ee1b124c, []int{19} + return fileDescriptor_146003fcdb99b683, []int{19} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1217,138 +1217,136 @@ func (m *Params) GetBondDenom() string { } func init() { - proto.RegisterType((*MsgCreateValidator)(nil), "cosmos_sdk.x.staking.v1.MsgCreateValidator") - proto.RegisterType((*MsgEditValidator)(nil), "cosmos_sdk.x.staking.v1.MsgEditValidator") - proto.RegisterType((*MsgDelegate)(nil), "cosmos_sdk.x.staking.v1.MsgDelegate") - proto.RegisterType((*MsgBeginRedelegate)(nil), "cosmos_sdk.x.staking.v1.MsgBeginRedelegate") - proto.RegisterType((*MsgUndelegate)(nil), "cosmos_sdk.x.staking.v1.MsgUndelegate") - proto.RegisterType((*HistoricalInfo)(nil), "cosmos_sdk.x.staking.v1.HistoricalInfo") - proto.RegisterType((*CommissionRates)(nil), "cosmos_sdk.x.staking.v1.CommissionRates") - proto.RegisterType((*Commission)(nil), "cosmos_sdk.x.staking.v1.Commission") - proto.RegisterType((*Description)(nil), "cosmos_sdk.x.staking.v1.Description") - proto.RegisterType((*Validator)(nil), "cosmos_sdk.x.staking.v1.Validator") - proto.RegisterType((*DVPair)(nil), "cosmos_sdk.x.staking.v1.DVPair") - proto.RegisterType((*DVPairs)(nil), "cosmos_sdk.x.staking.v1.DVPairs") - proto.RegisterType((*DVVTriplet)(nil), "cosmos_sdk.x.staking.v1.DVVTriplet") - proto.RegisterType((*DVVTriplets)(nil), "cosmos_sdk.x.staking.v1.DVVTriplets") - proto.RegisterType((*Delegation)(nil), "cosmos_sdk.x.staking.v1.Delegation") - proto.RegisterType((*UnbondingDelegation)(nil), "cosmos_sdk.x.staking.v1.UnbondingDelegation") - proto.RegisterType((*UnbondingDelegationEntry)(nil), "cosmos_sdk.x.staking.v1.UnbondingDelegationEntry") - proto.RegisterType((*RedelegationEntry)(nil), "cosmos_sdk.x.staking.v1.RedelegationEntry") - proto.RegisterType((*Redelegation)(nil), "cosmos_sdk.x.staking.v1.Redelegation") - proto.RegisterType((*Params)(nil), "cosmos_sdk.x.staking.v1.Params") -} - -func init() { proto.RegisterFile("x/staking/types/types.proto", fileDescriptor_c669c0a3ee1b124c) } - -var fileDescriptor_c669c0a3ee1b124c = []byte{ - // 1682 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcd, 0x6f, 0x23, 0x49, - 0x15, 0x4f, 0xdb, 0x8e, 0x9d, 0x3c, 0x4f, 0xec, 0xa4, 0xa3, 0xc9, 0x78, 0xb2, 0xac, 0x3b, 0xf4, - 0xa2, 0x55, 0x84, 0x58, 0x5b, 0xd9, 0x45, 0x42, 0xca, 0x5e, 0x76, 0x1c, 0x27, 0x4a, 0x50, 0x82, - 0x66, 0x3b, 0xb3, 0x39, 0xf0, 0x21, 0xab, 0xdc, 0x5d, 0x69, 0x17, 0x71, 0x77, 0x9b, 0xae, 0x72, - 0xd6, 0x41, 0x5c, 0x91, 0x10, 0x12, 0x62, 0x2f, 0x48, 0x7b, 0x1c, 0xf1, 0x0f, 0xf0, 0x1f, 0xa0, - 0xe1, 0x36, 0xdc, 0x46, 0x1c, 0x10, 0x70, 0x30, 0x68, 0xe6, 0x82, 0x38, 0x21, 0x1f, 0x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, - 0x6f, 0x41, 0x31, 0xe0, 0x88, 0xfb, 0x44, 0x20, 0xbe, 0x16, 0x3f, 0x59, 0x24, 0x3e, 0xea, 0x06, - 0x38, 0x68, 0xb0, 0x2b, 0x16, 0xea, 0x21, 0xa8, 0x9d, 0xe8, 0x09, 0xad, 0x15, 0xdb, 0x32, 0x90, - 0x7f, 0x77, 0x34, 0xd4, 0xee, 0x0a, 0xf9, 0x71, 0x1e, 0xdd, 0x58, 0x89, 0x89, 0x21, 0xda, 0x37, - 0x01, 0x82, 0x73, 0xb5, 0x2c, 0xec, 0x7a, 0x8e, 0xbc, 0xf8, 0xde, 0x1e, 0x0d, 0xb5, 0x15, 0x81, - 0x12, 0x7f, 0xd3, 0x8d, 0xc5, 0x60, 0xd1, 0x0c, 0x7e, 0xc7, 0x86, 0x6f, 0xec, 0x3d, 0x7e, 0x5a, - 0x55, 0x9e, 0x3c, 0xad, 0x2a, 0x7f, 0x7b, 0x5a, 0x55, 0xbe, 0x78, 0x56, 0x9d, 0x7b, 0xf2, 0xac, - 0x3a, 0xf7, 0xa7, 0x67, 0xd5, 0xb9, 0xef, 0x7e, 0xe3, 0xb9, 0xc1, 0x92, 0xfa, 0x6b, 0x6c, 0x3b, - 0xcf, 0xbd, 0xf2, 0xd1, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x93, 0x44, 0xcc, 0xa7, 0x1d, - 0x00, 0x00, + proto.RegisterType((*MsgCreateValidator)(nil), "cosmos.staking.MsgCreateValidator") + proto.RegisterType((*MsgEditValidator)(nil), "cosmos.staking.MsgEditValidator") + proto.RegisterType((*MsgDelegate)(nil), "cosmos.staking.MsgDelegate") + proto.RegisterType((*MsgBeginRedelegate)(nil), "cosmos.staking.MsgBeginRedelegate") + proto.RegisterType((*MsgUndelegate)(nil), "cosmos.staking.MsgUndelegate") + proto.RegisterType((*HistoricalInfo)(nil), "cosmos.staking.HistoricalInfo") + proto.RegisterType((*CommissionRates)(nil), "cosmos.staking.CommissionRates") + proto.RegisterType((*Commission)(nil), "cosmos.staking.Commission") + proto.RegisterType((*Description)(nil), "cosmos.staking.Description") + proto.RegisterType((*Validator)(nil), "cosmos.staking.Validator") + proto.RegisterType((*DVPair)(nil), "cosmos.staking.DVPair") + proto.RegisterType((*DVPairs)(nil), "cosmos.staking.DVPairs") + proto.RegisterType((*DVVTriplet)(nil), "cosmos.staking.DVVTriplet") + proto.RegisterType((*DVVTriplets)(nil), "cosmos.staking.DVVTriplets") + proto.RegisterType((*Delegation)(nil), "cosmos.staking.Delegation") + proto.RegisterType((*UnbondingDelegation)(nil), "cosmos.staking.UnbondingDelegation") + proto.RegisterType((*UnbondingDelegationEntry)(nil), "cosmos.staking.UnbondingDelegationEntry") + proto.RegisterType((*RedelegationEntry)(nil), "cosmos.staking.RedelegationEntry") + proto.RegisterType((*Redelegation)(nil), "cosmos.staking.Redelegation") + proto.RegisterType((*Params)(nil), "cosmos.staking.Params") +} + +func init() { proto.RegisterFile("cosmos/staking/staking.proto", fileDescriptor_146003fcdb99b683) } + +var fileDescriptor_146003fcdb99b683 = []byte{ + // 1657 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcd, 0x6f, 0x1b, 0xc7, + 0x15, 0xd7, 0x92, 0x14, 0x25, 0x3d, 0x4a, 0xa4, 0xb4, 0xaa, 0x65, 0x4a, 0xb6, 0xb9, 0xf2, 0x1e, + 0x0a, 0xa1, 0xa8, 0x29, 0xd4, 0x2d, 0x60, 0x40, 0x6d, 0x81, 0x8a, 0xa4, 0x04, 0x09, 0xb5, 0x00, + 0x77, 0x65, 0xeb, 0xd0, 0x16, 0x20, 0x86, 0xbb, 0xa3, 0xd5, 0x56, 0xdc, 0x5d, 0x76, 0x67, 0x68, + 0x4b, 0x45, 0xaf, 0x05, 0x8a, 0xa2, 0x45, 0x7d, 0xf4, 0xd1, 0xc8, 0x1f, 0x90, 0x1c, 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d5, 0xbe, 0x88, 0x74, 0xe3, 0x99, 0x03, 0xde, 0x24, + 0xdb, 0xec, 0xf3, 0x9e, 0xa6, 0x18, 0x25, 0x33, 0xe5, 0x82, 0xbf, 0x40, 0xa1, 0xdb, 0xb1, 0x10, + 0xc5, 0x4d, 0x36, 0xdb, 0xca, 0x89, 0x71, 0xa9, 0x2a, 0xe6, 0xda, 0x6a, 0x38, 0xd7, 0x56, 0xef, + 0x87, 0x83, 0x6f, 0xad, 0xc2, 0x64, 0xf5, 0x7b, 0x9a, 0x2a, 0x8e, 0x93, 0x60, 0xd6, 0x1f, 0x7f, + 0xae, 0x29, 0x06, 0x08, 0x0a, 0x63, 0x38, 0x79, 0x96, 0x42, 0x62, 0xb6, 0x50, 0xcb, 0x30, 0xe1, + 0xfa, 0x9e, 0x73, 0x28, 0x43, 0x71, 0xca, 0x08, 0x97, 0xea, 0x12, 0x4c, 0x3a, 0x16, 0xf6, 0xa8, + 0x43, 0x8f, 0x85, 0x3f, 0x8d, 0x68, 0xcd, 0xb8, 0x1e, 0xe1, 0x16, 0x71, 0x42, 0x2f, 0x18, 0xe1, + 0x52, 0xdd, 0x84, 0x59, 0x82, 0xcd, 0x6e, 0xe0, 0xd0, 0xe3, 0xa6, 0xe9, 0x7b, 0x14, 0x99, 0x54, + 0x36, 0xed, 0x6b, 0xfd, 0x9e, 0x76, 0x55, 0xec, 0x35, 0x8d, 0xd0, 0x8d, 0x52, 0x48, 0xaa, 0x0b, + 0x0a, 0xd3, 0x60, 0x61, 0x8a, 0x9c, 0xb6, 0x18, 0xfa, 0xa6, 0x8c, 0x70, 0x99, 0x38, 0xcb, 0xbb, + 0x13, 0x30, 0x15, 0xcf, 0x55, 0x8f, 0x60, 0xd6, 0xef, 0xe0, 0x60, 0x48, 0x3d, 0xba, 0x1b, 0x6b, + 0x4e, 0x23, 0x2e, 0x50, 0x12, 0x4a, 0xa1, 0x8c, 0xb0, 0x22, 0x6c, 0xb2, 0x78, 0xf0, 0x08, 0xf6, + 0x48, 0x97, 0x34, 0xe5, 0xdc, 0x98, 0x49, 0x1f, 0x39, 0x8d, 0xd0, 0x59, 0x04, 0x48, 0xd2, 0x3d, + 0x31, 0x5d, 0x2e, 0x40, 0xfe, 0x6f, 0xc8, 0x69, 0x63, 0x8b, 0xdb, 0x74, 0xd2, 0x90, 0x2b, 0x75, + 0x1b, 0xf2, 0x84, 0x22, 0xda, 0x15, 0xa3, 0xf7, 0x78, 0xed, 0x57, 0x23, 0xee, 0xb9, 0xe6, 0x7b, + 0xd6, 0x2e, 0x67, 0x34, 0xa4, 0x00, 0x75, 0x13, 0xf2, 0xd4, 0x3f, 0xc4, 0x9e, 0x34, 0xea, 0xb9, + 0x32, 0x7d, 0xdb, 0xa3, 0x86, 0xe4, 0x56, 0x29, 0xc4, 0x45, 0xb9, 0x49, 0x0e, 0x50, 0x80, 0x89, + 0x18, 0x95, 0x6b, 0xdb, 0xe7, 0x4e, 0xc7, 0xab, 0xe9, 0x4e, 0x21, 0xe4, 0xe9, 0x46, 0x29, 0x22, + 0xed, 0x72, 0x4a, 0x7a, 0x72, 0x9e, 0xb8, 0xd0, 0xe4, 0xbc, 0x09, 0xb3, 0x5d, 0xaf, 0xe5, 0x7b, + 0x96, 0xe3, 0xd9, 0xcd, 0x03, 0xec, 0xd8, 0x07, 0xb4, 0x3c, 0xb9, 0xac, 0xac, 0x64, 0x93, 0xde, + 0x4a, 0x23, 0x74, 0xa3, 0x14, 0x91, 0xb6, 0x38, 0x45, 0xb5, 0xa0, 0x18, 0xa3, 0x78, 0xca, 0x4e, + 0x9d, 0x99, 0xb2, 0x37, 0x65, 0xca, 0x5e, 0x49, 0x6b, 0x89, 0xb3, 0x76, 0x26, 0x22, 0x32, 0x36, + 0xf5, 0x0f, 0x27, 0xae, 0x91, 0x20, 0x35, 0x9c, 0x5a, 0x65, 0x46, 0xbf, 0x41, 0x16, 0x5e, 0xcb, + 0x0d, 0x72, 0x6d, 0xfa, 0xdf, 0x4f, 0xb5, 0x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x46, 0x1c, 0xa2, + 0x75, 0xd9, 0x91, 0xe3, 0x67, 0xa9, 0xa4, 0x00, 0xd1, 0x92, 0x8b, 0x31, 0x95, 0xf7, 0xe4, 0xbf, + 0x43, 0xc9, 0xf1, 0x1c, 0xea, 0xa0, 0x76, 0xb3, 0x85, 0xda, 0xc8, 0x33, 0x2f, 0x72, 0x15, 0x11, + 0xdd, 0x54, 0xaa, 0x4d, 0x89, 0xd3, 0x8d, 0xa2, 0xa4, 0xd4, 0x04, 0x81, 0x79, 0x24, 0x54, 0x95, + 0xbb, 0xd0, 0xe0, 0x16, 0xb2, 0x27, 0x3c, 0xf2, 0xbf, 0x2c, 0xcc, 0x45, 0xef, 0x33, 0x97, 0xae, + 0x18, 0xd5, 0x15, 0x3b, 0x00, 0xa2, 0x80, 0xb0, 0xce, 0x71, 0x01, 0x6f, 0xb0, 0x12, 0x34, 0x25, + 0x24, 0x34, 0x08, 0x4d, 0xf8, 0xe3, 0xab, 0x2c, 0x4c, 0x27, 0xfd, 0x71, 0xd9, 0xd2, 0xdf, 0xa0, + 0x17, 0xb3, 0xf5, 0xb8, 0x24, 0xe6, 0x78, 0x49, 0xbc, 0x99, 0x2e, 0x89, 0x03, 0xa9, 0x74, 0x7a, + 0x2d, 0xfc, 0x26, 0x03, 0xf9, 0x7b, 0x28, 0x40, 0x2e, 0x51, 0xcd, 0x81, 0x5b, 0x84, 0x78, 0x49, + 0x58, 0x1c, 0x48, 0x94, 0x86, 0xfc, 0x83, 0xd6, 0x19, 0x97, 0x88, 0x27, 0x43, 0x2f, 0x11, 0x45, + 0x17, 0x1d, 0x35, 0xa3, 0x73, 0x09, 0x27, 0xce, 0xd4, 0x16, 0x63, 0x29, 0x27, 0xbf, 0x8b, 0xb7, + 0x90, 0xe8, 0x6a, 0x4d, 0xd4, 0x3b, 0x50, 0x60, 0x88, 0xb8, 0x2b, 0x30, 0xf6, 0x85, 0xf8, 0xf1, + 0x21, 0xf1, 0x51, 0x37, 0xc0, 0x45, 0x47, 0x1b, 0x62, 0xa1, 0xde, 0x05, 0xf5, 0x20, 0x7a, 0xfa, + 0x6a, 0xc6, 0x26, 0x64, 0xfc, 0x37, 0xfa, 0x3d, 0x6d, 0x51, 0xf0, 0x0f, 0x62, 0x74, 0x63, 0x2e, + 0x26, 0x86, 0xd2, 0x7e, 0x03, 0xc0, 0xce, 0xd5, 0xb4, 0xb0, 0xe7, 0xbb, 0xf2, 0x0a, 0x7b, 0xa5, + 0xdf, 0xd3, 0xe6, 0x84, 0x94, 0xf8, 0x9b, 0x6e, 0x4c, 0xb1, 0x45, 0x83, 0xfd, 0x8e, 0x0d, 0x5f, + 0xdb, 0x7c, 0xf6, 0xa2, 0xa2, 0x3c, 0x7f, 0x51, 0x51, 0xbe, 0x78, 0x51, 0x51, 0x1e, 0xbf, 0xac, + 0x8c, 0x3d, 0x7f, 0x59, 0x19, 0xfb, 0xf4, 0x65, 0x65, 0xec, 0xcf, 0xbf, 0xfc, 0xde, 0x18, 0x39, + 0x8a, 0xfe, 0xbe, 0xc9, 0xa3, 0xa5, 0x95, 0xe7, 0x5e, 0xf9, 0xf5, 0x77, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x28, 0x97, 0x39, 0x40, 0xfe, 0x1c, 0x00, 0x00, } func (this *MsgCreateValidator) Equal(that interface{}) bool { @@ -1994,28 +1992,28 @@ func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a if len(m.Pubkey) > 0 { i -= len(m.Pubkey) copy(dAtA[i:], m.Pubkey) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Pubkey))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Pubkey))) i-- dAtA[i] = 0x32 } if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorAddress))) i-- dAtA[i] = 0x2a } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0x22 } @@ -2025,7 +2023,7 @@ func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.MinSelfDelegation.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -2035,7 +2033,7 @@ func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -2045,7 +2043,7 @@ func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -2079,7 +2077,7 @@ func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.MinSelfDelegation.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -2091,7 +2089,7 @@ func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.CommissionRate.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -2099,7 +2097,7 @@ func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorAddress))) i-- dAtA[i] = 0x12 } @@ -2109,7 +2107,7 @@ func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -2142,21 +2140,21 @@ func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -2189,28 +2187,28 @@ func (m *MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 if len(m.ValidatorDstAddress) > 0 { i -= len(m.ValidatorDstAddress) copy(dAtA[i:], m.ValidatorDstAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorDstAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorDstAddress))) i-- dAtA[i] = 0x1a } if len(m.ValidatorSrcAddress) > 0 { i -= len(m.ValidatorSrcAddress) copy(dAtA[i:], m.ValidatorSrcAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorSrcAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorSrcAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -2243,21 +2241,21 @@ func (m *MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -2292,7 +2290,7 @@ func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -2304,7 +2302,7 @@ func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -2337,7 +2335,7 @@ func (m *CommissionRates) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.MaxChangeRate.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -2347,7 +2345,7 @@ func (m *CommissionRates) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.MaxRate.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -2357,7 +2355,7 @@ func (m *CommissionRates) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Rate.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -2389,7 +2387,7 @@ func (m *Commission) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err9 } i -= n9 - i = encodeVarintTypes(dAtA, i, uint64(n9)) + i = encodeVarintStaking(dAtA, i, uint64(n9)) i-- dAtA[i] = 0x12 { @@ -2398,7 +2396,7 @@ func (m *Commission) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -2428,35 +2426,35 @@ func (m *Description) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Details) > 0 { i -= len(m.Details) copy(dAtA[i:], m.Details) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Details))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Details))) i-- dAtA[i] = 0x2a } if len(m.SecurityContact) > 0 { i -= len(m.SecurityContact) copy(dAtA[i:], m.SecurityContact) - i = encodeVarintTypes(dAtA, i, uint64(len(m.SecurityContact))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.SecurityContact))) i-- dAtA[i] = 0x22 } if len(m.Website) > 0 { i -= len(m.Website) copy(dAtA[i:], m.Website) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Website))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Website))) i-- dAtA[i] = 0x1a } if len(m.Identity) > 0 { i -= len(m.Identity) copy(dAtA[i:], m.Identity) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Identity))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Identity))) i-- dAtA[i] = 0x12 } if len(m.Moniker) > 0 { i -= len(m.Moniker) copy(dAtA[i:], m.Moniker) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Moniker))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Moniker))) i-- dAtA[i] = 0xa } @@ -2489,7 +2487,7 @@ func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.MinSelfDelegation.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a @@ -2499,7 +2497,7 @@ func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 @@ -2508,11 +2506,11 @@ func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err12 } i -= n12 - i = encodeVarintTypes(dAtA, i, uint64(n12)) + i = encodeVarintStaking(dAtA, i, uint64(n12)) i-- dAtA[i] = 0x4a if m.UnbondingHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.UnbondingHeight)) + i = encodeVarintStaking(dAtA, i, uint64(m.UnbondingHeight)) i-- dAtA[i] = 0x40 } @@ -2522,7 +2520,7 @@ func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a @@ -2532,7 +2530,7 @@ func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.DelegatorShares.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 @@ -2542,12 +2540,12 @@ func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Tokens.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a if m.Status != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Status)) + i = encodeVarintStaking(dAtA, i, uint64(m.Status)) i-- dAtA[i] = 0x20 } @@ -2564,14 +2562,14 @@ func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ConsensusPubkey) > 0 { i -= len(m.ConsensusPubkey) copy(dAtA[i:], m.ConsensusPubkey) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ConsensusPubkey))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ConsensusPubkey))) i-- dAtA[i] = 0x12 } if len(m.OperatorAddress) > 0 { i -= len(m.OperatorAddress) copy(dAtA[i:], m.OperatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.OperatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.OperatorAddress))) i-- dAtA[i] = 0xa } @@ -2601,14 +2599,14 @@ func (m *DVPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -2643,7 +2641,7 @@ func (m *DVPairs) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -2675,21 +2673,21 @@ func (m *DVVTriplet) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ValidatorDstAddress) > 0 { i -= len(m.ValidatorDstAddress) copy(dAtA[i:], m.ValidatorDstAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorDstAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorDstAddress))) i-- dAtA[i] = 0x1a } if len(m.ValidatorSrcAddress) > 0 { i -= len(m.ValidatorSrcAddress) copy(dAtA[i:], m.ValidatorSrcAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorSrcAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorSrcAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -2724,7 +2722,7 @@ func (m *DVVTriplets) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -2759,21 +2757,21 @@ func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.Shares.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -2808,7 +2806,7 @@ func (m *UnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -2817,14 +2815,14 @@ func (m *UnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -2857,7 +2855,7 @@ func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error if _, err := m.Balance.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -2867,7 +2865,7 @@ func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error if _, err := m.InitialBalance.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -2876,11 +2874,11 @@ func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error return 0, err14 } i -= n14 - i = encodeVarintTypes(dAtA, i, uint64(n14)) + i = encodeVarintStaking(dAtA, i, uint64(n14)) i-- dAtA[i] = 0x12 if m.CreationHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.CreationHeight)) + i = encodeVarintStaking(dAtA, i, uint64(m.CreationHeight)) i-- dAtA[i] = 0x8 } @@ -2913,7 +2911,7 @@ func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.SharesDst.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -2923,7 +2921,7 @@ func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { if _, err := m.InitialBalance.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -2932,11 +2930,11 @@ func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err15 } i -= n15 - i = encodeVarintTypes(dAtA, i, uint64(n15)) + i = encodeVarintStaking(dAtA, i, uint64(n15)) i-- dAtA[i] = 0x12 if m.CreationHeight != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.CreationHeight)) + i = encodeVarintStaking(dAtA, i, uint64(m.CreationHeight)) i-- dAtA[i] = 0x8 } @@ -2971,7 +2969,7 @@ func (m *Redelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintStaking(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -2980,21 +2978,21 @@ func (m *Redelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ValidatorDstAddress) > 0 { i -= len(m.ValidatorDstAddress) copy(dAtA[i:], m.ValidatorDstAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorDstAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorDstAddress))) i-- dAtA[i] = 0x1a } if len(m.ValidatorSrcAddress) > 0 { i -= len(m.ValidatorSrcAddress) copy(dAtA[i:], m.ValidatorSrcAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorSrcAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.ValidatorSrcAddress))) i-- dAtA[i] = 0x12 } if len(m.DelegatorAddress) > 0 { i -= len(m.DelegatorAddress) copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintTypes(dAtA, i, uint64(len(m.DelegatorAddress))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -3024,22 +3022,22 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.BondDenom) > 0 { i -= len(m.BondDenom) copy(dAtA[i:], m.BondDenom) - i = encodeVarintTypes(dAtA, i, uint64(len(m.BondDenom))) + i = encodeVarintStaking(dAtA, i, uint64(len(m.BondDenom))) i-- dAtA[i] = 0x2a } if m.HistoricalEntries != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.HistoricalEntries)) + i = encodeVarintStaking(dAtA, i, uint64(m.HistoricalEntries)) i-- dAtA[i] = 0x20 } if m.MaxEntries != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MaxEntries)) + i = encodeVarintStaking(dAtA, i, uint64(m.MaxEntries)) i-- dAtA[i] = 0x18 } if m.MaxValidators != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MaxValidators)) + i = encodeVarintStaking(dAtA, i, uint64(m.MaxValidators)) i-- dAtA[i] = 0x10 } @@ -3048,14 +3046,14 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err16 } i -= n16 - i = encodeVarintTypes(dAtA, i, uint64(n16)) + i = encodeVarintStaking(dAtA, i, uint64(n16)) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintStaking(dAtA []byte, offset int, v uint64) int { + offset -= sovStaking(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -3072,25 +3070,25 @@ func (m *MsgCreateValidator) Size() (n int) { var l int _ = l l = m.Description.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.Commission.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.MinSelfDelegation.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.Pubkey) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = m.Value.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3101,18 +3099,18 @@ func (m *MsgEditValidator) Size() (n int) { var l int _ = l l = m.Description.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = len(m.ValidatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } if m.CommissionRate != nil { l = m.CommissionRate.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } if m.MinSelfDelegation != nil { l = m.MinSelfDelegation.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } return n } @@ -3125,14 +3123,14 @@ func (m *MsgDelegate) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = m.Amount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3144,18 +3142,18 @@ func (m *MsgBeginRedelegate) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorSrcAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorDstAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = m.Amount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3167,14 +3165,14 @@ func (m *MsgUndelegate) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = m.Amount.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3185,11 +3183,11 @@ func (m *HistoricalInfo) Size() (n int) { var l int _ = l l = m.Header.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) if len(m.Valset) > 0 { for _, e := range m.Valset { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } } return n @@ -3202,11 +3200,11 @@ func (m *CommissionRates) Size() (n int) { var l int _ = l l = m.Rate.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.MaxRate.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.MaxChangeRate.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3217,9 +3215,9 @@ func (m *Commission) Size() (n int) { var l int _ = l l = m.CommissionRates.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdateTime) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3231,23 +3229,23 @@ func (m *Description) Size() (n int) { _ = l l = len(m.Moniker) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.Identity) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.Website) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.SecurityContact) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.Details) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } return n } @@ -3260,33 +3258,33 @@ func (m *Validator) Size() (n int) { _ = l l = len(m.OperatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ConsensusPubkey) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } if m.Jailed { n += 2 } if m.Status != 0 { - n += 1 + sovTypes(uint64(m.Status)) + n += 1 + sovStaking(uint64(m.Status)) } l = m.Tokens.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.DelegatorShares.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.Description.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) if m.UnbondingHeight != 0 { - n += 1 + sovTypes(uint64(m.UnbondingHeight)) + n += 1 + sovStaking(uint64(m.UnbondingHeight)) } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UnbondingTime) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.Commission.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.MinSelfDelegation.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3298,11 +3296,11 @@ func (m *DVPair) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } return n } @@ -3316,7 +3314,7 @@ func (m *DVPairs) Size() (n int) { if len(m.Pairs) > 0 { for _, e := range m.Pairs { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } } return n @@ -3330,15 +3328,15 @@ func (m *DVVTriplet) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorSrcAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorDstAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } return n } @@ -3352,7 +3350,7 @@ func (m *DVVTriplets) Size() (n int) { if len(m.Triplets) > 0 { for _, e := range m.Triplets { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } } return n @@ -3366,14 +3364,14 @@ func (m *Delegation) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = m.Shares.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3385,16 +3383,16 @@ func (m *UnbondingDelegation) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } if len(m.Entries) > 0 { for _, e := range m.Entries { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } } return n @@ -3407,14 +3405,14 @@ func (m *UnbondingDelegationEntry) Size() (n int) { var l int _ = l if m.CreationHeight != 0 { - n += 1 + sovTypes(uint64(m.CreationHeight)) + n += 1 + sovStaking(uint64(m.CreationHeight)) } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.InitialBalance.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.Balance.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3425,14 +3423,14 @@ func (m *RedelegationEntry) Size() (n int) { var l int _ = l if m.CreationHeight != 0 { - n += 1 + sovTypes(uint64(m.CreationHeight)) + n += 1 + sovStaking(uint64(m.CreationHeight)) } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.InitialBalance.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) l = m.SharesDst.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) return n } @@ -3444,20 +3442,20 @@ func (m *Redelegation) Size() (n int) { _ = l l = len(m.DelegatorAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorSrcAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } l = len(m.ValidatorDstAddress) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } if len(m.Entries) > 0 { for _, e := range m.Entries { l = e.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } } return n @@ -3470,28 +3468,28 @@ func (m *Params) Size() (n int) { var l int _ = l l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.UnbondingTime) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) if m.MaxValidators != 0 { - n += 1 + sovTypes(uint64(m.MaxValidators)) + n += 1 + sovStaking(uint64(m.MaxValidators)) } if m.MaxEntries != 0 { - n += 1 + sovTypes(uint64(m.MaxEntries)) + n += 1 + sovStaking(uint64(m.MaxEntries)) } if m.HistoricalEntries != 0 { - n += 1 + sovTypes(uint64(m.HistoricalEntries)) + n += 1 + sovStaking(uint64(m.HistoricalEntries)) } l = len(m.BondDenom) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovStaking(uint64(l)) } return n } -func sovTypes(x uint64) (n int) { +func sovStaking(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozStaking(x uint64) (n int) { + return sovStaking(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -3501,7 +3499,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3529,7 +3527,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3542,11 +3540,11 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3562,7 +3560,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3575,11 +3573,11 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3595,7 +3593,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3609,11 +3607,11 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3629,7 +3627,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3642,11 +3640,11 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3663,7 +3661,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3676,11 +3674,11 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3697,7 +3695,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3711,11 +3709,11 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3729,7 +3727,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3742,11 +3740,11 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3757,15 +3755,15 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3787,7 +3785,7 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3815,7 +3813,7 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3828,11 +3826,11 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3848,7 +3846,7 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3861,11 +3859,11 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3882,7 +3880,7 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3896,11 +3894,11 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3918,7 +3916,7 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3932,11 +3930,11 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -3949,15 +3947,15 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3979,7 +3977,7 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4007,7 +4005,7 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4020,11 +4018,11 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4041,7 +4039,7 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4054,11 +4052,11 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4075,7 +4073,7 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4088,11 +4086,11 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4103,15 +4101,15 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4133,7 +4131,7 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4161,7 +4159,7 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4174,11 +4172,11 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4195,7 +4193,7 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4208,11 +4206,11 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4229,7 +4227,7 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4242,11 +4240,11 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4263,7 +4261,7 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4276,11 +4274,11 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4291,15 +4289,15 @@ func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4321,7 +4319,7 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4349,7 +4347,7 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4362,11 +4360,11 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4383,7 +4381,7 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4396,11 +4394,11 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4417,7 +4415,7 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4430,11 +4428,11 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4445,15 +4443,15 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4475,7 +4473,7 @@ func (m *HistoricalInfo) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4503,7 +4501,7 @@ func (m *HistoricalInfo) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4516,11 +4514,11 @@ func (m *HistoricalInfo) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4536,7 +4534,7 @@ func (m *HistoricalInfo) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4549,11 +4547,11 @@ func (m *HistoricalInfo) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4565,15 +4563,15 @@ func (m *HistoricalInfo) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4595,7 +4593,7 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4623,7 +4621,7 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4637,11 +4635,11 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4657,7 +4655,7 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4671,11 +4669,11 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4691,7 +4689,7 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4705,11 +4703,11 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4720,15 +4718,15 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4750,7 +4748,7 @@ func (m *Commission) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4778,7 +4776,7 @@ func (m *Commission) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4791,11 +4789,11 @@ func (m *Commission) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4811,7 +4809,7 @@ func (m *Commission) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4824,11 +4822,11 @@ func (m *Commission) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4839,15 +4837,15 @@ func (m *Commission) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4869,7 +4867,7 @@ func (m *Description) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4897,7 +4895,7 @@ func (m *Description) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4911,11 +4909,11 @@ func (m *Description) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4929,7 +4927,7 @@ func (m *Description) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4943,11 +4941,11 @@ func (m *Description) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4961,7 +4959,7 @@ func (m *Description) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4975,11 +4973,11 @@ func (m *Description) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -4993,7 +4991,7 @@ func (m *Description) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5007,11 +5005,11 @@ func (m *Description) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5025,7 +5023,7 @@ func (m *Description) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5039,11 +5037,11 @@ func (m *Description) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5052,15 +5050,15 @@ func (m *Description) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5082,7 +5080,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5110,7 +5108,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5123,11 +5121,11 @@ func (m *Validator) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5144,7 +5142,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5158,11 +5156,11 @@ func (m *Validator) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5176,7 +5174,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5196,7 +5194,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { m.Status = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5215,7 +5213,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5229,11 +5227,11 @@ func (m *Validator) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5249,7 +5247,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5263,11 +5261,11 @@ func (m *Validator) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5283,7 +5281,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5296,11 +5294,11 @@ func (m *Validator) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5316,7 +5314,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { m.UnbondingHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5335,7 +5333,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5348,11 +5346,11 @@ func (m *Validator) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5368,7 +5366,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5381,11 +5379,11 @@ func (m *Validator) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5401,7 +5399,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5415,11 +5413,11 @@ func (m *Validator) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5430,15 +5428,15 @@ func (m *Validator) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5460,7 +5458,7 @@ func (m *DVPair) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5488,7 +5486,7 @@ func (m *DVPair) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5501,11 +5499,11 @@ func (m *DVPair) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5522,7 +5520,7 @@ func (m *DVPair) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5535,11 +5533,11 @@ func (m *DVPair) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5551,15 +5549,15 @@ func (m *DVPair) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5581,7 +5579,7 @@ func (m *DVPairs) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5609,7 +5607,7 @@ func (m *DVPairs) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5622,11 +5620,11 @@ func (m *DVPairs) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5638,15 +5636,15 @@ func (m *DVPairs) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5668,7 +5666,7 @@ func (m *DVVTriplet) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5696,7 +5694,7 @@ func (m *DVVTriplet) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5709,11 +5707,11 @@ func (m *DVVTriplet) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5730,7 +5728,7 @@ func (m *DVVTriplet) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5743,11 +5741,11 @@ func (m *DVVTriplet) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5764,7 +5762,7 @@ func (m *DVVTriplet) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5777,11 +5775,11 @@ func (m *DVVTriplet) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5793,15 +5791,15 @@ func (m *DVVTriplet) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5823,7 +5821,7 @@ func (m *DVVTriplets) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5851,7 +5849,7 @@ func (m *DVVTriplets) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5864,11 +5862,11 @@ func (m *DVVTriplets) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5880,15 +5878,15 @@ func (m *DVVTriplets) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5910,7 +5908,7 @@ func (m *Delegation) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5938,7 +5936,7 @@ func (m *Delegation) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5951,11 +5949,11 @@ func (m *Delegation) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -5972,7 +5970,7 @@ func (m *Delegation) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5985,11 +5983,11 @@ func (m *Delegation) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6006,7 +6004,7 @@ func (m *Delegation) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6020,11 +6018,11 @@ func (m *Delegation) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6035,15 +6033,15 @@ func (m *Delegation) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6065,7 +6063,7 @@ func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6093,7 +6091,7 @@ func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6106,11 +6104,11 @@ func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6127,7 +6125,7 @@ func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6140,11 +6138,11 @@ func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6161,7 +6159,7 @@ func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6174,11 +6172,11 @@ func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6190,15 +6188,15 @@ func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6220,7 +6218,7 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6248,7 +6246,7 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { m.CreationHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6267,7 +6265,7 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6280,11 +6278,11 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6300,7 +6298,7 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6314,11 +6312,11 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6334,7 +6332,7 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6348,11 +6346,11 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6363,15 +6361,15 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6393,7 +6391,7 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6421,7 +6419,7 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { m.CreationHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6440,7 +6438,7 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6453,11 +6451,11 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6473,7 +6471,7 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6487,11 +6485,11 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6507,7 +6505,7 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6521,11 +6519,11 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6536,15 +6534,15 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6566,7 +6564,7 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6594,7 +6592,7 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6607,11 +6605,11 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6628,7 +6626,7 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6641,11 +6639,11 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6662,7 +6660,7 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6675,11 +6673,11 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6696,7 +6694,7 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6709,11 +6707,11 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6725,15 +6723,15 @@ func (m *Redelegation) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6755,7 +6753,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6783,7 +6781,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6796,11 +6794,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6816,7 +6814,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.MaxValidators = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6835,7 +6833,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.MaxEntries = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6854,7 +6852,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.HistoricalEntries = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6873,7 +6871,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowStaking } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6887,11 +6885,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if postIndex > l { return io.ErrUnexpectedEOF @@ -6900,15 +6898,15 @@ func (m *Params) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipStaking(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthStaking } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6922,7 +6920,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipStaking(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -6930,7 +6928,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowStaking } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -6947,7 +6945,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowStaking } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -6963,7 +6961,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowStaking } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -6976,14 +6974,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthStaking } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupStaking } depth-- case 5: @@ -6992,7 +6990,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthStaking } if depth == 0 { return iNdEx, nil @@ -7002,7 +7000,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthStaking = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowStaking = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupStaking = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/upgrade/types/types.pb.go b/x/upgrade/types/upgrade.pb.go similarity index 78% rename from x/upgrade/types/types.pb.go rename to x/upgrade/types/upgrade.pb.go index c0cb0cf18de7..a18ebe922c48 100644 --- a/x/upgrade/types/types.pb.go +++ b/x/upgrade/types/upgrade.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: x/upgrade/types/types.proto +// source: cosmos/upgrade/upgrade.proto package types @@ -49,7 +49,7 @@ type Plan struct { func (m *Plan) Reset() { *m = Plan{} } func (*Plan) ProtoMessage() {} func (*Plan) Descriptor() ([]byte, []int) { - return fileDescriptor_2a308fd9dd71aff8, []int{0} + return fileDescriptor_f096ad3e7ee0b803, []int{0} } func (m *Plan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -88,7 +88,7 @@ type SoftwareUpgradeProposal struct { func (m *SoftwareUpgradeProposal) Reset() { *m = SoftwareUpgradeProposal{} } func (*SoftwareUpgradeProposal) ProtoMessage() {} func (*SoftwareUpgradeProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_2a308fd9dd71aff8, []int{1} + return fileDescriptor_f096ad3e7ee0b803, []int{1} } func (m *SoftwareUpgradeProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -126,7 +126,7 @@ type CancelSoftwareUpgradeProposal struct { func (m *CancelSoftwareUpgradeProposal) Reset() { *m = CancelSoftwareUpgradeProposal{} } func (*CancelSoftwareUpgradeProposal) ProtoMessage() {} func (*CancelSoftwareUpgradeProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_2a308fd9dd71aff8, []int{2} + return fileDescriptor_f096ad3e7ee0b803, []int{2} } func (m *CancelSoftwareUpgradeProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -156,39 +156,38 @@ func (m *CancelSoftwareUpgradeProposal) XXX_DiscardUnknown() { var xxx_messageInfo_CancelSoftwareUpgradeProposal proto.InternalMessageInfo func init() { - proto.RegisterType((*Plan)(nil), "cosmos_sdk.x.upgrade.v1.Plan") - proto.RegisterType((*SoftwareUpgradeProposal)(nil), "cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal") - proto.RegisterType((*CancelSoftwareUpgradeProposal)(nil), "cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal") -} - -func init() { proto.RegisterFile("x/upgrade/types/types.proto", fileDescriptor_2a308fd9dd71aff8) } - -var fileDescriptor_2a308fd9dd71aff8 = []byte{ - // 379 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x41, 0x6f, 0xda, 0x30, - 0x14, 0xc7, 0xe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e7, 0x82, 0xa0, 0xaa, 0x40, 0x9f, 0x60, - 0x33, 0x61, 0x3c, 0x4e, 0xb4, 0xd3, 0xf0, 0xc0, 0xa0, 0x11, 0xd4, 0x59, 0xd9, 0x85, 0xe7, 0x33, - 0xe1, 0xd8, 0xa6, 0x4b, 0x19, 0xff, 0xb6, 0x1f, 0x6e, 0x5c, 0xd0, 0x5f, 0x03, 0xd8, 0xf9, 0x27, - 0x66, 0xfa, 0x8a, 0x16, 0xec, 0xcc, 0x0c, 0x3a, 0x2e, 0x84, 0x14, 0x8a, 0xa6, 0xe8, 0x23, 0x7c, - 0xaf, 0xb9, 0x4e, 0x4f, 0x70, 0x26, 0x41, 0x1e, 0x6c, 0x47, 0x4c, 0x85, 0x05, 0x97, 0x9a, 0x8b, - 0xbc, 0x82, 0x6c, 0x05, 0xcf, 0x8f, 0xd0, 0x4f, 0x68, 0xcb, 0x94, 0xe6, 0x15, 0x43, 0x7b, 0xd8, - 0x23, 0xaf, 0x6c, 0x93, 0x94, 0x0b, 0x18, 0xd9, 0xe5, 0x08, 0x41, 0x55, 0x50, 0x23, 0x5d, 0xc0, - 0xde, 0x1f, 0x9a, 0x87, 0x2c, 0x7d, 0x63, 0x2e, 0x63, 0x3f, 0xfa, 0xbb, 0xd9, 0x63, 0x6b, 0xb7, - 0xc7, 0xd6, 0xe6, 0x80, 0xc1, 0xf6, 0x80, 0xc1, 0xfd, 0x01, 0x83, 0xf5, 0x11, 0x5b, 0xdb, 0x23, - 0xb6, 0x76, 0x47, 0x6c, 0x9d, 0x7f, 0x8d, 0xb9, 0x4e, 0x16, 0x53, 0x12, 0x8a, 0xcc, 0x37, 0xec, - 0xf5, 0xef, 0x9b, 0x8a, 0xe6, 0xfe, 0x8b, 0x87, 0x33, 0x6d, 0x56, 0xf7, 0xf2, 0xe3, 0x31, 0x00, - 0x00, 0xff, 0xff, 0x45, 0x05, 0x01, 0x90, 0x52, 0x02, 0x00, 0x00, + proto.RegisterType((*Plan)(nil), "cosmos.upgrade.Plan") + proto.RegisterType((*SoftwareUpgradeProposal)(nil), "cosmos.upgrade.SoftwareUpgradeProposal") + proto.RegisterType((*CancelSoftwareUpgradeProposal)(nil), "cosmos.upgrade.CancelSoftwareUpgradeProposal") +} + +func init() { proto.RegisterFile("cosmos/upgrade/upgrade.proto", fileDescriptor_f096ad3e7ee0b803) } + +var fileDescriptor_f096ad3e7ee0b803 = []byte{ + // 358 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x52, 0xb1, 0x4e, 0xf3, 0x30, + 0x10, 0x8e, 0xff, 0xe6, 0xaf, 0xfe, 0xba, 0xd2, 0x3f, 0x58, 0x15, 0x44, 0x15, 0x38, 0x51, 0xa7, + 0x0e, 0xe0, 0x48, 0x65, 0x41, 0x8c, 0x65, 0x47, 0x55, 0x80, 0x05, 0x89, 0xc1, 0x4d, 0xdd, 0x34, + 0x22, 0xc9, 0x45, 0xb1, 0x2b, 0xe0, 0x05, 0x60, 0xed, 0x23, 0xf0, 0x38, 0x1d, 0x3b, 0x76, 0x02, + 0xda, 0x2e, 0x3c, 0x06, 0x8a, 0x9d, 0x20, 0xd8, 0x99, 0xee, 0xbe, 0xbb, 0x2f, 0xdf, 0x7d, 0x17, + 0x1f, 0x3e, 0x08, 0x41, 0xa6, 0x20, 0xfd, 0x79, 0x1e, 0x15, 0x7c, 0x22, 0xea, 0xc8, 0xf2, 0x02, + 0x14, 0x90, 0xff, 0xa6, 0xcb, 0xaa, 0x6a, 0xb7, 0x13, 0x41, 0x04, 0xba, 0xe5, 0x97, 0x99, 0x61, + 0x75, 0xdd, 0x08, 0x20, 0x4a, 0x84, 0xaf, 0xd1, 0x78, 0x3e, 0xf5, 0x55, 0x9c, 0x0a, 0xa9, 0x78, + 0x9a, 0x1b, 0x42, 0xef, 0x09, 0x61, 0x7b, 0x94, 0xf0, 0x8c, 0x10, 0x6c, 0x67, 0x3c, 0x15,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, 0xa9, 0x5f, 0xdd, 0x80, 0x09, 0xc7, 0x72, 0x72, 0xe7, 0x3f, 0x7c, 0x1d, 0x84, + 0x7a, 0xcc, 0x85, 0x1c, 0x37, 0xf5, 0x73, 0x9c, 0x7c, 0x06, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x41, + 0xa7, 0xa3, 0x2f, 0x02, 0x00, 0x00, } func (this *Plan) Equal(that interface{}) bool { @@ -304,12 +303,12 @@ func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Info) > 0 { i -= len(m.Info) copy(dAtA[i:], m.Info) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) + i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Info))) i-- dAtA[i] = 0x22 } if m.Height != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Height)) + i = encodeVarintUpgrade(dAtA, i, uint64(m.Height)) i-- dAtA[i] = 0x18 } @@ -318,13 +317,13 @@ func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err1 } i -= n1 - i = encodeVarintTypes(dAtA, i, uint64(n1)) + i = encodeVarintUpgrade(dAtA, i, uint64(n1)) i-- dAtA[i] = 0x12 if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Name))) + i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } @@ -357,21 +356,21 @@ func (m *SoftwareUpgradeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) + i = encodeVarintUpgrade(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Description))) + i = encodeVarintUpgrade(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 = encodeVarintTypes(dAtA, i, uint64(len(m.Title))) + i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -401,22 +400,22 @@ func (m *CancelSoftwareUpgradeProposal) MarshalToSizedBuffer(dAtA []byte) (int, if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Description))) + i = encodeVarintUpgrade(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 = encodeVarintTypes(dAtA, i, uint64(len(m.Title))) + i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) +func encodeVarintUpgrade(dAtA []byte, offset int, v uint64) int { + offset -= sovUpgrade(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -434,16 +433,16 @@ func (m *Plan) Size() (n int) { _ = l l = len(m.Name) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovUpgrade(uint64(l)) } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovUpgrade(uint64(l)) if m.Height != 0 { - n += 1 + sovTypes(uint64(m.Height)) + n += 1 + sovUpgrade(uint64(m.Height)) } l = len(m.Info) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovUpgrade(uint64(l)) } return n } @@ -456,14 +455,14 @@ func (m *SoftwareUpgradeProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovUpgrade(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovUpgrade(uint64(l)) } l = m.Plan.Size() - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovUpgrade(uint64(l)) return n } @@ -475,20 +474,20 @@ func (m *CancelSoftwareUpgradeProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovUpgrade(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovTypes(uint64(l)) + n += 1 + l + sovUpgrade(uint64(l)) } return n } -func sovTypes(x uint64) (n int) { +func sovUpgrade(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozUpgrade(x uint64) (n int) { + return sovUpgrade(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Plan) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -498,7 +497,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -526,7 +525,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -540,11 +539,11 @@ func (m *Plan) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if postIndex > l { return io.ErrUnexpectedEOF @@ -558,7 +557,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -571,11 +570,11 @@ func (m *Plan) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if postIndex > l { return io.ErrUnexpectedEOF @@ -591,7 +590,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error { m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -610,7 +609,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -624,11 +623,11 @@ func (m *Plan) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if postIndex > l { return io.ErrUnexpectedEOF @@ -637,15 +636,15 @@ func (m *Plan) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipUpgrade(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -667,7 +666,7 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -695,7 +694,7 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -709,11 +708,11 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if postIndex > l { return io.ErrUnexpectedEOF @@ -727,7 +726,7 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -741,11 +740,11 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if postIndex > l { return io.ErrUnexpectedEOF @@ -759,7 +758,7 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -772,11 +771,11 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if postIndex > l { return io.ErrUnexpectedEOF @@ -787,15 +786,15 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipUpgrade(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -817,7 +816,7 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -845,7 +844,7 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -859,11 +858,11 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if postIndex > l { return io.ErrUnexpectedEOF @@ -877,7 +876,7 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTypes + return ErrIntOverflowUpgrade } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -891,11 +890,11 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if postIndex > l { return io.ErrUnexpectedEOF @@ -904,15 +903,15 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) + skippy, err := skipUpgrade(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTypes + return ErrInvalidLengthUpgrade } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -926,7 +925,7 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { } return nil } -func skipTypes(dAtA []byte) (n int, err error) { +func skipUpgrade(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -934,7 +933,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowUpgrade } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -951,7 +950,7 @@ func skipTypes(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowUpgrade } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -967,7 +966,7 @@ func skipTypes(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTypes + return 0, ErrIntOverflowUpgrade } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -980,14 +979,14 @@ func skipTypes(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthUpgrade } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes + return 0, ErrUnexpectedEndOfGroupUpgrade } depth-- case 5: @@ -996,7 +995,7 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTypes + return 0, ErrInvalidLengthUpgrade } if depth == 0 { return iNdEx, nil @@ -1006,7 +1005,7 @@ func skipTypes(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthUpgrade = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowUpgrade = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupUpgrade = fmt.Errorf("proto: unexpected end of group") )