github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/txs/payload/payload.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: payload.proto 3 4 package payload 5 6 import ( 7 fmt "fmt" 8 io "io" 9 math "math" 10 math_bits "math/bits" 11 12 _ "github.com/gogo/protobuf/gogoproto" 13 proto "github.com/gogo/protobuf/proto" 14 golang_proto "github.com/golang/protobuf/proto" 15 github_com_hyperledger_burrow_binary "github.com/hyperledger/burrow/binary" 16 github_com_hyperledger_burrow_crypto "github.com/hyperledger/burrow/crypto" 17 registry "github.com/hyperledger/burrow/execution/registry" 18 spec "github.com/hyperledger/burrow/genesis/spec" 19 permission "github.com/hyperledger/burrow/permission" 20 ) 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = golang_proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 28 // This is a compile-time assertion to ensure that this generated file 29 // is compatible with the proto package it is being compiled against. 30 // A compilation error at this line likely means your copy of the 31 // proto package needs to be updated. 32 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 33 34 type Ballot_ProposalState int32 35 36 const ( 37 // PROPOSED might be expired, if sequence number of any of the input accounts are out of date 38 Ballot_PROPOSED Ballot_ProposalState = 0 39 Ballot_EXECUTED Ballot_ProposalState = 1 40 Ballot_FAILED Ballot_ProposalState = 2 41 ) 42 43 var Ballot_ProposalState_name = map[int32]string{ 44 0: "PROPOSED", 45 1: "EXECUTED", 46 2: "FAILED", 47 } 48 49 var Ballot_ProposalState_value = map[string]int32{ 50 "PROPOSED": 0, 51 "EXECUTED": 1, 52 "FAILED": 2, 53 } 54 55 func (x Ballot_ProposalState) String() string { 56 return proto.EnumName(Ballot_ProposalState_name, int32(x)) 57 } 58 59 func (Ballot_ProposalState) EnumDescriptor() ([]byte, []int) { 60 return fileDescriptor_678c914f1bee6d56, []int{16, 0} 61 } 62 63 // Any encodes a sum type for which only one should be set 64 type Any struct { 65 CallTx *CallTx `protobuf:"bytes,1,opt,name=CallTx,proto3" json:"CallTx,omitempty"` 66 SendTx *SendTx `protobuf:"bytes,2,opt,name=SendTx,proto3" json:"SendTx,omitempty"` 67 NameTx *NameTx `protobuf:"bytes,3,opt,name=NameTx,proto3" json:"NameTx,omitempty"` 68 PermsTx *PermsTx `protobuf:"bytes,4,opt,name=PermsTx,proto3" json:"PermsTx,omitempty"` 69 GovTx *GovTx `protobuf:"bytes,5,opt,name=GovTx,proto3" json:"GovTx,omitempty"` 70 BondTx *BondTx `protobuf:"bytes,6,opt,name=BondTx,proto3" json:"BondTx,omitempty"` 71 UnbondTx *UnbondTx `protobuf:"bytes,7,opt,name=UnbondTx,proto3" json:"UnbondTx,omitempty"` 72 BatchTx *BatchTx `protobuf:"bytes,8,opt,name=BatchTx,proto3" json:"BatchTx,omitempty"` 73 ProposalTx *ProposalTx `protobuf:"bytes,9,opt,name=ProposalTx,proto3" json:"ProposalTx,omitempty"` 74 IdentifyTx *IdentifyTx `protobuf:"bytes,10,opt,name=IdentifyTx,proto3" json:"IdentifyTx,omitempty"` 75 XXX_NoUnkeyedLiteral struct{} `json:"-"` 76 XXX_unrecognized []byte `json:"-"` 77 XXX_sizecache int32 `json:"-"` 78 } 79 80 func (m *Any) Reset() { *m = Any{} } 81 func (m *Any) String() string { return proto.CompactTextString(m) } 82 func (*Any) ProtoMessage() {} 83 func (*Any) Descriptor() ([]byte, []int) { 84 return fileDescriptor_678c914f1bee6d56, []int{0} 85 } 86 func (m *Any) XXX_Unmarshal(b []byte) error { 87 return m.Unmarshal(b) 88 } 89 func (m *Any) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 90 b = b[:cap(b)] 91 n, err := m.MarshalToSizedBuffer(b) 92 if err != nil { 93 return nil, err 94 } 95 return b[:n], nil 96 } 97 func (m *Any) XXX_Merge(src proto.Message) { 98 xxx_messageInfo_Any.Merge(m, src) 99 } 100 func (m *Any) XXX_Size() int { 101 return m.Size() 102 } 103 func (m *Any) XXX_DiscardUnknown() { 104 xxx_messageInfo_Any.DiscardUnknown(m) 105 } 106 107 var xxx_messageInfo_Any proto.InternalMessageInfo 108 109 func (m *Any) GetCallTx() *CallTx { 110 if m != nil { 111 return m.CallTx 112 } 113 return nil 114 } 115 116 func (m *Any) GetSendTx() *SendTx { 117 if m != nil { 118 return m.SendTx 119 } 120 return nil 121 } 122 123 func (m *Any) GetNameTx() *NameTx { 124 if m != nil { 125 return m.NameTx 126 } 127 return nil 128 } 129 130 func (m *Any) GetPermsTx() *PermsTx { 131 if m != nil { 132 return m.PermsTx 133 } 134 return nil 135 } 136 137 func (m *Any) GetGovTx() *GovTx { 138 if m != nil { 139 return m.GovTx 140 } 141 return nil 142 } 143 144 func (m *Any) GetBondTx() *BondTx { 145 if m != nil { 146 return m.BondTx 147 } 148 return nil 149 } 150 151 func (m *Any) GetUnbondTx() *UnbondTx { 152 if m != nil { 153 return m.UnbondTx 154 } 155 return nil 156 } 157 158 func (m *Any) GetBatchTx() *BatchTx { 159 if m != nil { 160 return m.BatchTx 161 } 162 return nil 163 } 164 165 func (m *Any) GetProposalTx() *ProposalTx { 166 if m != nil { 167 return m.ProposalTx 168 } 169 return nil 170 } 171 172 func (m *Any) GetIdentifyTx() *IdentifyTx { 173 if m != nil { 174 return m.IdentifyTx 175 } 176 return nil 177 } 178 179 func (*Any) XXX_MessageName() string { 180 return "payload.Any" 181 } 182 183 // An input to a transaction that may carry an Amount as a charge and whose sequence number must be one greater than 184 // that associated with the account at Address at the time of being received 185 type TxInput struct { 186 // The address from which this input flows 187 Address github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"` 188 // The amount of native token to transfer from the input address 189 Amount uint64 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"` 190 // The sequence number that this transaction will induce (i.e. one greater than the input account's current sequence) 191 Sequence uint64 `protobuf:"varint,3,opt,name=Sequence,proto3" json:"Sequence,omitempty"` 192 XXX_NoUnkeyedLiteral struct{} `json:"-"` 193 XXX_unrecognized []byte `json:"-"` 194 XXX_sizecache int32 `json:"-"` 195 } 196 197 func (m *TxInput) Reset() { *m = TxInput{} } 198 func (*TxInput) ProtoMessage() {} 199 func (*TxInput) Descriptor() ([]byte, []int) { 200 return fileDescriptor_678c914f1bee6d56, []int{1} 201 } 202 func (m *TxInput) XXX_Unmarshal(b []byte) error { 203 return m.Unmarshal(b) 204 } 205 func (m *TxInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 206 b = b[:cap(b)] 207 n, err := m.MarshalToSizedBuffer(b) 208 if err != nil { 209 return nil, err 210 } 211 return b[:n], nil 212 } 213 func (m *TxInput) XXX_Merge(src proto.Message) { 214 xxx_messageInfo_TxInput.Merge(m, src) 215 } 216 func (m *TxInput) XXX_Size() int { 217 return m.Size() 218 } 219 func (m *TxInput) XXX_DiscardUnknown() { 220 xxx_messageInfo_TxInput.DiscardUnknown(m) 221 } 222 223 var xxx_messageInfo_TxInput proto.InternalMessageInfo 224 225 func (m *TxInput) GetAmount() uint64 { 226 if m != nil { 227 return m.Amount 228 } 229 return 0 230 } 231 232 func (m *TxInput) GetSequence() uint64 { 233 if m != nil { 234 return m.Sequence 235 } 236 return 0 237 } 238 239 func (*TxInput) XXX_MessageName() string { 240 return "payload.TxInput" 241 } 242 243 // An output from a transaction that may carry an amount as a charge 244 type TxOutput struct { 245 // The address to which this output flows 246 Address github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"` 247 // The amount of native token to transfer to the output address 248 Amount uint64 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"` 249 XXX_NoUnkeyedLiteral struct{} `json:"-"` 250 XXX_unrecognized []byte `json:"-"` 251 XXX_sizecache int32 `json:"-"` 252 } 253 254 func (m *TxOutput) Reset() { *m = TxOutput{} } 255 func (*TxOutput) ProtoMessage() {} 256 func (*TxOutput) Descriptor() ([]byte, []int) { 257 return fileDescriptor_678c914f1bee6d56, []int{2} 258 } 259 func (m *TxOutput) XXX_Unmarshal(b []byte) error { 260 return m.Unmarshal(b) 261 } 262 func (m *TxOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 263 b = b[:cap(b)] 264 n, err := m.MarshalToSizedBuffer(b) 265 if err != nil { 266 return nil, err 267 } 268 return b[:n], nil 269 } 270 func (m *TxOutput) XXX_Merge(src proto.Message) { 271 xxx_messageInfo_TxOutput.Merge(m, src) 272 } 273 func (m *TxOutput) XXX_Size() int { 274 return m.Size() 275 } 276 func (m *TxOutput) XXX_DiscardUnknown() { 277 xxx_messageInfo_TxOutput.DiscardUnknown(m) 278 } 279 280 var xxx_messageInfo_TxOutput proto.InternalMessageInfo 281 282 func (m *TxOutput) GetAmount() uint64 { 283 if m != nil { 284 return m.Amount 285 } 286 return 0 287 } 288 289 func (*TxOutput) XXX_MessageName() string { 290 return "payload.TxOutput" 291 } 292 293 // A instruction to run smart contract code in the EVM 294 type CallTx struct { 295 // The caller's input 296 Input *TxInput `protobuf:"bytes,1,opt,name=Input,proto3" json:"Input,omitempty"` 297 // The contract address to call or nil if we are creating a contract 298 Address *github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,2,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address,omitempty"` 299 // The upper bound on the amount of gas (and therefore EVM execution steps) this CallTx may generate 300 GasLimit uint64 `protobuf:"varint,3,opt,name=GasLimit,proto3" json:"GasLimit,omitempty"` 301 // Fee to offer validators for processing transaction 302 Fee uint64 `protobuf:"varint,4,opt,name=Fee,proto3" json:"Fee,omitempty"` 303 // EVM bytecode 304 Data github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,5,opt,name=Data,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"Data"` 305 // WASM bytecode 306 WASM github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,6,opt,name=WASM,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"tags,omitempty"` 307 // Set of contracts this code will deploy 308 ContractMeta []*ContractMeta `protobuf:"bytes,7,rep,name=ContractMeta,proto3" json:"ContractMeta,omitempty"` 309 // The upper bound on the price per unit of gas 310 GasPrice uint64 `protobuf:"varint,8,opt,name=GasPrice,proto3" json:"GasPrice,omitempty"` 311 XXX_NoUnkeyedLiteral struct{} `json:"-"` 312 XXX_unrecognized []byte `json:"-"` 313 XXX_sizecache int32 `json:"-"` 314 } 315 316 func (m *CallTx) Reset() { *m = CallTx{} } 317 func (*CallTx) ProtoMessage() {} 318 func (*CallTx) Descriptor() ([]byte, []int) { 319 return fileDescriptor_678c914f1bee6d56, []int{3} 320 } 321 func (m *CallTx) XXX_Unmarshal(b []byte) error { 322 return m.Unmarshal(b) 323 } 324 func (m *CallTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 325 b = b[:cap(b)] 326 n, err := m.MarshalToSizedBuffer(b) 327 if err != nil { 328 return nil, err 329 } 330 return b[:n], nil 331 } 332 func (m *CallTx) XXX_Merge(src proto.Message) { 333 xxx_messageInfo_CallTx.Merge(m, src) 334 } 335 func (m *CallTx) XXX_Size() int { 336 return m.Size() 337 } 338 func (m *CallTx) XXX_DiscardUnknown() { 339 xxx_messageInfo_CallTx.DiscardUnknown(m) 340 } 341 342 var xxx_messageInfo_CallTx proto.InternalMessageInfo 343 344 func (m *CallTx) GetInput() *TxInput { 345 if m != nil { 346 return m.Input 347 } 348 return nil 349 } 350 351 func (m *CallTx) GetGasLimit() uint64 { 352 if m != nil { 353 return m.GasLimit 354 } 355 return 0 356 } 357 358 func (m *CallTx) GetFee() uint64 { 359 if m != nil { 360 return m.Fee 361 } 362 return 0 363 } 364 365 func (m *CallTx) GetContractMeta() []*ContractMeta { 366 if m != nil { 367 return m.ContractMeta 368 } 369 return nil 370 } 371 372 func (m *CallTx) GetGasPrice() uint64 { 373 if m != nil { 374 return m.GasPrice 375 } 376 return 0 377 } 378 379 func (*CallTx) XXX_MessageName() string { 380 return "payload.CallTx" 381 } 382 383 type ContractMeta struct { 384 CodeHash github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,1,opt,name=CodeHash,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"CodeHash"` 385 Meta string `protobuf:"bytes,2,opt,name=Meta,proto3" json:"Meta,omitempty"` 386 XXX_NoUnkeyedLiteral struct{} `json:"-"` 387 XXX_unrecognized []byte `json:"-"` 388 XXX_sizecache int32 `json:"-"` 389 } 390 391 func (m *ContractMeta) Reset() { *m = ContractMeta{} } 392 func (m *ContractMeta) String() string { return proto.CompactTextString(m) } 393 func (*ContractMeta) ProtoMessage() {} 394 func (*ContractMeta) Descriptor() ([]byte, []int) { 395 return fileDescriptor_678c914f1bee6d56, []int{4} 396 } 397 func (m *ContractMeta) XXX_Unmarshal(b []byte) error { 398 return m.Unmarshal(b) 399 } 400 func (m *ContractMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 401 b = b[:cap(b)] 402 n, err := m.MarshalToSizedBuffer(b) 403 if err != nil { 404 return nil, err 405 } 406 return b[:n], nil 407 } 408 func (m *ContractMeta) XXX_Merge(src proto.Message) { 409 xxx_messageInfo_ContractMeta.Merge(m, src) 410 } 411 func (m *ContractMeta) XXX_Size() int { 412 return m.Size() 413 } 414 func (m *ContractMeta) XXX_DiscardUnknown() { 415 xxx_messageInfo_ContractMeta.DiscardUnknown(m) 416 } 417 418 var xxx_messageInfo_ContractMeta proto.InternalMessageInfo 419 420 func (m *ContractMeta) GetMeta() string { 421 if m != nil { 422 return m.Meta 423 } 424 return "" 425 } 426 427 func (*ContractMeta) XXX_MessageName() string { 428 return "payload.ContractMeta" 429 } 430 431 // A payment between two sets of parties 432 type SendTx struct { 433 // The payers 434 Inputs []*TxInput `protobuf:"bytes,1,rep,name=Inputs,proto3" json:"Inputs,omitempty"` 435 // The payees 436 Outputs []*TxOutput `protobuf:"bytes,2,rep,name=Outputs,proto3" json:"Outputs,omitempty"` 437 XXX_NoUnkeyedLiteral struct{} `json:"-"` 438 XXX_unrecognized []byte `json:"-"` 439 XXX_sizecache int32 `json:"-"` 440 } 441 442 func (m *SendTx) Reset() { *m = SendTx{} } 443 func (*SendTx) ProtoMessage() {} 444 func (*SendTx) Descriptor() ([]byte, []int) { 445 return fileDescriptor_678c914f1bee6d56, []int{5} 446 } 447 func (m *SendTx) XXX_Unmarshal(b []byte) error { 448 return m.Unmarshal(b) 449 } 450 func (m *SendTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 451 b = b[:cap(b)] 452 n, err := m.MarshalToSizedBuffer(b) 453 if err != nil { 454 return nil, err 455 } 456 return b[:n], nil 457 } 458 func (m *SendTx) XXX_Merge(src proto.Message) { 459 xxx_messageInfo_SendTx.Merge(m, src) 460 } 461 func (m *SendTx) XXX_Size() int { 462 return m.Size() 463 } 464 func (m *SendTx) XXX_DiscardUnknown() { 465 xxx_messageInfo_SendTx.DiscardUnknown(m) 466 } 467 468 var xxx_messageInfo_SendTx proto.InternalMessageInfo 469 470 func (*SendTx) XXX_MessageName() string { 471 return "payload.SendTx" 472 } 473 474 // An update to the on-chain permissions 475 type PermsTx struct { 476 // The permission moderator 477 Input *TxInput `protobuf:"bytes,1,opt,name=Input,proto3" json:"Input,omitempty"` 478 // The modified permissions 479 PermArgs permission.PermArgs `protobuf:"bytes,2,opt,name=PermArgs,proto3" json:"PermArgs"` 480 XXX_NoUnkeyedLiteral struct{} `json:"-"` 481 XXX_unrecognized []byte `json:"-"` 482 XXX_sizecache int32 `json:"-"` 483 } 484 485 func (m *PermsTx) Reset() { *m = PermsTx{} } 486 func (*PermsTx) ProtoMessage() {} 487 func (*PermsTx) Descriptor() ([]byte, []int) { 488 return fileDescriptor_678c914f1bee6d56, []int{6} 489 } 490 func (m *PermsTx) XXX_Unmarshal(b []byte) error { 491 return m.Unmarshal(b) 492 } 493 func (m *PermsTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 494 b = b[:cap(b)] 495 n, err := m.MarshalToSizedBuffer(b) 496 if err != nil { 497 return nil, err 498 } 499 return b[:n], nil 500 } 501 func (m *PermsTx) XXX_Merge(src proto.Message) { 502 xxx_messageInfo_PermsTx.Merge(m, src) 503 } 504 func (m *PermsTx) XXX_Size() int { 505 return m.Size() 506 } 507 func (m *PermsTx) XXX_DiscardUnknown() { 508 xxx_messageInfo_PermsTx.DiscardUnknown(m) 509 } 510 511 var xxx_messageInfo_PermsTx proto.InternalMessageInfo 512 513 func (m *PermsTx) GetInput() *TxInput { 514 if m != nil { 515 return m.Input 516 } 517 return nil 518 } 519 520 func (m *PermsTx) GetPermArgs() permission.PermArgs { 521 if m != nil { 522 return m.PermArgs 523 } 524 return permission.PermArgs{} 525 } 526 527 func (*PermsTx) XXX_MessageName() string { 528 return "payload.PermsTx" 529 } 530 531 // A request to claim a globally unique name across the entire chain with some optional data storage leased for a fee 532 type NameTx struct { 533 // The name updater 534 Input *TxInput `protobuf:"bytes,1,opt,name=Input,proto3" json:"Input,omitempty"` 535 // The name to update or create 536 Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` 537 // The data to store against the name 538 Data string `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"` 539 // The fee to provide that will determine the length of the name lease 540 Fee uint64 `protobuf:"varint,4,opt,name=Fee,proto3" json:"Fee,omitempty"` 541 XXX_NoUnkeyedLiteral struct{} `json:"-"` 542 XXX_unrecognized []byte `json:"-"` 543 XXX_sizecache int32 `json:"-"` 544 } 545 546 func (m *NameTx) Reset() { *m = NameTx{} } 547 func (*NameTx) ProtoMessage() {} 548 func (*NameTx) Descriptor() ([]byte, []int) { 549 return fileDescriptor_678c914f1bee6d56, []int{7} 550 } 551 func (m *NameTx) XXX_Unmarshal(b []byte) error { 552 return m.Unmarshal(b) 553 } 554 func (m *NameTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 555 b = b[:cap(b)] 556 n, err := m.MarshalToSizedBuffer(b) 557 if err != nil { 558 return nil, err 559 } 560 return b[:n], nil 561 } 562 func (m *NameTx) XXX_Merge(src proto.Message) { 563 xxx_messageInfo_NameTx.Merge(m, src) 564 } 565 func (m *NameTx) XXX_Size() int { 566 return m.Size() 567 } 568 func (m *NameTx) XXX_DiscardUnknown() { 569 xxx_messageInfo_NameTx.DiscardUnknown(m) 570 } 571 572 var xxx_messageInfo_NameTx proto.InternalMessageInfo 573 574 func (m *NameTx) GetInput() *TxInput { 575 if m != nil { 576 return m.Input 577 } 578 return nil 579 } 580 581 func (m *NameTx) GetName() string { 582 if m != nil { 583 return m.Name 584 } 585 return "" 586 } 587 588 func (m *NameTx) GetData() string { 589 if m != nil { 590 return m.Data 591 } 592 return "" 593 } 594 595 func (m *NameTx) GetFee() uint64 { 596 if m != nil { 597 return m.Fee 598 } 599 return 0 600 } 601 602 func (*NameTx) XXX_MessageName() string { 603 return "payload.NameTx" 604 } 605 606 type BondTx struct { 607 // Input must be the validator that desires to bond 608 Input *TxInput `protobuf:"bytes,1,opt,name=Input,proto3" json:"Input,omitempty"` 609 XXX_NoUnkeyedLiteral struct{} `json:"-"` 610 XXX_unrecognized []byte `json:"-"` 611 XXX_sizecache int32 `json:"-"` 612 } 613 614 func (m *BondTx) Reset() { *m = BondTx{} } 615 func (*BondTx) ProtoMessage() {} 616 func (*BondTx) Descriptor() ([]byte, []int) { 617 return fileDescriptor_678c914f1bee6d56, []int{8} 618 } 619 func (m *BondTx) XXX_Unmarshal(b []byte) error { 620 return m.Unmarshal(b) 621 } 622 func (m *BondTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 623 b = b[:cap(b)] 624 n, err := m.MarshalToSizedBuffer(b) 625 if err != nil { 626 return nil, err 627 } 628 return b[:n], nil 629 } 630 func (m *BondTx) XXX_Merge(src proto.Message) { 631 xxx_messageInfo_BondTx.Merge(m, src) 632 } 633 func (m *BondTx) XXX_Size() int { 634 return m.Size() 635 } 636 func (m *BondTx) XXX_DiscardUnknown() { 637 xxx_messageInfo_BondTx.DiscardUnknown(m) 638 } 639 640 var xxx_messageInfo_BondTx proto.InternalMessageInfo 641 642 func (*BondTx) XXX_MessageName() string { 643 return "payload.BondTx" 644 } 645 646 type UnbondTx struct { 647 Input *TxInput `protobuf:"bytes,1,opt,name=Input,proto3" json:"Input,omitempty"` 648 // Account to unbond 649 Output *TxOutput `protobuf:"bytes,2,opt,name=Output,proto3" json:"Output,omitempty"` 650 XXX_NoUnkeyedLiteral struct{} `json:"-"` 651 XXX_unrecognized []byte `json:"-"` 652 XXX_sizecache int32 `json:"-"` 653 } 654 655 func (m *UnbondTx) Reset() { *m = UnbondTx{} } 656 func (*UnbondTx) ProtoMessage() {} 657 func (*UnbondTx) Descriptor() ([]byte, []int) { 658 return fileDescriptor_678c914f1bee6d56, []int{9} 659 } 660 func (m *UnbondTx) XXX_Unmarshal(b []byte) error { 661 return m.Unmarshal(b) 662 } 663 func (m *UnbondTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 664 b = b[:cap(b)] 665 n, err := m.MarshalToSizedBuffer(b) 666 if err != nil { 667 return nil, err 668 } 669 return b[:n], nil 670 } 671 func (m *UnbondTx) XXX_Merge(src proto.Message) { 672 xxx_messageInfo_UnbondTx.Merge(m, src) 673 } 674 func (m *UnbondTx) XXX_Size() int { 675 return m.Size() 676 } 677 func (m *UnbondTx) XXX_DiscardUnknown() { 678 xxx_messageInfo_UnbondTx.DiscardUnknown(m) 679 } 680 681 var xxx_messageInfo_UnbondTx proto.InternalMessageInfo 682 683 func (*UnbondTx) XXX_MessageName() string { 684 return "payload.UnbondTx" 685 } 686 687 type GovTx struct { 688 Inputs []*TxInput `protobuf:"bytes,1,rep,name=Inputs,proto3" json:"Inputs,omitempty"` 689 AccountUpdates []*spec.TemplateAccount `protobuf:"bytes,2,rep,name=AccountUpdates,proto3" json:"AccountUpdates,omitempty"` 690 XXX_NoUnkeyedLiteral struct{} `json:"-"` 691 XXX_unrecognized []byte `json:"-"` 692 XXX_sizecache int32 `json:"-"` 693 } 694 695 func (m *GovTx) Reset() { *m = GovTx{} } 696 func (*GovTx) ProtoMessage() {} 697 func (*GovTx) Descriptor() ([]byte, []int) { 698 return fileDescriptor_678c914f1bee6d56, []int{10} 699 } 700 func (m *GovTx) XXX_Unmarshal(b []byte) error { 701 return m.Unmarshal(b) 702 } 703 func (m *GovTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 704 b = b[:cap(b)] 705 n, err := m.MarshalToSizedBuffer(b) 706 if err != nil { 707 return nil, err 708 } 709 return b[:n], nil 710 } 711 func (m *GovTx) XXX_Merge(src proto.Message) { 712 xxx_messageInfo_GovTx.Merge(m, src) 713 } 714 func (m *GovTx) XXX_Size() int { 715 return m.Size() 716 } 717 func (m *GovTx) XXX_DiscardUnknown() { 718 xxx_messageInfo_GovTx.DiscardUnknown(m) 719 } 720 721 var xxx_messageInfo_GovTx proto.InternalMessageInfo 722 723 func (*GovTx) XXX_MessageName() string { 724 return "payload.GovTx" 725 } 726 727 type ProposalTx struct { 728 Input *TxInput `protobuf:"bytes,1,opt,name=Input,proto3" json:"Input,omitempty"` 729 VotingWeight int64 `protobuf:"varint,2,opt,name=VotingWeight,proto3" json:"VotingWeight,omitempty"` 730 ProposalHash *github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,3,opt,name=ProposalHash,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"ProposalHash,omitempty"` 731 Proposal *Proposal `protobuf:"bytes,4,opt,name=Proposal,proto3" json:"Proposal,omitempty"` 732 XXX_NoUnkeyedLiteral struct{} `json:"-"` 733 XXX_unrecognized []byte `json:"-"` 734 XXX_sizecache int32 `json:"-"` 735 } 736 737 func (m *ProposalTx) Reset() { *m = ProposalTx{} } 738 func (*ProposalTx) ProtoMessage() {} 739 func (*ProposalTx) Descriptor() ([]byte, []int) { 740 return fileDescriptor_678c914f1bee6d56, []int{11} 741 } 742 func (m *ProposalTx) XXX_Unmarshal(b []byte) error { 743 return m.Unmarshal(b) 744 } 745 func (m *ProposalTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 746 b = b[:cap(b)] 747 n, err := m.MarshalToSizedBuffer(b) 748 if err != nil { 749 return nil, err 750 } 751 return b[:n], nil 752 } 753 func (m *ProposalTx) XXX_Merge(src proto.Message) { 754 xxx_messageInfo_ProposalTx.Merge(m, src) 755 } 756 func (m *ProposalTx) XXX_Size() int { 757 return m.Size() 758 } 759 func (m *ProposalTx) XXX_DiscardUnknown() { 760 xxx_messageInfo_ProposalTx.DiscardUnknown(m) 761 } 762 763 var xxx_messageInfo_ProposalTx proto.InternalMessageInfo 764 765 func (*ProposalTx) XXX_MessageName() string { 766 return "payload.ProposalTx" 767 } 768 769 type IdentifyTx struct { 770 // Senders 771 Inputs []*TxInput `protobuf:"bytes,1,rep,name=Inputs,proto3" json:"Inputs,omitempty"` 772 // Node to register 773 Node *registry.NodeIdentity `protobuf:"bytes,2,opt,name=Node,proto3" json:"Node,omitempty"` 774 XXX_NoUnkeyedLiteral struct{} `json:"-"` 775 XXX_unrecognized []byte `json:"-"` 776 XXX_sizecache int32 `json:"-"` 777 } 778 779 func (m *IdentifyTx) Reset() { *m = IdentifyTx{} } 780 func (*IdentifyTx) ProtoMessage() {} 781 func (*IdentifyTx) Descriptor() ([]byte, []int) { 782 return fileDescriptor_678c914f1bee6d56, []int{12} 783 } 784 func (m *IdentifyTx) XXX_Unmarshal(b []byte) error { 785 return m.Unmarshal(b) 786 } 787 func (m *IdentifyTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 788 b = b[:cap(b)] 789 n, err := m.MarshalToSizedBuffer(b) 790 if err != nil { 791 return nil, err 792 } 793 return b[:n], nil 794 } 795 func (m *IdentifyTx) XXX_Merge(src proto.Message) { 796 xxx_messageInfo_IdentifyTx.Merge(m, src) 797 } 798 func (m *IdentifyTx) XXX_Size() int { 799 return m.Size() 800 } 801 func (m *IdentifyTx) XXX_DiscardUnknown() { 802 xxx_messageInfo_IdentifyTx.DiscardUnknown(m) 803 } 804 805 var xxx_messageInfo_IdentifyTx proto.InternalMessageInfo 806 807 func (*IdentifyTx) XXX_MessageName() string { 808 return "payload.IdentifyTx" 809 } 810 811 type BatchTx struct { 812 Inputs []*TxInput `protobuf:"bytes,1,rep,name=Inputs,proto3" json:"Inputs,omitempty"` 813 Txs []*Any `protobuf:"bytes,2,rep,name=Txs,proto3" json:"Txs,omitempty"` 814 XXX_NoUnkeyedLiteral struct{} `json:"-"` 815 XXX_unrecognized []byte `json:"-"` 816 XXX_sizecache int32 `json:"-"` 817 } 818 819 func (m *BatchTx) Reset() { *m = BatchTx{} } 820 func (*BatchTx) ProtoMessage() {} 821 func (*BatchTx) Descriptor() ([]byte, []int) { 822 return fileDescriptor_678c914f1bee6d56, []int{13} 823 } 824 func (m *BatchTx) XXX_Unmarshal(b []byte) error { 825 return m.Unmarshal(b) 826 } 827 func (m *BatchTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 828 b = b[:cap(b)] 829 n, err := m.MarshalToSizedBuffer(b) 830 if err != nil { 831 return nil, err 832 } 833 return b[:n], nil 834 } 835 func (m *BatchTx) XXX_Merge(src proto.Message) { 836 xxx_messageInfo_BatchTx.Merge(m, src) 837 } 838 func (m *BatchTx) XXX_Size() int { 839 return m.Size() 840 } 841 func (m *BatchTx) XXX_DiscardUnknown() { 842 xxx_messageInfo_BatchTx.DiscardUnknown(m) 843 } 844 845 var xxx_messageInfo_BatchTx proto.InternalMessageInfo 846 847 func (*BatchTx) XXX_MessageName() string { 848 return "payload.BatchTx" 849 } 850 851 type Vote struct { 852 Address github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"` 853 VotingWeight int64 `protobuf:"varint,2,opt,name=VotingWeight,proto3" json:"VotingWeight,omitempty"` 854 XXX_NoUnkeyedLiteral struct{} `json:"-"` 855 XXX_unrecognized []byte `json:"-"` 856 XXX_sizecache int32 `json:"-"` 857 } 858 859 func (m *Vote) Reset() { *m = Vote{} } 860 func (*Vote) ProtoMessage() {} 861 func (*Vote) Descriptor() ([]byte, []int) { 862 return fileDescriptor_678c914f1bee6d56, []int{14} 863 } 864 func (m *Vote) XXX_Unmarshal(b []byte) error { 865 return m.Unmarshal(b) 866 } 867 func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 868 b = b[:cap(b)] 869 n, err := m.MarshalToSizedBuffer(b) 870 if err != nil { 871 return nil, err 872 } 873 return b[:n], nil 874 } 875 func (m *Vote) XXX_Merge(src proto.Message) { 876 xxx_messageInfo_Vote.Merge(m, src) 877 } 878 func (m *Vote) XXX_Size() int { 879 return m.Size() 880 } 881 func (m *Vote) XXX_DiscardUnknown() { 882 xxx_messageInfo_Vote.DiscardUnknown(m) 883 } 884 885 var xxx_messageInfo_Vote proto.InternalMessageInfo 886 887 func (*Vote) XXX_MessageName() string { 888 return "payload.Vote" 889 } 890 891 type Proposal struct { 892 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` 893 Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"` 894 BatchTx *BatchTx `protobuf:"bytes,3,opt,name=BatchTx,proto3" json:"BatchTx,omitempty"` 895 XXX_NoUnkeyedLiteral struct{} `json:"-"` 896 XXX_unrecognized []byte `json:"-"` 897 XXX_sizecache int32 `json:"-"` 898 } 899 900 func (m *Proposal) Reset() { *m = Proposal{} } 901 func (*Proposal) ProtoMessage() {} 902 func (*Proposal) Descriptor() ([]byte, []int) { 903 return fileDescriptor_678c914f1bee6d56, []int{15} 904 } 905 func (m *Proposal) XXX_Unmarshal(b []byte) error { 906 return m.Unmarshal(b) 907 } 908 func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 909 b = b[:cap(b)] 910 n, err := m.MarshalToSizedBuffer(b) 911 if err != nil { 912 return nil, err 913 } 914 return b[:n], nil 915 } 916 func (m *Proposal) XXX_Merge(src proto.Message) { 917 xxx_messageInfo_Proposal.Merge(m, src) 918 } 919 func (m *Proposal) XXX_Size() int { 920 return m.Size() 921 } 922 func (m *Proposal) XXX_DiscardUnknown() { 923 xxx_messageInfo_Proposal.DiscardUnknown(m) 924 } 925 926 var xxx_messageInfo_Proposal proto.InternalMessageInfo 927 928 func (*Proposal) XXX_MessageName() string { 929 return "payload.Proposal" 930 } 931 932 type Ballot struct { 933 Proposal *Proposal `protobuf:"bytes,1,opt,name=Proposal,proto3" json:"Proposal,omitempty"` 934 FinalizingTx *github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,2,opt,name=FinalizingTx,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"FinalizingTx,omitempty"` 935 ProposalState Ballot_ProposalState `protobuf:"varint,4,opt,name=proposalState,proto3,enum=payload.Ballot_ProposalState" json:"proposalState,omitempty"` 936 Votes []*Vote `protobuf:"bytes,5,rep,name=Votes,proto3" json:"Votes,omitempty"` 937 XXX_NoUnkeyedLiteral struct{} `json:"-"` 938 XXX_unrecognized []byte `json:"-"` 939 XXX_sizecache int32 `json:"-"` 940 } 941 942 func (m *Ballot) Reset() { *m = Ballot{} } 943 func (m *Ballot) String() string { return proto.CompactTextString(m) } 944 func (*Ballot) ProtoMessage() {} 945 func (*Ballot) Descriptor() ([]byte, []int) { 946 return fileDescriptor_678c914f1bee6d56, []int{16} 947 } 948 func (m *Ballot) XXX_Unmarshal(b []byte) error { 949 return m.Unmarshal(b) 950 } 951 func (m *Ballot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 952 b = b[:cap(b)] 953 n, err := m.MarshalToSizedBuffer(b) 954 if err != nil { 955 return nil, err 956 } 957 return b[:n], nil 958 } 959 func (m *Ballot) XXX_Merge(src proto.Message) { 960 xxx_messageInfo_Ballot.Merge(m, src) 961 } 962 func (m *Ballot) XXX_Size() int { 963 return m.Size() 964 } 965 func (m *Ballot) XXX_DiscardUnknown() { 966 xxx_messageInfo_Ballot.DiscardUnknown(m) 967 } 968 969 var xxx_messageInfo_Ballot proto.InternalMessageInfo 970 971 func (m *Ballot) GetProposal() *Proposal { 972 if m != nil { 973 return m.Proposal 974 } 975 return nil 976 } 977 978 func (m *Ballot) GetProposalState() Ballot_ProposalState { 979 if m != nil { 980 return m.ProposalState 981 } 982 return Ballot_PROPOSED 983 } 984 985 func (m *Ballot) GetVotes() []*Vote { 986 if m != nil { 987 return m.Votes 988 } 989 return nil 990 } 991 992 func (*Ballot) XXX_MessageName() string { 993 return "payload.Ballot" 994 } 995 func init() { 996 proto.RegisterEnum("payload.Ballot_ProposalState", Ballot_ProposalState_name, Ballot_ProposalState_value) 997 golang_proto.RegisterEnum("payload.Ballot_ProposalState", Ballot_ProposalState_name, Ballot_ProposalState_value) 998 proto.RegisterType((*Any)(nil), "payload.Any") 999 golang_proto.RegisterType((*Any)(nil), "payload.Any") 1000 proto.RegisterType((*TxInput)(nil), "payload.TxInput") 1001 golang_proto.RegisterType((*TxInput)(nil), "payload.TxInput") 1002 proto.RegisterType((*TxOutput)(nil), "payload.TxOutput") 1003 golang_proto.RegisterType((*TxOutput)(nil), "payload.TxOutput") 1004 proto.RegisterType((*CallTx)(nil), "payload.CallTx") 1005 golang_proto.RegisterType((*CallTx)(nil), "payload.CallTx") 1006 proto.RegisterType((*ContractMeta)(nil), "payload.ContractMeta") 1007 golang_proto.RegisterType((*ContractMeta)(nil), "payload.ContractMeta") 1008 proto.RegisterType((*SendTx)(nil), "payload.SendTx") 1009 golang_proto.RegisterType((*SendTx)(nil), "payload.SendTx") 1010 proto.RegisterType((*PermsTx)(nil), "payload.PermsTx") 1011 golang_proto.RegisterType((*PermsTx)(nil), "payload.PermsTx") 1012 proto.RegisterType((*NameTx)(nil), "payload.NameTx") 1013 golang_proto.RegisterType((*NameTx)(nil), "payload.NameTx") 1014 proto.RegisterType((*BondTx)(nil), "payload.BondTx") 1015 golang_proto.RegisterType((*BondTx)(nil), "payload.BondTx") 1016 proto.RegisterType((*UnbondTx)(nil), "payload.UnbondTx") 1017 golang_proto.RegisterType((*UnbondTx)(nil), "payload.UnbondTx") 1018 proto.RegisterType((*GovTx)(nil), "payload.GovTx") 1019 golang_proto.RegisterType((*GovTx)(nil), "payload.GovTx") 1020 proto.RegisterType((*ProposalTx)(nil), "payload.ProposalTx") 1021 golang_proto.RegisterType((*ProposalTx)(nil), "payload.ProposalTx") 1022 proto.RegisterType((*IdentifyTx)(nil), "payload.IdentifyTx") 1023 golang_proto.RegisterType((*IdentifyTx)(nil), "payload.IdentifyTx") 1024 proto.RegisterType((*BatchTx)(nil), "payload.BatchTx") 1025 golang_proto.RegisterType((*BatchTx)(nil), "payload.BatchTx") 1026 proto.RegisterType((*Vote)(nil), "payload.Vote") 1027 golang_proto.RegisterType((*Vote)(nil), "payload.Vote") 1028 proto.RegisterType((*Proposal)(nil), "payload.Proposal") 1029 golang_proto.RegisterType((*Proposal)(nil), "payload.Proposal") 1030 proto.RegisterType((*Ballot)(nil), "payload.Ballot") 1031 golang_proto.RegisterType((*Ballot)(nil), "payload.Ballot") 1032 } 1033 1034 func init() { proto.RegisterFile("payload.proto", fileDescriptor_678c914f1bee6d56) } 1035 func init() { golang_proto.RegisterFile("payload.proto", fileDescriptor_678c914f1bee6d56) } 1036 1037 var fileDescriptor_678c914f1bee6d56 = []byte{ 1038 // 1096 bytes of a gzipped FileDescriptorProto 1039 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6f, 0x1b, 0xc5, 1040 0x17, 0xcf, 0x66, 0x37, 0xb6, 0xfb, 0xe2, 0xe4, 0xeb, 0xce, 0xb7, 0xad, 0xac, 0x48, 0xd8, 0x91, 1041 0x41, 0x90, 0x96, 0xd6, 0x86, 0x94, 0x1f, 0x22, 0x37, 0xff, 0x4a, 0x1a, 0xd4, 0x26, 0x66, 0xbc, 1042 0x69, 0x11, 0x88, 0xc3, 0x7a, 0x3d, 0xac, 0x57, 0xb2, 0x77, 0x96, 0xdd, 0x71, 0xd9, 0xe5, 0xc4, 1043 0x81, 0x03, 0x77, 0x2e, 0x1c, 0xf3, 0x1f, 0x20, 0xfe, 0x03, 0x4e, 0x28, 0x47, 0x8e, 0x88, 0x43, 1044 0x84, 0xd2, 0x0b, 0xe2, 0xaf, 0x40, 0x33, 0x3b, 0xbb, 0x1e, 0xbb, 0x55, 0xeb, 0x44, 0x88, 0xdb, 1045 0xcc, 0x7b, 0x9f, 0x79, 0xef, 0xcd, 0x7b, 0x9f, 0x79, 0x6f, 0x60, 0xc3, 0xb7, 0xe2, 0x31, 0xb5, 1046 0x86, 0x75, 0x3f, 0xa0, 0x8c, 0xa2, 0xbc, 0xdc, 0x6e, 0xdd, 0x70, 0xa8, 0x43, 0x85, 0xac, 0xc1, 1047 0x57, 0x89, 0x7a, 0xab, 0xe4, 0x93, 0x60, 0xe2, 0x86, 0xa1, 0x4b, 0x3d, 0x29, 0xd9, 0x0c, 0x88, 1048 0xe3, 0x86, 0x2c, 0x88, 0xe5, 0x1e, 0x42, 0x9f, 0xd8, 0xc9, 0xba, 0xf6, 0xab, 0x0e, 0x7a, 0xd3, 1049 0x8b, 0xd1, 0x5b, 0x90, 0x6b, 0x5b, 0xe3, 0xb1, 0x19, 0x95, 0xb5, 0x6d, 0x6d, 0x67, 0x7d, 0xf7, 1050 0x7f, 0xf5, 0xd4, 0x69, 0x22, 0xc6, 0x52, 0xcd, 0x81, 0x7d, 0xe2, 0x0d, 0xcd, 0xa8, 0xbc, 0xba, 1051 0x00, 0x4c, 0xc4, 0x58, 0xaa, 0x39, 0xf0, 0xc8, 0x9a, 0x10, 0x33, 0x2a, 0xeb, 0x0b, 0xc0, 0x44, 1052 0x8c, 0xa5, 0x1a, 0xdd, 0x81, 0x7c, 0x8f, 0x04, 0x93, 0xd0, 0x8c, 0xca, 0x86, 0x40, 0x96, 0x32, 1053 0xa4, 0x94, 0xe3, 0x14, 0x80, 0xde, 0x80, 0xb5, 0x03, 0xfa, 0xd4, 0x8c, 0xca, 0x6b, 0x02, 0xb9, 1054 0x99, 0x21, 0x85, 0x14, 0x27, 0x4a, 0xee, 0xba, 0x45, 0x45, 0x8c, 0xb9, 0x05, 0xd7, 0x89, 0x18, 1055 0x4b, 0x35, 0xba, 0x07, 0x85, 0x13, 0x6f, 0x90, 0x40, 0xf3, 0x02, 0x7a, 0x3d, 0x83, 0xa6, 0x0a, 1056 0x9c, 0x41, 0x78, 0xa4, 0x2d, 0x8b, 0xd9, 0x23, 0x33, 0x2a, 0x17, 0x16, 0x22, 0x95, 0x72, 0x9c, 1057 0x02, 0xd0, 0x7d, 0x80, 0x5e, 0x40, 0x7d, 0x1a, 0x5a, 0x3c, 0xa9, 0xd7, 0x04, 0xfc, 0xff, 0xb3, 1058 0x8b, 0x65, 0x2a, 0xac, 0xc0, 0xf8, 0xa1, 0xc3, 0x21, 0xf1, 0x98, 0xfb, 0x65, 0x6c, 0x46, 0x65, 1059 0x58, 0x38, 0x34, 0x53, 0x61, 0x05, 0xb6, 0x67, 0x9c, 0x9d, 0x56, 0xb5, 0xda, 0x0f, 0x1a, 0xe4, 1060 0xcd, 0xe8, 0xd0, 0xf3, 0xa7, 0x0c, 0x1d, 0x41, 0xbe, 0x39, 0x1c, 0x06, 0x24, 0x0c, 0x45, 0x35, 1061 0x8b, 0xad, 0xf7, 0xce, 0xce, 0xab, 0x2b, 0x7f, 0x9c, 0x57, 0xef, 0x3a, 0x2e, 0x1b, 0x4d, 0x07, 1062 0x75, 0x9b, 0x4e, 0x1a, 0xa3, 0xd8, 0x27, 0xc1, 0x98, 0x0c, 0x1d, 0x12, 0x34, 0x06, 0xd3, 0x20, 1063 0xa0, 0x5f, 0x37, 0xec, 0x20, 0xf6, 0x19, 0xad, 0xcb, 0xb3, 0x38, 0x35, 0x82, 0x6e, 0x41, 0xae, 1064 0x39, 0xa1, 0x53, 0x8f, 0x89, 0x9a, 0x1b, 0x58, 0xee, 0xd0, 0x16, 0x14, 0xfa, 0xe4, 0xab, 0x29, 1065 0xf1, 0x6c, 0x22, 0x8a, 0x6c, 0xe0, 0x6c, 0xbf, 0x67, 0xfc, 0x78, 0x5a, 0x5d, 0xa9, 0x45, 0x50, 1066 0x30, 0xa3, 0xe3, 0x29, 0xfb, 0x0f, 0xa3, 0x92, 0x9e, 0x7f, 0xd2, 0x53, 0x46, 0xa3, 0x37, 0x61, 1067 0x4d, 0xe4, 0x45, 0x52, 0x7b, 0x56, 0x34, 0x99, 0x2f, 0x9c, 0xa8, 0xd1, 0xc7, 0xb3, 0x00, 0x57, 1068 0x45, 0x80, 0xef, 0x5c, 0x3d, 0xb8, 0x2d, 0x28, 0x1c, 0x58, 0xe1, 0x43, 0x77, 0xe2, 0xb2, 0x34, 1069 0x35, 0xe9, 0x1e, 0x95, 0x40, 0xdf, 0x27, 0x44, 0x90, 0xdd, 0xc0, 0x7c, 0x89, 0x0e, 0xc1, 0xe8, 1070 0x58, 0xcc, 0x12, 0xac, 0x2e, 0xb6, 0xde, 0x97, 0x79, 0xb9, 0xf7, 0x72, 0xd7, 0x03, 0xd7, 0xb3, 1071 0x82, 0xb8, 0xfe, 0x80, 0x44, 0xad, 0x98, 0x91, 0x10, 0x0b, 0x13, 0xe8, 0x73, 0x30, 0x9e, 0x34, 1072 0xfb, 0x8f, 0x04, 0xf3, 0x8b, 0xad, 0x83, 0x2b, 0x99, 0xfa, 0xfb, 0xbc, 0xba, 0xc9, 0x2c, 0x27, 1073 0xbc, 0x4b, 0x27, 0x2e, 0x23, 0x13, 0x9f, 0xc5, 0x58, 0x18, 0x45, 0x1f, 0x41, 0xb1, 0x4d, 0x3d, 1074 0x16, 0x58, 0x36, 0x7b, 0x44, 0x98, 0x55, 0xce, 0x6f, 0xeb, 0x3b, 0xeb, 0xbb, 0x37, 0x67, 0xbd, 1075 0x42, 0x51, 0xe2, 0x39, 0xa8, 0x4c, 0x48, 0x2f, 0x70, 0x6d, 0x22, 0x1e, 0x4f, 0x92, 0x10, 0xb1, 1076 0x97, 0x15, 0x9b, 0xce, 0x1b, 0x47, 0x9f, 0x40, 0xa1, 0x4d, 0x87, 0xe4, 0x81, 0x15, 0x8e, 0x24, 1077 0x61, 0xae, 0x98, 0x98, 0xcc, 0x0c, 0x42, 0x60, 0x88, 0xb8, 0x79, 0x79, 0xaf, 0x61, 0xb1, 0xae, 1078 0xb9, 0x69, 0x43, 0x43, 0x3b, 0x90, 0x13, 0x44, 0xe0, 0xfc, 0xd4, 0x5f, 0x48, 0x14, 0xa9, 0x47, 1079 0x6f, 0x43, 0x3e, 0x21, 0x35, 0x67, 0x8a, 0x3e, 0xd7, 0x36, 0x52, 0xba, 0xe3, 0x14, 0xb1, 0x57, 1080 0xf8, 0xfe, 0xb4, 0xba, 0x22, 0x6e, 0x48, 0xb3, 0x4e, 0xb7, 0x34, 0x27, 0x3f, 0x80, 0x02, 0x3f, 1081 0xd2, 0x0c, 0x9c, 0x50, 0x36, 0xdc, 0x1b, 0x75, 0xa5, 0xc1, 0xa7, 0xba, 0x96, 0xc1, 0x53, 0x83, 1082 0x33, 0xac, 0x4c, 0xa9, 0x9f, 0xf6, 0xe0, 0xa5, 0xfd, 0x21, 0x30, 0xf8, 0x89, 0x34, 0x43, 0x7c, 1083 0xcd, 0x65, 0x82, 0x9d, 0x7a, 0x22, 0x13, 0x34, 0x7b, 0x8e, 0xc3, 0xd2, 0xe3, 0x5e, 0xda, 0x7a, 1084 0x97, 0xf5, 0xa8, 0xa4, 0xc7, 0x99, 0x75, 0xe3, 0xa5, 0xe3, 0xbd, 0x0d, 0xb9, 0x24, 0xcf, 0x32, 1085 0x3b, 0x2f, 0x28, 0x84, 0x04, 0x28, 0x8e, 0xbe, 0xd5, 0xe4, 0x18, 0xb9, 0x44, 0xc9, 0xdb, 0xb0, 1086 0xd9, 0xb4, 0x6d, 0xde, 0x60, 0x4e, 0xfc, 0xa1, 0xc5, 0x48, 0x5a, 0xf9, 0x9b, 0x75, 0x31, 0x4d, 1087 0x4d, 0x32, 0xf1, 0xc7, 0x16, 0x23, 0x12, 0x23, 0xea, 0xa1, 0xe1, 0x85, 0x23, 0x4a, 0x08, 0x7f, 1088 0x69, 0xea, 0x7c, 0x58, 0xfa, 0xba, 0x35, 0x28, 0x3e, 0xa6, 0xcc, 0xf5, 0x9c, 0x27, 0xc4, 0x75, 1089 0x46, 0xc9, 0xa5, 0x75, 0x3c, 0x27, 0x43, 0x27, 0x50, 0x4c, 0x2d, 0x8b, 0xb7, 0xa3, 0x8b, 0xb7, 1090 0xf3, 0xee, 0xe5, 0xdf, 0xcd, 0x9c, 0x19, 0x3e, 0x2b, 0xd3, 0xbd, 0x9c, 0xd3, 0xd7, 0x9f, 0x1b, 1091 0x67, 0x38, 0x83, 0x28, 0x57, 0x1d, 0xab, 0x43, 0xed, 0x12, 0x19, 0xbf, 0x03, 0xc6, 0x11, 0x1d, 1092 0x12, 0x59, 0xd8, 0x5b, 0xf5, 0xec, 0x17, 0xc3, 0xa5, 0x89, 0x45, 0xde, 0x98, 0xf8, 0x4e, 0xf1, 1093 0xf6, 0x45, 0x36, 0xa3, 0x2f, 0xe1, 0xaa, 0x02, 0xba, 0x19, 0xa5, 0x15, 0x2d, 0x66, 0xb0, 0xa6, 1094 0x17, 0x63, 0xae, 0x50, 0xcc, 0x7f, 0xa7, 0x81, 0xf1, 0x98, 0x32, 0xf2, 0xaf, 0x4f, 0xb3, 0x25, 1095 0x2a, 0xab, 0x84, 0xf1, 0x74, 0x56, 0x8c, 0xec, 0xc9, 0x6a, 0xca, 0x93, 0xdd, 0x86, 0xf5, 0x0e, 1096 0x09, 0xed, 0xc0, 0xf5, 0x99, 0x4b, 0x3d, 0xf9, 0x9a, 0x55, 0x91, 0xfa, 0x97, 0xd1, 0x5f, 0xf1, 1097 0x97, 0x51, 0xfc, 0xfe, 0xbc, 0x0a, 0xb9, 0x96, 0x35, 0x1e, 0x53, 0x36, 0xc7, 0x07, 0xed, 0x95, 1098 0x7c, 0xe0, 0xac, 0xdc, 0x77, 0x3d, 0x6b, 0xec, 0x7e, 0xe3, 0x7a, 0x8e, 0xfc, 0x3d, 0x5e, 0x8d, 1099 0x95, 0xaa, 0x19, 0xd4, 0x86, 0x0d, 0x5f, 0xba, 0xe8, 0x33, 0x8b, 0x25, 0x1d, 0x69, 0x73, 0xf7, 1100 0x35, 0xe5, 0x32, 0x3c, 0xda, 0x2c, 0x22, 0x01, 0xc2, 0xf3, 0x67, 0xd0, 0xeb, 0xb0, 0xc6, 0x6b, 1101 0x1a, 0x96, 0xd7, 0x04, 0x01, 0x36, 0xb2, 0xc3, 0x5c, 0x8a, 0x13, 0x5d, 0xed, 0x43, 0xd8, 0x98, 1102 0x33, 0x82, 0x8a, 0x50, 0xe8, 0xe1, 0xe3, 0xde, 0x71, 0xbf, 0xdb, 0x29, 0xad, 0xf0, 0x5d, 0xf7, 1103 0xd3, 0x6e, 0xfb, 0xc4, 0xec, 0x76, 0x4a, 0x1a, 0x02, 0xc8, 0xed, 0x37, 0x0f, 0x1f, 0x76, 0x3b, 1104 0xa5, 0xd5, 0x56, 0xfb, 0xec, 0xa2, 0xa2, 0xfd, 0x76, 0x51, 0xd1, 0x7e, 0xbf, 0xa8, 0x68, 0x7f, 1105 0x5e, 0x54, 0xb4, 0x5f, 0x9e, 0x55, 0xb4, 0xb3, 0x67, 0x15, 0xed, 0xb3, 0xdb, 0x2f, 0xbf, 0x39, 1106 0x8b, 0xc2, 0x86, 0x8c, 0x64, 0x90, 0x13, 0xdf, 0xf5, 0xfb, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 1107 0x94, 0xcd, 0x56, 0xb9, 0x0c, 0x0c, 0x00, 0x00, 1108 } 1109 1110 func (m *Any) Marshal() (dAtA []byte, err error) { 1111 size := m.Size() 1112 dAtA = make([]byte, size) 1113 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1114 if err != nil { 1115 return nil, err 1116 } 1117 return dAtA[:n], nil 1118 } 1119 1120 func (m *Any) MarshalTo(dAtA []byte) (int, error) { 1121 size := m.Size() 1122 return m.MarshalToSizedBuffer(dAtA[:size]) 1123 } 1124 1125 func (m *Any) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1126 i := len(dAtA) 1127 _ = i 1128 var l int 1129 _ = l 1130 if m.XXX_unrecognized != nil { 1131 i -= len(m.XXX_unrecognized) 1132 copy(dAtA[i:], m.XXX_unrecognized) 1133 } 1134 if m.IdentifyTx != nil { 1135 { 1136 size, err := m.IdentifyTx.MarshalToSizedBuffer(dAtA[:i]) 1137 if err != nil { 1138 return 0, err 1139 } 1140 i -= size 1141 i = encodeVarintPayload(dAtA, i, uint64(size)) 1142 } 1143 i-- 1144 dAtA[i] = 0x52 1145 } 1146 if m.ProposalTx != nil { 1147 { 1148 size, err := m.ProposalTx.MarshalToSizedBuffer(dAtA[:i]) 1149 if err != nil { 1150 return 0, err 1151 } 1152 i -= size 1153 i = encodeVarintPayload(dAtA, i, uint64(size)) 1154 } 1155 i-- 1156 dAtA[i] = 0x4a 1157 } 1158 if m.BatchTx != nil { 1159 { 1160 size, err := m.BatchTx.MarshalToSizedBuffer(dAtA[:i]) 1161 if err != nil { 1162 return 0, err 1163 } 1164 i -= size 1165 i = encodeVarintPayload(dAtA, i, uint64(size)) 1166 } 1167 i-- 1168 dAtA[i] = 0x42 1169 } 1170 if m.UnbondTx != nil { 1171 { 1172 size, err := m.UnbondTx.MarshalToSizedBuffer(dAtA[:i]) 1173 if err != nil { 1174 return 0, err 1175 } 1176 i -= size 1177 i = encodeVarintPayload(dAtA, i, uint64(size)) 1178 } 1179 i-- 1180 dAtA[i] = 0x3a 1181 } 1182 if m.BondTx != nil { 1183 { 1184 size, err := m.BondTx.MarshalToSizedBuffer(dAtA[:i]) 1185 if err != nil { 1186 return 0, err 1187 } 1188 i -= size 1189 i = encodeVarintPayload(dAtA, i, uint64(size)) 1190 } 1191 i-- 1192 dAtA[i] = 0x32 1193 } 1194 if m.GovTx != nil { 1195 { 1196 size, err := m.GovTx.MarshalToSizedBuffer(dAtA[:i]) 1197 if err != nil { 1198 return 0, err 1199 } 1200 i -= size 1201 i = encodeVarintPayload(dAtA, i, uint64(size)) 1202 } 1203 i-- 1204 dAtA[i] = 0x2a 1205 } 1206 if m.PermsTx != nil { 1207 { 1208 size, err := m.PermsTx.MarshalToSizedBuffer(dAtA[:i]) 1209 if err != nil { 1210 return 0, err 1211 } 1212 i -= size 1213 i = encodeVarintPayload(dAtA, i, uint64(size)) 1214 } 1215 i-- 1216 dAtA[i] = 0x22 1217 } 1218 if m.NameTx != nil { 1219 { 1220 size, err := m.NameTx.MarshalToSizedBuffer(dAtA[:i]) 1221 if err != nil { 1222 return 0, err 1223 } 1224 i -= size 1225 i = encodeVarintPayload(dAtA, i, uint64(size)) 1226 } 1227 i-- 1228 dAtA[i] = 0x1a 1229 } 1230 if m.SendTx != nil { 1231 { 1232 size, err := m.SendTx.MarshalToSizedBuffer(dAtA[:i]) 1233 if err != nil { 1234 return 0, err 1235 } 1236 i -= size 1237 i = encodeVarintPayload(dAtA, i, uint64(size)) 1238 } 1239 i-- 1240 dAtA[i] = 0x12 1241 } 1242 if m.CallTx != nil { 1243 { 1244 size, err := m.CallTx.MarshalToSizedBuffer(dAtA[:i]) 1245 if err != nil { 1246 return 0, err 1247 } 1248 i -= size 1249 i = encodeVarintPayload(dAtA, i, uint64(size)) 1250 } 1251 i-- 1252 dAtA[i] = 0xa 1253 } 1254 return len(dAtA) - i, nil 1255 } 1256 1257 func (m *TxInput) Marshal() (dAtA []byte, err error) { 1258 size := m.Size() 1259 dAtA = make([]byte, size) 1260 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1261 if err != nil { 1262 return nil, err 1263 } 1264 return dAtA[:n], nil 1265 } 1266 1267 func (m *TxInput) MarshalTo(dAtA []byte) (int, error) { 1268 size := m.Size() 1269 return m.MarshalToSizedBuffer(dAtA[:size]) 1270 } 1271 1272 func (m *TxInput) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1273 i := len(dAtA) 1274 _ = i 1275 var l int 1276 _ = l 1277 if m.XXX_unrecognized != nil { 1278 i -= len(m.XXX_unrecognized) 1279 copy(dAtA[i:], m.XXX_unrecognized) 1280 } 1281 if m.Sequence != 0 { 1282 i = encodeVarintPayload(dAtA, i, uint64(m.Sequence)) 1283 i-- 1284 dAtA[i] = 0x18 1285 } 1286 if m.Amount != 0 { 1287 i = encodeVarintPayload(dAtA, i, uint64(m.Amount)) 1288 i-- 1289 dAtA[i] = 0x10 1290 } 1291 { 1292 size := m.Address.Size() 1293 i -= size 1294 if _, err := m.Address.MarshalTo(dAtA[i:]); err != nil { 1295 return 0, err 1296 } 1297 i = encodeVarintPayload(dAtA, i, uint64(size)) 1298 } 1299 i-- 1300 dAtA[i] = 0xa 1301 return len(dAtA) - i, nil 1302 } 1303 1304 func (m *TxOutput) Marshal() (dAtA []byte, err error) { 1305 size := m.Size() 1306 dAtA = make([]byte, size) 1307 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1308 if err != nil { 1309 return nil, err 1310 } 1311 return dAtA[:n], nil 1312 } 1313 1314 func (m *TxOutput) MarshalTo(dAtA []byte) (int, error) { 1315 size := m.Size() 1316 return m.MarshalToSizedBuffer(dAtA[:size]) 1317 } 1318 1319 func (m *TxOutput) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1320 i := len(dAtA) 1321 _ = i 1322 var l int 1323 _ = l 1324 if m.XXX_unrecognized != nil { 1325 i -= len(m.XXX_unrecognized) 1326 copy(dAtA[i:], m.XXX_unrecognized) 1327 } 1328 if m.Amount != 0 { 1329 i = encodeVarintPayload(dAtA, i, uint64(m.Amount)) 1330 i-- 1331 dAtA[i] = 0x10 1332 } 1333 { 1334 size := m.Address.Size() 1335 i -= size 1336 if _, err := m.Address.MarshalTo(dAtA[i:]); err != nil { 1337 return 0, err 1338 } 1339 i = encodeVarintPayload(dAtA, i, uint64(size)) 1340 } 1341 i-- 1342 dAtA[i] = 0xa 1343 return len(dAtA) - i, nil 1344 } 1345 1346 func (m *CallTx) Marshal() (dAtA []byte, err error) { 1347 size := m.Size() 1348 dAtA = make([]byte, size) 1349 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1350 if err != nil { 1351 return nil, err 1352 } 1353 return dAtA[:n], nil 1354 } 1355 1356 func (m *CallTx) MarshalTo(dAtA []byte) (int, error) { 1357 size := m.Size() 1358 return m.MarshalToSizedBuffer(dAtA[:size]) 1359 } 1360 1361 func (m *CallTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1362 i := len(dAtA) 1363 _ = i 1364 var l int 1365 _ = l 1366 if m.XXX_unrecognized != nil { 1367 i -= len(m.XXX_unrecognized) 1368 copy(dAtA[i:], m.XXX_unrecognized) 1369 } 1370 if m.GasPrice != 0 { 1371 i = encodeVarintPayload(dAtA, i, uint64(m.GasPrice)) 1372 i-- 1373 dAtA[i] = 0x40 1374 } 1375 if len(m.ContractMeta) > 0 { 1376 for iNdEx := len(m.ContractMeta) - 1; iNdEx >= 0; iNdEx-- { 1377 { 1378 size, err := m.ContractMeta[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1379 if err != nil { 1380 return 0, err 1381 } 1382 i -= size 1383 i = encodeVarintPayload(dAtA, i, uint64(size)) 1384 } 1385 i-- 1386 dAtA[i] = 0x3a 1387 } 1388 } 1389 { 1390 size := m.WASM.Size() 1391 i -= size 1392 if _, err := m.WASM.MarshalTo(dAtA[i:]); err != nil { 1393 return 0, err 1394 } 1395 i = encodeVarintPayload(dAtA, i, uint64(size)) 1396 } 1397 i-- 1398 dAtA[i] = 0x32 1399 { 1400 size := m.Data.Size() 1401 i -= size 1402 if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { 1403 return 0, err 1404 } 1405 i = encodeVarintPayload(dAtA, i, uint64(size)) 1406 } 1407 i-- 1408 dAtA[i] = 0x2a 1409 if m.Fee != 0 { 1410 i = encodeVarintPayload(dAtA, i, uint64(m.Fee)) 1411 i-- 1412 dAtA[i] = 0x20 1413 } 1414 if m.GasLimit != 0 { 1415 i = encodeVarintPayload(dAtA, i, uint64(m.GasLimit)) 1416 i-- 1417 dAtA[i] = 0x18 1418 } 1419 if m.Address != nil { 1420 { 1421 size := m.Address.Size() 1422 i -= size 1423 if _, err := m.Address.MarshalTo(dAtA[i:]); err != nil { 1424 return 0, err 1425 } 1426 i = encodeVarintPayload(dAtA, i, uint64(size)) 1427 } 1428 i-- 1429 dAtA[i] = 0x12 1430 } 1431 if m.Input != nil { 1432 { 1433 size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) 1434 if err != nil { 1435 return 0, err 1436 } 1437 i -= size 1438 i = encodeVarintPayload(dAtA, i, uint64(size)) 1439 } 1440 i-- 1441 dAtA[i] = 0xa 1442 } 1443 return len(dAtA) - i, nil 1444 } 1445 1446 func (m *ContractMeta) Marshal() (dAtA []byte, err error) { 1447 size := m.Size() 1448 dAtA = make([]byte, size) 1449 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1450 if err != nil { 1451 return nil, err 1452 } 1453 return dAtA[:n], nil 1454 } 1455 1456 func (m *ContractMeta) MarshalTo(dAtA []byte) (int, error) { 1457 size := m.Size() 1458 return m.MarshalToSizedBuffer(dAtA[:size]) 1459 } 1460 1461 func (m *ContractMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1462 i := len(dAtA) 1463 _ = i 1464 var l int 1465 _ = l 1466 if m.XXX_unrecognized != nil { 1467 i -= len(m.XXX_unrecognized) 1468 copy(dAtA[i:], m.XXX_unrecognized) 1469 } 1470 if len(m.Meta) > 0 { 1471 i -= len(m.Meta) 1472 copy(dAtA[i:], m.Meta) 1473 i = encodeVarintPayload(dAtA, i, uint64(len(m.Meta))) 1474 i-- 1475 dAtA[i] = 0x12 1476 } 1477 { 1478 size := m.CodeHash.Size() 1479 i -= size 1480 if _, err := m.CodeHash.MarshalTo(dAtA[i:]); err != nil { 1481 return 0, err 1482 } 1483 i = encodeVarintPayload(dAtA, i, uint64(size)) 1484 } 1485 i-- 1486 dAtA[i] = 0xa 1487 return len(dAtA) - i, nil 1488 } 1489 1490 func (m *SendTx) Marshal() (dAtA []byte, err error) { 1491 size := m.Size() 1492 dAtA = make([]byte, size) 1493 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1494 if err != nil { 1495 return nil, err 1496 } 1497 return dAtA[:n], nil 1498 } 1499 1500 func (m *SendTx) MarshalTo(dAtA []byte) (int, error) { 1501 size := m.Size() 1502 return m.MarshalToSizedBuffer(dAtA[:size]) 1503 } 1504 1505 func (m *SendTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1506 i := len(dAtA) 1507 _ = i 1508 var l int 1509 _ = l 1510 if m.XXX_unrecognized != nil { 1511 i -= len(m.XXX_unrecognized) 1512 copy(dAtA[i:], m.XXX_unrecognized) 1513 } 1514 if len(m.Outputs) > 0 { 1515 for iNdEx := len(m.Outputs) - 1; iNdEx >= 0; iNdEx-- { 1516 { 1517 size, err := m.Outputs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1518 if err != nil { 1519 return 0, err 1520 } 1521 i -= size 1522 i = encodeVarintPayload(dAtA, i, uint64(size)) 1523 } 1524 i-- 1525 dAtA[i] = 0x12 1526 } 1527 } 1528 if len(m.Inputs) > 0 { 1529 for iNdEx := len(m.Inputs) - 1; iNdEx >= 0; iNdEx-- { 1530 { 1531 size, err := m.Inputs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1532 if err != nil { 1533 return 0, err 1534 } 1535 i -= size 1536 i = encodeVarintPayload(dAtA, i, uint64(size)) 1537 } 1538 i-- 1539 dAtA[i] = 0xa 1540 } 1541 } 1542 return len(dAtA) - i, nil 1543 } 1544 1545 func (m *PermsTx) Marshal() (dAtA []byte, err error) { 1546 size := m.Size() 1547 dAtA = make([]byte, size) 1548 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1549 if err != nil { 1550 return nil, err 1551 } 1552 return dAtA[:n], nil 1553 } 1554 1555 func (m *PermsTx) MarshalTo(dAtA []byte) (int, error) { 1556 size := m.Size() 1557 return m.MarshalToSizedBuffer(dAtA[:size]) 1558 } 1559 1560 func (m *PermsTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1561 i := len(dAtA) 1562 _ = i 1563 var l int 1564 _ = l 1565 if m.XXX_unrecognized != nil { 1566 i -= len(m.XXX_unrecognized) 1567 copy(dAtA[i:], m.XXX_unrecognized) 1568 } 1569 { 1570 size, err := m.PermArgs.MarshalToSizedBuffer(dAtA[:i]) 1571 if err != nil { 1572 return 0, err 1573 } 1574 i -= size 1575 i = encodeVarintPayload(dAtA, i, uint64(size)) 1576 } 1577 i-- 1578 dAtA[i] = 0x12 1579 if m.Input != nil { 1580 { 1581 size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) 1582 if err != nil { 1583 return 0, err 1584 } 1585 i -= size 1586 i = encodeVarintPayload(dAtA, i, uint64(size)) 1587 } 1588 i-- 1589 dAtA[i] = 0xa 1590 } 1591 return len(dAtA) - i, nil 1592 } 1593 1594 func (m *NameTx) Marshal() (dAtA []byte, err error) { 1595 size := m.Size() 1596 dAtA = make([]byte, size) 1597 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1598 if err != nil { 1599 return nil, err 1600 } 1601 return dAtA[:n], nil 1602 } 1603 1604 func (m *NameTx) MarshalTo(dAtA []byte) (int, error) { 1605 size := m.Size() 1606 return m.MarshalToSizedBuffer(dAtA[:size]) 1607 } 1608 1609 func (m *NameTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1610 i := len(dAtA) 1611 _ = i 1612 var l int 1613 _ = l 1614 if m.XXX_unrecognized != nil { 1615 i -= len(m.XXX_unrecognized) 1616 copy(dAtA[i:], m.XXX_unrecognized) 1617 } 1618 if m.Fee != 0 { 1619 i = encodeVarintPayload(dAtA, i, uint64(m.Fee)) 1620 i-- 1621 dAtA[i] = 0x20 1622 } 1623 if len(m.Data) > 0 { 1624 i -= len(m.Data) 1625 copy(dAtA[i:], m.Data) 1626 i = encodeVarintPayload(dAtA, i, uint64(len(m.Data))) 1627 i-- 1628 dAtA[i] = 0x1a 1629 } 1630 if len(m.Name) > 0 { 1631 i -= len(m.Name) 1632 copy(dAtA[i:], m.Name) 1633 i = encodeVarintPayload(dAtA, i, uint64(len(m.Name))) 1634 i-- 1635 dAtA[i] = 0x12 1636 } 1637 if m.Input != nil { 1638 { 1639 size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) 1640 if err != nil { 1641 return 0, err 1642 } 1643 i -= size 1644 i = encodeVarintPayload(dAtA, i, uint64(size)) 1645 } 1646 i-- 1647 dAtA[i] = 0xa 1648 } 1649 return len(dAtA) - i, nil 1650 } 1651 1652 func (m *BondTx) Marshal() (dAtA []byte, err error) { 1653 size := m.Size() 1654 dAtA = make([]byte, size) 1655 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1656 if err != nil { 1657 return nil, err 1658 } 1659 return dAtA[:n], nil 1660 } 1661 1662 func (m *BondTx) MarshalTo(dAtA []byte) (int, error) { 1663 size := m.Size() 1664 return m.MarshalToSizedBuffer(dAtA[:size]) 1665 } 1666 1667 func (m *BondTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1668 i := len(dAtA) 1669 _ = i 1670 var l int 1671 _ = l 1672 if m.XXX_unrecognized != nil { 1673 i -= len(m.XXX_unrecognized) 1674 copy(dAtA[i:], m.XXX_unrecognized) 1675 } 1676 if m.Input != nil { 1677 { 1678 size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) 1679 if err != nil { 1680 return 0, err 1681 } 1682 i -= size 1683 i = encodeVarintPayload(dAtA, i, uint64(size)) 1684 } 1685 i-- 1686 dAtA[i] = 0xa 1687 } 1688 return len(dAtA) - i, nil 1689 } 1690 1691 func (m *UnbondTx) Marshal() (dAtA []byte, err error) { 1692 size := m.Size() 1693 dAtA = make([]byte, size) 1694 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1695 if err != nil { 1696 return nil, err 1697 } 1698 return dAtA[:n], nil 1699 } 1700 1701 func (m *UnbondTx) MarshalTo(dAtA []byte) (int, error) { 1702 size := m.Size() 1703 return m.MarshalToSizedBuffer(dAtA[:size]) 1704 } 1705 1706 func (m *UnbondTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1707 i := len(dAtA) 1708 _ = i 1709 var l int 1710 _ = l 1711 if m.XXX_unrecognized != nil { 1712 i -= len(m.XXX_unrecognized) 1713 copy(dAtA[i:], m.XXX_unrecognized) 1714 } 1715 if m.Output != nil { 1716 { 1717 size, err := m.Output.MarshalToSizedBuffer(dAtA[:i]) 1718 if err != nil { 1719 return 0, err 1720 } 1721 i -= size 1722 i = encodeVarintPayload(dAtA, i, uint64(size)) 1723 } 1724 i-- 1725 dAtA[i] = 0x12 1726 } 1727 if m.Input != nil { 1728 { 1729 size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) 1730 if err != nil { 1731 return 0, err 1732 } 1733 i -= size 1734 i = encodeVarintPayload(dAtA, i, uint64(size)) 1735 } 1736 i-- 1737 dAtA[i] = 0xa 1738 } 1739 return len(dAtA) - i, nil 1740 } 1741 1742 func (m *GovTx) Marshal() (dAtA []byte, err error) { 1743 size := m.Size() 1744 dAtA = make([]byte, size) 1745 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1746 if err != nil { 1747 return nil, err 1748 } 1749 return dAtA[:n], nil 1750 } 1751 1752 func (m *GovTx) MarshalTo(dAtA []byte) (int, error) { 1753 size := m.Size() 1754 return m.MarshalToSizedBuffer(dAtA[:size]) 1755 } 1756 1757 func (m *GovTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1758 i := len(dAtA) 1759 _ = i 1760 var l int 1761 _ = l 1762 if m.XXX_unrecognized != nil { 1763 i -= len(m.XXX_unrecognized) 1764 copy(dAtA[i:], m.XXX_unrecognized) 1765 } 1766 if len(m.AccountUpdates) > 0 { 1767 for iNdEx := len(m.AccountUpdates) - 1; iNdEx >= 0; iNdEx-- { 1768 { 1769 size, err := m.AccountUpdates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1770 if err != nil { 1771 return 0, err 1772 } 1773 i -= size 1774 i = encodeVarintPayload(dAtA, i, uint64(size)) 1775 } 1776 i-- 1777 dAtA[i] = 0x12 1778 } 1779 } 1780 if len(m.Inputs) > 0 { 1781 for iNdEx := len(m.Inputs) - 1; iNdEx >= 0; iNdEx-- { 1782 { 1783 size, err := m.Inputs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1784 if err != nil { 1785 return 0, err 1786 } 1787 i -= size 1788 i = encodeVarintPayload(dAtA, i, uint64(size)) 1789 } 1790 i-- 1791 dAtA[i] = 0xa 1792 } 1793 } 1794 return len(dAtA) - i, nil 1795 } 1796 1797 func (m *ProposalTx) Marshal() (dAtA []byte, err error) { 1798 size := m.Size() 1799 dAtA = make([]byte, size) 1800 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1801 if err != nil { 1802 return nil, err 1803 } 1804 return dAtA[:n], nil 1805 } 1806 1807 func (m *ProposalTx) MarshalTo(dAtA []byte) (int, error) { 1808 size := m.Size() 1809 return m.MarshalToSizedBuffer(dAtA[:size]) 1810 } 1811 1812 func (m *ProposalTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1813 i := len(dAtA) 1814 _ = i 1815 var l int 1816 _ = l 1817 if m.XXX_unrecognized != nil { 1818 i -= len(m.XXX_unrecognized) 1819 copy(dAtA[i:], m.XXX_unrecognized) 1820 } 1821 if m.Proposal != nil { 1822 { 1823 size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i]) 1824 if err != nil { 1825 return 0, err 1826 } 1827 i -= size 1828 i = encodeVarintPayload(dAtA, i, uint64(size)) 1829 } 1830 i-- 1831 dAtA[i] = 0x22 1832 } 1833 if m.ProposalHash != nil { 1834 { 1835 size := m.ProposalHash.Size() 1836 i -= size 1837 if _, err := m.ProposalHash.MarshalTo(dAtA[i:]); err != nil { 1838 return 0, err 1839 } 1840 i = encodeVarintPayload(dAtA, i, uint64(size)) 1841 } 1842 i-- 1843 dAtA[i] = 0x1a 1844 } 1845 if m.VotingWeight != 0 { 1846 i = encodeVarintPayload(dAtA, i, uint64(m.VotingWeight)) 1847 i-- 1848 dAtA[i] = 0x10 1849 } 1850 if m.Input != nil { 1851 { 1852 size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) 1853 if err != nil { 1854 return 0, err 1855 } 1856 i -= size 1857 i = encodeVarintPayload(dAtA, i, uint64(size)) 1858 } 1859 i-- 1860 dAtA[i] = 0xa 1861 } 1862 return len(dAtA) - i, nil 1863 } 1864 1865 func (m *IdentifyTx) Marshal() (dAtA []byte, err error) { 1866 size := m.Size() 1867 dAtA = make([]byte, size) 1868 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1869 if err != nil { 1870 return nil, err 1871 } 1872 return dAtA[:n], nil 1873 } 1874 1875 func (m *IdentifyTx) MarshalTo(dAtA []byte) (int, error) { 1876 size := m.Size() 1877 return m.MarshalToSizedBuffer(dAtA[:size]) 1878 } 1879 1880 func (m *IdentifyTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1881 i := len(dAtA) 1882 _ = i 1883 var l int 1884 _ = l 1885 if m.XXX_unrecognized != nil { 1886 i -= len(m.XXX_unrecognized) 1887 copy(dAtA[i:], m.XXX_unrecognized) 1888 } 1889 if m.Node != nil { 1890 { 1891 size, err := m.Node.MarshalToSizedBuffer(dAtA[:i]) 1892 if err != nil { 1893 return 0, err 1894 } 1895 i -= size 1896 i = encodeVarintPayload(dAtA, i, uint64(size)) 1897 } 1898 i-- 1899 dAtA[i] = 0x12 1900 } 1901 if len(m.Inputs) > 0 { 1902 for iNdEx := len(m.Inputs) - 1; iNdEx >= 0; iNdEx-- { 1903 { 1904 size, err := m.Inputs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1905 if err != nil { 1906 return 0, err 1907 } 1908 i -= size 1909 i = encodeVarintPayload(dAtA, i, uint64(size)) 1910 } 1911 i-- 1912 dAtA[i] = 0xa 1913 } 1914 } 1915 return len(dAtA) - i, nil 1916 } 1917 1918 func (m *BatchTx) Marshal() (dAtA []byte, err error) { 1919 size := m.Size() 1920 dAtA = make([]byte, size) 1921 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1922 if err != nil { 1923 return nil, err 1924 } 1925 return dAtA[:n], nil 1926 } 1927 1928 func (m *BatchTx) MarshalTo(dAtA []byte) (int, error) { 1929 size := m.Size() 1930 return m.MarshalToSizedBuffer(dAtA[:size]) 1931 } 1932 1933 func (m *BatchTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1934 i := len(dAtA) 1935 _ = i 1936 var l int 1937 _ = l 1938 if m.XXX_unrecognized != nil { 1939 i -= len(m.XXX_unrecognized) 1940 copy(dAtA[i:], m.XXX_unrecognized) 1941 } 1942 if len(m.Txs) > 0 { 1943 for iNdEx := len(m.Txs) - 1; iNdEx >= 0; iNdEx-- { 1944 { 1945 size, err := m.Txs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1946 if err != nil { 1947 return 0, err 1948 } 1949 i -= size 1950 i = encodeVarintPayload(dAtA, i, uint64(size)) 1951 } 1952 i-- 1953 dAtA[i] = 0x12 1954 } 1955 } 1956 if len(m.Inputs) > 0 { 1957 for iNdEx := len(m.Inputs) - 1; iNdEx >= 0; iNdEx-- { 1958 { 1959 size, err := m.Inputs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1960 if err != nil { 1961 return 0, err 1962 } 1963 i -= size 1964 i = encodeVarintPayload(dAtA, i, uint64(size)) 1965 } 1966 i-- 1967 dAtA[i] = 0xa 1968 } 1969 } 1970 return len(dAtA) - i, nil 1971 } 1972 1973 func (m *Vote) Marshal() (dAtA []byte, err error) { 1974 size := m.Size() 1975 dAtA = make([]byte, size) 1976 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1977 if err != nil { 1978 return nil, err 1979 } 1980 return dAtA[:n], nil 1981 } 1982 1983 func (m *Vote) MarshalTo(dAtA []byte) (int, error) { 1984 size := m.Size() 1985 return m.MarshalToSizedBuffer(dAtA[:size]) 1986 } 1987 1988 func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1989 i := len(dAtA) 1990 _ = i 1991 var l int 1992 _ = l 1993 if m.XXX_unrecognized != nil { 1994 i -= len(m.XXX_unrecognized) 1995 copy(dAtA[i:], m.XXX_unrecognized) 1996 } 1997 if m.VotingWeight != 0 { 1998 i = encodeVarintPayload(dAtA, i, uint64(m.VotingWeight)) 1999 i-- 2000 dAtA[i] = 0x10 2001 } 2002 { 2003 size := m.Address.Size() 2004 i -= size 2005 if _, err := m.Address.MarshalTo(dAtA[i:]); err != nil { 2006 return 0, err 2007 } 2008 i = encodeVarintPayload(dAtA, i, uint64(size)) 2009 } 2010 i-- 2011 dAtA[i] = 0xa 2012 return len(dAtA) - i, nil 2013 } 2014 2015 func (m *Proposal) Marshal() (dAtA []byte, err error) { 2016 size := m.Size() 2017 dAtA = make([]byte, size) 2018 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2019 if err != nil { 2020 return nil, err 2021 } 2022 return dAtA[:n], nil 2023 } 2024 2025 func (m *Proposal) MarshalTo(dAtA []byte) (int, error) { 2026 size := m.Size() 2027 return m.MarshalToSizedBuffer(dAtA[:size]) 2028 } 2029 2030 func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2031 i := len(dAtA) 2032 _ = i 2033 var l int 2034 _ = l 2035 if m.XXX_unrecognized != nil { 2036 i -= len(m.XXX_unrecognized) 2037 copy(dAtA[i:], m.XXX_unrecognized) 2038 } 2039 if m.BatchTx != nil { 2040 { 2041 size, err := m.BatchTx.MarshalToSizedBuffer(dAtA[:i]) 2042 if err != nil { 2043 return 0, err 2044 } 2045 i -= size 2046 i = encodeVarintPayload(dAtA, i, uint64(size)) 2047 } 2048 i-- 2049 dAtA[i] = 0x1a 2050 } 2051 if len(m.Description) > 0 { 2052 i -= len(m.Description) 2053 copy(dAtA[i:], m.Description) 2054 i = encodeVarintPayload(dAtA, i, uint64(len(m.Description))) 2055 i-- 2056 dAtA[i] = 0x12 2057 } 2058 if len(m.Name) > 0 { 2059 i -= len(m.Name) 2060 copy(dAtA[i:], m.Name) 2061 i = encodeVarintPayload(dAtA, i, uint64(len(m.Name))) 2062 i-- 2063 dAtA[i] = 0xa 2064 } 2065 return len(dAtA) - i, nil 2066 } 2067 2068 func (m *Ballot) Marshal() (dAtA []byte, err error) { 2069 size := m.Size() 2070 dAtA = make([]byte, size) 2071 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2072 if err != nil { 2073 return nil, err 2074 } 2075 return dAtA[:n], nil 2076 } 2077 2078 func (m *Ballot) MarshalTo(dAtA []byte) (int, error) { 2079 size := m.Size() 2080 return m.MarshalToSizedBuffer(dAtA[:size]) 2081 } 2082 2083 func (m *Ballot) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2084 i := len(dAtA) 2085 _ = i 2086 var l int 2087 _ = l 2088 if m.XXX_unrecognized != nil { 2089 i -= len(m.XXX_unrecognized) 2090 copy(dAtA[i:], m.XXX_unrecognized) 2091 } 2092 if len(m.Votes) > 0 { 2093 for iNdEx := len(m.Votes) - 1; iNdEx >= 0; iNdEx-- { 2094 { 2095 size, err := m.Votes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2096 if err != nil { 2097 return 0, err 2098 } 2099 i -= size 2100 i = encodeVarintPayload(dAtA, i, uint64(size)) 2101 } 2102 i-- 2103 dAtA[i] = 0x2a 2104 } 2105 } 2106 if m.ProposalState != 0 { 2107 i = encodeVarintPayload(dAtA, i, uint64(m.ProposalState)) 2108 i-- 2109 dAtA[i] = 0x20 2110 } 2111 if m.FinalizingTx != nil { 2112 { 2113 size := m.FinalizingTx.Size() 2114 i -= size 2115 if _, err := m.FinalizingTx.MarshalTo(dAtA[i:]); err != nil { 2116 return 0, err 2117 } 2118 i = encodeVarintPayload(dAtA, i, uint64(size)) 2119 } 2120 i-- 2121 dAtA[i] = 0x12 2122 } 2123 if m.Proposal != nil { 2124 { 2125 size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i]) 2126 if err != nil { 2127 return 0, err 2128 } 2129 i -= size 2130 i = encodeVarintPayload(dAtA, i, uint64(size)) 2131 } 2132 i-- 2133 dAtA[i] = 0xa 2134 } 2135 return len(dAtA) - i, nil 2136 } 2137 2138 func encodeVarintPayload(dAtA []byte, offset int, v uint64) int { 2139 offset -= sovPayload(v) 2140 base := offset 2141 for v >= 1<<7 { 2142 dAtA[offset] = uint8(v&0x7f | 0x80) 2143 v >>= 7 2144 offset++ 2145 } 2146 dAtA[offset] = uint8(v) 2147 return base 2148 } 2149 func (m *Any) Size() (n int) { 2150 if m == nil { 2151 return 0 2152 } 2153 var l int 2154 _ = l 2155 if m.CallTx != nil { 2156 l = m.CallTx.Size() 2157 n += 1 + l + sovPayload(uint64(l)) 2158 } 2159 if m.SendTx != nil { 2160 l = m.SendTx.Size() 2161 n += 1 + l + sovPayload(uint64(l)) 2162 } 2163 if m.NameTx != nil { 2164 l = m.NameTx.Size() 2165 n += 1 + l + sovPayload(uint64(l)) 2166 } 2167 if m.PermsTx != nil { 2168 l = m.PermsTx.Size() 2169 n += 1 + l + sovPayload(uint64(l)) 2170 } 2171 if m.GovTx != nil { 2172 l = m.GovTx.Size() 2173 n += 1 + l + sovPayload(uint64(l)) 2174 } 2175 if m.BondTx != nil { 2176 l = m.BondTx.Size() 2177 n += 1 + l + sovPayload(uint64(l)) 2178 } 2179 if m.UnbondTx != nil { 2180 l = m.UnbondTx.Size() 2181 n += 1 + l + sovPayload(uint64(l)) 2182 } 2183 if m.BatchTx != nil { 2184 l = m.BatchTx.Size() 2185 n += 1 + l + sovPayload(uint64(l)) 2186 } 2187 if m.ProposalTx != nil { 2188 l = m.ProposalTx.Size() 2189 n += 1 + l + sovPayload(uint64(l)) 2190 } 2191 if m.IdentifyTx != nil { 2192 l = m.IdentifyTx.Size() 2193 n += 1 + l + sovPayload(uint64(l)) 2194 } 2195 if m.XXX_unrecognized != nil { 2196 n += len(m.XXX_unrecognized) 2197 } 2198 return n 2199 } 2200 2201 func (m *TxInput) Size() (n int) { 2202 if m == nil { 2203 return 0 2204 } 2205 var l int 2206 _ = l 2207 l = m.Address.Size() 2208 n += 1 + l + sovPayload(uint64(l)) 2209 if m.Amount != 0 { 2210 n += 1 + sovPayload(uint64(m.Amount)) 2211 } 2212 if m.Sequence != 0 { 2213 n += 1 + sovPayload(uint64(m.Sequence)) 2214 } 2215 if m.XXX_unrecognized != nil { 2216 n += len(m.XXX_unrecognized) 2217 } 2218 return n 2219 } 2220 2221 func (m *TxOutput) Size() (n int) { 2222 if m == nil { 2223 return 0 2224 } 2225 var l int 2226 _ = l 2227 l = m.Address.Size() 2228 n += 1 + l + sovPayload(uint64(l)) 2229 if m.Amount != 0 { 2230 n += 1 + sovPayload(uint64(m.Amount)) 2231 } 2232 if m.XXX_unrecognized != nil { 2233 n += len(m.XXX_unrecognized) 2234 } 2235 return n 2236 } 2237 2238 func (m *CallTx) Size() (n int) { 2239 if m == nil { 2240 return 0 2241 } 2242 var l int 2243 _ = l 2244 if m.Input != nil { 2245 l = m.Input.Size() 2246 n += 1 + l + sovPayload(uint64(l)) 2247 } 2248 if m.Address != nil { 2249 l = m.Address.Size() 2250 n += 1 + l + sovPayload(uint64(l)) 2251 } 2252 if m.GasLimit != 0 { 2253 n += 1 + sovPayload(uint64(m.GasLimit)) 2254 } 2255 if m.Fee != 0 { 2256 n += 1 + sovPayload(uint64(m.Fee)) 2257 } 2258 l = m.Data.Size() 2259 n += 1 + l + sovPayload(uint64(l)) 2260 l = m.WASM.Size() 2261 n += 1 + l + sovPayload(uint64(l)) 2262 if len(m.ContractMeta) > 0 { 2263 for _, e := range m.ContractMeta { 2264 l = e.Size() 2265 n += 1 + l + sovPayload(uint64(l)) 2266 } 2267 } 2268 if m.GasPrice != 0 { 2269 n += 1 + sovPayload(uint64(m.GasPrice)) 2270 } 2271 if m.XXX_unrecognized != nil { 2272 n += len(m.XXX_unrecognized) 2273 } 2274 return n 2275 } 2276 2277 func (m *ContractMeta) Size() (n int) { 2278 if m == nil { 2279 return 0 2280 } 2281 var l int 2282 _ = l 2283 l = m.CodeHash.Size() 2284 n += 1 + l + sovPayload(uint64(l)) 2285 l = len(m.Meta) 2286 if l > 0 { 2287 n += 1 + l + sovPayload(uint64(l)) 2288 } 2289 if m.XXX_unrecognized != nil { 2290 n += len(m.XXX_unrecognized) 2291 } 2292 return n 2293 } 2294 2295 func (m *SendTx) Size() (n int) { 2296 if m == nil { 2297 return 0 2298 } 2299 var l int 2300 _ = l 2301 if len(m.Inputs) > 0 { 2302 for _, e := range m.Inputs { 2303 l = e.Size() 2304 n += 1 + l + sovPayload(uint64(l)) 2305 } 2306 } 2307 if len(m.Outputs) > 0 { 2308 for _, e := range m.Outputs { 2309 l = e.Size() 2310 n += 1 + l + sovPayload(uint64(l)) 2311 } 2312 } 2313 if m.XXX_unrecognized != nil { 2314 n += len(m.XXX_unrecognized) 2315 } 2316 return n 2317 } 2318 2319 func (m *PermsTx) Size() (n int) { 2320 if m == nil { 2321 return 0 2322 } 2323 var l int 2324 _ = l 2325 if m.Input != nil { 2326 l = m.Input.Size() 2327 n += 1 + l + sovPayload(uint64(l)) 2328 } 2329 l = m.PermArgs.Size() 2330 n += 1 + l + sovPayload(uint64(l)) 2331 if m.XXX_unrecognized != nil { 2332 n += len(m.XXX_unrecognized) 2333 } 2334 return n 2335 } 2336 2337 func (m *NameTx) Size() (n int) { 2338 if m == nil { 2339 return 0 2340 } 2341 var l int 2342 _ = l 2343 if m.Input != nil { 2344 l = m.Input.Size() 2345 n += 1 + l + sovPayload(uint64(l)) 2346 } 2347 l = len(m.Name) 2348 if l > 0 { 2349 n += 1 + l + sovPayload(uint64(l)) 2350 } 2351 l = len(m.Data) 2352 if l > 0 { 2353 n += 1 + l + sovPayload(uint64(l)) 2354 } 2355 if m.Fee != 0 { 2356 n += 1 + sovPayload(uint64(m.Fee)) 2357 } 2358 if m.XXX_unrecognized != nil { 2359 n += len(m.XXX_unrecognized) 2360 } 2361 return n 2362 } 2363 2364 func (m *BondTx) Size() (n int) { 2365 if m == nil { 2366 return 0 2367 } 2368 var l int 2369 _ = l 2370 if m.Input != nil { 2371 l = m.Input.Size() 2372 n += 1 + l + sovPayload(uint64(l)) 2373 } 2374 if m.XXX_unrecognized != nil { 2375 n += len(m.XXX_unrecognized) 2376 } 2377 return n 2378 } 2379 2380 func (m *UnbondTx) Size() (n int) { 2381 if m == nil { 2382 return 0 2383 } 2384 var l int 2385 _ = l 2386 if m.Input != nil { 2387 l = m.Input.Size() 2388 n += 1 + l + sovPayload(uint64(l)) 2389 } 2390 if m.Output != nil { 2391 l = m.Output.Size() 2392 n += 1 + l + sovPayload(uint64(l)) 2393 } 2394 if m.XXX_unrecognized != nil { 2395 n += len(m.XXX_unrecognized) 2396 } 2397 return n 2398 } 2399 2400 func (m *GovTx) Size() (n int) { 2401 if m == nil { 2402 return 0 2403 } 2404 var l int 2405 _ = l 2406 if len(m.Inputs) > 0 { 2407 for _, e := range m.Inputs { 2408 l = e.Size() 2409 n += 1 + l + sovPayload(uint64(l)) 2410 } 2411 } 2412 if len(m.AccountUpdates) > 0 { 2413 for _, e := range m.AccountUpdates { 2414 l = e.Size() 2415 n += 1 + l + sovPayload(uint64(l)) 2416 } 2417 } 2418 if m.XXX_unrecognized != nil { 2419 n += len(m.XXX_unrecognized) 2420 } 2421 return n 2422 } 2423 2424 func (m *ProposalTx) Size() (n int) { 2425 if m == nil { 2426 return 0 2427 } 2428 var l int 2429 _ = l 2430 if m.Input != nil { 2431 l = m.Input.Size() 2432 n += 1 + l + sovPayload(uint64(l)) 2433 } 2434 if m.VotingWeight != 0 { 2435 n += 1 + sovPayload(uint64(m.VotingWeight)) 2436 } 2437 if m.ProposalHash != nil { 2438 l = m.ProposalHash.Size() 2439 n += 1 + l + sovPayload(uint64(l)) 2440 } 2441 if m.Proposal != nil { 2442 l = m.Proposal.Size() 2443 n += 1 + l + sovPayload(uint64(l)) 2444 } 2445 if m.XXX_unrecognized != nil { 2446 n += len(m.XXX_unrecognized) 2447 } 2448 return n 2449 } 2450 2451 func (m *IdentifyTx) Size() (n int) { 2452 if m == nil { 2453 return 0 2454 } 2455 var l int 2456 _ = l 2457 if len(m.Inputs) > 0 { 2458 for _, e := range m.Inputs { 2459 l = e.Size() 2460 n += 1 + l + sovPayload(uint64(l)) 2461 } 2462 } 2463 if m.Node != nil { 2464 l = m.Node.Size() 2465 n += 1 + l + sovPayload(uint64(l)) 2466 } 2467 if m.XXX_unrecognized != nil { 2468 n += len(m.XXX_unrecognized) 2469 } 2470 return n 2471 } 2472 2473 func (m *BatchTx) Size() (n int) { 2474 if m == nil { 2475 return 0 2476 } 2477 var l int 2478 _ = l 2479 if len(m.Inputs) > 0 { 2480 for _, e := range m.Inputs { 2481 l = e.Size() 2482 n += 1 + l + sovPayload(uint64(l)) 2483 } 2484 } 2485 if len(m.Txs) > 0 { 2486 for _, e := range m.Txs { 2487 l = e.Size() 2488 n += 1 + l + sovPayload(uint64(l)) 2489 } 2490 } 2491 if m.XXX_unrecognized != nil { 2492 n += len(m.XXX_unrecognized) 2493 } 2494 return n 2495 } 2496 2497 func (m *Vote) Size() (n int) { 2498 if m == nil { 2499 return 0 2500 } 2501 var l int 2502 _ = l 2503 l = m.Address.Size() 2504 n += 1 + l + sovPayload(uint64(l)) 2505 if m.VotingWeight != 0 { 2506 n += 1 + sovPayload(uint64(m.VotingWeight)) 2507 } 2508 if m.XXX_unrecognized != nil { 2509 n += len(m.XXX_unrecognized) 2510 } 2511 return n 2512 } 2513 2514 func (m *Proposal) Size() (n int) { 2515 if m == nil { 2516 return 0 2517 } 2518 var l int 2519 _ = l 2520 l = len(m.Name) 2521 if l > 0 { 2522 n += 1 + l + sovPayload(uint64(l)) 2523 } 2524 l = len(m.Description) 2525 if l > 0 { 2526 n += 1 + l + sovPayload(uint64(l)) 2527 } 2528 if m.BatchTx != nil { 2529 l = m.BatchTx.Size() 2530 n += 1 + l + sovPayload(uint64(l)) 2531 } 2532 if m.XXX_unrecognized != nil { 2533 n += len(m.XXX_unrecognized) 2534 } 2535 return n 2536 } 2537 2538 func (m *Ballot) Size() (n int) { 2539 if m == nil { 2540 return 0 2541 } 2542 var l int 2543 _ = l 2544 if m.Proposal != nil { 2545 l = m.Proposal.Size() 2546 n += 1 + l + sovPayload(uint64(l)) 2547 } 2548 if m.FinalizingTx != nil { 2549 l = m.FinalizingTx.Size() 2550 n += 1 + l + sovPayload(uint64(l)) 2551 } 2552 if m.ProposalState != 0 { 2553 n += 1 + sovPayload(uint64(m.ProposalState)) 2554 } 2555 if len(m.Votes) > 0 { 2556 for _, e := range m.Votes { 2557 l = e.Size() 2558 n += 1 + l + sovPayload(uint64(l)) 2559 } 2560 } 2561 if m.XXX_unrecognized != nil { 2562 n += len(m.XXX_unrecognized) 2563 } 2564 return n 2565 } 2566 2567 func sovPayload(x uint64) (n int) { 2568 return (math_bits.Len64(x|1) + 6) / 7 2569 } 2570 func sozPayload(x uint64) (n int) { 2571 return sovPayload(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 2572 } 2573 func (this *Any) GetValue() interface{} { 2574 if this.CallTx != nil { 2575 return this.CallTx 2576 } 2577 if this.SendTx != nil { 2578 return this.SendTx 2579 } 2580 if this.NameTx != nil { 2581 return this.NameTx 2582 } 2583 if this.PermsTx != nil { 2584 return this.PermsTx 2585 } 2586 if this.GovTx != nil { 2587 return this.GovTx 2588 } 2589 if this.BondTx != nil { 2590 return this.BondTx 2591 } 2592 if this.UnbondTx != nil { 2593 return this.UnbondTx 2594 } 2595 if this.BatchTx != nil { 2596 return this.BatchTx 2597 } 2598 if this.ProposalTx != nil { 2599 return this.ProposalTx 2600 } 2601 if this.IdentifyTx != nil { 2602 return this.IdentifyTx 2603 } 2604 return nil 2605 } 2606 2607 func (this *Any) SetValue(value interface{}) bool { 2608 switch vt := value.(type) { 2609 case *CallTx: 2610 this.CallTx = vt 2611 case *SendTx: 2612 this.SendTx = vt 2613 case *NameTx: 2614 this.NameTx = vt 2615 case *PermsTx: 2616 this.PermsTx = vt 2617 case *GovTx: 2618 this.GovTx = vt 2619 case *BondTx: 2620 this.BondTx = vt 2621 case *UnbondTx: 2622 this.UnbondTx = vt 2623 case *BatchTx: 2624 this.BatchTx = vt 2625 case *ProposalTx: 2626 this.ProposalTx = vt 2627 case *IdentifyTx: 2628 this.IdentifyTx = vt 2629 default: 2630 return false 2631 } 2632 return true 2633 } 2634 func (m *Any) Unmarshal(dAtA []byte) error { 2635 l := len(dAtA) 2636 iNdEx := 0 2637 for iNdEx < l { 2638 preIndex := iNdEx 2639 var wire uint64 2640 for shift := uint(0); ; shift += 7 { 2641 if shift >= 64 { 2642 return ErrIntOverflowPayload 2643 } 2644 if iNdEx >= l { 2645 return io.ErrUnexpectedEOF 2646 } 2647 b := dAtA[iNdEx] 2648 iNdEx++ 2649 wire |= uint64(b&0x7F) << shift 2650 if b < 0x80 { 2651 break 2652 } 2653 } 2654 fieldNum := int32(wire >> 3) 2655 wireType := int(wire & 0x7) 2656 if wireType == 4 { 2657 return fmt.Errorf("proto: Any: wiretype end group for non-group") 2658 } 2659 if fieldNum <= 0 { 2660 return fmt.Errorf("proto: Any: illegal tag %d (wire type %d)", fieldNum, wire) 2661 } 2662 switch fieldNum { 2663 case 1: 2664 if wireType != 2 { 2665 return fmt.Errorf("proto: wrong wireType = %d for field CallTx", wireType) 2666 } 2667 var msglen int 2668 for shift := uint(0); ; shift += 7 { 2669 if shift >= 64 { 2670 return ErrIntOverflowPayload 2671 } 2672 if iNdEx >= l { 2673 return io.ErrUnexpectedEOF 2674 } 2675 b := dAtA[iNdEx] 2676 iNdEx++ 2677 msglen |= int(b&0x7F) << shift 2678 if b < 0x80 { 2679 break 2680 } 2681 } 2682 if msglen < 0 { 2683 return ErrInvalidLengthPayload 2684 } 2685 postIndex := iNdEx + msglen 2686 if postIndex < 0 { 2687 return ErrInvalidLengthPayload 2688 } 2689 if postIndex > l { 2690 return io.ErrUnexpectedEOF 2691 } 2692 if m.CallTx == nil { 2693 m.CallTx = &CallTx{} 2694 } 2695 if err := m.CallTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2696 return err 2697 } 2698 iNdEx = postIndex 2699 case 2: 2700 if wireType != 2 { 2701 return fmt.Errorf("proto: wrong wireType = %d for field SendTx", wireType) 2702 } 2703 var msglen int 2704 for shift := uint(0); ; shift += 7 { 2705 if shift >= 64 { 2706 return ErrIntOverflowPayload 2707 } 2708 if iNdEx >= l { 2709 return io.ErrUnexpectedEOF 2710 } 2711 b := dAtA[iNdEx] 2712 iNdEx++ 2713 msglen |= int(b&0x7F) << shift 2714 if b < 0x80 { 2715 break 2716 } 2717 } 2718 if msglen < 0 { 2719 return ErrInvalidLengthPayload 2720 } 2721 postIndex := iNdEx + msglen 2722 if postIndex < 0 { 2723 return ErrInvalidLengthPayload 2724 } 2725 if postIndex > l { 2726 return io.ErrUnexpectedEOF 2727 } 2728 if m.SendTx == nil { 2729 m.SendTx = &SendTx{} 2730 } 2731 if err := m.SendTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2732 return err 2733 } 2734 iNdEx = postIndex 2735 case 3: 2736 if wireType != 2 { 2737 return fmt.Errorf("proto: wrong wireType = %d for field NameTx", wireType) 2738 } 2739 var msglen int 2740 for shift := uint(0); ; shift += 7 { 2741 if shift >= 64 { 2742 return ErrIntOverflowPayload 2743 } 2744 if iNdEx >= l { 2745 return io.ErrUnexpectedEOF 2746 } 2747 b := dAtA[iNdEx] 2748 iNdEx++ 2749 msglen |= int(b&0x7F) << shift 2750 if b < 0x80 { 2751 break 2752 } 2753 } 2754 if msglen < 0 { 2755 return ErrInvalidLengthPayload 2756 } 2757 postIndex := iNdEx + msglen 2758 if postIndex < 0 { 2759 return ErrInvalidLengthPayload 2760 } 2761 if postIndex > l { 2762 return io.ErrUnexpectedEOF 2763 } 2764 if m.NameTx == nil { 2765 m.NameTx = &NameTx{} 2766 } 2767 if err := m.NameTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2768 return err 2769 } 2770 iNdEx = postIndex 2771 case 4: 2772 if wireType != 2 { 2773 return fmt.Errorf("proto: wrong wireType = %d for field PermsTx", wireType) 2774 } 2775 var msglen int 2776 for shift := uint(0); ; shift += 7 { 2777 if shift >= 64 { 2778 return ErrIntOverflowPayload 2779 } 2780 if iNdEx >= l { 2781 return io.ErrUnexpectedEOF 2782 } 2783 b := dAtA[iNdEx] 2784 iNdEx++ 2785 msglen |= int(b&0x7F) << shift 2786 if b < 0x80 { 2787 break 2788 } 2789 } 2790 if msglen < 0 { 2791 return ErrInvalidLengthPayload 2792 } 2793 postIndex := iNdEx + msglen 2794 if postIndex < 0 { 2795 return ErrInvalidLengthPayload 2796 } 2797 if postIndex > l { 2798 return io.ErrUnexpectedEOF 2799 } 2800 if m.PermsTx == nil { 2801 m.PermsTx = &PermsTx{} 2802 } 2803 if err := m.PermsTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2804 return err 2805 } 2806 iNdEx = postIndex 2807 case 5: 2808 if wireType != 2 { 2809 return fmt.Errorf("proto: wrong wireType = %d for field GovTx", wireType) 2810 } 2811 var msglen int 2812 for shift := uint(0); ; shift += 7 { 2813 if shift >= 64 { 2814 return ErrIntOverflowPayload 2815 } 2816 if iNdEx >= l { 2817 return io.ErrUnexpectedEOF 2818 } 2819 b := dAtA[iNdEx] 2820 iNdEx++ 2821 msglen |= int(b&0x7F) << shift 2822 if b < 0x80 { 2823 break 2824 } 2825 } 2826 if msglen < 0 { 2827 return ErrInvalidLengthPayload 2828 } 2829 postIndex := iNdEx + msglen 2830 if postIndex < 0 { 2831 return ErrInvalidLengthPayload 2832 } 2833 if postIndex > l { 2834 return io.ErrUnexpectedEOF 2835 } 2836 if m.GovTx == nil { 2837 m.GovTx = &GovTx{} 2838 } 2839 if err := m.GovTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2840 return err 2841 } 2842 iNdEx = postIndex 2843 case 6: 2844 if wireType != 2 { 2845 return fmt.Errorf("proto: wrong wireType = %d for field BondTx", wireType) 2846 } 2847 var msglen int 2848 for shift := uint(0); ; shift += 7 { 2849 if shift >= 64 { 2850 return ErrIntOverflowPayload 2851 } 2852 if iNdEx >= l { 2853 return io.ErrUnexpectedEOF 2854 } 2855 b := dAtA[iNdEx] 2856 iNdEx++ 2857 msglen |= int(b&0x7F) << shift 2858 if b < 0x80 { 2859 break 2860 } 2861 } 2862 if msglen < 0 { 2863 return ErrInvalidLengthPayload 2864 } 2865 postIndex := iNdEx + msglen 2866 if postIndex < 0 { 2867 return ErrInvalidLengthPayload 2868 } 2869 if postIndex > l { 2870 return io.ErrUnexpectedEOF 2871 } 2872 if m.BondTx == nil { 2873 m.BondTx = &BondTx{} 2874 } 2875 if err := m.BondTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2876 return err 2877 } 2878 iNdEx = postIndex 2879 case 7: 2880 if wireType != 2 { 2881 return fmt.Errorf("proto: wrong wireType = %d for field UnbondTx", wireType) 2882 } 2883 var msglen int 2884 for shift := uint(0); ; shift += 7 { 2885 if shift >= 64 { 2886 return ErrIntOverflowPayload 2887 } 2888 if iNdEx >= l { 2889 return io.ErrUnexpectedEOF 2890 } 2891 b := dAtA[iNdEx] 2892 iNdEx++ 2893 msglen |= int(b&0x7F) << shift 2894 if b < 0x80 { 2895 break 2896 } 2897 } 2898 if msglen < 0 { 2899 return ErrInvalidLengthPayload 2900 } 2901 postIndex := iNdEx + msglen 2902 if postIndex < 0 { 2903 return ErrInvalidLengthPayload 2904 } 2905 if postIndex > l { 2906 return io.ErrUnexpectedEOF 2907 } 2908 if m.UnbondTx == nil { 2909 m.UnbondTx = &UnbondTx{} 2910 } 2911 if err := m.UnbondTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2912 return err 2913 } 2914 iNdEx = postIndex 2915 case 8: 2916 if wireType != 2 { 2917 return fmt.Errorf("proto: wrong wireType = %d for field BatchTx", wireType) 2918 } 2919 var msglen int 2920 for shift := uint(0); ; shift += 7 { 2921 if shift >= 64 { 2922 return ErrIntOverflowPayload 2923 } 2924 if iNdEx >= l { 2925 return io.ErrUnexpectedEOF 2926 } 2927 b := dAtA[iNdEx] 2928 iNdEx++ 2929 msglen |= int(b&0x7F) << shift 2930 if b < 0x80 { 2931 break 2932 } 2933 } 2934 if msglen < 0 { 2935 return ErrInvalidLengthPayload 2936 } 2937 postIndex := iNdEx + msglen 2938 if postIndex < 0 { 2939 return ErrInvalidLengthPayload 2940 } 2941 if postIndex > l { 2942 return io.ErrUnexpectedEOF 2943 } 2944 if m.BatchTx == nil { 2945 m.BatchTx = &BatchTx{} 2946 } 2947 if err := m.BatchTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2948 return err 2949 } 2950 iNdEx = postIndex 2951 case 9: 2952 if wireType != 2 { 2953 return fmt.Errorf("proto: wrong wireType = %d for field ProposalTx", wireType) 2954 } 2955 var msglen int 2956 for shift := uint(0); ; shift += 7 { 2957 if shift >= 64 { 2958 return ErrIntOverflowPayload 2959 } 2960 if iNdEx >= l { 2961 return io.ErrUnexpectedEOF 2962 } 2963 b := dAtA[iNdEx] 2964 iNdEx++ 2965 msglen |= int(b&0x7F) << shift 2966 if b < 0x80 { 2967 break 2968 } 2969 } 2970 if msglen < 0 { 2971 return ErrInvalidLengthPayload 2972 } 2973 postIndex := iNdEx + msglen 2974 if postIndex < 0 { 2975 return ErrInvalidLengthPayload 2976 } 2977 if postIndex > l { 2978 return io.ErrUnexpectedEOF 2979 } 2980 if m.ProposalTx == nil { 2981 m.ProposalTx = &ProposalTx{} 2982 } 2983 if err := m.ProposalTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2984 return err 2985 } 2986 iNdEx = postIndex 2987 case 10: 2988 if wireType != 2 { 2989 return fmt.Errorf("proto: wrong wireType = %d for field IdentifyTx", wireType) 2990 } 2991 var msglen int 2992 for shift := uint(0); ; shift += 7 { 2993 if shift >= 64 { 2994 return ErrIntOverflowPayload 2995 } 2996 if iNdEx >= l { 2997 return io.ErrUnexpectedEOF 2998 } 2999 b := dAtA[iNdEx] 3000 iNdEx++ 3001 msglen |= int(b&0x7F) << shift 3002 if b < 0x80 { 3003 break 3004 } 3005 } 3006 if msglen < 0 { 3007 return ErrInvalidLengthPayload 3008 } 3009 postIndex := iNdEx + msglen 3010 if postIndex < 0 { 3011 return ErrInvalidLengthPayload 3012 } 3013 if postIndex > l { 3014 return io.ErrUnexpectedEOF 3015 } 3016 if m.IdentifyTx == nil { 3017 m.IdentifyTx = &IdentifyTx{} 3018 } 3019 if err := m.IdentifyTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3020 return err 3021 } 3022 iNdEx = postIndex 3023 default: 3024 iNdEx = preIndex 3025 skippy, err := skipPayload(dAtA[iNdEx:]) 3026 if err != nil { 3027 return err 3028 } 3029 if (skippy < 0) || (iNdEx+skippy) < 0 { 3030 return ErrInvalidLengthPayload 3031 } 3032 if (iNdEx + skippy) > l { 3033 return io.ErrUnexpectedEOF 3034 } 3035 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3036 iNdEx += skippy 3037 } 3038 } 3039 3040 if iNdEx > l { 3041 return io.ErrUnexpectedEOF 3042 } 3043 return nil 3044 } 3045 func (m *TxInput) Unmarshal(dAtA []byte) error { 3046 l := len(dAtA) 3047 iNdEx := 0 3048 for iNdEx < l { 3049 preIndex := iNdEx 3050 var wire uint64 3051 for shift := uint(0); ; shift += 7 { 3052 if shift >= 64 { 3053 return ErrIntOverflowPayload 3054 } 3055 if iNdEx >= l { 3056 return io.ErrUnexpectedEOF 3057 } 3058 b := dAtA[iNdEx] 3059 iNdEx++ 3060 wire |= uint64(b&0x7F) << shift 3061 if b < 0x80 { 3062 break 3063 } 3064 } 3065 fieldNum := int32(wire >> 3) 3066 wireType := int(wire & 0x7) 3067 if wireType == 4 { 3068 return fmt.Errorf("proto: TxInput: wiretype end group for non-group") 3069 } 3070 if fieldNum <= 0 { 3071 return fmt.Errorf("proto: TxInput: illegal tag %d (wire type %d)", fieldNum, wire) 3072 } 3073 switch fieldNum { 3074 case 1: 3075 if wireType != 2 { 3076 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 3077 } 3078 var byteLen int 3079 for shift := uint(0); ; shift += 7 { 3080 if shift >= 64 { 3081 return ErrIntOverflowPayload 3082 } 3083 if iNdEx >= l { 3084 return io.ErrUnexpectedEOF 3085 } 3086 b := dAtA[iNdEx] 3087 iNdEx++ 3088 byteLen |= int(b&0x7F) << shift 3089 if b < 0x80 { 3090 break 3091 } 3092 } 3093 if byteLen < 0 { 3094 return ErrInvalidLengthPayload 3095 } 3096 postIndex := iNdEx + byteLen 3097 if postIndex < 0 { 3098 return ErrInvalidLengthPayload 3099 } 3100 if postIndex > l { 3101 return io.ErrUnexpectedEOF 3102 } 3103 if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3104 return err 3105 } 3106 iNdEx = postIndex 3107 case 2: 3108 if wireType != 0 { 3109 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 3110 } 3111 m.Amount = 0 3112 for shift := uint(0); ; shift += 7 { 3113 if shift >= 64 { 3114 return ErrIntOverflowPayload 3115 } 3116 if iNdEx >= l { 3117 return io.ErrUnexpectedEOF 3118 } 3119 b := dAtA[iNdEx] 3120 iNdEx++ 3121 m.Amount |= uint64(b&0x7F) << shift 3122 if b < 0x80 { 3123 break 3124 } 3125 } 3126 case 3: 3127 if wireType != 0 { 3128 return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) 3129 } 3130 m.Sequence = 0 3131 for shift := uint(0); ; shift += 7 { 3132 if shift >= 64 { 3133 return ErrIntOverflowPayload 3134 } 3135 if iNdEx >= l { 3136 return io.ErrUnexpectedEOF 3137 } 3138 b := dAtA[iNdEx] 3139 iNdEx++ 3140 m.Sequence |= uint64(b&0x7F) << shift 3141 if b < 0x80 { 3142 break 3143 } 3144 } 3145 default: 3146 iNdEx = preIndex 3147 skippy, err := skipPayload(dAtA[iNdEx:]) 3148 if err != nil { 3149 return err 3150 } 3151 if (skippy < 0) || (iNdEx+skippy) < 0 { 3152 return ErrInvalidLengthPayload 3153 } 3154 if (iNdEx + skippy) > l { 3155 return io.ErrUnexpectedEOF 3156 } 3157 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3158 iNdEx += skippy 3159 } 3160 } 3161 3162 if iNdEx > l { 3163 return io.ErrUnexpectedEOF 3164 } 3165 return nil 3166 } 3167 func (m *TxOutput) Unmarshal(dAtA []byte) error { 3168 l := len(dAtA) 3169 iNdEx := 0 3170 for iNdEx < l { 3171 preIndex := iNdEx 3172 var wire uint64 3173 for shift := uint(0); ; shift += 7 { 3174 if shift >= 64 { 3175 return ErrIntOverflowPayload 3176 } 3177 if iNdEx >= l { 3178 return io.ErrUnexpectedEOF 3179 } 3180 b := dAtA[iNdEx] 3181 iNdEx++ 3182 wire |= uint64(b&0x7F) << shift 3183 if b < 0x80 { 3184 break 3185 } 3186 } 3187 fieldNum := int32(wire >> 3) 3188 wireType := int(wire & 0x7) 3189 if wireType == 4 { 3190 return fmt.Errorf("proto: TxOutput: wiretype end group for non-group") 3191 } 3192 if fieldNum <= 0 { 3193 return fmt.Errorf("proto: TxOutput: illegal tag %d (wire type %d)", fieldNum, wire) 3194 } 3195 switch fieldNum { 3196 case 1: 3197 if wireType != 2 { 3198 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 3199 } 3200 var byteLen int 3201 for shift := uint(0); ; shift += 7 { 3202 if shift >= 64 { 3203 return ErrIntOverflowPayload 3204 } 3205 if iNdEx >= l { 3206 return io.ErrUnexpectedEOF 3207 } 3208 b := dAtA[iNdEx] 3209 iNdEx++ 3210 byteLen |= int(b&0x7F) << shift 3211 if b < 0x80 { 3212 break 3213 } 3214 } 3215 if byteLen < 0 { 3216 return ErrInvalidLengthPayload 3217 } 3218 postIndex := iNdEx + byteLen 3219 if postIndex < 0 { 3220 return ErrInvalidLengthPayload 3221 } 3222 if postIndex > l { 3223 return io.ErrUnexpectedEOF 3224 } 3225 if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3226 return err 3227 } 3228 iNdEx = postIndex 3229 case 2: 3230 if wireType != 0 { 3231 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 3232 } 3233 m.Amount = 0 3234 for shift := uint(0); ; shift += 7 { 3235 if shift >= 64 { 3236 return ErrIntOverflowPayload 3237 } 3238 if iNdEx >= l { 3239 return io.ErrUnexpectedEOF 3240 } 3241 b := dAtA[iNdEx] 3242 iNdEx++ 3243 m.Amount |= uint64(b&0x7F) << shift 3244 if b < 0x80 { 3245 break 3246 } 3247 } 3248 default: 3249 iNdEx = preIndex 3250 skippy, err := skipPayload(dAtA[iNdEx:]) 3251 if err != nil { 3252 return err 3253 } 3254 if (skippy < 0) || (iNdEx+skippy) < 0 { 3255 return ErrInvalidLengthPayload 3256 } 3257 if (iNdEx + skippy) > l { 3258 return io.ErrUnexpectedEOF 3259 } 3260 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3261 iNdEx += skippy 3262 } 3263 } 3264 3265 if iNdEx > l { 3266 return io.ErrUnexpectedEOF 3267 } 3268 return nil 3269 } 3270 func (m *CallTx) Unmarshal(dAtA []byte) error { 3271 l := len(dAtA) 3272 iNdEx := 0 3273 for iNdEx < l { 3274 preIndex := iNdEx 3275 var wire uint64 3276 for shift := uint(0); ; shift += 7 { 3277 if shift >= 64 { 3278 return ErrIntOverflowPayload 3279 } 3280 if iNdEx >= l { 3281 return io.ErrUnexpectedEOF 3282 } 3283 b := dAtA[iNdEx] 3284 iNdEx++ 3285 wire |= uint64(b&0x7F) << shift 3286 if b < 0x80 { 3287 break 3288 } 3289 } 3290 fieldNum := int32(wire >> 3) 3291 wireType := int(wire & 0x7) 3292 if wireType == 4 { 3293 return fmt.Errorf("proto: CallTx: wiretype end group for non-group") 3294 } 3295 if fieldNum <= 0 { 3296 return fmt.Errorf("proto: CallTx: illegal tag %d (wire type %d)", fieldNum, wire) 3297 } 3298 switch fieldNum { 3299 case 1: 3300 if wireType != 2 { 3301 return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) 3302 } 3303 var msglen int 3304 for shift := uint(0); ; shift += 7 { 3305 if shift >= 64 { 3306 return ErrIntOverflowPayload 3307 } 3308 if iNdEx >= l { 3309 return io.ErrUnexpectedEOF 3310 } 3311 b := dAtA[iNdEx] 3312 iNdEx++ 3313 msglen |= int(b&0x7F) << shift 3314 if b < 0x80 { 3315 break 3316 } 3317 } 3318 if msglen < 0 { 3319 return ErrInvalidLengthPayload 3320 } 3321 postIndex := iNdEx + msglen 3322 if postIndex < 0 { 3323 return ErrInvalidLengthPayload 3324 } 3325 if postIndex > l { 3326 return io.ErrUnexpectedEOF 3327 } 3328 if m.Input == nil { 3329 m.Input = &TxInput{} 3330 } 3331 if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3332 return err 3333 } 3334 iNdEx = postIndex 3335 case 2: 3336 if wireType != 2 { 3337 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 3338 } 3339 var byteLen int 3340 for shift := uint(0); ; shift += 7 { 3341 if shift >= 64 { 3342 return ErrIntOverflowPayload 3343 } 3344 if iNdEx >= l { 3345 return io.ErrUnexpectedEOF 3346 } 3347 b := dAtA[iNdEx] 3348 iNdEx++ 3349 byteLen |= int(b&0x7F) << shift 3350 if b < 0x80 { 3351 break 3352 } 3353 } 3354 if byteLen < 0 { 3355 return ErrInvalidLengthPayload 3356 } 3357 postIndex := iNdEx + byteLen 3358 if postIndex < 0 { 3359 return ErrInvalidLengthPayload 3360 } 3361 if postIndex > l { 3362 return io.ErrUnexpectedEOF 3363 } 3364 var v github_com_hyperledger_burrow_crypto.Address 3365 m.Address = &v 3366 if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3367 return err 3368 } 3369 iNdEx = postIndex 3370 case 3: 3371 if wireType != 0 { 3372 return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType) 3373 } 3374 m.GasLimit = 0 3375 for shift := uint(0); ; shift += 7 { 3376 if shift >= 64 { 3377 return ErrIntOverflowPayload 3378 } 3379 if iNdEx >= l { 3380 return io.ErrUnexpectedEOF 3381 } 3382 b := dAtA[iNdEx] 3383 iNdEx++ 3384 m.GasLimit |= uint64(b&0x7F) << shift 3385 if b < 0x80 { 3386 break 3387 } 3388 } 3389 case 4: 3390 if wireType != 0 { 3391 return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) 3392 } 3393 m.Fee = 0 3394 for shift := uint(0); ; shift += 7 { 3395 if shift >= 64 { 3396 return ErrIntOverflowPayload 3397 } 3398 if iNdEx >= l { 3399 return io.ErrUnexpectedEOF 3400 } 3401 b := dAtA[iNdEx] 3402 iNdEx++ 3403 m.Fee |= uint64(b&0x7F) << shift 3404 if b < 0x80 { 3405 break 3406 } 3407 } 3408 case 5: 3409 if wireType != 2 { 3410 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 3411 } 3412 var byteLen int 3413 for shift := uint(0); ; shift += 7 { 3414 if shift >= 64 { 3415 return ErrIntOverflowPayload 3416 } 3417 if iNdEx >= l { 3418 return io.ErrUnexpectedEOF 3419 } 3420 b := dAtA[iNdEx] 3421 iNdEx++ 3422 byteLen |= int(b&0x7F) << shift 3423 if b < 0x80 { 3424 break 3425 } 3426 } 3427 if byteLen < 0 { 3428 return ErrInvalidLengthPayload 3429 } 3430 postIndex := iNdEx + byteLen 3431 if postIndex < 0 { 3432 return ErrInvalidLengthPayload 3433 } 3434 if postIndex > l { 3435 return io.ErrUnexpectedEOF 3436 } 3437 if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3438 return err 3439 } 3440 iNdEx = postIndex 3441 case 6: 3442 if wireType != 2 { 3443 return fmt.Errorf("proto: wrong wireType = %d for field WASM", wireType) 3444 } 3445 var byteLen int 3446 for shift := uint(0); ; shift += 7 { 3447 if shift >= 64 { 3448 return ErrIntOverflowPayload 3449 } 3450 if iNdEx >= l { 3451 return io.ErrUnexpectedEOF 3452 } 3453 b := dAtA[iNdEx] 3454 iNdEx++ 3455 byteLen |= int(b&0x7F) << shift 3456 if b < 0x80 { 3457 break 3458 } 3459 } 3460 if byteLen < 0 { 3461 return ErrInvalidLengthPayload 3462 } 3463 postIndex := iNdEx + byteLen 3464 if postIndex < 0 { 3465 return ErrInvalidLengthPayload 3466 } 3467 if postIndex > l { 3468 return io.ErrUnexpectedEOF 3469 } 3470 if err := m.WASM.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3471 return err 3472 } 3473 iNdEx = postIndex 3474 case 7: 3475 if wireType != 2 { 3476 return fmt.Errorf("proto: wrong wireType = %d for field ContractMeta", wireType) 3477 } 3478 var msglen int 3479 for shift := uint(0); ; shift += 7 { 3480 if shift >= 64 { 3481 return ErrIntOverflowPayload 3482 } 3483 if iNdEx >= l { 3484 return io.ErrUnexpectedEOF 3485 } 3486 b := dAtA[iNdEx] 3487 iNdEx++ 3488 msglen |= int(b&0x7F) << shift 3489 if b < 0x80 { 3490 break 3491 } 3492 } 3493 if msglen < 0 { 3494 return ErrInvalidLengthPayload 3495 } 3496 postIndex := iNdEx + msglen 3497 if postIndex < 0 { 3498 return ErrInvalidLengthPayload 3499 } 3500 if postIndex > l { 3501 return io.ErrUnexpectedEOF 3502 } 3503 m.ContractMeta = append(m.ContractMeta, &ContractMeta{}) 3504 if err := m.ContractMeta[len(m.ContractMeta)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3505 return err 3506 } 3507 iNdEx = postIndex 3508 case 8: 3509 if wireType != 0 { 3510 return fmt.Errorf("proto: wrong wireType = %d for field GasPrice", wireType) 3511 } 3512 m.GasPrice = 0 3513 for shift := uint(0); ; shift += 7 { 3514 if shift >= 64 { 3515 return ErrIntOverflowPayload 3516 } 3517 if iNdEx >= l { 3518 return io.ErrUnexpectedEOF 3519 } 3520 b := dAtA[iNdEx] 3521 iNdEx++ 3522 m.GasPrice |= uint64(b&0x7F) << shift 3523 if b < 0x80 { 3524 break 3525 } 3526 } 3527 default: 3528 iNdEx = preIndex 3529 skippy, err := skipPayload(dAtA[iNdEx:]) 3530 if err != nil { 3531 return err 3532 } 3533 if (skippy < 0) || (iNdEx+skippy) < 0 { 3534 return ErrInvalidLengthPayload 3535 } 3536 if (iNdEx + skippy) > l { 3537 return io.ErrUnexpectedEOF 3538 } 3539 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3540 iNdEx += skippy 3541 } 3542 } 3543 3544 if iNdEx > l { 3545 return io.ErrUnexpectedEOF 3546 } 3547 return nil 3548 } 3549 func (m *ContractMeta) Unmarshal(dAtA []byte) error { 3550 l := len(dAtA) 3551 iNdEx := 0 3552 for iNdEx < l { 3553 preIndex := iNdEx 3554 var wire uint64 3555 for shift := uint(0); ; shift += 7 { 3556 if shift >= 64 { 3557 return ErrIntOverflowPayload 3558 } 3559 if iNdEx >= l { 3560 return io.ErrUnexpectedEOF 3561 } 3562 b := dAtA[iNdEx] 3563 iNdEx++ 3564 wire |= uint64(b&0x7F) << shift 3565 if b < 0x80 { 3566 break 3567 } 3568 } 3569 fieldNum := int32(wire >> 3) 3570 wireType := int(wire & 0x7) 3571 if wireType == 4 { 3572 return fmt.Errorf("proto: ContractMeta: wiretype end group for non-group") 3573 } 3574 if fieldNum <= 0 { 3575 return fmt.Errorf("proto: ContractMeta: illegal tag %d (wire type %d)", fieldNum, wire) 3576 } 3577 switch fieldNum { 3578 case 1: 3579 if wireType != 2 { 3580 return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) 3581 } 3582 var byteLen int 3583 for shift := uint(0); ; shift += 7 { 3584 if shift >= 64 { 3585 return ErrIntOverflowPayload 3586 } 3587 if iNdEx >= l { 3588 return io.ErrUnexpectedEOF 3589 } 3590 b := dAtA[iNdEx] 3591 iNdEx++ 3592 byteLen |= int(b&0x7F) << shift 3593 if b < 0x80 { 3594 break 3595 } 3596 } 3597 if byteLen < 0 { 3598 return ErrInvalidLengthPayload 3599 } 3600 postIndex := iNdEx + byteLen 3601 if postIndex < 0 { 3602 return ErrInvalidLengthPayload 3603 } 3604 if postIndex > l { 3605 return io.ErrUnexpectedEOF 3606 } 3607 if err := m.CodeHash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3608 return err 3609 } 3610 iNdEx = postIndex 3611 case 2: 3612 if wireType != 2 { 3613 return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) 3614 } 3615 var stringLen uint64 3616 for shift := uint(0); ; shift += 7 { 3617 if shift >= 64 { 3618 return ErrIntOverflowPayload 3619 } 3620 if iNdEx >= l { 3621 return io.ErrUnexpectedEOF 3622 } 3623 b := dAtA[iNdEx] 3624 iNdEx++ 3625 stringLen |= uint64(b&0x7F) << shift 3626 if b < 0x80 { 3627 break 3628 } 3629 } 3630 intStringLen := int(stringLen) 3631 if intStringLen < 0 { 3632 return ErrInvalidLengthPayload 3633 } 3634 postIndex := iNdEx + intStringLen 3635 if postIndex < 0 { 3636 return ErrInvalidLengthPayload 3637 } 3638 if postIndex > l { 3639 return io.ErrUnexpectedEOF 3640 } 3641 m.Meta = string(dAtA[iNdEx:postIndex]) 3642 iNdEx = postIndex 3643 default: 3644 iNdEx = preIndex 3645 skippy, err := skipPayload(dAtA[iNdEx:]) 3646 if err != nil { 3647 return err 3648 } 3649 if (skippy < 0) || (iNdEx+skippy) < 0 { 3650 return ErrInvalidLengthPayload 3651 } 3652 if (iNdEx + skippy) > l { 3653 return io.ErrUnexpectedEOF 3654 } 3655 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3656 iNdEx += skippy 3657 } 3658 } 3659 3660 if iNdEx > l { 3661 return io.ErrUnexpectedEOF 3662 } 3663 return nil 3664 } 3665 func (m *SendTx) Unmarshal(dAtA []byte) error { 3666 l := len(dAtA) 3667 iNdEx := 0 3668 for iNdEx < l { 3669 preIndex := iNdEx 3670 var wire uint64 3671 for shift := uint(0); ; shift += 7 { 3672 if shift >= 64 { 3673 return ErrIntOverflowPayload 3674 } 3675 if iNdEx >= l { 3676 return io.ErrUnexpectedEOF 3677 } 3678 b := dAtA[iNdEx] 3679 iNdEx++ 3680 wire |= uint64(b&0x7F) << shift 3681 if b < 0x80 { 3682 break 3683 } 3684 } 3685 fieldNum := int32(wire >> 3) 3686 wireType := int(wire & 0x7) 3687 if wireType == 4 { 3688 return fmt.Errorf("proto: SendTx: wiretype end group for non-group") 3689 } 3690 if fieldNum <= 0 { 3691 return fmt.Errorf("proto: SendTx: illegal tag %d (wire type %d)", fieldNum, wire) 3692 } 3693 switch fieldNum { 3694 case 1: 3695 if wireType != 2 { 3696 return fmt.Errorf("proto: wrong wireType = %d for field Inputs", wireType) 3697 } 3698 var msglen int 3699 for shift := uint(0); ; shift += 7 { 3700 if shift >= 64 { 3701 return ErrIntOverflowPayload 3702 } 3703 if iNdEx >= l { 3704 return io.ErrUnexpectedEOF 3705 } 3706 b := dAtA[iNdEx] 3707 iNdEx++ 3708 msglen |= int(b&0x7F) << shift 3709 if b < 0x80 { 3710 break 3711 } 3712 } 3713 if msglen < 0 { 3714 return ErrInvalidLengthPayload 3715 } 3716 postIndex := iNdEx + msglen 3717 if postIndex < 0 { 3718 return ErrInvalidLengthPayload 3719 } 3720 if postIndex > l { 3721 return io.ErrUnexpectedEOF 3722 } 3723 m.Inputs = append(m.Inputs, &TxInput{}) 3724 if err := m.Inputs[len(m.Inputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3725 return err 3726 } 3727 iNdEx = postIndex 3728 case 2: 3729 if wireType != 2 { 3730 return fmt.Errorf("proto: wrong wireType = %d for field Outputs", wireType) 3731 } 3732 var msglen int 3733 for shift := uint(0); ; shift += 7 { 3734 if shift >= 64 { 3735 return ErrIntOverflowPayload 3736 } 3737 if iNdEx >= l { 3738 return io.ErrUnexpectedEOF 3739 } 3740 b := dAtA[iNdEx] 3741 iNdEx++ 3742 msglen |= int(b&0x7F) << shift 3743 if b < 0x80 { 3744 break 3745 } 3746 } 3747 if msglen < 0 { 3748 return ErrInvalidLengthPayload 3749 } 3750 postIndex := iNdEx + msglen 3751 if postIndex < 0 { 3752 return ErrInvalidLengthPayload 3753 } 3754 if postIndex > l { 3755 return io.ErrUnexpectedEOF 3756 } 3757 m.Outputs = append(m.Outputs, &TxOutput{}) 3758 if err := m.Outputs[len(m.Outputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3759 return err 3760 } 3761 iNdEx = postIndex 3762 default: 3763 iNdEx = preIndex 3764 skippy, err := skipPayload(dAtA[iNdEx:]) 3765 if err != nil { 3766 return err 3767 } 3768 if (skippy < 0) || (iNdEx+skippy) < 0 { 3769 return ErrInvalidLengthPayload 3770 } 3771 if (iNdEx + skippy) > l { 3772 return io.ErrUnexpectedEOF 3773 } 3774 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3775 iNdEx += skippy 3776 } 3777 } 3778 3779 if iNdEx > l { 3780 return io.ErrUnexpectedEOF 3781 } 3782 return nil 3783 } 3784 func (m *PermsTx) Unmarshal(dAtA []byte) error { 3785 l := len(dAtA) 3786 iNdEx := 0 3787 for iNdEx < l { 3788 preIndex := iNdEx 3789 var wire uint64 3790 for shift := uint(0); ; shift += 7 { 3791 if shift >= 64 { 3792 return ErrIntOverflowPayload 3793 } 3794 if iNdEx >= l { 3795 return io.ErrUnexpectedEOF 3796 } 3797 b := dAtA[iNdEx] 3798 iNdEx++ 3799 wire |= uint64(b&0x7F) << shift 3800 if b < 0x80 { 3801 break 3802 } 3803 } 3804 fieldNum := int32(wire >> 3) 3805 wireType := int(wire & 0x7) 3806 if wireType == 4 { 3807 return fmt.Errorf("proto: PermsTx: wiretype end group for non-group") 3808 } 3809 if fieldNum <= 0 { 3810 return fmt.Errorf("proto: PermsTx: illegal tag %d (wire type %d)", fieldNum, wire) 3811 } 3812 switch fieldNum { 3813 case 1: 3814 if wireType != 2 { 3815 return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) 3816 } 3817 var msglen int 3818 for shift := uint(0); ; shift += 7 { 3819 if shift >= 64 { 3820 return ErrIntOverflowPayload 3821 } 3822 if iNdEx >= l { 3823 return io.ErrUnexpectedEOF 3824 } 3825 b := dAtA[iNdEx] 3826 iNdEx++ 3827 msglen |= int(b&0x7F) << shift 3828 if b < 0x80 { 3829 break 3830 } 3831 } 3832 if msglen < 0 { 3833 return ErrInvalidLengthPayload 3834 } 3835 postIndex := iNdEx + msglen 3836 if postIndex < 0 { 3837 return ErrInvalidLengthPayload 3838 } 3839 if postIndex > l { 3840 return io.ErrUnexpectedEOF 3841 } 3842 if m.Input == nil { 3843 m.Input = &TxInput{} 3844 } 3845 if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3846 return err 3847 } 3848 iNdEx = postIndex 3849 case 2: 3850 if wireType != 2 { 3851 return fmt.Errorf("proto: wrong wireType = %d for field PermArgs", wireType) 3852 } 3853 var msglen int 3854 for shift := uint(0); ; shift += 7 { 3855 if shift >= 64 { 3856 return ErrIntOverflowPayload 3857 } 3858 if iNdEx >= l { 3859 return io.ErrUnexpectedEOF 3860 } 3861 b := dAtA[iNdEx] 3862 iNdEx++ 3863 msglen |= int(b&0x7F) << shift 3864 if b < 0x80 { 3865 break 3866 } 3867 } 3868 if msglen < 0 { 3869 return ErrInvalidLengthPayload 3870 } 3871 postIndex := iNdEx + msglen 3872 if postIndex < 0 { 3873 return ErrInvalidLengthPayload 3874 } 3875 if postIndex > l { 3876 return io.ErrUnexpectedEOF 3877 } 3878 if err := m.PermArgs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3879 return err 3880 } 3881 iNdEx = postIndex 3882 default: 3883 iNdEx = preIndex 3884 skippy, err := skipPayload(dAtA[iNdEx:]) 3885 if err != nil { 3886 return err 3887 } 3888 if (skippy < 0) || (iNdEx+skippy) < 0 { 3889 return ErrInvalidLengthPayload 3890 } 3891 if (iNdEx + skippy) > l { 3892 return io.ErrUnexpectedEOF 3893 } 3894 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3895 iNdEx += skippy 3896 } 3897 } 3898 3899 if iNdEx > l { 3900 return io.ErrUnexpectedEOF 3901 } 3902 return nil 3903 } 3904 func (m *NameTx) Unmarshal(dAtA []byte) error { 3905 l := len(dAtA) 3906 iNdEx := 0 3907 for iNdEx < l { 3908 preIndex := iNdEx 3909 var wire uint64 3910 for shift := uint(0); ; shift += 7 { 3911 if shift >= 64 { 3912 return ErrIntOverflowPayload 3913 } 3914 if iNdEx >= l { 3915 return io.ErrUnexpectedEOF 3916 } 3917 b := dAtA[iNdEx] 3918 iNdEx++ 3919 wire |= uint64(b&0x7F) << shift 3920 if b < 0x80 { 3921 break 3922 } 3923 } 3924 fieldNum := int32(wire >> 3) 3925 wireType := int(wire & 0x7) 3926 if wireType == 4 { 3927 return fmt.Errorf("proto: NameTx: wiretype end group for non-group") 3928 } 3929 if fieldNum <= 0 { 3930 return fmt.Errorf("proto: NameTx: illegal tag %d (wire type %d)", fieldNum, wire) 3931 } 3932 switch fieldNum { 3933 case 1: 3934 if wireType != 2 { 3935 return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) 3936 } 3937 var msglen int 3938 for shift := uint(0); ; shift += 7 { 3939 if shift >= 64 { 3940 return ErrIntOverflowPayload 3941 } 3942 if iNdEx >= l { 3943 return io.ErrUnexpectedEOF 3944 } 3945 b := dAtA[iNdEx] 3946 iNdEx++ 3947 msglen |= int(b&0x7F) << shift 3948 if b < 0x80 { 3949 break 3950 } 3951 } 3952 if msglen < 0 { 3953 return ErrInvalidLengthPayload 3954 } 3955 postIndex := iNdEx + msglen 3956 if postIndex < 0 { 3957 return ErrInvalidLengthPayload 3958 } 3959 if postIndex > l { 3960 return io.ErrUnexpectedEOF 3961 } 3962 if m.Input == nil { 3963 m.Input = &TxInput{} 3964 } 3965 if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3966 return err 3967 } 3968 iNdEx = postIndex 3969 case 2: 3970 if wireType != 2 { 3971 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 3972 } 3973 var stringLen uint64 3974 for shift := uint(0); ; shift += 7 { 3975 if shift >= 64 { 3976 return ErrIntOverflowPayload 3977 } 3978 if iNdEx >= l { 3979 return io.ErrUnexpectedEOF 3980 } 3981 b := dAtA[iNdEx] 3982 iNdEx++ 3983 stringLen |= uint64(b&0x7F) << shift 3984 if b < 0x80 { 3985 break 3986 } 3987 } 3988 intStringLen := int(stringLen) 3989 if intStringLen < 0 { 3990 return ErrInvalidLengthPayload 3991 } 3992 postIndex := iNdEx + intStringLen 3993 if postIndex < 0 { 3994 return ErrInvalidLengthPayload 3995 } 3996 if postIndex > l { 3997 return io.ErrUnexpectedEOF 3998 } 3999 m.Name = string(dAtA[iNdEx:postIndex]) 4000 iNdEx = postIndex 4001 case 3: 4002 if wireType != 2 { 4003 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 4004 } 4005 var stringLen uint64 4006 for shift := uint(0); ; shift += 7 { 4007 if shift >= 64 { 4008 return ErrIntOverflowPayload 4009 } 4010 if iNdEx >= l { 4011 return io.ErrUnexpectedEOF 4012 } 4013 b := dAtA[iNdEx] 4014 iNdEx++ 4015 stringLen |= uint64(b&0x7F) << shift 4016 if b < 0x80 { 4017 break 4018 } 4019 } 4020 intStringLen := int(stringLen) 4021 if intStringLen < 0 { 4022 return ErrInvalidLengthPayload 4023 } 4024 postIndex := iNdEx + intStringLen 4025 if postIndex < 0 { 4026 return ErrInvalidLengthPayload 4027 } 4028 if postIndex > l { 4029 return io.ErrUnexpectedEOF 4030 } 4031 m.Data = string(dAtA[iNdEx:postIndex]) 4032 iNdEx = postIndex 4033 case 4: 4034 if wireType != 0 { 4035 return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) 4036 } 4037 m.Fee = 0 4038 for shift := uint(0); ; shift += 7 { 4039 if shift >= 64 { 4040 return ErrIntOverflowPayload 4041 } 4042 if iNdEx >= l { 4043 return io.ErrUnexpectedEOF 4044 } 4045 b := dAtA[iNdEx] 4046 iNdEx++ 4047 m.Fee |= uint64(b&0x7F) << shift 4048 if b < 0x80 { 4049 break 4050 } 4051 } 4052 default: 4053 iNdEx = preIndex 4054 skippy, err := skipPayload(dAtA[iNdEx:]) 4055 if err != nil { 4056 return err 4057 } 4058 if (skippy < 0) || (iNdEx+skippy) < 0 { 4059 return ErrInvalidLengthPayload 4060 } 4061 if (iNdEx + skippy) > l { 4062 return io.ErrUnexpectedEOF 4063 } 4064 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4065 iNdEx += skippy 4066 } 4067 } 4068 4069 if iNdEx > l { 4070 return io.ErrUnexpectedEOF 4071 } 4072 return nil 4073 } 4074 func (m *BondTx) Unmarshal(dAtA []byte) error { 4075 l := len(dAtA) 4076 iNdEx := 0 4077 for iNdEx < l { 4078 preIndex := iNdEx 4079 var wire uint64 4080 for shift := uint(0); ; shift += 7 { 4081 if shift >= 64 { 4082 return ErrIntOverflowPayload 4083 } 4084 if iNdEx >= l { 4085 return io.ErrUnexpectedEOF 4086 } 4087 b := dAtA[iNdEx] 4088 iNdEx++ 4089 wire |= uint64(b&0x7F) << shift 4090 if b < 0x80 { 4091 break 4092 } 4093 } 4094 fieldNum := int32(wire >> 3) 4095 wireType := int(wire & 0x7) 4096 if wireType == 4 { 4097 return fmt.Errorf("proto: BondTx: wiretype end group for non-group") 4098 } 4099 if fieldNum <= 0 { 4100 return fmt.Errorf("proto: BondTx: illegal tag %d (wire type %d)", fieldNum, wire) 4101 } 4102 switch fieldNum { 4103 case 1: 4104 if wireType != 2 { 4105 return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) 4106 } 4107 var msglen int 4108 for shift := uint(0); ; shift += 7 { 4109 if shift >= 64 { 4110 return ErrIntOverflowPayload 4111 } 4112 if iNdEx >= l { 4113 return io.ErrUnexpectedEOF 4114 } 4115 b := dAtA[iNdEx] 4116 iNdEx++ 4117 msglen |= int(b&0x7F) << shift 4118 if b < 0x80 { 4119 break 4120 } 4121 } 4122 if msglen < 0 { 4123 return ErrInvalidLengthPayload 4124 } 4125 postIndex := iNdEx + msglen 4126 if postIndex < 0 { 4127 return ErrInvalidLengthPayload 4128 } 4129 if postIndex > l { 4130 return io.ErrUnexpectedEOF 4131 } 4132 if m.Input == nil { 4133 m.Input = &TxInput{} 4134 } 4135 if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4136 return err 4137 } 4138 iNdEx = postIndex 4139 default: 4140 iNdEx = preIndex 4141 skippy, err := skipPayload(dAtA[iNdEx:]) 4142 if err != nil { 4143 return err 4144 } 4145 if (skippy < 0) || (iNdEx+skippy) < 0 { 4146 return ErrInvalidLengthPayload 4147 } 4148 if (iNdEx + skippy) > l { 4149 return io.ErrUnexpectedEOF 4150 } 4151 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4152 iNdEx += skippy 4153 } 4154 } 4155 4156 if iNdEx > l { 4157 return io.ErrUnexpectedEOF 4158 } 4159 return nil 4160 } 4161 func (m *UnbondTx) Unmarshal(dAtA []byte) error { 4162 l := len(dAtA) 4163 iNdEx := 0 4164 for iNdEx < l { 4165 preIndex := iNdEx 4166 var wire uint64 4167 for shift := uint(0); ; shift += 7 { 4168 if shift >= 64 { 4169 return ErrIntOverflowPayload 4170 } 4171 if iNdEx >= l { 4172 return io.ErrUnexpectedEOF 4173 } 4174 b := dAtA[iNdEx] 4175 iNdEx++ 4176 wire |= uint64(b&0x7F) << shift 4177 if b < 0x80 { 4178 break 4179 } 4180 } 4181 fieldNum := int32(wire >> 3) 4182 wireType := int(wire & 0x7) 4183 if wireType == 4 { 4184 return fmt.Errorf("proto: UnbondTx: wiretype end group for non-group") 4185 } 4186 if fieldNum <= 0 { 4187 return fmt.Errorf("proto: UnbondTx: illegal tag %d (wire type %d)", fieldNum, wire) 4188 } 4189 switch fieldNum { 4190 case 1: 4191 if wireType != 2 { 4192 return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) 4193 } 4194 var msglen int 4195 for shift := uint(0); ; shift += 7 { 4196 if shift >= 64 { 4197 return ErrIntOverflowPayload 4198 } 4199 if iNdEx >= l { 4200 return io.ErrUnexpectedEOF 4201 } 4202 b := dAtA[iNdEx] 4203 iNdEx++ 4204 msglen |= int(b&0x7F) << shift 4205 if b < 0x80 { 4206 break 4207 } 4208 } 4209 if msglen < 0 { 4210 return ErrInvalidLengthPayload 4211 } 4212 postIndex := iNdEx + msglen 4213 if postIndex < 0 { 4214 return ErrInvalidLengthPayload 4215 } 4216 if postIndex > l { 4217 return io.ErrUnexpectedEOF 4218 } 4219 if m.Input == nil { 4220 m.Input = &TxInput{} 4221 } 4222 if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4223 return err 4224 } 4225 iNdEx = postIndex 4226 case 2: 4227 if wireType != 2 { 4228 return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) 4229 } 4230 var msglen int 4231 for shift := uint(0); ; shift += 7 { 4232 if shift >= 64 { 4233 return ErrIntOverflowPayload 4234 } 4235 if iNdEx >= l { 4236 return io.ErrUnexpectedEOF 4237 } 4238 b := dAtA[iNdEx] 4239 iNdEx++ 4240 msglen |= int(b&0x7F) << shift 4241 if b < 0x80 { 4242 break 4243 } 4244 } 4245 if msglen < 0 { 4246 return ErrInvalidLengthPayload 4247 } 4248 postIndex := iNdEx + msglen 4249 if postIndex < 0 { 4250 return ErrInvalidLengthPayload 4251 } 4252 if postIndex > l { 4253 return io.ErrUnexpectedEOF 4254 } 4255 if m.Output == nil { 4256 m.Output = &TxOutput{} 4257 } 4258 if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4259 return err 4260 } 4261 iNdEx = postIndex 4262 default: 4263 iNdEx = preIndex 4264 skippy, err := skipPayload(dAtA[iNdEx:]) 4265 if err != nil { 4266 return err 4267 } 4268 if (skippy < 0) || (iNdEx+skippy) < 0 { 4269 return ErrInvalidLengthPayload 4270 } 4271 if (iNdEx + skippy) > l { 4272 return io.ErrUnexpectedEOF 4273 } 4274 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4275 iNdEx += skippy 4276 } 4277 } 4278 4279 if iNdEx > l { 4280 return io.ErrUnexpectedEOF 4281 } 4282 return nil 4283 } 4284 func (m *GovTx) Unmarshal(dAtA []byte) error { 4285 l := len(dAtA) 4286 iNdEx := 0 4287 for iNdEx < l { 4288 preIndex := iNdEx 4289 var wire uint64 4290 for shift := uint(0); ; shift += 7 { 4291 if shift >= 64 { 4292 return ErrIntOverflowPayload 4293 } 4294 if iNdEx >= l { 4295 return io.ErrUnexpectedEOF 4296 } 4297 b := dAtA[iNdEx] 4298 iNdEx++ 4299 wire |= uint64(b&0x7F) << shift 4300 if b < 0x80 { 4301 break 4302 } 4303 } 4304 fieldNum := int32(wire >> 3) 4305 wireType := int(wire & 0x7) 4306 if wireType == 4 { 4307 return fmt.Errorf("proto: GovTx: wiretype end group for non-group") 4308 } 4309 if fieldNum <= 0 { 4310 return fmt.Errorf("proto: GovTx: illegal tag %d (wire type %d)", fieldNum, wire) 4311 } 4312 switch fieldNum { 4313 case 1: 4314 if wireType != 2 { 4315 return fmt.Errorf("proto: wrong wireType = %d for field Inputs", wireType) 4316 } 4317 var msglen int 4318 for shift := uint(0); ; shift += 7 { 4319 if shift >= 64 { 4320 return ErrIntOverflowPayload 4321 } 4322 if iNdEx >= l { 4323 return io.ErrUnexpectedEOF 4324 } 4325 b := dAtA[iNdEx] 4326 iNdEx++ 4327 msglen |= int(b&0x7F) << shift 4328 if b < 0x80 { 4329 break 4330 } 4331 } 4332 if msglen < 0 { 4333 return ErrInvalidLengthPayload 4334 } 4335 postIndex := iNdEx + msglen 4336 if postIndex < 0 { 4337 return ErrInvalidLengthPayload 4338 } 4339 if postIndex > l { 4340 return io.ErrUnexpectedEOF 4341 } 4342 m.Inputs = append(m.Inputs, &TxInput{}) 4343 if err := m.Inputs[len(m.Inputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4344 return err 4345 } 4346 iNdEx = postIndex 4347 case 2: 4348 if wireType != 2 { 4349 return fmt.Errorf("proto: wrong wireType = %d for field AccountUpdates", wireType) 4350 } 4351 var msglen int 4352 for shift := uint(0); ; shift += 7 { 4353 if shift >= 64 { 4354 return ErrIntOverflowPayload 4355 } 4356 if iNdEx >= l { 4357 return io.ErrUnexpectedEOF 4358 } 4359 b := dAtA[iNdEx] 4360 iNdEx++ 4361 msglen |= int(b&0x7F) << shift 4362 if b < 0x80 { 4363 break 4364 } 4365 } 4366 if msglen < 0 { 4367 return ErrInvalidLengthPayload 4368 } 4369 postIndex := iNdEx + msglen 4370 if postIndex < 0 { 4371 return ErrInvalidLengthPayload 4372 } 4373 if postIndex > l { 4374 return io.ErrUnexpectedEOF 4375 } 4376 m.AccountUpdates = append(m.AccountUpdates, &spec.TemplateAccount{}) 4377 if err := m.AccountUpdates[len(m.AccountUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4378 return err 4379 } 4380 iNdEx = postIndex 4381 default: 4382 iNdEx = preIndex 4383 skippy, err := skipPayload(dAtA[iNdEx:]) 4384 if err != nil { 4385 return err 4386 } 4387 if (skippy < 0) || (iNdEx+skippy) < 0 { 4388 return ErrInvalidLengthPayload 4389 } 4390 if (iNdEx + skippy) > l { 4391 return io.ErrUnexpectedEOF 4392 } 4393 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4394 iNdEx += skippy 4395 } 4396 } 4397 4398 if iNdEx > l { 4399 return io.ErrUnexpectedEOF 4400 } 4401 return nil 4402 } 4403 func (m *ProposalTx) Unmarshal(dAtA []byte) error { 4404 l := len(dAtA) 4405 iNdEx := 0 4406 for iNdEx < l { 4407 preIndex := iNdEx 4408 var wire uint64 4409 for shift := uint(0); ; shift += 7 { 4410 if shift >= 64 { 4411 return ErrIntOverflowPayload 4412 } 4413 if iNdEx >= l { 4414 return io.ErrUnexpectedEOF 4415 } 4416 b := dAtA[iNdEx] 4417 iNdEx++ 4418 wire |= uint64(b&0x7F) << shift 4419 if b < 0x80 { 4420 break 4421 } 4422 } 4423 fieldNum := int32(wire >> 3) 4424 wireType := int(wire & 0x7) 4425 if wireType == 4 { 4426 return fmt.Errorf("proto: ProposalTx: wiretype end group for non-group") 4427 } 4428 if fieldNum <= 0 { 4429 return fmt.Errorf("proto: ProposalTx: illegal tag %d (wire type %d)", fieldNum, wire) 4430 } 4431 switch fieldNum { 4432 case 1: 4433 if wireType != 2 { 4434 return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) 4435 } 4436 var msglen int 4437 for shift := uint(0); ; shift += 7 { 4438 if shift >= 64 { 4439 return ErrIntOverflowPayload 4440 } 4441 if iNdEx >= l { 4442 return io.ErrUnexpectedEOF 4443 } 4444 b := dAtA[iNdEx] 4445 iNdEx++ 4446 msglen |= int(b&0x7F) << shift 4447 if b < 0x80 { 4448 break 4449 } 4450 } 4451 if msglen < 0 { 4452 return ErrInvalidLengthPayload 4453 } 4454 postIndex := iNdEx + msglen 4455 if postIndex < 0 { 4456 return ErrInvalidLengthPayload 4457 } 4458 if postIndex > l { 4459 return io.ErrUnexpectedEOF 4460 } 4461 if m.Input == nil { 4462 m.Input = &TxInput{} 4463 } 4464 if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4465 return err 4466 } 4467 iNdEx = postIndex 4468 case 2: 4469 if wireType != 0 { 4470 return fmt.Errorf("proto: wrong wireType = %d for field VotingWeight", wireType) 4471 } 4472 m.VotingWeight = 0 4473 for shift := uint(0); ; shift += 7 { 4474 if shift >= 64 { 4475 return ErrIntOverflowPayload 4476 } 4477 if iNdEx >= l { 4478 return io.ErrUnexpectedEOF 4479 } 4480 b := dAtA[iNdEx] 4481 iNdEx++ 4482 m.VotingWeight |= int64(b&0x7F) << shift 4483 if b < 0x80 { 4484 break 4485 } 4486 } 4487 case 3: 4488 if wireType != 2 { 4489 return fmt.Errorf("proto: wrong wireType = %d for field ProposalHash", wireType) 4490 } 4491 var byteLen int 4492 for shift := uint(0); ; shift += 7 { 4493 if shift >= 64 { 4494 return ErrIntOverflowPayload 4495 } 4496 if iNdEx >= l { 4497 return io.ErrUnexpectedEOF 4498 } 4499 b := dAtA[iNdEx] 4500 iNdEx++ 4501 byteLen |= int(b&0x7F) << shift 4502 if b < 0x80 { 4503 break 4504 } 4505 } 4506 if byteLen < 0 { 4507 return ErrInvalidLengthPayload 4508 } 4509 postIndex := iNdEx + byteLen 4510 if postIndex < 0 { 4511 return ErrInvalidLengthPayload 4512 } 4513 if postIndex > l { 4514 return io.ErrUnexpectedEOF 4515 } 4516 var v github_com_hyperledger_burrow_binary.HexBytes 4517 m.ProposalHash = &v 4518 if err := m.ProposalHash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4519 return err 4520 } 4521 iNdEx = postIndex 4522 case 4: 4523 if wireType != 2 { 4524 return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) 4525 } 4526 var msglen int 4527 for shift := uint(0); ; shift += 7 { 4528 if shift >= 64 { 4529 return ErrIntOverflowPayload 4530 } 4531 if iNdEx >= l { 4532 return io.ErrUnexpectedEOF 4533 } 4534 b := dAtA[iNdEx] 4535 iNdEx++ 4536 msglen |= int(b&0x7F) << shift 4537 if b < 0x80 { 4538 break 4539 } 4540 } 4541 if msglen < 0 { 4542 return ErrInvalidLengthPayload 4543 } 4544 postIndex := iNdEx + msglen 4545 if postIndex < 0 { 4546 return ErrInvalidLengthPayload 4547 } 4548 if postIndex > l { 4549 return io.ErrUnexpectedEOF 4550 } 4551 if m.Proposal == nil { 4552 m.Proposal = &Proposal{} 4553 } 4554 if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4555 return err 4556 } 4557 iNdEx = postIndex 4558 default: 4559 iNdEx = preIndex 4560 skippy, err := skipPayload(dAtA[iNdEx:]) 4561 if err != nil { 4562 return err 4563 } 4564 if (skippy < 0) || (iNdEx+skippy) < 0 { 4565 return ErrInvalidLengthPayload 4566 } 4567 if (iNdEx + skippy) > l { 4568 return io.ErrUnexpectedEOF 4569 } 4570 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4571 iNdEx += skippy 4572 } 4573 } 4574 4575 if iNdEx > l { 4576 return io.ErrUnexpectedEOF 4577 } 4578 return nil 4579 } 4580 func (m *IdentifyTx) Unmarshal(dAtA []byte) error { 4581 l := len(dAtA) 4582 iNdEx := 0 4583 for iNdEx < l { 4584 preIndex := iNdEx 4585 var wire uint64 4586 for shift := uint(0); ; shift += 7 { 4587 if shift >= 64 { 4588 return ErrIntOverflowPayload 4589 } 4590 if iNdEx >= l { 4591 return io.ErrUnexpectedEOF 4592 } 4593 b := dAtA[iNdEx] 4594 iNdEx++ 4595 wire |= uint64(b&0x7F) << shift 4596 if b < 0x80 { 4597 break 4598 } 4599 } 4600 fieldNum := int32(wire >> 3) 4601 wireType := int(wire & 0x7) 4602 if wireType == 4 { 4603 return fmt.Errorf("proto: IdentifyTx: wiretype end group for non-group") 4604 } 4605 if fieldNum <= 0 { 4606 return fmt.Errorf("proto: IdentifyTx: illegal tag %d (wire type %d)", fieldNum, wire) 4607 } 4608 switch fieldNum { 4609 case 1: 4610 if wireType != 2 { 4611 return fmt.Errorf("proto: wrong wireType = %d for field Inputs", wireType) 4612 } 4613 var msglen int 4614 for shift := uint(0); ; shift += 7 { 4615 if shift >= 64 { 4616 return ErrIntOverflowPayload 4617 } 4618 if iNdEx >= l { 4619 return io.ErrUnexpectedEOF 4620 } 4621 b := dAtA[iNdEx] 4622 iNdEx++ 4623 msglen |= int(b&0x7F) << shift 4624 if b < 0x80 { 4625 break 4626 } 4627 } 4628 if msglen < 0 { 4629 return ErrInvalidLengthPayload 4630 } 4631 postIndex := iNdEx + msglen 4632 if postIndex < 0 { 4633 return ErrInvalidLengthPayload 4634 } 4635 if postIndex > l { 4636 return io.ErrUnexpectedEOF 4637 } 4638 m.Inputs = append(m.Inputs, &TxInput{}) 4639 if err := m.Inputs[len(m.Inputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4640 return err 4641 } 4642 iNdEx = postIndex 4643 case 2: 4644 if wireType != 2 { 4645 return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) 4646 } 4647 var msglen int 4648 for shift := uint(0); ; shift += 7 { 4649 if shift >= 64 { 4650 return ErrIntOverflowPayload 4651 } 4652 if iNdEx >= l { 4653 return io.ErrUnexpectedEOF 4654 } 4655 b := dAtA[iNdEx] 4656 iNdEx++ 4657 msglen |= int(b&0x7F) << shift 4658 if b < 0x80 { 4659 break 4660 } 4661 } 4662 if msglen < 0 { 4663 return ErrInvalidLengthPayload 4664 } 4665 postIndex := iNdEx + msglen 4666 if postIndex < 0 { 4667 return ErrInvalidLengthPayload 4668 } 4669 if postIndex > l { 4670 return io.ErrUnexpectedEOF 4671 } 4672 if m.Node == nil { 4673 m.Node = ®istry.NodeIdentity{} 4674 } 4675 if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4676 return err 4677 } 4678 iNdEx = postIndex 4679 default: 4680 iNdEx = preIndex 4681 skippy, err := skipPayload(dAtA[iNdEx:]) 4682 if err != nil { 4683 return err 4684 } 4685 if (skippy < 0) || (iNdEx+skippy) < 0 { 4686 return ErrInvalidLengthPayload 4687 } 4688 if (iNdEx + skippy) > l { 4689 return io.ErrUnexpectedEOF 4690 } 4691 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4692 iNdEx += skippy 4693 } 4694 } 4695 4696 if iNdEx > l { 4697 return io.ErrUnexpectedEOF 4698 } 4699 return nil 4700 } 4701 func (m *BatchTx) Unmarshal(dAtA []byte) error { 4702 l := len(dAtA) 4703 iNdEx := 0 4704 for iNdEx < l { 4705 preIndex := iNdEx 4706 var wire uint64 4707 for shift := uint(0); ; shift += 7 { 4708 if shift >= 64 { 4709 return ErrIntOverflowPayload 4710 } 4711 if iNdEx >= l { 4712 return io.ErrUnexpectedEOF 4713 } 4714 b := dAtA[iNdEx] 4715 iNdEx++ 4716 wire |= uint64(b&0x7F) << shift 4717 if b < 0x80 { 4718 break 4719 } 4720 } 4721 fieldNum := int32(wire >> 3) 4722 wireType := int(wire & 0x7) 4723 if wireType == 4 { 4724 return fmt.Errorf("proto: BatchTx: wiretype end group for non-group") 4725 } 4726 if fieldNum <= 0 { 4727 return fmt.Errorf("proto: BatchTx: illegal tag %d (wire type %d)", fieldNum, wire) 4728 } 4729 switch fieldNum { 4730 case 1: 4731 if wireType != 2 { 4732 return fmt.Errorf("proto: wrong wireType = %d for field Inputs", wireType) 4733 } 4734 var msglen int 4735 for shift := uint(0); ; shift += 7 { 4736 if shift >= 64 { 4737 return ErrIntOverflowPayload 4738 } 4739 if iNdEx >= l { 4740 return io.ErrUnexpectedEOF 4741 } 4742 b := dAtA[iNdEx] 4743 iNdEx++ 4744 msglen |= int(b&0x7F) << shift 4745 if b < 0x80 { 4746 break 4747 } 4748 } 4749 if msglen < 0 { 4750 return ErrInvalidLengthPayload 4751 } 4752 postIndex := iNdEx + msglen 4753 if postIndex < 0 { 4754 return ErrInvalidLengthPayload 4755 } 4756 if postIndex > l { 4757 return io.ErrUnexpectedEOF 4758 } 4759 m.Inputs = append(m.Inputs, &TxInput{}) 4760 if err := m.Inputs[len(m.Inputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4761 return err 4762 } 4763 iNdEx = postIndex 4764 case 2: 4765 if wireType != 2 { 4766 return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType) 4767 } 4768 var msglen int 4769 for shift := uint(0); ; shift += 7 { 4770 if shift >= 64 { 4771 return ErrIntOverflowPayload 4772 } 4773 if iNdEx >= l { 4774 return io.ErrUnexpectedEOF 4775 } 4776 b := dAtA[iNdEx] 4777 iNdEx++ 4778 msglen |= int(b&0x7F) << shift 4779 if b < 0x80 { 4780 break 4781 } 4782 } 4783 if msglen < 0 { 4784 return ErrInvalidLengthPayload 4785 } 4786 postIndex := iNdEx + msglen 4787 if postIndex < 0 { 4788 return ErrInvalidLengthPayload 4789 } 4790 if postIndex > l { 4791 return io.ErrUnexpectedEOF 4792 } 4793 m.Txs = append(m.Txs, &Any{}) 4794 if err := m.Txs[len(m.Txs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4795 return err 4796 } 4797 iNdEx = postIndex 4798 default: 4799 iNdEx = preIndex 4800 skippy, err := skipPayload(dAtA[iNdEx:]) 4801 if err != nil { 4802 return err 4803 } 4804 if (skippy < 0) || (iNdEx+skippy) < 0 { 4805 return ErrInvalidLengthPayload 4806 } 4807 if (iNdEx + skippy) > l { 4808 return io.ErrUnexpectedEOF 4809 } 4810 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4811 iNdEx += skippy 4812 } 4813 } 4814 4815 if iNdEx > l { 4816 return io.ErrUnexpectedEOF 4817 } 4818 return nil 4819 } 4820 func (m *Vote) Unmarshal(dAtA []byte) error { 4821 l := len(dAtA) 4822 iNdEx := 0 4823 for iNdEx < l { 4824 preIndex := iNdEx 4825 var wire uint64 4826 for shift := uint(0); ; shift += 7 { 4827 if shift >= 64 { 4828 return ErrIntOverflowPayload 4829 } 4830 if iNdEx >= l { 4831 return io.ErrUnexpectedEOF 4832 } 4833 b := dAtA[iNdEx] 4834 iNdEx++ 4835 wire |= uint64(b&0x7F) << shift 4836 if b < 0x80 { 4837 break 4838 } 4839 } 4840 fieldNum := int32(wire >> 3) 4841 wireType := int(wire & 0x7) 4842 if wireType == 4 { 4843 return fmt.Errorf("proto: Vote: wiretype end group for non-group") 4844 } 4845 if fieldNum <= 0 { 4846 return fmt.Errorf("proto: Vote: illegal tag %d (wire type %d)", fieldNum, wire) 4847 } 4848 switch fieldNum { 4849 case 1: 4850 if wireType != 2 { 4851 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 4852 } 4853 var byteLen int 4854 for shift := uint(0); ; shift += 7 { 4855 if shift >= 64 { 4856 return ErrIntOverflowPayload 4857 } 4858 if iNdEx >= l { 4859 return io.ErrUnexpectedEOF 4860 } 4861 b := dAtA[iNdEx] 4862 iNdEx++ 4863 byteLen |= int(b&0x7F) << shift 4864 if b < 0x80 { 4865 break 4866 } 4867 } 4868 if byteLen < 0 { 4869 return ErrInvalidLengthPayload 4870 } 4871 postIndex := iNdEx + byteLen 4872 if postIndex < 0 { 4873 return ErrInvalidLengthPayload 4874 } 4875 if postIndex > l { 4876 return io.ErrUnexpectedEOF 4877 } 4878 if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4879 return err 4880 } 4881 iNdEx = postIndex 4882 case 2: 4883 if wireType != 0 { 4884 return fmt.Errorf("proto: wrong wireType = %d for field VotingWeight", wireType) 4885 } 4886 m.VotingWeight = 0 4887 for shift := uint(0); ; shift += 7 { 4888 if shift >= 64 { 4889 return ErrIntOverflowPayload 4890 } 4891 if iNdEx >= l { 4892 return io.ErrUnexpectedEOF 4893 } 4894 b := dAtA[iNdEx] 4895 iNdEx++ 4896 m.VotingWeight |= int64(b&0x7F) << shift 4897 if b < 0x80 { 4898 break 4899 } 4900 } 4901 default: 4902 iNdEx = preIndex 4903 skippy, err := skipPayload(dAtA[iNdEx:]) 4904 if err != nil { 4905 return err 4906 } 4907 if (skippy < 0) || (iNdEx+skippy) < 0 { 4908 return ErrInvalidLengthPayload 4909 } 4910 if (iNdEx + skippy) > l { 4911 return io.ErrUnexpectedEOF 4912 } 4913 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4914 iNdEx += skippy 4915 } 4916 } 4917 4918 if iNdEx > l { 4919 return io.ErrUnexpectedEOF 4920 } 4921 return nil 4922 } 4923 func (m *Proposal) Unmarshal(dAtA []byte) error { 4924 l := len(dAtA) 4925 iNdEx := 0 4926 for iNdEx < l { 4927 preIndex := iNdEx 4928 var wire uint64 4929 for shift := uint(0); ; shift += 7 { 4930 if shift >= 64 { 4931 return ErrIntOverflowPayload 4932 } 4933 if iNdEx >= l { 4934 return io.ErrUnexpectedEOF 4935 } 4936 b := dAtA[iNdEx] 4937 iNdEx++ 4938 wire |= uint64(b&0x7F) << shift 4939 if b < 0x80 { 4940 break 4941 } 4942 } 4943 fieldNum := int32(wire >> 3) 4944 wireType := int(wire & 0x7) 4945 if wireType == 4 { 4946 return fmt.Errorf("proto: Proposal: wiretype end group for non-group") 4947 } 4948 if fieldNum <= 0 { 4949 return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire) 4950 } 4951 switch fieldNum { 4952 case 1: 4953 if wireType != 2 { 4954 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 4955 } 4956 var stringLen uint64 4957 for shift := uint(0); ; shift += 7 { 4958 if shift >= 64 { 4959 return ErrIntOverflowPayload 4960 } 4961 if iNdEx >= l { 4962 return io.ErrUnexpectedEOF 4963 } 4964 b := dAtA[iNdEx] 4965 iNdEx++ 4966 stringLen |= uint64(b&0x7F) << shift 4967 if b < 0x80 { 4968 break 4969 } 4970 } 4971 intStringLen := int(stringLen) 4972 if intStringLen < 0 { 4973 return ErrInvalidLengthPayload 4974 } 4975 postIndex := iNdEx + intStringLen 4976 if postIndex < 0 { 4977 return ErrInvalidLengthPayload 4978 } 4979 if postIndex > l { 4980 return io.ErrUnexpectedEOF 4981 } 4982 m.Name = string(dAtA[iNdEx:postIndex]) 4983 iNdEx = postIndex 4984 case 2: 4985 if wireType != 2 { 4986 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 4987 } 4988 var stringLen uint64 4989 for shift := uint(0); ; shift += 7 { 4990 if shift >= 64 { 4991 return ErrIntOverflowPayload 4992 } 4993 if iNdEx >= l { 4994 return io.ErrUnexpectedEOF 4995 } 4996 b := dAtA[iNdEx] 4997 iNdEx++ 4998 stringLen |= uint64(b&0x7F) << shift 4999 if b < 0x80 { 5000 break 5001 } 5002 } 5003 intStringLen := int(stringLen) 5004 if intStringLen < 0 { 5005 return ErrInvalidLengthPayload 5006 } 5007 postIndex := iNdEx + intStringLen 5008 if postIndex < 0 { 5009 return ErrInvalidLengthPayload 5010 } 5011 if postIndex > l { 5012 return io.ErrUnexpectedEOF 5013 } 5014 m.Description = string(dAtA[iNdEx:postIndex]) 5015 iNdEx = postIndex 5016 case 3: 5017 if wireType != 2 { 5018 return fmt.Errorf("proto: wrong wireType = %d for field BatchTx", wireType) 5019 } 5020 var msglen int 5021 for shift := uint(0); ; shift += 7 { 5022 if shift >= 64 { 5023 return ErrIntOverflowPayload 5024 } 5025 if iNdEx >= l { 5026 return io.ErrUnexpectedEOF 5027 } 5028 b := dAtA[iNdEx] 5029 iNdEx++ 5030 msglen |= int(b&0x7F) << shift 5031 if b < 0x80 { 5032 break 5033 } 5034 } 5035 if msglen < 0 { 5036 return ErrInvalidLengthPayload 5037 } 5038 postIndex := iNdEx + msglen 5039 if postIndex < 0 { 5040 return ErrInvalidLengthPayload 5041 } 5042 if postIndex > l { 5043 return io.ErrUnexpectedEOF 5044 } 5045 if m.BatchTx == nil { 5046 m.BatchTx = &BatchTx{} 5047 } 5048 if err := m.BatchTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5049 return err 5050 } 5051 iNdEx = postIndex 5052 default: 5053 iNdEx = preIndex 5054 skippy, err := skipPayload(dAtA[iNdEx:]) 5055 if err != nil { 5056 return err 5057 } 5058 if (skippy < 0) || (iNdEx+skippy) < 0 { 5059 return ErrInvalidLengthPayload 5060 } 5061 if (iNdEx + skippy) > l { 5062 return io.ErrUnexpectedEOF 5063 } 5064 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5065 iNdEx += skippy 5066 } 5067 } 5068 5069 if iNdEx > l { 5070 return io.ErrUnexpectedEOF 5071 } 5072 return nil 5073 } 5074 func (m *Ballot) Unmarshal(dAtA []byte) error { 5075 l := len(dAtA) 5076 iNdEx := 0 5077 for iNdEx < l { 5078 preIndex := iNdEx 5079 var wire uint64 5080 for shift := uint(0); ; shift += 7 { 5081 if shift >= 64 { 5082 return ErrIntOverflowPayload 5083 } 5084 if iNdEx >= l { 5085 return io.ErrUnexpectedEOF 5086 } 5087 b := dAtA[iNdEx] 5088 iNdEx++ 5089 wire |= uint64(b&0x7F) << shift 5090 if b < 0x80 { 5091 break 5092 } 5093 } 5094 fieldNum := int32(wire >> 3) 5095 wireType := int(wire & 0x7) 5096 if wireType == 4 { 5097 return fmt.Errorf("proto: Ballot: wiretype end group for non-group") 5098 } 5099 if fieldNum <= 0 { 5100 return fmt.Errorf("proto: Ballot: illegal tag %d (wire type %d)", fieldNum, wire) 5101 } 5102 switch fieldNum { 5103 case 1: 5104 if wireType != 2 { 5105 return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) 5106 } 5107 var msglen int 5108 for shift := uint(0); ; shift += 7 { 5109 if shift >= 64 { 5110 return ErrIntOverflowPayload 5111 } 5112 if iNdEx >= l { 5113 return io.ErrUnexpectedEOF 5114 } 5115 b := dAtA[iNdEx] 5116 iNdEx++ 5117 msglen |= int(b&0x7F) << shift 5118 if b < 0x80 { 5119 break 5120 } 5121 } 5122 if msglen < 0 { 5123 return ErrInvalidLengthPayload 5124 } 5125 postIndex := iNdEx + msglen 5126 if postIndex < 0 { 5127 return ErrInvalidLengthPayload 5128 } 5129 if postIndex > l { 5130 return io.ErrUnexpectedEOF 5131 } 5132 if m.Proposal == nil { 5133 m.Proposal = &Proposal{} 5134 } 5135 if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5136 return err 5137 } 5138 iNdEx = postIndex 5139 case 2: 5140 if wireType != 2 { 5141 return fmt.Errorf("proto: wrong wireType = %d for field FinalizingTx", wireType) 5142 } 5143 var byteLen int 5144 for shift := uint(0); ; shift += 7 { 5145 if shift >= 64 { 5146 return ErrIntOverflowPayload 5147 } 5148 if iNdEx >= l { 5149 return io.ErrUnexpectedEOF 5150 } 5151 b := dAtA[iNdEx] 5152 iNdEx++ 5153 byteLen |= int(b&0x7F) << shift 5154 if b < 0x80 { 5155 break 5156 } 5157 } 5158 if byteLen < 0 { 5159 return ErrInvalidLengthPayload 5160 } 5161 postIndex := iNdEx + byteLen 5162 if postIndex < 0 { 5163 return ErrInvalidLengthPayload 5164 } 5165 if postIndex > l { 5166 return io.ErrUnexpectedEOF 5167 } 5168 var v github_com_hyperledger_burrow_binary.HexBytes 5169 m.FinalizingTx = &v 5170 if err := m.FinalizingTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5171 return err 5172 } 5173 iNdEx = postIndex 5174 case 4: 5175 if wireType != 0 { 5176 return fmt.Errorf("proto: wrong wireType = %d for field ProposalState", wireType) 5177 } 5178 m.ProposalState = 0 5179 for shift := uint(0); ; shift += 7 { 5180 if shift >= 64 { 5181 return ErrIntOverflowPayload 5182 } 5183 if iNdEx >= l { 5184 return io.ErrUnexpectedEOF 5185 } 5186 b := dAtA[iNdEx] 5187 iNdEx++ 5188 m.ProposalState |= Ballot_ProposalState(b&0x7F) << shift 5189 if b < 0x80 { 5190 break 5191 } 5192 } 5193 case 5: 5194 if wireType != 2 { 5195 return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType) 5196 } 5197 var msglen int 5198 for shift := uint(0); ; shift += 7 { 5199 if shift >= 64 { 5200 return ErrIntOverflowPayload 5201 } 5202 if iNdEx >= l { 5203 return io.ErrUnexpectedEOF 5204 } 5205 b := dAtA[iNdEx] 5206 iNdEx++ 5207 msglen |= int(b&0x7F) << shift 5208 if b < 0x80 { 5209 break 5210 } 5211 } 5212 if msglen < 0 { 5213 return ErrInvalidLengthPayload 5214 } 5215 postIndex := iNdEx + msglen 5216 if postIndex < 0 { 5217 return ErrInvalidLengthPayload 5218 } 5219 if postIndex > l { 5220 return io.ErrUnexpectedEOF 5221 } 5222 m.Votes = append(m.Votes, &Vote{}) 5223 if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5224 return err 5225 } 5226 iNdEx = postIndex 5227 default: 5228 iNdEx = preIndex 5229 skippy, err := skipPayload(dAtA[iNdEx:]) 5230 if err != nil { 5231 return err 5232 } 5233 if (skippy < 0) || (iNdEx+skippy) < 0 { 5234 return ErrInvalidLengthPayload 5235 } 5236 if (iNdEx + skippy) > l { 5237 return io.ErrUnexpectedEOF 5238 } 5239 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5240 iNdEx += skippy 5241 } 5242 } 5243 5244 if iNdEx > l { 5245 return io.ErrUnexpectedEOF 5246 } 5247 return nil 5248 } 5249 func skipPayload(dAtA []byte) (n int, err error) { 5250 l := len(dAtA) 5251 iNdEx := 0 5252 depth := 0 5253 for iNdEx < l { 5254 var wire uint64 5255 for shift := uint(0); ; shift += 7 { 5256 if shift >= 64 { 5257 return 0, ErrIntOverflowPayload 5258 } 5259 if iNdEx >= l { 5260 return 0, io.ErrUnexpectedEOF 5261 } 5262 b := dAtA[iNdEx] 5263 iNdEx++ 5264 wire |= (uint64(b) & 0x7F) << shift 5265 if b < 0x80 { 5266 break 5267 } 5268 } 5269 wireType := int(wire & 0x7) 5270 switch wireType { 5271 case 0: 5272 for shift := uint(0); ; shift += 7 { 5273 if shift >= 64 { 5274 return 0, ErrIntOverflowPayload 5275 } 5276 if iNdEx >= l { 5277 return 0, io.ErrUnexpectedEOF 5278 } 5279 iNdEx++ 5280 if dAtA[iNdEx-1] < 0x80 { 5281 break 5282 } 5283 } 5284 case 1: 5285 iNdEx += 8 5286 case 2: 5287 var length int 5288 for shift := uint(0); ; shift += 7 { 5289 if shift >= 64 { 5290 return 0, ErrIntOverflowPayload 5291 } 5292 if iNdEx >= l { 5293 return 0, io.ErrUnexpectedEOF 5294 } 5295 b := dAtA[iNdEx] 5296 iNdEx++ 5297 length |= (int(b) & 0x7F) << shift 5298 if b < 0x80 { 5299 break 5300 } 5301 } 5302 if length < 0 { 5303 return 0, ErrInvalidLengthPayload 5304 } 5305 iNdEx += length 5306 case 3: 5307 depth++ 5308 case 4: 5309 if depth == 0 { 5310 return 0, ErrUnexpectedEndOfGroupPayload 5311 } 5312 depth-- 5313 case 5: 5314 iNdEx += 4 5315 default: 5316 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 5317 } 5318 if iNdEx < 0 { 5319 return 0, ErrInvalidLengthPayload 5320 } 5321 if depth == 0 { 5322 return iNdEx, nil 5323 } 5324 } 5325 return 0, io.ErrUnexpectedEOF 5326 } 5327 5328 var ( 5329 ErrInvalidLengthPayload = fmt.Errorf("proto: negative length found during unmarshaling") 5330 ErrIntOverflowPayload = fmt.Errorf("proto: integer overflow") 5331 ErrUnexpectedEndOfGroupPayload = fmt.Errorf("proto: unexpected end of group") 5332 )