github.com/KiraCore/sekai@v0.3.43/x/gov/legacy/v01228/network_properties.pb.go (about) 1 package types 2 3 import ( 4 fmt "fmt" 5 io "io" 6 math "math" 7 math_bits "math/bits" 8 9 _ "github.com/gogo/protobuf/gogoproto" 10 proto "github.com/gogo/protobuf/proto" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 23 24 type NetworkPropertiesV0228 struct { 25 MinTxFee uint64 `protobuf:"varint,1,opt,name=min_tx_fee,json=minTxFee,proto3" json:"min_tx_fee,omitempty"` 26 MaxTxFee uint64 `protobuf:"varint,2,opt,name=max_tx_fee,json=maxTxFee,proto3" json:"max_tx_fee,omitempty"` 27 VoteQuorum uint64 `protobuf:"varint,3,opt,name=vote_quorum,json=voteQuorum,proto3" json:"vote_quorum,omitempty"` 28 ProposalEndTime uint64 `protobuf:"varint,4,opt,name=proposal_end_time,json=proposalEndTime,proto3" json:"proposal_end_time,omitempty"` 29 ProposalEnactmentTime uint64 `protobuf:"varint,5,opt,name=proposal_enactment_time,json=proposalEnactmentTime,proto3" json:"proposal_enactment_time,omitempty"` 30 MinProposalEndBlocks uint64 `protobuf:"varint,6,opt,name=min_proposal_end_blocks,json=minProposalEndBlocks,proto3" json:"min_proposal_end_blocks,omitempty"` 31 MinProposalEnactmentBlocks uint64 `protobuf:"varint,7,opt,name=min_proposal_enactment_blocks,json=minProposalEnactmentBlocks,proto3" json:"min_proposal_enactment_blocks,omitempty"` 32 EnableForeignFeePayments bool `protobuf:"varint,8,opt,name=enable_foreign_fee_payments,json=enableForeignFeePayments,proto3" json:"enable_foreign_fee_payments,omitempty"` 33 MischanceRankDecreaseAmount uint64 `protobuf:"varint,9,opt,name=mischance_rank_decrease_amount,json=mischanceRankDecreaseAmount,proto3" json:"mischance_rank_decrease_amount,omitempty"` 34 MaxMischance uint64 `protobuf:"varint,10,opt,name=max_mischance,json=maxMischance,proto3" json:"max_mischance,omitempty"` 35 MischanceConfidence uint64 `protobuf:"varint,11,opt,name=mischance_confidence,json=mischanceConfidence,proto3" json:"mischance_confidence,omitempty"` 36 InactiveRankDecreasePercent uint64 `protobuf:"varint,12,opt,name=inactive_rank_decrease_percent,json=inactiveRankDecreasePercent,proto3" json:"inactive_rank_decrease_percent,omitempty"` 37 MinValidators uint64 `protobuf:"varint,13,opt,name=min_validators,json=minValidators,proto3" json:"min_validators,omitempty"` 38 PoorNetworkMaxBankSend uint64 `protobuf:"varint,14,opt,name=poor_network_max_bank_send,json=poorNetworkMaxBankSend,proto3" json:"poor_network_max_bank_send,omitempty"` 39 JailMaxTime uint64 `protobuf:"varint,15,opt,name=jail_max_time,json=jailMaxTime,proto3" json:"jail_max_time,omitempty"` 40 EnableTokenWhitelist bool `protobuf:"varint,16,opt,name=enable_token_whitelist,json=enableTokenWhitelist,proto3" json:"enable_token_whitelist,omitempty"` 41 EnableTokenBlacklist bool `protobuf:"varint,17,opt,name=enable_token_blacklist,json=enableTokenBlacklist,proto3" json:"enable_token_blacklist,omitempty"` 42 MinIdentityApprovalTip uint64 `protobuf:"varint,18,opt,name=min_identity_approval_tip,json=minIdentityApprovalTip,proto3" json:"min_identity_approval_tip,omitempty"` 43 UniqueIdentityKeys string `protobuf:"bytes,19,opt,name=unique_identity_keys,json=uniqueIdentityKeys,proto3" json:"unique_identity_keys,omitempty"` 44 } 45 46 func (m *NetworkPropertiesV0228) Reset() { *m = NetworkPropertiesV0228{} } 47 func (m *NetworkPropertiesV0228) String() string { return proto.CompactTextString(m) } 48 func (*NetworkPropertiesV0228) ProtoMessage() {} 49 func (*NetworkPropertiesV0228) Descriptor() ([]byte, []int) { 50 return fileDescriptor_98011a6048e5dde3, []int{2} 51 } 52 func (m *NetworkPropertiesV0228) XXX_Unmarshal(b []byte) error { 53 return m.Unmarshal(b) 54 } 55 func (m *NetworkPropertiesV0228) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 56 if deterministic { 57 return xxx_messageInfo_NetworkProperties.Marshal(b, m, deterministic) 58 } else { 59 b = b[:cap(b)] 60 n, err := m.MarshalToSizedBuffer(b) 61 if err != nil { 62 return nil, err 63 } 64 return b[:n], nil 65 } 66 } 67 func (m *NetworkPropertiesV0228) XXX_Merge(src proto.Message) { 68 xxx_messageInfo_NetworkProperties.Merge(m, src) 69 } 70 func (m *NetworkPropertiesV0228) XXX_Size() int { 71 return m.Size() 72 } 73 func (m *NetworkPropertiesV0228) XXX_DiscardUnknown() { 74 xxx_messageInfo_NetworkProperties.DiscardUnknown(m) 75 } 76 77 var xxx_messageInfo_NetworkProperties proto.InternalMessageInfo 78 79 func (m *NetworkPropertiesV0228) GetMinTxFee() uint64 { 80 if m != nil { 81 return m.MinTxFee 82 } 83 return 0 84 } 85 86 func (m *NetworkPropertiesV0228) GetMaxTxFee() uint64 { 87 if m != nil { 88 return m.MaxTxFee 89 } 90 return 0 91 } 92 93 func (m *NetworkPropertiesV0228) GetVoteQuorum() uint64 { 94 if m != nil { 95 return m.VoteQuorum 96 } 97 return 0 98 } 99 100 func (m *NetworkPropertiesV0228) GetProposalEndTime() uint64 { 101 if m != nil { 102 return m.ProposalEndTime 103 } 104 return 0 105 } 106 107 func (m *NetworkPropertiesV0228) GetProposalEnactmentTime() uint64 { 108 if m != nil { 109 return m.ProposalEnactmentTime 110 } 111 return 0 112 } 113 114 func (m *NetworkPropertiesV0228) GetMinProposalEndBlocks() uint64 { 115 if m != nil { 116 return m.MinProposalEndBlocks 117 } 118 return 0 119 } 120 121 func (m *NetworkPropertiesV0228) GetMinProposalEnactmentBlocks() uint64 { 122 if m != nil { 123 return m.MinProposalEnactmentBlocks 124 } 125 return 0 126 } 127 128 func (m *NetworkPropertiesV0228) GetEnableForeignFeePayments() bool { 129 if m != nil { 130 return m.EnableForeignFeePayments 131 } 132 return false 133 } 134 135 func (m *NetworkPropertiesV0228) GetMischanceRankDecreaseAmount() uint64 { 136 if m != nil { 137 return m.MischanceRankDecreaseAmount 138 } 139 return 0 140 } 141 142 func (m *NetworkPropertiesV0228) GetMaxMischance() uint64 { 143 if m != nil { 144 return m.MaxMischance 145 } 146 return 0 147 } 148 149 func (m *NetworkPropertiesV0228) GetMischanceConfidence() uint64 { 150 if m != nil { 151 return m.MischanceConfidence 152 } 153 return 0 154 } 155 156 func (m *NetworkPropertiesV0228) GetInactiveRankDecreasePercent() uint64 { 157 if m != nil { 158 return m.InactiveRankDecreasePercent 159 } 160 return 0 161 } 162 163 func (m *NetworkPropertiesV0228) GetMinValidators() uint64 { 164 if m != nil { 165 return m.MinValidators 166 } 167 return 0 168 } 169 170 func (m *NetworkPropertiesV0228) GetPoorNetworkMaxBankSend() uint64 { 171 if m != nil { 172 return m.PoorNetworkMaxBankSend 173 } 174 return 0 175 } 176 177 func (m *NetworkPropertiesV0228) GetJailMaxTime() uint64 { 178 if m != nil { 179 return m.JailMaxTime 180 } 181 return 0 182 } 183 184 func (m *NetworkPropertiesV0228) GetEnableTokenWhitelist() bool { 185 if m != nil { 186 return m.EnableTokenWhitelist 187 } 188 return false 189 } 190 191 func (m *NetworkPropertiesV0228) GetEnableTokenBlacklist() bool { 192 if m != nil { 193 return m.EnableTokenBlacklist 194 } 195 return false 196 } 197 198 func (m *NetworkPropertiesV0228) GetMinIdentityApprovalTip() uint64 { 199 if m != nil { 200 return m.MinIdentityApprovalTip 201 } 202 return 0 203 } 204 205 func (m *NetworkPropertiesV0228) GetUniqueIdentityKeys() string { 206 if m != nil { 207 return m.UniqueIdentityKeys 208 } 209 return "" 210 } 211 212 func init() { 213 proto.RegisterType((*NetworkPropertiesV0228)(nil), "kira.gov.NetworkPropertiesV0228") 214 } 215 216 func init() { proto.RegisterFile("kira/gov/network_properties.proto", fileDescriptor_98011a6048e5dde3) } 217 218 var fileDescriptor_98011a6048e5dde3 = []byte{ 219 // 1202 bytes of a gzipped FileDescriptorProto 220 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x56, 0xcb, 0x6e, 0xdb, 0x46, 221 0x17, 0xb6, 0x12, 0x27, 0x96, 0xc7, 0x96, 0x4d, 0xd3, 0x8a, 0xcd, 0xd0, 0xf9, 0x65, 0xfe, 0x2e, 222 0x02, 0x04, 0x01, 0x62, 0x35, 0xbd, 0x01, 0x0d, 0x50, 0x14, 0x94, 0x3c, 0x6e, 0x18, 0x89, 0x97, 223 0x50, 0xb4, 0x92, 0x74, 0x33, 0x18, 0x4b, 0x13, 0x65, 0x2a, 0x91, 0x54, 0x48, 0x4a, 0x91, 0xdf, 224 0xa0, 0xe0, 0xaa, 0x2f, 0x40, 0xa0, 0x40, 0x5f, 0xa1, 0x0f, 0xd1, 0x5d, 0x03, 0x74, 0xd3, 0x55, 225 0x51, 0xc4, 0x9b, 0x3e, 0x43, 0x57, 0xc5, 0x0c, 0x49, 0xd9, 0x92, 0x62, 0xaf, 0x2c, 0xcf, 0x77, 226 0x39, 0xe7, 0xcc, 0xcc, 0x47, 0x0c, 0xf8, 0x7f, 0x9f, 0x06, 0xb8, 0xda, 0xf3, 0xc7, 0x55, 0x8f, 227 0x44, 0xef, 0xfc, 0xa0, 0x8f, 0x86, 0x81, 0x3f, 0x24, 0x41, 0x44, 0x49, 0x78, 0x38, 0x0c, 0xfc, 228 0xc8, 0x17, 0x8b, 0x8c, 0x72, 0xd8, 0xf3, 0xc7, 0x72, 0xb9, 0xe7, 0xf7, 0x7c, 0xbe, 0x58, 0x65, 229 0xbf, 0x52, 0xfc, 0xe0, 0xd7, 0x02, 0xd8, 0xd5, 0xc3, 0x5e, 0x8b, 0x44, 0x46, 0x6a, 0x61, 0x4d, 230 0x1d, 0xc4, 0x67, 0x40, 0x5c, 0xf4, 0x95, 0x0a, 0x4a, 0xe1, 0xc1, 0xda, 0x67, 0x7b, 0x87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 0x8f, 0xbe, 0x1d, 0x91, 0x0b, 0x75, 0x9f, 265 0x9c, 0x85, 0xd2, 0x36, 0x4f, 0xb3, 0x98, 0x62, 0xb9, 0xb0, 0x41, 0xce, 0xc2, 0x87, 0x7f, 0xac, 266 0x80, 0xcd, 0xb9, 0x6f, 0x04, 0x4b, 0xac, 0xae, 0x19, 0xc8, 0x79, 0x89, 0x8e, 0x21, 0x14, 0x96, 267 0xe4, 0xf5, 0x38, 0x51, 0x8a, 0xfa, 0xa5, 0x3c, 0xeb, 0xea, 0xcb, 0x1c, 0x2d, 0x64, 0xe8, 0xa5, 268 0x3c, 0xb7, 0x4d, 0x07, 0xa2, 0xe7, 0x27, 0xa6, 0x7d, 0xa2, 0x0b, 0x37, 0xe4, 0x8d, 0x38, 0x51, 269 0x40, 0x7b, 0x26, 0xcf, 0x96, 0x6d, 0x5a, 0x66, 0x4b, 0x6d, 0x22, 0x68, 0x1c, 0x21, 0x47, 0xd3, 270 0xa1, 0x70, 0x53, 0xde, 0x8e, 0x13, 0x65, 0xd3, 0x5a, 0xcc, 0xf3, 0x25, 0xae, 0x5a, 0x77, 0x74, 271 0x68, 0x38, 0xa9, 0x62, 0x59, 0xbe, 0x1b, 0x27, 0xca, 0x1d, 0xeb, 0xaa, 0x3c, 0xb3, 0x01, 0x66, 272 0xea, 0xd4, 0x9a, 0x66, 0xbd, 0xd1, 0x12, 0x6e, 0xc9, 0x52, 0x9c, 0x28, 0x65, 0xfd, 0x8a, 0x3c, 273 0xcf, 0xc9, 0xf2, 0x92, 0x99, 0xf8, 0xb6, 0x5c, 0x89, 0x13, 0x45, 0xd6, 0xaf, 0xcd, 0x33, 0x34, 274 0xd4, 0x5a, 0x13, 0xa2, 0x63, 0xd3, 0x86, 0xda, 0x77, 0x06, 0xdb, 0x24, 0x64, 0xa9, 0xaf, 0x98, 275 0x4d, 0x4b, 0x58, 0x91, 0xef, 0xc5, 0x89, 0x22, 0xc1, 0x6b, 0xf2, 0xac, 0x6b, 0xad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0x53, 0xad, 0x37, 0xb8, 0x4a, 0x58, 0x50, 0xcd, 0xe4, 0x99, 0xb5, 0xcd, 0x36, 0xd8, 0xd1, 288 0x9c, 0x57, 0x48, 0xb5, 0x2c, 0xdb, 0x6c, 0xab, 0x4d, 0xe4, 0x68, 0x96, 0xb0, 0x95, 0x4e, 0xac, 289 0x5f, 0x99, 0xe7, 0x13, 0x43, 0x7b, 0x7e, 0x02, 0x2f, 0xd4, 0x0d, 0xf8, 0xaa, 0x25, 0x88, 0xf2, 290 0x4e, 0x9c, 0x28, 0xe2, 0xc9, 0x42, 0x9e, 0xe5, 0xe5, 0x1f, 0x7f, 0xa9, 0x2c, 0xd5, 0xbe, 0xfd, 291 0xed, 0x43, 0xa5, 0xf0, 0xfe, 0x43, 0xa5, 0xf0, 0xf7, 0x87, 0x4a, 0xe1, 0xa7, 0xf3, 0xca, 0xd2, 292 0xfb, 0xf3, 0xca, 0xd2, 0x9f, 0xe7, 0x95, 0xa5, 0xef, 0xef, 0x5f, 0x7a, 0x4b, 0x34, 0x68, 0x80, 293 0xeb, 0x7e, 0x40, 0xaa, 0x21, 0xe9, 0x63, 0x5a, 0x9d, 0xf0, 0x37, 0x12, 0x7f, 0x4e, 0x9c, 0xde, 294 0xe6, 0xef, 0x9e, 0xcf, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x47, 0x3a, 0x99, 0xc8, 0x3c, 0x09, 295 0x00, 0x00, 296 } 297 298 func (m *NetworkPropertiesV0228) Marshal() (dAtA []byte, err error) { 299 size := m.Size() 300 dAtA = make([]byte, size) 301 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 302 if err != nil { 303 return nil, err 304 } 305 return dAtA[:n], nil 306 } 307 308 func (m *NetworkPropertiesV0228) MarshalTo(dAtA []byte) (int, error) { 309 size := m.Size() 310 return m.MarshalToSizedBuffer(dAtA[:size]) 311 } 312 313 func (m *NetworkPropertiesV0228) MarshalToSizedBuffer(dAtA []byte) (int, error) { 314 i := len(dAtA) 315 _ = i 316 var l int 317 _ = l 318 if len(m.UniqueIdentityKeys) > 0 { 319 i -= len(m.UniqueIdentityKeys) 320 copy(dAtA[i:], m.UniqueIdentityKeys) 321 i = encodeVarintNetworkProperties(dAtA, i, uint64(len(m.UniqueIdentityKeys))) 322 i-- 323 dAtA[i] = 0x1 324 i-- 325 dAtA[i] = 0x9a 326 } 327 if m.MinIdentityApprovalTip != 0 { 328 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MinIdentityApprovalTip)) 329 i-- 330 dAtA[i] = 0x1 331 i-- 332 dAtA[i] = 0x90 333 } 334 if m.EnableTokenBlacklist { 335 i-- 336 if m.EnableTokenBlacklist { 337 dAtA[i] = 1 338 } else { 339 dAtA[i] = 0 340 } 341 i-- 342 dAtA[i] = 0x1 343 i-- 344 dAtA[i] = 0x88 345 } 346 if m.EnableTokenWhitelist { 347 i-- 348 if m.EnableTokenWhitelist { 349 dAtA[i] = 1 350 } else { 351 dAtA[i] = 0 352 } 353 i-- 354 dAtA[i] = 0x1 355 i-- 356 dAtA[i] = 0x80 357 } 358 if m.JailMaxTime != 0 { 359 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.JailMaxTime)) 360 i-- 361 dAtA[i] = 0x78 362 } 363 if m.PoorNetworkMaxBankSend != 0 { 364 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.PoorNetworkMaxBankSend)) 365 i-- 366 dAtA[i] = 0x70 367 } 368 if m.MinValidators != 0 { 369 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MinValidators)) 370 i-- 371 dAtA[i] = 0x68 372 } 373 if m.InactiveRankDecreasePercent != 0 { 374 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.InactiveRankDecreasePercent)) 375 i-- 376 dAtA[i] = 0x60 377 } 378 if m.MischanceConfidence != 0 { 379 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MischanceConfidence)) 380 i-- 381 dAtA[i] = 0x58 382 } 383 if m.MaxMischance != 0 { 384 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MaxMischance)) 385 i-- 386 dAtA[i] = 0x50 387 } 388 if m.MischanceRankDecreaseAmount != 0 { 389 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MischanceRankDecreaseAmount)) 390 i-- 391 dAtA[i] = 0x48 392 } 393 if m.EnableForeignFeePayments { 394 i-- 395 if m.EnableForeignFeePayments { 396 dAtA[i] = 1 397 } else { 398 dAtA[i] = 0 399 } 400 i-- 401 dAtA[i] = 0x40 402 } 403 if m.MinProposalEnactmentBlocks != 0 { 404 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MinProposalEnactmentBlocks)) 405 i-- 406 dAtA[i] = 0x38 407 } 408 if m.MinProposalEndBlocks != 0 { 409 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MinProposalEndBlocks)) 410 i-- 411 dAtA[i] = 0x30 412 } 413 if m.ProposalEnactmentTime != 0 { 414 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.ProposalEnactmentTime)) 415 i-- 416 dAtA[i] = 0x28 417 } 418 if m.ProposalEndTime != 0 { 419 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.ProposalEndTime)) 420 i-- 421 dAtA[i] = 0x20 422 } 423 if m.VoteQuorum != 0 { 424 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.VoteQuorum)) 425 i-- 426 dAtA[i] = 0x18 427 } 428 if m.MaxTxFee != 0 { 429 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MaxTxFee)) 430 i-- 431 dAtA[i] = 0x10 432 } 433 if m.MinTxFee != 0 { 434 i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MinTxFee)) 435 i-- 436 dAtA[i] = 0x8 437 } 438 return len(dAtA) - i, nil 439 } 440 441 func encodeVarintNetworkProperties(dAtA []byte, offset int, v uint64) int { 442 offset -= sovNetworkProperties(v) 443 base := offset 444 for v >= 1<<7 { 445 dAtA[offset] = uint8(v&0x7f | 0x80) 446 v >>= 7 447 offset++ 448 } 449 dAtA[offset] = uint8(v) 450 return base 451 } 452 453 func (m *NetworkPropertiesV0228) Size() (n int) { 454 if m == nil { 455 return 0 456 } 457 var l int 458 _ = l 459 if m.MinTxFee != 0 { 460 n += 1 + sovNetworkProperties(uint64(m.MinTxFee)) 461 } 462 if m.MaxTxFee != 0 { 463 n += 1 + sovNetworkProperties(uint64(m.MaxTxFee)) 464 } 465 if m.VoteQuorum != 0 { 466 n += 1 + sovNetworkProperties(uint64(m.VoteQuorum)) 467 } 468 if m.ProposalEndTime != 0 { 469 n += 1 + sovNetworkProperties(uint64(m.ProposalEndTime)) 470 } 471 if m.ProposalEnactmentTime != 0 { 472 n += 1 + sovNetworkProperties(uint64(m.ProposalEnactmentTime)) 473 } 474 if m.MinProposalEndBlocks != 0 { 475 n += 1 + sovNetworkProperties(uint64(m.MinProposalEndBlocks)) 476 } 477 if m.MinProposalEnactmentBlocks != 0 { 478 n += 1 + sovNetworkProperties(uint64(m.MinProposalEnactmentBlocks)) 479 } 480 if m.EnableForeignFeePayments { 481 n += 2 482 } 483 if m.MischanceRankDecreaseAmount != 0 { 484 n += 1 + sovNetworkProperties(uint64(m.MischanceRankDecreaseAmount)) 485 } 486 if m.MaxMischance != 0 { 487 n += 1 + sovNetworkProperties(uint64(m.MaxMischance)) 488 } 489 if m.MischanceConfidence != 0 { 490 n += 1 + sovNetworkProperties(uint64(m.MischanceConfidence)) 491 } 492 if m.InactiveRankDecreasePercent != 0 { 493 n += 1 + sovNetworkProperties(uint64(m.InactiveRankDecreasePercent)) 494 } 495 if m.MinValidators != 0 { 496 n += 1 + sovNetworkProperties(uint64(m.MinValidators)) 497 } 498 if m.PoorNetworkMaxBankSend != 0 { 499 n += 1 + sovNetworkProperties(uint64(m.PoorNetworkMaxBankSend)) 500 } 501 if m.JailMaxTime != 0 { 502 n += 1 + sovNetworkProperties(uint64(m.JailMaxTime)) 503 } 504 if m.EnableTokenWhitelist { 505 n += 3 506 } 507 if m.EnableTokenBlacklist { 508 n += 3 509 } 510 if m.MinIdentityApprovalTip != 0 { 511 n += 2 + sovNetworkProperties(uint64(m.MinIdentityApprovalTip)) 512 } 513 l = len(m.UniqueIdentityKeys) 514 if l > 0 { 515 n += 2 + l + sovNetworkProperties(uint64(l)) 516 } 517 return n 518 } 519 520 func sovNetworkProperties(x uint64) (n int) { 521 return (math_bits.Len64(x|1) + 6) / 7 522 } 523 func sozNetworkProperties(x uint64) (n int) { 524 return sovNetworkProperties(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 525 } 526 527 func (m *NetworkPropertiesV0228) Unmarshal(dAtA []byte) error { 528 l := len(dAtA) 529 iNdEx := 0 530 for iNdEx < l { 531 preIndex := iNdEx 532 var wire uint64 533 for shift := uint(0); ; shift += 7 { 534 if shift >= 64 { 535 return ErrIntOverflowNetworkProperties 536 } 537 if iNdEx >= l { 538 return io.ErrUnexpectedEOF 539 } 540 b := dAtA[iNdEx] 541 iNdEx++ 542 wire |= uint64(b&0x7F) << shift 543 if b < 0x80 { 544 break 545 } 546 } 547 fieldNum := int32(wire >> 3) 548 wireType := int(wire & 0x7) 549 if wireType == 4 { 550 return fmt.Errorf("proto: NetworkProperties: wiretype end group for non-group") 551 } 552 if fieldNum <= 0 { 553 return fmt.Errorf("proto: NetworkProperties: illegal tag %d (wire type %d)", fieldNum, wire) 554 } 555 switch fieldNum { 556 case 1: 557 if wireType != 0 { 558 return fmt.Errorf("proto: wrong wireType = %d for field MinTxFee", wireType) 559 } 560 m.MinTxFee = 0 561 for shift := uint(0); ; shift += 7 { 562 if shift >= 64 { 563 return ErrIntOverflowNetworkProperties 564 } 565 if iNdEx >= l { 566 return io.ErrUnexpectedEOF 567 } 568 b := dAtA[iNdEx] 569 iNdEx++ 570 m.MinTxFee |= uint64(b&0x7F) << shift 571 if b < 0x80 { 572 break 573 } 574 } 575 case 2: 576 if wireType != 0 { 577 return fmt.Errorf("proto: wrong wireType = %d for field MaxTxFee", wireType) 578 } 579 m.MaxTxFee = 0 580 for shift := uint(0); ; shift += 7 { 581 if shift >= 64 { 582 return ErrIntOverflowNetworkProperties 583 } 584 if iNdEx >= l { 585 return io.ErrUnexpectedEOF 586 } 587 b := dAtA[iNdEx] 588 iNdEx++ 589 m.MaxTxFee |= uint64(b&0x7F) << shift 590 if b < 0x80 { 591 break 592 } 593 } 594 case 3: 595 if wireType != 0 { 596 return fmt.Errorf("proto: wrong wireType = %d for field VoteQuorum", wireType) 597 } 598 m.VoteQuorum = 0 599 for shift := uint(0); ; shift += 7 { 600 if shift >= 64 { 601 return ErrIntOverflowNetworkProperties 602 } 603 if iNdEx >= l { 604 return io.ErrUnexpectedEOF 605 } 606 b := dAtA[iNdEx] 607 iNdEx++ 608 m.VoteQuorum |= uint64(b&0x7F) << shift 609 if b < 0x80 { 610 break 611 } 612 } 613 case 4: 614 if wireType != 0 { 615 return fmt.Errorf("proto: wrong wireType = %d for field ProposalEndTime", wireType) 616 } 617 m.ProposalEndTime = 0 618 for shift := uint(0); ; shift += 7 { 619 if shift >= 64 { 620 return ErrIntOverflowNetworkProperties 621 } 622 if iNdEx >= l { 623 return io.ErrUnexpectedEOF 624 } 625 b := dAtA[iNdEx] 626 iNdEx++ 627 m.ProposalEndTime |= uint64(b&0x7F) << shift 628 if b < 0x80 { 629 break 630 } 631 } 632 case 5: 633 if wireType != 0 { 634 return fmt.Errorf("proto: wrong wireType = %d for field ProposalEnactmentTime", wireType) 635 } 636 m.ProposalEnactmentTime = 0 637 for shift := uint(0); ; shift += 7 { 638 if shift >= 64 { 639 return ErrIntOverflowNetworkProperties 640 } 641 if iNdEx >= l { 642 return io.ErrUnexpectedEOF 643 } 644 b := dAtA[iNdEx] 645 iNdEx++ 646 m.ProposalEnactmentTime |= uint64(b&0x7F) << shift 647 if b < 0x80 { 648 break 649 } 650 } 651 case 6: 652 if wireType != 0 { 653 return fmt.Errorf("proto: wrong wireType = %d for field MinProposalEndBlocks", wireType) 654 } 655 m.MinProposalEndBlocks = 0 656 for shift := uint(0); ; shift += 7 { 657 if shift >= 64 { 658 return ErrIntOverflowNetworkProperties 659 } 660 if iNdEx >= l { 661 return io.ErrUnexpectedEOF 662 } 663 b := dAtA[iNdEx] 664 iNdEx++ 665 m.MinProposalEndBlocks |= uint64(b&0x7F) << shift 666 if b < 0x80 { 667 break 668 } 669 } 670 case 7: 671 if wireType != 0 { 672 return fmt.Errorf("proto: wrong wireType = %d for field MinProposalEnactmentBlocks", wireType) 673 } 674 m.MinProposalEnactmentBlocks = 0 675 for shift := uint(0); ; shift += 7 { 676 if shift >= 64 { 677 return ErrIntOverflowNetworkProperties 678 } 679 if iNdEx >= l { 680 return io.ErrUnexpectedEOF 681 } 682 b := dAtA[iNdEx] 683 iNdEx++ 684 m.MinProposalEnactmentBlocks |= uint64(b&0x7F) << shift 685 if b < 0x80 { 686 break 687 } 688 } 689 case 8: 690 if wireType != 0 { 691 return fmt.Errorf("proto: wrong wireType = %d for field EnableForeignFeePayments", wireType) 692 } 693 var v int 694 for shift := uint(0); ; shift += 7 { 695 if shift >= 64 { 696 return ErrIntOverflowNetworkProperties 697 } 698 if iNdEx >= l { 699 return io.ErrUnexpectedEOF 700 } 701 b := dAtA[iNdEx] 702 iNdEx++ 703 v |= int(b&0x7F) << shift 704 if b < 0x80 { 705 break 706 } 707 } 708 m.EnableForeignFeePayments = bool(v != 0) 709 case 9: 710 if wireType != 0 { 711 return fmt.Errorf("proto: wrong wireType = %d for field MischanceRankDecreaseAmount", wireType) 712 } 713 m.MischanceRankDecreaseAmount = 0 714 for shift := uint(0); ; shift += 7 { 715 if shift >= 64 { 716 return ErrIntOverflowNetworkProperties 717 } 718 if iNdEx >= l { 719 return io.ErrUnexpectedEOF 720 } 721 b := dAtA[iNdEx] 722 iNdEx++ 723 m.MischanceRankDecreaseAmount |= uint64(b&0x7F) << shift 724 if b < 0x80 { 725 break 726 } 727 } 728 case 10: 729 if wireType != 0 { 730 return fmt.Errorf("proto: wrong wireType = %d for field MaxMischance", wireType) 731 } 732 m.MaxMischance = 0 733 for shift := uint(0); ; shift += 7 { 734 if shift >= 64 { 735 return ErrIntOverflowNetworkProperties 736 } 737 if iNdEx >= l { 738 return io.ErrUnexpectedEOF 739 } 740 b := dAtA[iNdEx] 741 iNdEx++ 742 m.MaxMischance |= uint64(b&0x7F) << shift 743 if b < 0x80 { 744 break 745 } 746 } 747 case 11: 748 if wireType != 0 { 749 return fmt.Errorf("proto: wrong wireType = %d for field MischanceConfidence", wireType) 750 } 751 m.MischanceConfidence = 0 752 for shift := uint(0); ; shift += 7 { 753 if shift >= 64 { 754 return ErrIntOverflowNetworkProperties 755 } 756 if iNdEx >= l { 757 return io.ErrUnexpectedEOF 758 } 759 b := dAtA[iNdEx] 760 iNdEx++ 761 m.MischanceConfidence |= uint64(b&0x7F) << shift 762 if b < 0x80 { 763 break 764 } 765 } 766 case 12: 767 if wireType != 0 { 768 return fmt.Errorf("proto: wrong wireType = %d for field InactiveRankDecreasePercent", wireType) 769 } 770 m.InactiveRankDecreasePercent = 0 771 for shift := uint(0); ; shift += 7 { 772 if shift >= 64 { 773 return ErrIntOverflowNetworkProperties 774 } 775 if iNdEx >= l { 776 return io.ErrUnexpectedEOF 777 } 778 b := dAtA[iNdEx] 779 iNdEx++ 780 m.InactiveRankDecreasePercent |= uint64(b&0x7F) << shift 781 if b < 0x80 { 782 break 783 } 784 } 785 case 13: 786 if wireType != 0 { 787 return fmt.Errorf("proto: wrong wireType = %d for field MinValidators", wireType) 788 } 789 m.MinValidators = 0 790 for shift := uint(0); ; shift += 7 { 791 if shift >= 64 { 792 return ErrIntOverflowNetworkProperties 793 } 794 if iNdEx >= l { 795 return io.ErrUnexpectedEOF 796 } 797 b := dAtA[iNdEx] 798 iNdEx++ 799 m.MinValidators |= uint64(b&0x7F) << shift 800 if b < 0x80 { 801 break 802 } 803 } 804 case 14: 805 if wireType != 0 { 806 return fmt.Errorf("proto: wrong wireType = %d for field PoorNetworkMaxBankSend", wireType) 807 } 808 m.PoorNetworkMaxBankSend = 0 809 for shift := uint(0); ; shift += 7 { 810 if shift >= 64 { 811 return ErrIntOverflowNetworkProperties 812 } 813 if iNdEx >= l { 814 return io.ErrUnexpectedEOF 815 } 816 b := dAtA[iNdEx] 817 iNdEx++ 818 m.PoorNetworkMaxBankSend |= uint64(b&0x7F) << shift 819 if b < 0x80 { 820 break 821 } 822 } 823 case 15: 824 if wireType != 0 { 825 return fmt.Errorf("proto: wrong wireType = %d for field JailMaxTime", wireType) 826 } 827 m.JailMaxTime = 0 828 for shift := uint(0); ; shift += 7 { 829 if shift >= 64 { 830 return ErrIntOverflowNetworkProperties 831 } 832 if iNdEx >= l { 833 return io.ErrUnexpectedEOF 834 } 835 b := dAtA[iNdEx] 836 iNdEx++ 837 m.JailMaxTime |= uint64(b&0x7F) << shift 838 if b < 0x80 { 839 break 840 } 841 } 842 case 16: 843 if wireType != 0 { 844 return fmt.Errorf("proto: wrong wireType = %d for field EnableTokenWhitelist", wireType) 845 } 846 var v int 847 for shift := uint(0); ; shift += 7 { 848 if shift >= 64 { 849 return ErrIntOverflowNetworkProperties 850 } 851 if iNdEx >= l { 852 return io.ErrUnexpectedEOF 853 } 854 b := dAtA[iNdEx] 855 iNdEx++ 856 v |= int(b&0x7F) << shift 857 if b < 0x80 { 858 break 859 } 860 } 861 m.EnableTokenWhitelist = bool(v != 0) 862 case 17: 863 if wireType != 0 { 864 return fmt.Errorf("proto: wrong wireType = %d for field EnableTokenBlacklist", wireType) 865 } 866 var v int 867 for shift := uint(0); ; shift += 7 { 868 if shift >= 64 { 869 return ErrIntOverflowNetworkProperties 870 } 871 if iNdEx >= l { 872 return io.ErrUnexpectedEOF 873 } 874 b := dAtA[iNdEx] 875 iNdEx++ 876 v |= int(b&0x7F) << shift 877 if b < 0x80 { 878 break 879 } 880 } 881 m.EnableTokenBlacklist = bool(v != 0) 882 case 18: 883 if wireType != 0 { 884 return fmt.Errorf("proto: wrong wireType = %d for field MinIdentityApprovalTip", wireType) 885 } 886 m.MinIdentityApprovalTip = 0 887 for shift := uint(0); ; shift += 7 { 888 if shift >= 64 { 889 return ErrIntOverflowNetworkProperties 890 } 891 if iNdEx >= l { 892 return io.ErrUnexpectedEOF 893 } 894 b := dAtA[iNdEx] 895 iNdEx++ 896 m.MinIdentityApprovalTip |= uint64(b&0x7F) << shift 897 if b < 0x80 { 898 break 899 } 900 } 901 case 19: 902 if wireType != 2 { 903 return fmt.Errorf("proto: wrong wireType = %d for field UniqueIdentityKeys", wireType) 904 } 905 var stringLen uint64 906 for shift := uint(0); ; shift += 7 { 907 if shift >= 64 { 908 return ErrIntOverflowNetworkProperties 909 } 910 if iNdEx >= l { 911 return io.ErrUnexpectedEOF 912 } 913 b := dAtA[iNdEx] 914 iNdEx++ 915 stringLen |= uint64(b&0x7F) << shift 916 if b < 0x80 { 917 break 918 } 919 } 920 intStringLen := int(stringLen) 921 if intStringLen < 0 { 922 return ErrInvalidLengthNetworkProperties 923 } 924 postIndex := iNdEx + intStringLen 925 if postIndex < 0 { 926 return ErrInvalidLengthNetworkProperties 927 } 928 if postIndex > l { 929 return io.ErrUnexpectedEOF 930 } 931 m.UniqueIdentityKeys = string(dAtA[iNdEx:postIndex]) 932 iNdEx = postIndex 933 default: 934 iNdEx = preIndex 935 skippy, err := skipNetworkProperties(dAtA[iNdEx:]) 936 if err != nil { 937 return err 938 } 939 if (skippy < 0) || (iNdEx+skippy) < 0 { 940 return ErrInvalidLengthNetworkProperties 941 } 942 if (iNdEx + skippy) > l { 943 return io.ErrUnexpectedEOF 944 } 945 iNdEx += skippy 946 } 947 } 948 949 if iNdEx > l { 950 return io.ErrUnexpectedEOF 951 } 952 return nil 953 } 954 func skipNetworkProperties(dAtA []byte) (n int, err error) { 955 l := len(dAtA) 956 iNdEx := 0 957 depth := 0 958 for iNdEx < l { 959 var wire uint64 960 for shift := uint(0); ; shift += 7 { 961 if shift >= 64 { 962 return 0, ErrIntOverflowNetworkProperties 963 } 964 if iNdEx >= l { 965 return 0, io.ErrUnexpectedEOF 966 } 967 b := dAtA[iNdEx] 968 iNdEx++ 969 wire |= (uint64(b) & 0x7F) << shift 970 if b < 0x80 { 971 break 972 } 973 } 974 wireType := int(wire & 0x7) 975 switch wireType { 976 case 0: 977 for shift := uint(0); ; shift += 7 { 978 if shift >= 64 { 979 return 0, ErrIntOverflowNetworkProperties 980 } 981 if iNdEx >= l { 982 return 0, io.ErrUnexpectedEOF 983 } 984 iNdEx++ 985 if dAtA[iNdEx-1] < 0x80 { 986 break 987 } 988 } 989 case 1: 990 iNdEx += 8 991 case 2: 992 var length int 993 for shift := uint(0); ; shift += 7 { 994 if shift >= 64 { 995 return 0, ErrIntOverflowNetworkProperties 996 } 997 if iNdEx >= l { 998 return 0, io.ErrUnexpectedEOF 999 } 1000 b := dAtA[iNdEx] 1001 iNdEx++ 1002 length |= (int(b) & 0x7F) << shift 1003 if b < 0x80 { 1004 break 1005 } 1006 } 1007 if length < 0 { 1008 return 0, ErrInvalidLengthNetworkProperties 1009 } 1010 iNdEx += length 1011 case 3: 1012 depth++ 1013 case 4: 1014 if depth == 0 { 1015 return 0, ErrUnexpectedEndOfGroupNetworkProperties 1016 } 1017 depth-- 1018 case 5: 1019 iNdEx += 4 1020 default: 1021 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1022 } 1023 if iNdEx < 0 { 1024 return 0, ErrInvalidLengthNetworkProperties 1025 } 1026 if depth == 0 { 1027 return iNdEx, nil 1028 } 1029 } 1030 return 0, io.ErrUnexpectedEOF 1031 } 1032 1033 var ( 1034 ErrInvalidLengthNetworkProperties = fmt.Errorf("proto: negative length found during unmarshaling") 1035 ErrIntOverflowNetworkProperties = fmt.Errorf("proto: integer overflow") 1036 ErrUnexpectedEndOfGroupNetworkProperties = fmt.Errorf("proto: unexpected end of group") 1037 )