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