From c394424454aa913b38e30c06e0962740b538c751 Mon Sep 17 00:00:00 2001 From: Alex Peters Date: Tue, 14 Nov 2023 09:06:52 +0100 Subject: [PATCH] Rename legacy propsal files --- docs/proto/proto-docs.md | 6 +- .../{proposal.proto => proposal_legacy.proto} | 0 x/wasm/alias.go | 2 - .../types/{proposal.go => proposal_legacy.go} | 0 .../{proposal.pb.go => proposal_legacy.pb.go} | 994 +++++++++--------- ...oposal_test.go => proposal_legacy_test.go} | 0 6 files changed, 501 insertions(+), 501 deletions(-) rename proto/cosmwasm/wasm/v1/{proposal.proto => proposal_legacy.proto} (100%) rename x/wasm/types/{proposal.go => proposal_legacy.go} (100%) rename x/wasm/types/{proposal.pb.go => proposal_legacy.pb.go} (81%) rename x/wasm/types/{proposal_test.go => proposal_legacy_test.go} (100%) diff --git a/docs/proto/proto-docs.md b/docs/proto/proto-docs.md index e7e57fa619..c3de180ca7 100644 --- a/docs/proto/proto-docs.md +++ b/docs/proto/proto-docs.md @@ -41,7 +41,7 @@ - [MsgIBCSend](#cosmwasm.wasm.v1.MsgIBCSend) - [MsgIBCSendResponse](#cosmwasm.wasm.v1.MsgIBCSendResponse) -- [cosmwasm/wasm/v1/proposal.proto](#cosmwasm/wasm/v1/proposal.proto) +- [cosmwasm/wasm/v1/proposal_legacy.proto](#cosmwasm/wasm/v1/proposal_legacy.proto) - [AccessConfigUpdate](#cosmwasm.wasm.v1.AccessConfigUpdate) - [ClearAdminProposal](#cosmwasm.wasm.v1.ClearAdminProposal) - [ExecuteContractProposal](#cosmwasm.wasm.v1.ExecuteContractProposal) @@ -649,10 +649,10 @@ MsgIBCSendResponse - +

Top

-## cosmwasm/wasm/v1/proposal.proto +## cosmwasm/wasm/v1/proposal_legacy.proto diff --git a/proto/cosmwasm/wasm/v1/proposal.proto b/proto/cosmwasm/wasm/v1/proposal_legacy.proto similarity index 100% rename from proto/cosmwasm/wasm/v1/proposal.proto rename to proto/cosmwasm/wasm/v1/proposal_legacy.proto diff --git a/x/wasm/alias.go b/x/wasm/alias.go index 1cf0293ead..2b8167ee67 100644 --- a/x/wasm/alias.go +++ b/x/wasm/alias.go @@ -97,8 +97,6 @@ var ( // Deprecated: Do not use. TestHandler = keeper.TestHandler // Deprecated: Do not use. - NewWasmProposalHandler = keeper.NewWasmProposalHandler //nolint:staticcheck // we still require this alias despite the deprecation - // Deprecated: Do not use. NewQuerier = keeper.Querier // Deprecated: Do not use. ContractFromPortID = keeper.ContractFromPortID diff --git a/x/wasm/types/proposal.go b/x/wasm/types/proposal_legacy.go similarity index 100% rename from x/wasm/types/proposal.go rename to x/wasm/types/proposal_legacy.go diff --git a/x/wasm/types/proposal.pb.go b/x/wasm/types/proposal_legacy.pb.go similarity index 81% rename from x/wasm/types/proposal.pb.go rename to x/wasm/types/proposal_legacy.pb.go index 6d74a697b7..f91fa0ba3f 100644 --- a/x/wasm/types/proposal.pb.go +++ b/x/wasm/types/proposal_legacy.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: cosmwasm/wasm/v1/proposal.proto +// source: cosmwasm/wasm/v1/proposal_legacy.proto package types @@ -63,7 +63,7 @@ type StoreCodeProposal struct { func (m *StoreCodeProposal) Reset() { *m = StoreCodeProposal{} } func (*StoreCodeProposal) ProtoMessage() {} func (*StoreCodeProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{0} + return fileDescriptor_68e9c908a42bedfa, []int{0} } func (m *StoreCodeProposal) XXX_Unmarshal(b []byte) error { @@ -125,7 +125,7 @@ type InstantiateContractProposal struct { func (m *InstantiateContractProposal) Reset() { *m = InstantiateContractProposal{} } func (*InstantiateContractProposal) ProtoMessage() {} func (*InstantiateContractProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{1} + return fileDescriptor_68e9c908a42bedfa, []int{1} } func (m *InstantiateContractProposal) XXX_Unmarshal(b []byte) error { @@ -192,7 +192,7 @@ type InstantiateContract2Proposal struct { func (m *InstantiateContract2Proposal) Reset() { *m = InstantiateContract2Proposal{} } func (*InstantiateContract2Proposal) ProtoMessage() {} func (*InstantiateContract2Proposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{2} + return fileDescriptor_68e9c908a42bedfa, []int{2} } func (m *InstantiateContract2Proposal) XXX_Unmarshal(b []byte) error { @@ -248,7 +248,7 @@ type MigrateContractProposal struct { func (m *MigrateContractProposal) Reset() { *m = MigrateContractProposal{} } func (*MigrateContractProposal) ProtoMessage() {} func (*MigrateContractProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{3} + return fileDescriptor_68e9c908a42bedfa, []int{3} } func (m *MigrateContractProposal) XXX_Unmarshal(b []byte) error { @@ -302,7 +302,7 @@ type SudoContractProposal struct { func (m *SudoContractProposal) Reset() { *m = SudoContractProposal{} } func (*SudoContractProposal) ProtoMessage() {} func (*SudoContractProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{4} + return fileDescriptor_68e9c908a42bedfa, []int{4} } func (m *SudoContractProposal) XXX_Unmarshal(b []byte) error { @@ -360,7 +360,7 @@ type ExecuteContractProposal struct { func (m *ExecuteContractProposal) Reset() { *m = ExecuteContractProposal{} } func (*ExecuteContractProposal) ProtoMessage() {} func (*ExecuteContractProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{5} + return fileDescriptor_68e9c908a42bedfa, []int{5} } func (m *ExecuteContractProposal) XXX_Unmarshal(b []byte) error { @@ -414,7 +414,7 @@ type UpdateAdminProposal struct { func (m *UpdateAdminProposal) Reset() { *m = UpdateAdminProposal{} } func (*UpdateAdminProposal) ProtoMessage() {} func (*UpdateAdminProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{6} + return fileDescriptor_68e9c908a42bedfa, []int{6} } func (m *UpdateAdminProposal) XXX_Unmarshal(b []byte) error { @@ -466,7 +466,7 @@ type ClearAdminProposal struct { func (m *ClearAdminProposal) Reset() { *m = ClearAdminProposal{} } func (*ClearAdminProposal) ProtoMessage() {} func (*ClearAdminProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{7} + return fileDescriptor_68e9c908a42bedfa, []int{7} } func (m *ClearAdminProposal) XXX_Unmarshal(b []byte) error { @@ -518,7 +518,7 @@ type PinCodesProposal struct { func (m *PinCodesProposal) Reset() { *m = PinCodesProposal{} } func (*PinCodesProposal) ProtoMessage() {} func (*PinCodesProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{8} + return fileDescriptor_68e9c908a42bedfa, []int{8} } func (m *PinCodesProposal) XXX_Unmarshal(b []byte) error { @@ -570,7 +570,7 @@ type UnpinCodesProposal struct { func (m *UnpinCodesProposal) Reset() { *m = UnpinCodesProposal{} } func (*UnpinCodesProposal) ProtoMessage() {} func (*UnpinCodesProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{9} + return fileDescriptor_68e9c908a42bedfa, []int{9} } func (m *UnpinCodesProposal) XXX_Unmarshal(b []byte) error { @@ -616,7 +616,7 @@ type AccessConfigUpdate struct { func (m *AccessConfigUpdate) Reset() { *m = AccessConfigUpdate{} } func (*AccessConfigUpdate) ProtoMessage() {} func (*AccessConfigUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{10} + return fileDescriptor_68e9c908a42bedfa, []int{10} } func (m *AccessConfigUpdate) XXX_Unmarshal(b []byte) error { @@ -669,7 +669,7 @@ type UpdateInstantiateConfigProposal struct { func (m *UpdateInstantiateConfigProposal) Reset() { *m = UpdateInstantiateConfigProposal{} } func (*UpdateInstantiateConfigProposal) ProtoMessage() {} func (*UpdateInstantiateConfigProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{11} + return fileDescriptor_68e9c908a42bedfa, []int{11} } func (m *UpdateInstantiateConfigProposal) XXX_Unmarshal(b []byte) error { @@ -743,7 +743,7 @@ type StoreAndInstantiateContractProposal struct { func (m *StoreAndInstantiateContractProposal) Reset() { *m = StoreAndInstantiateContractProposal{} } func (*StoreAndInstantiateContractProposal) ProtoMessage() {} func (*StoreAndInstantiateContractProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_be6422d717c730cb, []int{12} + return fileDescriptor_68e9c908a42bedfa, []int{12} } func (m *StoreAndInstantiateContractProposal) XXX_Unmarshal(b []byte) error { @@ -793,85 +793,87 @@ func init() { proto.RegisterType((*StoreAndInstantiateContractProposal)(nil), "cosmwasm.wasm.v1.StoreAndInstantiateContractProposal") } -func init() { proto.RegisterFile("cosmwasm/wasm/v1/proposal.proto", fileDescriptor_be6422d717c730cb) } +func init() { + proto.RegisterFile("cosmwasm/wasm/v1/proposal_legacy.proto", fileDescriptor_68e9c908a42bedfa) +} -var fileDescriptor_be6422d717c730cb = []byte{ - // 1188 bytes of a gzipped FileDescriptorProto +var fileDescriptor_68e9c908a42bedfa = []byte{ + // 1194 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcb, 0x6f, 0x1b, 0x45, - 0x18, 0xf7, 0xc4, 0xf6, 0xda, 0x1e, 0x1b, 0x70, 0xb7, 0x79, 0x4c, 0xd2, 0xb0, 0x6b, 0xb6, 0x55, - 0x65, 0x55, 0xc4, 0x56, 0xc2, 0x43, 0x60, 0x1e, 0x92, 0x37, 0x14, 0x91, 0x8a, 0x48, 0xd1, 0x46, - 0x51, 0x25, 0x2e, 0x66, 0xbd, 0x3b, 0xde, 0xac, 0xb0, 0x77, 0xac, 0x9d, 0x75, 0x1e, 0xff, 0x02, - 0x12, 0x12, 0x47, 0x10, 0xff, 0x40, 0xc5, 0xa9, 0x12, 0xfd, 0x03, 0x00, 0x09, 0x29, 0xea, 0xa9, - 0xe2, 0xd4, 0x93, 0xa1, 0xce, 0xa1, 0x37, 0x0e, 0xb9, 0xc1, 0x09, 0xcd, 0xcc, 0x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 0x45, 0x58, 0x4b, 0x26, - 0x04, 0x12, 0x00, 0x00, + 0x18, 0xf7, 0xc4, 0xf6, 0xda, 0x1e, 0x1b, 0x70, 0xb7, 0x69, 0x32, 0x6d, 0xc3, 0xae, 0xd9, 0x56, + 0x91, 0x55, 0x11, 0x5b, 0x09, 0x0f, 0x81, 0x79, 0x48, 0xde, 0x50, 0x44, 0x2a, 0x22, 0x45, 0x1b, + 0x45, 0x95, 0xb8, 0x2c, 0xe3, 0xdd, 0xf1, 0x66, 0x85, 0xbd, 0x6b, 0xed, 0xac, 0xf3, 0xf8, 0x17, + 0x90, 0x90, 0x38, 0x82, 0xf8, 0x07, 0x2a, 0x4e, 0x95, 0xe8, 0x1f, 0x00, 0x48, 0x48, 0x51, 0x4f, + 0x15, 0xa7, 0x9e, 0x0c, 0x75, 0x0e, 0xbd, 0x71, 0xc8, 0x0d, 0x4e, 0x68, 0x66, 0xd6, 0x89, 0x93, + 0xd8, 0xd9, 0x34, 0x4d, 0x5a, 0x0e, 0x5c, 0x36, 0x99, 0xfd, 0xbe, 0x59, 0xff, 0x1e, 0x33, 0xdf, + 0xce, 0xb7, 0x70, 0xd6, 0xf2, 0x69, 0x7b, 0x13, 0xd3, 0x76, 0x95, 0x5f, 0x36, 0xe6, 0xab, 0x9d, + 0xc0, 0xef, 0xf8, 0x14, 0xb7, 0xcc, 0x16, 0x71, 0xb0, 0xb5, 0x5d, 0xe9, 0x04, 0x7e, 0xe8, 0xcb, + 0xc5, 0x41, 0x5e, 0x85, 0x5f, 0x36, 0xe6, 0xaf, 0x4d, 0x3a, 0xbe, 0xe3, 0xf3, 0x60, 0x95, 0xfd, + 0x27, 0xf2, 0xae, 0x5d, 0x65, 0x79, 0x3e, 0x35, 0x45, 0x40, 0x0c, 0xa2, 0x90, 0x22, 0x46, 0xd5, + 0x06, 0xa6, 0xa4, 0xba, 0x31, 0xdf, 0x20, 0x21, 0x9e, 0xaf, 0x5a, 0xbe, 0xeb, 0x45, 0xf1, 0x99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5c, 0x38, 0xa1, + 0x5b, 0x7e, 0xe5, 0x48, 0xb7, 0xbc, 0x1c, 0xbf, 0x2c, 0xcb, 0x07, 0xdd, 0xf2, 0xc9, 0x0b, 0x0e, + 0x01, 0xfd, 0xf3, 0x9d, 0x27, 0x4a, 0xe2, 0xf1, 0x13, 0x25, 0x71, 0xaf, 0xaf, 0x80, 0x9d, 0xbe, + 0x02, 0x1e, 0xf5, 0x15, 0xf0, 0x67, 0x5f, 0x01, 0xdf, 0xee, 0x2a, 0x89, 0x47, 0xbb, 0x4a, 0xe2, + 0xf1, 0xae, 0x92, 0xf8, 0x62, 0x76, 0x88, 0xf9, 0xa2, 0x4f, 0xdb, 0x77, 0x07, 0x9f, 0x56, 0xec, + 0xea, 0x96, 0xf8, 0xc4, 0xc2, 0xd9, 0x37, 0x24, 0xfe, 0x35, 0xe5, 0xad, 0x7f, 0x03, 0x00, 0x00, + 0xff, 0xff, 0xe5, 0x17, 0x08, 0x1e, 0x0b, 0x12, 0x00, 0x00, } func (this *StoreCodeProposal) Equal(that interface{}) bool { @@ -1437,21 +1439,21 @@ func (m *StoreCodeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.CodeHash) > 0 { i -= len(m.CodeHash) copy(dAtA[i:], m.CodeHash) - i = encodeVarintProposal(dAtA, i, uint64(len(m.CodeHash))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.CodeHash))) i-- dAtA[i] = 0x5a } if len(m.Builder) > 0 { i -= len(m.Builder) copy(dAtA[i:], m.Builder) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Builder))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Builder))) i-- dAtA[i] = 0x52 } if len(m.Source) > 0 { i -= len(m.Source) copy(dAtA[i:], m.Source) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Source))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Source))) i-- dAtA[i] = 0x4a } @@ -1472,7 +1474,7 @@ func (m *StoreCodeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintProposal(dAtA, i, uint64(size)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a @@ -1480,28 +1482,28 @@ func (m *StoreCodeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.WASMByteCode) > 0 { i -= len(m.WASMByteCode) copy(dAtA[i:], m.WASMByteCode) - i = encodeVarintProposal(dAtA, i, uint64(len(m.WASMByteCode))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.WASMByteCode))) i-- dAtA[i] = 0x22 } if len(m.RunAs) > 0 { i -= len(m.RunAs) copy(dAtA[i:], m.RunAs) - i = encodeVarintProposal(dAtA, i, uint64(len(m.RunAs))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.RunAs))) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -1536,7 +1538,7 @@ func (m *InstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, er return 0, err } i -= size - i = encodeVarintProposal(dAtA, i, uint64(size)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 @@ -1545,47 +1547,47 @@ func (m *InstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, er if len(m.Msg) > 0 { i -= len(m.Msg) copy(dAtA[i:], m.Msg) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Msg))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Msg))) i-- dAtA[i] = 0x3a } if len(m.Label) > 0 { i -= len(m.Label) copy(dAtA[i:], m.Label) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Label))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Label))) i-- dAtA[i] = 0x32 } if m.CodeID != 0 { - i = encodeVarintProposal(dAtA, i, uint64(m.CodeID)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(m.CodeID)) i-- dAtA[i] = 0x28 } if len(m.Admin) > 0 { i -= len(m.Admin) copy(dAtA[i:], m.Admin) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Admin))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Admin))) i-- dAtA[i] = 0x22 } if len(m.RunAs) > 0 { i -= len(m.RunAs) copy(dAtA[i:], m.RunAs) - i = encodeVarintProposal(dAtA, i, uint64(len(m.RunAs))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.RunAs))) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -1625,7 +1627,7 @@ func (m *InstantiateContract2Proposal) MarshalToSizedBuffer(dAtA []byte) (int, e if len(m.Salt) > 0 { i -= len(m.Salt) copy(dAtA[i:], m.Salt) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Salt))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Salt))) i-- dAtA[i] = 0x4a } @@ -1637,7 +1639,7 @@ func (m *InstantiateContract2Proposal) MarshalToSizedBuffer(dAtA []byte) (int, e return 0, err } i -= size - i = encodeVarintProposal(dAtA, i, uint64(size)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 @@ -1646,47 +1648,47 @@ func (m *InstantiateContract2Proposal) MarshalToSizedBuffer(dAtA []byte) (int, e if len(m.Msg) > 0 { i -= len(m.Msg) copy(dAtA[i:], m.Msg) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Msg))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Msg))) i-- dAtA[i] = 0x3a } if len(m.Label) > 0 { i -= len(m.Label) copy(dAtA[i:], m.Label) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Label))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Label))) i-- dAtA[i] = 0x32 } if m.CodeID != 0 { - i = encodeVarintProposal(dAtA, i, uint64(m.CodeID)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(m.CodeID)) i-- dAtA[i] = 0x28 } if len(m.Admin) > 0 { i -= len(m.Admin) copy(dAtA[i:], m.Admin) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Admin))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Admin))) i-- dAtA[i] = 0x22 } if len(m.RunAs) > 0 { i -= len(m.RunAs) copy(dAtA[i:], m.RunAs) - i = encodeVarintProposal(dAtA, i, uint64(len(m.RunAs))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.RunAs))) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -1716,33 +1718,33 @@ func (m *MigrateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) if len(m.Msg) > 0 { i -= len(m.Msg) copy(dAtA[i:], m.Msg) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Msg))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Msg))) i-- dAtA[i] = 0x32 } if m.CodeID != 0 { - i = encodeVarintProposal(dAtA, i, uint64(m.CodeID)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(m.CodeID)) i-- dAtA[i] = 0x28 } if len(m.Contract) > 0 { i -= len(m.Contract) copy(dAtA[i:], m.Contract) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Contract))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Contract))) i-- dAtA[i] = 0x22 } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -1772,28 +1774,28 @@ func (m *SudoContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Msg) > 0 { i -= len(m.Msg) copy(dAtA[i:], m.Msg) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Msg))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Msg))) i-- dAtA[i] = 0x22 } if len(m.Contract) > 0 { i -= len(m.Contract) copy(dAtA[i:], m.Contract) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Contract))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Contract))) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -1828,7 +1830,7 @@ func (m *ExecuteContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintProposal(dAtA, i, uint64(size)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 @@ -1837,35 +1839,35 @@ func (m *ExecuteContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) if len(m.Msg) > 0 { i -= len(m.Msg) copy(dAtA[i:], m.Msg) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Msg))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Msg))) i-- dAtA[i] = 0x2a } if len(m.Contract) > 0 { i -= len(m.Contract) copy(dAtA[i:], m.Contract) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Contract))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Contract))) i-- dAtA[i] = 0x22 } if len(m.RunAs) > 0 { i -= len(m.RunAs) copy(dAtA[i:], m.RunAs) - i = encodeVarintProposal(dAtA, i, uint64(len(m.RunAs))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.RunAs))) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -1895,28 +1897,28 @@ func (m *UpdateAdminProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Contract) > 0 { i -= len(m.Contract) copy(dAtA[i:], m.Contract) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Contract))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Contract))) i-- dAtA[i] = 0x22 } if len(m.NewAdmin) > 0 { i -= len(m.NewAdmin) copy(dAtA[i:], m.NewAdmin) - i = encodeVarintProposal(dAtA, i, uint64(len(m.NewAdmin))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.NewAdmin))) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -1946,21 +1948,21 @@ func (m *ClearAdminProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Contract) > 0 { i -= len(m.Contract) copy(dAtA[i:], m.Contract) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Contract))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Contract))) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -2001,21 +2003,21 @@ func (m *PinCodesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i -= j2 copy(dAtA[i:], dAtA3[:j2]) - i = encodeVarintProposal(dAtA, i, uint64(j2)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(j2)) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -2056,21 +2058,21 @@ func (m *UnpinCodesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i -= j4 copy(dAtA[i:], dAtA5[:j4]) - i = encodeVarintProposal(dAtA, i, uint64(j4)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(j4)) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -2103,12 +2105,12 @@ func (m *AccessConfigUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintProposal(dAtA, i, uint64(size)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if m.CodeID != 0 { - i = encodeVarintProposal(dAtA, i, uint64(m.CodeID)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(m.CodeID)) i-- dAtA[i] = 0x8 } @@ -2143,7 +2145,7 @@ func (m *UpdateInstantiateConfigProposal) MarshalToSizedBuffer(dAtA []byte) (int return 0, err } i -= size - i = encodeVarintProposal(dAtA, i, uint64(size)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -2152,14 +2154,14 @@ func (m *UpdateInstantiateConfigProposal) MarshalToSizedBuffer(dAtA []byte) (int if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } @@ -2189,21 +2191,21 @@ func (m *StoreAndInstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) if len(m.CodeHash) > 0 { i -= len(m.CodeHash) copy(dAtA[i:], m.CodeHash) - i = encodeVarintProposal(dAtA, i, uint64(len(m.CodeHash))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.CodeHash))) i-- dAtA[i] = 0x6a } if len(m.Builder) > 0 { i -= len(m.Builder) copy(dAtA[i:], m.Builder) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Builder))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Builder))) i-- dAtA[i] = 0x62 } if len(m.Source) > 0 { i -= len(m.Source) copy(dAtA[i:], m.Source) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Source))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Source))) i-- dAtA[i] = 0x5a } @@ -2215,7 +2217,7 @@ func (m *StoreAndInstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) return 0, err } i -= size - i = encodeVarintProposal(dAtA, i, uint64(size)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 @@ -2224,21 +2226,21 @@ func (m *StoreAndInstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) if len(m.Msg) > 0 { i -= len(m.Msg) copy(dAtA[i:], m.Msg) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Msg))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Msg))) i-- dAtA[i] = 0x4a } if len(m.Label) > 0 { i -= len(m.Label) copy(dAtA[i:], m.Label) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Label))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Label))) i-- dAtA[i] = 0x42 } if len(m.Admin) > 0 { i -= len(m.Admin) copy(dAtA[i:], m.Admin) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Admin))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Admin))) i-- dAtA[i] = 0x3a } @@ -2259,7 +2261,7 @@ func (m *StoreAndInstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) return 0, err } i -= size - i = encodeVarintProposal(dAtA, i, uint64(size)) + i = encodeVarintProposalLegacy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a @@ -2267,36 +2269,36 @@ func (m *StoreAndInstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) if len(m.WASMByteCode) > 0 { i -= len(m.WASMByteCode) copy(dAtA[i:], m.WASMByteCode) - i = encodeVarintProposal(dAtA, i, uint64(len(m.WASMByteCode))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.WASMByteCode))) i-- dAtA[i] = 0x22 } if len(m.RunAs) > 0 { i -= len(m.RunAs) copy(dAtA[i:], m.RunAs) - i = encodeVarintProposal(dAtA, i, uint64(len(m.RunAs))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.RunAs))) i-- dAtA[i] = 0x1a } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) + i = encodeVarintProposalLegacy(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 = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) + i = encodeVarintProposalLegacy(dAtA, i, uint64(len(m.Title))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintProposal(dAtA []byte, offset int, v uint64) int { - offset -= sovProposal(v) +func encodeVarintProposalLegacy(dAtA []byte, offset int, v uint64) int { + offset -= sovProposalLegacy(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -2315,38 +2317,38 @@ func (m *StoreCodeProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.RunAs) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.WASMByteCode) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if m.InstantiatePermission != nil { l = m.InstantiatePermission.Size() - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if m.UnpinCode { n += 2 } l = len(m.Source) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Builder) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.CodeHash) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } return n } @@ -2359,35 +2361,35 @@ func (m *InstantiateContractProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.RunAs) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Admin) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if m.CodeID != 0 { - n += 1 + sovProposal(uint64(m.CodeID)) + n += 1 + sovProposalLegacy(uint64(m.CodeID)) } l = len(m.Label) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Msg) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if len(m.Funds) > 0 { for _, e := range m.Funds { l = e.Size() - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } } return n @@ -2401,40 +2403,40 @@ func (m *InstantiateContract2Proposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.RunAs) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Admin) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if m.CodeID != 0 { - n += 1 + sovProposal(uint64(m.CodeID)) + n += 1 + sovProposalLegacy(uint64(m.CodeID)) } l = len(m.Label) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Msg) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if len(m.Funds) > 0 { for _, e := range m.Funds { l = e.Size() - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } } l = len(m.Salt) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if m.FixMsg { n += 2 @@ -2450,22 +2452,22 @@ func (m *MigrateContractProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Contract) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if m.CodeID != 0 { - n += 1 + sovProposal(uint64(m.CodeID)) + n += 1 + sovProposalLegacy(uint64(m.CodeID)) } l = len(m.Msg) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } return n } @@ -2478,19 +2480,19 @@ func (m *SudoContractProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Contract) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Msg) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } return n } @@ -2503,28 +2505,28 @@ func (m *ExecuteContractProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.RunAs) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Contract) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Msg) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if len(m.Funds) > 0 { for _, e := range m.Funds { l = e.Size() - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } } return n @@ -2538,19 +2540,19 @@ func (m *UpdateAdminProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.NewAdmin) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Contract) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } return n } @@ -2563,15 +2565,15 @@ func (m *ClearAdminProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Contract) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } return n } @@ -2584,18 +2586,18 @@ func (m *PinCodesProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if len(m.CodeIDs) > 0 { l = 0 for _, e := range m.CodeIDs { - l += sovProposal(uint64(e)) + l += sovProposalLegacy(uint64(e)) } - n += 1 + sovProposal(uint64(l)) + l + n += 1 + sovProposalLegacy(uint64(l)) + l } return n } @@ -2608,18 +2610,18 @@ func (m *UnpinCodesProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if len(m.CodeIDs) > 0 { l = 0 for _, e := range m.CodeIDs { - l += sovProposal(uint64(e)) + l += sovProposalLegacy(uint64(e)) } - n += 1 + sovProposal(uint64(l)) + l + n += 1 + sovProposalLegacy(uint64(l)) + l } return n } @@ -2631,10 +2633,10 @@ func (m *AccessConfigUpdate) Size() (n int) { var l int _ = l if m.CodeID != 0 { - n += 1 + sovProposal(uint64(m.CodeID)) + n += 1 + sovProposalLegacy(uint64(m.CodeID)) } l = m.InstantiatePermission.Size() - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) return n } @@ -2646,16 +2648,16 @@ func (m *UpdateInstantiateConfigProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if len(m.AccessConfigUpdates) > 0 { for _, e := range m.AccessConfigUpdates { l = e.Size() - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } } return n @@ -2669,66 +2671,66 @@ func (m *StoreAndInstantiateContractProposal) Size() (n int) { _ = l l = len(m.Title) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.RunAs) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.WASMByteCode) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if m.InstantiatePermission != nil { l = m.InstantiatePermission.Size() - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if m.UnpinCode { n += 2 } l = len(m.Admin) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Label) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Msg) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } if len(m.Funds) > 0 { for _, e := range m.Funds { l = e.Size() - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } } l = len(m.Source) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.Builder) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } l = len(m.CodeHash) if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + n += 1 + l + sovProposalLegacy(uint64(l)) } return n } -func sovProposal(x uint64) (n int) { +func sovProposalLegacy(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozProposal(x uint64) (n int) { - return sovProposal(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozProposalLegacy(x uint64) (n int) { + return sovProposalLegacy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { @@ -2739,7 +2741,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2767,7 +2769,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2781,11 +2783,11 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -2799,7 +2801,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2813,11 +2815,11 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -2831,7 +2833,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2845,11 +2847,11 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -2863,7 +2865,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2876,11 +2878,11 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -2897,7 +2899,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2910,11 +2912,11 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -2933,7 +2935,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2953,7 +2955,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2967,11 +2969,11 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -2985,7 +2987,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2999,11 +3001,11 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3017,7 +3019,7 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3030,11 +3032,11 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3046,12 +3048,12 @@ func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3074,7 +3076,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3102,7 +3104,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3116,11 +3118,11 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3134,7 +3136,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3148,11 +3150,11 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3166,7 +3168,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3180,11 +3182,11 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3198,7 +3200,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3212,11 +3214,11 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3230,7 +3232,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { m.CodeID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3249,7 +3251,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3263,11 +3265,11 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3281,7 +3283,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3294,11 +3296,11 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3315,7 +3317,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3328,11 +3330,11 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3344,12 +3346,12 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3372,7 +3374,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3400,7 +3402,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3414,11 +3416,11 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3432,7 +3434,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3446,11 +3448,11 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3464,7 +3466,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3478,11 +3480,11 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3496,7 +3498,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3510,11 +3512,11 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3528,7 +3530,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { m.CodeID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3547,7 +3549,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3561,11 +3563,11 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3579,7 +3581,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3592,11 +3594,11 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3613,7 +3615,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3626,11 +3628,11 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3647,7 +3649,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3660,11 +3662,11 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3681,7 +3683,7 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3696,12 +3698,12 @@ func (m *InstantiateContract2Proposal) Unmarshal(dAtA []byte) error { m.FixMsg = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3724,7 +3726,7 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3752,7 +3754,7 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3766,11 +3768,11 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3784,7 +3786,7 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3798,11 +3800,11 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3816,7 +3818,7 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3830,11 +3832,11 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3848,7 +3850,7 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { m.CodeID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3867,7 +3869,7 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3880,11 +3882,11 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3896,12 +3898,12 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3924,7 +3926,7 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3952,7 +3954,7 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3966,11 +3968,11 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -3984,7 +3986,7 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3998,11 +4000,11 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4016,7 +4018,7 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4030,11 +4032,11 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4048,7 +4050,7 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4061,11 +4063,11 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4077,12 +4079,12 @@ func (m *SudoContractProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4105,7 +4107,7 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4133,7 +4135,7 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4147,11 +4149,11 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4165,7 +4167,7 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4179,11 +4181,11 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4197,7 +4199,7 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4211,11 +4213,11 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4229,7 +4231,7 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4243,11 +4245,11 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4261,7 +4263,7 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4274,11 +4276,11 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4295,7 +4297,7 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4308,11 +4310,11 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4324,12 +4326,12 @@ func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4352,7 +4354,7 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4380,7 +4382,7 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4394,11 +4396,11 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4412,7 +4414,7 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4426,11 +4428,11 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4444,7 +4446,7 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4458,11 +4460,11 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4476,7 +4478,7 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4490,11 +4492,11 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4503,12 +4505,12 @@ func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4531,7 +4533,7 @@ func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4559,7 +4561,7 @@ func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4573,11 +4575,11 @@ func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4591,7 +4593,7 @@ func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4605,11 +4607,11 @@ func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4623,7 +4625,7 @@ func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4637,11 +4639,11 @@ func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4650,12 +4652,12 @@ func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4678,7 +4680,7 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4706,7 +4708,7 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4720,11 +4722,11 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4738,7 +4740,7 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4752,11 +4754,11 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4768,7 +4770,7 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4785,7 +4787,7 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4798,11 +4800,11 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + packedLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4822,7 +4824,7 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4841,12 +4843,12 @@ func (m *PinCodesProposal) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4869,7 +4871,7 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4897,7 +4899,7 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4911,11 +4913,11 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4929,7 +4931,7 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4943,11 +4945,11 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -4959,7 +4961,7 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4976,7 +4978,7 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4989,11 +4991,11 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + packedLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5013,7 +5015,7 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5032,12 +5034,12 @@ func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5060,7 +5062,7 @@ func (m *AccessConfigUpdate) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5088,7 +5090,7 @@ func (m *AccessConfigUpdate) Unmarshal(dAtA []byte) error { m.CodeID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5107,7 +5109,7 @@ func (m *AccessConfigUpdate) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5120,11 +5122,11 @@ func (m *AccessConfigUpdate) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5135,12 +5137,12 @@ func (m *AccessConfigUpdate) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5163,7 +5165,7 @@ func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5191,7 +5193,7 @@ func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5205,11 +5207,11 @@ func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5223,7 +5225,7 @@ func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5237,11 +5239,11 @@ func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5255,7 +5257,7 @@ func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5268,11 +5270,11 @@ func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5284,12 +5286,12 @@ func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5312,7 +5314,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5340,7 +5342,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5354,11 +5356,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5372,7 +5374,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5386,11 +5388,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5404,7 +5406,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5418,11 +5420,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5436,7 +5438,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5449,11 +5451,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5470,7 +5472,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5483,11 +5485,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5506,7 +5508,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5526,7 +5528,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5540,11 +5542,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5558,7 +5560,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5572,11 +5574,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5590,7 +5592,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5603,11 +5605,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5624,7 +5626,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5637,11 +5639,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5658,7 +5660,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5672,11 +5674,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5690,7 +5692,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5704,11 +5706,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5722,7 +5724,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowProposal + return ErrIntOverflowProposalLegacy } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5735,11 +5737,11 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if postIndex > l { return io.ErrUnexpectedEOF @@ -5751,12 +5753,12 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) + skippy, err := skipProposalLegacy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal + return ErrInvalidLengthProposalLegacy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5771,7 +5773,7 @@ func (m *StoreAndInstantiateContractProposal) Unmarshal(dAtA []byte) error { return nil } -func skipProposal(dAtA []byte) (n int, err error) { +func skipProposalLegacy(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -5779,7 +5781,7 @@ func skipProposal(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowProposal + return 0, ErrIntOverflowProposalLegacy } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -5796,7 +5798,7 @@ func skipProposal(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowProposal + return 0, ErrIntOverflowProposalLegacy } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -5812,7 +5814,7 @@ func skipProposal(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowProposal + return 0, ErrIntOverflowProposalLegacy } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -5825,14 +5827,14 @@ func skipProposal(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthProposal + return 0, ErrInvalidLengthProposalLegacy } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupProposal + return 0, ErrUnexpectedEndOfGroupProposalLegacy } depth-- case 5: @@ -5841,7 +5843,7 @@ func skipProposal(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthProposal + return 0, ErrInvalidLengthProposalLegacy } if depth == 0 { return iNdEx, nil @@ -5851,7 +5853,7 @@ func skipProposal(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthProposalLegacy = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowProposalLegacy = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupProposalLegacy = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/wasm/types/proposal_test.go b/x/wasm/types/proposal_legacy_test.go similarity index 100% rename from x/wasm/types/proposal_test.go rename to x/wasm/types/proposal_legacy_test.go