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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/staking/v1beta1/tx.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	cosmossdk_io_math "cosmossdk.io/math"
     9  	fmt "fmt"
    10  	_ "github.com/cosmos/cosmos-proto"
    11  	types "github.com/cosmos/cosmos-sdk/codec/types"
    12  	types1 "github.com/cosmos/cosmos-sdk/types"
    13  	_ "github.com/cosmos/cosmos-sdk/types/msgservice"
    14  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    15  	_ "github.com/cosmos/gogoproto/gogoproto"
    16  	grpc1 "github.com/cosmos/gogoproto/grpc"
    17  	proto "github.com/cosmos/gogoproto/proto"
    18  	github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
    19  	grpc "google.golang.org/grpc"
    20  	codes "google.golang.org/grpc/codes"
    21  	status "google.golang.org/grpc/status"
    22  	_ "google.golang.org/protobuf/types/known/timestamppb"
    23  	io "io"
    24  	math "math"
    25  	math_bits "math/bits"
    26  	time "time"
    27  )
    28  
    29  // Reference imports to suppress errors if they are not otherwise used.
    30  var _ = proto.Marshal
    31  var _ = fmt.Errorf
    32  var _ = math.Inf
    33  var _ = time.Kitchen
    34  
    35  // This is a compile-time assertion to ensure that this generated file
    36  // is compatible with the proto package it is being compiled against.
    37  // A compilation error at this line likely means your copy of the
    38  // proto package needs to be updated.
    39  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    40  
    41  // MsgCreateValidator defines a SDK message for creating a new validator.
    42  type MsgCreateValidator struct {
    43  	Description       Description           `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
    44  	Commission        CommissionRates       `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"`
    45  	MinSelfDelegation cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=cosmossdk.io/math.Int" json:"min_self_delegation"`
    46  	// Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
    47  	// The validator address bytes and delegator address bytes refer to the same account while creating validator (defer
    48  	// only in bech32 notation).
    49  	DelegatorAddress string      `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // Deprecated: Do not use.
    50  	ValidatorAddress string      `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
    51  	Pubkey           *types.Any  `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
    52  	Value            types1.Coin `protobuf:"bytes,7,opt,name=value,proto3" json:"value"`
    53  }
    54  
    55  func (m *MsgCreateValidator) Reset()         { *m = MsgCreateValidator{} }
    56  func (m *MsgCreateValidator) String() string { return proto.CompactTextString(m) }
    57  func (*MsgCreateValidator) ProtoMessage()    {}
    58  func (*MsgCreateValidator) Descriptor() ([]byte, []int) {
    59  	return fileDescriptor_0926ef28816b35ab, []int{0}
    60  }
    61  func (m *MsgCreateValidator) XXX_Unmarshal(b []byte) error {
    62  	return m.Unmarshal(b)
    63  }
    64  func (m *MsgCreateValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    65  	if deterministic {
    66  		return xxx_messageInfo_MsgCreateValidator.Marshal(b, m, deterministic)
    67  	} else {
    68  		b = b[:cap(b)]
    69  		n, err := m.MarshalToSizedBuffer(b)
    70  		if err != nil {
    71  			return nil, err
    72  		}
    73  		return b[:n], nil
    74  	}
    75  }
    76  func (m *MsgCreateValidator) XXX_Merge(src proto.Message) {
    77  	xxx_messageInfo_MsgCreateValidator.Merge(m, src)
    78  }
    79  func (m *MsgCreateValidator) XXX_Size() int {
    80  	return m.Size()
    81  }
    82  func (m *MsgCreateValidator) XXX_DiscardUnknown() {
    83  	xxx_messageInfo_MsgCreateValidator.DiscardUnknown(m)
    84  }
    85  
    86  var xxx_messageInfo_MsgCreateValidator proto.InternalMessageInfo
    87  
    88  // MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
    89  type MsgCreateValidatorResponse struct {
    90  }
    91  
    92  func (m *MsgCreateValidatorResponse) Reset()         { *m = MsgCreateValidatorResponse{} }
    93  func (m *MsgCreateValidatorResponse) String() string { return proto.CompactTextString(m) }
    94  func (*MsgCreateValidatorResponse) ProtoMessage()    {}
    95  func (*MsgCreateValidatorResponse) Descriptor() ([]byte, []int) {
    96  	return fileDescriptor_0926ef28816b35ab, []int{1}
    97  }
    98  func (m *MsgCreateValidatorResponse) XXX_Unmarshal(b []byte) error {
    99  	return m.Unmarshal(b)
   100  }
   101  func (m *MsgCreateValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   102  	if deterministic {
   103  		return xxx_messageInfo_MsgCreateValidatorResponse.Marshal(b, m, deterministic)
   104  	} else {
   105  		b = b[:cap(b)]
   106  		n, err := m.MarshalToSizedBuffer(b)
   107  		if err != nil {
   108  			return nil, err
   109  		}
   110  		return b[:n], nil
   111  	}
   112  }
   113  func (m *MsgCreateValidatorResponse) XXX_Merge(src proto.Message) {
   114  	xxx_messageInfo_MsgCreateValidatorResponse.Merge(m, src)
   115  }
   116  func (m *MsgCreateValidatorResponse) XXX_Size() int {
   117  	return m.Size()
   118  }
   119  func (m *MsgCreateValidatorResponse) XXX_DiscardUnknown() {
   120  	xxx_messageInfo_MsgCreateValidatorResponse.DiscardUnknown(m)
   121  }
   122  
   123  var xxx_messageInfo_MsgCreateValidatorResponse proto.InternalMessageInfo
   124  
   125  // MsgEditValidator defines a SDK message for editing an existing validator.
   126  type MsgEditValidator struct {
   127  	Description      Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
   128  	ValidatorAddress string      `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   129  	// We pass a reference to the new commission rate and min self delegation as
   130  	// it's not mandatory to update. If not updated, the deserialized rate will be
   131  	// zero with no way to distinguish if an update was intended.
   132  	// REF: #2373
   133  	CommissionRate    *cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=commission_rate,json=commissionRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"commission_rate,omitempty"`
   134  	MinSelfDelegation *cosmossdk_io_math.Int       `protobuf:"bytes,4,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=cosmossdk.io/math.Int" json:"min_self_delegation,omitempty"`
   135  }
   136  
   137  func (m *MsgEditValidator) Reset()         { *m = MsgEditValidator{} }
   138  func (m *MsgEditValidator) String() string { return proto.CompactTextString(m) }
   139  func (*MsgEditValidator) ProtoMessage()    {}
   140  func (*MsgEditValidator) Descriptor() ([]byte, []int) {
   141  	return fileDescriptor_0926ef28816b35ab, []int{2}
   142  }
   143  func (m *MsgEditValidator) XXX_Unmarshal(b []byte) error {
   144  	return m.Unmarshal(b)
   145  }
   146  func (m *MsgEditValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   147  	if deterministic {
   148  		return xxx_messageInfo_MsgEditValidator.Marshal(b, m, deterministic)
   149  	} else {
   150  		b = b[:cap(b)]
   151  		n, err := m.MarshalToSizedBuffer(b)
   152  		if err != nil {
   153  			return nil, err
   154  		}
   155  		return b[:n], nil
   156  	}
   157  }
   158  func (m *MsgEditValidator) XXX_Merge(src proto.Message) {
   159  	xxx_messageInfo_MsgEditValidator.Merge(m, src)
   160  }
   161  func (m *MsgEditValidator) XXX_Size() int {
   162  	return m.Size()
   163  }
   164  func (m *MsgEditValidator) XXX_DiscardUnknown() {
   165  	xxx_messageInfo_MsgEditValidator.DiscardUnknown(m)
   166  }
   167  
   168  var xxx_messageInfo_MsgEditValidator proto.InternalMessageInfo
   169  
   170  // MsgEditValidatorResponse defines the Msg/EditValidator response type.
   171  type MsgEditValidatorResponse struct {
   172  }
   173  
   174  func (m *MsgEditValidatorResponse) Reset()         { *m = MsgEditValidatorResponse{} }
   175  func (m *MsgEditValidatorResponse) String() string { return proto.CompactTextString(m) }
   176  func (*MsgEditValidatorResponse) ProtoMessage()    {}
   177  func (*MsgEditValidatorResponse) Descriptor() ([]byte, []int) {
   178  	return fileDescriptor_0926ef28816b35ab, []int{3}
   179  }
   180  func (m *MsgEditValidatorResponse) XXX_Unmarshal(b []byte) error {
   181  	return m.Unmarshal(b)
   182  }
   183  func (m *MsgEditValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   184  	if deterministic {
   185  		return xxx_messageInfo_MsgEditValidatorResponse.Marshal(b, m, deterministic)
   186  	} else {
   187  		b = b[:cap(b)]
   188  		n, err := m.MarshalToSizedBuffer(b)
   189  		if err != nil {
   190  			return nil, err
   191  		}
   192  		return b[:n], nil
   193  	}
   194  }
   195  func (m *MsgEditValidatorResponse) XXX_Merge(src proto.Message) {
   196  	xxx_messageInfo_MsgEditValidatorResponse.Merge(m, src)
   197  }
   198  func (m *MsgEditValidatorResponse) XXX_Size() int {
   199  	return m.Size()
   200  }
   201  func (m *MsgEditValidatorResponse) XXX_DiscardUnknown() {
   202  	xxx_messageInfo_MsgEditValidatorResponse.DiscardUnknown(m)
   203  }
   204  
   205  var xxx_messageInfo_MsgEditValidatorResponse proto.InternalMessageInfo
   206  
   207  // MsgDelegate defines a SDK message for performing a delegation of coins
   208  // from a delegator to a validator.
   209  type MsgDelegate struct {
   210  	DelegatorAddress string      `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
   211  	ValidatorAddress string      `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   212  	Amount           types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
   213  }
   214  
   215  func (m *MsgDelegate) Reset()         { *m = MsgDelegate{} }
   216  func (m *MsgDelegate) String() string { return proto.CompactTextString(m) }
   217  func (*MsgDelegate) ProtoMessage()    {}
   218  func (*MsgDelegate) Descriptor() ([]byte, []int) {
   219  	return fileDescriptor_0926ef28816b35ab, []int{4}
   220  }
   221  func (m *MsgDelegate) XXX_Unmarshal(b []byte) error {
   222  	return m.Unmarshal(b)
   223  }
   224  func (m *MsgDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   225  	if deterministic {
   226  		return xxx_messageInfo_MsgDelegate.Marshal(b, m, deterministic)
   227  	} else {
   228  		b = b[:cap(b)]
   229  		n, err := m.MarshalToSizedBuffer(b)
   230  		if err != nil {
   231  			return nil, err
   232  		}
   233  		return b[:n], nil
   234  	}
   235  }
   236  func (m *MsgDelegate) XXX_Merge(src proto.Message) {
   237  	xxx_messageInfo_MsgDelegate.Merge(m, src)
   238  }
   239  func (m *MsgDelegate) XXX_Size() int {
   240  	return m.Size()
   241  }
   242  func (m *MsgDelegate) XXX_DiscardUnknown() {
   243  	xxx_messageInfo_MsgDelegate.DiscardUnknown(m)
   244  }
   245  
   246  var xxx_messageInfo_MsgDelegate proto.InternalMessageInfo
   247  
   248  // MsgDelegateResponse defines the Msg/Delegate response type.
   249  type MsgDelegateResponse struct {
   250  }
   251  
   252  func (m *MsgDelegateResponse) Reset()         { *m = MsgDelegateResponse{} }
   253  func (m *MsgDelegateResponse) String() string { return proto.CompactTextString(m) }
   254  func (*MsgDelegateResponse) ProtoMessage()    {}
   255  func (*MsgDelegateResponse) Descriptor() ([]byte, []int) {
   256  	return fileDescriptor_0926ef28816b35ab, []int{5}
   257  }
   258  func (m *MsgDelegateResponse) XXX_Unmarshal(b []byte) error {
   259  	return m.Unmarshal(b)
   260  }
   261  func (m *MsgDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   262  	if deterministic {
   263  		return xxx_messageInfo_MsgDelegateResponse.Marshal(b, m, deterministic)
   264  	} else {
   265  		b = b[:cap(b)]
   266  		n, err := m.MarshalToSizedBuffer(b)
   267  		if err != nil {
   268  			return nil, err
   269  		}
   270  		return b[:n], nil
   271  	}
   272  }
   273  func (m *MsgDelegateResponse) XXX_Merge(src proto.Message) {
   274  	xxx_messageInfo_MsgDelegateResponse.Merge(m, src)
   275  }
   276  func (m *MsgDelegateResponse) XXX_Size() int {
   277  	return m.Size()
   278  }
   279  func (m *MsgDelegateResponse) XXX_DiscardUnknown() {
   280  	xxx_messageInfo_MsgDelegateResponse.DiscardUnknown(m)
   281  }
   282  
   283  var xxx_messageInfo_MsgDelegateResponse proto.InternalMessageInfo
   284  
   285  // MsgBeginRedelegate defines a SDK message for performing a redelegation
   286  // of coins from a delegator and source validator to a destination validator.
   287  type MsgBeginRedelegate struct {
   288  	DelegatorAddress    string      `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
   289  	ValidatorSrcAddress string      `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
   290  	ValidatorDstAddress string      `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
   291  	Amount              types1.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
   292  }
   293  
   294  func (m *MsgBeginRedelegate) Reset()         { *m = MsgBeginRedelegate{} }
   295  func (m *MsgBeginRedelegate) String() string { return proto.CompactTextString(m) }
   296  func (*MsgBeginRedelegate) ProtoMessage()    {}
   297  func (*MsgBeginRedelegate) Descriptor() ([]byte, []int) {
   298  	return fileDescriptor_0926ef28816b35ab, []int{6}
   299  }
   300  func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error {
   301  	return m.Unmarshal(b)
   302  }
   303  func (m *MsgBeginRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   304  	if deterministic {
   305  		return xxx_messageInfo_MsgBeginRedelegate.Marshal(b, m, deterministic)
   306  	} else {
   307  		b = b[:cap(b)]
   308  		n, err := m.MarshalToSizedBuffer(b)
   309  		if err != nil {
   310  			return nil, err
   311  		}
   312  		return b[:n], nil
   313  	}
   314  }
   315  func (m *MsgBeginRedelegate) XXX_Merge(src proto.Message) {
   316  	xxx_messageInfo_MsgBeginRedelegate.Merge(m, src)
   317  }
   318  func (m *MsgBeginRedelegate) XXX_Size() int {
   319  	return m.Size()
   320  }
   321  func (m *MsgBeginRedelegate) XXX_DiscardUnknown() {
   322  	xxx_messageInfo_MsgBeginRedelegate.DiscardUnknown(m)
   323  }
   324  
   325  var xxx_messageInfo_MsgBeginRedelegate proto.InternalMessageInfo
   326  
   327  // MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.
   328  type MsgBeginRedelegateResponse struct {
   329  	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
   330  }
   331  
   332  func (m *MsgBeginRedelegateResponse) Reset()         { *m = MsgBeginRedelegateResponse{} }
   333  func (m *MsgBeginRedelegateResponse) String() string { return proto.CompactTextString(m) }
   334  func (*MsgBeginRedelegateResponse) ProtoMessage()    {}
   335  func (*MsgBeginRedelegateResponse) Descriptor() ([]byte, []int) {
   336  	return fileDescriptor_0926ef28816b35ab, []int{7}
   337  }
   338  func (m *MsgBeginRedelegateResponse) XXX_Unmarshal(b []byte) error {
   339  	return m.Unmarshal(b)
   340  }
   341  func (m *MsgBeginRedelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   342  	if deterministic {
   343  		return xxx_messageInfo_MsgBeginRedelegateResponse.Marshal(b, m, deterministic)
   344  	} else {
   345  		b = b[:cap(b)]
   346  		n, err := m.MarshalToSizedBuffer(b)
   347  		if err != nil {
   348  			return nil, err
   349  		}
   350  		return b[:n], nil
   351  	}
   352  }
   353  func (m *MsgBeginRedelegateResponse) XXX_Merge(src proto.Message) {
   354  	xxx_messageInfo_MsgBeginRedelegateResponse.Merge(m, src)
   355  }
   356  func (m *MsgBeginRedelegateResponse) XXX_Size() int {
   357  	return m.Size()
   358  }
   359  func (m *MsgBeginRedelegateResponse) XXX_DiscardUnknown() {
   360  	xxx_messageInfo_MsgBeginRedelegateResponse.DiscardUnknown(m)
   361  }
   362  
   363  var xxx_messageInfo_MsgBeginRedelegateResponse proto.InternalMessageInfo
   364  
   365  func (m *MsgBeginRedelegateResponse) GetCompletionTime() time.Time {
   366  	if m != nil {
   367  		return m.CompletionTime
   368  	}
   369  	return time.Time{}
   370  }
   371  
   372  // MsgUndelegate defines a SDK message for performing an undelegation from a
   373  // delegate and a validator.
   374  type MsgUndelegate struct {
   375  	DelegatorAddress string      `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
   376  	ValidatorAddress string      `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   377  	Amount           types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
   378  }
   379  
   380  func (m *MsgUndelegate) Reset()         { *m = MsgUndelegate{} }
   381  func (m *MsgUndelegate) String() string { return proto.CompactTextString(m) }
   382  func (*MsgUndelegate) ProtoMessage()    {}
   383  func (*MsgUndelegate) Descriptor() ([]byte, []int) {
   384  	return fileDescriptor_0926ef28816b35ab, []int{8}
   385  }
   386  func (m *MsgUndelegate) XXX_Unmarshal(b []byte) error {
   387  	return m.Unmarshal(b)
   388  }
   389  func (m *MsgUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   390  	if deterministic {
   391  		return xxx_messageInfo_MsgUndelegate.Marshal(b, m, deterministic)
   392  	} else {
   393  		b = b[:cap(b)]
   394  		n, err := m.MarshalToSizedBuffer(b)
   395  		if err != nil {
   396  			return nil, err
   397  		}
   398  		return b[:n], nil
   399  	}
   400  }
   401  func (m *MsgUndelegate) XXX_Merge(src proto.Message) {
   402  	xxx_messageInfo_MsgUndelegate.Merge(m, src)
   403  }
   404  func (m *MsgUndelegate) XXX_Size() int {
   405  	return m.Size()
   406  }
   407  func (m *MsgUndelegate) XXX_DiscardUnknown() {
   408  	xxx_messageInfo_MsgUndelegate.DiscardUnknown(m)
   409  }
   410  
   411  var xxx_messageInfo_MsgUndelegate proto.InternalMessageInfo
   412  
   413  // MsgUndelegateResponse defines the Msg/Undelegate response type.
   414  type MsgUndelegateResponse struct {
   415  	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
   416  	// amount returns the amount of undelegated coins
   417  	//
   418  	// Since: cosmos-sdk 0.50
   419  	Amount types1.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
   420  }
   421  
   422  func (m *MsgUndelegateResponse) Reset()         { *m = MsgUndelegateResponse{} }
   423  func (m *MsgUndelegateResponse) String() string { return proto.CompactTextString(m) }
   424  func (*MsgUndelegateResponse) ProtoMessage()    {}
   425  func (*MsgUndelegateResponse) Descriptor() ([]byte, []int) {
   426  	return fileDescriptor_0926ef28816b35ab, []int{9}
   427  }
   428  func (m *MsgUndelegateResponse) XXX_Unmarshal(b []byte) error {
   429  	return m.Unmarshal(b)
   430  }
   431  func (m *MsgUndelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   432  	if deterministic {
   433  		return xxx_messageInfo_MsgUndelegateResponse.Marshal(b, m, deterministic)
   434  	} else {
   435  		b = b[:cap(b)]
   436  		n, err := m.MarshalToSizedBuffer(b)
   437  		if err != nil {
   438  			return nil, err
   439  		}
   440  		return b[:n], nil
   441  	}
   442  }
   443  func (m *MsgUndelegateResponse) XXX_Merge(src proto.Message) {
   444  	xxx_messageInfo_MsgUndelegateResponse.Merge(m, src)
   445  }
   446  func (m *MsgUndelegateResponse) XXX_Size() int {
   447  	return m.Size()
   448  }
   449  func (m *MsgUndelegateResponse) XXX_DiscardUnknown() {
   450  	xxx_messageInfo_MsgUndelegateResponse.DiscardUnknown(m)
   451  }
   452  
   453  var xxx_messageInfo_MsgUndelegateResponse proto.InternalMessageInfo
   454  
   455  func (m *MsgUndelegateResponse) GetCompletionTime() time.Time {
   456  	if m != nil {
   457  		return m.CompletionTime
   458  	}
   459  	return time.Time{}
   460  }
   461  
   462  func (m *MsgUndelegateResponse) GetAmount() types1.Coin {
   463  	if m != nil {
   464  		return m.Amount
   465  	}
   466  	return types1.Coin{}
   467  }
   468  
   469  // MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
   470  //
   471  // Since: cosmos-sdk 0.46
   472  type MsgCancelUnbondingDelegation struct {
   473  	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
   474  	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   475  	// amount is always less than or equal to unbonding delegation entry balance
   476  	Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
   477  	// creation_height is the height which the unbonding took place.
   478  	CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
   479  }
   480  
   481  func (m *MsgCancelUnbondingDelegation) Reset()         { *m = MsgCancelUnbondingDelegation{} }
   482  func (m *MsgCancelUnbondingDelegation) String() string { return proto.CompactTextString(m) }
   483  func (*MsgCancelUnbondingDelegation) ProtoMessage()    {}
   484  func (*MsgCancelUnbondingDelegation) Descriptor() ([]byte, []int) {
   485  	return fileDescriptor_0926ef28816b35ab, []int{10}
   486  }
   487  func (m *MsgCancelUnbondingDelegation) XXX_Unmarshal(b []byte) error {
   488  	return m.Unmarshal(b)
   489  }
   490  func (m *MsgCancelUnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   491  	if deterministic {
   492  		return xxx_messageInfo_MsgCancelUnbondingDelegation.Marshal(b, m, deterministic)
   493  	} else {
   494  		b = b[:cap(b)]
   495  		n, err := m.MarshalToSizedBuffer(b)
   496  		if err != nil {
   497  			return nil, err
   498  		}
   499  		return b[:n], nil
   500  	}
   501  }
   502  func (m *MsgCancelUnbondingDelegation) XXX_Merge(src proto.Message) {
   503  	xxx_messageInfo_MsgCancelUnbondingDelegation.Merge(m, src)
   504  }
   505  func (m *MsgCancelUnbondingDelegation) XXX_Size() int {
   506  	return m.Size()
   507  }
   508  func (m *MsgCancelUnbondingDelegation) XXX_DiscardUnknown() {
   509  	xxx_messageInfo_MsgCancelUnbondingDelegation.DiscardUnknown(m)
   510  }
   511  
   512  var xxx_messageInfo_MsgCancelUnbondingDelegation proto.InternalMessageInfo
   513  
   514  // MsgCancelUnbondingDelegationResponse
   515  //
   516  // Since: cosmos-sdk 0.46
   517  type MsgCancelUnbondingDelegationResponse struct {
   518  }
   519  
   520  func (m *MsgCancelUnbondingDelegationResponse) Reset()         { *m = MsgCancelUnbondingDelegationResponse{} }
   521  func (m *MsgCancelUnbondingDelegationResponse) String() string { return proto.CompactTextString(m) }
   522  func (*MsgCancelUnbondingDelegationResponse) ProtoMessage()    {}
   523  func (*MsgCancelUnbondingDelegationResponse) Descriptor() ([]byte, []int) {
   524  	return fileDescriptor_0926ef28816b35ab, []int{11}
   525  }
   526  func (m *MsgCancelUnbondingDelegationResponse) XXX_Unmarshal(b []byte) error {
   527  	return m.Unmarshal(b)
   528  }
   529  func (m *MsgCancelUnbondingDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   530  	if deterministic {
   531  		return xxx_messageInfo_MsgCancelUnbondingDelegationResponse.Marshal(b, m, deterministic)
   532  	} else {
   533  		b = b[:cap(b)]
   534  		n, err := m.MarshalToSizedBuffer(b)
   535  		if err != nil {
   536  			return nil, err
   537  		}
   538  		return b[:n], nil
   539  	}
   540  }
   541  func (m *MsgCancelUnbondingDelegationResponse) XXX_Merge(src proto.Message) {
   542  	xxx_messageInfo_MsgCancelUnbondingDelegationResponse.Merge(m, src)
   543  }
   544  func (m *MsgCancelUnbondingDelegationResponse) XXX_Size() int {
   545  	return m.Size()
   546  }
   547  func (m *MsgCancelUnbondingDelegationResponse) XXX_DiscardUnknown() {
   548  	xxx_messageInfo_MsgCancelUnbondingDelegationResponse.DiscardUnknown(m)
   549  }
   550  
   551  var xxx_messageInfo_MsgCancelUnbondingDelegationResponse proto.InternalMessageInfo
   552  
   553  // MsgUpdateParams is the Msg/UpdateParams request type.
   554  //
   555  // Since: cosmos-sdk 0.47
   556  type MsgUpdateParams struct {
   557  	// authority is the address that controls the module (defaults to x/gov unless overwritten).
   558  	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
   559  	// params defines the x/staking parameters to update.
   560  	//
   561  	// NOTE: All parameters must be supplied.
   562  	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
   563  }
   564  
   565  func (m *MsgUpdateParams) Reset()         { *m = MsgUpdateParams{} }
   566  func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
   567  func (*MsgUpdateParams) ProtoMessage()    {}
   568  func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
   569  	return fileDescriptor_0926ef28816b35ab, []int{12}
   570  }
   571  func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
   572  	return m.Unmarshal(b)
   573  }
   574  func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   575  	if deterministic {
   576  		return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
   577  	} else {
   578  		b = b[:cap(b)]
   579  		n, err := m.MarshalToSizedBuffer(b)
   580  		if err != nil {
   581  			return nil, err
   582  		}
   583  		return b[:n], nil
   584  	}
   585  }
   586  func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
   587  	xxx_messageInfo_MsgUpdateParams.Merge(m, src)
   588  }
   589  func (m *MsgUpdateParams) XXX_Size() int {
   590  	return m.Size()
   591  }
   592  func (m *MsgUpdateParams) XXX_DiscardUnknown() {
   593  	xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
   594  }
   595  
   596  var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
   597  
   598  func (m *MsgUpdateParams) GetAuthority() string {
   599  	if m != nil {
   600  		return m.Authority
   601  	}
   602  	return ""
   603  }
   604  
   605  func (m *MsgUpdateParams) GetParams() Params {
   606  	if m != nil {
   607  		return m.Params
   608  	}
   609  	return Params{}
   610  }
   611  
   612  // MsgUpdateParamsResponse defines the response structure for executing a
   613  // MsgUpdateParams message.
   614  //
   615  // Since: cosmos-sdk 0.47
   616  type MsgUpdateParamsResponse struct {
   617  }
   618  
   619  func (m *MsgUpdateParamsResponse) Reset()         { *m = MsgUpdateParamsResponse{} }
   620  func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
   621  func (*MsgUpdateParamsResponse) ProtoMessage()    {}
   622  func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
   623  	return fileDescriptor_0926ef28816b35ab, []int{13}
   624  }
   625  func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
   626  	return m.Unmarshal(b)
   627  }
   628  func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   629  	if deterministic {
   630  		return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
   631  	} else {
   632  		b = b[:cap(b)]
   633  		n, err := m.MarshalToSizedBuffer(b)
   634  		if err != nil {
   635  			return nil, err
   636  		}
   637  		return b[:n], nil
   638  	}
   639  }
   640  func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
   641  	xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
   642  }
   643  func (m *MsgUpdateParamsResponse) XXX_Size() int {
   644  	return m.Size()
   645  }
   646  func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
   647  	xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
   648  }
   649  
   650  var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
   651  
   652  func init() {
   653  	proto.RegisterType((*MsgCreateValidator)(nil), "cosmos.staking.v1beta1.MsgCreateValidator")
   654  	proto.RegisterType((*MsgCreateValidatorResponse)(nil), "cosmos.staking.v1beta1.MsgCreateValidatorResponse")
   655  	proto.RegisterType((*MsgEditValidator)(nil), "cosmos.staking.v1beta1.MsgEditValidator")
   656  	proto.RegisterType((*MsgEditValidatorResponse)(nil), "cosmos.staking.v1beta1.MsgEditValidatorResponse")
   657  	proto.RegisterType((*MsgDelegate)(nil), "cosmos.staking.v1beta1.MsgDelegate")
   658  	proto.RegisterType((*MsgDelegateResponse)(nil), "cosmos.staking.v1beta1.MsgDelegateResponse")
   659  	proto.RegisterType((*MsgBeginRedelegate)(nil), "cosmos.staking.v1beta1.MsgBeginRedelegate")
   660  	proto.RegisterType((*MsgBeginRedelegateResponse)(nil), "cosmos.staking.v1beta1.MsgBeginRedelegateResponse")
   661  	proto.RegisterType((*MsgUndelegate)(nil), "cosmos.staking.v1beta1.MsgUndelegate")
   662  	proto.RegisterType((*MsgUndelegateResponse)(nil), "cosmos.staking.v1beta1.MsgUndelegateResponse")
   663  	proto.RegisterType((*MsgCancelUnbondingDelegation)(nil), "cosmos.staking.v1beta1.MsgCancelUnbondingDelegation")
   664  	proto.RegisterType((*MsgCancelUnbondingDelegationResponse)(nil), "cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse")
   665  	proto.RegisterType((*MsgUpdateParams)(nil), "cosmos.staking.v1beta1.MsgUpdateParams")
   666  	proto.RegisterType((*MsgUpdateParamsResponse)(nil), "cosmos.staking.v1beta1.MsgUpdateParamsResponse")
   667  }
   668  
   669  func init() { proto.RegisterFile("cosmos/staking/v1beta1/tx.proto", fileDescriptor_0926ef28816b35ab) }
   670  
   671  var fileDescriptor_0926ef28816b35ab = []byte{
   672  	// 1142 bytes of a gzipped FileDescriptorProto
   673  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0x4f, 0x6f, 0xdc, 0x44,
   674  	0x14, 0x5f, 0xef, 0x36, 0x0b, 0x99, 0x90, 0x7f, 0x4e, 0xd2, 0x6e, 0xdc, 0xb2, 0x5b, 0xdc, 0x40,
   675  	0xa2, 0xc0, 0xda, 0x6d, 0x40, 0x20, 0x96, 0x0a, 0x35, 0xdb, 0xb4, 0x50, 0x60, 0x51, 0xe4, 0x90,
   676  	0x22, 0x21, 0xa4, 0x65, 0xd6, 0x9e, 0x78, 0xad, 0x5d, 0x7b, 0x5c, 0xcf, 0x6c, 0xd4, 0xbd, 0x21,
   677  	0x4e, 0xc0, 0x85, 0x7e, 0x81, 0x4a, 0xe5, 0x80, 0x04, 0xb7, 0x1c, 0xf2, 0x15, 0x90, 0x2a, 0x4e,
   678  	0x55, 0x4e, 0xa8, 0x87, 0x80, 0x92, 0x43, 0xfa, 0x1d, 0xb8, 0x20, 0xdb, 0x63, 0xaf, 0xed, 0xfd,
   679  	0x9b, 0x40, 0x2f, 0xbd, 0x24, 0xce, 0xcc, 0xef, 0xfd, 0xe6, 0xbd, 0xf7, 0x7b, 0x6f, 0xe6, 0x05,
   680  	0x14, 0x54, 0x4c, 0x4c, 0x4c, 0x64, 0x42, 0x61, 0xc3, 0xb0, 0x74, 0x79, 0xf7, 0x5a, 0x0d, 0x51,
   681  	0x78, 0x4d, 0xa6, 0xf7, 0x25, 0xdb, 0xc1, 0x14, 0xf3, 0xe7, 0x7d, 0x80, 0xc4, 0x00, 0x12, 0x03,
   682  	0x08, 0x8b, 0x3a, 0xc6, 0x7a, 0x13, 0xc9, 0x1e, 0xaa, 0xd6, 0xda, 0x91, 0xa1, 0xd5, 0xf6, 0x4d,
   683  	0x84, 0x42, 0x72, 0x8b, 0x1a, 0x26, 0x22, 0x14, 0x9a, 0x36, 0x03, 0xcc, 0xeb, 0x58, 0xc7, 0xde,
   684  	0xa7, 0xec, 0x7e, 0xb1, 0xd5, 0x45, 0xff, 0xa4, 0xaa, 0xbf, 0xc1, 0x8e, 0xf5, 0xb7, 0xf2, 0xcc,
   685  	0xcb, 0x1a, 0x24, 0x28, 0x74, 0x51, 0xc5, 0x86, 0xc5, 0xf6, 0x97, 0xfa, 0x44, 0x11, 0x38, 0xed,
   686  	0xa3, 0x2e, 0x30, 0x94, 0x49, 0x5c, 0x84, 0xfb, 0x8b, 0x6d, 0xcc, 0x42, 0xd3, 0xb0, 0xb0, 0xec,
   687  	0xfd, 0xf4, 0x97, 0xc4, 0x7f, 0xce, 0x01, 0xbe, 0x42, 0xf4, 0x9b, 0x0e, 0x82, 0x14, 0xdd, 0x85,
   688  	0x4d, 0x43, 0x83, 0x14, 0x3b, 0xfc, 0x26, 0x98, 0xd0, 0x10, 0x51, 0x1d, 0xc3, 0xa6, 0x06, 0xb6,
   689  	0x72, 0xdc, 0x65, 0x6e, 0x65, 0x62, 0xed, 0x8a, 0xd4, 0x3b, 0x47, 0xd2, 0x46, 0x07, 0x5a, 0x1e,
   690  	0x7f, 0x7c, 0x58, 0x48, 0xfd, 0x7a, 0xb2, 0xb7, 0xca, 0x29, 0x51, 0x0a, 0x5e, 0x01, 0x40, 0xc5,
   691  	0xa6, 0x69, 0x10, 0xe2, 0x12, 0xa6, 0x3d, 0xc2, 0xe5, 0x7e, 0x84, 0x37, 0x43, 0xa4, 0x02, 0x29,
   692  	0x22, 0x51, 0xd2, 0x08, 0x0b, 0xff, 0x0d, 0x98, 0x33, 0x0d, 0xab, 0x4a, 0x50, 0x73, 0xa7, 0xaa,
   693  	0xa1, 0x26, 0xd2, 0xa1, 0xe7, 0x6d, 0xe6, 0x32, 0xb7, 0x32, 0x5e, 0xbe, 0xea, 0xda, 0x3c, 0x3d,
   694  	0x2c, 0x2c, 0xf8, 0x67, 0x10, 0xad, 0x21, 0x19, 0x58, 0x36, 0x21, 0xad, 0x4b, 0x77, 0x2c, 0x7a,
   695  	0xb0, 0x5f, 0x04, 0xec, 0xf0, 0x3b, 0x16, 0xf5, 0xa9, 0x67, 0x4d, 0xc3, 0xda, 0x42, 0xcd, 0x9d,
   696  	0x8d, 0x90, 0x8a, 0xff, 0x08, 0xcc, 0x32, 0x62, 0xec, 0x54, 0xa1, 0xa6, 0x39, 0x88, 0x90, 0xdc,
   697  	0x39, 0x8f, 0x5f, 0x38, 0xd8, 0x2f, 0xce, 0x33, 0x8a, 0x75, 0x7f, 0x67, 0x8b, 0x3a, 0x86, 0xa5,
   698  	0xe7, 0x38, 0x65, 0x26, 0x34, 0x62, 0x3b, 0xfc, 0xe7, 0x60, 0x76, 0x37, 0xc8, 0x6e, 0x48, 0x34,
   699  	0xe6, 0x11, 0xbd, 0x76, 0xb0, 0x5f, 0x7c, 0x95, 0x11, 0x85, 0x0a, 0xc4, 0x18, 0x95, 0x99, 0xdd,
   700  	0xc4, 0x3a, 0x7f, 0x1b, 0x64, 0xed, 0x56, 0xad, 0x81, 0xda, 0xb9, 0xac, 0x97, 0xca, 0x79, 0xc9,
   701  	0x2f, 0x46, 0x29, 0x28, 0x46, 0x69, 0xdd, 0x6a, 0x97, 0x73, 0x7f, 0x74, 0x7c, 0x54, 0x9d, 0xb6,
   702  	0x4d, 0xb1, 0xb4, 0xd9, 0xaa, 0x7d, 0x8a, 0xda, 0x0a, 0xb3, 0xe6, 0x4b, 0x60, 0x6c, 0x17, 0x36,
   703  	0x5b, 0x28, 0xf7, 0x92, 0x47, 0xb3, 0x18, 0x28, 0xe2, 0x56, 0x60, 0x44, 0x0e, 0x23, 0x26, 0xac,
   704  	0x6f, 0x52, 0xba, 0xf1, 0xfd, 0xa3, 0x42, 0xea, 0xd9, 0xa3, 0x42, 0xea, 0xbb, 0x93, 0xbd, 0xd5,
   705  	0xee, 0xf0, 0x7e, 0x3c, 0xd9, 0x5b, 0x65, 0x71, 0x15, 0x89, 0xd6, 0x90, 0xbb, 0xcb, 0x4c, 0xbc,
   706  	0x04, 0x84, 0xee, 0x55, 0x05, 0x11, 0x1b, 0x5b, 0x04, 0x89, 0xbf, 0x64, 0xc0, 0x4c, 0x85, 0xe8,
   707  	0xb7, 0x34, 0x83, 0x3e, 0xcf, 0xca, 0xec, 0x29, 0x4d, 0xfa, 0xec, 0xd2, 0xdc, 0x05, 0xd3, 0x9d,
   708  	0x1a, 0xad, 0x3a, 0x90, 0x22, 0x56, 0x91, 0xc5, 0xa7, 0x87, 0x85, 0x8b, 0xdd, 0xd5, 0xf8, 0x19,
   709  	0xd2, 0xa1, 0xda, 0xde, 0x40, 0x6a, 0xa4, 0x26, 0x37, 0x90, 0xaa, 0x4c, 0xa9, 0xb1, 0x2e, 0xe0,
   710  	0xbf, 0xec, 0x5d, 0xed, 0x7e, 0x35, 0x2e, 0x8f, 0x58, 0xe9, 0x3d, 0x8a, 0xbc, 0xf4, 0xe1, 0x70,
   711  	0x1d, 0x2f, 0xc6, 0x75, 0x8c, 0x49, 0x22, 0x0a, 0x20, 0x97, 0x5c, 0x0b, 0x35, 0x7c, 0x98, 0x06,
   712  	0x13, 0x15, 0xa2, 0xb3, 0xd3, 0x10, 0x7f, 0xab, 0x57, 0x43, 0x71, 0x5e, 0x08, 0xb9, 0x7e, 0x0d,
   713  	0x35, 0x6a, 0x3b, 0xfd, 0x07, 0xcd, 0xae, 0x83, 0x2c, 0x34, 0x71, 0xcb, 0xa2, 0x9e, 0x54, 0xa3,
   714  	0xf6, 0x01, 0xb3, 0x29, 0xbd, 0x1f, 0x4b, 0x60, 0x57, 0x7c, 0x6e, 0x02, 0xcf, 0xc7, 0x13, 0x18,
   715  	0xe4, 0x43, 0x5c, 0x00, 0x73, 0x91, 0x3f, 0xc3, 0xb4, 0xfd, 0x90, 0xf1, 0xae, 0xe5, 0x32, 0xd2,
   716  	0x0d, 0x4b, 0x41, 0xda, 0xff, 0x9c, 0xbd, 0x6d, 0xb0, 0xd0, 0xc9, 0x1e, 0x71, 0xd4, 0xd3, 0x67,
   717  	0x70, 0x2e, 0xb4, 0xdf, 0x72, 0xd4, 0x9e, 0xb4, 0x1a, 0xa1, 0x21, 0x6d, 0xe6, 0xf4, 0xb4, 0x1b,
   718  	0x84, 0x76, 0x6b, 0x73, 0xee, 0x0c, 0xda, 0xdc, 0x18, 0xae, 0x4d, 0xe2, 0x92, 0x4a, 0x24, 0x5d,
   719  	0xb4, 0xbd, 0x4b, 0x2a, 0xb1, 0x1a, 0x28, 0xc5, 0x2b, 0x5e, 0xb7, 0xdb, 0x4d, 0xe4, 0xb6, 0x52,
   720  	0xd5, 0x9d, 0x00, 0xd8, 0x9d, 0x24, 0x74, 0xdd, 0xc8, 0x5f, 0x04, 0xe3, 0x41, 0x79, 0xd2, 0xf5,
   721  	0xf3, 0xc1, 0x5f, 0x05, 0xce, 0xf7, 0x75, 0xaa, 0xc3, 0xe0, 0x62, 0xc4, 0x9f, 0xd3, 0x60, 0xb2,
   722  	0x42, 0xf4, 0x6d, 0x4b, 0x7b, 0xa1, 0xdb, 0xe6, 0x83, 0xe1, 0xd2, 0xe4, 0xe2, 0xd2, 0x74, 0x32,
   723  	0x22, 0xfe, 0xc6, 0x81, 0x85, 0xd8, 0xca, 0xf3, 0x54, 0x24, 0x12, 0x68, 0xfa, 0xf4, 0x81, 0x8a,
   724  	0xcf, 0xd2, 0xe0, 0x92, 0xfb, 0xce, 0x41, 0x4b, 0x45, 0xcd, 0x6d, 0xab, 0x86, 0x2d, 0xcd, 0xb0,
   725  	0xf4, 0xc8, 0x98, 0xf1, 0x22, 0xca, 0xcb, 0x2f, 0x83, 0x69, 0xd5, 0x7d, 0xd9, 0x5d, 0x15, 0xea,
   726  	0xc8, 0xd0, 0xeb, 0x7e, 0x03, 0x67, 0x94, 0xa9, 0x60, 0xf9, 0x63, 0x6f, 0xb5, 0xf4, 0xc9, 0xf0,
   727  	0x3a, 0x58, 0x4e, 0xcc, 0x11, 0xfd, 0x32, 0x29, 0xbe, 0x01, 0x96, 0x06, 0xed, 0x87, 0x17, 0xec,
   728  	0xef, 0x1c, 0x98, 0x76, 0xcb, 0xc7, 0xd6, 0x20, 0x45, 0x9b, 0xd0, 0x81, 0x26, 0xe1, 0xdf, 0x05,
   729  	0xe3, 0xb0, 0x45, 0xeb, 0xd8, 0x31, 0x68, 0x7b, 0x68, 0xf6, 0x3b, 0x50, 0x7e, 0x1d, 0x64, 0x6d,
   730  	0x8f, 0x81, 0x15, 0x47, 0xbe, 0xdf, 0x34, 0xe2, 0x9f, 0x13, 0xcb, 0x95, 0x6f, 0x58, 0x7a, 0xcf,
   731  	0x0d, 0xbd, 0x43, 0xe9, 0x86, 0xbc, 0x14, 0x09, 0xf9, 0x7e, 0x38, 0xf1, 0x27, 0x7c, 0x16, 0x17,
   732  	0xc1, 0x85, 0xc4, 0x52, 0x10, 0xe2, 0xda, 0xc3, 0x2c, 0xc8, 0x54, 0x88, 0xce, 0xdf, 0x03, 0xd3,
   733  	0xc9, 0xf1, 0x7e, 0xb5, 0x9f, 0x87, 0xdd, 0xd3, 0x98, 0xb0, 0x36, 0x3a, 0x36, 0x6c, 0xc1, 0x06,
   734  	0x98, 0x8c, 0x4f, 0x6d, 0x2b, 0x03, 0x48, 0x62, 0x48, 0xe1, 0xea, 0xa8, 0xc8, 0xf0, 0xb0, 0xaf,
   735  	0xc1, 0xcb, 0xe1, 0x78, 0x71, 0x65, 0x80, 0x75, 0x00, 0x12, 0xde, 0x1c, 0x01, 0x14, 0xb2, 0xdf,
   736  	0x03, 0xd3, 0xc9, 0x57, 0x78, 0x50, 0xf6, 0x12, 0xd8, 0x81, 0xd9, 0xeb, 0xf7, 0xa4, 0xd4, 0x00,
   737  	0x88, 0x5c, 0xfd, 0xaf, 0x0f, 0x60, 0xe8, 0xc0, 0x84, 0xe2, 0x48, 0xb0, 0xf0, 0x8c, 0x9f, 0x38,
   738  	0xb0, 0xd8, 0xff, 0x3e, 0x7a, 0x67, 0x90, 0xe6, 0xfd, 0xac, 0x84, 0xeb, 0x67, 0xb1, 0x0a, 0x3d,
   739  	0xaa, 0x83, 0x57, 0x62, 0xdd, 0xb8, 0x3c, 0x28, 0xa0, 0x08, 0x50, 0x90, 0x47, 0x04, 0x06, 0x27,
   740  	0x09, 0x63, 0xdf, 0xba, 0xbd, 0x57, 0xbe, 0xfd, 0xf8, 0x28, 0xcf, 0x3d, 0x39, 0xca, 0x73, 0x7f,
   741  	0x1f, 0xe5, 0xb9, 0x07, 0xc7, 0xf9, 0xd4, 0x93, 0xe3, 0x7c, 0xea, 0xcf, 0xe3, 0x7c, 0xea, 0xab,
   742  	0xb7, 0x74, 0x83, 0xd6, 0x5b, 0x35, 0x49, 0xc5, 0x26, 0xfb, 0xff, 0x5c, 0xee, 0xd9, 0x8c, 0xb4,
   743  	0x6d, 0x23, 0x52, 0xcb, 0x7a, 0xcf, 0xc9, 0xdb, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x91,
   744  	0x57, 0x78, 0x63, 0x10, 0x00, 0x00,
   745  }
   746  
   747  // Reference imports to suppress errors if they are not otherwise used.
   748  var _ context.Context
   749  var _ grpc.ClientConn
   750  
   751  // This is a compile-time assertion to ensure that this generated file
   752  // is compatible with the grpc package it is being compiled against.
   753  const _ = grpc.SupportPackageIsVersion4
   754  
   755  // MsgClient is the client API for Msg service.
   756  //
   757  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   758  type MsgClient interface {
   759  	// CreateValidator defines a method for creating a new validator.
   760  	CreateValidator(ctx context.Context, in *MsgCreateValidator, opts ...grpc.CallOption) (*MsgCreateValidatorResponse, error)
   761  	// EditValidator defines a method for editing an existing validator.
   762  	EditValidator(ctx context.Context, in *MsgEditValidator, opts ...grpc.CallOption) (*MsgEditValidatorResponse, error)
   763  	// Delegate defines a method for performing a delegation of coins
   764  	// from a delegator to a validator.
   765  	Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error)
   766  	// BeginRedelegate defines a method for performing a redelegation
   767  	// of coins from a delegator and source validator to a destination validator.
   768  	BeginRedelegate(ctx context.Context, in *MsgBeginRedelegate, opts ...grpc.CallOption) (*MsgBeginRedelegateResponse, error)
   769  	// Undelegate defines a method for performing an undelegation from a
   770  	// delegate and a validator.
   771  	Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
   772  	// CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
   773  	// and delegate back to previous validator.
   774  	//
   775  	// Since: cosmos-sdk 0.46
   776  	CancelUnbondingDelegation(ctx context.Context, in *MsgCancelUnbondingDelegation, opts ...grpc.CallOption) (*MsgCancelUnbondingDelegationResponse, error)
   777  	// UpdateParams defines an operation for updating the x/staking module
   778  	// parameters.
   779  	// Since: cosmos-sdk 0.47
   780  	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
   781  }
   782  
   783  type msgClient struct {
   784  	cc grpc1.ClientConn
   785  }
   786  
   787  func NewMsgClient(cc grpc1.ClientConn) MsgClient {
   788  	return &msgClient{cc}
   789  }
   790  
   791  func (c *msgClient) CreateValidator(ctx context.Context, in *MsgCreateValidator, opts ...grpc.CallOption) (*MsgCreateValidatorResponse, error) {
   792  	out := new(MsgCreateValidatorResponse)
   793  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/CreateValidator", in, out, opts...)
   794  	if err != nil {
   795  		return nil, err
   796  	}
   797  	return out, nil
   798  }
   799  
   800  func (c *msgClient) EditValidator(ctx context.Context, in *MsgEditValidator, opts ...grpc.CallOption) (*MsgEditValidatorResponse, error) {
   801  	out := new(MsgEditValidatorResponse)
   802  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/EditValidator", in, out, opts...)
   803  	if err != nil {
   804  		return nil, err
   805  	}
   806  	return out, nil
   807  }
   808  
   809  func (c *msgClient) Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error) {
   810  	out := new(MsgDelegateResponse)
   811  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/Delegate", in, out, opts...)
   812  	if err != nil {
   813  		return nil, err
   814  	}
   815  	return out, nil
   816  }
   817  
   818  func (c *msgClient) BeginRedelegate(ctx context.Context, in *MsgBeginRedelegate, opts ...grpc.CallOption) (*MsgBeginRedelegateResponse, error) {
   819  	out := new(MsgBeginRedelegateResponse)
   820  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/BeginRedelegate", in, out, opts...)
   821  	if err != nil {
   822  		return nil, err
   823  	}
   824  	return out, nil
   825  }
   826  
   827  func (c *msgClient) Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error) {
   828  	out := new(MsgUndelegateResponse)
   829  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/Undelegate", in, out, opts...)
   830  	if err != nil {
   831  		return nil, err
   832  	}
   833  	return out, nil
   834  }
   835  
   836  func (c *msgClient) CancelUnbondingDelegation(ctx context.Context, in *MsgCancelUnbondingDelegation, opts ...grpc.CallOption) (*MsgCancelUnbondingDelegationResponse, error) {
   837  	out := new(MsgCancelUnbondingDelegationResponse)
   838  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation", in, out, opts...)
   839  	if err != nil {
   840  		return nil, err
   841  	}
   842  	return out, nil
   843  }
   844  
   845  func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
   846  	out := new(MsgUpdateParamsResponse)
   847  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/UpdateParams", in, out, opts...)
   848  	if err != nil {
   849  		return nil, err
   850  	}
   851  	return out, nil
   852  }
   853  
   854  // MsgServer is the server API for Msg service.
   855  type MsgServer interface {
   856  	// CreateValidator defines a method for creating a new validator.
   857  	CreateValidator(context.Context, *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
   858  	// EditValidator defines a method for editing an existing validator.
   859  	EditValidator(context.Context, *MsgEditValidator) (*MsgEditValidatorResponse, error)
   860  	// Delegate defines a method for performing a delegation of coins
   861  	// from a delegator to a validator.
   862  	Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error)
   863  	// BeginRedelegate defines a method for performing a redelegation
   864  	// of coins from a delegator and source validator to a destination validator.
   865  	BeginRedelegate(context.Context, *MsgBeginRedelegate) (*MsgBeginRedelegateResponse, error)
   866  	// Undelegate defines a method for performing an undelegation from a
   867  	// delegate and a validator.
   868  	Undelegate(context.Context, *MsgUndelegate) (*MsgUndelegateResponse, error)
   869  	// CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
   870  	// and delegate back to previous validator.
   871  	//
   872  	// Since: cosmos-sdk 0.46
   873  	CancelUnbondingDelegation(context.Context, *MsgCancelUnbondingDelegation) (*MsgCancelUnbondingDelegationResponse, error)
   874  	// UpdateParams defines an operation for updating the x/staking module
   875  	// parameters.
   876  	// Since: cosmos-sdk 0.47
   877  	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
   878  }
   879  
   880  // UnimplementedMsgServer can be embedded to have forward compatible implementations.
   881  type UnimplementedMsgServer struct {
   882  }
   883  
   884  func (*UnimplementedMsgServer) CreateValidator(ctx context.Context, req *MsgCreateValidator) (*MsgCreateValidatorResponse, error) {
   885  	return nil, status.Errorf(codes.Unimplemented, "method CreateValidator not implemented")
   886  }
   887  func (*UnimplementedMsgServer) EditValidator(ctx context.Context, req *MsgEditValidator) (*MsgEditValidatorResponse, error) {
   888  	return nil, status.Errorf(codes.Unimplemented, "method EditValidator not implemented")
   889  }
   890  func (*UnimplementedMsgServer) Delegate(ctx context.Context, req *MsgDelegate) (*MsgDelegateResponse, error) {
   891  	return nil, status.Errorf(codes.Unimplemented, "method Delegate not implemented")
   892  }
   893  func (*UnimplementedMsgServer) BeginRedelegate(ctx context.Context, req *MsgBeginRedelegate) (*MsgBeginRedelegateResponse, error) {
   894  	return nil, status.Errorf(codes.Unimplemented, "method BeginRedelegate not implemented")
   895  }
   896  func (*UnimplementedMsgServer) Undelegate(ctx context.Context, req *MsgUndelegate) (*MsgUndelegateResponse, error) {
   897  	return nil, status.Errorf(codes.Unimplemented, "method Undelegate not implemented")
   898  }
   899  func (*UnimplementedMsgServer) CancelUnbondingDelegation(ctx context.Context, req *MsgCancelUnbondingDelegation) (*MsgCancelUnbondingDelegationResponse, error) {
   900  	return nil, status.Errorf(codes.Unimplemented, "method CancelUnbondingDelegation not implemented")
   901  }
   902  func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
   903  	return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
   904  }
   905  
   906  func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
   907  	s.RegisterService(&_Msg_serviceDesc, srv)
   908  }
   909  
   910  func _Msg_CreateValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   911  	in := new(MsgCreateValidator)
   912  	if err := dec(in); err != nil {
   913  		return nil, err
   914  	}
   915  	if interceptor == nil {
   916  		return srv.(MsgServer).CreateValidator(ctx, in)
   917  	}
   918  	info := &grpc.UnaryServerInfo{
   919  		Server:     srv,
   920  		FullMethod: "/cosmos.staking.v1beta1.Msg/CreateValidator",
   921  	}
   922  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   923  		return srv.(MsgServer).CreateValidator(ctx, req.(*MsgCreateValidator))
   924  	}
   925  	return interceptor(ctx, in, info, handler)
   926  }
   927  
   928  func _Msg_EditValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   929  	in := new(MsgEditValidator)
   930  	if err := dec(in); err != nil {
   931  		return nil, err
   932  	}
   933  	if interceptor == nil {
   934  		return srv.(MsgServer).EditValidator(ctx, in)
   935  	}
   936  	info := &grpc.UnaryServerInfo{
   937  		Server:     srv,
   938  		FullMethod: "/cosmos.staking.v1beta1.Msg/EditValidator",
   939  	}
   940  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   941  		return srv.(MsgServer).EditValidator(ctx, req.(*MsgEditValidator))
   942  	}
   943  	return interceptor(ctx, in, info, handler)
   944  }
   945  
   946  func _Msg_Delegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   947  	in := new(MsgDelegate)
   948  	if err := dec(in); err != nil {
   949  		return nil, err
   950  	}
   951  	if interceptor == nil {
   952  		return srv.(MsgServer).Delegate(ctx, in)
   953  	}
   954  	info := &grpc.UnaryServerInfo{
   955  		Server:     srv,
   956  		FullMethod: "/cosmos.staking.v1beta1.Msg/Delegate",
   957  	}
   958  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   959  		return srv.(MsgServer).Delegate(ctx, req.(*MsgDelegate))
   960  	}
   961  	return interceptor(ctx, in, info, handler)
   962  }
   963  
   964  func _Msg_BeginRedelegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   965  	in := new(MsgBeginRedelegate)
   966  	if err := dec(in); err != nil {
   967  		return nil, err
   968  	}
   969  	if interceptor == nil {
   970  		return srv.(MsgServer).BeginRedelegate(ctx, in)
   971  	}
   972  	info := &grpc.UnaryServerInfo{
   973  		Server:     srv,
   974  		FullMethod: "/cosmos.staking.v1beta1.Msg/BeginRedelegate",
   975  	}
   976  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   977  		return srv.(MsgServer).BeginRedelegate(ctx, req.(*MsgBeginRedelegate))
   978  	}
   979  	return interceptor(ctx, in, info, handler)
   980  }
   981  
   982  func _Msg_Undelegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   983  	in := new(MsgUndelegate)
   984  	if err := dec(in); err != nil {
   985  		return nil, err
   986  	}
   987  	if interceptor == nil {
   988  		return srv.(MsgServer).Undelegate(ctx, in)
   989  	}
   990  	info := &grpc.UnaryServerInfo{
   991  		Server:     srv,
   992  		FullMethod: "/cosmos.staking.v1beta1.Msg/Undelegate",
   993  	}
   994  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   995  		return srv.(MsgServer).Undelegate(ctx, req.(*MsgUndelegate))
   996  	}
   997  	return interceptor(ctx, in, info, handler)
   998  }
   999  
  1000  func _Msg_CancelUnbondingDelegation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1001  	in := new(MsgCancelUnbondingDelegation)
  1002  	if err := dec(in); err != nil {
  1003  		return nil, err
  1004  	}
  1005  	if interceptor == nil {
  1006  		return srv.(MsgServer).CancelUnbondingDelegation(ctx, in)
  1007  	}
  1008  	info := &grpc.UnaryServerInfo{
  1009  		Server:     srv,
  1010  		FullMethod: "/cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation",
  1011  	}
  1012  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1013  		return srv.(MsgServer).CancelUnbondingDelegation(ctx, req.(*MsgCancelUnbondingDelegation))
  1014  	}
  1015  	return interceptor(ctx, in, info, handler)
  1016  }
  1017  
  1018  func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1019  	in := new(MsgUpdateParams)
  1020  	if err := dec(in); err != nil {
  1021  		return nil, err
  1022  	}
  1023  	if interceptor == nil {
  1024  		return srv.(MsgServer).UpdateParams(ctx, in)
  1025  	}
  1026  	info := &grpc.UnaryServerInfo{
  1027  		Server:     srv,
  1028  		FullMethod: "/cosmos.staking.v1beta1.Msg/UpdateParams",
  1029  	}
  1030  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1031  		return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
  1032  	}
  1033  	return interceptor(ctx, in, info, handler)
  1034  }
  1035  
  1036  var _Msg_serviceDesc = grpc.ServiceDesc{
  1037  	ServiceName: "cosmos.staking.v1beta1.Msg",
  1038  	HandlerType: (*MsgServer)(nil),
  1039  	Methods: []grpc.MethodDesc{
  1040  		{
  1041  			MethodName: "CreateValidator",
  1042  			Handler:    _Msg_CreateValidator_Handler,
  1043  		},
  1044  		{
  1045  			MethodName: "EditValidator",
  1046  			Handler:    _Msg_EditValidator_Handler,
  1047  		},
  1048  		{
  1049  			MethodName: "Delegate",
  1050  			Handler:    _Msg_Delegate_Handler,
  1051  		},
  1052  		{
  1053  			MethodName: "BeginRedelegate",
  1054  			Handler:    _Msg_BeginRedelegate_Handler,
  1055  		},
  1056  		{
  1057  			MethodName: "Undelegate",
  1058  			Handler:    _Msg_Undelegate_Handler,
  1059  		},
  1060  		{
  1061  			MethodName: "CancelUnbondingDelegation",
  1062  			Handler:    _Msg_CancelUnbondingDelegation_Handler,
  1063  		},
  1064  		{
  1065  			MethodName: "UpdateParams",
  1066  			Handler:    _Msg_UpdateParams_Handler,
  1067  		},
  1068  	},
  1069  	Streams:  []grpc.StreamDesc{},
  1070  	Metadata: "cosmos/staking/v1beta1/tx.proto",
  1071  }
  1072  
  1073  func (m *MsgCreateValidator) Marshal() (dAtA []byte, err error) {
  1074  	size := m.Size()
  1075  	dAtA = make([]byte, size)
  1076  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1077  	if err != nil {
  1078  		return nil, err
  1079  	}
  1080  	return dAtA[:n], nil
  1081  }
  1082  
  1083  func (m *MsgCreateValidator) MarshalTo(dAtA []byte) (int, error) {
  1084  	size := m.Size()
  1085  	return m.MarshalToSizedBuffer(dAtA[:size])
  1086  }
  1087  
  1088  func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1089  	i := len(dAtA)
  1090  	_ = i
  1091  	var l int
  1092  	_ = l
  1093  	{
  1094  		size, err := m.Value.MarshalToSizedBuffer(dAtA[:i])
  1095  		if err != nil {
  1096  			return 0, err
  1097  		}
  1098  		i -= size
  1099  		i = encodeVarintTx(dAtA, i, uint64(size))
  1100  	}
  1101  	i--
  1102  	dAtA[i] = 0x3a
  1103  	if m.Pubkey != nil {
  1104  		{
  1105  			size, err := m.Pubkey.MarshalToSizedBuffer(dAtA[:i])
  1106  			if err != nil {
  1107  				return 0, err
  1108  			}
  1109  			i -= size
  1110  			i = encodeVarintTx(dAtA, i, uint64(size))
  1111  		}
  1112  		i--
  1113  		dAtA[i] = 0x32
  1114  	}
  1115  	if len(m.ValidatorAddress) > 0 {
  1116  		i -= len(m.ValidatorAddress)
  1117  		copy(dAtA[i:], m.ValidatorAddress)
  1118  		i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorAddress)))
  1119  		i--
  1120  		dAtA[i] = 0x2a
  1121  	}
  1122  	if len(m.DelegatorAddress) > 0 {
  1123  		i -= len(m.DelegatorAddress)
  1124  		copy(dAtA[i:], m.DelegatorAddress)
  1125  		i = encodeVarintTx(dAtA, i, uint64(len(m.DelegatorAddress)))
  1126  		i--
  1127  		dAtA[i] = 0x22
  1128  	}
  1129  	{
  1130  		size := m.MinSelfDelegation.Size()
  1131  		i -= size
  1132  		if _, err := m.MinSelfDelegation.MarshalTo(dAtA[i:]); err != nil {
  1133  			return 0, err
  1134  		}
  1135  		i = encodeVarintTx(dAtA, i, uint64(size))
  1136  	}
  1137  	i--
  1138  	dAtA[i] = 0x1a
  1139  	{
  1140  		size, err := m.Commission.MarshalToSizedBuffer(dAtA[:i])
  1141  		if err != nil {
  1142  			return 0, err
  1143  		}
  1144  		i -= size
  1145  		i = encodeVarintTx(dAtA, i, uint64(size))
  1146  	}
  1147  	i--
  1148  	dAtA[i] = 0x12
  1149  	{
  1150  		size, err := m.Description.MarshalToSizedBuffer(dAtA[:i])
  1151  		if err != nil {
  1152  			return 0, err
  1153  		}
  1154  		i -= size
  1155  		i = encodeVarintTx(dAtA, i, uint64(size))
  1156  	}
  1157  	i--
  1158  	dAtA[i] = 0xa
  1159  	return len(dAtA) - i, nil
  1160  }
  1161  
  1162  func (m *MsgCreateValidatorResponse) Marshal() (dAtA []byte, err error) {
  1163  	size := m.Size()
  1164  	dAtA = make([]byte, size)
  1165  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1166  	if err != nil {
  1167  		return nil, err
  1168  	}
  1169  	return dAtA[:n], nil
  1170  }
  1171  
  1172  func (m *MsgCreateValidatorResponse) MarshalTo(dAtA []byte) (int, error) {
  1173  	size := m.Size()
  1174  	return m.MarshalToSizedBuffer(dAtA[:size])
  1175  }
  1176  
  1177  func (m *MsgCreateValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1178  	i := len(dAtA)
  1179  	_ = i
  1180  	var l int
  1181  	_ = l
  1182  	return len(dAtA) - i, nil
  1183  }
  1184  
  1185  func (m *MsgEditValidator) Marshal() (dAtA []byte, err error) {
  1186  	size := m.Size()
  1187  	dAtA = make([]byte, size)
  1188  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1189  	if err != nil {
  1190  		return nil, err
  1191  	}
  1192  	return dAtA[:n], nil
  1193  }
  1194  
  1195  func (m *MsgEditValidator) MarshalTo(dAtA []byte) (int, error) {
  1196  	size := m.Size()
  1197  	return m.MarshalToSizedBuffer(dAtA[:size])
  1198  }
  1199  
  1200  func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1201  	i := len(dAtA)
  1202  	_ = i
  1203  	var l int
  1204  	_ = l
  1205  	if m.MinSelfDelegation != nil {
  1206  		{
  1207  			size := m.MinSelfDelegation.Size()
  1208  			i -= size
  1209  			if _, err := m.MinSelfDelegation.MarshalTo(dAtA[i:]); err != nil {
  1210  				return 0, err
  1211  			}
  1212  			i = encodeVarintTx(dAtA, i, uint64(size))
  1213  		}
  1214  		i--
  1215  		dAtA[i] = 0x22
  1216  	}
  1217  	if m.CommissionRate != nil {
  1218  		{
  1219  			size := m.CommissionRate.Size()
  1220  			i -= size
  1221  			if _, err := m.CommissionRate.MarshalTo(dAtA[i:]); err != nil {
  1222  				return 0, err
  1223  			}
  1224  			i = encodeVarintTx(dAtA, i, uint64(size))
  1225  		}
  1226  		i--
  1227  		dAtA[i] = 0x1a
  1228  	}
  1229  	if len(m.ValidatorAddress) > 0 {
  1230  		i -= len(m.ValidatorAddress)
  1231  		copy(dAtA[i:], m.ValidatorAddress)
  1232  		i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorAddress)))
  1233  		i--
  1234  		dAtA[i] = 0x12
  1235  	}
  1236  	{
  1237  		size, err := m.Description.MarshalToSizedBuffer(dAtA[:i])
  1238  		if err != nil {
  1239  			return 0, err
  1240  		}
  1241  		i -= size
  1242  		i = encodeVarintTx(dAtA, i, uint64(size))
  1243  	}
  1244  	i--
  1245  	dAtA[i] = 0xa
  1246  	return len(dAtA) - i, nil
  1247  }
  1248  
  1249  func (m *MsgEditValidatorResponse) Marshal() (dAtA []byte, err error) {
  1250  	size := m.Size()
  1251  	dAtA = make([]byte, size)
  1252  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1253  	if err != nil {
  1254  		return nil, err
  1255  	}
  1256  	return dAtA[:n], nil
  1257  }
  1258  
  1259  func (m *MsgEditValidatorResponse) MarshalTo(dAtA []byte) (int, error) {
  1260  	size := m.Size()
  1261  	return m.MarshalToSizedBuffer(dAtA[:size])
  1262  }
  1263  
  1264  func (m *MsgEditValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1265  	i := len(dAtA)
  1266  	_ = i
  1267  	var l int
  1268  	_ = l
  1269  	return len(dAtA) - i, nil
  1270  }
  1271  
  1272  func (m *MsgDelegate) Marshal() (dAtA []byte, err error) {
  1273  	size := m.Size()
  1274  	dAtA = make([]byte, size)
  1275  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1276  	if err != nil {
  1277  		return nil, err
  1278  	}
  1279  	return dAtA[:n], nil
  1280  }
  1281  
  1282  func (m *MsgDelegate) MarshalTo(dAtA []byte) (int, error) {
  1283  	size := m.Size()
  1284  	return m.MarshalToSizedBuffer(dAtA[:size])
  1285  }
  1286  
  1287  func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1288  	i := len(dAtA)
  1289  	_ = i
  1290  	var l int
  1291  	_ = l
  1292  	{
  1293  		size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i])
  1294  		if err != nil {
  1295  			return 0, err
  1296  		}
  1297  		i -= size
  1298  		i = encodeVarintTx(dAtA, i, uint64(size))
  1299  	}
  1300  	i--
  1301  	dAtA[i] = 0x1a
  1302  	if len(m.ValidatorAddress) > 0 {
  1303  		i -= len(m.ValidatorAddress)
  1304  		copy(dAtA[i:], m.ValidatorAddress)
  1305  		i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorAddress)))
  1306  		i--
  1307  		dAtA[i] = 0x12
  1308  	}
  1309  	if len(m.DelegatorAddress) > 0 {
  1310  		i -= len(m.DelegatorAddress)
  1311  		copy(dAtA[i:], m.DelegatorAddress)
  1312  		i = encodeVarintTx(dAtA, i, uint64(len(m.DelegatorAddress)))
  1313  		i--
  1314  		dAtA[i] = 0xa
  1315  	}
  1316  	return len(dAtA) - i, nil
  1317  }
  1318  
  1319  func (m *MsgDelegateResponse) Marshal() (dAtA []byte, err error) {
  1320  	size := m.Size()
  1321  	dAtA = make([]byte, size)
  1322  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1323  	if err != nil {
  1324  		return nil, err
  1325  	}
  1326  	return dAtA[:n], nil
  1327  }
  1328  
  1329  func (m *MsgDelegateResponse) MarshalTo(dAtA []byte) (int, error) {
  1330  	size := m.Size()
  1331  	return m.MarshalToSizedBuffer(dAtA[:size])
  1332  }
  1333  
  1334  func (m *MsgDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1335  	i := len(dAtA)
  1336  	_ = i
  1337  	var l int
  1338  	_ = l
  1339  	return len(dAtA) - i, nil
  1340  }
  1341  
  1342  func (m *MsgBeginRedelegate) Marshal() (dAtA []byte, err error) {
  1343  	size := m.Size()
  1344  	dAtA = make([]byte, size)
  1345  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1346  	if err != nil {
  1347  		return nil, err
  1348  	}
  1349  	return dAtA[:n], nil
  1350  }
  1351  
  1352  func (m *MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error) {
  1353  	size := m.Size()
  1354  	return m.MarshalToSizedBuffer(dAtA[:size])
  1355  }
  1356  
  1357  func (m *MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1358  	i := len(dAtA)
  1359  	_ = i
  1360  	var l int
  1361  	_ = l
  1362  	{
  1363  		size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i])
  1364  		if err != nil {
  1365  			return 0, err
  1366  		}
  1367  		i -= size
  1368  		i = encodeVarintTx(dAtA, i, uint64(size))
  1369  	}
  1370  	i--
  1371  	dAtA[i] = 0x22
  1372  	if len(m.ValidatorDstAddress) > 0 {
  1373  		i -= len(m.ValidatorDstAddress)
  1374  		copy(dAtA[i:], m.ValidatorDstAddress)
  1375  		i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorDstAddress)))
  1376  		i--
  1377  		dAtA[i] = 0x1a
  1378  	}
  1379  	if len(m.ValidatorSrcAddress) > 0 {
  1380  		i -= len(m.ValidatorSrcAddress)
  1381  		copy(dAtA[i:], m.ValidatorSrcAddress)
  1382  		i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorSrcAddress)))
  1383  		i--
  1384  		dAtA[i] = 0x12
  1385  	}
  1386  	if len(m.DelegatorAddress) > 0 {
  1387  		i -= len(m.DelegatorAddress)
  1388  		copy(dAtA[i:], m.DelegatorAddress)
  1389  		i = encodeVarintTx(dAtA, i, uint64(len(m.DelegatorAddress)))
  1390  		i--
  1391  		dAtA[i] = 0xa
  1392  	}
  1393  	return len(dAtA) - i, nil
  1394  }
  1395  
  1396  func (m *MsgBeginRedelegateResponse) 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 *MsgBeginRedelegateResponse) MarshalTo(dAtA []byte) (int, error) {
  1407  	size := m.Size()
  1408  	return m.MarshalToSizedBuffer(dAtA[:size])
  1409  }
  1410  
  1411  func (m *MsgBeginRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1412  	i := len(dAtA)
  1413  	_ = i
  1414  	var l int
  1415  	_ = l
  1416  	n8, err8 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime):])
  1417  	if err8 != nil {
  1418  		return 0, err8
  1419  	}
  1420  	i -= n8
  1421  	i = encodeVarintTx(dAtA, i, uint64(n8))
  1422  	i--
  1423  	dAtA[i] = 0xa
  1424  	return len(dAtA) - i, nil
  1425  }
  1426  
  1427  func (m *MsgUndelegate) Marshal() (dAtA []byte, err error) {
  1428  	size := m.Size()
  1429  	dAtA = make([]byte, size)
  1430  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1431  	if err != nil {
  1432  		return nil, err
  1433  	}
  1434  	return dAtA[:n], nil
  1435  }
  1436  
  1437  func (m *MsgUndelegate) MarshalTo(dAtA []byte) (int, error) {
  1438  	size := m.Size()
  1439  	return m.MarshalToSizedBuffer(dAtA[:size])
  1440  }
  1441  
  1442  func (m *MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1443  	i := len(dAtA)
  1444  	_ = i
  1445  	var l int
  1446  	_ = l
  1447  	{
  1448  		size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i])
  1449  		if err != nil {
  1450  			return 0, err
  1451  		}
  1452  		i -= size
  1453  		i = encodeVarintTx(dAtA, i, uint64(size))
  1454  	}
  1455  	i--
  1456  	dAtA[i] = 0x1a
  1457  	if len(m.ValidatorAddress) > 0 {
  1458  		i -= len(m.ValidatorAddress)
  1459  		copy(dAtA[i:], m.ValidatorAddress)
  1460  		i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorAddress)))
  1461  		i--
  1462  		dAtA[i] = 0x12
  1463  	}
  1464  	if len(m.DelegatorAddress) > 0 {
  1465  		i -= len(m.DelegatorAddress)
  1466  		copy(dAtA[i:], m.DelegatorAddress)
  1467  		i = encodeVarintTx(dAtA, i, uint64(len(m.DelegatorAddress)))
  1468  		i--
  1469  		dAtA[i] = 0xa
  1470  	}
  1471  	return len(dAtA) - i, nil
  1472  }
  1473  
  1474  func (m *MsgUndelegateResponse) Marshal() (dAtA []byte, err error) {
  1475  	size := m.Size()
  1476  	dAtA = make([]byte, size)
  1477  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1478  	if err != nil {
  1479  		return nil, err
  1480  	}
  1481  	return dAtA[:n], nil
  1482  }
  1483  
  1484  func (m *MsgUndelegateResponse) MarshalTo(dAtA []byte) (int, error) {
  1485  	size := m.Size()
  1486  	return m.MarshalToSizedBuffer(dAtA[:size])
  1487  }
  1488  
  1489  func (m *MsgUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1490  	i := len(dAtA)
  1491  	_ = i
  1492  	var l int
  1493  	_ = l
  1494  	{
  1495  		size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i])
  1496  		if err != nil {
  1497  			return 0, err
  1498  		}
  1499  		i -= size
  1500  		i = encodeVarintTx(dAtA, i, uint64(size))
  1501  	}
  1502  	i--
  1503  	dAtA[i] = 0x12
  1504  	n11, err11 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime):])
  1505  	if err11 != nil {
  1506  		return 0, err11
  1507  	}
  1508  	i -= n11
  1509  	i = encodeVarintTx(dAtA, i, uint64(n11))
  1510  	i--
  1511  	dAtA[i] = 0xa
  1512  	return len(dAtA) - i, nil
  1513  }
  1514  
  1515  func (m *MsgCancelUnbondingDelegation) Marshal() (dAtA []byte, err error) {
  1516  	size := m.Size()
  1517  	dAtA = make([]byte, size)
  1518  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1519  	if err != nil {
  1520  		return nil, err
  1521  	}
  1522  	return dAtA[:n], nil
  1523  }
  1524  
  1525  func (m *MsgCancelUnbondingDelegation) MarshalTo(dAtA []byte) (int, error) {
  1526  	size := m.Size()
  1527  	return m.MarshalToSizedBuffer(dAtA[:size])
  1528  }
  1529  
  1530  func (m *MsgCancelUnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1531  	i := len(dAtA)
  1532  	_ = i
  1533  	var l int
  1534  	_ = l
  1535  	if m.CreationHeight != 0 {
  1536  		i = encodeVarintTx(dAtA, i, uint64(m.CreationHeight))
  1537  		i--
  1538  		dAtA[i] = 0x20
  1539  	}
  1540  	{
  1541  		size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i])
  1542  		if err != nil {
  1543  			return 0, err
  1544  		}
  1545  		i -= size
  1546  		i = encodeVarintTx(dAtA, i, uint64(size))
  1547  	}
  1548  	i--
  1549  	dAtA[i] = 0x1a
  1550  	if len(m.ValidatorAddress) > 0 {
  1551  		i -= len(m.ValidatorAddress)
  1552  		copy(dAtA[i:], m.ValidatorAddress)
  1553  		i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorAddress)))
  1554  		i--
  1555  		dAtA[i] = 0x12
  1556  	}
  1557  	if len(m.DelegatorAddress) > 0 {
  1558  		i -= len(m.DelegatorAddress)
  1559  		copy(dAtA[i:], m.DelegatorAddress)
  1560  		i = encodeVarintTx(dAtA, i, uint64(len(m.DelegatorAddress)))
  1561  		i--
  1562  		dAtA[i] = 0xa
  1563  	}
  1564  	return len(dAtA) - i, nil
  1565  }
  1566  
  1567  func (m *MsgCancelUnbondingDelegationResponse) Marshal() (dAtA []byte, err error) {
  1568  	size := m.Size()
  1569  	dAtA = make([]byte, size)
  1570  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1571  	if err != nil {
  1572  		return nil, err
  1573  	}
  1574  	return dAtA[:n], nil
  1575  }
  1576  
  1577  func (m *MsgCancelUnbondingDelegationResponse) MarshalTo(dAtA []byte) (int, error) {
  1578  	size := m.Size()
  1579  	return m.MarshalToSizedBuffer(dAtA[:size])
  1580  }
  1581  
  1582  func (m *MsgCancelUnbondingDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1583  	i := len(dAtA)
  1584  	_ = i
  1585  	var l int
  1586  	_ = l
  1587  	return len(dAtA) - i, nil
  1588  }
  1589  
  1590  func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
  1591  	size := m.Size()
  1592  	dAtA = make([]byte, size)
  1593  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1594  	if err != nil {
  1595  		return nil, err
  1596  	}
  1597  	return dAtA[:n], nil
  1598  }
  1599  
  1600  func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
  1601  	size := m.Size()
  1602  	return m.MarshalToSizedBuffer(dAtA[:size])
  1603  }
  1604  
  1605  func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1606  	i := len(dAtA)
  1607  	_ = i
  1608  	var l int
  1609  	_ = l
  1610  	{
  1611  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
  1612  		if err != nil {
  1613  			return 0, err
  1614  		}
  1615  		i -= size
  1616  		i = encodeVarintTx(dAtA, i, uint64(size))
  1617  	}
  1618  	i--
  1619  	dAtA[i] = 0x12
  1620  	if len(m.Authority) > 0 {
  1621  		i -= len(m.Authority)
  1622  		copy(dAtA[i:], m.Authority)
  1623  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
  1624  		i--
  1625  		dAtA[i] = 0xa
  1626  	}
  1627  	return len(dAtA) - i, nil
  1628  }
  1629  
  1630  func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
  1631  	size := m.Size()
  1632  	dAtA = make([]byte, size)
  1633  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1634  	if err != nil {
  1635  		return nil, err
  1636  	}
  1637  	return dAtA[:n], nil
  1638  }
  1639  
  1640  func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
  1641  	size := m.Size()
  1642  	return m.MarshalToSizedBuffer(dAtA[:size])
  1643  }
  1644  
  1645  func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1646  	i := len(dAtA)
  1647  	_ = i
  1648  	var l int
  1649  	_ = l
  1650  	return len(dAtA) - i, nil
  1651  }
  1652  
  1653  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
  1654  	offset -= sovTx(v)
  1655  	base := offset
  1656  	for v >= 1<<7 {
  1657  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1658  		v >>= 7
  1659  		offset++
  1660  	}
  1661  	dAtA[offset] = uint8(v)
  1662  	return base
  1663  }
  1664  func (m *MsgCreateValidator) Size() (n int) {
  1665  	if m == nil {
  1666  		return 0
  1667  	}
  1668  	var l int
  1669  	_ = l
  1670  	l = m.Description.Size()
  1671  	n += 1 + l + sovTx(uint64(l))
  1672  	l = m.Commission.Size()
  1673  	n += 1 + l + sovTx(uint64(l))
  1674  	l = m.MinSelfDelegation.Size()
  1675  	n += 1 + l + sovTx(uint64(l))
  1676  	l = len(m.DelegatorAddress)
  1677  	if l > 0 {
  1678  		n += 1 + l + sovTx(uint64(l))
  1679  	}
  1680  	l = len(m.ValidatorAddress)
  1681  	if l > 0 {
  1682  		n += 1 + l + sovTx(uint64(l))
  1683  	}
  1684  	if m.Pubkey != nil {
  1685  		l = m.Pubkey.Size()
  1686  		n += 1 + l + sovTx(uint64(l))
  1687  	}
  1688  	l = m.Value.Size()
  1689  	n += 1 + l + sovTx(uint64(l))
  1690  	return n
  1691  }
  1692  
  1693  func (m *MsgCreateValidatorResponse) Size() (n int) {
  1694  	if m == nil {
  1695  		return 0
  1696  	}
  1697  	var l int
  1698  	_ = l
  1699  	return n
  1700  }
  1701  
  1702  func (m *MsgEditValidator) Size() (n int) {
  1703  	if m == nil {
  1704  		return 0
  1705  	}
  1706  	var l int
  1707  	_ = l
  1708  	l = m.Description.Size()
  1709  	n += 1 + l + sovTx(uint64(l))
  1710  	l = len(m.ValidatorAddress)
  1711  	if l > 0 {
  1712  		n += 1 + l + sovTx(uint64(l))
  1713  	}
  1714  	if m.CommissionRate != nil {
  1715  		l = m.CommissionRate.Size()
  1716  		n += 1 + l + sovTx(uint64(l))
  1717  	}
  1718  	if m.MinSelfDelegation != nil {
  1719  		l = m.MinSelfDelegation.Size()
  1720  		n += 1 + l + sovTx(uint64(l))
  1721  	}
  1722  	return n
  1723  }
  1724  
  1725  func (m *MsgEditValidatorResponse) Size() (n int) {
  1726  	if m == nil {
  1727  		return 0
  1728  	}
  1729  	var l int
  1730  	_ = l
  1731  	return n
  1732  }
  1733  
  1734  func (m *MsgDelegate) Size() (n int) {
  1735  	if m == nil {
  1736  		return 0
  1737  	}
  1738  	var l int
  1739  	_ = l
  1740  	l = len(m.DelegatorAddress)
  1741  	if l > 0 {
  1742  		n += 1 + l + sovTx(uint64(l))
  1743  	}
  1744  	l = len(m.ValidatorAddress)
  1745  	if l > 0 {
  1746  		n += 1 + l + sovTx(uint64(l))
  1747  	}
  1748  	l = m.Amount.Size()
  1749  	n += 1 + l + sovTx(uint64(l))
  1750  	return n
  1751  }
  1752  
  1753  func (m *MsgDelegateResponse) Size() (n int) {
  1754  	if m == nil {
  1755  		return 0
  1756  	}
  1757  	var l int
  1758  	_ = l
  1759  	return n
  1760  }
  1761  
  1762  func (m *MsgBeginRedelegate) Size() (n int) {
  1763  	if m == nil {
  1764  		return 0
  1765  	}
  1766  	var l int
  1767  	_ = l
  1768  	l = len(m.DelegatorAddress)
  1769  	if l > 0 {
  1770  		n += 1 + l + sovTx(uint64(l))
  1771  	}
  1772  	l = len(m.ValidatorSrcAddress)
  1773  	if l > 0 {
  1774  		n += 1 + l + sovTx(uint64(l))
  1775  	}
  1776  	l = len(m.ValidatorDstAddress)
  1777  	if l > 0 {
  1778  		n += 1 + l + sovTx(uint64(l))
  1779  	}
  1780  	l = m.Amount.Size()
  1781  	n += 1 + l + sovTx(uint64(l))
  1782  	return n
  1783  }
  1784  
  1785  func (m *MsgBeginRedelegateResponse) Size() (n int) {
  1786  	if m == nil {
  1787  		return 0
  1788  	}
  1789  	var l int
  1790  	_ = l
  1791  	l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime)
  1792  	n += 1 + l + sovTx(uint64(l))
  1793  	return n
  1794  }
  1795  
  1796  func (m *MsgUndelegate) Size() (n int) {
  1797  	if m == nil {
  1798  		return 0
  1799  	}
  1800  	var l int
  1801  	_ = l
  1802  	l = len(m.DelegatorAddress)
  1803  	if l > 0 {
  1804  		n += 1 + l + sovTx(uint64(l))
  1805  	}
  1806  	l = len(m.ValidatorAddress)
  1807  	if l > 0 {
  1808  		n += 1 + l + sovTx(uint64(l))
  1809  	}
  1810  	l = m.Amount.Size()
  1811  	n += 1 + l + sovTx(uint64(l))
  1812  	return n
  1813  }
  1814  
  1815  func (m *MsgUndelegateResponse) Size() (n int) {
  1816  	if m == nil {
  1817  		return 0
  1818  	}
  1819  	var l int
  1820  	_ = l
  1821  	l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime)
  1822  	n += 1 + l + sovTx(uint64(l))
  1823  	l = m.Amount.Size()
  1824  	n += 1 + l + sovTx(uint64(l))
  1825  	return n
  1826  }
  1827  
  1828  func (m *MsgCancelUnbondingDelegation) Size() (n int) {
  1829  	if m == nil {
  1830  		return 0
  1831  	}
  1832  	var l int
  1833  	_ = l
  1834  	l = len(m.DelegatorAddress)
  1835  	if l > 0 {
  1836  		n += 1 + l + sovTx(uint64(l))
  1837  	}
  1838  	l = len(m.ValidatorAddress)
  1839  	if l > 0 {
  1840  		n += 1 + l + sovTx(uint64(l))
  1841  	}
  1842  	l = m.Amount.Size()
  1843  	n += 1 + l + sovTx(uint64(l))
  1844  	if m.CreationHeight != 0 {
  1845  		n += 1 + sovTx(uint64(m.CreationHeight))
  1846  	}
  1847  	return n
  1848  }
  1849  
  1850  func (m *MsgCancelUnbondingDelegationResponse) Size() (n int) {
  1851  	if m == nil {
  1852  		return 0
  1853  	}
  1854  	var l int
  1855  	_ = l
  1856  	return n
  1857  }
  1858  
  1859  func (m *MsgUpdateParams) Size() (n int) {
  1860  	if m == nil {
  1861  		return 0
  1862  	}
  1863  	var l int
  1864  	_ = l
  1865  	l = len(m.Authority)
  1866  	if l > 0 {
  1867  		n += 1 + l + sovTx(uint64(l))
  1868  	}
  1869  	l = m.Params.Size()
  1870  	n += 1 + l + sovTx(uint64(l))
  1871  	return n
  1872  }
  1873  
  1874  func (m *MsgUpdateParamsResponse) Size() (n int) {
  1875  	if m == nil {
  1876  		return 0
  1877  	}
  1878  	var l int
  1879  	_ = l
  1880  	return n
  1881  }
  1882  
  1883  func sovTx(x uint64) (n int) {
  1884  	return (math_bits.Len64(x|1) + 6) / 7
  1885  }
  1886  func sozTx(x uint64) (n int) {
  1887  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1888  }
  1889  func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error {
  1890  	l := len(dAtA)
  1891  	iNdEx := 0
  1892  	for iNdEx < l {
  1893  		preIndex := iNdEx
  1894  		var wire uint64
  1895  		for shift := uint(0); ; shift += 7 {
  1896  			if shift >= 64 {
  1897  				return ErrIntOverflowTx
  1898  			}
  1899  			if iNdEx >= l {
  1900  				return io.ErrUnexpectedEOF
  1901  			}
  1902  			b := dAtA[iNdEx]
  1903  			iNdEx++
  1904  			wire |= uint64(b&0x7F) << shift
  1905  			if b < 0x80 {
  1906  				break
  1907  			}
  1908  		}
  1909  		fieldNum := int32(wire >> 3)
  1910  		wireType := int(wire & 0x7)
  1911  		if wireType == 4 {
  1912  			return fmt.Errorf("proto: MsgCreateValidator: wiretype end group for non-group")
  1913  		}
  1914  		if fieldNum <= 0 {
  1915  			return fmt.Errorf("proto: MsgCreateValidator: illegal tag %d (wire type %d)", fieldNum, wire)
  1916  		}
  1917  		switch fieldNum {
  1918  		case 1:
  1919  			if wireType != 2 {
  1920  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  1921  			}
  1922  			var msglen int
  1923  			for shift := uint(0); ; shift += 7 {
  1924  				if shift >= 64 {
  1925  					return ErrIntOverflowTx
  1926  				}
  1927  				if iNdEx >= l {
  1928  					return io.ErrUnexpectedEOF
  1929  				}
  1930  				b := dAtA[iNdEx]
  1931  				iNdEx++
  1932  				msglen |= int(b&0x7F) << shift
  1933  				if b < 0x80 {
  1934  					break
  1935  				}
  1936  			}
  1937  			if msglen < 0 {
  1938  				return ErrInvalidLengthTx
  1939  			}
  1940  			postIndex := iNdEx + msglen
  1941  			if postIndex < 0 {
  1942  				return ErrInvalidLengthTx
  1943  			}
  1944  			if postIndex > l {
  1945  				return io.ErrUnexpectedEOF
  1946  			}
  1947  			if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1948  				return err
  1949  			}
  1950  			iNdEx = postIndex
  1951  		case 2:
  1952  			if wireType != 2 {
  1953  				return fmt.Errorf("proto: wrong wireType = %d for field Commission", wireType)
  1954  			}
  1955  			var msglen int
  1956  			for shift := uint(0); ; shift += 7 {
  1957  				if shift >= 64 {
  1958  					return ErrIntOverflowTx
  1959  				}
  1960  				if iNdEx >= l {
  1961  					return io.ErrUnexpectedEOF
  1962  				}
  1963  				b := dAtA[iNdEx]
  1964  				iNdEx++
  1965  				msglen |= int(b&0x7F) << shift
  1966  				if b < 0x80 {
  1967  					break
  1968  				}
  1969  			}
  1970  			if msglen < 0 {
  1971  				return ErrInvalidLengthTx
  1972  			}
  1973  			postIndex := iNdEx + msglen
  1974  			if postIndex < 0 {
  1975  				return ErrInvalidLengthTx
  1976  			}
  1977  			if postIndex > l {
  1978  				return io.ErrUnexpectedEOF
  1979  			}
  1980  			if err := m.Commission.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1981  				return err
  1982  			}
  1983  			iNdEx = postIndex
  1984  		case 3:
  1985  			if wireType != 2 {
  1986  				return fmt.Errorf("proto: wrong wireType = %d for field MinSelfDelegation", wireType)
  1987  			}
  1988  			var stringLen uint64
  1989  			for shift := uint(0); ; shift += 7 {
  1990  				if shift >= 64 {
  1991  					return ErrIntOverflowTx
  1992  				}
  1993  				if iNdEx >= l {
  1994  					return io.ErrUnexpectedEOF
  1995  				}
  1996  				b := dAtA[iNdEx]
  1997  				iNdEx++
  1998  				stringLen |= uint64(b&0x7F) << shift
  1999  				if b < 0x80 {
  2000  					break
  2001  				}
  2002  			}
  2003  			intStringLen := int(stringLen)
  2004  			if intStringLen < 0 {
  2005  				return ErrInvalidLengthTx
  2006  			}
  2007  			postIndex := iNdEx + intStringLen
  2008  			if postIndex < 0 {
  2009  				return ErrInvalidLengthTx
  2010  			}
  2011  			if postIndex > l {
  2012  				return io.ErrUnexpectedEOF
  2013  			}
  2014  			if err := m.MinSelfDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2015  				return err
  2016  			}
  2017  			iNdEx = postIndex
  2018  		case 4:
  2019  			if wireType != 2 {
  2020  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  2021  			}
  2022  			var stringLen uint64
  2023  			for shift := uint(0); ; shift += 7 {
  2024  				if shift >= 64 {
  2025  					return ErrIntOverflowTx
  2026  				}
  2027  				if iNdEx >= l {
  2028  					return io.ErrUnexpectedEOF
  2029  				}
  2030  				b := dAtA[iNdEx]
  2031  				iNdEx++
  2032  				stringLen |= uint64(b&0x7F) << shift
  2033  				if b < 0x80 {
  2034  					break
  2035  				}
  2036  			}
  2037  			intStringLen := int(stringLen)
  2038  			if intStringLen < 0 {
  2039  				return ErrInvalidLengthTx
  2040  			}
  2041  			postIndex := iNdEx + intStringLen
  2042  			if postIndex < 0 {
  2043  				return ErrInvalidLengthTx
  2044  			}
  2045  			if postIndex > l {
  2046  				return io.ErrUnexpectedEOF
  2047  			}
  2048  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  2049  			iNdEx = postIndex
  2050  		case 5:
  2051  			if wireType != 2 {
  2052  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  2053  			}
  2054  			var stringLen uint64
  2055  			for shift := uint(0); ; shift += 7 {
  2056  				if shift >= 64 {
  2057  					return ErrIntOverflowTx
  2058  				}
  2059  				if iNdEx >= l {
  2060  					return io.ErrUnexpectedEOF
  2061  				}
  2062  				b := dAtA[iNdEx]
  2063  				iNdEx++
  2064  				stringLen |= uint64(b&0x7F) << shift
  2065  				if b < 0x80 {
  2066  					break
  2067  				}
  2068  			}
  2069  			intStringLen := int(stringLen)
  2070  			if intStringLen < 0 {
  2071  				return ErrInvalidLengthTx
  2072  			}
  2073  			postIndex := iNdEx + intStringLen
  2074  			if postIndex < 0 {
  2075  				return ErrInvalidLengthTx
  2076  			}
  2077  			if postIndex > l {
  2078  				return io.ErrUnexpectedEOF
  2079  			}
  2080  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  2081  			iNdEx = postIndex
  2082  		case 6:
  2083  			if wireType != 2 {
  2084  				return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType)
  2085  			}
  2086  			var msglen int
  2087  			for shift := uint(0); ; shift += 7 {
  2088  				if shift >= 64 {
  2089  					return ErrIntOverflowTx
  2090  				}
  2091  				if iNdEx >= l {
  2092  					return io.ErrUnexpectedEOF
  2093  				}
  2094  				b := dAtA[iNdEx]
  2095  				iNdEx++
  2096  				msglen |= int(b&0x7F) << shift
  2097  				if b < 0x80 {
  2098  					break
  2099  				}
  2100  			}
  2101  			if msglen < 0 {
  2102  				return ErrInvalidLengthTx
  2103  			}
  2104  			postIndex := iNdEx + msglen
  2105  			if postIndex < 0 {
  2106  				return ErrInvalidLengthTx
  2107  			}
  2108  			if postIndex > l {
  2109  				return io.ErrUnexpectedEOF
  2110  			}
  2111  			if m.Pubkey == nil {
  2112  				m.Pubkey = &types.Any{}
  2113  			}
  2114  			if err := m.Pubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2115  				return err
  2116  			}
  2117  			iNdEx = postIndex
  2118  		case 7:
  2119  			if wireType != 2 {
  2120  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  2121  			}
  2122  			var msglen int
  2123  			for shift := uint(0); ; shift += 7 {
  2124  				if shift >= 64 {
  2125  					return ErrIntOverflowTx
  2126  				}
  2127  				if iNdEx >= l {
  2128  					return io.ErrUnexpectedEOF
  2129  				}
  2130  				b := dAtA[iNdEx]
  2131  				iNdEx++
  2132  				msglen |= int(b&0x7F) << shift
  2133  				if b < 0x80 {
  2134  					break
  2135  				}
  2136  			}
  2137  			if msglen < 0 {
  2138  				return ErrInvalidLengthTx
  2139  			}
  2140  			postIndex := iNdEx + msglen
  2141  			if postIndex < 0 {
  2142  				return ErrInvalidLengthTx
  2143  			}
  2144  			if postIndex > l {
  2145  				return io.ErrUnexpectedEOF
  2146  			}
  2147  			if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2148  				return err
  2149  			}
  2150  			iNdEx = postIndex
  2151  		default:
  2152  			iNdEx = preIndex
  2153  			skippy, err := skipTx(dAtA[iNdEx:])
  2154  			if err != nil {
  2155  				return err
  2156  			}
  2157  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2158  				return ErrInvalidLengthTx
  2159  			}
  2160  			if (iNdEx + skippy) > l {
  2161  				return io.ErrUnexpectedEOF
  2162  			}
  2163  			iNdEx += skippy
  2164  		}
  2165  	}
  2166  
  2167  	if iNdEx > l {
  2168  		return io.ErrUnexpectedEOF
  2169  	}
  2170  	return nil
  2171  }
  2172  func (m *MsgCreateValidatorResponse) Unmarshal(dAtA []byte) error {
  2173  	l := len(dAtA)
  2174  	iNdEx := 0
  2175  	for iNdEx < l {
  2176  		preIndex := iNdEx
  2177  		var wire uint64
  2178  		for shift := uint(0); ; shift += 7 {
  2179  			if shift >= 64 {
  2180  				return ErrIntOverflowTx
  2181  			}
  2182  			if iNdEx >= l {
  2183  				return io.ErrUnexpectedEOF
  2184  			}
  2185  			b := dAtA[iNdEx]
  2186  			iNdEx++
  2187  			wire |= uint64(b&0x7F) << shift
  2188  			if b < 0x80 {
  2189  				break
  2190  			}
  2191  		}
  2192  		fieldNum := int32(wire >> 3)
  2193  		wireType := int(wire & 0x7)
  2194  		if wireType == 4 {
  2195  			return fmt.Errorf("proto: MsgCreateValidatorResponse: wiretype end group for non-group")
  2196  		}
  2197  		if fieldNum <= 0 {
  2198  			return fmt.Errorf("proto: MsgCreateValidatorResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2199  		}
  2200  		switch fieldNum {
  2201  		default:
  2202  			iNdEx = preIndex
  2203  			skippy, err := skipTx(dAtA[iNdEx:])
  2204  			if err != nil {
  2205  				return err
  2206  			}
  2207  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2208  				return ErrInvalidLengthTx
  2209  			}
  2210  			if (iNdEx + skippy) > l {
  2211  				return io.ErrUnexpectedEOF
  2212  			}
  2213  			iNdEx += skippy
  2214  		}
  2215  	}
  2216  
  2217  	if iNdEx > l {
  2218  		return io.ErrUnexpectedEOF
  2219  	}
  2220  	return nil
  2221  }
  2222  func (m *MsgEditValidator) Unmarshal(dAtA []byte) error {
  2223  	l := len(dAtA)
  2224  	iNdEx := 0
  2225  	for iNdEx < l {
  2226  		preIndex := iNdEx
  2227  		var wire uint64
  2228  		for shift := uint(0); ; shift += 7 {
  2229  			if shift >= 64 {
  2230  				return ErrIntOverflowTx
  2231  			}
  2232  			if iNdEx >= l {
  2233  				return io.ErrUnexpectedEOF
  2234  			}
  2235  			b := dAtA[iNdEx]
  2236  			iNdEx++
  2237  			wire |= uint64(b&0x7F) << shift
  2238  			if b < 0x80 {
  2239  				break
  2240  			}
  2241  		}
  2242  		fieldNum := int32(wire >> 3)
  2243  		wireType := int(wire & 0x7)
  2244  		if wireType == 4 {
  2245  			return fmt.Errorf("proto: MsgEditValidator: wiretype end group for non-group")
  2246  		}
  2247  		if fieldNum <= 0 {
  2248  			return fmt.Errorf("proto: MsgEditValidator: illegal tag %d (wire type %d)", fieldNum, wire)
  2249  		}
  2250  		switch fieldNum {
  2251  		case 1:
  2252  			if wireType != 2 {
  2253  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  2254  			}
  2255  			var msglen int
  2256  			for shift := uint(0); ; shift += 7 {
  2257  				if shift >= 64 {
  2258  					return ErrIntOverflowTx
  2259  				}
  2260  				if iNdEx >= l {
  2261  					return io.ErrUnexpectedEOF
  2262  				}
  2263  				b := dAtA[iNdEx]
  2264  				iNdEx++
  2265  				msglen |= int(b&0x7F) << shift
  2266  				if b < 0x80 {
  2267  					break
  2268  				}
  2269  			}
  2270  			if msglen < 0 {
  2271  				return ErrInvalidLengthTx
  2272  			}
  2273  			postIndex := iNdEx + msglen
  2274  			if postIndex < 0 {
  2275  				return ErrInvalidLengthTx
  2276  			}
  2277  			if postIndex > l {
  2278  				return io.ErrUnexpectedEOF
  2279  			}
  2280  			if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2281  				return err
  2282  			}
  2283  			iNdEx = postIndex
  2284  		case 2:
  2285  			if wireType != 2 {
  2286  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  2287  			}
  2288  			var stringLen uint64
  2289  			for shift := uint(0); ; shift += 7 {
  2290  				if shift >= 64 {
  2291  					return ErrIntOverflowTx
  2292  				}
  2293  				if iNdEx >= l {
  2294  					return io.ErrUnexpectedEOF
  2295  				}
  2296  				b := dAtA[iNdEx]
  2297  				iNdEx++
  2298  				stringLen |= uint64(b&0x7F) << shift
  2299  				if b < 0x80 {
  2300  					break
  2301  				}
  2302  			}
  2303  			intStringLen := int(stringLen)
  2304  			if intStringLen < 0 {
  2305  				return ErrInvalidLengthTx
  2306  			}
  2307  			postIndex := iNdEx + intStringLen
  2308  			if postIndex < 0 {
  2309  				return ErrInvalidLengthTx
  2310  			}
  2311  			if postIndex > l {
  2312  				return io.ErrUnexpectedEOF
  2313  			}
  2314  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  2315  			iNdEx = postIndex
  2316  		case 3:
  2317  			if wireType != 2 {
  2318  				return fmt.Errorf("proto: wrong wireType = %d for field CommissionRate", wireType)
  2319  			}
  2320  			var stringLen uint64
  2321  			for shift := uint(0); ; shift += 7 {
  2322  				if shift >= 64 {
  2323  					return ErrIntOverflowTx
  2324  				}
  2325  				if iNdEx >= l {
  2326  					return io.ErrUnexpectedEOF
  2327  				}
  2328  				b := dAtA[iNdEx]
  2329  				iNdEx++
  2330  				stringLen |= uint64(b&0x7F) << shift
  2331  				if b < 0x80 {
  2332  					break
  2333  				}
  2334  			}
  2335  			intStringLen := int(stringLen)
  2336  			if intStringLen < 0 {
  2337  				return ErrInvalidLengthTx
  2338  			}
  2339  			postIndex := iNdEx + intStringLen
  2340  			if postIndex < 0 {
  2341  				return ErrInvalidLengthTx
  2342  			}
  2343  			if postIndex > l {
  2344  				return io.ErrUnexpectedEOF
  2345  			}
  2346  			var v cosmossdk_io_math.LegacyDec
  2347  			m.CommissionRate = &v
  2348  			if err := m.CommissionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2349  				return err
  2350  			}
  2351  			iNdEx = postIndex
  2352  		case 4:
  2353  			if wireType != 2 {
  2354  				return fmt.Errorf("proto: wrong wireType = %d for field MinSelfDelegation", wireType)
  2355  			}
  2356  			var stringLen uint64
  2357  			for shift := uint(0); ; shift += 7 {
  2358  				if shift >= 64 {
  2359  					return ErrIntOverflowTx
  2360  				}
  2361  				if iNdEx >= l {
  2362  					return io.ErrUnexpectedEOF
  2363  				}
  2364  				b := dAtA[iNdEx]
  2365  				iNdEx++
  2366  				stringLen |= uint64(b&0x7F) << shift
  2367  				if b < 0x80 {
  2368  					break
  2369  				}
  2370  			}
  2371  			intStringLen := int(stringLen)
  2372  			if intStringLen < 0 {
  2373  				return ErrInvalidLengthTx
  2374  			}
  2375  			postIndex := iNdEx + intStringLen
  2376  			if postIndex < 0 {
  2377  				return ErrInvalidLengthTx
  2378  			}
  2379  			if postIndex > l {
  2380  				return io.ErrUnexpectedEOF
  2381  			}
  2382  			var v cosmossdk_io_math.Int
  2383  			m.MinSelfDelegation = &v
  2384  			if err := m.MinSelfDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2385  				return err
  2386  			}
  2387  			iNdEx = postIndex
  2388  		default:
  2389  			iNdEx = preIndex
  2390  			skippy, err := skipTx(dAtA[iNdEx:])
  2391  			if err != nil {
  2392  				return err
  2393  			}
  2394  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2395  				return ErrInvalidLengthTx
  2396  			}
  2397  			if (iNdEx + skippy) > l {
  2398  				return io.ErrUnexpectedEOF
  2399  			}
  2400  			iNdEx += skippy
  2401  		}
  2402  	}
  2403  
  2404  	if iNdEx > l {
  2405  		return io.ErrUnexpectedEOF
  2406  	}
  2407  	return nil
  2408  }
  2409  func (m *MsgEditValidatorResponse) Unmarshal(dAtA []byte) error {
  2410  	l := len(dAtA)
  2411  	iNdEx := 0
  2412  	for iNdEx < l {
  2413  		preIndex := iNdEx
  2414  		var wire uint64
  2415  		for shift := uint(0); ; shift += 7 {
  2416  			if shift >= 64 {
  2417  				return ErrIntOverflowTx
  2418  			}
  2419  			if iNdEx >= l {
  2420  				return io.ErrUnexpectedEOF
  2421  			}
  2422  			b := dAtA[iNdEx]
  2423  			iNdEx++
  2424  			wire |= uint64(b&0x7F) << shift
  2425  			if b < 0x80 {
  2426  				break
  2427  			}
  2428  		}
  2429  		fieldNum := int32(wire >> 3)
  2430  		wireType := int(wire & 0x7)
  2431  		if wireType == 4 {
  2432  			return fmt.Errorf("proto: MsgEditValidatorResponse: wiretype end group for non-group")
  2433  		}
  2434  		if fieldNum <= 0 {
  2435  			return fmt.Errorf("proto: MsgEditValidatorResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2436  		}
  2437  		switch fieldNum {
  2438  		default:
  2439  			iNdEx = preIndex
  2440  			skippy, err := skipTx(dAtA[iNdEx:])
  2441  			if err != nil {
  2442  				return err
  2443  			}
  2444  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2445  				return ErrInvalidLengthTx
  2446  			}
  2447  			if (iNdEx + skippy) > l {
  2448  				return io.ErrUnexpectedEOF
  2449  			}
  2450  			iNdEx += skippy
  2451  		}
  2452  	}
  2453  
  2454  	if iNdEx > l {
  2455  		return io.ErrUnexpectedEOF
  2456  	}
  2457  	return nil
  2458  }
  2459  func (m *MsgDelegate) Unmarshal(dAtA []byte) error {
  2460  	l := len(dAtA)
  2461  	iNdEx := 0
  2462  	for iNdEx < l {
  2463  		preIndex := iNdEx
  2464  		var wire uint64
  2465  		for shift := uint(0); ; shift += 7 {
  2466  			if shift >= 64 {
  2467  				return ErrIntOverflowTx
  2468  			}
  2469  			if iNdEx >= l {
  2470  				return io.ErrUnexpectedEOF
  2471  			}
  2472  			b := dAtA[iNdEx]
  2473  			iNdEx++
  2474  			wire |= uint64(b&0x7F) << shift
  2475  			if b < 0x80 {
  2476  				break
  2477  			}
  2478  		}
  2479  		fieldNum := int32(wire >> 3)
  2480  		wireType := int(wire & 0x7)
  2481  		if wireType == 4 {
  2482  			return fmt.Errorf("proto: MsgDelegate: wiretype end group for non-group")
  2483  		}
  2484  		if fieldNum <= 0 {
  2485  			return fmt.Errorf("proto: MsgDelegate: illegal tag %d (wire type %d)", fieldNum, wire)
  2486  		}
  2487  		switch fieldNum {
  2488  		case 1:
  2489  			if wireType != 2 {
  2490  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  2491  			}
  2492  			var stringLen uint64
  2493  			for shift := uint(0); ; shift += 7 {
  2494  				if shift >= 64 {
  2495  					return ErrIntOverflowTx
  2496  				}
  2497  				if iNdEx >= l {
  2498  					return io.ErrUnexpectedEOF
  2499  				}
  2500  				b := dAtA[iNdEx]
  2501  				iNdEx++
  2502  				stringLen |= uint64(b&0x7F) << shift
  2503  				if b < 0x80 {
  2504  					break
  2505  				}
  2506  			}
  2507  			intStringLen := int(stringLen)
  2508  			if intStringLen < 0 {
  2509  				return ErrInvalidLengthTx
  2510  			}
  2511  			postIndex := iNdEx + intStringLen
  2512  			if postIndex < 0 {
  2513  				return ErrInvalidLengthTx
  2514  			}
  2515  			if postIndex > l {
  2516  				return io.ErrUnexpectedEOF
  2517  			}
  2518  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  2519  			iNdEx = postIndex
  2520  		case 2:
  2521  			if wireType != 2 {
  2522  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  2523  			}
  2524  			var stringLen uint64
  2525  			for shift := uint(0); ; shift += 7 {
  2526  				if shift >= 64 {
  2527  					return ErrIntOverflowTx
  2528  				}
  2529  				if iNdEx >= l {
  2530  					return io.ErrUnexpectedEOF
  2531  				}
  2532  				b := dAtA[iNdEx]
  2533  				iNdEx++
  2534  				stringLen |= uint64(b&0x7F) << shift
  2535  				if b < 0x80 {
  2536  					break
  2537  				}
  2538  			}
  2539  			intStringLen := int(stringLen)
  2540  			if intStringLen < 0 {
  2541  				return ErrInvalidLengthTx
  2542  			}
  2543  			postIndex := iNdEx + intStringLen
  2544  			if postIndex < 0 {
  2545  				return ErrInvalidLengthTx
  2546  			}
  2547  			if postIndex > l {
  2548  				return io.ErrUnexpectedEOF
  2549  			}
  2550  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  2551  			iNdEx = postIndex
  2552  		case 3:
  2553  			if wireType != 2 {
  2554  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  2555  			}
  2556  			var msglen int
  2557  			for shift := uint(0); ; shift += 7 {
  2558  				if shift >= 64 {
  2559  					return ErrIntOverflowTx
  2560  				}
  2561  				if iNdEx >= l {
  2562  					return io.ErrUnexpectedEOF
  2563  				}
  2564  				b := dAtA[iNdEx]
  2565  				iNdEx++
  2566  				msglen |= int(b&0x7F) << shift
  2567  				if b < 0x80 {
  2568  					break
  2569  				}
  2570  			}
  2571  			if msglen < 0 {
  2572  				return ErrInvalidLengthTx
  2573  			}
  2574  			postIndex := iNdEx + msglen
  2575  			if postIndex < 0 {
  2576  				return ErrInvalidLengthTx
  2577  			}
  2578  			if postIndex > l {
  2579  				return io.ErrUnexpectedEOF
  2580  			}
  2581  			if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2582  				return err
  2583  			}
  2584  			iNdEx = postIndex
  2585  		default:
  2586  			iNdEx = preIndex
  2587  			skippy, err := skipTx(dAtA[iNdEx:])
  2588  			if err != nil {
  2589  				return err
  2590  			}
  2591  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2592  				return ErrInvalidLengthTx
  2593  			}
  2594  			if (iNdEx + skippy) > l {
  2595  				return io.ErrUnexpectedEOF
  2596  			}
  2597  			iNdEx += skippy
  2598  		}
  2599  	}
  2600  
  2601  	if iNdEx > l {
  2602  		return io.ErrUnexpectedEOF
  2603  	}
  2604  	return nil
  2605  }
  2606  func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error {
  2607  	l := len(dAtA)
  2608  	iNdEx := 0
  2609  	for iNdEx < l {
  2610  		preIndex := iNdEx
  2611  		var wire uint64
  2612  		for shift := uint(0); ; shift += 7 {
  2613  			if shift >= 64 {
  2614  				return ErrIntOverflowTx
  2615  			}
  2616  			if iNdEx >= l {
  2617  				return io.ErrUnexpectedEOF
  2618  			}
  2619  			b := dAtA[iNdEx]
  2620  			iNdEx++
  2621  			wire |= uint64(b&0x7F) << shift
  2622  			if b < 0x80 {
  2623  				break
  2624  			}
  2625  		}
  2626  		fieldNum := int32(wire >> 3)
  2627  		wireType := int(wire & 0x7)
  2628  		if wireType == 4 {
  2629  			return fmt.Errorf("proto: MsgDelegateResponse: wiretype end group for non-group")
  2630  		}
  2631  		if fieldNum <= 0 {
  2632  			return fmt.Errorf("proto: MsgDelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2633  		}
  2634  		switch fieldNum {
  2635  		default:
  2636  			iNdEx = preIndex
  2637  			skippy, err := skipTx(dAtA[iNdEx:])
  2638  			if err != nil {
  2639  				return err
  2640  			}
  2641  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2642  				return ErrInvalidLengthTx
  2643  			}
  2644  			if (iNdEx + skippy) > l {
  2645  				return io.ErrUnexpectedEOF
  2646  			}
  2647  			iNdEx += skippy
  2648  		}
  2649  	}
  2650  
  2651  	if iNdEx > l {
  2652  		return io.ErrUnexpectedEOF
  2653  	}
  2654  	return nil
  2655  }
  2656  func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error {
  2657  	l := len(dAtA)
  2658  	iNdEx := 0
  2659  	for iNdEx < l {
  2660  		preIndex := iNdEx
  2661  		var wire uint64
  2662  		for shift := uint(0); ; shift += 7 {
  2663  			if shift >= 64 {
  2664  				return ErrIntOverflowTx
  2665  			}
  2666  			if iNdEx >= l {
  2667  				return io.ErrUnexpectedEOF
  2668  			}
  2669  			b := dAtA[iNdEx]
  2670  			iNdEx++
  2671  			wire |= uint64(b&0x7F) << shift
  2672  			if b < 0x80 {
  2673  				break
  2674  			}
  2675  		}
  2676  		fieldNum := int32(wire >> 3)
  2677  		wireType := int(wire & 0x7)
  2678  		if wireType == 4 {
  2679  			return fmt.Errorf("proto: MsgBeginRedelegate: wiretype end group for non-group")
  2680  		}
  2681  		if fieldNum <= 0 {
  2682  			return fmt.Errorf("proto: MsgBeginRedelegate: illegal tag %d (wire type %d)", fieldNum, wire)
  2683  		}
  2684  		switch fieldNum {
  2685  		case 1:
  2686  			if wireType != 2 {
  2687  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  2688  			}
  2689  			var stringLen uint64
  2690  			for shift := uint(0); ; shift += 7 {
  2691  				if shift >= 64 {
  2692  					return ErrIntOverflowTx
  2693  				}
  2694  				if iNdEx >= l {
  2695  					return io.ErrUnexpectedEOF
  2696  				}
  2697  				b := dAtA[iNdEx]
  2698  				iNdEx++
  2699  				stringLen |= uint64(b&0x7F) << shift
  2700  				if b < 0x80 {
  2701  					break
  2702  				}
  2703  			}
  2704  			intStringLen := int(stringLen)
  2705  			if intStringLen < 0 {
  2706  				return ErrInvalidLengthTx
  2707  			}
  2708  			postIndex := iNdEx + intStringLen
  2709  			if postIndex < 0 {
  2710  				return ErrInvalidLengthTx
  2711  			}
  2712  			if postIndex > l {
  2713  				return io.ErrUnexpectedEOF
  2714  			}
  2715  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  2716  			iNdEx = postIndex
  2717  		case 2:
  2718  			if wireType != 2 {
  2719  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorSrcAddress", 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.ValidatorSrcAddress = string(dAtA[iNdEx:postIndex])
  2748  			iNdEx = postIndex
  2749  		case 3:
  2750  			if wireType != 2 {
  2751  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorDstAddress", wireType)
  2752  			}
  2753  			var stringLen uint64
  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  				stringLen |= uint64(b&0x7F) << shift
  2764  				if b < 0x80 {
  2765  					break
  2766  				}
  2767  			}
  2768  			intStringLen := int(stringLen)
  2769  			if intStringLen < 0 {
  2770  				return ErrInvalidLengthTx
  2771  			}
  2772  			postIndex := iNdEx + intStringLen
  2773  			if postIndex < 0 {
  2774  				return ErrInvalidLengthTx
  2775  			}
  2776  			if postIndex > l {
  2777  				return io.ErrUnexpectedEOF
  2778  			}
  2779  			m.ValidatorDstAddress = string(dAtA[iNdEx:postIndex])
  2780  			iNdEx = postIndex
  2781  		case 4:
  2782  			if wireType != 2 {
  2783  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  2784  			}
  2785  			var msglen int
  2786  			for shift := uint(0); ; shift += 7 {
  2787  				if shift >= 64 {
  2788  					return ErrIntOverflowTx
  2789  				}
  2790  				if iNdEx >= l {
  2791  					return io.ErrUnexpectedEOF
  2792  				}
  2793  				b := dAtA[iNdEx]
  2794  				iNdEx++
  2795  				msglen |= int(b&0x7F) << shift
  2796  				if b < 0x80 {
  2797  					break
  2798  				}
  2799  			}
  2800  			if msglen < 0 {
  2801  				return ErrInvalidLengthTx
  2802  			}
  2803  			postIndex := iNdEx + msglen
  2804  			if postIndex < 0 {
  2805  				return ErrInvalidLengthTx
  2806  			}
  2807  			if postIndex > l {
  2808  				return io.ErrUnexpectedEOF
  2809  			}
  2810  			if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2811  				return err
  2812  			}
  2813  			iNdEx = postIndex
  2814  		default:
  2815  			iNdEx = preIndex
  2816  			skippy, err := skipTx(dAtA[iNdEx:])
  2817  			if err != nil {
  2818  				return err
  2819  			}
  2820  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2821  				return ErrInvalidLengthTx
  2822  			}
  2823  			if (iNdEx + skippy) > l {
  2824  				return io.ErrUnexpectedEOF
  2825  			}
  2826  			iNdEx += skippy
  2827  		}
  2828  	}
  2829  
  2830  	if iNdEx > l {
  2831  		return io.ErrUnexpectedEOF
  2832  	}
  2833  	return nil
  2834  }
  2835  func (m *MsgBeginRedelegateResponse) Unmarshal(dAtA []byte) error {
  2836  	l := len(dAtA)
  2837  	iNdEx := 0
  2838  	for iNdEx < l {
  2839  		preIndex := iNdEx
  2840  		var wire uint64
  2841  		for shift := uint(0); ; shift += 7 {
  2842  			if shift >= 64 {
  2843  				return ErrIntOverflowTx
  2844  			}
  2845  			if iNdEx >= l {
  2846  				return io.ErrUnexpectedEOF
  2847  			}
  2848  			b := dAtA[iNdEx]
  2849  			iNdEx++
  2850  			wire |= uint64(b&0x7F) << shift
  2851  			if b < 0x80 {
  2852  				break
  2853  			}
  2854  		}
  2855  		fieldNum := int32(wire >> 3)
  2856  		wireType := int(wire & 0x7)
  2857  		if wireType == 4 {
  2858  			return fmt.Errorf("proto: MsgBeginRedelegateResponse: wiretype end group for non-group")
  2859  		}
  2860  		if fieldNum <= 0 {
  2861  			return fmt.Errorf("proto: MsgBeginRedelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2862  		}
  2863  		switch fieldNum {
  2864  		case 1:
  2865  			if wireType != 2 {
  2866  				return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType)
  2867  			}
  2868  			var msglen int
  2869  			for shift := uint(0); ; shift += 7 {
  2870  				if shift >= 64 {
  2871  					return ErrIntOverflowTx
  2872  				}
  2873  				if iNdEx >= l {
  2874  					return io.ErrUnexpectedEOF
  2875  				}
  2876  				b := dAtA[iNdEx]
  2877  				iNdEx++
  2878  				msglen |= int(b&0x7F) << shift
  2879  				if b < 0x80 {
  2880  					break
  2881  				}
  2882  			}
  2883  			if msglen < 0 {
  2884  				return ErrInvalidLengthTx
  2885  			}
  2886  			postIndex := iNdEx + msglen
  2887  			if postIndex < 0 {
  2888  				return ErrInvalidLengthTx
  2889  			}
  2890  			if postIndex > l {
  2891  				return io.ErrUnexpectedEOF
  2892  			}
  2893  			if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CompletionTime, dAtA[iNdEx:postIndex]); err != nil {
  2894  				return err
  2895  			}
  2896  			iNdEx = postIndex
  2897  		default:
  2898  			iNdEx = preIndex
  2899  			skippy, err := skipTx(dAtA[iNdEx:])
  2900  			if err != nil {
  2901  				return err
  2902  			}
  2903  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2904  				return ErrInvalidLengthTx
  2905  			}
  2906  			if (iNdEx + skippy) > l {
  2907  				return io.ErrUnexpectedEOF
  2908  			}
  2909  			iNdEx += skippy
  2910  		}
  2911  	}
  2912  
  2913  	if iNdEx > l {
  2914  		return io.ErrUnexpectedEOF
  2915  	}
  2916  	return nil
  2917  }
  2918  func (m *MsgUndelegate) Unmarshal(dAtA []byte) error {
  2919  	l := len(dAtA)
  2920  	iNdEx := 0
  2921  	for iNdEx < l {
  2922  		preIndex := iNdEx
  2923  		var wire uint64
  2924  		for shift := uint(0); ; shift += 7 {
  2925  			if shift >= 64 {
  2926  				return ErrIntOverflowTx
  2927  			}
  2928  			if iNdEx >= l {
  2929  				return io.ErrUnexpectedEOF
  2930  			}
  2931  			b := dAtA[iNdEx]
  2932  			iNdEx++
  2933  			wire |= uint64(b&0x7F) << shift
  2934  			if b < 0x80 {
  2935  				break
  2936  			}
  2937  		}
  2938  		fieldNum := int32(wire >> 3)
  2939  		wireType := int(wire & 0x7)
  2940  		if wireType == 4 {
  2941  			return fmt.Errorf("proto: MsgUndelegate: wiretype end group for non-group")
  2942  		}
  2943  		if fieldNum <= 0 {
  2944  			return fmt.Errorf("proto: MsgUndelegate: illegal tag %d (wire type %d)", fieldNum, wire)
  2945  		}
  2946  		switch fieldNum {
  2947  		case 1:
  2948  			if wireType != 2 {
  2949  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  2950  			}
  2951  			var stringLen uint64
  2952  			for shift := uint(0); ; shift += 7 {
  2953  				if shift >= 64 {
  2954  					return ErrIntOverflowTx
  2955  				}
  2956  				if iNdEx >= l {
  2957  					return io.ErrUnexpectedEOF
  2958  				}
  2959  				b := dAtA[iNdEx]
  2960  				iNdEx++
  2961  				stringLen |= uint64(b&0x7F) << shift
  2962  				if b < 0x80 {
  2963  					break
  2964  				}
  2965  			}
  2966  			intStringLen := int(stringLen)
  2967  			if intStringLen < 0 {
  2968  				return ErrInvalidLengthTx
  2969  			}
  2970  			postIndex := iNdEx + intStringLen
  2971  			if postIndex < 0 {
  2972  				return ErrInvalidLengthTx
  2973  			}
  2974  			if postIndex > l {
  2975  				return io.ErrUnexpectedEOF
  2976  			}
  2977  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  2978  			iNdEx = postIndex
  2979  		case 2:
  2980  			if wireType != 2 {
  2981  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  2982  			}
  2983  			var stringLen uint64
  2984  			for shift := uint(0); ; shift += 7 {
  2985  				if shift >= 64 {
  2986  					return ErrIntOverflowTx
  2987  				}
  2988  				if iNdEx >= l {
  2989  					return io.ErrUnexpectedEOF
  2990  				}
  2991  				b := dAtA[iNdEx]
  2992  				iNdEx++
  2993  				stringLen |= uint64(b&0x7F) << shift
  2994  				if b < 0x80 {
  2995  					break
  2996  				}
  2997  			}
  2998  			intStringLen := int(stringLen)
  2999  			if intStringLen < 0 {
  3000  				return ErrInvalidLengthTx
  3001  			}
  3002  			postIndex := iNdEx + intStringLen
  3003  			if postIndex < 0 {
  3004  				return ErrInvalidLengthTx
  3005  			}
  3006  			if postIndex > l {
  3007  				return io.ErrUnexpectedEOF
  3008  			}
  3009  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  3010  			iNdEx = postIndex
  3011  		case 3:
  3012  			if wireType != 2 {
  3013  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  3014  			}
  3015  			var msglen int
  3016  			for shift := uint(0); ; shift += 7 {
  3017  				if shift >= 64 {
  3018  					return ErrIntOverflowTx
  3019  				}
  3020  				if iNdEx >= l {
  3021  					return io.ErrUnexpectedEOF
  3022  				}
  3023  				b := dAtA[iNdEx]
  3024  				iNdEx++
  3025  				msglen |= int(b&0x7F) << shift
  3026  				if b < 0x80 {
  3027  					break
  3028  				}
  3029  			}
  3030  			if msglen < 0 {
  3031  				return ErrInvalidLengthTx
  3032  			}
  3033  			postIndex := iNdEx + msglen
  3034  			if postIndex < 0 {
  3035  				return ErrInvalidLengthTx
  3036  			}
  3037  			if postIndex > l {
  3038  				return io.ErrUnexpectedEOF
  3039  			}
  3040  			if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3041  				return err
  3042  			}
  3043  			iNdEx = postIndex
  3044  		default:
  3045  			iNdEx = preIndex
  3046  			skippy, err := skipTx(dAtA[iNdEx:])
  3047  			if err != nil {
  3048  				return err
  3049  			}
  3050  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3051  				return ErrInvalidLengthTx
  3052  			}
  3053  			if (iNdEx + skippy) > l {
  3054  				return io.ErrUnexpectedEOF
  3055  			}
  3056  			iNdEx += skippy
  3057  		}
  3058  	}
  3059  
  3060  	if iNdEx > l {
  3061  		return io.ErrUnexpectedEOF
  3062  	}
  3063  	return nil
  3064  }
  3065  func (m *MsgUndelegateResponse) Unmarshal(dAtA []byte) error {
  3066  	l := len(dAtA)
  3067  	iNdEx := 0
  3068  	for iNdEx < l {
  3069  		preIndex := iNdEx
  3070  		var wire uint64
  3071  		for shift := uint(0); ; shift += 7 {
  3072  			if shift >= 64 {
  3073  				return ErrIntOverflowTx
  3074  			}
  3075  			if iNdEx >= l {
  3076  				return io.ErrUnexpectedEOF
  3077  			}
  3078  			b := dAtA[iNdEx]
  3079  			iNdEx++
  3080  			wire |= uint64(b&0x7F) << shift
  3081  			if b < 0x80 {
  3082  				break
  3083  			}
  3084  		}
  3085  		fieldNum := int32(wire >> 3)
  3086  		wireType := int(wire & 0x7)
  3087  		if wireType == 4 {
  3088  			return fmt.Errorf("proto: MsgUndelegateResponse: wiretype end group for non-group")
  3089  		}
  3090  		if fieldNum <= 0 {
  3091  			return fmt.Errorf("proto: MsgUndelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3092  		}
  3093  		switch fieldNum {
  3094  		case 1:
  3095  			if wireType != 2 {
  3096  				return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType)
  3097  			}
  3098  			var msglen int
  3099  			for shift := uint(0); ; shift += 7 {
  3100  				if shift >= 64 {
  3101  					return ErrIntOverflowTx
  3102  				}
  3103  				if iNdEx >= l {
  3104  					return io.ErrUnexpectedEOF
  3105  				}
  3106  				b := dAtA[iNdEx]
  3107  				iNdEx++
  3108  				msglen |= int(b&0x7F) << shift
  3109  				if b < 0x80 {
  3110  					break
  3111  				}
  3112  			}
  3113  			if msglen < 0 {
  3114  				return ErrInvalidLengthTx
  3115  			}
  3116  			postIndex := iNdEx + msglen
  3117  			if postIndex < 0 {
  3118  				return ErrInvalidLengthTx
  3119  			}
  3120  			if postIndex > l {
  3121  				return io.ErrUnexpectedEOF
  3122  			}
  3123  			if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CompletionTime, dAtA[iNdEx:postIndex]); err != nil {
  3124  				return err
  3125  			}
  3126  			iNdEx = postIndex
  3127  		case 2:
  3128  			if wireType != 2 {
  3129  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  3130  			}
  3131  			var msglen int
  3132  			for shift := uint(0); ; shift += 7 {
  3133  				if shift >= 64 {
  3134  					return ErrIntOverflowTx
  3135  				}
  3136  				if iNdEx >= l {
  3137  					return io.ErrUnexpectedEOF
  3138  				}
  3139  				b := dAtA[iNdEx]
  3140  				iNdEx++
  3141  				msglen |= int(b&0x7F) << shift
  3142  				if b < 0x80 {
  3143  					break
  3144  				}
  3145  			}
  3146  			if msglen < 0 {
  3147  				return ErrInvalidLengthTx
  3148  			}
  3149  			postIndex := iNdEx + msglen
  3150  			if postIndex < 0 {
  3151  				return ErrInvalidLengthTx
  3152  			}
  3153  			if postIndex > l {
  3154  				return io.ErrUnexpectedEOF
  3155  			}
  3156  			if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3157  				return err
  3158  			}
  3159  			iNdEx = postIndex
  3160  		default:
  3161  			iNdEx = preIndex
  3162  			skippy, err := skipTx(dAtA[iNdEx:])
  3163  			if err != nil {
  3164  				return err
  3165  			}
  3166  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3167  				return ErrInvalidLengthTx
  3168  			}
  3169  			if (iNdEx + skippy) > l {
  3170  				return io.ErrUnexpectedEOF
  3171  			}
  3172  			iNdEx += skippy
  3173  		}
  3174  	}
  3175  
  3176  	if iNdEx > l {
  3177  		return io.ErrUnexpectedEOF
  3178  	}
  3179  	return nil
  3180  }
  3181  func (m *MsgCancelUnbondingDelegation) Unmarshal(dAtA []byte) error {
  3182  	l := len(dAtA)
  3183  	iNdEx := 0
  3184  	for iNdEx < l {
  3185  		preIndex := iNdEx
  3186  		var wire uint64
  3187  		for shift := uint(0); ; shift += 7 {
  3188  			if shift >= 64 {
  3189  				return ErrIntOverflowTx
  3190  			}
  3191  			if iNdEx >= l {
  3192  				return io.ErrUnexpectedEOF
  3193  			}
  3194  			b := dAtA[iNdEx]
  3195  			iNdEx++
  3196  			wire |= uint64(b&0x7F) << shift
  3197  			if b < 0x80 {
  3198  				break
  3199  			}
  3200  		}
  3201  		fieldNum := int32(wire >> 3)
  3202  		wireType := int(wire & 0x7)
  3203  		if wireType == 4 {
  3204  			return fmt.Errorf("proto: MsgCancelUnbondingDelegation: wiretype end group for non-group")
  3205  		}
  3206  		if fieldNum <= 0 {
  3207  			return fmt.Errorf("proto: MsgCancelUnbondingDelegation: illegal tag %d (wire type %d)", fieldNum, wire)
  3208  		}
  3209  		switch fieldNum {
  3210  		case 1:
  3211  			if wireType != 2 {
  3212  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  3213  			}
  3214  			var stringLen uint64
  3215  			for shift := uint(0); ; shift += 7 {
  3216  				if shift >= 64 {
  3217  					return ErrIntOverflowTx
  3218  				}
  3219  				if iNdEx >= l {
  3220  					return io.ErrUnexpectedEOF
  3221  				}
  3222  				b := dAtA[iNdEx]
  3223  				iNdEx++
  3224  				stringLen |= uint64(b&0x7F) << shift
  3225  				if b < 0x80 {
  3226  					break
  3227  				}
  3228  			}
  3229  			intStringLen := int(stringLen)
  3230  			if intStringLen < 0 {
  3231  				return ErrInvalidLengthTx
  3232  			}
  3233  			postIndex := iNdEx + intStringLen
  3234  			if postIndex < 0 {
  3235  				return ErrInvalidLengthTx
  3236  			}
  3237  			if postIndex > l {
  3238  				return io.ErrUnexpectedEOF
  3239  			}
  3240  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  3241  			iNdEx = postIndex
  3242  		case 2:
  3243  			if wireType != 2 {
  3244  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  3245  			}
  3246  			var stringLen uint64
  3247  			for shift := uint(0); ; shift += 7 {
  3248  				if shift >= 64 {
  3249  					return ErrIntOverflowTx
  3250  				}
  3251  				if iNdEx >= l {
  3252  					return io.ErrUnexpectedEOF
  3253  				}
  3254  				b := dAtA[iNdEx]
  3255  				iNdEx++
  3256  				stringLen |= uint64(b&0x7F) << shift
  3257  				if b < 0x80 {
  3258  					break
  3259  				}
  3260  			}
  3261  			intStringLen := int(stringLen)
  3262  			if intStringLen < 0 {
  3263  				return ErrInvalidLengthTx
  3264  			}
  3265  			postIndex := iNdEx + intStringLen
  3266  			if postIndex < 0 {
  3267  				return ErrInvalidLengthTx
  3268  			}
  3269  			if postIndex > l {
  3270  				return io.ErrUnexpectedEOF
  3271  			}
  3272  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  3273  			iNdEx = postIndex
  3274  		case 3:
  3275  			if wireType != 2 {
  3276  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  3277  			}
  3278  			var msglen int
  3279  			for shift := uint(0); ; shift += 7 {
  3280  				if shift >= 64 {
  3281  					return ErrIntOverflowTx
  3282  				}
  3283  				if iNdEx >= l {
  3284  					return io.ErrUnexpectedEOF
  3285  				}
  3286  				b := dAtA[iNdEx]
  3287  				iNdEx++
  3288  				msglen |= int(b&0x7F) << shift
  3289  				if b < 0x80 {
  3290  					break
  3291  				}
  3292  			}
  3293  			if msglen < 0 {
  3294  				return ErrInvalidLengthTx
  3295  			}
  3296  			postIndex := iNdEx + msglen
  3297  			if postIndex < 0 {
  3298  				return ErrInvalidLengthTx
  3299  			}
  3300  			if postIndex > l {
  3301  				return io.ErrUnexpectedEOF
  3302  			}
  3303  			if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3304  				return err
  3305  			}
  3306  			iNdEx = postIndex
  3307  		case 4:
  3308  			if wireType != 0 {
  3309  				return fmt.Errorf("proto: wrong wireType = %d for field CreationHeight", wireType)
  3310  			}
  3311  			m.CreationHeight = 0
  3312  			for shift := uint(0); ; shift += 7 {
  3313  				if shift >= 64 {
  3314  					return ErrIntOverflowTx
  3315  				}
  3316  				if iNdEx >= l {
  3317  					return io.ErrUnexpectedEOF
  3318  				}
  3319  				b := dAtA[iNdEx]
  3320  				iNdEx++
  3321  				m.CreationHeight |= int64(b&0x7F) << shift
  3322  				if b < 0x80 {
  3323  					break
  3324  				}
  3325  			}
  3326  		default:
  3327  			iNdEx = preIndex
  3328  			skippy, err := skipTx(dAtA[iNdEx:])
  3329  			if err != nil {
  3330  				return err
  3331  			}
  3332  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3333  				return ErrInvalidLengthTx
  3334  			}
  3335  			if (iNdEx + skippy) > l {
  3336  				return io.ErrUnexpectedEOF
  3337  			}
  3338  			iNdEx += skippy
  3339  		}
  3340  	}
  3341  
  3342  	if iNdEx > l {
  3343  		return io.ErrUnexpectedEOF
  3344  	}
  3345  	return nil
  3346  }
  3347  func (m *MsgCancelUnbondingDelegationResponse) Unmarshal(dAtA []byte) error {
  3348  	l := len(dAtA)
  3349  	iNdEx := 0
  3350  	for iNdEx < l {
  3351  		preIndex := iNdEx
  3352  		var wire uint64
  3353  		for shift := uint(0); ; shift += 7 {
  3354  			if shift >= 64 {
  3355  				return ErrIntOverflowTx
  3356  			}
  3357  			if iNdEx >= l {
  3358  				return io.ErrUnexpectedEOF
  3359  			}
  3360  			b := dAtA[iNdEx]
  3361  			iNdEx++
  3362  			wire |= uint64(b&0x7F) << shift
  3363  			if b < 0x80 {
  3364  				break
  3365  			}
  3366  		}
  3367  		fieldNum := int32(wire >> 3)
  3368  		wireType := int(wire & 0x7)
  3369  		if wireType == 4 {
  3370  			return fmt.Errorf("proto: MsgCancelUnbondingDelegationResponse: wiretype end group for non-group")
  3371  		}
  3372  		if fieldNum <= 0 {
  3373  			return fmt.Errorf("proto: MsgCancelUnbondingDelegationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3374  		}
  3375  		switch fieldNum {
  3376  		default:
  3377  			iNdEx = preIndex
  3378  			skippy, err := skipTx(dAtA[iNdEx:])
  3379  			if err != nil {
  3380  				return err
  3381  			}
  3382  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3383  				return ErrInvalidLengthTx
  3384  			}
  3385  			if (iNdEx + skippy) > l {
  3386  				return io.ErrUnexpectedEOF
  3387  			}
  3388  			iNdEx += skippy
  3389  		}
  3390  	}
  3391  
  3392  	if iNdEx > l {
  3393  		return io.ErrUnexpectedEOF
  3394  	}
  3395  	return nil
  3396  }
  3397  func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
  3398  	l := len(dAtA)
  3399  	iNdEx := 0
  3400  	for iNdEx < l {
  3401  		preIndex := iNdEx
  3402  		var wire uint64
  3403  		for shift := uint(0); ; shift += 7 {
  3404  			if shift >= 64 {
  3405  				return ErrIntOverflowTx
  3406  			}
  3407  			if iNdEx >= l {
  3408  				return io.ErrUnexpectedEOF
  3409  			}
  3410  			b := dAtA[iNdEx]
  3411  			iNdEx++
  3412  			wire |= uint64(b&0x7F) << shift
  3413  			if b < 0x80 {
  3414  				break
  3415  			}
  3416  		}
  3417  		fieldNum := int32(wire >> 3)
  3418  		wireType := int(wire & 0x7)
  3419  		if wireType == 4 {
  3420  			return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
  3421  		}
  3422  		if fieldNum <= 0 {
  3423  			return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
  3424  		}
  3425  		switch fieldNum {
  3426  		case 1:
  3427  			if wireType != 2 {
  3428  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
  3429  			}
  3430  			var stringLen uint64
  3431  			for shift := uint(0); ; shift += 7 {
  3432  				if shift >= 64 {
  3433  					return ErrIntOverflowTx
  3434  				}
  3435  				if iNdEx >= l {
  3436  					return io.ErrUnexpectedEOF
  3437  				}
  3438  				b := dAtA[iNdEx]
  3439  				iNdEx++
  3440  				stringLen |= uint64(b&0x7F) << shift
  3441  				if b < 0x80 {
  3442  					break
  3443  				}
  3444  			}
  3445  			intStringLen := int(stringLen)
  3446  			if intStringLen < 0 {
  3447  				return ErrInvalidLengthTx
  3448  			}
  3449  			postIndex := iNdEx + intStringLen
  3450  			if postIndex < 0 {
  3451  				return ErrInvalidLengthTx
  3452  			}
  3453  			if postIndex > l {
  3454  				return io.ErrUnexpectedEOF
  3455  			}
  3456  			m.Authority = string(dAtA[iNdEx:postIndex])
  3457  			iNdEx = postIndex
  3458  		case 2:
  3459  			if wireType != 2 {
  3460  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  3461  			}
  3462  			var msglen int
  3463  			for shift := uint(0); ; shift += 7 {
  3464  				if shift >= 64 {
  3465  					return ErrIntOverflowTx
  3466  				}
  3467  				if iNdEx >= l {
  3468  					return io.ErrUnexpectedEOF
  3469  				}
  3470  				b := dAtA[iNdEx]
  3471  				iNdEx++
  3472  				msglen |= int(b&0x7F) << shift
  3473  				if b < 0x80 {
  3474  					break
  3475  				}
  3476  			}
  3477  			if msglen < 0 {
  3478  				return ErrInvalidLengthTx
  3479  			}
  3480  			postIndex := iNdEx + msglen
  3481  			if postIndex < 0 {
  3482  				return ErrInvalidLengthTx
  3483  			}
  3484  			if postIndex > l {
  3485  				return io.ErrUnexpectedEOF
  3486  			}
  3487  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3488  				return err
  3489  			}
  3490  			iNdEx = postIndex
  3491  		default:
  3492  			iNdEx = preIndex
  3493  			skippy, err := skipTx(dAtA[iNdEx:])
  3494  			if err != nil {
  3495  				return err
  3496  			}
  3497  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3498  				return ErrInvalidLengthTx
  3499  			}
  3500  			if (iNdEx + skippy) > l {
  3501  				return io.ErrUnexpectedEOF
  3502  			}
  3503  			iNdEx += skippy
  3504  		}
  3505  	}
  3506  
  3507  	if iNdEx > l {
  3508  		return io.ErrUnexpectedEOF
  3509  	}
  3510  	return nil
  3511  }
  3512  func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
  3513  	l := len(dAtA)
  3514  	iNdEx := 0
  3515  	for iNdEx < l {
  3516  		preIndex := iNdEx
  3517  		var wire uint64
  3518  		for shift := uint(0); ; shift += 7 {
  3519  			if shift >= 64 {
  3520  				return ErrIntOverflowTx
  3521  			}
  3522  			if iNdEx >= l {
  3523  				return io.ErrUnexpectedEOF
  3524  			}
  3525  			b := dAtA[iNdEx]
  3526  			iNdEx++
  3527  			wire |= uint64(b&0x7F) << shift
  3528  			if b < 0x80 {
  3529  				break
  3530  			}
  3531  		}
  3532  		fieldNum := int32(wire >> 3)
  3533  		wireType := int(wire & 0x7)
  3534  		if wireType == 4 {
  3535  			return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
  3536  		}
  3537  		if fieldNum <= 0 {
  3538  			return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3539  		}
  3540  		switch fieldNum {
  3541  		default:
  3542  			iNdEx = preIndex
  3543  			skippy, err := skipTx(dAtA[iNdEx:])
  3544  			if err != nil {
  3545  				return err
  3546  			}
  3547  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3548  				return ErrInvalidLengthTx
  3549  			}
  3550  			if (iNdEx + skippy) > l {
  3551  				return io.ErrUnexpectedEOF
  3552  			}
  3553  			iNdEx += skippy
  3554  		}
  3555  	}
  3556  
  3557  	if iNdEx > l {
  3558  		return io.ErrUnexpectedEOF
  3559  	}
  3560  	return nil
  3561  }
  3562  func skipTx(dAtA []byte) (n int, err error) {
  3563  	l := len(dAtA)
  3564  	iNdEx := 0
  3565  	depth := 0
  3566  	for iNdEx < l {
  3567  		var wire uint64
  3568  		for shift := uint(0); ; shift += 7 {
  3569  			if shift >= 64 {
  3570  				return 0, ErrIntOverflowTx
  3571  			}
  3572  			if iNdEx >= l {
  3573  				return 0, io.ErrUnexpectedEOF
  3574  			}
  3575  			b := dAtA[iNdEx]
  3576  			iNdEx++
  3577  			wire |= (uint64(b) & 0x7F) << shift
  3578  			if b < 0x80 {
  3579  				break
  3580  			}
  3581  		}
  3582  		wireType := int(wire & 0x7)
  3583  		switch wireType {
  3584  		case 0:
  3585  			for shift := uint(0); ; shift += 7 {
  3586  				if shift >= 64 {
  3587  					return 0, ErrIntOverflowTx
  3588  				}
  3589  				if iNdEx >= l {
  3590  					return 0, io.ErrUnexpectedEOF
  3591  				}
  3592  				iNdEx++
  3593  				if dAtA[iNdEx-1] < 0x80 {
  3594  					break
  3595  				}
  3596  			}
  3597  		case 1:
  3598  			iNdEx += 8
  3599  		case 2:
  3600  			var length int
  3601  			for shift := uint(0); ; shift += 7 {
  3602  				if shift >= 64 {
  3603  					return 0, ErrIntOverflowTx
  3604  				}
  3605  				if iNdEx >= l {
  3606  					return 0, io.ErrUnexpectedEOF
  3607  				}
  3608  				b := dAtA[iNdEx]
  3609  				iNdEx++
  3610  				length |= (int(b) & 0x7F) << shift
  3611  				if b < 0x80 {
  3612  					break
  3613  				}
  3614  			}
  3615  			if length < 0 {
  3616  				return 0, ErrInvalidLengthTx
  3617  			}
  3618  			iNdEx += length
  3619  		case 3:
  3620  			depth++
  3621  		case 4:
  3622  			if depth == 0 {
  3623  				return 0, ErrUnexpectedEndOfGroupTx
  3624  			}
  3625  			depth--
  3626  		case 5:
  3627  			iNdEx += 4
  3628  		default:
  3629  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3630  		}
  3631  		if iNdEx < 0 {
  3632  			return 0, ErrInvalidLengthTx
  3633  		}
  3634  		if depth == 0 {
  3635  			return iNdEx, nil
  3636  		}
  3637  	}
  3638  	return 0, io.ErrUnexpectedEOF
  3639  }
  3640  
  3641  var (
  3642  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
  3643  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
  3644  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
  3645  )