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