// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: std/codec.proto package std import ( fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types9 "github.com/cosmos/cosmos-sdk/types" github_com_cosmos_cosmos_sdk_x_auth_exported "github.com/cosmos/cosmos-sdk/x/auth/exported" types "github.com/cosmos/cosmos-sdk/x/auth/types" types1 "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" github_com_cosmos_cosmos_sdk_x_bank_exported "github.com/cosmos/cosmos-sdk/x/bank/exported" types2 "github.com/cosmos/cosmos-sdk/x/bank/types" types6 "github.com/cosmos/cosmos-sdk/x/crisis/types" types5 "github.com/cosmos/cosmos-sdk/x/distribution/types" github_com_cosmos_cosmos_sdk_x_gov_types "github.com/cosmos/cosmos-sdk/x/gov/types" types3 "github.com/cosmos/cosmos-sdk/x/gov/types" proposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal" types7 "github.com/cosmos/cosmos-sdk/x/slashing/types" types8 "github.com/cosmos/cosmos-sdk/x/staking/types" types4 "github.com/cosmos/cosmos-sdk/x/upgrade/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/regen-network/cosmos-proto" io "io" math "math" math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Account defines the application-level Account type. type Account struct { // sum defines a list of all acceptable concrete Account implementations. // // Types that are valid to be assigned to Sum: // *Account_BaseAccount // *Account_ContinuousVestingAccount // *Account_DelayedVestingAccount // *Account_PeriodicVestingAccount // *Account_ModuleAccount Sum isAccount_Sum `protobuf_oneof:"sum"` } func (m *Account) Reset() { *m = Account{} } func (m *Account) String() string { return proto.CompactTextString(m) } func (*Account) ProtoMessage() {} func (*Account) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{0} } func (m *Account) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Account.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Account) XXX_Merge(src proto.Message) { xxx_messageInfo_Account.Merge(m, src) } func (m *Account) XXX_Size() int { return m.Size() } func (m *Account) XXX_DiscardUnknown() { xxx_messageInfo_Account.DiscardUnknown(m) } var xxx_messageInfo_Account proto.InternalMessageInfo type isAccount_Sum interface { isAccount_Sum() MarshalTo([]byte) (int, error) Size() int } type Account_BaseAccount struct { BaseAccount *types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,oneof" json:"base_account,omitempty"` } type Account_ContinuousVestingAccount struct { ContinuousVestingAccount *types1.ContinuousVestingAccount `protobuf:"bytes,2,opt,name=continuous_vesting_account,json=continuousVestingAccount,proto3,oneof" json:"continuous_vesting_account,omitempty"` } type Account_DelayedVestingAccount struct { DelayedVestingAccount *types1.DelayedVestingAccount `protobuf:"bytes,3,opt,name=delayed_vesting_account,json=delayedVestingAccount,proto3,oneof" json:"delayed_vesting_account,omitempty"` } type Account_PeriodicVestingAccount struct { PeriodicVestingAccount *types1.PeriodicVestingAccount `protobuf:"bytes,4,opt,name=periodic_vesting_account,json=periodicVestingAccount,proto3,oneof" json:"periodic_vesting_account,omitempty"` } type Account_ModuleAccount struct { ModuleAccount *types.ModuleAccount `protobuf:"bytes,5,opt,name=module_account,json=moduleAccount,proto3,oneof" json:"module_account,omitempty"` } func (*Account_BaseAccount) isAccount_Sum() {} func (*Account_ContinuousVestingAccount) isAccount_Sum() {} func (*Account_DelayedVestingAccount) isAccount_Sum() {} func (*Account_PeriodicVestingAccount) isAccount_Sum() {} func (*Account_ModuleAccount) isAccount_Sum() {} func (m *Account) GetSum() isAccount_Sum { if m != nil { return m.Sum } return nil } func (m *Account) GetBaseAccount() *types.BaseAccount { if x, ok := m.GetSum().(*Account_BaseAccount); ok { return x.BaseAccount } return nil } func (m *Account) GetContinuousVestingAccount() *types1.ContinuousVestingAccount { if x, ok := m.GetSum().(*Account_ContinuousVestingAccount); ok { return x.ContinuousVestingAccount } return nil } func (m *Account) GetDelayedVestingAccount() *types1.DelayedVestingAccount { if x, ok := m.GetSum().(*Account_DelayedVestingAccount); ok { return x.DelayedVestingAccount } return nil } func (m *Account) GetPeriodicVestingAccount() *types1.PeriodicVestingAccount { if x, ok := m.GetSum().(*Account_PeriodicVestingAccount); ok { return x.PeriodicVestingAccount } return nil } func (m *Account) GetModuleAccount() *types.ModuleAccount { if x, ok := m.GetSum().(*Account_ModuleAccount); ok { return x.ModuleAccount } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*Account) XXX_OneofWrappers() []interface{} { return []interface{}{ (*Account_BaseAccount)(nil), (*Account_ContinuousVestingAccount)(nil), (*Account_DelayedVestingAccount)(nil), (*Account_PeriodicVestingAccount)(nil), (*Account_ModuleAccount)(nil), } } // Supply defines the application-level Supply type. type Supply struct { // sum defines a set of all acceptable concrete Supply implementations. // // Types that are valid to be assigned to Sum: // *Supply_Supply Sum isSupply_Sum `protobuf_oneof:"sum"` } func (m *Supply) Reset() { *m = Supply{} } func (m *Supply) String() string { return proto.CompactTextString(m) } func (*Supply) ProtoMessage() {} func (*Supply) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{1} } func (m *Supply) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Supply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Supply.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Supply) XXX_Merge(src proto.Message) { xxx_messageInfo_Supply.Merge(m, src) } func (m *Supply) XXX_Size() int { return m.Size() } func (m *Supply) XXX_DiscardUnknown() { xxx_messageInfo_Supply.DiscardUnknown(m) } var xxx_messageInfo_Supply proto.InternalMessageInfo type isSupply_Sum interface { isSupply_Sum() Equal(interface{}) bool MarshalTo([]byte) (int, error) Size() int } type Supply_Supply struct { Supply *types2.Supply `protobuf:"bytes,1,opt,name=supply,proto3,oneof" json:"supply,omitempty"` } func (*Supply_Supply) isSupply_Sum() {} func (m *Supply) GetSum() isSupply_Sum { if m != nil { return m.Sum } return nil } func (m *Supply) GetSupply() *types2.Supply { if x, ok := m.GetSum().(*Supply_Supply); ok { return x.Supply } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*Supply) XXX_OneofWrappers() []interface{} { return []interface{}{ (*Supply_Supply)(nil), } } // MsgSubmitProposal defines the application-level message type for handling // governance proposals. type MsgSubmitProposal struct { types3.MsgSubmitProposalBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:"base"` Content *Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` } func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} } func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) } func (*MsgSubmitProposal) ProtoMessage() {} func (*MsgSubmitProposal) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{2} } func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgSubmitProposal.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgSubmitProposal) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgSubmitProposal.Merge(m, src) } func (m *MsgSubmitProposal) XXX_Size() int { return m.Size() } func (m *MsgSubmitProposal) XXX_DiscardUnknown() { xxx_messageInfo_MsgSubmitProposal.DiscardUnknown(m) } var xxx_messageInfo_MsgSubmitProposal proto.InternalMessageInfo // Proposal defines the application-level concrete proposal type used in // governance proposals. type Proposal struct { types3.ProposalBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:"base"` Content Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content"` } func (m *Proposal) Reset() { *m = Proposal{} } func (m *Proposal) String() string { return proto.CompactTextString(m) } func (*Proposal) ProtoMessage() {} func (*Proposal) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{3} } func (m *Proposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Proposal.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Proposal) XXX_Merge(src proto.Message) { xxx_messageInfo_Proposal.Merge(m, src) } func (m *Proposal) XXX_Size() int { return m.Size() } func (m *Proposal) XXX_DiscardUnknown() { xxx_messageInfo_Proposal.DiscardUnknown(m) } var xxx_messageInfo_Proposal proto.InternalMessageInfo func (m *Proposal) GetContent() Content { if m != nil { return m.Content } return Content{} } // Content defines the application-level allowed Content to be included in a // governance proposal. type Content struct { // sum defines a set of all acceptable concrete governance proposal Content // types. // // Types that are valid to be assigned to Sum: // *Content_Text // *Content_ParameterChange // *Content_SoftwareUpgrade // *Content_CancelSoftwareUpgrade // *Content_CommunityPoolSpend Sum isContent_Sum `protobuf_oneof:"sum"` } func (m *Content) Reset() { *m = Content{} } func (m *Content) String() string { return proto.CompactTextString(m) } func (*Content) ProtoMessage() {} func (*Content) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{4} } func (m *Content) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Content.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Content) XXX_Merge(src proto.Message) { xxx_messageInfo_Content.Merge(m, src) } func (m *Content) XXX_Size() int { return m.Size() } func (m *Content) XXX_DiscardUnknown() { xxx_messageInfo_Content.DiscardUnknown(m) } var xxx_messageInfo_Content proto.InternalMessageInfo type isContent_Sum interface { isContent_Sum() Equal(interface{}) bool MarshalTo([]byte) (int, error) Size() int } type Content_Text struct { Text *types3.TextProposal `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"` } type Content_ParameterChange struct { ParameterChange *proposal.ParameterChangeProposal `protobuf:"bytes,2,opt,name=parameter_change,json=parameterChange,proto3,oneof" json:"parameter_change,omitempty"` } type Content_SoftwareUpgrade struct { SoftwareUpgrade *types4.SoftwareUpgradeProposal `protobuf:"bytes,3,opt,name=software_upgrade,json=softwareUpgrade,proto3,oneof" json:"software_upgrade,omitempty"` } type Content_CancelSoftwareUpgrade struct { CancelSoftwareUpgrade *types4.CancelSoftwareUpgradeProposal `protobuf:"bytes,4,opt,name=cancel_software_upgrade,json=cancelSoftwareUpgrade,proto3,oneof" json:"cancel_software_upgrade,omitempty"` } type Content_CommunityPoolSpend struct { CommunityPoolSpend *types5.CommunityPoolSpendProposal `protobuf:"bytes,5,opt,name=community_pool_spend,json=communityPoolSpend,proto3,oneof" json:"community_pool_spend,omitempty"` } func (*Content_Text) isContent_Sum() {} func (*Content_ParameterChange) isContent_Sum() {} func (*Content_SoftwareUpgrade) isContent_Sum() {} func (*Content_CancelSoftwareUpgrade) isContent_Sum() {} func (*Content_CommunityPoolSpend) isContent_Sum() {} func (m *Content) GetSum() isContent_Sum { if m != nil { return m.Sum } return nil } func (m *Content) GetText() *types3.TextProposal { if x, ok := m.GetSum().(*Content_Text); ok { return x.Text } return nil } func (m *Content) GetParameterChange() *proposal.ParameterChangeProposal { if x, ok := m.GetSum().(*Content_ParameterChange); ok { return x.ParameterChange } return nil } func (m *Content) GetSoftwareUpgrade() *types4.SoftwareUpgradeProposal { if x, ok := m.GetSum().(*Content_SoftwareUpgrade); ok { return x.SoftwareUpgrade } return nil } func (m *Content) GetCancelSoftwareUpgrade() *types4.CancelSoftwareUpgradeProposal { if x, ok := m.GetSum().(*Content_CancelSoftwareUpgrade); ok { return x.CancelSoftwareUpgrade } return nil } func (m *Content) GetCommunityPoolSpend() *types5.CommunityPoolSpendProposal { if x, ok := m.GetSum().(*Content_CommunityPoolSpend); ok { return x.CommunityPoolSpend } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*Content) XXX_OneofWrappers() []interface{} { return []interface{}{ (*Content_Text)(nil), (*Content_ParameterChange)(nil), (*Content_SoftwareUpgrade)(nil), (*Content_CancelSoftwareUpgrade)(nil), (*Content_CommunityPoolSpend)(nil), } } // Transaction defines the application-level transaction that can be signed and // processed by the state-machine. It contains a base of common fields and // repeated set of Message types. type Transaction struct { StdTxBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:""` Msgs []Message `protobuf:"bytes,2,rep,name=msgs,proto3" json:"msgs"` } func (m *Transaction) Reset() { *m = Transaction{} } func (m *Transaction) String() string { return proto.CompactTextString(m) } func (*Transaction) ProtoMessage() {} func (*Transaction) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{5} } func (m *Transaction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Transaction.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Transaction) XXX_Merge(src proto.Message) { xxx_messageInfo_Transaction.Merge(m, src) } func (m *Transaction) XXX_Size() int { return m.Size() } func (m *Transaction) XXX_DiscardUnknown() { xxx_messageInfo_Transaction.DiscardUnknown(m) } var xxx_messageInfo_Transaction proto.InternalMessageInfo // Message defines the set of valid concrete message types that can be used to // construct a transaction. type Message struct { // sum defines the set of all allowed valid messages defined in modules. // // Types that are valid to be assigned to Sum: // *Message_MsgSend // *Message_MsgMultiSend // *Message_MsgVerifyInvariant // *Message_MsgSetWithdrawAddress // *Message_MsgWithdrawDelegatorReward // *Message_MsgWithdrawValidatorCommission // *Message_MsgFundCommunityPool // *Message_MsgSubmitProposal // *Message_MsgVote // *Message_MsgDeposit // *Message_MsgUnjail // *Message_MsgCreateValidator // *Message_MsgEditValidator // *Message_MsgDelegate // *Message_MsgBeginRedelegate // *Message_MsgUndelegate Sum isMessage_Sum `protobuf_oneof:"sum"` } func (m *Message) Reset() { *m = Message{} } func (m *Message) String() string { return proto.CompactTextString(m) } func (*Message) ProtoMessage() {} func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{6} } func (m *Message) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Message.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Message) XXX_Merge(src proto.Message) { xxx_messageInfo_Message.Merge(m, src) } func (m *Message) XXX_Size() int { return m.Size() } func (m *Message) XXX_DiscardUnknown() { xxx_messageInfo_Message.DiscardUnknown(m) } var xxx_messageInfo_Message proto.InternalMessageInfo type isMessage_Sum interface { isMessage_Sum() MarshalTo([]byte) (int, error) Size() int } type Message_MsgSend struct { MsgSend *types2.MsgSend `protobuf:"bytes,1,opt,name=msg_send,json=msgSend,proto3,oneof" json:"msg_send,omitempty"` } type Message_MsgMultiSend struct { MsgMultiSend *types2.MsgMultiSend `protobuf:"bytes,2,opt,name=msg_multi_send,json=msgMultiSend,proto3,oneof" json:"msg_multi_send,omitempty"` } type Message_MsgVerifyInvariant struct { MsgVerifyInvariant *types6.MsgVerifyInvariant `protobuf:"bytes,3,opt,name=msg_verify_invariant,json=msgVerifyInvariant,proto3,oneof" json:"msg_verify_invariant,omitempty"` } type Message_MsgSetWithdrawAddress struct { MsgSetWithdrawAddress *types5.MsgSetWithdrawAddress `protobuf:"bytes,4,opt,name=msg_set_withdraw_address,json=msgSetWithdrawAddress,proto3,oneof" json:"msg_set_withdraw_address,omitempty"` } type Message_MsgWithdrawDelegatorReward struct { MsgWithdrawDelegatorReward *types5.MsgWithdrawDelegatorReward `protobuf:"bytes,5,opt,name=msg_withdraw_delegator_reward,json=msgWithdrawDelegatorReward,proto3,oneof" json:"msg_withdraw_delegator_reward,omitempty"` } type Message_MsgWithdrawValidatorCommission struct { MsgWithdrawValidatorCommission *types5.MsgWithdrawValidatorCommission `protobuf:"bytes,6,opt,name=msg_withdraw_validator_commission,json=msgWithdrawValidatorCommission,proto3,oneof" json:"msg_withdraw_validator_commission,omitempty"` } type Message_MsgFundCommunityPool struct { MsgFundCommunityPool *types5.MsgFundCommunityPool `protobuf:"bytes,7,opt,name=msg_fund_community_pool,json=msgFundCommunityPool,proto3,oneof" json:"msg_fund_community_pool,omitempty"` } type Message_MsgSubmitProposal struct { MsgSubmitProposal *MsgSubmitProposal `protobuf:"bytes,9,opt,name=msg_submit_proposal,json=msgSubmitProposal,proto3,oneof" json:"msg_submit_proposal,omitempty"` } type Message_MsgVote struct { MsgVote *types3.MsgVote `protobuf:"bytes,10,opt,name=msg_vote,json=msgVote,proto3,oneof" json:"msg_vote,omitempty"` } type Message_MsgDeposit struct { MsgDeposit *types3.MsgDeposit `protobuf:"bytes,11,opt,name=msg_deposit,json=msgDeposit,proto3,oneof" json:"msg_deposit,omitempty"` } type Message_MsgUnjail struct { MsgUnjail *types7.MsgUnjail `protobuf:"bytes,12,opt,name=msg_unjail,json=msgUnjail,proto3,oneof" json:"msg_unjail,omitempty"` } type Message_MsgCreateValidator struct { MsgCreateValidator *types8.MsgCreateValidator `protobuf:"bytes,13,opt,name=msg_create_validator,json=msgCreateValidator,proto3,oneof" json:"msg_create_validator,omitempty"` } type Message_MsgEditValidator struct { MsgEditValidator *types8.MsgEditValidator `protobuf:"bytes,14,opt,name=msg_edit_validator,json=msgEditValidator,proto3,oneof" json:"msg_edit_validator,omitempty"` } type Message_MsgDelegate struct { MsgDelegate *types8.MsgDelegate `protobuf:"bytes,15,opt,name=msg_delegate,json=msgDelegate,proto3,oneof" json:"msg_delegate,omitempty"` } type Message_MsgBeginRedelegate struct { MsgBeginRedelegate *types8.MsgBeginRedelegate `protobuf:"bytes,16,opt,name=msg_begin_redelegate,json=msgBeginRedelegate,proto3,oneof" json:"msg_begin_redelegate,omitempty"` } type Message_MsgUndelegate struct { MsgUndelegate *types8.MsgUndelegate `protobuf:"bytes,17,opt,name=msg_undelegate,json=msgUndelegate,proto3,oneof" json:"msg_undelegate,omitempty"` } func (*Message_MsgSend) isMessage_Sum() {} func (*Message_MsgMultiSend) isMessage_Sum() {} func (*Message_MsgVerifyInvariant) isMessage_Sum() {} func (*Message_MsgSetWithdrawAddress) isMessage_Sum() {} func (*Message_MsgWithdrawDelegatorReward) isMessage_Sum() {} func (*Message_MsgWithdrawValidatorCommission) isMessage_Sum() {} func (*Message_MsgFundCommunityPool) isMessage_Sum() {} func (*Message_MsgSubmitProposal) isMessage_Sum() {} func (*Message_MsgVote) isMessage_Sum() {} func (*Message_MsgDeposit) isMessage_Sum() {} func (*Message_MsgUnjail) isMessage_Sum() {} func (*Message_MsgCreateValidator) isMessage_Sum() {} func (*Message_MsgEditValidator) isMessage_Sum() {} func (*Message_MsgDelegate) isMessage_Sum() {} func (*Message_MsgBeginRedelegate) isMessage_Sum() {} func (*Message_MsgUndelegate) isMessage_Sum() {} func (m *Message) GetSum() isMessage_Sum { if m != nil { return m.Sum } return nil } func (m *Message) GetMsgSend() *types2.MsgSend { if x, ok := m.GetSum().(*Message_MsgSend); ok { return x.MsgSend } return nil } func (m *Message) GetMsgMultiSend() *types2.MsgMultiSend { if x, ok := m.GetSum().(*Message_MsgMultiSend); ok { return x.MsgMultiSend } return nil } func (m *Message) GetMsgVerifyInvariant() *types6.MsgVerifyInvariant { if x, ok := m.GetSum().(*Message_MsgVerifyInvariant); ok { return x.MsgVerifyInvariant } return nil } func (m *Message) GetMsgSetWithdrawAddress() *types5.MsgSetWithdrawAddress { if x, ok := m.GetSum().(*Message_MsgSetWithdrawAddress); ok { return x.MsgSetWithdrawAddress } return nil } func (m *Message) GetMsgWithdrawDelegatorReward() *types5.MsgWithdrawDelegatorReward { if x, ok := m.GetSum().(*Message_MsgWithdrawDelegatorReward); ok { return x.MsgWithdrawDelegatorReward } return nil } func (m *Message) GetMsgWithdrawValidatorCommission() *types5.MsgWithdrawValidatorCommission { if x, ok := m.GetSum().(*Message_MsgWithdrawValidatorCommission); ok { return x.MsgWithdrawValidatorCommission } return nil } func (m *Message) GetMsgFundCommunityPool() *types5.MsgFundCommunityPool { if x, ok := m.GetSum().(*Message_MsgFundCommunityPool); ok { return x.MsgFundCommunityPool } return nil } func (m *Message) GetMsgSubmitProposal() *MsgSubmitProposal { if x, ok := m.GetSum().(*Message_MsgSubmitProposal); ok { return x.MsgSubmitProposal } return nil } func (m *Message) GetMsgVote() *types3.MsgVote { if x, ok := m.GetSum().(*Message_MsgVote); ok { return x.MsgVote } return nil } func (m *Message) GetMsgDeposit() *types3.MsgDeposit { if x, ok := m.GetSum().(*Message_MsgDeposit); ok { return x.MsgDeposit } return nil } func (m *Message) GetMsgUnjail() *types7.MsgUnjail { if x, ok := m.GetSum().(*Message_MsgUnjail); ok { return x.MsgUnjail } return nil } func (m *Message) GetMsgCreateValidator() *types8.MsgCreateValidator { if x, ok := m.GetSum().(*Message_MsgCreateValidator); ok { return x.MsgCreateValidator } return nil } func (m *Message) GetMsgEditValidator() *types8.MsgEditValidator { if x, ok := m.GetSum().(*Message_MsgEditValidator); ok { return x.MsgEditValidator } return nil } func (m *Message) GetMsgDelegate() *types8.MsgDelegate { if x, ok := m.GetSum().(*Message_MsgDelegate); ok { return x.MsgDelegate } return nil } func (m *Message) GetMsgBeginRedelegate() *types8.MsgBeginRedelegate { if x, ok := m.GetSum().(*Message_MsgBeginRedelegate); ok { return x.MsgBeginRedelegate } return nil } func (m *Message) GetMsgUndelegate() *types8.MsgUndelegate { if x, ok := m.GetSum().(*Message_MsgUndelegate); ok { return x.MsgUndelegate } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*Message) XXX_OneofWrappers() []interface{} { return []interface{}{ (*Message_MsgSend)(nil), (*Message_MsgMultiSend)(nil), (*Message_MsgVerifyInvariant)(nil), (*Message_MsgSetWithdrawAddress)(nil), (*Message_MsgWithdrawDelegatorReward)(nil), (*Message_MsgWithdrawValidatorCommission)(nil), (*Message_MsgFundCommunityPool)(nil), (*Message_MsgSubmitProposal)(nil), (*Message_MsgVote)(nil), (*Message_MsgDeposit)(nil), (*Message_MsgUnjail)(nil), (*Message_MsgCreateValidator)(nil), (*Message_MsgEditValidator)(nil), (*Message_MsgDelegate)(nil), (*Message_MsgBeginRedelegate)(nil), (*Message_MsgUndelegate)(nil), } } // SignDoc defines a standard application-level signing document to compose // signatures for a Transaction. type SignDoc struct { StdSignDocBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:""` Msgs []Message `protobuf:"bytes,2,rep,name=msgs,proto3" json:"msgs"` } func (m *SignDoc) Reset() { *m = SignDoc{} } func (m *SignDoc) String() string { return proto.CompactTextString(m) } func (*SignDoc) ProtoMessage() {} func (*SignDoc) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{7} } func (m *SignDoc) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SignDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SignDoc.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SignDoc) XXX_Merge(src proto.Message) { xxx_messageInfo_SignDoc.Merge(m, src) } func (m *SignDoc) XXX_Size() int { return m.Size() } func (m *SignDoc) XXX_DiscardUnknown() { xxx_messageInfo_SignDoc.DiscardUnknown(m) } var xxx_messageInfo_SignDoc proto.InternalMessageInfo func (m *SignDoc) GetMsgs() []Message { if m != nil { return m.Msgs } return nil } // StdFee includes the amount of coins paid in fees and the maximum // gas to be used by the transaction. The ratio yields an effective "gasprice", // which must be above some miminum to be accepted into the mempool. type StdFee struct { Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` Gas uint64 `protobuf:"varint,2,opt,name=gas,proto3" json:"gas,omitempty"` } func (m *StdFee) Reset() { *m = StdFee{} } func (m *StdFee) String() string { return proto.CompactTextString(m) } func (*StdFee) ProtoMessage() {} func (*StdFee) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{8} } func (m *StdFee) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StdFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StdFee.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *StdFee) XXX_Merge(src proto.Message) { xxx_messageInfo_StdFee.Merge(m, src) } func (m *StdFee) XXX_Size() int { return m.Size() } func (m *StdFee) XXX_DiscardUnknown() { xxx_messageInfo_StdFee.DiscardUnknown(m) } var xxx_messageInfo_StdFee proto.InternalMessageInfo // StdSignature defines a signature structure that contains the signature of a // transaction and an optional public key. type StdSignature struct { PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"public_key,omitempty" yaml:"public_key"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } func (m *StdSignature) Reset() { *m = StdSignature{} } func (m *StdSignature) String() string { return proto.CompactTextString(m) } func (*StdSignature) ProtoMessage() {} func (*StdSignature) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{9} } func (m *StdSignature) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StdSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StdSignature.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *StdSignature) XXX_Merge(src proto.Message) { xxx_messageInfo_StdSignature.Merge(m, src) } func (m *StdSignature) XXX_Size() int { return m.Size() } func (m *StdSignature) XXX_DiscardUnknown() { xxx_messageInfo_StdSignature.DiscardUnknown(m) } var xxx_messageInfo_StdSignature proto.InternalMessageInfo // StdTxBase defines a transaction base which application-level concrete transaction // types can extend. type StdTxBase struct { Fee StdFee `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee"` Signatures []StdSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures"` Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` } func (m *StdTxBase) Reset() { *m = StdTxBase{} } func (m *StdTxBase) String() string { return proto.CompactTextString(m) } func (*StdTxBase) ProtoMessage() {} func (*StdTxBase) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{10} } func (m *StdTxBase) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StdTxBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StdTxBase.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *StdTxBase) XXX_Merge(src proto.Message) { xxx_messageInfo_StdTxBase.Merge(m, src) } func (m *StdTxBase) XXX_Size() int { return m.Size() } func (m *StdTxBase) XXX_DiscardUnknown() { xxx_messageInfo_StdTxBase.DiscardUnknown(m) } var xxx_messageInfo_StdTxBase proto.InternalMessageInfo func (m *StdTxBase) GetFee() StdFee { if m != nil { return m.Fee } return StdFee{} } func (m *StdTxBase) GetSignatures() []StdSignature { if m != nil { return m.Signatures } return nil } func (m *StdTxBase) GetMemo() string { if m != nil { return m.Memo } return "" } // StdSignDocBase defines the base structure for which applications can extend // to define the concrete structure that signers sign over. type StdSignDocBase struct { ChainID string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"` AccountNumber uint64 `protobuf:"varint,2,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty" yaml:"account_number"` Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo,omitempty"` Fee StdFee `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee"` } func (m *StdSignDocBase) Reset() { *m = StdSignDocBase{} } func (m *StdSignDocBase) String() string { return proto.CompactTextString(m) } func (*StdSignDocBase) ProtoMessage() {} func (*StdSignDocBase) Descriptor() ([]byte, []int) { return fileDescriptor_ff851c3a98ef46f7, []int{11} } func (m *StdSignDocBase) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StdSignDocBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StdSignDocBase.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *StdSignDocBase) XXX_Merge(src proto.Message) { xxx_messageInfo_StdSignDocBase.Merge(m, src) } func (m *StdSignDocBase) XXX_Size() int { return m.Size() } func (m *StdSignDocBase) XXX_DiscardUnknown() { xxx_messageInfo_StdSignDocBase.DiscardUnknown(m) } var xxx_messageInfo_StdSignDocBase proto.InternalMessageInfo func (m *StdSignDocBase) GetChainID() string { if m != nil { return m.ChainID } return "" } func (m *StdSignDocBase) GetAccountNumber() uint64 { if m != nil { return m.AccountNumber } return 0 } func (m *StdSignDocBase) GetSequence() uint64 { if m != nil { return m.Sequence } return 0 } func (m *StdSignDocBase) GetMemo() string { if m != nil { return m.Memo } return "" } func (m *StdSignDocBase) GetFee() StdFee { if m != nil { return m.Fee } return StdFee{} } func init() { proto.RegisterType((*Account)(nil), "cosmos_sdk.std.v1.Account") proto.RegisterType((*Supply)(nil), "cosmos_sdk.std.v1.Supply") proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos_sdk.std.v1.MsgSubmitProposal") proto.RegisterType((*Proposal)(nil), "cosmos_sdk.std.v1.Proposal") proto.RegisterType((*Content)(nil), "cosmos_sdk.std.v1.Content") proto.RegisterType((*Transaction)(nil), "cosmos_sdk.std.v1.Transaction") proto.RegisterType((*Message)(nil), "cosmos_sdk.std.v1.Message") proto.RegisterType((*SignDoc)(nil), "cosmos_sdk.std.v1.SignDoc") proto.RegisterType((*StdFee)(nil), "cosmos_sdk.std.v1.StdFee") proto.RegisterType((*StdSignature)(nil), "cosmos_sdk.std.v1.StdSignature") proto.RegisterType((*StdTxBase)(nil), "cosmos_sdk.std.v1.StdTxBase") proto.RegisterType((*StdSignDocBase)(nil), "cosmos_sdk.std.v1.StdSignDocBase") } func init() { proto.RegisterFile("std/codec.proto", fileDescriptor_ff851c3a98ef46f7) } var fileDescriptor_ff851c3a98ef46f7 = []byte{ // 1639 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4f, 0x6f, 0x1b, 0xb9, 0x15, 0x97, 0x62, 0xc5, 0xb2, 0x69, 0xf9, 0x1f, 0x93, 0xd4, 0x8a, 0xeb, 0x48, 0x8e, 0x52, 0x04, 0x69, 0x52, 0x4b, 0x71, 0x92, 0xa6, 0x8d, 0xd0, 0x7f, 0x91, 0x1d, 0x43, 0x6e, 0xeb, 0x36, 0x18, 0x27, 0x2e, 0x5a, 0xb4, 0x1d, 0x50, 0x33, 0xf4, 0x98, 0xb5, 0x38, 0x9c, 0x0e, 0x39, 0xb2, 0x54, 0xa0, 0x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6, 0x1b, 0xd0, 0x16, 0xf6, 0xc3, 0x64, 0x34, 0xae, 0x7e, 0x38, 0x2d, 0x5f, 0x09, 0x51, 0x83, 0xfa, 0x8a, 0x31, 0xaf, 0x05, 0xbf, 0x52, 0x7b, 0xb8, 0x0a, 0x66, 0x38, 0xfe, 0x73, 0x80, 0x5d, 0x2b, 0x7c, 0x9e, 0xe6, 0x8c, 0x78, 0x1f, 0xc7, 0x9f, 0xeb, 0xc7, 0x1f, 0x9d, 0xe6, 0xc5, 0xf3, 0x9f, 0x66, 0xa3, 0xfe, 0xfa, 0xac, 0x94, 0x7d, 0x7b, 0x56, 0xca, 0x7e, 0x7e, 0x56, 0xca, 0xfe, 0xfb, 0x5d, 0x29, 0xf3, 0xf6, 0x5d, 0x29, 0xf3, 0xe9, 0xbb, 0x52, 0xe6, 0x77, 0xeb, 0x13, 0x4b, 0x8e, 0x0b, 0xbb, 0x35, 0xad, 0xfe, 0xe5, 0xdf, 0xff, 0x2a, 0x00, 0x00, 0xff, 0xff, 0x1a, 0x12, 0x9f, 0x93, 0x9d, 0x11, 0x00, 0x00, } func (this *Supply) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Supply) if !ok { that2, ok := that.(Supply) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Sum == nil { if this.Sum != nil { return false } } else if this.Sum == nil { return false } else if !this.Sum.Equal(that1.Sum) { return false } return true } func (this *Supply_Supply) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Supply_Supply) if !ok { that2, ok := that.(Supply_Supply) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Supply.Equal(that1.Supply) { return false } return true } func (this *MsgSubmitProposal) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*MsgSubmitProposal) if !ok { that2, ok := that.(MsgSubmitProposal) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.MsgSubmitProposalBase.Equal(&that1.MsgSubmitProposalBase) { return false } if !this.Content.Equal(that1.Content) { return false } return true } func (this *Proposal) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Proposal) if !ok { that2, ok := that.(Proposal) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.ProposalBase.Equal(&that1.ProposalBase) { return false } if !this.Content.Equal(&that1.Content) { return false } return true } func (this *Content) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Content) if !ok { that2, ok := that.(Content) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Sum == nil { if this.Sum != nil { return false } } else if this.Sum == nil { return false } else if !this.Sum.Equal(that1.Sum) { return false } return true } func (this *Content_Text) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Content_Text) if !ok { that2, ok := that.(Content_Text) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Text.Equal(that1.Text) { return false } return true } func (this *Content_ParameterChange) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Content_ParameterChange) if !ok { that2, ok := that.(Content_ParameterChange) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.ParameterChange.Equal(that1.ParameterChange) { return false } return true } func (this *Content_SoftwareUpgrade) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Content_SoftwareUpgrade) if !ok { that2, ok := that.(Content_SoftwareUpgrade) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.SoftwareUpgrade.Equal(that1.SoftwareUpgrade) { return false } return true } func (this *Content_CancelSoftwareUpgrade) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Content_CancelSoftwareUpgrade) if !ok { that2, ok := that.(Content_CancelSoftwareUpgrade) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.CancelSoftwareUpgrade.Equal(that1.CancelSoftwareUpgrade) { return false } return true } func (this *Content_CommunityPoolSpend) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Content_CommunityPoolSpend) if !ok { that2, ok := that.(Content_CommunityPoolSpend) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.CommunityPoolSpend.Equal(that1.CommunityPoolSpend) { return false } return true } func (this *StdFee) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*StdFee) if !ok { that2, ok := that.(StdFee) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if len(this.Amount) != len(that1.Amount) { return false } for i := range this.Amount { if !this.Amount[i].Equal(&that1.Amount[i]) { return false } } if this.Gas != that1.Gas { return false } return true } func (this *Account) GetAccount() github_com_cosmos_cosmos_sdk_x_auth_exported.Account { if x := this.GetBaseAccount(); x != nil { return x } if x := this.GetContinuousVestingAccount(); x != nil { return x } if x := this.GetDelayedVestingAccount(); x != nil { return x } if x := this.GetPeriodicVestingAccount(); x != nil { return x } if x := this.GetModuleAccount(); x != nil { return x } return nil } func (this *Account) SetAccount(value github_com_cosmos_cosmos_sdk_x_auth_exported.Account) error { if value == nil { this.Sum = nil return nil } switch vt := value.(type) { case *types.BaseAccount: this.Sum = &Account_BaseAccount{vt} return nil case *types1.ContinuousVestingAccount: this.Sum = &Account_ContinuousVestingAccount{vt} return nil case *types1.DelayedVestingAccount: this.Sum = &Account_DelayedVestingAccount{vt} return nil case *types1.PeriodicVestingAccount: this.Sum = &Account_PeriodicVestingAccount{vt} return nil case *types.ModuleAccount: this.Sum = &Account_ModuleAccount{vt} return nil } return fmt.Errorf("can't encode value of type %T as message Account", value) } func (this *Supply) GetSupplyI() github_com_cosmos_cosmos_sdk_x_bank_exported.SupplyI { if x := this.GetSupply(); x != nil { return x } return nil } func (this *Supply) SetSupplyI(value github_com_cosmos_cosmos_sdk_x_bank_exported.SupplyI) error { if value == nil { this.Sum = nil return nil } switch vt := value.(type) { case *types2.Supply: this.Sum = &Supply_Supply{vt} return nil } return fmt.Errorf("can't encode value of type %T as message Supply", value) } func (this *Content) GetContent() github_com_cosmos_cosmos_sdk_x_gov_types.Content { if x := this.GetText(); x != nil { return x } if x := this.GetParameterChange(); x != nil { return x } if x := this.GetSoftwareUpgrade(); x != nil { return x } if x := this.GetCancelSoftwareUpgrade(); x != nil { return x } if x := this.GetCommunityPoolSpend(); x != nil { return x } return nil } func (this *Content) SetContent(value github_com_cosmos_cosmos_sdk_x_gov_types.Content) error { if value == nil { this.Sum = nil return nil } switch vt := value.(type) { case *types3.TextProposal: this.Sum = &Content_Text{vt} return nil case *proposal.ParameterChangeProposal: this.Sum = &Content_ParameterChange{vt} return nil case *types4.SoftwareUpgradeProposal: this.Sum = &Content_SoftwareUpgrade{vt} return nil case *types4.CancelSoftwareUpgradeProposal: this.Sum = &Content_CancelSoftwareUpgrade{vt} return nil case *types5.CommunityPoolSpendProposal: this.Sum = &Content_CommunityPoolSpend{vt} return nil } return fmt.Errorf("can't encode value of type %T as message Content", value) } func (this *Message) GetMsg() github_com_cosmos_cosmos_sdk_types.Msg { if x := this.GetMsgSend(); x != nil { return x } if x := this.GetMsgMultiSend(); x != nil { return x } if x := this.GetMsgVerifyInvariant(); x != nil { return x } if x := this.GetMsgSetWithdrawAddress(); x != nil { return x } if x := this.GetMsgWithdrawDelegatorReward(); x != nil { return x } if x := this.GetMsgWithdrawValidatorCommission(); x != nil { return x } if x := this.GetMsgFundCommunityPool(); x != nil { return x } if x := this.GetMsgSubmitProposal(); x != nil { return x } if x := this.GetMsgVote(); x != nil { return x } if x := this.GetMsgDeposit(); x != nil { return x } if x := this.GetMsgUnjail(); x != nil { return x } if x := this.GetMsgCreateValidator(); x != nil { return x } if x := this.GetMsgEditValidator(); x != nil { return x } if x := this.GetMsgDelegate(); x != nil { return x } if x := this.GetMsgBeginRedelegate(); x != nil { return x } if x := this.GetMsgUndelegate(); x != nil { return x } return nil } func (this *Message) SetMsg(value github_com_cosmos_cosmos_sdk_types.Msg) error { if value == nil { this.Sum = nil return nil } switch vt := value.(type) { case *types2.MsgSend: this.Sum = &Message_MsgSend{vt} return nil case types2.MsgSend: this.Sum = &Message_MsgSend{&vt} return nil case *types2.MsgMultiSend: this.Sum = &Message_MsgMultiSend{vt} return nil case types2.MsgMultiSend: this.Sum = &Message_MsgMultiSend{&vt} return nil case *types6.MsgVerifyInvariant: this.Sum = &Message_MsgVerifyInvariant{vt} return nil case types6.MsgVerifyInvariant: this.Sum = &Message_MsgVerifyInvariant{&vt} return nil case *types5.MsgSetWithdrawAddress: this.Sum = &Message_MsgSetWithdrawAddress{vt} return nil case types5.MsgSetWithdrawAddress: this.Sum = &Message_MsgSetWithdrawAddress{&vt} return nil case *types5.MsgWithdrawDelegatorReward: this.Sum = &Message_MsgWithdrawDelegatorReward{vt} return nil case types5.MsgWithdrawDelegatorReward: this.Sum = &Message_MsgWithdrawDelegatorReward{&vt} return nil case *types5.MsgWithdrawValidatorCommission: this.Sum = &Message_MsgWithdrawValidatorCommission{vt} return nil case types5.MsgWithdrawValidatorCommission: this.Sum = &Message_MsgWithdrawValidatorCommission{&vt} return nil case *types5.MsgFundCommunityPool: this.Sum = &Message_MsgFundCommunityPool{vt} return nil case types5.MsgFundCommunityPool: this.Sum = &Message_MsgFundCommunityPool{&vt} return nil case *MsgSubmitProposal: this.Sum = &Message_MsgSubmitProposal{vt} return nil case MsgSubmitProposal: this.Sum = &Message_MsgSubmitProposal{&vt} return nil case *types3.MsgVote: this.Sum = &Message_MsgVote{vt} return nil case types3.MsgVote: this.Sum = &Message_MsgVote{&vt} return nil case *types3.MsgDeposit: this.Sum = &Message_MsgDeposit{vt} return nil case types3.MsgDeposit: this.Sum = &Message_MsgDeposit{&vt} return nil case *types7.MsgUnjail: this.Sum = &Message_MsgUnjail{vt} return nil case types7.MsgUnjail: this.Sum = &Message_MsgUnjail{&vt} return nil case *types8.MsgCreateValidator: this.Sum = &Message_MsgCreateValidator{vt} return nil case types8.MsgCreateValidator: this.Sum = &Message_MsgCreateValidator{&vt} return nil case *types8.MsgEditValidator: this.Sum = &Message_MsgEditValidator{vt} return nil case types8.MsgEditValidator: this.Sum = &Message_MsgEditValidator{&vt} return nil case *types8.MsgDelegate: this.Sum = &Message_MsgDelegate{vt} return nil case types8.MsgDelegate: this.Sum = &Message_MsgDelegate{&vt} return nil case *types8.MsgBeginRedelegate: this.Sum = &Message_MsgBeginRedelegate{vt} return nil case types8.MsgBeginRedelegate: this.Sum = &Message_MsgBeginRedelegate{&vt} return nil case *types8.MsgUndelegate: this.Sum = &Message_MsgUndelegate{vt} return nil case types8.MsgUndelegate: this.Sum = &Message_MsgUndelegate{&vt} return nil } return fmt.Errorf("can't encode value of type %T as message Message", value) } func (m *Account) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Account) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Sum != nil { { size := m.Sum.Size() i -= size if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil { return 0, err } } } return len(dAtA) - i, nil } func (m *Account_BaseAccount) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Account_BaseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.BaseAccount != nil { { size, err := m.BaseAccount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Account_ContinuousVestingAccount) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Account_ContinuousVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.ContinuousVestingAccount != nil { { size, err := m.ContinuousVestingAccount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } return len(dAtA) - i, nil } func (m *Account_DelayedVestingAccount) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Account_DelayedVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.DelayedVestingAccount != nil { { size, err := m.DelayedVestingAccount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } return len(dAtA) - i, nil } func (m *Account_PeriodicVestingAccount) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Account_PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.PeriodicVestingAccount != nil { { size, err := m.PeriodicVestingAccount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } return len(dAtA) - i, nil } func (m *Account_ModuleAccount) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Account_ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.ModuleAccount != nil { { size, err := m.ModuleAccount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } return len(dAtA) - i, nil } func (m *Supply) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Supply) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Sum != nil { { size := m.Sum.Size() i -= size if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil { return 0, err } } } return len(dAtA) - i, nil } func (m *Supply_Supply) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Supply_Supply) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Supply != nil { { size, err := m.Supply.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *MsgSubmitProposal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Content != nil { { size, err := m.Content.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } { size, err := m.MsgSubmitProposalBase.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *Proposal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Proposal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.Content.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 { size, err := m.ProposalBase.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *Content) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Content) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Content) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Sum != nil { { size := m.Sum.Size() i -= size if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil { return 0, err } } } return len(dAtA) - i, nil } func (m *Content_Text) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Content_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Text != nil { { size, err := m.Text.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Content_ParameterChange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Content_ParameterChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.ParameterChange != nil { { size, err := m.ParameterChange.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } return len(dAtA) - i, nil } func (m *Content_SoftwareUpgrade) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Content_SoftwareUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.SoftwareUpgrade != nil { { size, err := m.SoftwareUpgrade.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } return len(dAtA) - i, nil } func (m *Content_CancelSoftwareUpgrade) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Content_CancelSoftwareUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.CancelSoftwareUpgrade != nil { { size, err := m.CancelSoftwareUpgrade.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } return len(dAtA) - i, nil } func (m *Content_CommunityPoolSpend) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Content_CommunityPoolSpend) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.CommunityPoolSpend != nil { { size, err := m.CommunityPoolSpend.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } return len(dAtA) - i, nil } func (m *Transaction) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Transaction) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Msgs) > 0 { for iNdEx := len(m.Msgs) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Msgs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } { size, err := m.StdTxBase.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *Message) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Message) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Sum != nil { { size := m.Sum.Size() i -= size if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil { return 0, err } } } return len(dAtA) - i, nil } func (m *Message_MsgSend) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgSend != nil { { size, err := m.MsgSend.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Message_MsgMultiSend) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgMultiSend != nil { { size, err := m.MsgMultiSend.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } return len(dAtA) - i, nil } func (m *Message_MsgVerifyInvariant) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgVerifyInvariant) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgVerifyInvariant != nil { { size, err := m.MsgVerifyInvariant.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } return len(dAtA) - i, nil } func (m *Message_MsgSetWithdrawAddress) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgSetWithdrawAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgSetWithdrawAddress != nil { { size, err := m.MsgSetWithdrawAddress.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } return len(dAtA) - i, nil } func (m *Message_MsgWithdrawDelegatorReward) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgWithdrawDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgWithdrawDelegatorReward != nil { { size, err := m.MsgWithdrawDelegatorReward.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } return len(dAtA) - i, nil } func (m *Message_MsgWithdrawValidatorCommission) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgWithdrawValidatorCommission) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgWithdrawValidatorCommission != nil { { size, err := m.MsgWithdrawValidatorCommission.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 } return len(dAtA) - i, nil } func (m *Message_MsgFundCommunityPool) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgFundCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgFundCommunityPool != nil { { size, err := m.MsgFundCommunityPool.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } return len(dAtA) - i, nil } func (m *Message_MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgSubmitProposal != nil { { size, err := m.MsgSubmitProposal.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x4a } return len(dAtA) - i, nil } func (m *Message_MsgVote) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgVote != nil { { size, err := m.MsgVote.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 } return len(dAtA) - i, nil } func (m *Message_MsgDeposit) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgDeposit != nil { { size, err := m.MsgDeposit.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } return len(dAtA) - i, nil } func (m *Message_MsgUnjail) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgUnjail) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgUnjail != nil { { size, err := m.MsgUnjail.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x62 } return len(dAtA) - i, nil } func (m *Message_MsgCreateValidator) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgCreateValidator != nil { { size, err := m.MsgCreateValidator.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x6a } return len(dAtA) - i, nil } func (m *Message_MsgEditValidator) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgEditValidator != nil { { size, err := m.MsgEditValidator.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x72 } return len(dAtA) - i, nil } func (m *Message_MsgDelegate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgDelegate != nil { { size, err := m.MsgDelegate.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x7a } return len(dAtA) - i, nil } func (m *Message_MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgBeginRedelegate != nil { { size, err := m.MsgBeginRedelegate.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x82 } return len(dAtA) - i, nil } func (m *Message_MsgUndelegate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Message_MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.MsgUndelegate != nil { { size, err := m.MsgUndelegate.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x8a } return len(dAtA) - i, nil } func (m *SignDoc) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SignDoc) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SignDoc) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Msgs) > 0 { for iNdEx := len(m.Msgs) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Msgs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } { size, err := m.StdSignDocBase.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *StdFee) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StdFee) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StdFee) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Gas != 0 { i = encodeVarintCodec(dAtA, i, uint64(m.Gas)) i-- dAtA[i] = 0x10 } if len(m.Amount) > 0 { for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *StdSignature) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StdSignature) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StdSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signature) > 0 { i -= len(m.Signature) copy(dAtA[i:], m.Signature) i = encodeVarintCodec(dAtA, i, uint64(len(m.Signature))) i-- dAtA[i] = 0x12 } if len(m.PubKey) > 0 { i -= len(m.PubKey) copy(dAtA[i:], m.PubKey) i = encodeVarintCodec(dAtA, i, uint64(len(m.PubKey))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *StdTxBase) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StdTxBase) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StdTxBase) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Memo) > 0 { i -= len(m.Memo) copy(dAtA[i:], m.Memo) i = encodeVarintCodec(dAtA, i, uint64(len(m.Memo))) i-- dAtA[i] = 0x1a } if len(m.Signatures) > 0 { for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Signatures[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } { size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *StdSignDocBase) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StdSignDocBase) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StdSignDocBase) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintCodec(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a if len(m.Memo) > 0 { i -= len(m.Memo) copy(dAtA[i:], m.Memo) i = encodeVarintCodec(dAtA, i, uint64(len(m.Memo))) i-- dAtA[i] = 0x22 } if m.Sequence != 0 { i = encodeVarintCodec(dAtA, i, uint64(m.Sequence)) i-- dAtA[i] = 0x18 } if m.AccountNumber != 0 { i = encodeVarintCodec(dAtA, i, uint64(m.AccountNumber)) i-- dAtA[i] = 0x10 } if len(m.ChainID) > 0 { i -= len(m.ChainID) copy(dAtA[i:], m.ChainID) i = encodeVarintCodec(dAtA, i, uint64(len(m.ChainID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintCodec(dAtA []byte, offset int, v uint64) int { offset -= sovCodec(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *Account) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Sum != nil { n += m.Sum.Size() } return n } func (m *Account_BaseAccount) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.BaseAccount != nil { l = m.BaseAccount.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Account_ContinuousVestingAccount) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ContinuousVestingAccount != nil { l = m.ContinuousVestingAccount.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Account_DelayedVestingAccount) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.DelayedVestingAccount != nil { l = m.DelayedVestingAccount.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Account_PeriodicVestingAccount) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.PeriodicVestingAccount != nil { l = m.PeriodicVestingAccount.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Account_ModuleAccount) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ModuleAccount != nil { l = m.ModuleAccount.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Supply) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Sum != nil { n += m.Sum.Size() } return n } func (m *Supply_Supply) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Supply != nil { l = m.Supply.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *MsgSubmitProposal) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.MsgSubmitProposalBase.Size() n += 1 + l + sovCodec(uint64(l)) if m.Content != nil { l = m.Content.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Proposal) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.ProposalBase.Size() n += 1 + l + sovCodec(uint64(l)) l = m.Content.Size() n += 1 + l + sovCodec(uint64(l)) return n } func (m *Content) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Sum != nil { n += m.Sum.Size() } return n } func (m *Content_Text) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Text != nil { l = m.Text.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Content_ParameterChange) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ParameterChange != nil { l = m.ParameterChange.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Content_SoftwareUpgrade) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.SoftwareUpgrade != nil { l = m.SoftwareUpgrade.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Content_CancelSoftwareUpgrade) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.CancelSoftwareUpgrade != nil { l = m.CancelSoftwareUpgrade.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Content_CommunityPoolSpend) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.CommunityPoolSpend != nil { l = m.CommunityPoolSpend.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Transaction) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.StdTxBase.Size() n += 1 + l + sovCodec(uint64(l)) if len(m.Msgs) > 0 { for _, e := range m.Msgs { l = e.Size() n += 1 + l + sovCodec(uint64(l)) } } return n } func (m *Message) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Sum != nil { n += m.Sum.Size() } return n } func (m *Message_MsgSend) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgSend != nil { l = m.MsgSend.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgMultiSend) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgMultiSend != nil { l = m.MsgMultiSend.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgVerifyInvariant) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgVerifyInvariant != nil { l = m.MsgVerifyInvariant.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgSetWithdrawAddress) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgSetWithdrawAddress != nil { l = m.MsgSetWithdrawAddress.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgWithdrawDelegatorReward) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgWithdrawDelegatorReward != nil { l = m.MsgWithdrawDelegatorReward.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgWithdrawValidatorCommission) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgWithdrawValidatorCommission != nil { l = m.MsgWithdrawValidatorCommission.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgFundCommunityPool) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgFundCommunityPool != nil { l = m.MsgFundCommunityPool.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgSubmitProposal) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgSubmitProposal != nil { l = m.MsgSubmitProposal.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgVote) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgVote != nil { l = m.MsgVote.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgDeposit) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgDeposit != nil { l = m.MsgDeposit.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgUnjail) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgUnjail != nil { l = m.MsgUnjail.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgCreateValidator) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgCreateValidator != nil { l = m.MsgCreateValidator.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgEditValidator) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgEditValidator != nil { l = m.MsgEditValidator.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgDelegate) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgDelegate != nil { l = m.MsgDelegate.Size() n += 1 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgBeginRedelegate) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgBeginRedelegate != nil { l = m.MsgBeginRedelegate.Size() n += 2 + l + sovCodec(uint64(l)) } return n } func (m *Message_MsgUndelegate) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MsgUndelegate != nil { l = m.MsgUndelegate.Size() n += 2 + l + sovCodec(uint64(l)) } return n } func (m *SignDoc) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.StdSignDocBase.Size() n += 1 + l + sovCodec(uint64(l)) if len(m.Msgs) > 0 { for _, e := range m.Msgs { l = e.Size() n += 1 + l + sovCodec(uint64(l)) } } return n } func (m *StdFee) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() n += 1 + l + sovCodec(uint64(l)) } } if m.Gas != 0 { n += 1 + sovCodec(uint64(m.Gas)) } return n } func (m *StdSignature) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PubKey) if l > 0 { n += 1 + l + sovCodec(uint64(l)) } l = len(m.Signature) if l > 0 { n += 1 + l + sovCodec(uint64(l)) } return n } func (m *StdTxBase) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.Fee.Size() n += 1 + l + sovCodec(uint64(l)) if len(m.Signatures) > 0 { for _, e := range m.Signatures { l = e.Size() n += 1 + l + sovCodec(uint64(l)) } } l = len(m.Memo) if l > 0 { n += 1 + l + sovCodec(uint64(l)) } return n } func (m *StdSignDocBase) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ChainID) if l > 0 { n += 1 + l + sovCodec(uint64(l)) } if m.AccountNumber != 0 { n += 1 + sovCodec(uint64(m.AccountNumber)) } if m.Sequence != 0 { n += 1 + sovCodec(uint64(m.Sequence)) } l = len(m.Memo) if l > 0 { n += 1 + l + sovCodec(uint64(l)) } l = m.Fee.Size() n += 1 + l + sovCodec(uint64(l)) return n } func sovCodec(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozCodec(x uint64) (n int) { return sovCodec(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Account) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Account: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BaseAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types.BaseAccount{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Account_BaseAccount{v} iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContinuousVestingAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types1.ContinuousVestingAccount{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Account_ContinuousVestingAccount{v} iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DelayedVestingAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types1.DelayedVestingAccount{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Account_DelayedVestingAccount{v} iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PeriodicVestingAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types1.PeriodicVestingAccount{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Account_PeriodicVestingAccount{v} iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ModuleAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types.ModuleAccount{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Account_ModuleAccount{v} iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Supply) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Supply: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Supply: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types2.Supply{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Supply_Supply{v} iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgSubmitProposal: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgSubmitProposalBase", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.MsgSubmitProposalBase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } if m.Content == nil { m.Content = &Content{} } if err := m.Content.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Proposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Proposal: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProposalBase", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.ProposalBase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Content.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Content) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Content: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Content: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types3.TextProposal{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Content_Text{v} iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParameterChange", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &proposal.ParameterChangeProposal{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Content_ParameterChange{v} iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SoftwareUpgrade", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types4.SoftwareUpgradeProposal{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Content_SoftwareUpgrade{v} iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CancelSoftwareUpgrade", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types4.CancelSoftwareUpgradeProposal{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Content_CancelSoftwareUpgrade{v} iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolSpend", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types5.CommunityPoolSpendProposal{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Content_CommunityPoolSpend{v} iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Transaction) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Transaction: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Transaction: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StdTxBase", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.StdTxBase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Msgs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } m.Msgs = append(m.Msgs, Message{}) if err := m.Msgs[len(m.Msgs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Message) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Message: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgSend", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types2.MsgSend{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgSend{v} iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgMultiSend", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types2.MsgMultiSend{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgMultiSend{v} iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgVerifyInvariant", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types6.MsgVerifyInvariant{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgVerifyInvariant{v} iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgSetWithdrawAddress", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types5.MsgSetWithdrawAddress{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgSetWithdrawAddress{v} iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgWithdrawDelegatorReward", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types5.MsgWithdrawDelegatorReward{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgWithdrawDelegatorReward{v} iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgWithdrawValidatorCommission", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types5.MsgWithdrawValidatorCommission{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgWithdrawValidatorCommission{v} iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgFundCommunityPool", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types5.MsgFundCommunityPool{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgFundCommunityPool{v} iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgSubmitProposal", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &MsgSubmitProposal{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgSubmitProposal{v} iNdEx = postIndex case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgVote", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types3.MsgVote{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgVote{v} iNdEx = postIndex case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgDeposit", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types3.MsgDeposit{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgDeposit{v} iNdEx = postIndex case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgUnjail", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types7.MsgUnjail{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgUnjail{v} iNdEx = postIndex case 13: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgCreateValidator", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types8.MsgCreateValidator{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgCreateValidator{v} iNdEx = postIndex case 14: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgEditValidator", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types8.MsgEditValidator{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgEditValidator{v} iNdEx = postIndex case 15: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgDelegate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types8.MsgDelegate{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgDelegate{v} iNdEx = postIndex case 16: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgBeginRedelegate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types8.MsgBeginRedelegate{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgBeginRedelegate{v} iNdEx = postIndex case 17: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgUndelegate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } v := &types8.MsgUndelegate{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Sum = &Message_MsgUndelegate{v} iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SignDoc) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SignDoc: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SignDoc: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StdSignDocBase", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.StdSignDocBase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Msgs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } m.Msgs = append(m.Msgs, Message{}) if err := m.Msgs[len(m.Msgs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StdFee) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StdFee: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StdFee: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } m.Amount = append(m.Amount, types9.Coin{}) if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) } m.Gas = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Gas |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StdSignature) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StdSignature: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StdSignature: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) if m.PubKey == nil { m.PubKey = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) if m.Signature == nil { m.Signature = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StdTxBase) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StdTxBase: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StdTxBase: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signatures", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } m.Signatures = append(m.Signatures, StdSignature{}) if err := m.Signatures[len(m.Signatures)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } m.Memo = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StdSignDocBase) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StdSignDocBase: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StdSignDocBase: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } m.ChainID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AccountNumber", wireType) } m.AccountNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.AccountNumber |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) } m.Sequence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Sequence |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } m.Memo = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCodec } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthCodec } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthCodec } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCodec(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) < 0 { return ErrInvalidLengthCodec } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipCodec(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowCodec } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowCodec } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowCodec } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthCodec } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupCodec } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthCodec } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthCodec = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCodec = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCodec = fmt.Errorf("proto: unexpected end of group") )