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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/distribution/v1beta1/genesis.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/cosmos/cosmos-proto"
     9  	github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
    10  	types "github.com/cosmos/cosmos-sdk/types"
    11  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    12  	_ "github.com/cosmos/gogoproto/gogoproto"
    13  	proto "github.com/cosmos/gogoproto/proto"
    14  	io "io"
    15  	math "math"
    16  	math_bits "math/bits"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = fmt.Errorf
    22  var _ = math.Inf
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  // DelegatorWithdrawInfo is the address for where distributions rewards are
    31  // withdrawn to by default this struct is only used at genesis to feed in
    32  // default withdraw addresses.
    33  type DelegatorWithdrawInfo struct {
    34  	// delegator_address is the address of the delegator.
    35  	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
    36  	// withdraw_address is the address to withdraw the delegation rewards to.
    37  	WithdrawAddress string `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"`
    38  }
    39  
    40  func (m *DelegatorWithdrawInfo) Reset()         { *m = DelegatorWithdrawInfo{} }
    41  func (m *DelegatorWithdrawInfo) String() string { return proto.CompactTextString(m) }
    42  func (*DelegatorWithdrawInfo) ProtoMessage()    {}
    43  func (*DelegatorWithdrawInfo) Descriptor() ([]byte, []int) {
    44  	return fileDescriptor_76eed0f9489db580, []int{0}
    45  }
    46  func (m *DelegatorWithdrawInfo) XXX_Unmarshal(b []byte) error {
    47  	return m.Unmarshal(b)
    48  }
    49  func (m *DelegatorWithdrawInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    50  	if deterministic {
    51  		return xxx_messageInfo_DelegatorWithdrawInfo.Marshal(b, m, deterministic)
    52  	} else {
    53  		b = b[:cap(b)]
    54  		n, err := m.MarshalToSizedBuffer(b)
    55  		if err != nil {
    56  			return nil, err
    57  		}
    58  		return b[:n], nil
    59  	}
    60  }
    61  func (m *DelegatorWithdrawInfo) XXX_Merge(src proto.Message) {
    62  	xxx_messageInfo_DelegatorWithdrawInfo.Merge(m, src)
    63  }
    64  func (m *DelegatorWithdrawInfo) XXX_Size() int {
    65  	return m.Size()
    66  }
    67  func (m *DelegatorWithdrawInfo) XXX_DiscardUnknown() {
    68  	xxx_messageInfo_DelegatorWithdrawInfo.DiscardUnknown(m)
    69  }
    70  
    71  var xxx_messageInfo_DelegatorWithdrawInfo proto.InternalMessageInfo
    72  
    73  // ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
    74  type ValidatorOutstandingRewardsRecord struct {
    75  	// validator_address is the address of the validator.
    76  	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
    77  	// outstanding_rewards represents the outstanding rewards of a validator.
    78  	OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outstanding_rewards"`
    79  }
    80  
    81  func (m *ValidatorOutstandingRewardsRecord) Reset()         { *m = ValidatorOutstandingRewardsRecord{} }
    82  func (m *ValidatorOutstandingRewardsRecord) String() string { return proto.CompactTextString(m) }
    83  func (*ValidatorOutstandingRewardsRecord) ProtoMessage()    {}
    84  func (*ValidatorOutstandingRewardsRecord) Descriptor() ([]byte, []int) {
    85  	return fileDescriptor_76eed0f9489db580, []int{1}
    86  }
    87  func (m *ValidatorOutstandingRewardsRecord) XXX_Unmarshal(b []byte) error {
    88  	return m.Unmarshal(b)
    89  }
    90  func (m *ValidatorOutstandingRewardsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    91  	if deterministic {
    92  		return xxx_messageInfo_ValidatorOutstandingRewardsRecord.Marshal(b, m, deterministic)
    93  	} else {
    94  		b = b[:cap(b)]
    95  		n, err := m.MarshalToSizedBuffer(b)
    96  		if err != nil {
    97  			return nil, err
    98  		}
    99  		return b[:n], nil
   100  	}
   101  }
   102  func (m *ValidatorOutstandingRewardsRecord) XXX_Merge(src proto.Message) {
   103  	xxx_messageInfo_ValidatorOutstandingRewardsRecord.Merge(m, src)
   104  }
   105  func (m *ValidatorOutstandingRewardsRecord) XXX_Size() int {
   106  	return m.Size()
   107  }
   108  func (m *ValidatorOutstandingRewardsRecord) XXX_DiscardUnknown() {
   109  	xxx_messageInfo_ValidatorOutstandingRewardsRecord.DiscardUnknown(m)
   110  }
   111  
   112  var xxx_messageInfo_ValidatorOutstandingRewardsRecord proto.InternalMessageInfo
   113  
   114  // ValidatorAccumulatedCommissionRecord is used for import / export via genesis
   115  // json.
   116  type ValidatorAccumulatedCommissionRecord struct {
   117  	// validator_address is the address of the validator.
   118  	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   119  	// accumulated is the accumulated commission of a validator.
   120  	Accumulated ValidatorAccumulatedCommission `protobuf:"bytes,2,opt,name=accumulated,proto3" json:"accumulated"`
   121  }
   122  
   123  func (m *ValidatorAccumulatedCommissionRecord) Reset()         { *m = ValidatorAccumulatedCommissionRecord{} }
   124  func (m *ValidatorAccumulatedCommissionRecord) String() string { return proto.CompactTextString(m) }
   125  func (*ValidatorAccumulatedCommissionRecord) ProtoMessage()    {}
   126  func (*ValidatorAccumulatedCommissionRecord) Descriptor() ([]byte, []int) {
   127  	return fileDescriptor_76eed0f9489db580, []int{2}
   128  }
   129  func (m *ValidatorAccumulatedCommissionRecord) XXX_Unmarshal(b []byte) error {
   130  	return m.Unmarshal(b)
   131  }
   132  func (m *ValidatorAccumulatedCommissionRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   133  	if deterministic {
   134  		return xxx_messageInfo_ValidatorAccumulatedCommissionRecord.Marshal(b, m, deterministic)
   135  	} else {
   136  		b = b[:cap(b)]
   137  		n, err := m.MarshalToSizedBuffer(b)
   138  		if err != nil {
   139  			return nil, err
   140  		}
   141  		return b[:n], nil
   142  	}
   143  }
   144  func (m *ValidatorAccumulatedCommissionRecord) XXX_Merge(src proto.Message) {
   145  	xxx_messageInfo_ValidatorAccumulatedCommissionRecord.Merge(m, src)
   146  }
   147  func (m *ValidatorAccumulatedCommissionRecord) XXX_Size() int {
   148  	return m.Size()
   149  }
   150  func (m *ValidatorAccumulatedCommissionRecord) XXX_DiscardUnknown() {
   151  	xxx_messageInfo_ValidatorAccumulatedCommissionRecord.DiscardUnknown(m)
   152  }
   153  
   154  var xxx_messageInfo_ValidatorAccumulatedCommissionRecord proto.InternalMessageInfo
   155  
   156  // ValidatorHistoricalRewardsRecord is used for import / export via genesis
   157  // json.
   158  type ValidatorHistoricalRewardsRecord struct {
   159  	// validator_address is the address of the validator.
   160  	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   161  	// period defines the period the historical rewards apply to.
   162  	Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
   163  	// rewards defines the historical rewards of a validator.
   164  	Rewards ValidatorHistoricalRewards `protobuf:"bytes,3,opt,name=rewards,proto3" json:"rewards"`
   165  }
   166  
   167  func (m *ValidatorHistoricalRewardsRecord) Reset()         { *m = ValidatorHistoricalRewardsRecord{} }
   168  func (m *ValidatorHistoricalRewardsRecord) String() string { return proto.CompactTextString(m) }
   169  func (*ValidatorHistoricalRewardsRecord) ProtoMessage()    {}
   170  func (*ValidatorHistoricalRewardsRecord) Descriptor() ([]byte, []int) {
   171  	return fileDescriptor_76eed0f9489db580, []int{3}
   172  }
   173  func (m *ValidatorHistoricalRewardsRecord) XXX_Unmarshal(b []byte) error {
   174  	return m.Unmarshal(b)
   175  }
   176  func (m *ValidatorHistoricalRewardsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   177  	if deterministic {
   178  		return xxx_messageInfo_ValidatorHistoricalRewardsRecord.Marshal(b, m, deterministic)
   179  	} else {
   180  		b = b[:cap(b)]
   181  		n, err := m.MarshalToSizedBuffer(b)
   182  		if err != nil {
   183  			return nil, err
   184  		}
   185  		return b[:n], nil
   186  	}
   187  }
   188  func (m *ValidatorHistoricalRewardsRecord) XXX_Merge(src proto.Message) {
   189  	xxx_messageInfo_ValidatorHistoricalRewardsRecord.Merge(m, src)
   190  }
   191  func (m *ValidatorHistoricalRewardsRecord) XXX_Size() int {
   192  	return m.Size()
   193  }
   194  func (m *ValidatorHistoricalRewardsRecord) XXX_DiscardUnknown() {
   195  	xxx_messageInfo_ValidatorHistoricalRewardsRecord.DiscardUnknown(m)
   196  }
   197  
   198  var xxx_messageInfo_ValidatorHistoricalRewardsRecord proto.InternalMessageInfo
   199  
   200  // ValidatorCurrentRewardsRecord is used for import / export via genesis json.
   201  type ValidatorCurrentRewardsRecord struct {
   202  	// validator_address is the address of the validator.
   203  	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   204  	// rewards defines the current rewards of a validator.
   205  	Rewards ValidatorCurrentRewards `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards"`
   206  }
   207  
   208  func (m *ValidatorCurrentRewardsRecord) Reset()         { *m = ValidatorCurrentRewardsRecord{} }
   209  func (m *ValidatorCurrentRewardsRecord) String() string { return proto.CompactTextString(m) }
   210  func (*ValidatorCurrentRewardsRecord) ProtoMessage()    {}
   211  func (*ValidatorCurrentRewardsRecord) Descriptor() ([]byte, []int) {
   212  	return fileDescriptor_76eed0f9489db580, []int{4}
   213  }
   214  func (m *ValidatorCurrentRewardsRecord) XXX_Unmarshal(b []byte) error {
   215  	return m.Unmarshal(b)
   216  }
   217  func (m *ValidatorCurrentRewardsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   218  	if deterministic {
   219  		return xxx_messageInfo_ValidatorCurrentRewardsRecord.Marshal(b, m, deterministic)
   220  	} else {
   221  		b = b[:cap(b)]
   222  		n, err := m.MarshalToSizedBuffer(b)
   223  		if err != nil {
   224  			return nil, err
   225  		}
   226  		return b[:n], nil
   227  	}
   228  }
   229  func (m *ValidatorCurrentRewardsRecord) XXX_Merge(src proto.Message) {
   230  	xxx_messageInfo_ValidatorCurrentRewardsRecord.Merge(m, src)
   231  }
   232  func (m *ValidatorCurrentRewardsRecord) XXX_Size() int {
   233  	return m.Size()
   234  }
   235  func (m *ValidatorCurrentRewardsRecord) XXX_DiscardUnknown() {
   236  	xxx_messageInfo_ValidatorCurrentRewardsRecord.DiscardUnknown(m)
   237  }
   238  
   239  var xxx_messageInfo_ValidatorCurrentRewardsRecord proto.InternalMessageInfo
   240  
   241  // DelegatorStartingInfoRecord used for import / export via genesis json.
   242  type DelegatorStartingInfoRecord struct {
   243  	// delegator_address is the address of the delegator.
   244  	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
   245  	// validator_address is the address of the validator.
   246  	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   247  	// starting_info defines the starting info of a delegator.
   248  	StartingInfo DelegatorStartingInfo `protobuf:"bytes,3,opt,name=starting_info,json=startingInfo,proto3" json:"starting_info"`
   249  }
   250  
   251  func (m *DelegatorStartingInfoRecord) Reset()         { *m = DelegatorStartingInfoRecord{} }
   252  func (m *DelegatorStartingInfoRecord) String() string { return proto.CompactTextString(m) }
   253  func (*DelegatorStartingInfoRecord) ProtoMessage()    {}
   254  func (*DelegatorStartingInfoRecord) Descriptor() ([]byte, []int) {
   255  	return fileDescriptor_76eed0f9489db580, []int{5}
   256  }
   257  func (m *DelegatorStartingInfoRecord) XXX_Unmarshal(b []byte) error {
   258  	return m.Unmarshal(b)
   259  }
   260  func (m *DelegatorStartingInfoRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   261  	if deterministic {
   262  		return xxx_messageInfo_DelegatorStartingInfoRecord.Marshal(b, m, deterministic)
   263  	} else {
   264  		b = b[:cap(b)]
   265  		n, err := m.MarshalToSizedBuffer(b)
   266  		if err != nil {
   267  			return nil, err
   268  		}
   269  		return b[:n], nil
   270  	}
   271  }
   272  func (m *DelegatorStartingInfoRecord) XXX_Merge(src proto.Message) {
   273  	xxx_messageInfo_DelegatorStartingInfoRecord.Merge(m, src)
   274  }
   275  func (m *DelegatorStartingInfoRecord) XXX_Size() int {
   276  	return m.Size()
   277  }
   278  func (m *DelegatorStartingInfoRecord) XXX_DiscardUnknown() {
   279  	xxx_messageInfo_DelegatorStartingInfoRecord.DiscardUnknown(m)
   280  }
   281  
   282  var xxx_messageInfo_DelegatorStartingInfoRecord proto.InternalMessageInfo
   283  
   284  // ValidatorSlashEventRecord is used for import / export via genesis json.
   285  type ValidatorSlashEventRecord struct {
   286  	// validator_address is the address of the validator.
   287  	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   288  	// height defines the block height at which the slash event occurred.
   289  	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
   290  	// period is the period of the slash event.
   291  	Period uint64 `protobuf:"varint,3,opt,name=period,proto3" json:"period,omitempty"`
   292  	// validator_slash_event describes the slash event.
   293  	ValidatorSlashEvent ValidatorSlashEvent `protobuf:"bytes,4,opt,name=validator_slash_event,json=validatorSlashEvent,proto3" json:"validator_slash_event"`
   294  }
   295  
   296  func (m *ValidatorSlashEventRecord) Reset()         { *m = ValidatorSlashEventRecord{} }
   297  func (m *ValidatorSlashEventRecord) String() string { return proto.CompactTextString(m) }
   298  func (*ValidatorSlashEventRecord) ProtoMessage()    {}
   299  func (*ValidatorSlashEventRecord) Descriptor() ([]byte, []int) {
   300  	return fileDescriptor_76eed0f9489db580, []int{6}
   301  }
   302  func (m *ValidatorSlashEventRecord) XXX_Unmarshal(b []byte) error {
   303  	return m.Unmarshal(b)
   304  }
   305  func (m *ValidatorSlashEventRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   306  	if deterministic {
   307  		return xxx_messageInfo_ValidatorSlashEventRecord.Marshal(b, m, deterministic)
   308  	} else {
   309  		b = b[:cap(b)]
   310  		n, err := m.MarshalToSizedBuffer(b)
   311  		if err != nil {
   312  			return nil, err
   313  		}
   314  		return b[:n], nil
   315  	}
   316  }
   317  func (m *ValidatorSlashEventRecord) XXX_Merge(src proto.Message) {
   318  	xxx_messageInfo_ValidatorSlashEventRecord.Merge(m, src)
   319  }
   320  func (m *ValidatorSlashEventRecord) XXX_Size() int {
   321  	return m.Size()
   322  }
   323  func (m *ValidatorSlashEventRecord) XXX_DiscardUnknown() {
   324  	xxx_messageInfo_ValidatorSlashEventRecord.DiscardUnknown(m)
   325  }
   326  
   327  var xxx_messageInfo_ValidatorSlashEventRecord proto.InternalMessageInfo
   328  
   329  // GenesisState defines the distribution module's genesis state.
   330  type GenesisState struct {
   331  	// params defines all the parameters of the module.
   332  	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
   333  	// fee_pool defines the fee pool at genesis.
   334  	FeePool FeePool `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3" json:"fee_pool"`
   335  	// fee_pool defines the delegator withdraw infos at genesis.
   336  	DelegatorWithdrawInfos []DelegatorWithdrawInfo `protobuf:"bytes,3,rep,name=delegator_withdraw_infos,json=delegatorWithdrawInfos,proto3" json:"delegator_withdraw_infos"`
   337  	// fee_pool defines the previous proposer at genesis.
   338  	PreviousProposer string `protobuf:"bytes,4,opt,name=previous_proposer,json=previousProposer,proto3" json:"previous_proposer,omitempty"`
   339  	// fee_pool defines the outstanding rewards of all validators at genesis.
   340  	OutstandingRewards []ValidatorOutstandingRewardsRecord `protobuf:"bytes,5,rep,name=outstanding_rewards,json=outstandingRewards,proto3" json:"outstanding_rewards"`
   341  	// fee_pool defines the accumulated commissions of all validators at genesis.
   342  	ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord `protobuf:"bytes,6,rep,name=validator_accumulated_commissions,json=validatorAccumulatedCommissions,proto3" json:"validator_accumulated_commissions"`
   343  	// fee_pool defines the historical rewards of all validators at genesis.
   344  	ValidatorHistoricalRewards []ValidatorHistoricalRewardsRecord `protobuf:"bytes,7,rep,name=validator_historical_rewards,json=validatorHistoricalRewards,proto3" json:"validator_historical_rewards"`
   345  	// fee_pool defines the current rewards of all validators at genesis.
   346  	ValidatorCurrentRewards []ValidatorCurrentRewardsRecord `protobuf:"bytes,8,rep,name=validator_current_rewards,json=validatorCurrentRewards,proto3" json:"validator_current_rewards"`
   347  	// fee_pool defines the delegator starting infos at genesis.
   348  	DelegatorStartingInfos []DelegatorStartingInfoRecord `protobuf:"bytes,9,rep,name=delegator_starting_infos,json=delegatorStartingInfos,proto3" json:"delegator_starting_infos"`
   349  	// fee_pool defines the validator slash events at genesis.
   350  	ValidatorSlashEvents []ValidatorSlashEventRecord `protobuf:"bytes,10,rep,name=validator_slash_events,json=validatorSlashEvents,proto3" json:"validator_slash_events"`
   351  }
   352  
   353  func (m *GenesisState) Reset()         { *m = GenesisState{} }
   354  func (m *GenesisState) String() string { return proto.CompactTextString(m) }
   355  func (*GenesisState) ProtoMessage()    {}
   356  func (*GenesisState) Descriptor() ([]byte, []int) {
   357  	return fileDescriptor_76eed0f9489db580, []int{7}
   358  }
   359  func (m *GenesisState) XXX_Unmarshal(b []byte) error {
   360  	return m.Unmarshal(b)
   361  }
   362  func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   363  	if deterministic {
   364  		return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
   365  	} else {
   366  		b = b[:cap(b)]
   367  		n, err := m.MarshalToSizedBuffer(b)
   368  		if err != nil {
   369  			return nil, err
   370  		}
   371  		return b[:n], nil
   372  	}
   373  }
   374  func (m *GenesisState) XXX_Merge(src proto.Message) {
   375  	xxx_messageInfo_GenesisState.Merge(m, src)
   376  }
   377  func (m *GenesisState) XXX_Size() int {
   378  	return m.Size()
   379  }
   380  func (m *GenesisState) XXX_DiscardUnknown() {
   381  	xxx_messageInfo_GenesisState.DiscardUnknown(m)
   382  }
   383  
   384  var xxx_messageInfo_GenesisState proto.InternalMessageInfo
   385  
   386  func init() {
   387  	proto.RegisterType((*DelegatorWithdrawInfo)(nil), "cosmos.distribution.v1beta1.DelegatorWithdrawInfo")
   388  	proto.RegisterType((*ValidatorOutstandingRewardsRecord)(nil), "cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord")
   389  	proto.RegisterType((*ValidatorAccumulatedCommissionRecord)(nil), "cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord")
   390  	proto.RegisterType((*ValidatorHistoricalRewardsRecord)(nil), "cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord")
   391  	proto.RegisterType((*ValidatorCurrentRewardsRecord)(nil), "cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord")
   392  	proto.RegisterType((*DelegatorStartingInfoRecord)(nil), "cosmos.distribution.v1beta1.DelegatorStartingInfoRecord")
   393  	proto.RegisterType((*ValidatorSlashEventRecord)(nil), "cosmos.distribution.v1beta1.ValidatorSlashEventRecord")
   394  	proto.RegisterType((*GenesisState)(nil), "cosmos.distribution.v1beta1.GenesisState")
   395  }
   396  
   397  func init() {
   398  	proto.RegisterFile("cosmos/distribution/v1beta1/genesis.proto", fileDescriptor_76eed0f9489db580)
   399  }
   400  
   401  var fileDescriptor_76eed0f9489db580 = []byte{
   402  	// 938 bytes of a gzipped FileDescriptorProto
   403  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0x1b, 0x45,
   404  	0x14, 0xf6, 0x3a, 0x25, 0x4d, 0x26, 0x45, 0x34, 0xd3, 0x34, 0x6c, 0xd2, 0x76, 0x9d, 0x94, 0x1e,
   405  	0x0a, 0x28, 0x6b, 0x12, 0x10, 0x54, 0x45, 0x20, 0x35, 0x6e, 0xcb, 0x8f, 0x03, 0x8d, 0x6c, 0x09,
   406  	0x04, 0x42, 0xb2, 0xc6, 0xbb, 0xe3, 0xf5, 0x08, 0x7b, 0xc7, 0x9a, 0x19, 0xaf, 0x01, 0x89, 0x03,
   407  	0xa7, 0x22, 0xc4, 0x81, 0x13, 0xe2, 0x58, 0x71, 0xaa, 0x90, 0x90, 0x38, 0xf4, 0x8f, 0xe8, 0xb1,
   408  	0xaa, 0x38, 0x70, 0x02, 0xe4, 0x1c, 0x40, 0x1c, 0xf9, 0x0b, 0xd0, 0xce, 0xcc, 0xee, 0x8e, 0xb3,
   409  	0xdb, 0xad, 0x1b, 0xf0, 0xa5, 0x8d, 0x67, 0xde, 0x7b, 0xdf, 0xf7, 0xbd, 0xf7, 0xf6, 0xbd, 0x01,
   410  	0xcf, 0x7b, 0x94, 0x0f, 0x28, 0xaf, 0xfb, 0x84, 0x0b, 0x46, 0x3a, 0x23, 0x41, 0x68, 0x58, 0x8f,
   411  	0x76, 0x3b, 0x58, 0xa0, 0xdd, 0x7a, 0x80, 0x43, 0xcc, 0x09, 0x77, 0x87, 0x8c, 0x0a, 0x0a, 0xcf,
   412  	0x29, 0x53, 0xd7, 0x34, 0x75, 0xb5, 0xe9, 0xe6, 0x5a, 0x40, 0x03, 0x2a, 0xed, 0xea, 0xf1, 0x5f,
   413  	0xca, 0x65, 0xd3, 0xd1, 0xd1, 0x3b, 0x88, 0xe3, 0x34, 0xaa, 0x47, 0x49, 0xa8, 0xef, 0xdd, 0x32,
   414  	0xf4, 0x29, 0x1c, 0x65, 0xbf, 0xa1, 0xec, 0xdb, 0x0a, 0x48, 0xf3, 0x51, 0x57, 0xab, 0x68, 0x40,
   415  	0x42, 0x5a, 0x97, 0xff, 0xaa, 0xa3, 0x8b, 0x3f, 0x59, 0xe0, 0xec, 0x75, 0xdc, 0xc7, 0x01, 0x12,
   416  	0x94, 0x7d, 0x40, 0x44, 0xcf, 0x67, 0x68, 0xfc, 0x4e, 0xd8, 0xa5, 0xf0, 0x06, 0x58, 0xf5, 0x93,
   417  	0x8b, 0x36, 0xf2, 0x7d, 0x86, 0x39, 0xb7, 0xad, 0x2d, 0xeb, 0xf2, 0xf2, 0xbe, 0xfd, 0xf0, 0xde,
   418  	0xce, 0x9a, 0x8e, 0x7c, 0x4d, 0xdd, 0xb4, 0x04, 0x23, 0x61, 0xd0, 0x3c, 0x9d, 0xba, 0xe8, 0x73,
   419  	0xd8, 0x00, 0xa7, 0xc7, 0x3a, 0x6c, 0x1a, 0xa5, 0xfa, 0x98, 0x28, 0xcf, 0x24, 0x1e, 0xfa, 0xf8,
   420  	0xea, 0xd2, 0x57, 0x77, 0x6a, 0x95, 0xbf, 0xee, 0xd4, 0x2a, 0x17, 0x6f, 0x57, 0xc1, 0xf6, 0xfb,
   421  	0xa8, 0x4f, 0xfc, 0x18, 0xe3, 0xd6, 0x48, 0x70, 0x81, 0x42, 0x3f, 0xf6, 0xc1, 0x63, 0xc4, 0x7c,
   422  	0xde, 0xc4, 0x1e, 0x65, 0x3e, 0x7c, 0x0f, 0xac, 0x46, 0x89, 0xd1, 0x11, 0xee, 0xdb, 0x0f, 0xef,
   423  	0xed, 0x5c, 0xd0, 0xa8, 0x69, 0xa0, 0x23, 0x22, 0xa2, 0x23, 0xe7, 0xf0, 0xb6, 0x05, 0xce, 0xd0,
   424  	0x0c, 0xac, 0xcd, 0x14, 0x9a, 0x5d, 0xdd, 0x5a, 0xb8, 0xbc, 0xb2, 0x77, 0x5e, 0x97, 0xc8, 0x8d,
   425  	0x4b, 0x98, 0x54, 0xdb, 0xbd, 0x8e, 0xbd, 0x06, 0x25, 0xe1, 0xfe, 0x95, 0xfb, 0xbf, 0xd5, 0x2a,
   426  	0x3f, 0xfe, 0x5e, 0x7b, 0x31, 0x20, 0xa2, 0x37, 0xea, 0xb8, 0x1e, 0x1d, 0xe8, 0xaa, 0xe8, 0xff,
   427  	0x76, 0xb8, 0xff, 0x49, 0x5d, 0x7c, 0x36, 0xc4, 0x3c, 0xf1, 0xe1, 0x77, 0xff, 0xfc, 0xf9, 0x05,
   428  	0xab, 0x09, 0x69, 0x4e, 0x9f, 0x91, 0x89, 0xbf, 0x2d, 0x70, 0x29, 0x13, 0xe0, 0x79, 0xa3, 0xc1,
   429  	0xa8, 0x8f, 0x04, 0xf6, 0x1b, 0x74, 0x30, 0x20, 0x9c, 0x13, 0x1a, 0xce, 0x29, 0x19, 0x3d, 0xb0,
   430  	0x82, 0x32, 0x38, 0x59, 0xcc, 0x95, 0xbd, 0xd7, 0xdd, 0x92, 0xce, 0x77, 0xcb, 0x79, 0xee, 0x2f,
   431  	0xc7, 0x29, 0x52, 0x9a, 0xcd, 0xd0, 0x86, 0xd8, 0x7f, 0x2c, 0xb0, 0x95, 0x06, 0x79, 0x9b, 0x70,
   432  	0x41, 0x19, 0xf1, 0x50, 0x7f, 0xbe, 0x55, 0x5f, 0x07, 0x8b, 0x43, 0xcc, 0x08, 0x55, 0x1a, 0x4f,
   433  	0x34, 0xf5, 0x2f, 0xf8, 0x31, 0x38, 0x99, 0x34, 0xc0, 0x82, 0x14, 0xff, 0xda, 0x6c, 0xe2, 0x73,
   434  	0xbc, 0x4d, 0xe1, 0x49, 0x48, 0x43, 0xf4, 0x2f, 0x16, 0xb8, 0x90, 0x3a, 0x37, 0x46, 0x8c, 0xe1,
   435  	0x50, 0xcc, 0x57, 0xf1, 0x87, 0x99, 0x32, 0x55, 0xd6, 0x57, 0x66, 0x53, 0x36, 0x4d, 0xee, 0x31,
   436  	0xb2, 0x7e, 0xa8, 0x82, 0x73, 0xe9, 0xc8, 0x69, 0x09, 0xc4, 0x04, 0x09, 0x83, 0x78, 0xe4, 0x68,
   437  	0x51, 0xff, 0xd3, 0xe0, 0x29, 0xcc, 0x4d, 0xf5, 0xf8, 0xb9, 0xe9, 0x80, 0xa7, 0xb9, 0x26, 0xdb,
   438  	0x26, 0x61, 0x97, 0xea, 0xda, 0xef, 0x95, 0x66, 0xa8, 0x50, 0xa7, 0x99, 0x9f, 0x53, 0xdc, 0xb8,
   439  	0x30, 0x92, 0xf4, 0x5d, 0x15, 0x6c, 0xa4, 0xd4, 0x5a, 0x7d, 0xc4, 0x7b, 0x37, 0x22, 0x99, 0xe1,
   440  	0x79, 0x75, 0x7a, 0x0f, 0x93, 0xa0, 0x27, 0x92, 0x4e, 0x57, 0xbf, 0x8c, 0x2f, 0x60, 0x61, 0xea,
   441  	0x0b, 0xa0, 0xe0, 0x6c, 0x86, 0xcf, 0x63, 0x76, 0x6d, 0x1c, 0xd3, 0xb3, 0x4f, 0xc8, 0x9c, 0xbc,
   442  	0x34, 0x5b, 0xd7, 0x64, 0xb2, 0xcc, 0x8c, 0x9c, 0x89, 0xf2, 0xf7, 0x46, 0x62, 0xbe, 0x59, 0x06,
   443  	0xa7, 0xde, 0x52, 0x3b, 0xb7, 0x25, 0x90, 0xc0, 0xf0, 0x26, 0x58, 0x1c, 0x22, 0x86, 0x06, 0x2a,
   444  	0x01, 0x2b, 0x7b, 0xcf, 0x95, 0x82, 0x1f, 0x48, 0x53, 0x13, 0x4f, 0x7b, 0xc3, 0x77, 0xc1, 0x52,
   445  	0x17, 0xe3, 0xf6, 0x90, 0xd2, 0xbe, 0x6e, 0xfe, 0x4b, 0xa5, 0x91, 0x6e, 0x62, 0x7c, 0x40, 0x69,
   446  	0x7f, 0xaa, 0xd9, 0xbb, 0xea, 0x0c, 0x8e, 0x81, 0x9d, 0xb5, 0x70, 0xba, 0xfe, 0xe2, 0xae, 0x89,
   447  	0x47, 0xc6, 0xc2, 0xec, 0x6d, 0x63, 0x6e, 0x64, 0x13, 0x69, 0xdd, 0x2f, 0xb2, 0xe0, 0xf1, 0xb7,
   448  	0x33, 0x64, 0x38, 0x22, 0x74, 0x24, 0x1f, 0x00, 0x43, 0xca, 0x31, 0x93, 0x45, 0x29, 0xfd, 0x76,
   449  	0x12, 0x97, 0x03, 0xed, 0x01, 0x3f, 0x2f, 0x5e, 0x77, 0x4f, 0x49, 0xea, 0x6f, 0xce, 0x56, 0xdd,
   450  	0x47, 0x2d, 0x67, 0x53, 0x46, 0xc1, 0x86, 0x83, 0xdf, 0x5b, 0x60, 0xdb, 0x68, 0xee, 0x6c, 0x1d,
   451  	0xb4, 0xbd, 0x74, 0x63, 0x70, 0x7b, 0x51, 0x52, 0xb9, 0xf6, 0x1f, 0xb6, 0x4e, 0x9e, 0x4d, 0x2d,
   452  	0x2a, 0x75, 0xe0, 0xf0, 0x6b, 0x0b, 0x9c, 0xcf, 0xa8, 0xf5, 0xd2, 0x71, 0x9e, 0x26, 0xe8, 0xa4,
   453  	0x64, 0xf5, 0xc6, 0x31, 0xd7, 0x41, 0x9e, 0xd1, 0x66, 0xf4, 0x48, 0x63, 0xf8, 0xa5, 0x05, 0x36,
   454  	0x32, 0x32, 0x9e, 0x9a, 0xc0, 0x29, 0x93, 0x25, 0xc9, 0xe4, 0xea, 0x71, 0xc6, 0x77, 0x9e, 0xc6,
   455  	0xb3, 0x51, 0xb1, 0x25, 0xfc, 0xc2, 0xec, 0xf3, 0xa9, 0xe9, 0xc8, 0xed, 0x65, 0xc9, 0xe0, 0xca,
   456  	0x93, 0x8f, 0xc7, 0x3c, 0x7e, 0xd6, 0xed, 0xa6, 0x1d, 0x87, 0x63, 0xb0, 0x5e, 0x38, 0x86, 0xb8,
   457  	0x0d, 0x24, 0xf8, 0xab, 0x4f, 0x3a, 0x87, 0xf2, 0xd0, 0x6b, 0x05, 0xd3, 0xc8, 0x58, 0x66, 0xfb,
   458  	0xb7, 0xee, 0x4e, 0x1c, 0xeb, 0xfe, 0xc4, 0xb1, 0x1e, 0x4c, 0x1c, 0xeb, 0x8f, 0x89, 0x63, 0x7d,
   459  	0x7b, 0xe8, 0x54, 0x1e, 0x1c, 0x3a, 0x95, 0x5f, 0x0f, 0x9d, 0xca, 0x47, 0xbb, 0xa5, 0x6f, 0xbe,
   460  	0x4f, 0xa7, 0xdf, 0xf4, 0xf2, 0x09, 0xd8, 0x59, 0x94, 0xef, 0xf2, 0x97, 0xff, 0x0d, 0x00, 0x00,
   461  	0xff, 0xff, 0xbe, 0x75, 0xf7, 0x68, 0x75, 0x0c, 0x00, 0x00,
   462  }
   463  
   464  func (m *DelegatorWithdrawInfo) Marshal() (dAtA []byte, err error) {
   465  	size := m.Size()
   466  	dAtA = make([]byte, size)
   467  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   468  	if err != nil {
   469  		return nil, err
   470  	}
   471  	return dAtA[:n], nil
   472  }
   473  
   474  func (m *DelegatorWithdrawInfo) MarshalTo(dAtA []byte) (int, error) {
   475  	size := m.Size()
   476  	return m.MarshalToSizedBuffer(dAtA[:size])
   477  }
   478  
   479  func (m *DelegatorWithdrawInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   480  	i := len(dAtA)
   481  	_ = i
   482  	var l int
   483  	_ = l
   484  	if len(m.WithdrawAddress) > 0 {
   485  		i -= len(m.WithdrawAddress)
   486  		copy(dAtA[i:], m.WithdrawAddress)
   487  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.WithdrawAddress)))
   488  		i--
   489  		dAtA[i] = 0x12
   490  	}
   491  	if len(m.DelegatorAddress) > 0 {
   492  		i -= len(m.DelegatorAddress)
   493  		copy(dAtA[i:], m.DelegatorAddress)
   494  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.DelegatorAddress)))
   495  		i--
   496  		dAtA[i] = 0xa
   497  	}
   498  	return len(dAtA) - i, nil
   499  }
   500  
   501  func (m *ValidatorOutstandingRewardsRecord) Marshal() (dAtA []byte, err error) {
   502  	size := m.Size()
   503  	dAtA = make([]byte, size)
   504  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   505  	if err != nil {
   506  		return nil, err
   507  	}
   508  	return dAtA[:n], nil
   509  }
   510  
   511  func (m *ValidatorOutstandingRewardsRecord) MarshalTo(dAtA []byte) (int, error) {
   512  	size := m.Size()
   513  	return m.MarshalToSizedBuffer(dAtA[:size])
   514  }
   515  
   516  func (m *ValidatorOutstandingRewardsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   517  	i := len(dAtA)
   518  	_ = i
   519  	var l int
   520  	_ = l
   521  	if len(m.OutstandingRewards) > 0 {
   522  		for iNdEx := len(m.OutstandingRewards) - 1; iNdEx >= 0; iNdEx-- {
   523  			{
   524  				size, err := m.OutstandingRewards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   525  				if err != nil {
   526  					return 0, err
   527  				}
   528  				i -= size
   529  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   530  			}
   531  			i--
   532  			dAtA[i] = 0x12
   533  		}
   534  	}
   535  	if len(m.ValidatorAddress) > 0 {
   536  		i -= len(m.ValidatorAddress)
   537  		copy(dAtA[i:], m.ValidatorAddress)
   538  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ValidatorAddress)))
   539  		i--
   540  		dAtA[i] = 0xa
   541  	}
   542  	return len(dAtA) - i, nil
   543  }
   544  
   545  func (m *ValidatorAccumulatedCommissionRecord) Marshal() (dAtA []byte, err error) {
   546  	size := m.Size()
   547  	dAtA = make([]byte, size)
   548  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   549  	if err != nil {
   550  		return nil, err
   551  	}
   552  	return dAtA[:n], nil
   553  }
   554  
   555  func (m *ValidatorAccumulatedCommissionRecord) MarshalTo(dAtA []byte) (int, error) {
   556  	size := m.Size()
   557  	return m.MarshalToSizedBuffer(dAtA[:size])
   558  }
   559  
   560  func (m *ValidatorAccumulatedCommissionRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   561  	i := len(dAtA)
   562  	_ = i
   563  	var l int
   564  	_ = l
   565  	{
   566  		size, err := m.Accumulated.MarshalToSizedBuffer(dAtA[:i])
   567  		if err != nil {
   568  			return 0, err
   569  		}
   570  		i -= size
   571  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   572  	}
   573  	i--
   574  	dAtA[i] = 0x12
   575  	if len(m.ValidatorAddress) > 0 {
   576  		i -= len(m.ValidatorAddress)
   577  		copy(dAtA[i:], m.ValidatorAddress)
   578  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ValidatorAddress)))
   579  		i--
   580  		dAtA[i] = 0xa
   581  	}
   582  	return len(dAtA) - i, nil
   583  }
   584  
   585  func (m *ValidatorHistoricalRewardsRecord) Marshal() (dAtA []byte, err error) {
   586  	size := m.Size()
   587  	dAtA = make([]byte, size)
   588  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   589  	if err != nil {
   590  		return nil, err
   591  	}
   592  	return dAtA[:n], nil
   593  }
   594  
   595  func (m *ValidatorHistoricalRewardsRecord) MarshalTo(dAtA []byte) (int, error) {
   596  	size := m.Size()
   597  	return m.MarshalToSizedBuffer(dAtA[:size])
   598  }
   599  
   600  func (m *ValidatorHistoricalRewardsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   601  	i := len(dAtA)
   602  	_ = i
   603  	var l int
   604  	_ = l
   605  	{
   606  		size, err := m.Rewards.MarshalToSizedBuffer(dAtA[:i])
   607  		if err != nil {
   608  			return 0, err
   609  		}
   610  		i -= size
   611  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   612  	}
   613  	i--
   614  	dAtA[i] = 0x1a
   615  	if m.Period != 0 {
   616  		i = encodeVarintGenesis(dAtA, i, uint64(m.Period))
   617  		i--
   618  		dAtA[i] = 0x10
   619  	}
   620  	if len(m.ValidatorAddress) > 0 {
   621  		i -= len(m.ValidatorAddress)
   622  		copy(dAtA[i:], m.ValidatorAddress)
   623  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ValidatorAddress)))
   624  		i--
   625  		dAtA[i] = 0xa
   626  	}
   627  	return len(dAtA) - i, nil
   628  }
   629  
   630  func (m *ValidatorCurrentRewardsRecord) Marshal() (dAtA []byte, err error) {
   631  	size := m.Size()
   632  	dAtA = make([]byte, size)
   633  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   634  	if err != nil {
   635  		return nil, err
   636  	}
   637  	return dAtA[:n], nil
   638  }
   639  
   640  func (m *ValidatorCurrentRewardsRecord) MarshalTo(dAtA []byte) (int, error) {
   641  	size := m.Size()
   642  	return m.MarshalToSizedBuffer(dAtA[:size])
   643  }
   644  
   645  func (m *ValidatorCurrentRewardsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   646  	i := len(dAtA)
   647  	_ = i
   648  	var l int
   649  	_ = l
   650  	{
   651  		size, err := m.Rewards.MarshalToSizedBuffer(dAtA[:i])
   652  		if err != nil {
   653  			return 0, err
   654  		}
   655  		i -= size
   656  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   657  	}
   658  	i--
   659  	dAtA[i] = 0x12
   660  	if len(m.ValidatorAddress) > 0 {
   661  		i -= len(m.ValidatorAddress)
   662  		copy(dAtA[i:], m.ValidatorAddress)
   663  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ValidatorAddress)))
   664  		i--
   665  		dAtA[i] = 0xa
   666  	}
   667  	return len(dAtA) - i, nil
   668  }
   669  
   670  func (m *DelegatorStartingInfoRecord) Marshal() (dAtA []byte, err error) {
   671  	size := m.Size()
   672  	dAtA = make([]byte, size)
   673  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   674  	if err != nil {
   675  		return nil, err
   676  	}
   677  	return dAtA[:n], nil
   678  }
   679  
   680  func (m *DelegatorStartingInfoRecord) MarshalTo(dAtA []byte) (int, error) {
   681  	size := m.Size()
   682  	return m.MarshalToSizedBuffer(dAtA[:size])
   683  }
   684  
   685  func (m *DelegatorStartingInfoRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   686  	i := len(dAtA)
   687  	_ = i
   688  	var l int
   689  	_ = l
   690  	{
   691  		size, err := m.StartingInfo.MarshalToSizedBuffer(dAtA[:i])
   692  		if err != nil {
   693  			return 0, err
   694  		}
   695  		i -= size
   696  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   697  	}
   698  	i--
   699  	dAtA[i] = 0x1a
   700  	if len(m.ValidatorAddress) > 0 {
   701  		i -= len(m.ValidatorAddress)
   702  		copy(dAtA[i:], m.ValidatorAddress)
   703  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ValidatorAddress)))
   704  		i--
   705  		dAtA[i] = 0x12
   706  	}
   707  	if len(m.DelegatorAddress) > 0 {
   708  		i -= len(m.DelegatorAddress)
   709  		copy(dAtA[i:], m.DelegatorAddress)
   710  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.DelegatorAddress)))
   711  		i--
   712  		dAtA[i] = 0xa
   713  	}
   714  	return len(dAtA) - i, nil
   715  }
   716  
   717  func (m *ValidatorSlashEventRecord) Marshal() (dAtA []byte, err error) {
   718  	size := m.Size()
   719  	dAtA = make([]byte, size)
   720  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   721  	if err != nil {
   722  		return nil, err
   723  	}
   724  	return dAtA[:n], nil
   725  }
   726  
   727  func (m *ValidatorSlashEventRecord) MarshalTo(dAtA []byte) (int, error) {
   728  	size := m.Size()
   729  	return m.MarshalToSizedBuffer(dAtA[:size])
   730  }
   731  
   732  func (m *ValidatorSlashEventRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   733  	i := len(dAtA)
   734  	_ = i
   735  	var l int
   736  	_ = l
   737  	{
   738  		size, err := m.ValidatorSlashEvent.MarshalToSizedBuffer(dAtA[:i])
   739  		if err != nil {
   740  			return 0, err
   741  		}
   742  		i -= size
   743  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   744  	}
   745  	i--
   746  	dAtA[i] = 0x22
   747  	if m.Period != 0 {
   748  		i = encodeVarintGenesis(dAtA, i, uint64(m.Period))
   749  		i--
   750  		dAtA[i] = 0x18
   751  	}
   752  	if m.Height != 0 {
   753  		i = encodeVarintGenesis(dAtA, i, uint64(m.Height))
   754  		i--
   755  		dAtA[i] = 0x10
   756  	}
   757  	if len(m.ValidatorAddress) > 0 {
   758  		i -= len(m.ValidatorAddress)
   759  		copy(dAtA[i:], m.ValidatorAddress)
   760  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ValidatorAddress)))
   761  		i--
   762  		dAtA[i] = 0xa
   763  	}
   764  	return len(dAtA) - i, nil
   765  }
   766  
   767  func (m *GenesisState) Marshal() (dAtA []byte, err error) {
   768  	size := m.Size()
   769  	dAtA = make([]byte, size)
   770  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   771  	if err != nil {
   772  		return nil, err
   773  	}
   774  	return dAtA[:n], nil
   775  }
   776  
   777  func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
   778  	size := m.Size()
   779  	return m.MarshalToSizedBuffer(dAtA[:size])
   780  }
   781  
   782  func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   783  	i := len(dAtA)
   784  	_ = i
   785  	var l int
   786  	_ = l
   787  	if len(m.ValidatorSlashEvents) > 0 {
   788  		for iNdEx := len(m.ValidatorSlashEvents) - 1; iNdEx >= 0; iNdEx-- {
   789  			{
   790  				size, err := m.ValidatorSlashEvents[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   791  				if err != nil {
   792  					return 0, err
   793  				}
   794  				i -= size
   795  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   796  			}
   797  			i--
   798  			dAtA[i] = 0x52
   799  		}
   800  	}
   801  	if len(m.DelegatorStartingInfos) > 0 {
   802  		for iNdEx := len(m.DelegatorStartingInfos) - 1; iNdEx >= 0; iNdEx-- {
   803  			{
   804  				size, err := m.DelegatorStartingInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   805  				if err != nil {
   806  					return 0, err
   807  				}
   808  				i -= size
   809  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   810  			}
   811  			i--
   812  			dAtA[i] = 0x4a
   813  		}
   814  	}
   815  	if len(m.ValidatorCurrentRewards) > 0 {
   816  		for iNdEx := len(m.ValidatorCurrentRewards) - 1; iNdEx >= 0; iNdEx-- {
   817  			{
   818  				size, err := m.ValidatorCurrentRewards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   819  				if err != nil {
   820  					return 0, err
   821  				}
   822  				i -= size
   823  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   824  			}
   825  			i--
   826  			dAtA[i] = 0x42
   827  		}
   828  	}
   829  	if len(m.ValidatorHistoricalRewards) > 0 {
   830  		for iNdEx := len(m.ValidatorHistoricalRewards) - 1; iNdEx >= 0; iNdEx-- {
   831  			{
   832  				size, err := m.ValidatorHistoricalRewards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   833  				if err != nil {
   834  					return 0, err
   835  				}
   836  				i -= size
   837  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   838  			}
   839  			i--
   840  			dAtA[i] = 0x3a
   841  		}
   842  	}
   843  	if len(m.ValidatorAccumulatedCommissions) > 0 {
   844  		for iNdEx := len(m.ValidatorAccumulatedCommissions) - 1; iNdEx >= 0; iNdEx-- {
   845  			{
   846  				size, err := m.ValidatorAccumulatedCommissions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   847  				if err != nil {
   848  					return 0, err
   849  				}
   850  				i -= size
   851  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   852  			}
   853  			i--
   854  			dAtA[i] = 0x32
   855  		}
   856  	}
   857  	if len(m.OutstandingRewards) > 0 {
   858  		for iNdEx := len(m.OutstandingRewards) - 1; iNdEx >= 0; iNdEx-- {
   859  			{
   860  				size, err := m.OutstandingRewards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   861  				if err != nil {
   862  					return 0, err
   863  				}
   864  				i -= size
   865  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   866  			}
   867  			i--
   868  			dAtA[i] = 0x2a
   869  		}
   870  	}
   871  	if len(m.PreviousProposer) > 0 {
   872  		i -= len(m.PreviousProposer)
   873  		copy(dAtA[i:], m.PreviousProposer)
   874  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.PreviousProposer)))
   875  		i--
   876  		dAtA[i] = 0x22
   877  	}
   878  	if len(m.DelegatorWithdrawInfos) > 0 {
   879  		for iNdEx := len(m.DelegatorWithdrawInfos) - 1; iNdEx >= 0; iNdEx-- {
   880  			{
   881  				size, err := m.DelegatorWithdrawInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   882  				if err != nil {
   883  					return 0, err
   884  				}
   885  				i -= size
   886  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   887  			}
   888  			i--
   889  			dAtA[i] = 0x1a
   890  		}
   891  	}
   892  	{
   893  		size, err := m.FeePool.MarshalToSizedBuffer(dAtA[:i])
   894  		if err != nil {
   895  			return 0, err
   896  		}
   897  		i -= size
   898  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   899  	}
   900  	i--
   901  	dAtA[i] = 0x12
   902  	{
   903  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
   904  		if err != nil {
   905  			return 0, err
   906  		}
   907  		i -= size
   908  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   909  	}
   910  	i--
   911  	dAtA[i] = 0xa
   912  	return len(dAtA) - i, nil
   913  }
   914  
   915  func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
   916  	offset -= sovGenesis(v)
   917  	base := offset
   918  	for v >= 1<<7 {
   919  		dAtA[offset] = uint8(v&0x7f | 0x80)
   920  		v >>= 7
   921  		offset++
   922  	}
   923  	dAtA[offset] = uint8(v)
   924  	return base
   925  }
   926  func (m *DelegatorWithdrawInfo) Size() (n int) {
   927  	if m == nil {
   928  		return 0
   929  	}
   930  	var l int
   931  	_ = l
   932  	l = len(m.DelegatorAddress)
   933  	if l > 0 {
   934  		n += 1 + l + sovGenesis(uint64(l))
   935  	}
   936  	l = len(m.WithdrawAddress)
   937  	if l > 0 {
   938  		n += 1 + l + sovGenesis(uint64(l))
   939  	}
   940  	return n
   941  }
   942  
   943  func (m *ValidatorOutstandingRewardsRecord) Size() (n int) {
   944  	if m == nil {
   945  		return 0
   946  	}
   947  	var l int
   948  	_ = l
   949  	l = len(m.ValidatorAddress)
   950  	if l > 0 {
   951  		n += 1 + l + sovGenesis(uint64(l))
   952  	}
   953  	if len(m.OutstandingRewards) > 0 {
   954  		for _, e := range m.OutstandingRewards {
   955  			l = e.Size()
   956  			n += 1 + l + sovGenesis(uint64(l))
   957  		}
   958  	}
   959  	return n
   960  }
   961  
   962  func (m *ValidatorAccumulatedCommissionRecord) Size() (n int) {
   963  	if m == nil {
   964  		return 0
   965  	}
   966  	var l int
   967  	_ = l
   968  	l = len(m.ValidatorAddress)
   969  	if l > 0 {
   970  		n += 1 + l + sovGenesis(uint64(l))
   971  	}
   972  	l = m.Accumulated.Size()
   973  	n += 1 + l + sovGenesis(uint64(l))
   974  	return n
   975  }
   976  
   977  func (m *ValidatorHistoricalRewardsRecord) Size() (n int) {
   978  	if m == nil {
   979  		return 0
   980  	}
   981  	var l int
   982  	_ = l
   983  	l = len(m.ValidatorAddress)
   984  	if l > 0 {
   985  		n += 1 + l + sovGenesis(uint64(l))
   986  	}
   987  	if m.Period != 0 {
   988  		n += 1 + sovGenesis(uint64(m.Period))
   989  	}
   990  	l = m.Rewards.Size()
   991  	n += 1 + l + sovGenesis(uint64(l))
   992  	return n
   993  }
   994  
   995  func (m *ValidatorCurrentRewardsRecord) Size() (n int) {
   996  	if m == nil {
   997  		return 0
   998  	}
   999  	var l int
  1000  	_ = l
  1001  	l = len(m.ValidatorAddress)
  1002  	if l > 0 {
  1003  		n += 1 + l + sovGenesis(uint64(l))
  1004  	}
  1005  	l = m.Rewards.Size()
  1006  	n += 1 + l + sovGenesis(uint64(l))
  1007  	return n
  1008  }
  1009  
  1010  func (m *DelegatorStartingInfoRecord) Size() (n int) {
  1011  	if m == nil {
  1012  		return 0
  1013  	}
  1014  	var l int
  1015  	_ = l
  1016  	l = len(m.DelegatorAddress)
  1017  	if l > 0 {
  1018  		n += 1 + l + sovGenesis(uint64(l))
  1019  	}
  1020  	l = len(m.ValidatorAddress)
  1021  	if l > 0 {
  1022  		n += 1 + l + sovGenesis(uint64(l))
  1023  	}
  1024  	l = m.StartingInfo.Size()
  1025  	n += 1 + l + sovGenesis(uint64(l))
  1026  	return n
  1027  }
  1028  
  1029  func (m *ValidatorSlashEventRecord) Size() (n int) {
  1030  	if m == nil {
  1031  		return 0
  1032  	}
  1033  	var l int
  1034  	_ = l
  1035  	l = len(m.ValidatorAddress)
  1036  	if l > 0 {
  1037  		n += 1 + l + sovGenesis(uint64(l))
  1038  	}
  1039  	if m.Height != 0 {
  1040  		n += 1 + sovGenesis(uint64(m.Height))
  1041  	}
  1042  	if m.Period != 0 {
  1043  		n += 1 + sovGenesis(uint64(m.Period))
  1044  	}
  1045  	l = m.ValidatorSlashEvent.Size()
  1046  	n += 1 + l + sovGenesis(uint64(l))
  1047  	return n
  1048  }
  1049  
  1050  func (m *GenesisState) Size() (n int) {
  1051  	if m == nil {
  1052  		return 0
  1053  	}
  1054  	var l int
  1055  	_ = l
  1056  	l = m.Params.Size()
  1057  	n += 1 + l + sovGenesis(uint64(l))
  1058  	l = m.FeePool.Size()
  1059  	n += 1 + l + sovGenesis(uint64(l))
  1060  	if len(m.DelegatorWithdrawInfos) > 0 {
  1061  		for _, e := range m.DelegatorWithdrawInfos {
  1062  			l = e.Size()
  1063  			n += 1 + l + sovGenesis(uint64(l))
  1064  		}
  1065  	}
  1066  	l = len(m.PreviousProposer)
  1067  	if l > 0 {
  1068  		n += 1 + l + sovGenesis(uint64(l))
  1069  	}
  1070  	if len(m.OutstandingRewards) > 0 {
  1071  		for _, e := range m.OutstandingRewards {
  1072  			l = e.Size()
  1073  			n += 1 + l + sovGenesis(uint64(l))
  1074  		}
  1075  	}
  1076  	if len(m.ValidatorAccumulatedCommissions) > 0 {
  1077  		for _, e := range m.ValidatorAccumulatedCommissions {
  1078  			l = e.Size()
  1079  			n += 1 + l + sovGenesis(uint64(l))
  1080  		}
  1081  	}
  1082  	if len(m.ValidatorHistoricalRewards) > 0 {
  1083  		for _, e := range m.ValidatorHistoricalRewards {
  1084  			l = e.Size()
  1085  			n += 1 + l + sovGenesis(uint64(l))
  1086  		}
  1087  	}
  1088  	if len(m.ValidatorCurrentRewards) > 0 {
  1089  		for _, e := range m.ValidatorCurrentRewards {
  1090  			l = e.Size()
  1091  			n += 1 + l + sovGenesis(uint64(l))
  1092  		}
  1093  	}
  1094  	if len(m.DelegatorStartingInfos) > 0 {
  1095  		for _, e := range m.DelegatorStartingInfos {
  1096  			l = e.Size()
  1097  			n += 1 + l + sovGenesis(uint64(l))
  1098  		}
  1099  	}
  1100  	if len(m.ValidatorSlashEvents) > 0 {
  1101  		for _, e := range m.ValidatorSlashEvents {
  1102  			l = e.Size()
  1103  			n += 1 + l + sovGenesis(uint64(l))
  1104  		}
  1105  	}
  1106  	return n
  1107  }
  1108  
  1109  func sovGenesis(x uint64) (n int) {
  1110  	return (math_bits.Len64(x|1) + 6) / 7
  1111  }
  1112  func sozGenesis(x uint64) (n int) {
  1113  	return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1114  }
  1115  func (m *DelegatorWithdrawInfo) Unmarshal(dAtA []byte) error {
  1116  	l := len(dAtA)
  1117  	iNdEx := 0
  1118  	for iNdEx < l {
  1119  		preIndex := iNdEx
  1120  		var wire uint64
  1121  		for shift := uint(0); ; shift += 7 {
  1122  			if shift >= 64 {
  1123  				return ErrIntOverflowGenesis
  1124  			}
  1125  			if iNdEx >= l {
  1126  				return io.ErrUnexpectedEOF
  1127  			}
  1128  			b := dAtA[iNdEx]
  1129  			iNdEx++
  1130  			wire |= uint64(b&0x7F) << shift
  1131  			if b < 0x80 {
  1132  				break
  1133  			}
  1134  		}
  1135  		fieldNum := int32(wire >> 3)
  1136  		wireType := int(wire & 0x7)
  1137  		if wireType == 4 {
  1138  			return fmt.Errorf("proto: DelegatorWithdrawInfo: wiretype end group for non-group")
  1139  		}
  1140  		if fieldNum <= 0 {
  1141  			return fmt.Errorf("proto: DelegatorWithdrawInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1142  		}
  1143  		switch fieldNum {
  1144  		case 1:
  1145  			if wireType != 2 {
  1146  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  1147  			}
  1148  			var stringLen uint64
  1149  			for shift := uint(0); ; shift += 7 {
  1150  				if shift >= 64 {
  1151  					return ErrIntOverflowGenesis
  1152  				}
  1153  				if iNdEx >= l {
  1154  					return io.ErrUnexpectedEOF
  1155  				}
  1156  				b := dAtA[iNdEx]
  1157  				iNdEx++
  1158  				stringLen |= uint64(b&0x7F) << shift
  1159  				if b < 0x80 {
  1160  					break
  1161  				}
  1162  			}
  1163  			intStringLen := int(stringLen)
  1164  			if intStringLen < 0 {
  1165  				return ErrInvalidLengthGenesis
  1166  			}
  1167  			postIndex := iNdEx + intStringLen
  1168  			if postIndex < 0 {
  1169  				return ErrInvalidLengthGenesis
  1170  			}
  1171  			if postIndex > l {
  1172  				return io.ErrUnexpectedEOF
  1173  			}
  1174  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  1175  			iNdEx = postIndex
  1176  		case 2:
  1177  			if wireType != 2 {
  1178  				return fmt.Errorf("proto: wrong wireType = %d for field WithdrawAddress", wireType)
  1179  			}
  1180  			var stringLen uint64
  1181  			for shift := uint(0); ; shift += 7 {
  1182  				if shift >= 64 {
  1183  					return ErrIntOverflowGenesis
  1184  				}
  1185  				if iNdEx >= l {
  1186  					return io.ErrUnexpectedEOF
  1187  				}
  1188  				b := dAtA[iNdEx]
  1189  				iNdEx++
  1190  				stringLen |= uint64(b&0x7F) << shift
  1191  				if b < 0x80 {
  1192  					break
  1193  				}
  1194  			}
  1195  			intStringLen := int(stringLen)
  1196  			if intStringLen < 0 {
  1197  				return ErrInvalidLengthGenesis
  1198  			}
  1199  			postIndex := iNdEx + intStringLen
  1200  			if postIndex < 0 {
  1201  				return ErrInvalidLengthGenesis
  1202  			}
  1203  			if postIndex > l {
  1204  				return io.ErrUnexpectedEOF
  1205  			}
  1206  			m.WithdrawAddress = string(dAtA[iNdEx:postIndex])
  1207  			iNdEx = postIndex
  1208  		default:
  1209  			iNdEx = preIndex
  1210  			skippy, err := skipGenesis(dAtA[iNdEx:])
  1211  			if err != nil {
  1212  				return err
  1213  			}
  1214  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1215  				return ErrInvalidLengthGenesis
  1216  			}
  1217  			if (iNdEx + skippy) > l {
  1218  				return io.ErrUnexpectedEOF
  1219  			}
  1220  			iNdEx += skippy
  1221  		}
  1222  	}
  1223  
  1224  	if iNdEx > l {
  1225  		return io.ErrUnexpectedEOF
  1226  	}
  1227  	return nil
  1228  }
  1229  func (m *ValidatorOutstandingRewardsRecord) Unmarshal(dAtA []byte) error {
  1230  	l := len(dAtA)
  1231  	iNdEx := 0
  1232  	for iNdEx < l {
  1233  		preIndex := iNdEx
  1234  		var wire uint64
  1235  		for shift := uint(0); ; shift += 7 {
  1236  			if shift >= 64 {
  1237  				return ErrIntOverflowGenesis
  1238  			}
  1239  			if iNdEx >= l {
  1240  				return io.ErrUnexpectedEOF
  1241  			}
  1242  			b := dAtA[iNdEx]
  1243  			iNdEx++
  1244  			wire |= uint64(b&0x7F) << shift
  1245  			if b < 0x80 {
  1246  				break
  1247  			}
  1248  		}
  1249  		fieldNum := int32(wire >> 3)
  1250  		wireType := int(wire & 0x7)
  1251  		if wireType == 4 {
  1252  			return fmt.Errorf("proto: ValidatorOutstandingRewardsRecord: wiretype end group for non-group")
  1253  		}
  1254  		if fieldNum <= 0 {
  1255  			return fmt.Errorf("proto: ValidatorOutstandingRewardsRecord: illegal tag %d (wire type %d)", fieldNum, wire)
  1256  		}
  1257  		switch fieldNum {
  1258  		case 1:
  1259  			if wireType != 2 {
  1260  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  1261  			}
  1262  			var stringLen uint64
  1263  			for shift := uint(0); ; shift += 7 {
  1264  				if shift >= 64 {
  1265  					return ErrIntOverflowGenesis
  1266  				}
  1267  				if iNdEx >= l {
  1268  					return io.ErrUnexpectedEOF
  1269  				}
  1270  				b := dAtA[iNdEx]
  1271  				iNdEx++
  1272  				stringLen |= uint64(b&0x7F) << shift
  1273  				if b < 0x80 {
  1274  					break
  1275  				}
  1276  			}
  1277  			intStringLen := int(stringLen)
  1278  			if intStringLen < 0 {
  1279  				return ErrInvalidLengthGenesis
  1280  			}
  1281  			postIndex := iNdEx + intStringLen
  1282  			if postIndex < 0 {
  1283  				return ErrInvalidLengthGenesis
  1284  			}
  1285  			if postIndex > l {
  1286  				return io.ErrUnexpectedEOF
  1287  			}
  1288  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  1289  			iNdEx = postIndex
  1290  		case 2:
  1291  			if wireType != 2 {
  1292  				return fmt.Errorf("proto: wrong wireType = %d for field OutstandingRewards", wireType)
  1293  			}
  1294  			var msglen int
  1295  			for shift := uint(0); ; shift += 7 {
  1296  				if shift >= 64 {
  1297  					return ErrIntOverflowGenesis
  1298  				}
  1299  				if iNdEx >= l {
  1300  					return io.ErrUnexpectedEOF
  1301  				}
  1302  				b := dAtA[iNdEx]
  1303  				iNdEx++
  1304  				msglen |= int(b&0x7F) << shift
  1305  				if b < 0x80 {
  1306  					break
  1307  				}
  1308  			}
  1309  			if msglen < 0 {
  1310  				return ErrInvalidLengthGenesis
  1311  			}
  1312  			postIndex := iNdEx + msglen
  1313  			if postIndex < 0 {
  1314  				return ErrInvalidLengthGenesis
  1315  			}
  1316  			if postIndex > l {
  1317  				return io.ErrUnexpectedEOF
  1318  			}
  1319  			m.OutstandingRewards = append(m.OutstandingRewards, types.DecCoin{})
  1320  			if err := m.OutstandingRewards[len(m.OutstandingRewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1321  				return err
  1322  			}
  1323  			iNdEx = postIndex
  1324  		default:
  1325  			iNdEx = preIndex
  1326  			skippy, err := skipGenesis(dAtA[iNdEx:])
  1327  			if err != nil {
  1328  				return err
  1329  			}
  1330  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1331  				return ErrInvalidLengthGenesis
  1332  			}
  1333  			if (iNdEx + skippy) > l {
  1334  				return io.ErrUnexpectedEOF
  1335  			}
  1336  			iNdEx += skippy
  1337  		}
  1338  	}
  1339  
  1340  	if iNdEx > l {
  1341  		return io.ErrUnexpectedEOF
  1342  	}
  1343  	return nil
  1344  }
  1345  func (m *ValidatorAccumulatedCommissionRecord) Unmarshal(dAtA []byte) error {
  1346  	l := len(dAtA)
  1347  	iNdEx := 0
  1348  	for iNdEx < l {
  1349  		preIndex := iNdEx
  1350  		var wire uint64
  1351  		for shift := uint(0); ; shift += 7 {
  1352  			if shift >= 64 {
  1353  				return ErrIntOverflowGenesis
  1354  			}
  1355  			if iNdEx >= l {
  1356  				return io.ErrUnexpectedEOF
  1357  			}
  1358  			b := dAtA[iNdEx]
  1359  			iNdEx++
  1360  			wire |= uint64(b&0x7F) << shift
  1361  			if b < 0x80 {
  1362  				break
  1363  			}
  1364  		}
  1365  		fieldNum := int32(wire >> 3)
  1366  		wireType := int(wire & 0x7)
  1367  		if wireType == 4 {
  1368  			return fmt.Errorf("proto: ValidatorAccumulatedCommissionRecord: wiretype end group for non-group")
  1369  		}
  1370  		if fieldNum <= 0 {
  1371  			return fmt.Errorf("proto: ValidatorAccumulatedCommissionRecord: illegal tag %d (wire type %d)", fieldNum, wire)
  1372  		}
  1373  		switch fieldNum {
  1374  		case 1:
  1375  			if wireType != 2 {
  1376  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  1377  			}
  1378  			var stringLen uint64
  1379  			for shift := uint(0); ; shift += 7 {
  1380  				if shift >= 64 {
  1381  					return ErrIntOverflowGenesis
  1382  				}
  1383  				if iNdEx >= l {
  1384  					return io.ErrUnexpectedEOF
  1385  				}
  1386  				b := dAtA[iNdEx]
  1387  				iNdEx++
  1388  				stringLen |= uint64(b&0x7F) << shift
  1389  				if b < 0x80 {
  1390  					break
  1391  				}
  1392  			}
  1393  			intStringLen := int(stringLen)
  1394  			if intStringLen < 0 {
  1395  				return ErrInvalidLengthGenesis
  1396  			}
  1397  			postIndex := iNdEx + intStringLen
  1398  			if postIndex < 0 {
  1399  				return ErrInvalidLengthGenesis
  1400  			}
  1401  			if postIndex > l {
  1402  				return io.ErrUnexpectedEOF
  1403  			}
  1404  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  1405  			iNdEx = postIndex
  1406  		case 2:
  1407  			if wireType != 2 {
  1408  				return fmt.Errorf("proto: wrong wireType = %d for field Accumulated", wireType)
  1409  			}
  1410  			var msglen int
  1411  			for shift := uint(0); ; shift += 7 {
  1412  				if shift >= 64 {
  1413  					return ErrIntOverflowGenesis
  1414  				}
  1415  				if iNdEx >= l {
  1416  					return io.ErrUnexpectedEOF
  1417  				}
  1418  				b := dAtA[iNdEx]
  1419  				iNdEx++
  1420  				msglen |= int(b&0x7F) << shift
  1421  				if b < 0x80 {
  1422  					break
  1423  				}
  1424  			}
  1425  			if msglen < 0 {
  1426  				return ErrInvalidLengthGenesis
  1427  			}
  1428  			postIndex := iNdEx + msglen
  1429  			if postIndex < 0 {
  1430  				return ErrInvalidLengthGenesis
  1431  			}
  1432  			if postIndex > l {
  1433  				return io.ErrUnexpectedEOF
  1434  			}
  1435  			if err := m.Accumulated.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1436  				return err
  1437  			}
  1438  			iNdEx = postIndex
  1439  		default:
  1440  			iNdEx = preIndex
  1441  			skippy, err := skipGenesis(dAtA[iNdEx:])
  1442  			if err != nil {
  1443  				return err
  1444  			}
  1445  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1446  				return ErrInvalidLengthGenesis
  1447  			}
  1448  			if (iNdEx + skippy) > l {
  1449  				return io.ErrUnexpectedEOF
  1450  			}
  1451  			iNdEx += skippy
  1452  		}
  1453  	}
  1454  
  1455  	if iNdEx > l {
  1456  		return io.ErrUnexpectedEOF
  1457  	}
  1458  	return nil
  1459  }
  1460  func (m *ValidatorHistoricalRewardsRecord) Unmarshal(dAtA []byte) error {
  1461  	l := len(dAtA)
  1462  	iNdEx := 0
  1463  	for iNdEx < l {
  1464  		preIndex := iNdEx
  1465  		var wire uint64
  1466  		for shift := uint(0); ; shift += 7 {
  1467  			if shift >= 64 {
  1468  				return ErrIntOverflowGenesis
  1469  			}
  1470  			if iNdEx >= l {
  1471  				return io.ErrUnexpectedEOF
  1472  			}
  1473  			b := dAtA[iNdEx]
  1474  			iNdEx++
  1475  			wire |= uint64(b&0x7F) << shift
  1476  			if b < 0x80 {
  1477  				break
  1478  			}
  1479  		}
  1480  		fieldNum := int32(wire >> 3)
  1481  		wireType := int(wire & 0x7)
  1482  		if wireType == 4 {
  1483  			return fmt.Errorf("proto: ValidatorHistoricalRewardsRecord: wiretype end group for non-group")
  1484  		}
  1485  		if fieldNum <= 0 {
  1486  			return fmt.Errorf("proto: ValidatorHistoricalRewardsRecord: illegal tag %d (wire type %d)", fieldNum, wire)
  1487  		}
  1488  		switch fieldNum {
  1489  		case 1:
  1490  			if wireType != 2 {
  1491  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  1492  			}
  1493  			var stringLen uint64
  1494  			for shift := uint(0); ; shift += 7 {
  1495  				if shift >= 64 {
  1496  					return ErrIntOverflowGenesis
  1497  				}
  1498  				if iNdEx >= l {
  1499  					return io.ErrUnexpectedEOF
  1500  				}
  1501  				b := dAtA[iNdEx]
  1502  				iNdEx++
  1503  				stringLen |= uint64(b&0x7F) << shift
  1504  				if b < 0x80 {
  1505  					break
  1506  				}
  1507  			}
  1508  			intStringLen := int(stringLen)
  1509  			if intStringLen < 0 {
  1510  				return ErrInvalidLengthGenesis
  1511  			}
  1512  			postIndex := iNdEx + intStringLen
  1513  			if postIndex < 0 {
  1514  				return ErrInvalidLengthGenesis
  1515  			}
  1516  			if postIndex > l {
  1517  				return io.ErrUnexpectedEOF
  1518  			}
  1519  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  1520  			iNdEx = postIndex
  1521  		case 2:
  1522  			if wireType != 0 {
  1523  				return fmt.Errorf("proto: wrong wireType = %d for field Period", wireType)
  1524  			}
  1525  			m.Period = 0
  1526  			for shift := uint(0); ; shift += 7 {
  1527  				if shift >= 64 {
  1528  					return ErrIntOverflowGenesis
  1529  				}
  1530  				if iNdEx >= l {
  1531  					return io.ErrUnexpectedEOF
  1532  				}
  1533  				b := dAtA[iNdEx]
  1534  				iNdEx++
  1535  				m.Period |= uint64(b&0x7F) << shift
  1536  				if b < 0x80 {
  1537  					break
  1538  				}
  1539  			}
  1540  		case 3:
  1541  			if wireType != 2 {
  1542  				return fmt.Errorf("proto: wrong wireType = %d for field Rewards", wireType)
  1543  			}
  1544  			var msglen int
  1545  			for shift := uint(0); ; shift += 7 {
  1546  				if shift >= 64 {
  1547  					return ErrIntOverflowGenesis
  1548  				}
  1549  				if iNdEx >= l {
  1550  					return io.ErrUnexpectedEOF
  1551  				}
  1552  				b := dAtA[iNdEx]
  1553  				iNdEx++
  1554  				msglen |= int(b&0x7F) << shift
  1555  				if b < 0x80 {
  1556  					break
  1557  				}
  1558  			}
  1559  			if msglen < 0 {
  1560  				return ErrInvalidLengthGenesis
  1561  			}
  1562  			postIndex := iNdEx + msglen
  1563  			if postIndex < 0 {
  1564  				return ErrInvalidLengthGenesis
  1565  			}
  1566  			if postIndex > l {
  1567  				return io.ErrUnexpectedEOF
  1568  			}
  1569  			if err := m.Rewards.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1570  				return err
  1571  			}
  1572  			iNdEx = postIndex
  1573  		default:
  1574  			iNdEx = preIndex
  1575  			skippy, err := skipGenesis(dAtA[iNdEx:])
  1576  			if err != nil {
  1577  				return err
  1578  			}
  1579  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1580  				return ErrInvalidLengthGenesis
  1581  			}
  1582  			if (iNdEx + skippy) > l {
  1583  				return io.ErrUnexpectedEOF
  1584  			}
  1585  			iNdEx += skippy
  1586  		}
  1587  	}
  1588  
  1589  	if iNdEx > l {
  1590  		return io.ErrUnexpectedEOF
  1591  	}
  1592  	return nil
  1593  }
  1594  func (m *ValidatorCurrentRewardsRecord) Unmarshal(dAtA []byte) error {
  1595  	l := len(dAtA)
  1596  	iNdEx := 0
  1597  	for iNdEx < l {
  1598  		preIndex := iNdEx
  1599  		var wire uint64
  1600  		for shift := uint(0); ; shift += 7 {
  1601  			if shift >= 64 {
  1602  				return ErrIntOverflowGenesis
  1603  			}
  1604  			if iNdEx >= l {
  1605  				return io.ErrUnexpectedEOF
  1606  			}
  1607  			b := dAtA[iNdEx]
  1608  			iNdEx++
  1609  			wire |= uint64(b&0x7F) << shift
  1610  			if b < 0x80 {
  1611  				break
  1612  			}
  1613  		}
  1614  		fieldNum := int32(wire >> 3)
  1615  		wireType := int(wire & 0x7)
  1616  		if wireType == 4 {
  1617  			return fmt.Errorf("proto: ValidatorCurrentRewardsRecord: wiretype end group for non-group")
  1618  		}
  1619  		if fieldNum <= 0 {
  1620  			return fmt.Errorf("proto: ValidatorCurrentRewardsRecord: illegal tag %d (wire type %d)", fieldNum, wire)
  1621  		}
  1622  		switch fieldNum {
  1623  		case 1:
  1624  			if wireType != 2 {
  1625  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  1626  			}
  1627  			var stringLen uint64
  1628  			for shift := uint(0); ; shift += 7 {
  1629  				if shift >= 64 {
  1630  					return ErrIntOverflowGenesis
  1631  				}
  1632  				if iNdEx >= l {
  1633  					return io.ErrUnexpectedEOF
  1634  				}
  1635  				b := dAtA[iNdEx]
  1636  				iNdEx++
  1637  				stringLen |= uint64(b&0x7F) << shift
  1638  				if b < 0x80 {
  1639  					break
  1640  				}
  1641  			}
  1642  			intStringLen := int(stringLen)
  1643  			if intStringLen < 0 {
  1644  				return ErrInvalidLengthGenesis
  1645  			}
  1646  			postIndex := iNdEx + intStringLen
  1647  			if postIndex < 0 {
  1648  				return ErrInvalidLengthGenesis
  1649  			}
  1650  			if postIndex > l {
  1651  				return io.ErrUnexpectedEOF
  1652  			}
  1653  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  1654  			iNdEx = postIndex
  1655  		case 2:
  1656  			if wireType != 2 {
  1657  				return fmt.Errorf("proto: wrong wireType = %d for field Rewards", wireType)
  1658  			}
  1659  			var msglen int
  1660  			for shift := uint(0); ; shift += 7 {
  1661  				if shift >= 64 {
  1662  					return ErrIntOverflowGenesis
  1663  				}
  1664  				if iNdEx >= l {
  1665  					return io.ErrUnexpectedEOF
  1666  				}
  1667  				b := dAtA[iNdEx]
  1668  				iNdEx++
  1669  				msglen |= int(b&0x7F) << shift
  1670  				if b < 0x80 {
  1671  					break
  1672  				}
  1673  			}
  1674  			if msglen < 0 {
  1675  				return ErrInvalidLengthGenesis
  1676  			}
  1677  			postIndex := iNdEx + msglen
  1678  			if postIndex < 0 {
  1679  				return ErrInvalidLengthGenesis
  1680  			}
  1681  			if postIndex > l {
  1682  				return io.ErrUnexpectedEOF
  1683  			}
  1684  			if err := m.Rewards.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1685  				return err
  1686  			}
  1687  			iNdEx = postIndex
  1688  		default:
  1689  			iNdEx = preIndex
  1690  			skippy, err := skipGenesis(dAtA[iNdEx:])
  1691  			if err != nil {
  1692  				return err
  1693  			}
  1694  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1695  				return ErrInvalidLengthGenesis
  1696  			}
  1697  			if (iNdEx + skippy) > l {
  1698  				return io.ErrUnexpectedEOF
  1699  			}
  1700  			iNdEx += skippy
  1701  		}
  1702  	}
  1703  
  1704  	if iNdEx > l {
  1705  		return io.ErrUnexpectedEOF
  1706  	}
  1707  	return nil
  1708  }
  1709  func (m *DelegatorStartingInfoRecord) Unmarshal(dAtA []byte) error {
  1710  	l := len(dAtA)
  1711  	iNdEx := 0
  1712  	for iNdEx < l {
  1713  		preIndex := iNdEx
  1714  		var wire uint64
  1715  		for shift := uint(0); ; shift += 7 {
  1716  			if shift >= 64 {
  1717  				return ErrIntOverflowGenesis
  1718  			}
  1719  			if iNdEx >= l {
  1720  				return io.ErrUnexpectedEOF
  1721  			}
  1722  			b := dAtA[iNdEx]
  1723  			iNdEx++
  1724  			wire |= uint64(b&0x7F) << shift
  1725  			if b < 0x80 {
  1726  				break
  1727  			}
  1728  		}
  1729  		fieldNum := int32(wire >> 3)
  1730  		wireType := int(wire & 0x7)
  1731  		if wireType == 4 {
  1732  			return fmt.Errorf("proto: DelegatorStartingInfoRecord: wiretype end group for non-group")
  1733  		}
  1734  		if fieldNum <= 0 {
  1735  			return fmt.Errorf("proto: DelegatorStartingInfoRecord: illegal tag %d (wire type %d)", fieldNum, wire)
  1736  		}
  1737  		switch fieldNum {
  1738  		case 1:
  1739  			if wireType != 2 {
  1740  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  1741  			}
  1742  			var stringLen uint64
  1743  			for shift := uint(0); ; shift += 7 {
  1744  				if shift >= 64 {
  1745  					return ErrIntOverflowGenesis
  1746  				}
  1747  				if iNdEx >= l {
  1748  					return io.ErrUnexpectedEOF
  1749  				}
  1750  				b := dAtA[iNdEx]
  1751  				iNdEx++
  1752  				stringLen |= uint64(b&0x7F) << shift
  1753  				if b < 0x80 {
  1754  					break
  1755  				}
  1756  			}
  1757  			intStringLen := int(stringLen)
  1758  			if intStringLen < 0 {
  1759  				return ErrInvalidLengthGenesis
  1760  			}
  1761  			postIndex := iNdEx + intStringLen
  1762  			if postIndex < 0 {
  1763  				return ErrInvalidLengthGenesis
  1764  			}
  1765  			if postIndex > l {
  1766  				return io.ErrUnexpectedEOF
  1767  			}
  1768  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  1769  			iNdEx = postIndex
  1770  		case 2:
  1771  			if wireType != 2 {
  1772  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  1773  			}
  1774  			var stringLen uint64
  1775  			for shift := uint(0); ; shift += 7 {
  1776  				if shift >= 64 {
  1777  					return ErrIntOverflowGenesis
  1778  				}
  1779  				if iNdEx >= l {
  1780  					return io.ErrUnexpectedEOF
  1781  				}
  1782  				b := dAtA[iNdEx]
  1783  				iNdEx++
  1784  				stringLen |= uint64(b&0x7F) << shift
  1785  				if b < 0x80 {
  1786  					break
  1787  				}
  1788  			}
  1789  			intStringLen := int(stringLen)
  1790  			if intStringLen < 0 {
  1791  				return ErrInvalidLengthGenesis
  1792  			}
  1793  			postIndex := iNdEx + intStringLen
  1794  			if postIndex < 0 {
  1795  				return ErrInvalidLengthGenesis
  1796  			}
  1797  			if postIndex > l {
  1798  				return io.ErrUnexpectedEOF
  1799  			}
  1800  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  1801  			iNdEx = postIndex
  1802  		case 3:
  1803  			if wireType != 2 {
  1804  				return fmt.Errorf("proto: wrong wireType = %d for field StartingInfo", wireType)
  1805  			}
  1806  			var msglen int
  1807  			for shift := uint(0); ; shift += 7 {
  1808  				if shift >= 64 {
  1809  					return ErrIntOverflowGenesis
  1810  				}
  1811  				if iNdEx >= l {
  1812  					return io.ErrUnexpectedEOF
  1813  				}
  1814  				b := dAtA[iNdEx]
  1815  				iNdEx++
  1816  				msglen |= int(b&0x7F) << shift
  1817  				if b < 0x80 {
  1818  					break
  1819  				}
  1820  			}
  1821  			if msglen < 0 {
  1822  				return ErrInvalidLengthGenesis
  1823  			}
  1824  			postIndex := iNdEx + msglen
  1825  			if postIndex < 0 {
  1826  				return ErrInvalidLengthGenesis
  1827  			}
  1828  			if postIndex > l {
  1829  				return io.ErrUnexpectedEOF
  1830  			}
  1831  			if err := m.StartingInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1832  				return err
  1833  			}
  1834  			iNdEx = postIndex
  1835  		default:
  1836  			iNdEx = preIndex
  1837  			skippy, err := skipGenesis(dAtA[iNdEx:])
  1838  			if err != nil {
  1839  				return err
  1840  			}
  1841  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1842  				return ErrInvalidLengthGenesis
  1843  			}
  1844  			if (iNdEx + skippy) > l {
  1845  				return io.ErrUnexpectedEOF
  1846  			}
  1847  			iNdEx += skippy
  1848  		}
  1849  	}
  1850  
  1851  	if iNdEx > l {
  1852  		return io.ErrUnexpectedEOF
  1853  	}
  1854  	return nil
  1855  }
  1856  func (m *ValidatorSlashEventRecord) Unmarshal(dAtA []byte) error {
  1857  	l := len(dAtA)
  1858  	iNdEx := 0
  1859  	for iNdEx < l {
  1860  		preIndex := iNdEx
  1861  		var wire uint64
  1862  		for shift := uint(0); ; shift += 7 {
  1863  			if shift >= 64 {
  1864  				return ErrIntOverflowGenesis
  1865  			}
  1866  			if iNdEx >= l {
  1867  				return io.ErrUnexpectedEOF
  1868  			}
  1869  			b := dAtA[iNdEx]
  1870  			iNdEx++
  1871  			wire |= uint64(b&0x7F) << shift
  1872  			if b < 0x80 {
  1873  				break
  1874  			}
  1875  		}
  1876  		fieldNum := int32(wire >> 3)
  1877  		wireType := int(wire & 0x7)
  1878  		if wireType == 4 {
  1879  			return fmt.Errorf("proto: ValidatorSlashEventRecord: wiretype end group for non-group")
  1880  		}
  1881  		if fieldNum <= 0 {
  1882  			return fmt.Errorf("proto: ValidatorSlashEventRecord: illegal tag %d (wire type %d)", fieldNum, wire)
  1883  		}
  1884  		switch fieldNum {
  1885  		case 1:
  1886  			if wireType != 2 {
  1887  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  1888  			}
  1889  			var stringLen uint64
  1890  			for shift := uint(0); ; shift += 7 {
  1891  				if shift >= 64 {
  1892  					return ErrIntOverflowGenesis
  1893  				}
  1894  				if iNdEx >= l {
  1895  					return io.ErrUnexpectedEOF
  1896  				}
  1897  				b := dAtA[iNdEx]
  1898  				iNdEx++
  1899  				stringLen |= uint64(b&0x7F) << shift
  1900  				if b < 0x80 {
  1901  					break
  1902  				}
  1903  			}
  1904  			intStringLen := int(stringLen)
  1905  			if intStringLen < 0 {
  1906  				return ErrInvalidLengthGenesis
  1907  			}
  1908  			postIndex := iNdEx + intStringLen
  1909  			if postIndex < 0 {
  1910  				return ErrInvalidLengthGenesis
  1911  			}
  1912  			if postIndex > l {
  1913  				return io.ErrUnexpectedEOF
  1914  			}
  1915  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  1916  			iNdEx = postIndex
  1917  		case 2:
  1918  			if wireType != 0 {
  1919  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  1920  			}
  1921  			m.Height = 0
  1922  			for shift := uint(0); ; shift += 7 {
  1923  				if shift >= 64 {
  1924  					return ErrIntOverflowGenesis
  1925  				}
  1926  				if iNdEx >= l {
  1927  					return io.ErrUnexpectedEOF
  1928  				}
  1929  				b := dAtA[iNdEx]
  1930  				iNdEx++
  1931  				m.Height |= uint64(b&0x7F) << shift
  1932  				if b < 0x80 {
  1933  					break
  1934  				}
  1935  			}
  1936  		case 3:
  1937  			if wireType != 0 {
  1938  				return fmt.Errorf("proto: wrong wireType = %d for field Period", wireType)
  1939  			}
  1940  			m.Period = 0
  1941  			for shift := uint(0); ; shift += 7 {
  1942  				if shift >= 64 {
  1943  					return ErrIntOverflowGenesis
  1944  				}
  1945  				if iNdEx >= l {
  1946  					return io.ErrUnexpectedEOF
  1947  				}
  1948  				b := dAtA[iNdEx]
  1949  				iNdEx++
  1950  				m.Period |= uint64(b&0x7F) << shift
  1951  				if b < 0x80 {
  1952  					break
  1953  				}
  1954  			}
  1955  		case 4:
  1956  			if wireType != 2 {
  1957  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorSlashEvent", wireType)
  1958  			}
  1959  			var msglen int
  1960  			for shift := uint(0); ; shift += 7 {
  1961  				if shift >= 64 {
  1962  					return ErrIntOverflowGenesis
  1963  				}
  1964  				if iNdEx >= l {
  1965  					return io.ErrUnexpectedEOF
  1966  				}
  1967  				b := dAtA[iNdEx]
  1968  				iNdEx++
  1969  				msglen |= int(b&0x7F) << shift
  1970  				if b < 0x80 {
  1971  					break
  1972  				}
  1973  			}
  1974  			if msglen < 0 {
  1975  				return ErrInvalidLengthGenesis
  1976  			}
  1977  			postIndex := iNdEx + msglen
  1978  			if postIndex < 0 {
  1979  				return ErrInvalidLengthGenesis
  1980  			}
  1981  			if postIndex > l {
  1982  				return io.ErrUnexpectedEOF
  1983  			}
  1984  			if err := m.ValidatorSlashEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1985  				return err
  1986  			}
  1987  			iNdEx = postIndex
  1988  		default:
  1989  			iNdEx = preIndex
  1990  			skippy, err := skipGenesis(dAtA[iNdEx:])
  1991  			if err != nil {
  1992  				return err
  1993  			}
  1994  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1995  				return ErrInvalidLengthGenesis
  1996  			}
  1997  			if (iNdEx + skippy) > l {
  1998  				return io.ErrUnexpectedEOF
  1999  			}
  2000  			iNdEx += skippy
  2001  		}
  2002  	}
  2003  
  2004  	if iNdEx > l {
  2005  		return io.ErrUnexpectedEOF
  2006  	}
  2007  	return nil
  2008  }
  2009  func (m *GenesisState) Unmarshal(dAtA []byte) error {
  2010  	l := len(dAtA)
  2011  	iNdEx := 0
  2012  	for iNdEx < l {
  2013  		preIndex := iNdEx
  2014  		var wire uint64
  2015  		for shift := uint(0); ; shift += 7 {
  2016  			if shift >= 64 {
  2017  				return ErrIntOverflowGenesis
  2018  			}
  2019  			if iNdEx >= l {
  2020  				return io.ErrUnexpectedEOF
  2021  			}
  2022  			b := dAtA[iNdEx]
  2023  			iNdEx++
  2024  			wire |= uint64(b&0x7F) << shift
  2025  			if b < 0x80 {
  2026  				break
  2027  			}
  2028  		}
  2029  		fieldNum := int32(wire >> 3)
  2030  		wireType := int(wire & 0x7)
  2031  		if wireType == 4 {
  2032  			return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
  2033  		}
  2034  		if fieldNum <= 0 {
  2035  			return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
  2036  		}
  2037  		switch fieldNum {
  2038  		case 1:
  2039  			if wireType != 2 {
  2040  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  2041  			}
  2042  			var msglen int
  2043  			for shift := uint(0); ; shift += 7 {
  2044  				if shift >= 64 {
  2045  					return ErrIntOverflowGenesis
  2046  				}
  2047  				if iNdEx >= l {
  2048  					return io.ErrUnexpectedEOF
  2049  				}
  2050  				b := dAtA[iNdEx]
  2051  				iNdEx++
  2052  				msglen |= int(b&0x7F) << shift
  2053  				if b < 0x80 {
  2054  					break
  2055  				}
  2056  			}
  2057  			if msglen < 0 {
  2058  				return ErrInvalidLengthGenesis
  2059  			}
  2060  			postIndex := iNdEx + msglen
  2061  			if postIndex < 0 {
  2062  				return ErrInvalidLengthGenesis
  2063  			}
  2064  			if postIndex > l {
  2065  				return io.ErrUnexpectedEOF
  2066  			}
  2067  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2068  				return err
  2069  			}
  2070  			iNdEx = postIndex
  2071  		case 2:
  2072  			if wireType != 2 {
  2073  				return fmt.Errorf("proto: wrong wireType = %d for field FeePool", wireType)
  2074  			}
  2075  			var msglen int
  2076  			for shift := uint(0); ; shift += 7 {
  2077  				if shift >= 64 {
  2078  					return ErrIntOverflowGenesis
  2079  				}
  2080  				if iNdEx >= l {
  2081  					return io.ErrUnexpectedEOF
  2082  				}
  2083  				b := dAtA[iNdEx]
  2084  				iNdEx++
  2085  				msglen |= int(b&0x7F) << shift
  2086  				if b < 0x80 {
  2087  					break
  2088  				}
  2089  			}
  2090  			if msglen < 0 {
  2091  				return ErrInvalidLengthGenesis
  2092  			}
  2093  			postIndex := iNdEx + msglen
  2094  			if postIndex < 0 {
  2095  				return ErrInvalidLengthGenesis
  2096  			}
  2097  			if postIndex > l {
  2098  				return io.ErrUnexpectedEOF
  2099  			}
  2100  			if err := m.FeePool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2101  				return err
  2102  			}
  2103  			iNdEx = postIndex
  2104  		case 3:
  2105  			if wireType != 2 {
  2106  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorWithdrawInfos", wireType)
  2107  			}
  2108  			var msglen int
  2109  			for shift := uint(0); ; shift += 7 {
  2110  				if shift >= 64 {
  2111  					return ErrIntOverflowGenesis
  2112  				}
  2113  				if iNdEx >= l {
  2114  					return io.ErrUnexpectedEOF
  2115  				}
  2116  				b := dAtA[iNdEx]
  2117  				iNdEx++
  2118  				msglen |= int(b&0x7F) << shift
  2119  				if b < 0x80 {
  2120  					break
  2121  				}
  2122  			}
  2123  			if msglen < 0 {
  2124  				return ErrInvalidLengthGenesis
  2125  			}
  2126  			postIndex := iNdEx + msglen
  2127  			if postIndex < 0 {
  2128  				return ErrInvalidLengthGenesis
  2129  			}
  2130  			if postIndex > l {
  2131  				return io.ErrUnexpectedEOF
  2132  			}
  2133  			m.DelegatorWithdrawInfos = append(m.DelegatorWithdrawInfos, DelegatorWithdrawInfo{})
  2134  			if err := m.DelegatorWithdrawInfos[len(m.DelegatorWithdrawInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2135  				return err
  2136  			}
  2137  			iNdEx = postIndex
  2138  		case 4:
  2139  			if wireType != 2 {
  2140  				return fmt.Errorf("proto: wrong wireType = %d for field PreviousProposer", wireType)
  2141  			}
  2142  			var stringLen uint64
  2143  			for shift := uint(0); ; shift += 7 {
  2144  				if shift >= 64 {
  2145  					return ErrIntOverflowGenesis
  2146  				}
  2147  				if iNdEx >= l {
  2148  					return io.ErrUnexpectedEOF
  2149  				}
  2150  				b := dAtA[iNdEx]
  2151  				iNdEx++
  2152  				stringLen |= uint64(b&0x7F) << shift
  2153  				if b < 0x80 {
  2154  					break
  2155  				}
  2156  			}
  2157  			intStringLen := int(stringLen)
  2158  			if intStringLen < 0 {
  2159  				return ErrInvalidLengthGenesis
  2160  			}
  2161  			postIndex := iNdEx + intStringLen
  2162  			if postIndex < 0 {
  2163  				return ErrInvalidLengthGenesis
  2164  			}
  2165  			if postIndex > l {
  2166  				return io.ErrUnexpectedEOF
  2167  			}
  2168  			m.PreviousProposer = string(dAtA[iNdEx:postIndex])
  2169  			iNdEx = postIndex
  2170  		case 5:
  2171  			if wireType != 2 {
  2172  				return fmt.Errorf("proto: wrong wireType = %d for field OutstandingRewards", wireType)
  2173  			}
  2174  			var msglen int
  2175  			for shift := uint(0); ; shift += 7 {
  2176  				if shift >= 64 {
  2177  					return ErrIntOverflowGenesis
  2178  				}
  2179  				if iNdEx >= l {
  2180  					return io.ErrUnexpectedEOF
  2181  				}
  2182  				b := dAtA[iNdEx]
  2183  				iNdEx++
  2184  				msglen |= int(b&0x7F) << shift
  2185  				if b < 0x80 {
  2186  					break
  2187  				}
  2188  			}
  2189  			if msglen < 0 {
  2190  				return ErrInvalidLengthGenesis
  2191  			}
  2192  			postIndex := iNdEx + msglen
  2193  			if postIndex < 0 {
  2194  				return ErrInvalidLengthGenesis
  2195  			}
  2196  			if postIndex > l {
  2197  				return io.ErrUnexpectedEOF
  2198  			}
  2199  			m.OutstandingRewards = append(m.OutstandingRewards, ValidatorOutstandingRewardsRecord{})
  2200  			if err := m.OutstandingRewards[len(m.OutstandingRewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2201  				return err
  2202  			}
  2203  			iNdEx = postIndex
  2204  		case 6:
  2205  			if wireType != 2 {
  2206  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAccumulatedCommissions", wireType)
  2207  			}
  2208  			var msglen int
  2209  			for shift := uint(0); ; shift += 7 {
  2210  				if shift >= 64 {
  2211  					return ErrIntOverflowGenesis
  2212  				}
  2213  				if iNdEx >= l {
  2214  					return io.ErrUnexpectedEOF
  2215  				}
  2216  				b := dAtA[iNdEx]
  2217  				iNdEx++
  2218  				msglen |= int(b&0x7F) << shift
  2219  				if b < 0x80 {
  2220  					break
  2221  				}
  2222  			}
  2223  			if msglen < 0 {
  2224  				return ErrInvalidLengthGenesis
  2225  			}
  2226  			postIndex := iNdEx + msglen
  2227  			if postIndex < 0 {
  2228  				return ErrInvalidLengthGenesis
  2229  			}
  2230  			if postIndex > l {
  2231  				return io.ErrUnexpectedEOF
  2232  			}
  2233  			m.ValidatorAccumulatedCommissions = append(m.ValidatorAccumulatedCommissions, ValidatorAccumulatedCommissionRecord{})
  2234  			if err := m.ValidatorAccumulatedCommissions[len(m.ValidatorAccumulatedCommissions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2235  				return err
  2236  			}
  2237  			iNdEx = postIndex
  2238  		case 7:
  2239  			if wireType != 2 {
  2240  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorHistoricalRewards", wireType)
  2241  			}
  2242  			var msglen int
  2243  			for shift := uint(0); ; shift += 7 {
  2244  				if shift >= 64 {
  2245  					return ErrIntOverflowGenesis
  2246  				}
  2247  				if iNdEx >= l {
  2248  					return io.ErrUnexpectedEOF
  2249  				}
  2250  				b := dAtA[iNdEx]
  2251  				iNdEx++
  2252  				msglen |= int(b&0x7F) << shift
  2253  				if b < 0x80 {
  2254  					break
  2255  				}
  2256  			}
  2257  			if msglen < 0 {
  2258  				return ErrInvalidLengthGenesis
  2259  			}
  2260  			postIndex := iNdEx + msglen
  2261  			if postIndex < 0 {
  2262  				return ErrInvalidLengthGenesis
  2263  			}
  2264  			if postIndex > l {
  2265  				return io.ErrUnexpectedEOF
  2266  			}
  2267  			m.ValidatorHistoricalRewards = append(m.ValidatorHistoricalRewards, ValidatorHistoricalRewardsRecord{})
  2268  			if err := m.ValidatorHistoricalRewards[len(m.ValidatorHistoricalRewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2269  				return err
  2270  			}
  2271  			iNdEx = postIndex
  2272  		case 8:
  2273  			if wireType != 2 {
  2274  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorCurrentRewards", wireType)
  2275  			}
  2276  			var msglen int
  2277  			for shift := uint(0); ; shift += 7 {
  2278  				if shift >= 64 {
  2279  					return ErrIntOverflowGenesis
  2280  				}
  2281  				if iNdEx >= l {
  2282  					return io.ErrUnexpectedEOF
  2283  				}
  2284  				b := dAtA[iNdEx]
  2285  				iNdEx++
  2286  				msglen |= int(b&0x7F) << shift
  2287  				if b < 0x80 {
  2288  					break
  2289  				}
  2290  			}
  2291  			if msglen < 0 {
  2292  				return ErrInvalidLengthGenesis
  2293  			}
  2294  			postIndex := iNdEx + msglen
  2295  			if postIndex < 0 {
  2296  				return ErrInvalidLengthGenesis
  2297  			}
  2298  			if postIndex > l {
  2299  				return io.ErrUnexpectedEOF
  2300  			}
  2301  			m.ValidatorCurrentRewards = append(m.ValidatorCurrentRewards, ValidatorCurrentRewardsRecord{})
  2302  			if err := m.ValidatorCurrentRewards[len(m.ValidatorCurrentRewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2303  				return err
  2304  			}
  2305  			iNdEx = postIndex
  2306  		case 9:
  2307  			if wireType != 2 {
  2308  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorStartingInfos", wireType)
  2309  			}
  2310  			var msglen int
  2311  			for shift := uint(0); ; shift += 7 {
  2312  				if shift >= 64 {
  2313  					return ErrIntOverflowGenesis
  2314  				}
  2315  				if iNdEx >= l {
  2316  					return io.ErrUnexpectedEOF
  2317  				}
  2318  				b := dAtA[iNdEx]
  2319  				iNdEx++
  2320  				msglen |= int(b&0x7F) << shift
  2321  				if b < 0x80 {
  2322  					break
  2323  				}
  2324  			}
  2325  			if msglen < 0 {
  2326  				return ErrInvalidLengthGenesis
  2327  			}
  2328  			postIndex := iNdEx + msglen
  2329  			if postIndex < 0 {
  2330  				return ErrInvalidLengthGenesis
  2331  			}
  2332  			if postIndex > l {
  2333  				return io.ErrUnexpectedEOF
  2334  			}
  2335  			m.DelegatorStartingInfos = append(m.DelegatorStartingInfos, DelegatorStartingInfoRecord{})
  2336  			if err := m.DelegatorStartingInfos[len(m.DelegatorStartingInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2337  				return err
  2338  			}
  2339  			iNdEx = postIndex
  2340  		case 10:
  2341  			if wireType != 2 {
  2342  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorSlashEvents", wireType)
  2343  			}
  2344  			var msglen int
  2345  			for shift := uint(0); ; shift += 7 {
  2346  				if shift >= 64 {
  2347  					return ErrIntOverflowGenesis
  2348  				}
  2349  				if iNdEx >= l {
  2350  					return io.ErrUnexpectedEOF
  2351  				}
  2352  				b := dAtA[iNdEx]
  2353  				iNdEx++
  2354  				msglen |= int(b&0x7F) << shift
  2355  				if b < 0x80 {
  2356  					break
  2357  				}
  2358  			}
  2359  			if msglen < 0 {
  2360  				return ErrInvalidLengthGenesis
  2361  			}
  2362  			postIndex := iNdEx + msglen
  2363  			if postIndex < 0 {
  2364  				return ErrInvalidLengthGenesis
  2365  			}
  2366  			if postIndex > l {
  2367  				return io.ErrUnexpectedEOF
  2368  			}
  2369  			m.ValidatorSlashEvents = append(m.ValidatorSlashEvents, ValidatorSlashEventRecord{})
  2370  			if err := m.ValidatorSlashEvents[len(m.ValidatorSlashEvents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2371  				return err
  2372  			}
  2373  			iNdEx = postIndex
  2374  		default:
  2375  			iNdEx = preIndex
  2376  			skippy, err := skipGenesis(dAtA[iNdEx:])
  2377  			if err != nil {
  2378  				return err
  2379  			}
  2380  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2381  				return ErrInvalidLengthGenesis
  2382  			}
  2383  			if (iNdEx + skippy) > l {
  2384  				return io.ErrUnexpectedEOF
  2385  			}
  2386  			iNdEx += skippy
  2387  		}
  2388  	}
  2389  
  2390  	if iNdEx > l {
  2391  		return io.ErrUnexpectedEOF
  2392  	}
  2393  	return nil
  2394  }
  2395  func skipGenesis(dAtA []byte) (n int, err error) {
  2396  	l := len(dAtA)
  2397  	iNdEx := 0
  2398  	depth := 0
  2399  	for iNdEx < l {
  2400  		var wire uint64
  2401  		for shift := uint(0); ; shift += 7 {
  2402  			if shift >= 64 {
  2403  				return 0, ErrIntOverflowGenesis
  2404  			}
  2405  			if iNdEx >= l {
  2406  				return 0, io.ErrUnexpectedEOF
  2407  			}
  2408  			b := dAtA[iNdEx]
  2409  			iNdEx++
  2410  			wire |= (uint64(b) & 0x7F) << shift
  2411  			if b < 0x80 {
  2412  				break
  2413  			}
  2414  		}
  2415  		wireType := int(wire & 0x7)
  2416  		switch wireType {
  2417  		case 0:
  2418  			for shift := uint(0); ; shift += 7 {
  2419  				if shift >= 64 {
  2420  					return 0, ErrIntOverflowGenesis
  2421  				}
  2422  				if iNdEx >= l {
  2423  					return 0, io.ErrUnexpectedEOF
  2424  				}
  2425  				iNdEx++
  2426  				if dAtA[iNdEx-1] < 0x80 {
  2427  					break
  2428  				}
  2429  			}
  2430  		case 1:
  2431  			iNdEx += 8
  2432  		case 2:
  2433  			var length int
  2434  			for shift := uint(0); ; shift += 7 {
  2435  				if shift >= 64 {
  2436  					return 0, ErrIntOverflowGenesis
  2437  				}
  2438  				if iNdEx >= l {
  2439  					return 0, io.ErrUnexpectedEOF
  2440  				}
  2441  				b := dAtA[iNdEx]
  2442  				iNdEx++
  2443  				length |= (int(b) & 0x7F) << shift
  2444  				if b < 0x80 {
  2445  					break
  2446  				}
  2447  			}
  2448  			if length < 0 {
  2449  				return 0, ErrInvalidLengthGenesis
  2450  			}
  2451  			iNdEx += length
  2452  		case 3:
  2453  			depth++
  2454  		case 4:
  2455  			if depth == 0 {
  2456  				return 0, ErrUnexpectedEndOfGroupGenesis
  2457  			}
  2458  			depth--
  2459  		case 5:
  2460  			iNdEx += 4
  2461  		default:
  2462  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2463  		}
  2464  		if iNdEx < 0 {
  2465  			return 0, ErrInvalidLengthGenesis
  2466  		}
  2467  		if depth == 0 {
  2468  			return iNdEx, nil
  2469  		}
  2470  	}
  2471  	return 0, io.ErrUnexpectedEOF
  2472  }
  2473  
  2474  var (
  2475  	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
  2476  	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
  2477  	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
  2478  )