github.com/cosmos/cosmos-sdk@v0.50.10/types/tx/tx.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/tx/v1beta1/tx.proto
     3  
     4  package tx
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/cosmos/cosmos-proto"
     9  	types "github.com/cosmos/cosmos-sdk/codec/types"
    10  	types1 "github.com/cosmos/cosmos-sdk/crypto/types"
    11  	github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
    12  	types2 "github.com/cosmos/cosmos-sdk/types"
    13  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    14  	signing "github.com/cosmos/cosmos-sdk/types/tx/signing"
    15  	_ "github.com/cosmos/gogoproto/gogoproto"
    16  	proto "github.com/cosmos/gogoproto/proto"
    17  	io "io"
    18  	math "math"
    19  	math_bits "math/bits"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  // Tx is the standard type used for broadcasting transactions.
    34  type Tx struct {
    35  	// body is the processable content of the transaction
    36  	Body *TxBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
    37  	// auth_info is the authorization related content of the transaction,
    38  	// specifically signers, signer modes and fee
    39  	AuthInfo *AuthInfo `protobuf:"bytes,2,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty"`
    40  	// signatures is a list of signatures that matches the length and order of
    41  	// AuthInfo's signer_infos to allow connecting signature meta information like
    42  	// public key and signing mode by position.
    43  	Signatures [][]byte `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"`
    44  }
    45  
    46  func (m *Tx) Reset()         { *m = Tx{} }
    47  func (m *Tx) String() string { return proto.CompactTextString(m) }
    48  func (*Tx) ProtoMessage()    {}
    49  func (*Tx) Descriptor() ([]byte, []int) {
    50  	return fileDescriptor_96d1575ffde80842, []int{0}
    51  }
    52  func (m *Tx) XXX_Unmarshal(b []byte) error {
    53  	return m.Unmarshal(b)
    54  }
    55  func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    56  	if deterministic {
    57  		return xxx_messageInfo_Tx.Marshal(b, m, deterministic)
    58  	} else {
    59  		b = b[:cap(b)]
    60  		n, err := m.MarshalToSizedBuffer(b)
    61  		if err != nil {
    62  			return nil, err
    63  		}
    64  		return b[:n], nil
    65  	}
    66  }
    67  func (m *Tx) XXX_Merge(src proto.Message) {
    68  	xxx_messageInfo_Tx.Merge(m, src)
    69  }
    70  func (m *Tx) XXX_Size() int {
    71  	return m.Size()
    72  }
    73  func (m *Tx) XXX_DiscardUnknown() {
    74  	xxx_messageInfo_Tx.DiscardUnknown(m)
    75  }
    76  
    77  var xxx_messageInfo_Tx proto.InternalMessageInfo
    78  
    79  func (m *Tx) GetBody() *TxBody {
    80  	if m != nil {
    81  		return m.Body
    82  	}
    83  	return nil
    84  }
    85  
    86  func (m *Tx) GetAuthInfo() *AuthInfo {
    87  	if m != nil {
    88  		return m.AuthInfo
    89  	}
    90  	return nil
    91  }
    92  
    93  func (m *Tx) GetSignatures() [][]byte {
    94  	if m != nil {
    95  		return m.Signatures
    96  	}
    97  	return nil
    98  }
    99  
   100  // TxRaw is a variant of Tx that pins the signer's exact binary representation
   101  // of body and auth_info. This is used for signing, broadcasting and
   102  // verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
   103  // the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
   104  // as the transaction ID.
   105  type TxRaw struct {
   106  	// body_bytes is a protobuf serialization of a TxBody that matches the
   107  	// representation in SignDoc.
   108  	BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"`
   109  	// auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
   110  	// representation in SignDoc.
   111  	AuthInfoBytes []byte `protobuf:"bytes,2,opt,name=auth_info_bytes,json=authInfoBytes,proto3" json:"auth_info_bytes,omitempty"`
   112  	// signatures is a list of signatures that matches the length and order of
   113  	// AuthInfo's signer_infos to allow connecting signature meta information like
   114  	// public key and signing mode by position.
   115  	Signatures [][]byte `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"`
   116  }
   117  
   118  func (m *TxRaw) Reset()         { *m = TxRaw{} }
   119  func (m *TxRaw) String() string { return proto.CompactTextString(m) }
   120  func (*TxRaw) ProtoMessage()    {}
   121  func (*TxRaw) Descriptor() ([]byte, []int) {
   122  	return fileDescriptor_96d1575ffde80842, []int{1}
   123  }
   124  func (m *TxRaw) XXX_Unmarshal(b []byte) error {
   125  	return m.Unmarshal(b)
   126  }
   127  func (m *TxRaw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   128  	if deterministic {
   129  		return xxx_messageInfo_TxRaw.Marshal(b, m, deterministic)
   130  	} else {
   131  		b = b[:cap(b)]
   132  		n, err := m.MarshalToSizedBuffer(b)
   133  		if err != nil {
   134  			return nil, err
   135  		}
   136  		return b[:n], nil
   137  	}
   138  }
   139  func (m *TxRaw) XXX_Merge(src proto.Message) {
   140  	xxx_messageInfo_TxRaw.Merge(m, src)
   141  }
   142  func (m *TxRaw) XXX_Size() int {
   143  	return m.Size()
   144  }
   145  func (m *TxRaw) XXX_DiscardUnknown() {
   146  	xxx_messageInfo_TxRaw.DiscardUnknown(m)
   147  }
   148  
   149  var xxx_messageInfo_TxRaw proto.InternalMessageInfo
   150  
   151  func (m *TxRaw) GetBodyBytes() []byte {
   152  	if m != nil {
   153  		return m.BodyBytes
   154  	}
   155  	return nil
   156  }
   157  
   158  func (m *TxRaw) GetAuthInfoBytes() []byte {
   159  	if m != nil {
   160  		return m.AuthInfoBytes
   161  	}
   162  	return nil
   163  }
   164  
   165  func (m *TxRaw) GetSignatures() [][]byte {
   166  	if m != nil {
   167  		return m.Signatures
   168  	}
   169  	return nil
   170  }
   171  
   172  // SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.
   173  type SignDoc struct {
   174  	// body_bytes is protobuf serialization of a TxBody that matches the
   175  	// representation in TxRaw.
   176  	BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"`
   177  	// auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
   178  	// representation in TxRaw.
   179  	AuthInfoBytes []byte `protobuf:"bytes,2,opt,name=auth_info_bytes,json=authInfoBytes,proto3" json:"auth_info_bytes,omitempty"`
   180  	// chain_id is the unique identifier of the chain this transaction targets.
   181  	// It prevents signed transactions from being used on another chain by an
   182  	// attacker
   183  	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
   184  	// account_number is the account number of the account in state
   185  	AccountNumber uint64 `protobuf:"varint,4,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
   186  }
   187  
   188  func (m *SignDoc) Reset()         { *m = SignDoc{} }
   189  func (m *SignDoc) String() string { return proto.CompactTextString(m) }
   190  func (*SignDoc) ProtoMessage()    {}
   191  func (*SignDoc) Descriptor() ([]byte, []int) {
   192  	return fileDescriptor_96d1575ffde80842, []int{2}
   193  }
   194  func (m *SignDoc) XXX_Unmarshal(b []byte) error {
   195  	return m.Unmarshal(b)
   196  }
   197  func (m *SignDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   198  	if deterministic {
   199  		return xxx_messageInfo_SignDoc.Marshal(b, m, deterministic)
   200  	} else {
   201  		b = b[:cap(b)]
   202  		n, err := m.MarshalToSizedBuffer(b)
   203  		if err != nil {
   204  			return nil, err
   205  		}
   206  		return b[:n], nil
   207  	}
   208  }
   209  func (m *SignDoc) XXX_Merge(src proto.Message) {
   210  	xxx_messageInfo_SignDoc.Merge(m, src)
   211  }
   212  func (m *SignDoc) XXX_Size() int {
   213  	return m.Size()
   214  }
   215  func (m *SignDoc) XXX_DiscardUnknown() {
   216  	xxx_messageInfo_SignDoc.DiscardUnknown(m)
   217  }
   218  
   219  var xxx_messageInfo_SignDoc proto.InternalMessageInfo
   220  
   221  func (m *SignDoc) GetBodyBytes() []byte {
   222  	if m != nil {
   223  		return m.BodyBytes
   224  	}
   225  	return nil
   226  }
   227  
   228  func (m *SignDoc) GetAuthInfoBytes() []byte {
   229  	if m != nil {
   230  		return m.AuthInfoBytes
   231  	}
   232  	return nil
   233  }
   234  
   235  func (m *SignDoc) GetChainId() string {
   236  	if m != nil {
   237  		return m.ChainId
   238  	}
   239  	return ""
   240  }
   241  
   242  func (m *SignDoc) GetAccountNumber() uint64 {
   243  	if m != nil {
   244  		return m.AccountNumber
   245  	}
   246  	return 0
   247  }
   248  
   249  // SignDocDirectAux is the type used for generating sign bytes for
   250  // SIGN_MODE_DIRECT_AUX.
   251  //
   252  // Since: cosmos-sdk 0.46
   253  type SignDocDirectAux struct {
   254  	// body_bytes is protobuf serialization of a TxBody that matches the
   255  	// representation in TxRaw.
   256  	BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"`
   257  	// public_key is the public key of the signing account.
   258  	PublicKey *types.Any `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
   259  	// chain_id is the identifier of the chain this transaction targets.
   260  	// It prevents signed transactions from being used on another chain by an
   261  	// attacker.
   262  	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
   263  	// account_number is the account number of the account in state.
   264  	AccountNumber uint64 `protobuf:"varint,4,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
   265  	// sequence is the sequence number of the signing account.
   266  	Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"`
   267  	// tips have been depreacted and should not be used
   268  	Tip *Tip `protobuf:"bytes,6,opt,name=tip,proto3" json:"tip,omitempty"` // Deprecated: Do not use.
   269  }
   270  
   271  func (m *SignDocDirectAux) Reset()         { *m = SignDocDirectAux{} }
   272  func (m *SignDocDirectAux) String() string { return proto.CompactTextString(m) }
   273  func (*SignDocDirectAux) ProtoMessage()    {}
   274  func (*SignDocDirectAux) Descriptor() ([]byte, []int) {
   275  	return fileDescriptor_96d1575ffde80842, []int{3}
   276  }
   277  func (m *SignDocDirectAux) XXX_Unmarshal(b []byte) error {
   278  	return m.Unmarshal(b)
   279  }
   280  func (m *SignDocDirectAux) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   281  	if deterministic {
   282  		return xxx_messageInfo_SignDocDirectAux.Marshal(b, m, deterministic)
   283  	} else {
   284  		b = b[:cap(b)]
   285  		n, err := m.MarshalToSizedBuffer(b)
   286  		if err != nil {
   287  			return nil, err
   288  		}
   289  		return b[:n], nil
   290  	}
   291  }
   292  func (m *SignDocDirectAux) XXX_Merge(src proto.Message) {
   293  	xxx_messageInfo_SignDocDirectAux.Merge(m, src)
   294  }
   295  func (m *SignDocDirectAux) XXX_Size() int {
   296  	return m.Size()
   297  }
   298  func (m *SignDocDirectAux) XXX_DiscardUnknown() {
   299  	xxx_messageInfo_SignDocDirectAux.DiscardUnknown(m)
   300  }
   301  
   302  var xxx_messageInfo_SignDocDirectAux proto.InternalMessageInfo
   303  
   304  func (m *SignDocDirectAux) GetBodyBytes() []byte {
   305  	if m != nil {
   306  		return m.BodyBytes
   307  	}
   308  	return nil
   309  }
   310  
   311  func (m *SignDocDirectAux) GetPublicKey() *types.Any {
   312  	if m != nil {
   313  		return m.PublicKey
   314  	}
   315  	return nil
   316  }
   317  
   318  func (m *SignDocDirectAux) GetChainId() string {
   319  	if m != nil {
   320  		return m.ChainId
   321  	}
   322  	return ""
   323  }
   324  
   325  func (m *SignDocDirectAux) GetAccountNumber() uint64 {
   326  	if m != nil {
   327  		return m.AccountNumber
   328  	}
   329  	return 0
   330  }
   331  
   332  func (m *SignDocDirectAux) GetSequence() uint64 {
   333  	if m != nil {
   334  		return m.Sequence
   335  	}
   336  	return 0
   337  }
   338  
   339  // Deprecated: Do not use.
   340  func (m *SignDocDirectAux) GetTip() *Tip {
   341  	if m != nil {
   342  		return m.Tip
   343  	}
   344  	return nil
   345  }
   346  
   347  // TxBody is the body of a transaction that all signers sign over.
   348  type TxBody struct {
   349  	// messages is a list of messages to be executed. The required signers of
   350  	// those messages define the number and order of elements in AuthInfo's
   351  	// signer_infos and Tx's signatures. Each required signer address is added to
   352  	// the list only the first time it occurs.
   353  	// By convention, the first required signer (usually from the first message)
   354  	// is referred to as the primary signer and pays the fee for the whole
   355  	// transaction.
   356  	Messages []*types.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
   357  	// memo is any arbitrary note/comment to be added to the transaction.
   358  	// WARNING: in clients, any publicly exposed text should not be called memo,
   359  	// but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122).
   360  	Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
   361  	// timeout is the block height after which this transaction will not
   362  	// be processed by the chain
   363  	TimeoutHeight uint64 `protobuf:"varint,3,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
   364  	// extension_options are arbitrary options that can be added by chains
   365  	// when the default options are not sufficient. If any of these are present
   366  	// and can't be handled, the transaction will be rejected
   367  	ExtensionOptions []*types.Any `protobuf:"bytes,1023,rep,name=extension_options,json=extensionOptions,proto3" json:"extension_options,omitempty"`
   368  	// extension_options are arbitrary options that can be added by chains
   369  	// when the default options are not sufficient. If any of these are present
   370  	// and can't be handled, they will be ignored
   371  	NonCriticalExtensionOptions []*types.Any `protobuf:"bytes,2047,rep,name=non_critical_extension_options,json=nonCriticalExtensionOptions,proto3" json:"non_critical_extension_options,omitempty"`
   372  }
   373  
   374  func (m *TxBody) Reset()         { *m = TxBody{} }
   375  func (m *TxBody) String() string { return proto.CompactTextString(m) }
   376  func (*TxBody) ProtoMessage()    {}
   377  func (*TxBody) Descriptor() ([]byte, []int) {
   378  	return fileDescriptor_96d1575ffde80842, []int{4}
   379  }
   380  func (m *TxBody) XXX_Unmarshal(b []byte) error {
   381  	return m.Unmarshal(b)
   382  }
   383  func (m *TxBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   384  	if deterministic {
   385  		return xxx_messageInfo_TxBody.Marshal(b, m, deterministic)
   386  	} else {
   387  		b = b[:cap(b)]
   388  		n, err := m.MarshalToSizedBuffer(b)
   389  		if err != nil {
   390  			return nil, err
   391  		}
   392  		return b[:n], nil
   393  	}
   394  }
   395  func (m *TxBody) XXX_Merge(src proto.Message) {
   396  	xxx_messageInfo_TxBody.Merge(m, src)
   397  }
   398  func (m *TxBody) XXX_Size() int {
   399  	return m.Size()
   400  }
   401  func (m *TxBody) XXX_DiscardUnknown() {
   402  	xxx_messageInfo_TxBody.DiscardUnknown(m)
   403  }
   404  
   405  var xxx_messageInfo_TxBody proto.InternalMessageInfo
   406  
   407  func (m *TxBody) GetMessages() []*types.Any {
   408  	if m != nil {
   409  		return m.Messages
   410  	}
   411  	return nil
   412  }
   413  
   414  func (m *TxBody) GetMemo() string {
   415  	if m != nil {
   416  		return m.Memo
   417  	}
   418  	return ""
   419  }
   420  
   421  func (m *TxBody) GetTimeoutHeight() uint64 {
   422  	if m != nil {
   423  		return m.TimeoutHeight
   424  	}
   425  	return 0
   426  }
   427  
   428  func (m *TxBody) GetExtensionOptions() []*types.Any {
   429  	if m != nil {
   430  		return m.ExtensionOptions
   431  	}
   432  	return nil
   433  }
   434  
   435  func (m *TxBody) GetNonCriticalExtensionOptions() []*types.Any {
   436  	if m != nil {
   437  		return m.NonCriticalExtensionOptions
   438  	}
   439  	return nil
   440  }
   441  
   442  // AuthInfo describes the fee and signer modes that are used to sign a
   443  // transaction.
   444  type AuthInfo struct {
   445  	// signer_infos defines the signing modes for the required signers. The number
   446  	// and order of elements must match the required signers from TxBody's
   447  	// messages. The first element is the primary signer and the one which pays
   448  	// the fee.
   449  	SignerInfos []*SignerInfo `protobuf:"bytes,1,rep,name=signer_infos,json=signerInfos,proto3" json:"signer_infos,omitempty"`
   450  	// Fee is the fee and gas limit for the transaction. The first signer is the
   451  	// primary signer and the one which pays the fee. The fee can be calculated
   452  	// based on the cost of evaluating the body and doing signature verification
   453  	// of the signers. This can be estimated via simulation.
   454  	Fee *Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
   455  	// Tip is the optional tip used for transactions fees paid in another denom.
   456  	//
   457  	// This field is ignored if the chain didn't enable tips, i.e. didn't add the
   458  	// `TipDecorator` in its posthandler.
   459  	//
   460  	// Since: cosmos-sdk 0.46
   461  	Tip *Tip `protobuf:"bytes,3,opt,name=tip,proto3" json:"tip,omitempty"` // Deprecated: Do not use.
   462  }
   463  
   464  func (m *AuthInfo) Reset()         { *m = AuthInfo{} }
   465  func (m *AuthInfo) String() string { return proto.CompactTextString(m) }
   466  func (*AuthInfo) ProtoMessage()    {}
   467  func (*AuthInfo) Descriptor() ([]byte, []int) {
   468  	return fileDescriptor_96d1575ffde80842, []int{5}
   469  }
   470  func (m *AuthInfo) XXX_Unmarshal(b []byte) error {
   471  	return m.Unmarshal(b)
   472  }
   473  func (m *AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   474  	if deterministic {
   475  		return xxx_messageInfo_AuthInfo.Marshal(b, m, deterministic)
   476  	} else {
   477  		b = b[:cap(b)]
   478  		n, err := m.MarshalToSizedBuffer(b)
   479  		if err != nil {
   480  			return nil, err
   481  		}
   482  		return b[:n], nil
   483  	}
   484  }
   485  func (m *AuthInfo) XXX_Merge(src proto.Message) {
   486  	xxx_messageInfo_AuthInfo.Merge(m, src)
   487  }
   488  func (m *AuthInfo) XXX_Size() int {
   489  	return m.Size()
   490  }
   491  func (m *AuthInfo) XXX_DiscardUnknown() {
   492  	xxx_messageInfo_AuthInfo.DiscardUnknown(m)
   493  }
   494  
   495  var xxx_messageInfo_AuthInfo proto.InternalMessageInfo
   496  
   497  func (m *AuthInfo) GetSignerInfos() []*SignerInfo {
   498  	if m != nil {
   499  		return m.SignerInfos
   500  	}
   501  	return nil
   502  }
   503  
   504  func (m *AuthInfo) GetFee() *Fee {
   505  	if m != nil {
   506  		return m.Fee
   507  	}
   508  	return nil
   509  }
   510  
   511  // Deprecated: Do not use.
   512  func (m *AuthInfo) GetTip() *Tip {
   513  	if m != nil {
   514  		return m.Tip
   515  	}
   516  	return nil
   517  }
   518  
   519  // SignerInfo describes the public key and signing mode of a single top-level
   520  // signer.
   521  type SignerInfo struct {
   522  	// public_key is the public key of the signer. It is optional for accounts
   523  	// that already exist in state. If unset, the verifier can use the required \
   524  	// signer address for this position and lookup the public key.
   525  	PublicKey *types.Any `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
   526  	// mode_info describes the signing mode of the signer and is a nested
   527  	// structure to support nested multisig pubkey's
   528  	ModeInfo *ModeInfo `protobuf:"bytes,2,opt,name=mode_info,json=modeInfo,proto3" json:"mode_info,omitempty"`
   529  	// sequence is the sequence of the account, which describes the
   530  	// number of committed transactions signed by a given address. It is used to
   531  	// prevent replay attacks.
   532  	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
   533  }
   534  
   535  func (m *SignerInfo) Reset()         { *m = SignerInfo{} }
   536  func (m *SignerInfo) String() string { return proto.CompactTextString(m) }
   537  func (*SignerInfo) ProtoMessage()    {}
   538  func (*SignerInfo) Descriptor() ([]byte, []int) {
   539  	return fileDescriptor_96d1575ffde80842, []int{6}
   540  }
   541  func (m *SignerInfo) XXX_Unmarshal(b []byte) error {
   542  	return m.Unmarshal(b)
   543  }
   544  func (m *SignerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   545  	if deterministic {
   546  		return xxx_messageInfo_SignerInfo.Marshal(b, m, deterministic)
   547  	} else {
   548  		b = b[:cap(b)]
   549  		n, err := m.MarshalToSizedBuffer(b)
   550  		if err != nil {
   551  			return nil, err
   552  		}
   553  		return b[:n], nil
   554  	}
   555  }
   556  func (m *SignerInfo) XXX_Merge(src proto.Message) {
   557  	xxx_messageInfo_SignerInfo.Merge(m, src)
   558  }
   559  func (m *SignerInfo) XXX_Size() int {
   560  	return m.Size()
   561  }
   562  func (m *SignerInfo) XXX_DiscardUnknown() {
   563  	xxx_messageInfo_SignerInfo.DiscardUnknown(m)
   564  }
   565  
   566  var xxx_messageInfo_SignerInfo proto.InternalMessageInfo
   567  
   568  func (m *SignerInfo) GetPublicKey() *types.Any {
   569  	if m != nil {
   570  		return m.PublicKey
   571  	}
   572  	return nil
   573  }
   574  
   575  func (m *SignerInfo) GetModeInfo() *ModeInfo {
   576  	if m != nil {
   577  		return m.ModeInfo
   578  	}
   579  	return nil
   580  }
   581  
   582  func (m *SignerInfo) GetSequence() uint64 {
   583  	if m != nil {
   584  		return m.Sequence
   585  	}
   586  	return 0
   587  }
   588  
   589  // ModeInfo describes the signing mode of a single or nested multisig signer.
   590  type ModeInfo struct {
   591  	// sum is the oneof that specifies whether this represents a single or nested
   592  	// multisig signer
   593  	//
   594  	// Types that are valid to be assigned to Sum:
   595  	//
   596  	//	*ModeInfo_Single_
   597  	//	*ModeInfo_Multi_
   598  	Sum isModeInfo_Sum `protobuf_oneof:"sum"`
   599  }
   600  
   601  func (m *ModeInfo) Reset()         { *m = ModeInfo{} }
   602  func (m *ModeInfo) String() string { return proto.CompactTextString(m) }
   603  func (*ModeInfo) ProtoMessage()    {}
   604  func (*ModeInfo) Descriptor() ([]byte, []int) {
   605  	return fileDescriptor_96d1575ffde80842, []int{7}
   606  }
   607  func (m *ModeInfo) XXX_Unmarshal(b []byte) error {
   608  	return m.Unmarshal(b)
   609  }
   610  func (m *ModeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   611  	if deterministic {
   612  		return xxx_messageInfo_ModeInfo.Marshal(b, m, deterministic)
   613  	} else {
   614  		b = b[:cap(b)]
   615  		n, err := m.MarshalToSizedBuffer(b)
   616  		if err != nil {
   617  			return nil, err
   618  		}
   619  		return b[:n], nil
   620  	}
   621  }
   622  func (m *ModeInfo) XXX_Merge(src proto.Message) {
   623  	xxx_messageInfo_ModeInfo.Merge(m, src)
   624  }
   625  func (m *ModeInfo) XXX_Size() int {
   626  	return m.Size()
   627  }
   628  func (m *ModeInfo) XXX_DiscardUnknown() {
   629  	xxx_messageInfo_ModeInfo.DiscardUnknown(m)
   630  }
   631  
   632  var xxx_messageInfo_ModeInfo proto.InternalMessageInfo
   633  
   634  type isModeInfo_Sum interface {
   635  	isModeInfo_Sum()
   636  	MarshalTo([]byte) (int, error)
   637  	Size() int
   638  }
   639  
   640  type ModeInfo_Single_ struct {
   641  	Single *ModeInfo_Single `protobuf:"bytes,1,opt,name=single,proto3,oneof" json:"single,omitempty"`
   642  }
   643  type ModeInfo_Multi_ struct {
   644  	Multi *ModeInfo_Multi `protobuf:"bytes,2,opt,name=multi,proto3,oneof" json:"multi,omitempty"`
   645  }
   646  
   647  func (*ModeInfo_Single_) isModeInfo_Sum() {}
   648  func (*ModeInfo_Multi_) isModeInfo_Sum()  {}
   649  
   650  func (m *ModeInfo) GetSum() isModeInfo_Sum {
   651  	if m != nil {
   652  		return m.Sum
   653  	}
   654  	return nil
   655  }
   656  
   657  func (m *ModeInfo) GetSingle() *ModeInfo_Single {
   658  	if x, ok := m.GetSum().(*ModeInfo_Single_); ok {
   659  		return x.Single
   660  	}
   661  	return nil
   662  }
   663  
   664  func (m *ModeInfo) GetMulti() *ModeInfo_Multi {
   665  	if x, ok := m.GetSum().(*ModeInfo_Multi_); ok {
   666  		return x.Multi
   667  	}
   668  	return nil
   669  }
   670  
   671  // XXX_OneofWrappers is for the internal use of the proto package.
   672  func (*ModeInfo) XXX_OneofWrappers() []interface{} {
   673  	return []interface{}{
   674  		(*ModeInfo_Single_)(nil),
   675  		(*ModeInfo_Multi_)(nil),
   676  	}
   677  }
   678  
   679  // Single is the mode info for a single signer. It is structured as a message
   680  // to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
   681  // future
   682  type ModeInfo_Single struct {
   683  	// mode is the signing mode of the single signer
   684  	Mode signing.SignMode `protobuf:"varint,1,opt,name=mode,proto3,enum=cosmos.tx.signing.v1beta1.SignMode" json:"mode,omitempty"`
   685  }
   686  
   687  func (m *ModeInfo_Single) Reset()         { *m = ModeInfo_Single{} }
   688  func (m *ModeInfo_Single) String() string { return proto.CompactTextString(m) }
   689  func (*ModeInfo_Single) ProtoMessage()    {}
   690  func (*ModeInfo_Single) Descriptor() ([]byte, []int) {
   691  	return fileDescriptor_96d1575ffde80842, []int{7, 0}
   692  }
   693  func (m *ModeInfo_Single) XXX_Unmarshal(b []byte) error {
   694  	return m.Unmarshal(b)
   695  }
   696  func (m *ModeInfo_Single) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   697  	if deterministic {
   698  		return xxx_messageInfo_ModeInfo_Single.Marshal(b, m, deterministic)
   699  	} else {
   700  		b = b[:cap(b)]
   701  		n, err := m.MarshalToSizedBuffer(b)
   702  		if err != nil {
   703  			return nil, err
   704  		}
   705  		return b[:n], nil
   706  	}
   707  }
   708  func (m *ModeInfo_Single) XXX_Merge(src proto.Message) {
   709  	xxx_messageInfo_ModeInfo_Single.Merge(m, src)
   710  }
   711  func (m *ModeInfo_Single) XXX_Size() int {
   712  	return m.Size()
   713  }
   714  func (m *ModeInfo_Single) XXX_DiscardUnknown() {
   715  	xxx_messageInfo_ModeInfo_Single.DiscardUnknown(m)
   716  }
   717  
   718  var xxx_messageInfo_ModeInfo_Single proto.InternalMessageInfo
   719  
   720  func (m *ModeInfo_Single) GetMode() signing.SignMode {
   721  	if m != nil {
   722  		return m.Mode
   723  	}
   724  	return signing.SignMode_SIGN_MODE_UNSPECIFIED
   725  }
   726  
   727  // Multi is the mode info for a multisig public key
   728  type ModeInfo_Multi struct {
   729  	// bitarray specifies which keys within the multisig are signing
   730  	Bitarray *types1.CompactBitArray `protobuf:"bytes,1,opt,name=bitarray,proto3" json:"bitarray,omitempty"`
   731  	// mode_infos is the corresponding modes of the signers of the multisig
   732  	// which could include nested multisig public keys
   733  	ModeInfos []*ModeInfo `protobuf:"bytes,2,rep,name=mode_infos,json=modeInfos,proto3" json:"mode_infos,omitempty"`
   734  }
   735  
   736  func (m *ModeInfo_Multi) Reset()         { *m = ModeInfo_Multi{} }
   737  func (m *ModeInfo_Multi) String() string { return proto.CompactTextString(m) }
   738  func (*ModeInfo_Multi) ProtoMessage()    {}
   739  func (*ModeInfo_Multi) Descriptor() ([]byte, []int) {
   740  	return fileDescriptor_96d1575ffde80842, []int{7, 1}
   741  }
   742  func (m *ModeInfo_Multi) XXX_Unmarshal(b []byte) error {
   743  	return m.Unmarshal(b)
   744  }
   745  func (m *ModeInfo_Multi) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   746  	if deterministic {
   747  		return xxx_messageInfo_ModeInfo_Multi.Marshal(b, m, deterministic)
   748  	} else {
   749  		b = b[:cap(b)]
   750  		n, err := m.MarshalToSizedBuffer(b)
   751  		if err != nil {
   752  			return nil, err
   753  		}
   754  		return b[:n], nil
   755  	}
   756  }
   757  func (m *ModeInfo_Multi) XXX_Merge(src proto.Message) {
   758  	xxx_messageInfo_ModeInfo_Multi.Merge(m, src)
   759  }
   760  func (m *ModeInfo_Multi) XXX_Size() int {
   761  	return m.Size()
   762  }
   763  func (m *ModeInfo_Multi) XXX_DiscardUnknown() {
   764  	xxx_messageInfo_ModeInfo_Multi.DiscardUnknown(m)
   765  }
   766  
   767  var xxx_messageInfo_ModeInfo_Multi proto.InternalMessageInfo
   768  
   769  func (m *ModeInfo_Multi) GetBitarray() *types1.CompactBitArray {
   770  	if m != nil {
   771  		return m.Bitarray
   772  	}
   773  	return nil
   774  }
   775  
   776  func (m *ModeInfo_Multi) GetModeInfos() []*ModeInfo {
   777  	if m != nil {
   778  		return m.ModeInfos
   779  	}
   780  	return nil
   781  }
   782  
   783  // Fee includes the amount of coins paid in fees and the maximum
   784  // gas to be used by the transaction. The ratio yields an effective "gasprice",
   785  // which must be above some miminum to be accepted into the mempool.
   786  type Fee struct {
   787  	// amount is the amount of coins to be paid as a fee
   788  	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"`
   789  	// gas_limit is the maximum gas that can be used in transaction processing
   790  	// before an out of gas error occurs
   791  	GasLimit uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
   792  	// if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
   793  	// the payer must be a tx signer (and thus have signed this field in AuthInfo).
   794  	// setting this field does *not* change the ordering of required signers for the transaction.
   795  	Payer string `protobuf:"bytes,3,opt,name=payer,proto3" json:"payer,omitempty"`
   796  	// if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
   797  	// to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
   798  	// not support fee grants, this will fail
   799  	Granter string `protobuf:"bytes,4,opt,name=granter,proto3" json:"granter,omitempty"`
   800  }
   801  
   802  func (m *Fee) Reset()         { *m = Fee{} }
   803  func (m *Fee) String() string { return proto.CompactTextString(m) }
   804  func (*Fee) ProtoMessage()    {}
   805  func (*Fee) Descriptor() ([]byte, []int) {
   806  	return fileDescriptor_96d1575ffde80842, []int{8}
   807  }
   808  func (m *Fee) XXX_Unmarshal(b []byte) error {
   809  	return m.Unmarshal(b)
   810  }
   811  func (m *Fee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   812  	if deterministic {
   813  		return xxx_messageInfo_Fee.Marshal(b, m, deterministic)
   814  	} else {
   815  		b = b[:cap(b)]
   816  		n, err := m.MarshalToSizedBuffer(b)
   817  		if err != nil {
   818  			return nil, err
   819  		}
   820  		return b[:n], nil
   821  	}
   822  }
   823  func (m *Fee) XXX_Merge(src proto.Message) {
   824  	xxx_messageInfo_Fee.Merge(m, src)
   825  }
   826  func (m *Fee) XXX_Size() int {
   827  	return m.Size()
   828  }
   829  func (m *Fee) XXX_DiscardUnknown() {
   830  	xxx_messageInfo_Fee.DiscardUnknown(m)
   831  }
   832  
   833  var xxx_messageInfo_Fee proto.InternalMessageInfo
   834  
   835  func (m *Fee) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins {
   836  	if m != nil {
   837  		return m.Amount
   838  	}
   839  	return nil
   840  }
   841  
   842  func (m *Fee) GetGasLimit() uint64 {
   843  	if m != nil {
   844  		return m.GasLimit
   845  	}
   846  	return 0
   847  }
   848  
   849  func (m *Fee) GetPayer() string {
   850  	if m != nil {
   851  		return m.Payer
   852  	}
   853  	return ""
   854  }
   855  
   856  func (m *Fee) GetGranter() string {
   857  	if m != nil {
   858  		return m.Granter
   859  	}
   860  	return ""
   861  }
   862  
   863  // Tip is the tip used for meta-transactions.
   864  //
   865  // Since: cosmos-sdk 0.46
   866  //
   867  // Deprecated: Do not use.
   868  type Tip struct {
   869  	// amount is the amount of the tip
   870  	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"`
   871  	// tipper is the address of the account paying for the tip
   872  	Tipper string `protobuf:"bytes,2,opt,name=tipper,proto3" json:"tipper,omitempty"`
   873  }
   874  
   875  func (m *Tip) Reset()         { *m = Tip{} }
   876  func (m *Tip) String() string { return proto.CompactTextString(m) }
   877  func (*Tip) ProtoMessage()    {}
   878  func (*Tip) Descriptor() ([]byte, []int) {
   879  	return fileDescriptor_96d1575ffde80842, []int{9}
   880  }
   881  func (m *Tip) XXX_Unmarshal(b []byte) error {
   882  	return m.Unmarshal(b)
   883  }
   884  func (m *Tip) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   885  	if deterministic {
   886  		return xxx_messageInfo_Tip.Marshal(b, m, deterministic)
   887  	} else {
   888  		b = b[:cap(b)]
   889  		n, err := m.MarshalToSizedBuffer(b)
   890  		if err != nil {
   891  			return nil, err
   892  		}
   893  		return b[:n], nil
   894  	}
   895  }
   896  func (m *Tip) XXX_Merge(src proto.Message) {
   897  	xxx_messageInfo_Tip.Merge(m, src)
   898  }
   899  func (m *Tip) XXX_Size() int {
   900  	return m.Size()
   901  }
   902  func (m *Tip) XXX_DiscardUnknown() {
   903  	xxx_messageInfo_Tip.DiscardUnknown(m)
   904  }
   905  
   906  var xxx_messageInfo_Tip proto.InternalMessageInfo
   907  
   908  func (m *Tip) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins {
   909  	if m != nil {
   910  		return m.Amount
   911  	}
   912  	return nil
   913  }
   914  
   915  func (m *Tip) GetTipper() string {
   916  	if m != nil {
   917  		return m.Tipper
   918  	}
   919  	return ""
   920  }
   921  
   922  // AuxSignerData is the intermediary format that an auxiliary signer (e.g. a
   923  // tipper) builds and sends to the fee payer (who will build and broadcast the
   924  // actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
   925  // by the node if sent directly as-is.
   926  //
   927  // Since: cosmos-sdk 0.46
   928  type AuxSignerData struct {
   929  	// address is the bech32-encoded address of the auxiliary signer. If using
   930  	// AuxSignerData across different chains, the bech32 prefix of the target
   931  	// chain (where the final transaction is broadcasted) should be used.
   932  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   933  	// sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer
   934  	// signs. Note: we use the same sign doc even if we're signing with
   935  	// LEGACY_AMINO_JSON.
   936  	SignDoc *SignDocDirectAux `protobuf:"bytes,2,opt,name=sign_doc,json=signDoc,proto3" json:"sign_doc,omitempty"`
   937  	// mode is the signing mode of the single signer.
   938  	Mode signing.SignMode `protobuf:"varint,3,opt,name=mode,proto3,enum=cosmos.tx.signing.v1beta1.SignMode" json:"mode,omitempty"`
   939  	// sig is the signature of the sign doc.
   940  	Sig []byte `protobuf:"bytes,4,opt,name=sig,proto3" json:"sig,omitempty"`
   941  }
   942  
   943  func (m *AuxSignerData) Reset()         { *m = AuxSignerData{} }
   944  func (m *AuxSignerData) String() string { return proto.CompactTextString(m) }
   945  func (*AuxSignerData) ProtoMessage()    {}
   946  func (*AuxSignerData) Descriptor() ([]byte, []int) {
   947  	return fileDescriptor_96d1575ffde80842, []int{10}
   948  }
   949  func (m *AuxSignerData) XXX_Unmarshal(b []byte) error {
   950  	return m.Unmarshal(b)
   951  }
   952  func (m *AuxSignerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   953  	if deterministic {
   954  		return xxx_messageInfo_AuxSignerData.Marshal(b, m, deterministic)
   955  	} else {
   956  		b = b[:cap(b)]
   957  		n, err := m.MarshalToSizedBuffer(b)
   958  		if err != nil {
   959  			return nil, err
   960  		}
   961  		return b[:n], nil
   962  	}
   963  }
   964  func (m *AuxSignerData) XXX_Merge(src proto.Message) {
   965  	xxx_messageInfo_AuxSignerData.Merge(m, src)
   966  }
   967  func (m *AuxSignerData) XXX_Size() int {
   968  	return m.Size()
   969  }
   970  func (m *AuxSignerData) XXX_DiscardUnknown() {
   971  	xxx_messageInfo_AuxSignerData.DiscardUnknown(m)
   972  }
   973  
   974  var xxx_messageInfo_AuxSignerData proto.InternalMessageInfo
   975  
   976  func (m *AuxSignerData) GetAddress() string {
   977  	if m != nil {
   978  		return m.Address
   979  	}
   980  	return ""
   981  }
   982  
   983  func (m *AuxSignerData) GetSignDoc() *SignDocDirectAux {
   984  	if m != nil {
   985  		return m.SignDoc
   986  	}
   987  	return nil
   988  }
   989  
   990  func (m *AuxSignerData) GetMode() signing.SignMode {
   991  	if m != nil {
   992  		return m.Mode
   993  	}
   994  	return signing.SignMode_SIGN_MODE_UNSPECIFIED
   995  }
   996  
   997  func (m *AuxSignerData) GetSig() []byte {
   998  	if m != nil {
   999  		return m.Sig
  1000  	}
  1001  	return nil
  1002  }
  1003  
  1004  func init() {
  1005  	proto.RegisterType((*Tx)(nil), "cosmos.tx.v1beta1.Tx")
  1006  	proto.RegisterType((*TxRaw)(nil), "cosmos.tx.v1beta1.TxRaw")
  1007  	proto.RegisterType((*SignDoc)(nil), "cosmos.tx.v1beta1.SignDoc")
  1008  	proto.RegisterType((*SignDocDirectAux)(nil), "cosmos.tx.v1beta1.SignDocDirectAux")
  1009  	proto.RegisterType((*TxBody)(nil), "cosmos.tx.v1beta1.TxBody")
  1010  	proto.RegisterType((*AuthInfo)(nil), "cosmos.tx.v1beta1.AuthInfo")
  1011  	proto.RegisterType((*SignerInfo)(nil), "cosmos.tx.v1beta1.SignerInfo")
  1012  	proto.RegisterType((*ModeInfo)(nil), "cosmos.tx.v1beta1.ModeInfo")
  1013  	proto.RegisterType((*ModeInfo_Single)(nil), "cosmos.tx.v1beta1.ModeInfo.Single")
  1014  	proto.RegisterType((*ModeInfo_Multi)(nil), "cosmos.tx.v1beta1.ModeInfo.Multi")
  1015  	proto.RegisterType((*Fee)(nil), "cosmos.tx.v1beta1.Fee")
  1016  	proto.RegisterType((*Tip)(nil), "cosmos.tx.v1beta1.Tip")
  1017  	proto.RegisterType((*AuxSignerData)(nil), "cosmos.tx.v1beta1.AuxSignerData")
  1018  }
  1019  
  1020  func init() { proto.RegisterFile("cosmos/tx/v1beta1/tx.proto", fileDescriptor_96d1575ffde80842) }
  1021  
  1022  var fileDescriptor_96d1575ffde80842 = []byte{
  1023  	// 1059 bytes of a gzipped FileDescriptorProto
  1024  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0x41, 0x6f, 0x1b, 0x45,
  1025  	0x14, 0xf6, 0x7a, 0x6d, 0xc7, 0x7e, 0x4d, 0xda, 0x64, 0x14, 0x21, 0xc7, 0x51, 0xdd, 0xe0, 0xaa,
  1026  	0x60, 0x55, 0x64, 0xb7, 0x4d, 0x0f, 0x94, 0x0a, 0x01, 0x76, 0x43, 0x94, 0xaa, 0x14, 0xa4, 0x4d,
  1027  	0x4e, 0xbd, 0xac, 0xc6, 0xeb, 0xc9, 0x7a, 0x54, 0xef, 0xcc, 0xb2, 0x33, 0x0b, 0xde, 0x23, 0x3f,
  1028  	0x00, 0xa9, 0x42, 0x42, 0x48, 0x9c, 0x39, 0x20, 0x4e, 0x3d, 0x20, 0x7e, 0x43, 0x4f, 0xa8, 0xe2,
  1029  	0xc4, 0x09, 0xaa, 0xe4, 0xd0, 0x3b, 0x7f, 0x00, 0x34, 0xb3, 0xb3, 0x9b, 0xb4, 0xa4, 0x4e, 0x11,
  1030  	0x48, 0x5c, 0xec, 0x99, 0xb7, 0xdf, 0x7b, 0xf3, 0xbd, 0x37, 0xdf, 0xbc, 0x07, 0x9d, 0x80, 0x8b,
  1031  	0x88, 0x0b, 0x57, 0xce, 0xdc, 0xcf, 0xae, 0x8f, 0x88, 0xc4, 0xd7, 0x5d, 0x39, 0x73, 0xe2, 0x84,
  1032  	0x4b, 0x8e, 0x56, 0xf2, 0x6f, 0x8e, 0x9c, 0x39, 0xe6, 0x5b, 0x67, 0x05, 0x47, 0x94, 0x71, 0x57,
  1033  	0xff, 0xe6, 0xa8, 0xce, 0x6a, 0xc8, 0x43, 0xae, 0x97, 0xae, 0x5a, 0x19, 0xeb, 0xa6, 0x89, 0x1b,
  1034  	0x24, 0x59, 0x2c, 0xb9, 0x1b, 0xa5, 0x53, 0x49, 0x05, 0x0d, 0xcb, 0x43, 0x0a, 0x83, 0x81, 0x77,
  1035  	0x0d, 0x7c, 0x84, 0x05, 0x29, 0x31, 0x01, 0xa7, 0xcc, 0x7c, 0x7f, 0xf3, 0x98, 0xa6, 0xa0, 0x21,
  1036  	0xa3, 0xec, 0x38, 0x92, 0xd9, 0x1b, 0xe0, 0x5a, 0xc8, 0x79, 0x38, 0x25, 0xae, 0xde, 0x8d, 0xd2,
  1037  	0x03, 0x17, 0xb3, 0xac, 0xf8, 0x94, 0xc7, 0xf0, 0x73, 0xae, 0x26, 0x37, 0xbd, 0xe9, 0x7d, 0x69,
  1038  	0x41, 0x75, 0x7f, 0x86, 0x36, 0xa1, 0x36, 0xe2, 0xe3, 0xac, 0x6d, 0x6d, 0x58, 0xfd, 0x73, 0x5b,
  1039  	0x6b, 0xce, 0xdf, 0xf2, 0x77, 0xf6, 0x67, 0x43, 0x3e, 0xce, 0x3c, 0x0d, 0x43, 0x37, 0xa1, 0x85,
  1040  	0x53, 0x39, 0xf1, 0x29, 0x3b, 0xe0, 0xed, 0xaa, 0xf6, 0x59, 0x3f, 0xc5, 0x67, 0x90, 0xca, 0xc9,
  1041  	0x1d, 0x76, 0xc0, 0xbd, 0x26, 0x36, 0x2b, 0xd4, 0x05, 0x50, 0xb4, 0xb1, 0x4c, 0x13, 0x22, 0xda,
  1042  	0xf6, 0x86, 0xdd, 0x5f, 0xf4, 0x4e, 0x58, 0x7a, 0x0c, 0xea, 0xfb, 0x33, 0x0f, 0x7f, 0x8e, 0x2e,
  1043  	0x02, 0xa8, 0xa3, 0xfc, 0x51, 0x26, 0x89, 0xd0, 0xbc, 0x16, 0xbd, 0x96, 0xb2, 0x0c, 0x95, 0x01,
  1044  	0xbd, 0x01, 0x17, 0x4a, 0x06, 0x06, 0x53, 0xd5, 0x98, 0xa5, 0xe2, 0xa8, 0x1c, 0x77, 0xd6, 0x79,
  1045  	0x5f, 0x59, 0xb0, 0xb0, 0x47, 0x43, 0xb6, 0xcd, 0x83, 0xff, 0xea, 0xc8, 0x35, 0x68, 0x06, 0x13,
  1046  	0x4c, 0x99, 0x4f, 0xc7, 0x6d, 0x7b, 0xc3, 0xea, 0xb7, 0xbc, 0x05, 0xbd, 0xbf, 0x33, 0x46, 0x57,
  1047  	0xe0, 0x3c, 0x0e, 0x02, 0x9e, 0x32, 0xe9, 0xb3, 0x34, 0x1a, 0x91, 0xa4, 0x5d, 0xdb, 0xb0, 0xfa,
  1048  	0x35, 0x6f, 0xc9, 0x58, 0x3f, 0xd6, 0xc6, 0xde, 0x1f, 0x16, 0x2c, 0x1b, 0x52, 0xdb, 0x34, 0x21,
  1049  	0x81, 0x1c, 0xa4, 0xb3, 0xb3, 0xd8, 0xdd, 0x00, 0x88, 0xd3, 0xd1, 0x94, 0x06, 0xfe, 0x03, 0x92,
  1050  	0x99, 0x3b, 0x59, 0x75, 0x72, 0x4d, 0x38, 0x85, 0x26, 0x9c, 0x01, 0xcb, 0xbc, 0x56, 0x8e, 0xbb,
  1051  	0x4b, 0xb2, 0x7f, 0x4f, 0x15, 0x75, 0xa0, 0x29, 0xc8, 0xa7, 0x29, 0x61, 0x01, 0x69, 0xd7, 0x35,
  1052  	0xa0, 0xdc, 0xa3, 0xb7, 0xc0, 0x96, 0x34, 0x6e, 0x37, 0x34, 0x97, 0xd7, 0x4e, 0xd3, 0x14, 0x8d,
  1053  	0x87, 0xd5, 0xb6, 0xe5, 0x29, 0x58, 0xef, 0xeb, 0x2a, 0x34, 0x72, 0x91, 0xa1, 0x6b, 0xd0, 0x8c,
  1054  	0x88, 0x10, 0x38, 0xd4, 0x89, 0xda, 0x2f, 0xcd, 0xa4, 0x44, 0x21, 0x04, 0xb5, 0x88, 0x44, 0xb9,
  1055  	0x16, 0x5b, 0x9e, 0x5e, 0xab, 0x0c, 0x24, 0x8d, 0x08, 0x4f, 0xa5, 0x3f, 0x21, 0x34, 0x9c, 0x48,
  1056  	0x9d, 0x62, 0xcd, 0x5b, 0x32, 0xd6, 0x5d, 0x6d, 0x44, 0x43, 0x58, 0x21, 0x33, 0x49, 0x98, 0xa0,
  1057  	0x9c, 0xf9, 0x3c, 0x96, 0x94, 0x33, 0xd1, 0xfe, 0x73, 0x61, 0xce, 0xb1, 0xcb, 0x25, 0xfe, 0x93,
  1058  	0x1c, 0x8e, 0xee, 0x43, 0x97, 0x71, 0xe6, 0x07, 0x09, 0x95, 0x34, 0xc0, 0x53, 0xff, 0x94, 0x80,
  1059  	0x17, 0xe6, 0x04, 0x5c, 0x67, 0x9c, 0xdd, 0x36, 0xbe, 0x1f, 0xbe, 0x10, 0xbb, 0xf7, 0x9d, 0x05,
  1060  	0xcd, 0xe2, 0x21, 0xa1, 0x0f, 0x60, 0x51, 0x89, 0x97, 0x24, 0x5a, 0x85, 0x45, 0x75, 0x2e, 0x9e,
  1061  	0x52, 0xdb, 0x3d, 0x0d, 0xd3, 0xaf, 0xef, 0x9c, 0x28, 0xd7, 0x02, 0xf5, 0xc1, 0x3e, 0x20, 0xc4,
  1062  	0x08, 0xe4, 0xb4, 0x4b, 0xd9, 0x21, 0xc4, 0x53, 0x90, 0xe2, 0xfa, 0xec, 0x57, 0xbb, 0xbe, 0x6f,
  1063  	0x2c, 0x80, 0xe3, 0x33, 0x5f, 0x90, 0xa3, 0xf5, 0x6a, 0x72, 0xbc, 0x09, 0xad, 0x88, 0x8f, 0xc9,
  1064  	0x59, 0x6d, 0xe5, 0x1e, 0x1f, 0x93, 0xbc, 0xad, 0x44, 0x66, 0xf5, 0x9c, 0x0c, 0xed, 0xe7, 0x65,
  1065  	0xd8, 0x7b, 0x5a, 0x85, 0x66, 0xe1, 0x82, 0xde, 0x85, 0x86, 0xa0, 0x2c, 0x9c, 0x12, 0xc3, 0xa9,
  1066  	0x37, 0x27, 0xbe, 0xb3, 0xa7, 0x91, 0xbb, 0x15, 0xcf, 0xf8, 0xa0, 0x77, 0xa0, 0xae, 0xdb, 0xb7,
  1067  	0x21, 0xf7, 0xfa, 0x3c, 0xe7, 0x7b, 0x0a, 0xb8, 0x5b, 0xf1, 0x72, 0x8f, 0xce, 0x00, 0x1a, 0x79,
  1068  	0x38, 0xf4, 0x36, 0xd4, 0x14, 0x6f, 0x4d, 0xe0, 0xfc, 0xd6, 0xe5, 0x13, 0x31, 0x8a, 0x86, 0x7e,
  1069  	0xf2, 0x0e, 0x55, 0x3c, 0x4f, 0x3b, 0x74, 0x1e, 0x5a, 0x50, 0xd7, 0x51, 0xd1, 0x5d, 0x68, 0x8e,
  1070  	0xa8, 0xc4, 0x49, 0x82, 0x8b, 0xda, 0xba, 0x45, 0x98, 0x7c, 0xec, 0x38, 0xe5, 0x94, 0x29, 0x62,
  1071  	0xdd, 0xe6, 0x51, 0x8c, 0x03, 0x39, 0xa4, 0x72, 0xa0, 0xdc, 0xbc, 0x32, 0x00, 0xba, 0x05, 0x50,
  1072  	0x56, 0x5d, 0xb5, 0x34, 0xfb, 0xac, 0xb2, 0xb7, 0x8a, 0xb2, 0x8b, 0x61, 0x1d, 0x6c, 0x91, 0x46,
  1073  	0xbd, 0x2f, 0xaa, 0x60, 0xef, 0x10, 0x82, 0x32, 0x68, 0xe0, 0x48, 0x75, 0x07, 0x23, 0xcc, 0x72,
  1074  	0x90, 0xa8, 0xe9, 0x76, 0x82, 0x0a, 0x65, 0xc3, 0x9d, 0xc7, 0xbf, 0x5d, 0xaa, 0xfc, 0xf0, 0xfb,
  1075  	0xa5, 0x7e, 0x48, 0xe5, 0x24, 0x1d, 0x39, 0x01, 0x8f, 0xdc, 0x62, 0x72, 0xea, 0xbf, 0x4d, 0x31,
  1076  	0x7e, 0xe0, 0xca, 0x2c, 0x26, 0x42, 0x3b, 0x88, 0x6f, 0x9f, 0x3d, 0xba, 0xba, 0x38, 0x25, 0x21,
  1077  	0x0e, 0x32, 0x5f, 0xcd, 0x47, 0xf1, 0xfd, 0xb3, 0x47, 0x57, 0x2d, 0xcf, 0x1c, 0x88, 0xd6, 0xa1,
  1078  	0x15, 0x62, 0xe1, 0x4f, 0x69, 0x44, 0xa5, 0xbe, 0x9e, 0x9a, 0xd7, 0x0c, 0xb1, 0xf8, 0x48, 0xed,
  1079  	0x91, 0x03, 0xf5, 0x18, 0x67, 0x24, 0xc9, 0x9b, 0xdc, 0xb0, 0xfd, 0xcb, 0x8f, 0x9b, 0xab, 0x86,
  1080  	0xd9, 0x60, 0x3c, 0x4e, 0x88, 0x10, 0x7b, 0x32, 0xa1, 0x2c, 0xf4, 0x72, 0x18, 0xda, 0x82, 0x85,
  1081  	0x30, 0xc1, 0x4c, 0x9a, 0xae, 0x37, 0xcf, 0xa3, 0x00, 0xf6, 0x7e, 0xb2, 0xc0, 0xde, 0xa7, 0xf1,
  1082  	0xff, 0x59, 0x83, 0x6b, 0xd0, 0x90, 0x34, 0x8e, 0x49, 0x92, 0xf7, 0xc1, 0x39, 0xac, 0x0d, 0xee,
  1083  	0x56, 0xb5, 0x6d, 0xf5, 0x7e, 0xb6, 0x60, 0x69, 0x90, 0xce, 0xf2, 0xc7, 0xbb, 0x8d, 0x25, 0x56,
  1084  	0xe9, 0xe3, 0x1c, 0xae, 0xd5, 0x35, 0x37, 0x7d, 0x03, 0x44, 0xef, 0x41, 0x53, 0xc9, 0xd7, 0x1f,
  1085  	0xf3, 0xc0, 0xbc, 0x8e, 0xcb, 0x2f, 0xe9, 0x4a, 0x27, 0xa7, 0x9a, 0xb7, 0x20, 0xcc, 0xf0, 0x2d,
  1086  	0x5e, 0x85, 0xfd, 0x0f, 0x5f, 0x05, 0x5a, 0x06, 0x5b, 0xd0, 0x50, 0xdf, 0xd3, 0xa2, 0xa7, 0x96,
  1087  	0xc3, 0xf7, 0x1f, 0x1f, 0x76, 0xad, 0x27, 0x87, 0x5d, 0xeb, 0xe9, 0x61, 0xd7, 0x7a, 0x78, 0xd4,
  1088  	0xad, 0x3c, 0x39, 0xea, 0x56, 0x7e, 0x3d, 0xea, 0x56, 0xee, 0x5f, 0x39, 0xbb, 0xd0, 0xae, 0x9c,
  1089  	0x8d, 0x1a, 0xba, 0x41, 0xdd, 0xf8, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x24, 0x52, 0x64, 0xe6, 0x23,
  1090  	0x0a, 0x00, 0x00,
  1091  }
  1092  
  1093  func (m *Tx) Marshal() (dAtA []byte, err error) {
  1094  	size := m.Size()
  1095  	dAtA = make([]byte, size)
  1096  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1097  	if err != nil {
  1098  		return nil, err
  1099  	}
  1100  	return dAtA[:n], nil
  1101  }
  1102  
  1103  func (m *Tx) MarshalTo(dAtA []byte) (int, error) {
  1104  	size := m.Size()
  1105  	return m.MarshalToSizedBuffer(dAtA[:size])
  1106  }
  1107  
  1108  func (m *Tx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1109  	i := len(dAtA)
  1110  	_ = i
  1111  	var l int
  1112  	_ = l
  1113  	if len(m.Signatures) > 0 {
  1114  		for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- {
  1115  			i -= len(m.Signatures[iNdEx])
  1116  			copy(dAtA[i:], m.Signatures[iNdEx])
  1117  			i = encodeVarintTx(dAtA, i, uint64(len(m.Signatures[iNdEx])))
  1118  			i--
  1119  			dAtA[i] = 0x1a
  1120  		}
  1121  	}
  1122  	if m.AuthInfo != nil {
  1123  		{
  1124  			size, err := m.AuthInfo.MarshalToSizedBuffer(dAtA[:i])
  1125  			if err != nil {
  1126  				return 0, err
  1127  			}
  1128  			i -= size
  1129  			i = encodeVarintTx(dAtA, i, uint64(size))
  1130  		}
  1131  		i--
  1132  		dAtA[i] = 0x12
  1133  	}
  1134  	if m.Body != nil {
  1135  		{
  1136  			size, err := m.Body.MarshalToSizedBuffer(dAtA[:i])
  1137  			if err != nil {
  1138  				return 0, err
  1139  			}
  1140  			i -= size
  1141  			i = encodeVarintTx(dAtA, i, uint64(size))
  1142  		}
  1143  		i--
  1144  		dAtA[i] = 0xa
  1145  	}
  1146  	return len(dAtA) - i, nil
  1147  }
  1148  
  1149  func (m *TxRaw) Marshal() (dAtA []byte, err error) {
  1150  	size := m.Size()
  1151  	dAtA = make([]byte, size)
  1152  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1153  	if err != nil {
  1154  		return nil, err
  1155  	}
  1156  	return dAtA[:n], nil
  1157  }
  1158  
  1159  func (m *TxRaw) MarshalTo(dAtA []byte) (int, error) {
  1160  	size := m.Size()
  1161  	return m.MarshalToSizedBuffer(dAtA[:size])
  1162  }
  1163  
  1164  func (m *TxRaw) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1165  	i := len(dAtA)
  1166  	_ = i
  1167  	var l int
  1168  	_ = l
  1169  	if len(m.Signatures) > 0 {
  1170  		for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- {
  1171  			i -= len(m.Signatures[iNdEx])
  1172  			copy(dAtA[i:], m.Signatures[iNdEx])
  1173  			i = encodeVarintTx(dAtA, i, uint64(len(m.Signatures[iNdEx])))
  1174  			i--
  1175  			dAtA[i] = 0x1a
  1176  		}
  1177  	}
  1178  	if len(m.AuthInfoBytes) > 0 {
  1179  		i -= len(m.AuthInfoBytes)
  1180  		copy(dAtA[i:], m.AuthInfoBytes)
  1181  		i = encodeVarintTx(dAtA, i, uint64(len(m.AuthInfoBytes)))
  1182  		i--
  1183  		dAtA[i] = 0x12
  1184  	}
  1185  	if len(m.BodyBytes) > 0 {
  1186  		i -= len(m.BodyBytes)
  1187  		copy(dAtA[i:], m.BodyBytes)
  1188  		i = encodeVarintTx(dAtA, i, uint64(len(m.BodyBytes)))
  1189  		i--
  1190  		dAtA[i] = 0xa
  1191  	}
  1192  	return len(dAtA) - i, nil
  1193  }
  1194  
  1195  func (m *SignDoc) Marshal() (dAtA []byte, err error) {
  1196  	size := m.Size()
  1197  	dAtA = make([]byte, size)
  1198  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1199  	if err != nil {
  1200  		return nil, err
  1201  	}
  1202  	return dAtA[:n], nil
  1203  }
  1204  
  1205  func (m *SignDoc) MarshalTo(dAtA []byte) (int, error) {
  1206  	size := m.Size()
  1207  	return m.MarshalToSizedBuffer(dAtA[:size])
  1208  }
  1209  
  1210  func (m *SignDoc) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1211  	i := len(dAtA)
  1212  	_ = i
  1213  	var l int
  1214  	_ = l
  1215  	if m.AccountNumber != 0 {
  1216  		i = encodeVarintTx(dAtA, i, uint64(m.AccountNumber))
  1217  		i--
  1218  		dAtA[i] = 0x20
  1219  	}
  1220  	if len(m.ChainId) > 0 {
  1221  		i -= len(m.ChainId)
  1222  		copy(dAtA[i:], m.ChainId)
  1223  		i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId)))
  1224  		i--
  1225  		dAtA[i] = 0x1a
  1226  	}
  1227  	if len(m.AuthInfoBytes) > 0 {
  1228  		i -= len(m.AuthInfoBytes)
  1229  		copy(dAtA[i:], m.AuthInfoBytes)
  1230  		i = encodeVarintTx(dAtA, i, uint64(len(m.AuthInfoBytes)))
  1231  		i--
  1232  		dAtA[i] = 0x12
  1233  	}
  1234  	if len(m.BodyBytes) > 0 {
  1235  		i -= len(m.BodyBytes)
  1236  		copy(dAtA[i:], m.BodyBytes)
  1237  		i = encodeVarintTx(dAtA, i, uint64(len(m.BodyBytes)))
  1238  		i--
  1239  		dAtA[i] = 0xa
  1240  	}
  1241  	return len(dAtA) - i, nil
  1242  }
  1243  
  1244  func (m *SignDocDirectAux) Marshal() (dAtA []byte, err error) {
  1245  	size := m.Size()
  1246  	dAtA = make([]byte, size)
  1247  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1248  	if err != nil {
  1249  		return nil, err
  1250  	}
  1251  	return dAtA[:n], nil
  1252  }
  1253  
  1254  func (m *SignDocDirectAux) MarshalTo(dAtA []byte) (int, error) {
  1255  	size := m.Size()
  1256  	return m.MarshalToSizedBuffer(dAtA[:size])
  1257  }
  1258  
  1259  func (m *SignDocDirectAux) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1260  	i := len(dAtA)
  1261  	_ = i
  1262  	var l int
  1263  	_ = l
  1264  	if m.Tip != nil {
  1265  		{
  1266  			size, err := m.Tip.MarshalToSizedBuffer(dAtA[:i])
  1267  			if err != nil {
  1268  				return 0, err
  1269  			}
  1270  			i -= size
  1271  			i = encodeVarintTx(dAtA, i, uint64(size))
  1272  		}
  1273  		i--
  1274  		dAtA[i] = 0x32
  1275  	}
  1276  	if m.Sequence != 0 {
  1277  		i = encodeVarintTx(dAtA, i, uint64(m.Sequence))
  1278  		i--
  1279  		dAtA[i] = 0x28
  1280  	}
  1281  	if m.AccountNumber != 0 {
  1282  		i = encodeVarintTx(dAtA, i, uint64(m.AccountNumber))
  1283  		i--
  1284  		dAtA[i] = 0x20
  1285  	}
  1286  	if len(m.ChainId) > 0 {
  1287  		i -= len(m.ChainId)
  1288  		copy(dAtA[i:], m.ChainId)
  1289  		i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId)))
  1290  		i--
  1291  		dAtA[i] = 0x1a
  1292  	}
  1293  	if m.PublicKey != nil {
  1294  		{
  1295  			size, err := m.PublicKey.MarshalToSizedBuffer(dAtA[:i])
  1296  			if err != nil {
  1297  				return 0, err
  1298  			}
  1299  			i -= size
  1300  			i = encodeVarintTx(dAtA, i, uint64(size))
  1301  		}
  1302  		i--
  1303  		dAtA[i] = 0x12
  1304  	}
  1305  	if len(m.BodyBytes) > 0 {
  1306  		i -= len(m.BodyBytes)
  1307  		copy(dAtA[i:], m.BodyBytes)
  1308  		i = encodeVarintTx(dAtA, i, uint64(len(m.BodyBytes)))
  1309  		i--
  1310  		dAtA[i] = 0xa
  1311  	}
  1312  	return len(dAtA) - i, nil
  1313  }
  1314  
  1315  func (m *TxBody) Marshal() (dAtA []byte, err error) {
  1316  	size := m.Size()
  1317  	dAtA = make([]byte, size)
  1318  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1319  	if err != nil {
  1320  		return nil, err
  1321  	}
  1322  	return dAtA[:n], nil
  1323  }
  1324  
  1325  func (m *TxBody) MarshalTo(dAtA []byte) (int, error) {
  1326  	size := m.Size()
  1327  	return m.MarshalToSizedBuffer(dAtA[:size])
  1328  }
  1329  
  1330  func (m *TxBody) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1331  	i := len(dAtA)
  1332  	_ = i
  1333  	var l int
  1334  	_ = l
  1335  	if len(m.NonCriticalExtensionOptions) > 0 {
  1336  		for iNdEx := len(m.NonCriticalExtensionOptions) - 1; iNdEx >= 0; iNdEx-- {
  1337  			{
  1338  				size, err := m.NonCriticalExtensionOptions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1339  				if err != nil {
  1340  					return 0, err
  1341  				}
  1342  				i -= size
  1343  				i = encodeVarintTx(dAtA, i, uint64(size))
  1344  			}
  1345  			i--
  1346  			dAtA[i] = 0x7f
  1347  			i--
  1348  			dAtA[i] = 0xfa
  1349  		}
  1350  	}
  1351  	if len(m.ExtensionOptions) > 0 {
  1352  		for iNdEx := len(m.ExtensionOptions) - 1; iNdEx >= 0; iNdEx-- {
  1353  			{
  1354  				size, err := m.ExtensionOptions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1355  				if err != nil {
  1356  					return 0, err
  1357  				}
  1358  				i -= size
  1359  				i = encodeVarintTx(dAtA, i, uint64(size))
  1360  			}
  1361  			i--
  1362  			dAtA[i] = 0x3f
  1363  			i--
  1364  			dAtA[i] = 0xfa
  1365  		}
  1366  	}
  1367  	if m.TimeoutHeight != 0 {
  1368  		i = encodeVarintTx(dAtA, i, uint64(m.TimeoutHeight))
  1369  		i--
  1370  		dAtA[i] = 0x18
  1371  	}
  1372  	if len(m.Memo) > 0 {
  1373  		i -= len(m.Memo)
  1374  		copy(dAtA[i:], m.Memo)
  1375  		i = encodeVarintTx(dAtA, i, uint64(len(m.Memo)))
  1376  		i--
  1377  		dAtA[i] = 0x12
  1378  	}
  1379  	if len(m.Messages) > 0 {
  1380  		for iNdEx := len(m.Messages) - 1; iNdEx >= 0; iNdEx-- {
  1381  			{
  1382  				size, err := m.Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1383  				if err != nil {
  1384  					return 0, err
  1385  				}
  1386  				i -= size
  1387  				i = encodeVarintTx(dAtA, i, uint64(size))
  1388  			}
  1389  			i--
  1390  			dAtA[i] = 0xa
  1391  		}
  1392  	}
  1393  	return len(dAtA) - i, nil
  1394  }
  1395  
  1396  func (m *AuthInfo) Marshal() (dAtA []byte, err error) {
  1397  	size := m.Size()
  1398  	dAtA = make([]byte, size)
  1399  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1400  	if err != nil {
  1401  		return nil, err
  1402  	}
  1403  	return dAtA[:n], nil
  1404  }
  1405  
  1406  func (m *AuthInfo) MarshalTo(dAtA []byte) (int, error) {
  1407  	size := m.Size()
  1408  	return m.MarshalToSizedBuffer(dAtA[:size])
  1409  }
  1410  
  1411  func (m *AuthInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1412  	i := len(dAtA)
  1413  	_ = i
  1414  	var l int
  1415  	_ = l
  1416  	if m.Tip != nil {
  1417  		{
  1418  			size, err := m.Tip.MarshalToSizedBuffer(dAtA[:i])
  1419  			if err != nil {
  1420  				return 0, err
  1421  			}
  1422  			i -= size
  1423  			i = encodeVarintTx(dAtA, i, uint64(size))
  1424  		}
  1425  		i--
  1426  		dAtA[i] = 0x1a
  1427  	}
  1428  	if m.Fee != nil {
  1429  		{
  1430  			size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i])
  1431  			if err != nil {
  1432  				return 0, err
  1433  			}
  1434  			i -= size
  1435  			i = encodeVarintTx(dAtA, i, uint64(size))
  1436  		}
  1437  		i--
  1438  		dAtA[i] = 0x12
  1439  	}
  1440  	if len(m.SignerInfos) > 0 {
  1441  		for iNdEx := len(m.SignerInfos) - 1; iNdEx >= 0; iNdEx-- {
  1442  			{
  1443  				size, err := m.SignerInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1444  				if err != nil {
  1445  					return 0, err
  1446  				}
  1447  				i -= size
  1448  				i = encodeVarintTx(dAtA, i, uint64(size))
  1449  			}
  1450  			i--
  1451  			dAtA[i] = 0xa
  1452  		}
  1453  	}
  1454  	return len(dAtA) - i, nil
  1455  }
  1456  
  1457  func (m *SignerInfo) Marshal() (dAtA []byte, err error) {
  1458  	size := m.Size()
  1459  	dAtA = make([]byte, size)
  1460  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1461  	if err != nil {
  1462  		return nil, err
  1463  	}
  1464  	return dAtA[:n], nil
  1465  }
  1466  
  1467  func (m *SignerInfo) MarshalTo(dAtA []byte) (int, error) {
  1468  	size := m.Size()
  1469  	return m.MarshalToSizedBuffer(dAtA[:size])
  1470  }
  1471  
  1472  func (m *SignerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1473  	i := len(dAtA)
  1474  	_ = i
  1475  	var l int
  1476  	_ = l
  1477  	if m.Sequence != 0 {
  1478  		i = encodeVarintTx(dAtA, i, uint64(m.Sequence))
  1479  		i--
  1480  		dAtA[i] = 0x18
  1481  	}
  1482  	if m.ModeInfo != nil {
  1483  		{
  1484  			size, err := m.ModeInfo.MarshalToSizedBuffer(dAtA[:i])
  1485  			if err != nil {
  1486  				return 0, err
  1487  			}
  1488  			i -= size
  1489  			i = encodeVarintTx(dAtA, i, uint64(size))
  1490  		}
  1491  		i--
  1492  		dAtA[i] = 0x12
  1493  	}
  1494  	if m.PublicKey != nil {
  1495  		{
  1496  			size, err := m.PublicKey.MarshalToSizedBuffer(dAtA[:i])
  1497  			if err != nil {
  1498  				return 0, err
  1499  			}
  1500  			i -= size
  1501  			i = encodeVarintTx(dAtA, i, uint64(size))
  1502  		}
  1503  		i--
  1504  		dAtA[i] = 0xa
  1505  	}
  1506  	return len(dAtA) - i, nil
  1507  }
  1508  
  1509  func (m *ModeInfo) Marshal() (dAtA []byte, err error) {
  1510  	size := m.Size()
  1511  	dAtA = make([]byte, size)
  1512  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1513  	if err != nil {
  1514  		return nil, err
  1515  	}
  1516  	return dAtA[:n], nil
  1517  }
  1518  
  1519  func (m *ModeInfo) MarshalTo(dAtA []byte) (int, error) {
  1520  	size := m.Size()
  1521  	return m.MarshalToSizedBuffer(dAtA[:size])
  1522  }
  1523  
  1524  func (m *ModeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1525  	i := len(dAtA)
  1526  	_ = i
  1527  	var l int
  1528  	_ = l
  1529  	if m.Sum != nil {
  1530  		{
  1531  			size := m.Sum.Size()
  1532  			i -= size
  1533  			if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
  1534  				return 0, err
  1535  			}
  1536  		}
  1537  	}
  1538  	return len(dAtA) - i, nil
  1539  }
  1540  
  1541  func (m *ModeInfo_Single_) MarshalTo(dAtA []byte) (int, error) {
  1542  	size := m.Size()
  1543  	return m.MarshalToSizedBuffer(dAtA[:size])
  1544  }
  1545  
  1546  func (m *ModeInfo_Single_) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1547  	i := len(dAtA)
  1548  	if m.Single != nil {
  1549  		{
  1550  			size, err := m.Single.MarshalToSizedBuffer(dAtA[:i])
  1551  			if err != nil {
  1552  				return 0, err
  1553  			}
  1554  			i -= size
  1555  			i = encodeVarintTx(dAtA, i, uint64(size))
  1556  		}
  1557  		i--
  1558  		dAtA[i] = 0xa
  1559  	}
  1560  	return len(dAtA) - i, nil
  1561  }
  1562  func (m *ModeInfo_Multi_) MarshalTo(dAtA []byte) (int, error) {
  1563  	size := m.Size()
  1564  	return m.MarshalToSizedBuffer(dAtA[:size])
  1565  }
  1566  
  1567  func (m *ModeInfo_Multi_) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1568  	i := len(dAtA)
  1569  	if m.Multi != nil {
  1570  		{
  1571  			size, err := m.Multi.MarshalToSizedBuffer(dAtA[:i])
  1572  			if err != nil {
  1573  				return 0, err
  1574  			}
  1575  			i -= size
  1576  			i = encodeVarintTx(dAtA, i, uint64(size))
  1577  		}
  1578  		i--
  1579  		dAtA[i] = 0x12
  1580  	}
  1581  	return len(dAtA) - i, nil
  1582  }
  1583  func (m *ModeInfo_Single) Marshal() (dAtA []byte, err error) {
  1584  	size := m.Size()
  1585  	dAtA = make([]byte, size)
  1586  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1587  	if err != nil {
  1588  		return nil, err
  1589  	}
  1590  	return dAtA[:n], nil
  1591  }
  1592  
  1593  func (m *ModeInfo_Single) MarshalTo(dAtA []byte) (int, error) {
  1594  	size := m.Size()
  1595  	return m.MarshalToSizedBuffer(dAtA[:size])
  1596  }
  1597  
  1598  func (m *ModeInfo_Single) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1599  	i := len(dAtA)
  1600  	_ = i
  1601  	var l int
  1602  	_ = l
  1603  	if m.Mode != 0 {
  1604  		i = encodeVarintTx(dAtA, i, uint64(m.Mode))
  1605  		i--
  1606  		dAtA[i] = 0x8
  1607  	}
  1608  	return len(dAtA) - i, nil
  1609  }
  1610  
  1611  func (m *ModeInfo_Multi) Marshal() (dAtA []byte, err error) {
  1612  	size := m.Size()
  1613  	dAtA = make([]byte, size)
  1614  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1615  	if err != nil {
  1616  		return nil, err
  1617  	}
  1618  	return dAtA[:n], nil
  1619  }
  1620  
  1621  func (m *ModeInfo_Multi) MarshalTo(dAtA []byte) (int, error) {
  1622  	size := m.Size()
  1623  	return m.MarshalToSizedBuffer(dAtA[:size])
  1624  }
  1625  
  1626  func (m *ModeInfo_Multi) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1627  	i := len(dAtA)
  1628  	_ = i
  1629  	var l int
  1630  	_ = l
  1631  	if len(m.ModeInfos) > 0 {
  1632  		for iNdEx := len(m.ModeInfos) - 1; iNdEx >= 0; iNdEx-- {
  1633  			{
  1634  				size, err := m.ModeInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1635  				if err != nil {
  1636  					return 0, err
  1637  				}
  1638  				i -= size
  1639  				i = encodeVarintTx(dAtA, i, uint64(size))
  1640  			}
  1641  			i--
  1642  			dAtA[i] = 0x12
  1643  		}
  1644  	}
  1645  	if m.Bitarray != nil {
  1646  		{
  1647  			size, err := m.Bitarray.MarshalToSizedBuffer(dAtA[:i])
  1648  			if err != nil {
  1649  				return 0, err
  1650  			}
  1651  			i -= size
  1652  			i = encodeVarintTx(dAtA, i, uint64(size))
  1653  		}
  1654  		i--
  1655  		dAtA[i] = 0xa
  1656  	}
  1657  	return len(dAtA) - i, nil
  1658  }
  1659  
  1660  func (m *Fee) Marshal() (dAtA []byte, err error) {
  1661  	size := m.Size()
  1662  	dAtA = make([]byte, size)
  1663  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1664  	if err != nil {
  1665  		return nil, err
  1666  	}
  1667  	return dAtA[:n], nil
  1668  }
  1669  
  1670  func (m *Fee) MarshalTo(dAtA []byte) (int, error) {
  1671  	size := m.Size()
  1672  	return m.MarshalToSizedBuffer(dAtA[:size])
  1673  }
  1674  
  1675  func (m *Fee) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1676  	i := len(dAtA)
  1677  	_ = i
  1678  	var l int
  1679  	_ = l
  1680  	if len(m.Granter) > 0 {
  1681  		i -= len(m.Granter)
  1682  		copy(dAtA[i:], m.Granter)
  1683  		i = encodeVarintTx(dAtA, i, uint64(len(m.Granter)))
  1684  		i--
  1685  		dAtA[i] = 0x22
  1686  	}
  1687  	if len(m.Payer) > 0 {
  1688  		i -= len(m.Payer)
  1689  		copy(dAtA[i:], m.Payer)
  1690  		i = encodeVarintTx(dAtA, i, uint64(len(m.Payer)))
  1691  		i--
  1692  		dAtA[i] = 0x1a
  1693  	}
  1694  	if m.GasLimit != 0 {
  1695  		i = encodeVarintTx(dAtA, i, uint64(m.GasLimit))
  1696  		i--
  1697  		dAtA[i] = 0x10
  1698  	}
  1699  	if len(m.Amount) > 0 {
  1700  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
  1701  			{
  1702  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1703  				if err != nil {
  1704  					return 0, err
  1705  				}
  1706  				i -= size
  1707  				i = encodeVarintTx(dAtA, i, uint64(size))
  1708  			}
  1709  			i--
  1710  			dAtA[i] = 0xa
  1711  		}
  1712  	}
  1713  	return len(dAtA) - i, nil
  1714  }
  1715  
  1716  func (m *Tip) Marshal() (dAtA []byte, err error) {
  1717  	size := m.Size()
  1718  	dAtA = make([]byte, size)
  1719  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1720  	if err != nil {
  1721  		return nil, err
  1722  	}
  1723  	return dAtA[:n], nil
  1724  }
  1725  
  1726  func (m *Tip) MarshalTo(dAtA []byte) (int, error) {
  1727  	size := m.Size()
  1728  	return m.MarshalToSizedBuffer(dAtA[:size])
  1729  }
  1730  
  1731  func (m *Tip) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1732  	i := len(dAtA)
  1733  	_ = i
  1734  	var l int
  1735  	_ = l
  1736  	if len(m.Tipper) > 0 {
  1737  		i -= len(m.Tipper)
  1738  		copy(dAtA[i:], m.Tipper)
  1739  		i = encodeVarintTx(dAtA, i, uint64(len(m.Tipper)))
  1740  		i--
  1741  		dAtA[i] = 0x12
  1742  	}
  1743  	if len(m.Amount) > 0 {
  1744  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
  1745  			{
  1746  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1747  				if err != nil {
  1748  					return 0, err
  1749  				}
  1750  				i -= size
  1751  				i = encodeVarintTx(dAtA, i, uint64(size))
  1752  			}
  1753  			i--
  1754  			dAtA[i] = 0xa
  1755  		}
  1756  	}
  1757  	return len(dAtA) - i, nil
  1758  }
  1759  
  1760  func (m *AuxSignerData) Marshal() (dAtA []byte, err error) {
  1761  	size := m.Size()
  1762  	dAtA = make([]byte, size)
  1763  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1764  	if err != nil {
  1765  		return nil, err
  1766  	}
  1767  	return dAtA[:n], nil
  1768  }
  1769  
  1770  func (m *AuxSignerData) MarshalTo(dAtA []byte) (int, error) {
  1771  	size := m.Size()
  1772  	return m.MarshalToSizedBuffer(dAtA[:size])
  1773  }
  1774  
  1775  func (m *AuxSignerData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1776  	i := len(dAtA)
  1777  	_ = i
  1778  	var l int
  1779  	_ = l
  1780  	if len(m.Sig) > 0 {
  1781  		i -= len(m.Sig)
  1782  		copy(dAtA[i:], m.Sig)
  1783  		i = encodeVarintTx(dAtA, i, uint64(len(m.Sig)))
  1784  		i--
  1785  		dAtA[i] = 0x22
  1786  	}
  1787  	if m.Mode != 0 {
  1788  		i = encodeVarintTx(dAtA, i, uint64(m.Mode))
  1789  		i--
  1790  		dAtA[i] = 0x18
  1791  	}
  1792  	if m.SignDoc != nil {
  1793  		{
  1794  			size, err := m.SignDoc.MarshalToSizedBuffer(dAtA[:i])
  1795  			if err != nil {
  1796  				return 0, err
  1797  			}
  1798  			i -= size
  1799  			i = encodeVarintTx(dAtA, i, uint64(size))
  1800  		}
  1801  		i--
  1802  		dAtA[i] = 0x12
  1803  	}
  1804  	if len(m.Address) > 0 {
  1805  		i -= len(m.Address)
  1806  		copy(dAtA[i:], m.Address)
  1807  		i = encodeVarintTx(dAtA, i, uint64(len(m.Address)))
  1808  		i--
  1809  		dAtA[i] = 0xa
  1810  	}
  1811  	return len(dAtA) - i, nil
  1812  }
  1813  
  1814  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
  1815  	offset -= sovTx(v)
  1816  	base := offset
  1817  	for v >= 1<<7 {
  1818  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1819  		v >>= 7
  1820  		offset++
  1821  	}
  1822  	dAtA[offset] = uint8(v)
  1823  	return base
  1824  }
  1825  func (m *Tx) Size() (n int) {
  1826  	if m == nil {
  1827  		return 0
  1828  	}
  1829  	var l int
  1830  	_ = l
  1831  	if m.Body != nil {
  1832  		l = m.Body.Size()
  1833  		n += 1 + l + sovTx(uint64(l))
  1834  	}
  1835  	if m.AuthInfo != nil {
  1836  		l = m.AuthInfo.Size()
  1837  		n += 1 + l + sovTx(uint64(l))
  1838  	}
  1839  	if len(m.Signatures) > 0 {
  1840  		for _, b := range m.Signatures {
  1841  			l = len(b)
  1842  			n += 1 + l + sovTx(uint64(l))
  1843  		}
  1844  	}
  1845  	return n
  1846  }
  1847  
  1848  func (m *TxRaw) Size() (n int) {
  1849  	if m == nil {
  1850  		return 0
  1851  	}
  1852  	var l int
  1853  	_ = l
  1854  	l = len(m.BodyBytes)
  1855  	if l > 0 {
  1856  		n += 1 + l + sovTx(uint64(l))
  1857  	}
  1858  	l = len(m.AuthInfoBytes)
  1859  	if l > 0 {
  1860  		n += 1 + l + sovTx(uint64(l))
  1861  	}
  1862  	if len(m.Signatures) > 0 {
  1863  		for _, b := range m.Signatures {
  1864  			l = len(b)
  1865  			n += 1 + l + sovTx(uint64(l))
  1866  		}
  1867  	}
  1868  	return n
  1869  }
  1870  
  1871  func (m *SignDoc) Size() (n int) {
  1872  	if m == nil {
  1873  		return 0
  1874  	}
  1875  	var l int
  1876  	_ = l
  1877  	l = len(m.BodyBytes)
  1878  	if l > 0 {
  1879  		n += 1 + l + sovTx(uint64(l))
  1880  	}
  1881  	l = len(m.AuthInfoBytes)
  1882  	if l > 0 {
  1883  		n += 1 + l + sovTx(uint64(l))
  1884  	}
  1885  	l = len(m.ChainId)
  1886  	if l > 0 {
  1887  		n += 1 + l + sovTx(uint64(l))
  1888  	}
  1889  	if m.AccountNumber != 0 {
  1890  		n += 1 + sovTx(uint64(m.AccountNumber))
  1891  	}
  1892  	return n
  1893  }
  1894  
  1895  func (m *SignDocDirectAux) Size() (n int) {
  1896  	if m == nil {
  1897  		return 0
  1898  	}
  1899  	var l int
  1900  	_ = l
  1901  	l = len(m.BodyBytes)
  1902  	if l > 0 {
  1903  		n += 1 + l + sovTx(uint64(l))
  1904  	}
  1905  	if m.PublicKey != nil {
  1906  		l = m.PublicKey.Size()
  1907  		n += 1 + l + sovTx(uint64(l))
  1908  	}
  1909  	l = len(m.ChainId)
  1910  	if l > 0 {
  1911  		n += 1 + l + sovTx(uint64(l))
  1912  	}
  1913  	if m.AccountNumber != 0 {
  1914  		n += 1 + sovTx(uint64(m.AccountNumber))
  1915  	}
  1916  	if m.Sequence != 0 {
  1917  		n += 1 + sovTx(uint64(m.Sequence))
  1918  	}
  1919  	if m.Tip != nil {
  1920  		l = m.Tip.Size()
  1921  		n += 1 + l + sovTx(uint64(l))
  1922  	}
  1923  	return n
  1924  }
  1925  
  1926  func (m *TxBody) Size() (n int) {
  1927  	if m == nil {
  1928  		return 0
  1929  	}
  1930  	var l int
  1931  	_ = l
  1932  	if len(m.Messages) > 0 {
  1933  		for _, e := range m.Messages {
  1934  			l = e.Size()
  1935  			n += 1 + l + sovTx(uint64(l))
  1936  		}
  1937  	}
  1938  	l = len(m.Memo)
  1939  	if l > 0 {
  1940  		n += 1 + l + sovTx(uint64(l))
  1941  	}
  1942  	if m.TimeoutHeight != 0 {
  1943  		n += 1 + sovTx(uint64(m.TimeoutHeight))
  1944  	}
  1945  	if len(m.ExtensionOptions) > 0 {
  1946  		for _, e := range m.ExtensionOptions {
  1947  			l = e.Size()
  1948  			n += 2 + l + sovTx(uint64(l))
  1949  		}
  1950  	}
  1951  	if len(m.NonCriticalExtensionOptions) > 0 {
  1952  		for _, e := range m.NonCriticalExtensionOptions {
  1953  			l = e.Size()
  1954  			n += 2 + l + sovTx(uint64(l))
  1955  		}
  1956  	}
  1957  	return n
  1958  }
  1959  
  1960  func (m *AuthInfo) Size() (n int) {
  1961  	if m == nil {
  1962  		return 0
  1963  	}
  1964  	var l int
  1965  	_ = l
  1966  	if len(m.SignerInfos) > 0 {
  1967  		for _, e := range m.SignerInfos {
  1968  			l = e.Size()
  1969  			n += 1 + l + sovTx(uint64(l))
  1970  		}
  1971  	}
  1972  	if m.Fee != nil {
  1973  		l = m.Fee.Size()
  1974  		n += 1 + l + sovTx(uint64(l))
  1975  	}
  1976  	if m.Tip != nil {
  1977  		l = m.Tip.Size()
  1978  		n += 1 + l + sovTx(uint64(l))
  1979  	}
  1980  	return n
  1981  }
  1982  
  1983  func (m *SignerInfo) Size() (n int) {
  1984  	if m == nil {
  1985  		return 0
  1986  	}
  1987  	var l int
  1988  	_ = l
  1989  	if m.PublicKey != nil {
  1990  		l = m.PublicKey.Size()
  1991  		n += 1 + l + sovTx(uint64(l))
  1992  	}
  1993  	if m.ModeInfo != nil {
  1994  		l = m.ModeInfo.Size()
  1995  		n += 1 + l + sovTx(uint64(l))
  1996  	}
  1997  	if m.Sequence != 0 {
  1998  		n += 1 + sovTx(uint64(m.Sequence))
  1999  	}
  2000  	return n
  2001  }
  2002  
  2003  func (m *ModeInfo) Size() (n int) {
  2004  	if m == nil {
  2005  		return 0
  2006  	}
  2007  	var l int
  2008  	_ = l
  2009  	if m.Sum != nil {
  2010  		n += m.Sum.Size()
  2011  	}
  2012  	return n
  2013  }
  2014  
  2015  func (m *ModeInfo_Single_) Size() (n int) {
  2016  	if m == nil {
  2017  		return 0
  2018  	}
  2019  	var l int
  2020  	_ = l
  2021  	if m.Single != nil {
  2022  		l = m.Single.Size()
  2023  		n += 1 + l + sovTx(uint64(l))
  2024  	}
  2025  	return n
  2026  }
  2027  func (m *ModeInfo_Multi_) Size() (n int) {
  2028  	if m == nil {
  2029  		return 0
  2030  	}
  2031  	var l int
  2032  	_ = l
  2033  	if m.Multi != nil {
  2034  		l = m.Multi.Size()
  2035  		n += 1 + l + sovTx(uint64(l))
  2036  	}
  2037  	return n
  2038  }
  2039  func (m *ModeInfo_Single) Size() (n int) {
  2040  	if m == nil {
  2041  		return 0
  2042  	}
  2043  	var l int
  2044  	_ = l
  2045  	if m.Mode != 0 {
  2046  		n += 1 + sovTx(uint64(m.Mode))
  2047  	}
  2048  	return n
  2049  }
  2050  
  2051  func (m *ModeInfo_Multi) Size() (n int) {
  2052  	if m == nil {
  2053  		return 0
  2054  	}
  2055  	var l int
  2056  	_ = l
  2057  	if m.Bitarray != nil {
  2058  		l = m.Bitarray.Size()
  2059  		n += 1 + l + sovTx(uint64(l))
  2060  	}
  2061  	if len(m.ModeInfos) > 0 {
  2062  		for _, e := range m.ModeInfos {
  2063  			l = e.Size()
  2064  			n += 1 + l + sovTx(uint64(l))
  2065  		}
  2066  	}
  2067  	return n
  2068  }
  2069  
  2070  func (m *Fee) Size() (n int) {
  2071  	if m == nil {
  2072  		return 0
  2073  	}
  2074  	var l int
  2075  	_ = l
  2076  	if len(m.Amount) > 0 {
  2077  		for _, e := range m.Amount {
  2078  			l = e.Size()
  2079  			n += 1 + l + sovTx(uint64(l))
  2080  		}
  2081  	}
  2082  	if m.GasLimit != 0 {
  2083  		n += 1 + sovTx(uint64(m.GasLimit))
  2084  	}
  2085  	l = len(m.Payer)
  2086  	if l > 0 {
  2087  		n += 1 + l + sovTx(uint64(l))
  2088  	}
  2089  	l = len(m.Granter)
  2090  	if l > 0 {
  2091  		n += 1 + l + sovTx(uint64(l))
  2092  	}
  2093  	return n
  2094  }
  2095  
  2096  func (m *Tip) Size() (n int) {
  2097  	if m == nil {
  2098  		return 0
  2099  	}
  2100  	var l int
  2101  	_ = l
  2102  	if len(m.Amount) > 0 {
  2103  		for _, e := range m.Amount {
  2104  			l = e.Size()
  2105  			n += 1 + l + sovTx(uint64(l))
  2106  		}
  2107  	}
  2108  	l = len(m.Tipper)
  2109  	if l > 0 {
  2110  		n += 1 + l + sovTx(uint64(l))
  2111  	}
  2112  	return n
  2113  }
  2114  
  2115  func (m *AuxSignerData) Size() (n int) {
  2116  	if m == nil {
  2117  		return 0
  2118  	}
  2119  	var l int
  2120  	_ = l
  2121  	l = len(m.Address)
  2122  	if l > 0 {
  2123  		n += 1 + l + sovTx(uint64(l))
  2124  	}
  2125  	if m.SignDoc != nil {
  2126  		l = m.SignDoc.Size()
  2127  		n += 1 + l + sovTx(uint64(l))
  2128  	}
  2129  	if m.Mode != 0 {
  2130  		n += 1 + sovTx(uint64(m.Mode))
  2131  	}
  2132  	l = len(m.Sig)
  2133  	if l > 0 {
  2134  		n += 1 + l + sovTx(uint64(l))
  2135  	}
  2136  	return n
  2137  }
  2138  
  2139  func sovTx(x uint64) (n int) {
  2140  	return (math_bits.Len64(x|1) + 6) / 7
  2141  }
  2142  func sozTx(x uint64) (n int) {
  2143  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2144  }
  2145  func (m *Tx) Unmarshal(dAtA []byte) error {
  2146  	l := len(dAtA)
  2147  	iNdEx := 0
  2148  	for iNdEx < l {
  2149  		preIndex := iNdEx
  2150  		var wire uint64
  2151  		for shift := uint(0); ; shift += 7 {
  2152  			if shift >= 64 {
  2153  				return ErrIntOverflowTx
  2154  			}
  2155  			if iNdEx >= l {
  2156  				return io.ErrUnexpectedEOF
  2157  			}
  2158  			b := dAtA[iNdEx]
  2159  			iNdEx++
  2160  			wire |= uint64(b&0x7F) << shift
  2161  			if b < 0x80 {
  2162  				break
  2163  			}
  2164  		}
  2165  		fieldNum := int32(wire >> 3)
  2166  		wireType := int(wire & 0x7)
  2167  		if wireType == 4 {
  2168  			return fmt.Errorf("proto: Tx: wiretype end group for non-group")
  2169  		}
  2170  		if fieldNum <= 0 {
  2171  			return fmt.Errorf("proto: Tx: illegal tag %d (wire type %d)", fieldNum, wire)
  2172  		}
  2173  		switch fieldNum {
  2174  		case 1:
  2175  			if wireType != 2 {
  2176  				return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType)
  2177  			}
  2178  			var msglen int
  2179  			for shift := uint(0); ; shift += 7 {
  2180  				if shift >= 64 {
  2181  					return ErrIntOverflowTx
  2182  				}
  2183  				if iNdEx >= l {
  2184  					return io.ErrUnexpectedEOF
  2185  				}
  2186  				b := dAtA[iNdEx]
  2187  				iNdEx++
  2188  				msglen |= int(b&0x7F) << shift
  2189  				if b < 0x80 {
  2190  					break
  2191  				}
  2192  			}
  2193  			if msglen < 0 {
  2194  				return ErrInvalidLengthTx
  2195  			}
  2196  			postIndex := iNdEx + msglen
  2197  			if postIndex < 0 {
  2198  				return ErrInvalidLengthTx
  2199  			}
  2200  			if postIndex > l {
  2201  				return io.ErrUnexpectedEOF
  2202  			}
  2203  			if m.Body == nil {
  2204  				m.Body = &TxBody{}
  2205  			}
  2206  			if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2207  				return err
  2208  			}
  2209  			iNdEx = postIndex
  2210  		case 2:
  2211  			if wireType != 2 {
  2212  				return fmt.Errorf("proto: wrong wireType = %d for field AuthInfo", wireType)
  2213  			}
  2214  			var msglen int
  2215  			for shift := uint(0); ; shift += 7 {
  2216  				if shift >= 64 {
  2217  					return ErrIntOverflowTx
  2218  				}
  2219  				if iNdEx >= l {
  2220  					return io.ErrUnexpectedEOF
  2221  				}
  2222  				b := dAtA[iNdEx]
  2223  				iNdEx++
  2224  				msglen |= int(b&0x7F) << shift
  2225  				if b < 0x80 {
  2226  					break
  2227  				}
  2228  			}
  2229  			if msglen < 0 {
  2230  				return ErrInvalidLengthTx
  2231  			}
  2232  			postIndex := iNdEx + msglen
  2233  			if postIndex < 0 {
  2234  				return ErrInvalidLengthTx
  2235  			}
  2236  			if postIndex > l {
  2237  				return io.ErrUnexpectedEOF
  2238  			}
  2239  			if m.AuthInfo == nil {
  2240  				m.AuthInfo = &AuthInfo{}
  2241  			}
  2242  			if err := m.AuthInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2243  				return err
  2244  			}
  2245  			iNdEx = postIndex
  2246  		case 3:
  2247  			if wireType != 2 {
  2248  				return fmt.Errorf("proto: wrong wireType = %d for field Signatures", wireType)
  2249  			}
  2250  			var byteLen int
  2251  			for shift := uint(0); ; shift += 7 {
  2252  				if shift >= 64 {
  2253  					return ErrIntOverflowTx
  2254  				}
  2255  				if iNdEx >= l {
  2256  					return io.ErrUnexpectedEOF
  2257  				}
  2258  				b := dAtA[iNdEx]
  2259  				iNdEx++
  2260  				byteLen |= int(b&0x7F) << shift
  2261  				if b < 0x80 {
  2262  					break
  2263  				}
  2264  			}
  2265  			if byteLen < 0 {
  2266  				return ErrInvalidLengthTx
  2267  			}
  2268  			postIndex := iNdEx + byteLen
  2269  			if postIndex < 0 {
  2270  				return ErrInvalidLengthTx
  2271  			}
  2272  			if postIndex > l {
  2273  				return io.ErrUnexpectedEOF
  2274  			}
  2275  			m.Signatures = append(m.Signatures, make([]byte, postIndex-iNdEx))
  2276  			copy(m.Signatures[len(m.Signatures)-1], dAtA[iNdEx:postIndex])
  2277  			iNdEx = postIndex
  2278  		default:
  2279  			iNdEx = preIndex
  2280  			skippy, err := skipTx(dAtA[iNdEx:])
  2281  			if err != nil {
  2282  				return err
  2283  			}
  2284  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2285  				return ErrInvalidLengthTx
  2286  			}
  2287  			if (iNdEx + skippy) > l {
  2288  				return io.ErrUnexpectedEOF
  2289  			}
  2290  			iNdEx += skippy
  2291  		}
  2292  	}
  2293  
  2294  	if iNdEx > l {
  2295  		return io.ErrUnexpectedEOF
  2296  	}
  2297  	return nil
  2298  }
  2299  func (m *TxRaw) Unmarshal(dAtA []byte) error {
  2300  	l := len(dAtA)
  2301  	iNdEx := 0
  2302  	for iNdEx < l {
  2303  		preIndex := iNdEx
  2304  		var wire uint64
  2305  		for shift := uint(0); ; shift += 7 {
  2306  			if shift >= 64 {
  2307  				return ErrIntOverflowTx
  2308  			}
  2309  			if iNdEx >= l {
  2310  				return io.ErrUnexpectedEOF
  2311  			}
  2312  			b := dAtA[iNdEx]
  2313  			iNdEx++
  2314  			wire |= uint64(b&0x7F) << shift
  2315  			if b < 0x80 {
  2316  				break
  2317  			}
  2318  		}
  2319  		fieldNum := int32(wire >> 3)
  2320  		wireType := int(wire & 0x7)
  2321  		if wireType == 4 {
  2322  			return fmt.Errorf("proto: TxRaw: wiretype end group for non-group")
  2323  		}
  2324  		if fieldNum <= 0 {
  2325  			return fmt.Errorf("proto: TxRaw: illegal tag %d (wire type %d)", fieldNum, wire)
  2326  		}
  2327  		switch fieldNum {
  2328  		case 1:
  2329  			if wireType != 2 {
  2330  				return fmt.Errorf("proto: wrong wireType = %d for field BodyBytes", wireType)
  2331  			}
  2332  			var byteLen int
  2333  			for shift := uint(0); ; shift += 7 {
  2334  				if shift >= 64 {
  2335  					return ErrIntOverflowTx
  2336  				}
  2337  				if iNdEx >= l {
  2338  					return io.ErrUnexpectedEOF
  2339  				}
  2340  				b := dAtA[iNdEx]
  2341  				iNdEx++
  2342  				byteLen |= int(b&0x7F) << shift
  2343  				if b < 0x80 {
  2344  					break
  2345  				}
  2346  			}
  2347  			if byteLen < 0 {
  2348  				return ErrInvalidLengthTx
  2349  			}
  2350  			postIndex := iNdEx + byteLen
  2351  			if postIndex < 0 {
  2352  				return ErrInvalidLengthTx
  2353  			}
  2354  			if postIndex > l {
  2355  				return io.ErrUnexpectedEOF
  2356  			}
  2357  			m.BodyBytes = append(m.BodyBytes[:0], dAtA[iNdEx:postIndex]...)
  2358  			if m.BodyBytes == nil {
  2359  				m.BodyBytes = []byte{}
  2360  			}
  2361  			iNdEx = postIndex
  2362  		case 2:
  2363  			if wireType != 2 {
  2364  				return fmt.Errorf("proto: wrong wireType = %d for field AuthInfoBytes", wireType)
  2365  			}
  2366  			var byteLen int
  2367  			for shift := uint(0); ; shift += 7 {
  2368  				if shift >= 64 {
  2369  					return ErrIntOverflowTx
  2370  				}
  2371  				if iNdEx >= l {
  2372  					return io.ErrUnexpectedEOF
  2373  				}
  2374  				b := dAtA[iNdEx]
  2375  				iNdEx++
  2376  				byteLen |= int(b&0x7F) << shift
  2377  				if b < 0x80 {
  2378  					break
  2379  				}
  2380  			}
  2381  			if byteLen < 0 {
  2382  				return ErrInvalidLengthTx
  2383  			}
  2384  			postIndex := iNdEx + byteLen
  2385  			if postIndex < 0 {
  2386  				return ErrInvalidLengthTx
  2387  			}
  2388  			if postIndex > l {
  2389  				return io.ErrUnexpectedEOF
  2390  			}
  2391  			m.AuthInfoBytes = append(m.AuthInfoBytes[:0], dAtA[iNdEx:postIndex]...)
  2392  			if m.AuthInfoBytes == nil {
  2393  				m.AuthInfoBytes = []byte{}
  2394  			}
  2395  			iNdEx = postIndex
  2396  		case 3:
  2397  			if wireType != 2 {
  2398  				return fmt.Errorf("proto: wrong wireType = %d for field Signatures", wireType)
  2399  			}
  2400  			var byteLen int
  2401  			for shift := uint(0); ; shift += 7 {
  2402  				if shift >= 64 {
  2403  					return ErrIntOverflowTx
  2404  				}
  2405  				if iNdEx >= l {
  2406  					return io.ErrUnexpectedEOF
  2407  				}
  2408  				b := dAtA[iNdEx]
  2409  				iNdEx++
  2410  				byteLen |= int(b&0x7F) << shift
  2411  				if b < 0x80 {
  2412  					break
  2413  				}
  2414  			}
  2415  			if byteLen < 0 {
  2416  				return ErrInvalidLengthTx
  2417  			}
  2418  			postIndex := iNdEx + byteLen
  2419  			if postIndex < 0 {
  2420  				return ErrInvalidLengthTx
  2421  			}
  2422  			if postIndex > l {
  2423  				return io.ErrUnexpectedEOF
  2424  			}
  2425  			m.Signatures = append(m.Signatures, make([]byte, postIndex-iNdEx))
  2426  			copy(m.Signatures[len(m.Signatures)-1], dAtA[iNdEx:postIndex])
  2427  			iNdEx = postIndex
  2428  		default:
  2429  			iNdEx = preIndex
  2430  			skippy, err := skipTx(dAtA[iNdEx:])
  2431  			if err != nil {
  2432  				return err
  2433  			}
  2434  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2435  				return ErrInvalidLengthTx
  2436  			}
  2437  			if (iNdEx + skippy) > l {
  2438  				return io.ErrUnexpectedEOF
  2439  			}
  2440  			iNdEx += skippy
  2441  		}
  2442  	}
  2443  
  2444  	if iNdEx > l {
  2445  		return io.ErrUnexpectedEOF
  2446  	}
  2447  	return nil
  2448  }
  2449  func (m *SignDoc) Unmarshal(dAtA []byte) error {
  2450  	l := len(dAtA)
  2451  	iNdEx := 0
  2452  	for iNdEx < l {
  2453  		preIndex := iNdEx
  2454  		var wire uint64
  2455  		for shift := uint(0); ; shift += 7 {
  2456  			if shift >= 64 {
  2457  				return ErrIntOverflowTx
  2458  			}
  2459  			if iNdEx >= l {
  2460  				return io.ErrUnexpectedEOF
  2461  			}
  2462  			b := dAtA[iNdEx]
  2463  			iNdEx++
  2464  			wire |= uint64(b&0x7F) << shift
  2465  			if b < 0x80 {
  2466  				break
  2467  			}
  2468  		}
  2469  		fieldNum := int32(wire >> 3)
  2470  		wireType := int(wire & 0x7)
  2471  		if wireType == 4 {
  2472  			return fmt.Errorf("proto: SignDoc: wiretype end group for non-group")
  2473  		}
  2474  		if fieldNum <= 0 {
  2475  			return fmt.Errorf("proto: SignDoc: illegal tag %d (wire type %d)", fieldNum, wire)
  2476  		}
  2477  		switch fieldNum {
  2478  		case 1:
  2479  			if wireType != 2 {
  2480  				return fmt.Errorf("proto: wrong wireType = %d for field BodyBytes", wireType)
  2481  			}
  2482  			var byteLen int
  2483  			for shift := uint(0); ; shift += 7 {
  2484  				if shift >= 64 {
  2485  					return ErrIntOverflowTx
  2486  				}
  2487  				if iNdEx >= l {
  2488  					return io.ErrUnexpectedEOF
  2489  				}
  2490  				b := dAtA[iNdEx]
  2491  				iNdEx++
  2492  				byteLen |= int(b&0x7F) << shift
  2493  				if b < 0x80 {
  2494  					break
  2495  				}
  2496  			}
  2497  			if byteLen < 0 {
  2498  				return ErrInvalidLengthTx
  2499  			}
  2500  			postIndex := iNdEx + byteLen
  2501  			if postIndex < 0 {
  2502  				return ErrInvalidLengthTx
  2503  			}
  2504  			if postIndex > l {
  2505  				return io.ErrUnexpectedEOF
  2506  			}
  2507  			m.BodyBytes = append(m.BodyBytes[:0], dAtA[iNdEx:postIndex]...)
  2508  			if m.BodyBytes == nil {
  2509  				m.BodyBytes = []byte{}
  2510  			}
  2511  			iNdEx = postIndex
  2512  		case 2:
  2513  			if wireType != 2 {
  2514  				return fmt.Errorf("proto: wrong wireType = %d for field AuthInfoBytes", wireType)
  2515  			}
  2516  			var byteLen int
  2517  			for shift := uint(0); ; shift += 7 {
  2518  				if shift >= 64 {
  2519  					return ErrIntOverflowTx
  2520  				}
  2521  				if iNdEx >= l {
  2522  					return io.ErrUnexpectedEOF
  2523  				}
  2524  				b := dAtA[iNdEx]
  2525  				iNdEx++
  2526  				byteLen |= int(b&0x7F) << shift
  2527  				if b < 0x80 {
  2528  					break
  2529  				}
  2530  			}
  2531  			if byteLen < 0 {
  2532  				return ErrInvalidLengthTx
  2533  			}
  2534  			postIndex := iNdEx + byteLen
  2535  			if postIndex < 0 {
  2536  				return ErrInvalidLengthTx
  2537  			}
  2538  			if postIndex > l {
  2539  				return io.ErrUnexpectedEOF
  2540  			}
  2541  			m.AuthInfoBytes = append(m.AuthInfoBytes[:0], dAtA[iNdEx:postIndex]...)
  2542  			if m.AuthInfoBytes == nil {
  2543  				m.AuthInfoBytes = []byte{}
  2544  			}
  2545  			iNdEx = postIndex
  2546  		case 3:
  2547  			if wireType != 2 {
  2548  				return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType)
  2549  			}
  2550  			var stringLen uint64
  2551  			for shift := uint(0); ; shift += 7 {
  2552  				if shift >= 64 {
  2553  					return ErrIntOverflowTx
  2554  				}
  2555  				if iNdEx >= l {
  2556  					return io.ErrUnexpectedEOF
  2557  				}
  2558  				b := dAtA[iNdEx]
  2559  				iNdEx++
  2560  				stringLen |= uint64(b&0x7F) << shift
  2561  				if b < 0x80 {
  2562  					break
  2563  				}
  2564  			}
  2565  			intStringLen := int(stringLen)
  2566  			if intStringLen < 0 {
  2567  				return ErrInvalidLengthTx
  2568  			}
  2569  			postIndex := iNdEx + intStringLen
  2570  			if postIndex < 0 {
  2571  				return ErrInvalidLengthTx
  2572  			}
  2573  			if postIndex > l {
  2574  				return io.ErrUnexpectedEOF
  2575  			}
  2576  			m.ChainId = string(dAtA[iNdEx:postIndex])
  2577  			iNdEx = postIndex
  2578  		case 4:
  2579  			if wireType != 0 {
  2580  				return fmt.Errorf("proto: wrong wireType = %d for field AccountNumber", wireType)
  2581  			}
  2582  			m.AccountNumber = 0
  2583  			for shift := uint(0); ; shift += 7 {
  2584  				if shift >= 64 {
  2585  					return ErrIntOverflowTx
  2586  				}
  2587  				if iNdEx >= l {
  2588  					return io.ErrUnexpectedEOF
  2589  				}
  2590  				b := dAtA[iNdEx]
  2591  				iNdEx++
  2592  				m.AccountNumber |= uint64(b&0x7F) << shift
  2593  				if b < 0x80 {
  2594  					break
  2595  				}
  2596  			}
  2597  		default:
  2598  			iNdEx = preIndex
  2599  			skippy, err := skipTx(dAtA[iNdEx:])
  2600  			if err != nil {
  2601  				return err
  2602  			}
  2603  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2604  				return ErrInvalidLengthTx
  2605  			}
  2606  			if (iNdEx + skippy) > l {
  2607  				return io.ErrUnexpectedEOF
  2608  			}
  2609  			iNdEx += skippy
  2610  		}
  2611  	}
  2612  
  2613  	if iNdEx > l {
  2614  		return io.ErrUnexpectedEOF
  2615  	}
  2616  	return nil
  2617  }
  2618  func (m *SignDocDirectAux) Unmarshal(dAtA []byte) error {
  2619  	l := len(dAtA)
  2620  	iNdEx := 0
  2621  	for iNdEx < l {
  2622  		preIndex := iNdEx
  2623  		var wire uint64
  2624  		for shift := uint(0); ; shift += 7 {
  2625  			if shift >= 64 {
  2626  				return ErrIntOverflowTx
  2627  			}
  2628  			if iNdEx >= l {
  2629  				return io.ErrUnexpectedEOF
  2630  			}
  2631  			b := dAtA[iNdEx]
  2632  			iNdEx++
  2633  			wire |= uint64(b&0x7F) << shift
  2634  			if b < 0x80 {
  2635  				break
  2636  			}
  2637  		}
  2638  		fieldNum := int32(wire >> 3)
  2639  		wireType := int(wire & 0x7)
  2640  		if wireType == 4 {
  2641  			return fmt.Errorf("proto: SignDocDirectAux: wiretype end group for non-group")
  2642  		}
  2643  		if fieldNum <= 0 {
  2644  			return fmt.Errorf("proto: SignDocDirectAux: illegal tag %d (wire type %d)", fieldNum, wire)
  2645  		}
  2646  		switch fieldNum {
  2647  		case 1:
  2648  			if wireType != 2 {
  2649  				return fmt.Errorf("proto: wrong wireType = %d for field BodyBytes", wireType)
  2650  			}
  2651  			var byteLen int
  2652  			for shift := uint(0); ; shift += 7 {
  2653  				if shift >= 64 {
  2654  					return ErrIntOverflowTx
  2655  				}
  2656  				if iNdEx >= l {
  2657  					return io.ErrUnexpectedEOF
  2658  				}
  2659  				b := dAtA[iNdEx]
  2660  				iNdEx++
  2661  				byteLen |= int(b&0x7F) << shift
  2662  				if b < 0x80 {
  2663  					break
  2664  				}
  2665  			}
  2666  			if byteLen < 0 {
  2667  				return ErrInvalidLengthTx
  2668  			}
  2669  			postIndex := iNdEx + byteLen
  2670  			if postIndex < 0 {
  2671  				return ErrInvalidLengthTx
  2672  			}
  2673  			if postIndex > l {
  2674  				return io.ErrUnexpectedEOF
  2675  			}
  2676  			m.BodyBytes = append(m.BodyBytes[:0], dAtA[iNdEx:postIndex]...)
  2677  			if m.BodyBytes == nil {
  2678  				m.BodyBytes = []byte{}
  2679  			}
  2680  			iNdEx = postIndex
  2681  		case 2:
  2682  			if wireType != 2 {
  2683  				return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType)
  2684  			}
  2685  			var msglen int
  2686  			for shift := uint(0); ; shift += 7 {
  2687  				if shift >= 64 {
  2688  					return ErrIntOverflowTx
  2689  				}
  2690  				if iNdEx >= l {
  2691  					return io.ErrUnexpectedEOF
  2692  				}
  2693  				b := dAtA[iNdEx]
  2694  				iNdEx++
  2695  				msglen |= int(b&0x7F) << shift
  2696  				if b < 0x80 {
  2697  					break
  2698  				}
  2699  			}
  2700  			if msglen < 0 {
  2701  				return ErrInvalidLengthTx
  2702  			}
  2703  			postIndex := iNdEx + msglen
  2704  			if postIndex < 0 {
  2705  				return ErrInvalidLengthTx
  2706  			}
  2707  			if postIndex > l {
  2708  				return io.ErrUnexpectedEOF
  2709  			}
  2710  			if m.PublicKey == nil {
  2711  				m.PublicKey = &types.Any{}
  2712  			}
  2713  			if err := m.PublicKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2714  				return err
  2715  			}
  2716  			iNdEx = postIndex
  2717  		case 3:
  2718  			if wireType != 2 {
  2719  				return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType)
  2720  			}
  2721  			var stringLen uint64
  2722  			for shift := uint(0); ; shift += 7 {
  2723  				if shift >= 64 {
  2724  					return ErrIntOverflowTx
  2725  				}
  2726  				if iNdEx >= l {
  2727  					return io.ErrUnexpectedEOF
  2728  				}
  2729  				b := dAtA[iNdEx]
  2730  				iNdEx++
  2731  				stringLen |= uint64(b&0x7F) << shift
  2732  				if b < 0x80 {
  2733  					break
  2734  				}
  2735  			}
  2736  			intStringLen := int(stringLen)
  2737  			if intStringLen < 0 {
  2738  				return ErrInvalidLengthTx
  2739  			}
  2740  			postIndex := iNdEx + intStringLen
  2741  			if postIndex < 0 {
  2742  				return ErrInvalidLengthTx
  2743  			}
  2744  			if postIndex > l {
  2745  				return io.ErrUnexpectedEOF
  2746  			}
  2747  			m.ChainId = string(dAtA[iNdEx:postIndex])
  2748  			iNdEx = postIndex
  2749  		case 4:
  2750  			if wireType != 0 {
  2751  				return fmt.Errorf("proto: wrong wireType = %d for field AccountNumber", wireType)
  2752  			}
  2753  			m.AccountNumber = 0
  2754  			for shift := uint(0); ; shift += 7 {
  2755  				if shift >= 64 {
  2756  					return ErrIntOverflowTx
  2757  				}
  2758  				if iNdEx >= l {
  2759  					return io.ErrUnexpectedEOF
  2760  				}
  2761  				b := dAtA[iNdEx]
  2762  				iNdEx++
  2763  				m.AccountNumber |= uint64(b&0x7F) << shift
  2764  				if b < 0x80 {
  2765  					break
  2766  				}
  2767  			}
  2768  		case 5:
  2769  			if wireType != 0 {
  2770  				return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
  2771  			}
  2772  			m.Sequence = 0
  2773  			for shift := uint(0); ; shift += 7 {
  2774  				if shift >= 64 {
  2775  					return ErrIntOverflowTx
  2776  				}
  2777  				if iNdEx >= l {
  2778  					return io.ErrUnexpectedEOF
  2779  				}
  2780  				b := dAtA[iNdEx]
  2781  				iNdEx++
  2782  				m.Sequence |= uint64(b&0x7F) << shift
  2783  				if b < 0x80 {
  2784  					break
  2785  				}
  2786  			}
  2787  		case 6:
  2788  			if wireType != 2 {
  2789  				return fmt.Errorf("proto: wrong wireType = %d for field Tip", wireType)
  2790  			}
  2791  			var msglen int
  2792  			for shift := uint(0); ; shift += 7 {
  2793  				if shift >= 64 {
  2794  					return ErrIntOverflowTx
  2795  				}
  2796  				if iNdEx >= l {
  2797  					return io.ErrUnexpectedEOF
  2798  				}
  2799  				b := dAtA[iNdEx]
  2800  				iNdEx++
  2801  				msglen |= int(b&0x7F) << shift
  2802  				if b < 0x80 {
  2803  					break
  2804  				}
  2805  			}
  2806  			if msglen < 0 {
  2807  				return ErrInvalidLengthTx
  2808  			}
  2809  			postIndex := iNdEx + msglen
  2810  			if postIndex < 0 {
  2811  				return ErrInvalidLengthTx
  2812  			}
  2813  			if postIndex > l {
  2814  				return io.ErrUnexpectedEOF
  2815  			}
  2816  			if m.Tip == nil {
  2817  				m.Tip = &Tip{}
  2818  			}
  2819  			if err := m.Tip.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2820  				return err
  2821  			}
  2822  			iNdEx = postIndex
  2823  		default:
  2824  			iNdEx = preIndex
  2825  			skippy, err := skipTx(dAtA[iNdEx:])
  2826  			if err != nil {
  2827  				return err
  2828  			}
  2829  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2830  				return ErrInvalidLengthTx
  2831  			}
  2832  			if (iNdEx + skippy) > l {
  2833  				return io.ErrUnexpectedEOF
  2834  			}
  2835  			iNdEx += skippy
  2836  		}
  2837  	}
  2838  
  2839  	if iNdEx > l {
  2840  		return io.ErrUnexpectedEOF
  2841  	}
  2842  	return nil
  2843  }
  2844  func (m *TxBody) Unmarshal(dAtA []byte) error {
  2845  	l := len(dAtA)
  2846  	iNdEx := 0
  2847  	for iNdEx < l {
  2848  		preIndex := iNdEx
  2849  		var wire uint64
  2850  		for shift := uint(0); ; shift += 7 {
  2851  			if shift >= 64 {
  2852  				return ErrIntOverflowTx
  2853  			}
  2854  			if iNdEx >= l {
  2855  				return io.ErrUnexpectedEOF
  2856  			}
  2857  			b := dAtA[iNdEx]
  2858  			iNdEx++
  2859  			wire |= uint64(b&0x7F) << shift
  2860  			if b < 0x80 {
  2861  				break
  2862  			}
  2863  		}
  2864  		fieldNum := int32(wire >> 3)
  2865  		wireType := int(wire & 0x7)
  2866  		if wireType == 4 {
  2867  			return fmt.Errorf("proto: TxBody: wiretype end group for non-group")
  2868  		}
  2869  		if fieldNum <= 0 {
  2870  			return fmt.Errorf("proto: TxBody: illegal tag %d (wire type %d)", fieldNum, wire)
  2871  		}
  2872  		switch fieldNum {
  2873  		case 1:
  2874  			if wireType != 2 {
  2875  				return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType)
  2876  			}
  2877  			var msglen int
  2878  			for shift := uint(0); ; shift += 7 {
  2879  				if shift >= 64 {
  2880  					return ErrIntOverflowTx
  2881  				}
  2882  				if iNdEx >= l {
  2883  					return io.ErrUnexpectedEOF
  2884  				}
  2885  				b := dAtA[iNdEx]
  2886  				iNdEx++
  2887  				msglen |= int(b&0x7F) << shift
  2888  				if b < 0x80 {
  2889  					break
  2890  				}
  2891  			}
  2892  			if msglen < 0 {
  2893  				return ErrInvalidLengthTx
  2894  			}
  2895  			postIndex := iNdEx + msglen
  2896  			if postIndex < 0 {
  2897  				return ErrInvalidLengthTx
  2898  			}
  2899  			if postIndex > l {
  2900  				return io.ErrUnexpectedEOF
  2901  			}
  2902  			m.Messages = append(m.Messages, &types.Any{})
  2903  			if err := m.Messages[len(m.Messages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2904  				return err
  2905  			}
  2906  			iNdEx = postIndex
  2907  		case 2:
  2908  			if wireType != 2 {
  2909  				return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType)
  2910  			}
  2911  			var stringLen uint64
  2912  			for shift := uint(0); ; shift += 7 {
  2913  				if shift >= 64 {
  2914  					return ErrIntOverflowTx
  2915  				}
  2916  				if iNdEx >= l {
  2917  					return io.ErrUnexpectedEOF
  2918  				}
  2919  				b := dAtA[iNdEx]
  2920  				iNdEx++
  2921  				stringLen |= uint64(b&0x7F) << shift
  2922  				if b < 0x80 {
  2923  					break
  2924  				}
  2925  			}
  2926  			intStringLen := int(stringLen)
  2927  			if intStringLen < 0 {
  2928  				return ErrInvalidLengthTx
  2929  			}
  2930  			postIndex := iNdEx + intStringLen
  2931  			if postIndex < 0 {
  2932  				return ErrInvalidLengthTx
  2933  			}
  2934  			if postIndex > l {
  2935  				return io.ErrUnexpectedEOF
  2936  			}
  2937  			m.Memo = string(dAtA[iNdEx:postIndex])
  2938  			iNdEx = postIndex
  2939  		case 3:
  2940  			if wireType != 0 {
  2941  				return fmt.Errorf("proto: wrong wireType = %d for field TimeoutHeight", wireType)
  2942  			}
  2943  			m.TimeoutHeight = 0
  2944  			for shift := uint(0); ; shift += 7 {
  2945  				if shift >= 64 {
  2946  					return ErrIntOverflowTx
  2947  				}
  2948  				if iNdEx >= l {
  2949  					return io.ErrUnexpectedEOF
  2950  				}
  2951  				b := dAtA[iNdEx]
  2952  				iNdEx++
  2953  				m.TimeoutHeight |= uint64(b&0x7F) << shift
  2954  				if b < 0x80 {
  2955  					break
  2956  				}
  2957  			}
  2958  		case 1023:
  2959  			if wireType != 2 {
  2960  				return fmt.Errorf("proto: wrong wireType = %d for field ExtensionOptions", wireType)
  2961  			}
  2962  			var msglen int
  2963  			for shift := uint(0); ; shift += 7 {
  2964  				if shift >= 64 {
  2965  					return ErrIntOverflowTx
  2966  				}
  2967  				if iNdEx >= l {
  2968  					return io.ErrUnexpectedEOF
  2969  				}
  2970  				b := dAtA[iNdEx]
  2971  				iNdEx++
  2972  				msglen |= int(b&0x7F) << shift
  2973  				if b < 0x80 {
  2974  					break
  2975  				}
  2976  			}
  2977  			if msglen < 0 {
  2978  				return ErrInvalidLengthTx
  2979  			}
  2980  			postIndex := iNdEx + msglen
  2981  			if postIndex < 0 {
  2982  				return ErrInvalidLengthTx
  2983  			}
  2984  			if postIndex > l {
  2985  				return io.ErrUnexpectedEOF
  2986  			}
  2987  			m.ExtensionOptions = append(m.ExtensionOptions, &types.Any{})
  2988  			if err := m.ExtensionOptions[len(m.ExtensionOptions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2989  				return err
  2990  			}
  2991  			iNdEx = postIndex
  2992  		case 2047:
  2993  			if wireType != 2 {
  2994  				return fmt.Errorf("proto: wrong wireType = %d for field NonCriticalExtensionOptions", wireType)
  2995  			}
  2996  			var msglen int
  2997  			for shift := uint(0); ; shift += 7 {
  2998  				if shift >= 64 {
  2999  					return ErrIntOverflowTx
  3000  				}
  3001  				if iNdEx >= l {
  3002  					return io.ErrUnexpectedEOF
  3003  				}
  3004  				b := dAtA[iNdEx]
  3005  				iNdEx++
  3006  				msglen |= int(b&0x7F) << shift
  3007  				if b < 0x80 {
  3008  					break
  3009  				}
  3010  			}
  3011  			if msglen < 0 {
  3012  				return ErrInvalidLengthTx
  3013  			}
  3014  			postIndex := iNdEx + msglen
  3015  			if postIndex < 0 {
  3016  				return ErrInvalidLengthTx
  3017  			}
  3018  			if postIndex > l {
  3019  				return io.ErrUnexpectedEOF
  3020  			}
  3021  			m.NonCriticalExtensionOptions = append(m.NonCriticalExtensionOptions, &types.Any{})
  3022  			if err := m.NonCriticalExtensionOptions[len(m.NonCriticalExtensionOptions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3023  				return err
  3024  			}
  3025  			iNdEx = postIndex
  3026  		default:
  3027  			iNdEx = preIndex
  3028  			skippy, err := skipTx(dAtA[iNdEx:])
  3029  			if err != nil {
  3030  				return err
  3031  			}
  3032  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3033  				return ErrInvalidLengthTx
  3034  			}
  3035  			if (iNdEx + skippy) > l {
  3036  				return io.ErrUnexpectedEOF
  3037  			}
  3038  			iNdEx += skippy
  3039  		}
  3040  	}
  3041  
  3042  	if iNdEx > l {
  3043  		return io.ErrUnexpectedEOF
  3044  	}
  3045  	return nil
  3046  }
  3047  func (m *AuthInfo) Unmarshal(dAtA []byte) error {
  3048  	l := len(dAtA)
  3049  	iNdEx := 0
  3050  	for iNdEx < l {
  3051  		preIndex := iNdEx
  3052  		var wire uint64
  3053  		for shift := uint(0); ; shift += 7 {
  3054  			if shift >= 64 {
  3055  				return ErrIntOverflowTx
  3056  			}
  3057  			if iNdEx >= l {
  3058  				return io.ErrUnexpectedEOF
  3059  			}
  3060  			b := dAtA[iNdEx]
  3061  			iNdEx++
  3062  			wire |= uint64(b&0x7F) << shift
  3063  			if b < 0x80 {
  3064  				break
  3065  			}
  3066  		}
  3067  		fieldNum := int32(wire >> 3)
  3068  		wireType := int(wire & 0x7)
  3069  		if wireType == 4 {
  3070  			return fmt.Errorf("proto: AuthInfo: wiretype end group for non-group")
  3071  		}
  3072  		if fieldNum <= 0 {
  3073  			return fmt.Errorf("proto: AuthInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  3074  		}
  3075  		switch fieldNum {
  3076  		case 1:
  3077  			if wireType != 2 {
  3078  				return fmt.Errorf("proto: wrong wireType = %d for field SignerInfos", wireType)
  3079  			}
  3080  			var msglen int
  3081  			for shift := uint(0); ; shift += 7 {
  3082  				if shift >= 64 {
  3083  					return ErrIntOverflowTx
  3084  				}
  3085  				if iNdEx >= l {
  3086  					return io.ErrUnexpectedEOF
  3087  				}
  3088  				b := dAtA[iNdEx]
  3089  				iNdEx++
  3090  				msglen |= int(b&0x7F) << shift
  3091  				if b < 0x80 {
  3092  					break
  3093  				}
  3094  			}
  3095  			if msglen < 0 {
  3096  				return ErrInvalidLengthTx
  3097  			}
  3098  			postIndex := iNdEx + msglen
  3099  			if postIndex < 0 {
  3100  				return ErrInvalidLengthTx
  3101  			}
  3102  			if postIndex > l {
  3103  				return io.ErrUnexpectedEOF
  3104  			}
  3105  			m.SignerInfos = append(m.SignerInfos, &SignerInfo{})
  3106  			if err := m.SignerInfos[len(m.SignerInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3107  				return err
  3108  			}
  3109  			iNdEx = postIndex
  3110  		case 2:
  3111  			if wireType != 2 {
  3112  				return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType)
  3113  			}
  3114  			var msglen int
  3115  			for shift := uint(0); ; shift += 7 {
  3116  				if shift >= 64 {
  3117  					return ErrIntOverflowTx
  3118  				}
  3119  				if iNdEx >= l {
  3120  					return io.ErrUnexpectedEOF
  3121  				}
  3122  				b := dAtA[iNdEx]
  3123  				iNdEx++
  3124  				msglen |= int(b&0x7F) << shift
  3125  				if b < 0x80 {
  3126  					break
  3127  				}
  3128  			}
  3129  			if msglen < 0 {
  3130  				return ErrInvalidLengthTx
  3131  			}
  3132  			postIndex := iNdEx + msglen
  3133  			if postIndex < 0 {
  3134  				return ErrInvalidLengthTx
  3135  			}
  3136  			if postIndex > l {
  3137  				return io.ErrUnexpectedEOF
  3138  			}
  3139  			if m.Fee == nil {
  3140  				m.Fee = &Fee{}
  3141  			}
  3142  			if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3143  				return err
  3144  			}
  3145  			iNdEx = postIndex
  3146  		case 3:
  3147  			if wireType != 2 {
  3148  				return fmt.Errorf("proto: wrong wireType = %d for field Tip", wireType)
  3149  			}
  3150  			var msglen int
  3151  			for shift := uint(0); ; shift += 7 {
  3152  				if shift >= 64 {
  3153  					return ErrIntOverflowTx
  3154  				}
  3155  				if iNdEx >= l {
  3156  					return io.ErrUnexpectedEOF
  3157  				}
  3158  				b := dAtA[iNdEx]
  3159  				iNdEx++
  3160  				msglen |= int(b&0x7F) << shift
  3161  				if b < 0x80 {
  3162  					break
  3163  				}
  3164  			}
  3165  			if msglen < 0 {
  3166  				return ErrInvalidLengthTx
  3167  			}
  3168  			postIndex := iNdEx + msglen
  3169  			if postIndex < 0 {
  3170  				return ErrInvalidLengthTx
  3171  			}
  3172  			if postIndex > l {
  3173  				return io.ErrUnexpectedEOF
  3174  			}
  3175  			if m.Tip == nil {
  3176  				m.Tip = &Tip{}
  3177  			}
  3178  			if err := m.Tip.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3179  				return err
  3180  			}
  3181  			iNdEx = postIndex
  3182  		default:
  3183  			iNdEx = preIndex
  3184  			skippy, err := skipTx(dAtA[iNdEx:])
  3185  			if err != nil {
  3186  				return err
  3187  			}
  3188  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3189  				return ErrInvalidLengthTx
  3190  			}
  3191  			if (iNdEx + skippy) > l {
  3192  				return io.ErrUnexpectedEOF
  3193  			}
  3194  			iNdEx += skippy
  3195  		}
  3196  	}
  3197  
  3198  	if iNdEx > l {
  3199  		return io.ErrUnexpectedEOF
  3200  	}
  3201  	return nil
  3202  }
  3203  func (m *SignerInfo) Unmarshal(dAtA []byte) error {
  3204  	l := len(dAtA)
  3205  	iNdEx := 0
  3206  	for iNdEx < l {
  3207  		preIndex := iNdEx
  3208  		var wire uint64
  3209  		for shift := uint(0); ; shift += 7 {
  3210  			if shift >= 64 {
  3211  				return ErrIntOverflowTx
  3212  			}
  3213  			if iNdEx >= l {
  3214  				return io.ErrUnexpectedEOF
  3215  			}
  3216  			b := dAtA[iNdEx]
  3217  			iNdEx++
  3218  			wire |= uint64(b&0x7F) << shift
  3219  			if b < 0x80 {
  3220  				break
  3221  			}
  3222  		}
  3223  		fieldNum := int32(wire >> 3)
  3224  		wireType := int(wire & 0x7)
  3225  		if wireType == 4 {
  3226  			return fmt.Errorf("proto: SignerInfo: wiretype end group for non-group")
  3227  		}
  3228  		if fieldNum <= 0 {
  3229  			return fmt.Errorf("proto: SignerInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  3230  		}
  3231  		switch fieldNum {
  3232  		case 1:
  3233  			if wireType != 2 {
  3234  				return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType)
  3235  			}
  3236  			var msglen int
  3237  			for shift := uint(0); ; shift += 7 {
  3238  				if shift >= 64 {
  3239  					return ErrIntOverflowTx
  3240  				}
  3241  				if iNdEx >= l {
  3242  					return io.ErrUnexpectedEOF
  3243  				}
  3244  				b := dAtA[iNdEx]
  3245  				iNdEx++
  3246  				msglen |= int(b&0x7F) << shift
  3247  				if b < 0x80 {
  3248  					break
  3249  				}
  3250  			}
  3251  			if msglen < 0 {
  3252  				return ErrInvalidLengthTx
  3253  			}
  3254  			postIndex := iNdEx + msglen
  3255  			if postIndex < 0 {
  3256  				return ErrInvalidLengthTx
  3257  			}
  3258  			if postIndex > l {
  3259  				return io.ErrUnexpectedEOF
  3260  			}
  3261  			if m.PublicKey == nil {
  3262  				m.PublicKey = &types.Any{}
  3263  			}
  3264  			if err := m.PublicKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3265  				return err
  3266  			}
  3267  			iNdEx = postIndex
  3268  		case 2:
  3269  			if wireType != 2 {
  3270  				return fmt.Errorf("proto: wrong wireType = %d for field ModeInfo", wireType)
  3271  			}
  3272  			var msglen int
  3273  			for shift := uint(0); ; shift += 7 {
  3274  				if shift >= 64 {
  3275  					return ErrIntOverflowTx
  3276  				}
  3277  				if iNdEx >= l {
  3278  					return io.ErrUnexpectedEOF
  3279  				}
  3280  				b := dAtA[iNdEx]
  3281  				iNdEx++
  3282  				msglen |= int(b&0x7F) << shift
  3283  				if b < 0x80 {
  3284  					break
  3285  				}
  3286  			}
  3287  			if msglen < 0 {
  3288  				return ErrInvalidLengthTx
  3289  			}
  3290  			postIndex := iNdEx + msglen
  3291  			if postIndex < 0 {
  3292  				return ErrInvalidLengthTx
  3293  			}
  3294  			if postIndex > l {
  3295  				return io.ErrUnexpectedEOF
  3296  			}
  3297  			if m.ModeInfo == nil {
  3298  				m.ModeInfo = &ModeInfo{}
  3299  			}
  3300  			if err := m.ModeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3301  				return err
  3302  			}
  3303  			iNdEx = postIndex
  3304  		case 3:
  3305  			if wireType != 0 {
  3306  				return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
  3307  			}
  3308  			m.Sequence = 0
  3309  			for shift := uint(0); ; shift += 7 {
  3310  				if shift >= 64 {
  3311  					return ErrIntOverflowTx
  3312  				}
  3313  				if iNdEx >= l {
  3314  					return io.ErrUnexpectedEOF
  3315  				}
  3316  				b := dAtA[iNdEx]
  3317  				iNdEx++
  3318  				m.Sequence |= uint64(b&0x7F) << shift
  3319  				if b < 0x80 {
  3320  					break
  3321  				}
  3322  			}
  3323  		default:
  3324  			iNdEx = preIndex
  3325  			skippy, err := skipTx(dAtA[iNdEx:])
  3326  			if err != nil {
  3327  				return err
  3328  			}
  3329  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3330  				return ErrInvalidLengthTx
  3331  			}
  3332  			if (iNdEx + skippy) > l {
  3333  				return io.ErrUnexpectedEOF
  3334  			}
  3335  			iNdEx += skippy
  3336  		}
  3337  	}
  3338  
  3339  	if iNdEx > l {
  3340  		return io.ErrUnexpectedEOF
  3341  	}
  3342  	return nil
  3343  }
  3344  func (m *ModeInfo) Unmarshal(dAtA []byte) error {
  3345  	l := len(dAtA)
  3346  	iNdEx := 0
  3347  	for iNdEx < l {
  3348  		preIndex := iNdEx
  3349  		var wire uint64
  3350  		for shift := uint(0); ; shift += 7 {
  3351  			if shift >= 64 {
  3352  				return ErrIntOverflowTx
  3353  			}
  3354  			if iNdEx >= l {
  3355  				return io.ErrUnexpectedEOF
  3356  			}
  3357  			b := dAtA[iNdEx]
  3358  			iNdEx++
  3359  			wire |= uint64(b&0x7F) << shift
  3360  			if b < 0x80 {
  3361  				break
  3362  			}
  3363  		}
  3364  		fieldNum := int32(wire >> 3)
  3365  		wireType := int(wire & 0x7)
  3366  		if wireType == 4 {
  3367  			return fmt.Errorf("proto: ModeInfo: wiretype end group for non-group")
  3368  		}
  3369  		if fieldNum <= 0 {
  3370  			return fmt.Errorf("proto: ModeInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  3371  		}
  3372  		switch fieldNum {
  3373  		case 1:
  3374  			if wireType != 2 {
  3375  				return fmt.Errorf("proto: wrong wireType = %d for field Single", wireType)
  3376  			}
  3377  			var msglen int
  3378  			for shift := uint(0); ; shift += 7 {
  3379  				if shift >= 64 {
  3380  					return ErrIntOverflowTx
  3381  				}
  3382  				if iNdEx >= l {
  3383  					return io.ErrUnexpectedEOF
  3384  				}
  3385  				b := dAtA[iNdEx]
  3386  				iNdEx++
  3387  				msglen |= int(b&0x7F) << shift
  3388  				if b < 0x80 {
  3389  					break
  3390  				}
  3391  			}
  3392  			if msglen < 0 {
  3393  				return ErrInvalidLengthTx
  3394  			}
  3395  			postIndex := iNdEx + msglen
  3396  			if postIndex < 0 {
  3397  				return ErrInvalidLengthTx
  3398  			}
  3399  			if postIndex > l {
  3400  				return io.ErrUnexpectedEOF
  3401  			}
  3402  			v := &ModeInfo_Single{}
  3403  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3404  				return err
  3405  			}
  3406  			m.Sum = &ModeInfo_Single_{v}
  3407  			iNdEx = postIndex
  3408  		case 2:
  3409  			if wireType != 2 {
  3410  				return fmt.Errorf("proto: wrong wireType = %d for field Multi", wireType)
  3411  			}
  3412  			var msglen int
  3413  			for shift := uint(0); ; shift += 7 {
  3414  				if shift >= 64 {
  3415  					return ErrIntOverflowTx
  3416  				}
  3417  				if iNdEx >= l {
  3418  					return io.ErrUnexpectedEOF
  3419  				}
  3420  				b := dAtA[iNdEx]
  3421  				iNdEx++
  3422  				msglen |= int(b&0x7F) << shift
  3423  				if b < 0x80 {
  3424  					break
  3425  				}
  3426  			}
  3427  			if msglen < 0 {
  3428  				return ErrInvalidLengthTx
  3429  			}
  3430  			postIndex := iNdEx + msglen
  3431  			if postIndex < 0 {
  3432  				return ErrInvalidLengthTx
  3433  			}
  3434  			if postIndex > l {
  3435  				return io.ErrUnexpectedEOF
  3436  			}
  3437  			v := &ModeInfo_Multi{}
  3438  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3439  				return err
  3440  			}
  3441  			m.Sum = &ModeInfo_Multi_{v}
  3442  			iNdEx = postIndex
  3443  		default:
  3444  			iNdEx = preIndex
  3445  			skippy, err := skipTx(dAtA[iNdEx:])
  3446  			if err != nil {
  3447  				return err
  3448  			}
  3449  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3450  				return ErrInvalidLengthTx
  3451  			}
  3452  			if (iNdEx + skippy) > l {
  3453  				return io.ErrUnexpectedEOF
  3454  			}
  3455  			iNdEx += skippy
  3456  		}
  3457  	}
  3458  
  3459  	if iNdEx > l {
  3460  		return io.ErrUnexpectedEOF
  3461  	}
  3462  	return nil
  3463  }
  3464  func (m *ModeInfo_Single) Unmarshal(dAtA []byte) error {
  3465  	l := len(dAtA)
  3466  	iNdEx := 0
  3467  	for iNdEx < l {
  3468  		preIndex := iNdEx
  3469  		var wire uint64
  3470  		for shift := uint(0); ; shift += 7 {
  3471  			if shift >= 64 {
  3472  				return ErrIntOverflowTx
  3473  			}
  3474  			if iNdEx >= l {
  3475  				return io.ErrUnexpectedEOF
  3476  			}
  3477  			b := dAtA[iNdEx]
  3478  			iNdEx++
  3479  			wire |= uint64(b&0x7F) << shift
  3480  			if b < 0x80 {
  3481  				break
  3482  			}
  3483  		}
  3484  		fieldNum := int32(wire >> 3)
  3485  		wireType := int(wire & 0x7)
  3486  		if wireType == 4 {
  3487  			return fmt.Errorf("proto: Single: wiretype end group for non-group")
  3488  		}
  3489  		if fieldNum <= 0 {
  3490  			return fmt.Errorf("proto: Single: illegal tag %d (wire type %d)", fieldNum, wire)
  3491  		}
  3492  		switch fieldNum {
  3493  		case 1:
  3494  			if wireType != 0 {
  3495  				return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
  3496  			}
  3497  			m.Mode = 0
  3498  			for shift := uint(0); ; shift += 7 {
  3499  				if shift >= 64 {
  3500  					return ErrIntOverflowTx
  3501  				}
  3502  				if iNdEx >= l {
  3503  					return io.ErrUnexpectedEOF
  3504  				}
  3505  				b := dAtA[iNdEx]
  3506  				iNdEx++
  3507  				m.Mode |= signing.SignMode(b&0x7F) << shift
  3508  				if b < 0x80 {
  3509  					break
  3510  				}
  3511  			}
  3512  		default:
  3513  			iNdEx = preIndex
  3514  			skippy, err := skipTx(dAtA[iNdEx:])
  3515  			if err != nil {
  3516  				return err
  3517  			}
  3518  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3519  				return ErrInvalidLengthTx
  3520  			}
  3521  			if (iNdEx + skippy) > l {
  3522  				return io.ErrUnexpectedEOF
  3523  			}
  3524  			iNdEx += skippy
  3525  		}
  3526  	}
  3527  
  3528  	if iNdEx > l {
  3529  		return io.ErrUnexpectedEOF
  3530  	}
  3531  	return nil
  3532  }
  3533  func (m *ModeInfo_Multi) Unmarshal(dAtA []byte) error {
  3534  	l := len(dAtA)
  3535  	iNdEx := 0
  3536  	for iNdEx < l {
  3537  		preIndex := iNdEx
  3538  		var wire uint64
  3539  		for shift := uint(0); ; shift += 7 {
  3540  			if shift >= 64 {
  3541  				return ErrIntOverflowTx
  3542  			}
  3543  			if iNdEx >= l {
  3544  				return io.ErrUnexpectedEOF
  3545  			}
  3546  			b := dAtA[iNdEx]
  3547  			iNdEx++
  3548  			wire |= uint64(b&0x7F) << shift
  3549  			if b < 0x80 {
  3550  				break
  3551  			}
  3552  		}
  3553  		fieldNum := int32(wire >> 3)
  3554  		wireType := int(wire & 0x7)
  3555  		if wireType == 4 {
  3556  			return fmt.Errorf("proto: Multi: wiretype end group for non-group")
  3557  		}
  3558  		if fieldNum <= 0 {
  3559  			return fmt.Errorf("proto: Multi: illegal tag %d (wire type %d)", fieldNum, wire)
  3560  		}
  3561  		switch fieldNum {
  3562  		case 1:
  3563  			if wireType != 2 {
  3564  				return fmt.Errorf("proto: wrong wireType = %d for field Bitarray", wireType)
  3565  			}
  3566  			var msglen int
  3567  			for shift := uint(0); ; shift += 7 {
  3568  				if shift >= 64 {
  3569  					return ErrIntOverflowTx
  3570  				}
  3571  				if iNdEx >= l {
  3572  					return io.ErrUnexpectedEOF
  3573  				}
  3574  				b := dAtA[iNdEx]
  3575  				iNdEx++
  3576  				msglen |= int(b&0x7F) << shift
  3577  				if b < 0x80 {
  3578  					break
  3579  				}
  3580  			}
  3581  			if msglen < 0 {
  3582  				return ErrInvalidLengthTx
  3583  			}
  3584  			postIndex := iNdEx + msglen
  3585  			if postIndex < 0 {
  3586  				return ErrInvalidLengthTx
  3587  			}
  3588  			if postIndex > l {
  3589  				return io.ErrUnexpectedEOF
  3590  			}
  3591  			if m.Bitarray == nil {
  3592  				m.Bitarray = &types1.CompactBitArray{}
  3593  			}
  3594  			if err := m.Bitarray.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3595  				return err
  3596  			}
  3597  			iNdEx = postIndex
  3598  		case 2:
  3599  			if wireType != 2 {
  3600  				return fmt.Errorf("proto: wrong wireType = %d for field ModeInfos", wireType)
  3601  			}
  3602  			var msglen int
  3603  			for shift := uint(0); ; shift += 7 {
  3604  				if shift >= 64 {
  3605  					return ErrIntOverflowTx
  3606  				}
  3607  				if iNdEx >= l {
  3608  					return io.ErrUnexpectedEOF
  3609  				}
  3610  				b := dAtA[iNdEx]
  3611  				iNdEx++
  3612  				msglen |= int(b&0x7F) << shift
  3613  				if b < 0x80 {
  3614  					break
  3615  				}
  3616  			}
  3617  			if msglen < 0 {
  3618  				return ErrInvalidLengthTx
  3619  			}
  3620  			postIndex := iNdEx + msglen
  3621  			if postIndex < 0 {
  3622  				return ErrInvalidLengthTx
  3623  			}
  3624  			if postIndex > l {
  3625  				return io.ErrUnexpectedEOF
  3626  			}
  3627  			m.ModeInfos = append(m.ModeInfos, &ModeInfo{})
  3628  			if err := m.ModeInfos[len(m.ModeInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3629  				return err
  3630  			}
  3631  			iNdEx = postIndex
  3632  		default:
  3633  			iNdEx = preIndex
  3634  			skippy, err := skipTx(dAtA[iNdEx:])
  3635  			if err != nil {
  3636  				return err
  3637  			}
  3638  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3639  				return ErrInvalidLengthTx
  3640  			}
  3641  			if (iNdEx + skippy) > l {
  3642  				return io.ErrUnexpectedEOF
  3643  			}
  3644  			iNdEx += skippy
  3645  		}
  3646  	}
  3647  
  3648  	if iNdEx > l {
  3649  		return io.ErrUnexpectedEOF
  3650  	}
  3651  	return nil
  3652  }
  3653  func (m *Fee) Unmarshal(dAtA []byte) error {
  3654  	l := len(dAtA)
  3655  	iNdEx := 0
  3656  	for iNdEx < l {
  3657  		preIndex := iNdEx
  3658  		var wire uint64
  3659  		for shift := uint(0); ; shift += 7 {
  3660  			if shift >= 64 {
  3661  				return ErrIntOverflowTx
  3662  			}
  3663  			if iNdEx >= l {
  3664  				return io.ErrUnexpectedEOF
  3665  			}
  3666  			b := dAtA[iNdEx]
  3667  			iNdEx++
  3668  			wire |= uint64(b&0x7F) << shift
  3669  			if b < 0x80 {
  3670  				break
  3671  			}
  3672  		}
  3673  		fieldNum := int32(wire >> 3)
  3674  		wireType := int(wire & 0x7)
  3675  		if wireType == 4 {
  3676  			return fmt.Errorf("proto: Fee: wiretype end group for non-group")
  3677  		}
  3678  		if fieldNum <= 0 {
  3679  			return fmt.Errorf("proto: Fee: illegal tag %d (wire type %d)", fieldNum, wire)
  3680  		}
  3681  		switch fieldNum {
  3682  		case 1:
  3683  			if wireType != 2 {
  3684  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  3685  			}
  3686  			var msglen int
  3687  			for shift := uint(0); ; shift += 7 {
  3688  				if shift >= 64 {
  3689  					return ErrIntOverflowTx
  3690  				}
  3691  				if iNdEx >= l {
  3692  					return io.ErrUnexpectedEOF
  3693  				}
  3694  				b := dAtA[iNdEx]
  3695  				iNdEx++
  3696  				msglen |= int(b&0x7F) << shift
  3697  				if b < 0x80 {
  3698  					break
  3699  				}
  3700  			}
  3701  			if msglen < 0 {
  3702  				return ErrInvalidLengthTx
  3703  			}
  3704  			postIndex := iNdEx + msglen
  3705  			if postIndex < 0 {
  3706  				return ErrInvalidLengthTx
  3707  			}
  3708  			if postIndex > l {
  3709  				return io.ErrUnexpectedEOF
  3710  			}
  3711  			m.Amount = append(m.Amount, types2.Coin{})
  3712  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3713  				return err
  3714  			}
  3715  			iNdEx = postIndex
  3716  		case 2:
  3717  			if wireType != 0 {
  3718  				return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType)
  3719  			}
  3720  			m.GasLimit = 0
  3721  			for shift := uint(0); ; shift += 7 {
  3722  				if shift >= 64 {
  3723  					return ErrIntOverflowTx
  3724  				}
  3725  				if iNdEx >= l {
  3726  					return io.ErrUnexpectedEOF
  3727  				}
  3728  				b := dAtA[iNdEx]
  3729  				iNdEx++
  3730  				m.GasLimit |= uint64(b&0x7F) << shift
  3731  				if b < 0x80 {
  3732  					break
  3733  				}
  3734  			}
  3735  		case 3:
  3736  			if wireType != 2 {
  3737  				return fmt.Errorf("proto: wrong wireType = %d for field Payer", wireType)
  3738  			}
  3739  			var stringLen uint64
  3740  			for shift := uint(0); ; shift += 7 {
  3741  				if shift >= 64 {
  3742  					return ErrIntOverflowTx
  3743  				}
  3744  				if iNdEx >= l {
  3745  					return io.ErrUnexpectedEOF
  3746  				}
  3747  				b := dAtA[iNdEx]
  3748  				iNdEx++
  3749  				stringLen |= uint64(b&0x7F) << shift
  3750  				if b < 0x80 {
  3751  					break
  3752  				}
  3753  			}
  3754  			intStringLen := int(stringLen)
  3755  			if intStringLen < 0 {
  3756  				return ErrInvalidLengthTx
  3757  			}
  3758  			postIndex := iNdEx + intStringLen
  3759  			if postIndex < 0 {
  3760  				return ErrInvalidLengthTx
  3761  			}
  3762  			if postIndex > l {
  3763  				return io.ErrUnexpectedEOF
  3764  			}
  3765  			m.Payer = string(dAtA[iNdEx:postIndex])
  3766  			iNdEx = postIndex
  3767  		case 4:
  3768  			if wireType != 2 {
  3769  				return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType)
  3770  			}
  3771  			var stringLen uint64
  3772  			for shift := uint(0); ; shift += 7 {
  3773  				if shift >= 64 {
  3774  					return ErrIntOverflowTx
  3775  				}
  3776  				if iNdEx >= l {
  3777  					return io.ErrUnexpectedEOF
  3778  				}
  3779  				b := dAtA[iNdEx]
  3780  				iNdEx++
  3781  				stringLen |= uint64(b&0x7F) << shift
  3782  				if b < 0x80 {
  3783  					break
  3784  				}
  3785  			}
  3786  			intStringLen := int(stringLen)
  3787  			if intStringLen < 0 {
  3788  				return ErrInvalidLengthTx
  3789  			}
  3790  			postIndex := iNdEx + intStringLen
  3791  			if postIndex < 0 {
  3792  				return ErrInvalidLengthTx
  3793  			}
  3794  			if postIndex > l {
  3795  				return io.ErrUnexpectedEOF
  3796  			}
  3797  			m.Granter = string(dAtA[iNdEx:postIndex])
  3798  			iNdEx = postIndex
  3799  		default:
  3800  			iNdEx = preIndex
  3801  			skippy, err := skipTx(dAtA[iNdEx:])
  3802  			if err != nil {
  3803  				return err
  3804  			}
  3805  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3806  				return ErrInvalidLengthTx
  3807  			}
  3808  			if (iNdEx + skippy) > l {
  3809  				return io.ErrUnexpectedEOF
  3810  			}
  3811  			iNdEx += skippy
  3812  		}
  3813  	}
  3814  
  3815  	if iNdEx > l {
  3816  		return io.ErrUnexpectedEOF
  3817  	}
  3818  	return nil
  3819  }
  3820  func (m *Tip) Unmarshal(dAtA []byte) error {
  3821  	l := len(dAtA)
  3822  	iNdEx := 0
  3823  	for iNdEx < l {
  3824  		preIndex := iNdEx
  3825  		var wire uint64
  3826  		for shift := uint(0); ; shift += 7 {
  3827  			if shift >= 64 {
  3828  				return ErrIntOverflowTx
  3829  			}
  3830  			if iNdEx >= l {
  3831  				return io.ErrUnexpectedEOF
  3832  			}
  3833  			b := dAtA[iNdEx]
  3834  			iNdEx++
  3835  			wire |= uint64(b&0x7F) << shift
  3836  			if b < 0x80 {
  3837  				break
  3838  			}
  3839  		}
  3840  		fieldNum := int32(wire >> 3)
  3841  		wireType := int(wire & 0x7)
  3842  		if wireType == 4 {
  3843  			return fmt.Errorf("proto: Tip: wiretype end group for non-group")
  3844  		}
  3845  		if fieldNum <= 0 {
  3846  			return fmt.Errorf("proto: Tip: illegal tag %d (wire type %d)", fieldNum, wire)
  3847  		}
  3848  		switch fieldNum {
  3849  		case 1:
  3850  			if wireType != 2 {
  3851  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  3852  			}
  3853  			var msglen int
  3854  			for shift := uint(0); ; shift += 7 {
  3855  				if shift >= 64 {
  3856  					return ErrIntOverflowTx
  3857  				}
  3858  				if iNdEx >= l {
  3859  					return io.ErrUnexpectedEOF
  3860  				}
  3861  				b := dAtA[iNdEx]
  3862  				iNdEx++
  3863  				msglen |= int(b&0x7F) << shift
  3864  				if b < 0x80 {
  3865  					break
  3866  				}
  3867  			}
  3868  			if msglen < 0 {
  3869  				return ErrInvalidLengthTx
  3870  			}
  3871  			postIndex := iNdEx + msglen
  3872  			if postIndex < 0 {
  3873  				return ErrInvalidLengthTx
  3874  			}
  3875  			if postIndex > l {
  3876  				return io.ErrUnexpectedEOF
  3877  			}
  3878  			m.Amount = append(m.Amount, types2.Coin{})
  3879  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3880  				return err
  3881  			}
  3882  			iNdEx = postIndex
  3883  		case 2:
  3884  			if wireType != 2 {
  3885  				return fmt.Errorf("proto: wrong wireType = %d for field Tipper", wireType)
  3886  			}
  3887  			var stringLen uint64
  3888  			for shift := uint(0); ; shift += 7 {
  3889  				if shift >= 64 {
  3890  					return ErrIntOverflowTx
  3891  				}
  3892  				if iNdEx >= l {
  3893  					return io.ErrUnexpectedEOF
  3894  				}
  3895  				b := dAtA[iNdEx]
  3896  				iNdEx++
  3897  				stringLen |= uint64(b&0x7F) << shift
  3898  				if b < 0x80 {
  3899  					break
  3900  				}
  3901  			}
  3902  			intStringLen := int(stringLen)
  3903  			if intStringLen < 0 {
  3904  				return ErrInvalidLengthTx
  3905  			}
  3906  			postIndex := iNdEx + intStringLen
  3907  			if postIndex < 0 {
  3908  				return ErrInvalidLengthTx
  3909  			}
  3910  			if postIndex > l {
  3911  				return io.ErrUnexpectedEOF
  3912  			}
  3913  			m.Tipper = string(dAtA[iNdEx:postIndex])
  3914  			iNdEx = postIndex
  3915  		default:
  3916  			iNdEx = preIndex
  3917  			skippy, err := skipTx(dAtA[iNdEx:])
  3918  			if err != nil {
  3919  				return err
  3920  			}
  3921  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3922  				return ErrInvalidLengthTx
  3923  			}
  3924  			if (iNdEx + skippy) > l {
  3925  				return io.ErrUnexpectedEOF
  3926  			}
  3927  			iNdEx += skippy
  3928  		}
  3929  	}
  3930  
  3931  	if iNdEx > l {
  3932  		return io.ErrUnexpectedEOF
  3933  	}
  3934  	return nil
  3935  }
  3936  func (m *AuxSignerData) Unmarshal(dAtA []byte) error {
  3937  	l := len(dAtA)
  3938  	iNdEx := 0
  3939  	for iNdEx < l {
  3940  		preIndex := iNdEx
  3941  		var wire uint64
  3942  		for shift := uint(0); ; shift += 7 {
  3943  			if shift >= 64 {
  3944  				return ErrIntOverflowTx
  3945  			}
  3946  			if iNdEx >= l {
  3947  				return io.ErrUnexpectedEOF
  3948  			}
  3949  			b := dAtA[iNdEx]
  3950  			iNdEx++
  3951  			wire |= uint64(b&0x7F) << shift
  3952  			if b < 0x80 {
  3953  				break
  3954  			}
  3955  		}
  3956  		fieldNum := int32(wire >> 3)
  3957  		wireType := int(wire & 0x7)
  3958  		if wireType == 4 {
  3959  			return fmt.Errorf("proto: AuxSignerData: wiretype end group for non-group")
  3960  		}
  3961  		if fieldNum <= 0 {
  3962  			return fmt.Errorf("proto: AuxSignerData: illegal tag %d (wire type %d)", fieldNum, wire)
  3963  		}
  3964  		switch fieldNum {
  3965  		case 1:
  3966  			if wireType != 2 {
  3967  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  3968  			}
  3969  			var stringLen uint64
  3970  			for shift := uint(0); ; shift += 7 {
  3971  				if shift >= 64 {
  3972  					return ErrIntOverflowTx
  3973  				}
  3974  				if iNdEx >= l {
  3975  					return io.ErrUnexpectedEOF
  3976  				}
  3977  				b := dAtA[iNdEx]
  3978  				iNdEx++
  3979  				stringLen |= uint64(b&0x7F) << shift
  3980  				if b < 0x80 {
  3981  					break
  3982  				}
  3983  			}
  3984  			intStringLen := int(stringLen)
  3985  			if intStringLen < 0 {
  3986  				return ErrInvalidLengthTx
  3987  			}
  3988  			postIndex := iNdEx + intStringLen
  3989  			if postIndex < 0 {
  3990  				return ErrInvalidLengthTx
  3991  			}
  3992  			if postIndex > l {
  3993  				return io.ErrUnexpectedEOF
  3994  			}
  3995  			m.Address = string(dAtA[iNdEx:postIndex])
  3996  			iNdEx = postIndex
  3997  		case 2:
  3998  			if wireType != 2 {
  3999  				return fmt.Errorf("proto: wrong wireType = %d for field SignDoc", wireType)
  4000  			}
  4001  			var msglen int
  4002  			for shift := uint(0); ; shift += 7 {
  4003  				if shift >= 64 {
  4004  					return ErrIntOverflowTx
  4005  				}
  4006  				if iNdEx >= l {
  4007  					return io.ErrUnexpectedEOF
  4008  				}
  4009  				b := dAtA[iNdEx]
  4010  				iNdEx++
  4011  				msglen |= int(b&0x7F) << shift
  4012  				if b < 0x80 {
  4013  					break
  4014  				}
  4015  			}
  4016  			if msglen < 0 {
  4017  				return ErrInvalidLengthTx
  4018  			}
  4019  			postIndex := iNdEx + msglen
  4020  			if postIndex < 0 {
  4021  				return ErrInvalidLengthTx
  4022  			}
  4023  			if postIndex > l {
  4024  				return io.ErrUnexpectedEOF
  4025  			}
  4026  			if m.SignDoc == nil {
  4027  				m.SignDoc = &SignDocDirectAux{}
  4028  			}
  4029  			if err := m.SignDoc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4030  				return err
  4031  			}
  4032  			iNdEx = postIndex
  4033  		case 3:
  4034  			if wireType != 0 {
  4035  				return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
  4036  			}
  4037  			m.Mode = 0
  4038  			for shift := uint(0); ; shift += 7 {
  4039  				if shift >= 64 {
  4040  					return ErrIntOverflowTx
  4041  				}
  4042  				if iNdEx >= l {
  4043  					return io.ErrUnexpectedEOF
  4044  				}
  4045  				b := dAtA[iNdEx]
  4046  				iNdEx++
  4047  				m.Mode |= signing.SignMode(b&0x7F) << shift
  4048  				if b < 0x80 {
  4049  					break
  4050  				}
  4051  			}
  4052  		case 4:
  4053  			if wireType != 2 {
  4054  				return fmt.Errorf("proto: wrong wireType = %d for field Sig", wireType)
  4055  			}
  4056  			var byteLen int
  4057  			for shift := uint(0); ; shift += 7 {
  4058  				if shift >= 64 {
  4059  					return ErrIntOverflowTx
  4060  				}
  4061  				if iNdEx >= l {
  4062  					return io.ErrUnexpectedEOF
  4063  				}
  4064  				b := dAtA[iNdEx]
  4065  				iNdEx++
  4066  				byteLen |= int(b&0x7F) << shift
  4067  				if b < 0x80 {
  4068  					break
  4069  				}
  4070  			}
  4071  			if byteLen < 0 {
  4072  				return ErrInvalidLengthTx
  4073  			}
  4074  			postIndex := iNdEx + byteLen
  4075  			if postIndex < 0 {
  4076  				return ErrInvalidLengthTx
  4077  			}
  4078  			if postIndex > l {
  4079  				return io.ErrUnexpectedEOF
  4080  			}
  4081  			m.Sig = append(m.Sig[:0], dAtA[iNdEx:postIndex]...)
  4082  			if m.Sig == nil {
  4083  				m.Sig = []byte{}
  4084  			}
  4085  			iNdEx = postIndex
  4086  		default:
  4087  			iNdEx = preIndex
  4088  			skippy, err := skipTx(dAtA[iNdEx:])
  4089  			if err != nil {
  4090  				return err
  4091  			}
  4092  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4093  				return ErrInvalidLengthTx
  4094  			}
  4095  			if (iNdEx + skippy) > l {
  4096  				return io.ErrUnexpectedEOF
  4097  			}
  4098  			iNdEx += skippy
  4099  		}
  4100  	}
  4101  
  4102  	if iNdEx > l {
  4103  		return io.ErrUnexpectedEOF
  4104  	}
  4105  	return nil
  4106  }
  4107  func skipTx(dAtA []byte) (n int, err error) {
  4108  	l := len(dAtA)
  4109  	iNdEx := 0
  4110  	depth := 0
  4111  	for iNdEx < l {
  4112  		var wire uint64
  4113  		for shift := uint(0); ; shift += 7 {
  4114  			if shift >= 64 {
  4115  				return 0, ErrIntOverflowTx
  4116  			}
  4117  			if iNdEx >= l {
  4118  				return 0, io.ErrUnexpectedEOF
  4119  			}
  4120  			b := dAtA[iNdEx]
  4121  			iNdEx++
  4122  			wire |= (uint64(b) & 0x7F) << shift
  4123  			if b < 0x80 {
  4124  				break
  4125  			}
  4126  		}
  4127  		wireType := int(wire & 0x7)
  4128  		switch wireType {
  4129  		case 0:
  4130  			for shift := uint(0); ; shift += 7 {
  4131  				if shift >= 64 {
  4132  					return 0, ErrIntOverflowTx
  4133  				}
  4134  				if iNdEx >= l {
  4135  					return 0, io.ErrUnexpectedEOF
  4136  				}
  4137  				iNdEx++
  4138  				if dAtA[iNdEx-1] < 0x80 {
  4139  					break
  4140  				}
  4141  			}
  4142  		case 1:
  4143  			iNdEx += 8
  4144  		case 2:
  4145  			var length int
  4146  			for shift := uint(0); ; shift += 7 {
  4147  				if shift >= 64 {
  4148  					return 0, ErrIntOverflowTx
  4149  				}
  4150  				if iNdEx >= l {
  4151  					return 0, io.ErrUnexpectedEOF
  4152  				}
  4153  				b := dAtA[iNdEx]
  4154  				iNdEx++
  4155  				length |= (int(b) & 0x7F) << shift
  4156  				if b < 0x80 {
  4157  					break
  4158  				}
  4159  			}
  4160  			if length < 0 {
  4161  				return 0, ErrInvalidLengthTx
  4162  			}
  4163  			iNdEx += length
  4164  		case 3:
  4165  			depth++
  4166  		case 4:
  4167  			if depth == 0 {
  4168  				return 0, ErrUnexpectedEndOfGroupTx
  4169  			}
  4170  			depth--
  4171  		case 5:
  4172  			iNdEx += 4
  4173  		default:
  4174  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4175  		}
  4176  		if iNdEx < 0 {
  4177  			return 0, ErrInvalidLengthTx
  4178  		}
  4179  		if depth == 0 {
  4180  			return iNdEx, nil
  4181  		}
  4182  	}
  4183  	return 0, io.ErrUnexpectedEOF
  4184  }
  4185  
  4186  var (
  4187  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
  4188  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
  4189  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
  4190  )