github.com/cosmos/cosmos-sdk@v0.50.10/x/group/tx.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/group/v1/tx.proto 3 4 package group 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/msgservice" 12 _ "github.com/cosmos/cosmos-sdk/types/tx/amino" 13 _ "github.com/cosmos/gogoproto/gogoproto" 14 grpc1 "github.com/cosmos/gogoproto/grpc" 15 proto "github.com/cosmos/gogoproto/proto" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19 io "io" 20 math "math" 21 math_bits "math/bits" 22 ) 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var _ = proto.Marshal 26 var _ = fmt.Errorf 27 var _ = math.Inf 28 29 // This is a compile-time assertion to ensure that this generated file 30 // is compatible with the proto package it is being compiled against. 31 // A compilation error at this line likely means your copy of the 32 // proto package needs to be updated. 33 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 34 35 // Exec defines modes of execution of a proposal on creation or on new vote. 36 type Exec int32 37 38 const ( 39 // An empty value means that there should be a separate 40 // MsgExec request for the proposal to execute. 41 Exec_EXEC_UNSPECIFIED Exec = 0 42 // Try to execute the proposal immediately. 43 // If the proposal is not allowed per the DecisionPolicy, 44 // the proposal will still be open and could 45 // be executed at a later point. 46 Exec_EXEC_TRY Exec = 1 47 ) 48 49 var Exec_name = map[int32]string{ 50 0: "EXEC_UNSPECIFIED", 51 1: "EXEC_TRY", 52 } 53 54 var Exec_value = map[string]int32{ 55 "EXEC_UNSPECIFIED": 0, 56 "EXEC_TRY": 1, 57 } 58 59 func (x Exec) String() string { 60 return proto.EnumName(Exec_name, int32(x)) 61 } 62 63 func (Exec) EnumDescriptor() ([]byte, []int) { 64 return fileDescriptor_6b8d3d629f136420, []int{0} 65 } 66 67 // MsgCreateGroup is the Msg/CreateGroup request type. 68 type MsgCreateGroup struct { 69 // admin is the account address of the group admin. 70 Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` 71 // members defines the group members. 72 Members []MemberRequest `protobuf:"bytes,2,rep,name=members,proto3" json:"members"` 73 // metadata is any arbitrary metadata to attached to the group. 74 Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 75 } 76 77 func (m *MsgCreateGroup) Reset() { *m = MsgCreateGroup{} } 78 func (m *MsgCreateGroup) String() string { return proto.CompactTextString(m) } 79 func (*MsgCreateGroup) ProtoMessage() {} 80 func (*MsgCreateGroup) Descriptor() ([]byte, []int) { 81 return fileDescriptor_6b8d3d629f136420, []int{0} 82 } 83 func (m *MsgCreateGroup) XXX_Unmarshal(b []byte) error { 84 return m.Unmarshal(b) 85 } 86 func (m *MsgCreateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 87 if deterministic { 88 return xxx_messageInfo_MsgCreateGroup.Marshal(b, m, deterministic) 89 } else { 90 b = b[:cap(b)] 91 n, err := m.MarshalToSizedBuffer(b) 92 if err != nil { 93 return nil, err 94 } 95 return b[:n], nil 96 } 97 } 98 func (m *MsgCreateGroup) XXX_Merge(src proto.Message) { 99 xxx_messageInfo_MsgCreateGroup.Merge(m, src) 100 } 101 func (m *MsgCreateGroup) XXX_Size() int { 102 return m.Size() 103 } 104 func (m *MsgCreateGroup) XXX_DiscardUnknown() { 105 xxx_messageInfo_MsgCreateGroup.DiscardUnknown(m) 106 } 107 108 var xxx_messageInfo_MsgCreateGroup proto.InternalMessageInfo 109 110 func (m *MsgCreateGroup) GetAdmin() string { 111 if m != nil { 112 return m.Admin 113 } 114 return "" 115 } 116 117 func (m *MsgCreateGroup) GetMembers() []MemberRequest { 118 if m != nil { 119 return m.Members 120 } 121 return nil 122 } 123 124 func (m *MsgCreateGroup) GetMetadata() string { 125 if m != nil { 126 return m.Metadata 127 } 128 return "" 129 } 130 131 // MsgCreateGroupResponse is the Msg/CreateGroup response type. 132 type MsgCreateGroupResponse struct { 133 // group_id is the unique ID of the newly created group. 134 GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 135 } 136 137 func (m *MsgCreateGroupResponse) Reset() { *m = MsgCreateGroupResponse{} } 138 func (m *MsgCreateGroupResponse) String() string { return proto.CompactTextString(m) } 139 func (*MsgCreateGroupResponse) ProtoMessage() {} 140 func (*MsgCreateGroupResponse) Descriptor() ([]byte, []int) { 141 return fileDescriptor_6b8d3d629f136420, []int{1} 142 } 143 func (m *MsgCreateGroupResponse) XXX_Unmarshal(b []byte) error { 144 return m.Unmarshal(b) 145 } 146 func (m *MsgCreateGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 147 if deterministic { 148 return xxx_messageInfo_MsgCreateGroupResponse.Marshal(b, m, deterministic) 149 } else { 150 b = b[:cap(b)] 151 n, err := m.MarshalToSizedBuffer(b) 152 if err != nil { 153 return nil, err 154 } 155 return b[:n], nil 156 } 157 } 158 func (m *MsgCreateGroupResponse) XXX_Merge(src proto.Message) { 159 xxx_messageInfo_MsgCreateGroupResponse.Merge(m, src) 160 } 161 func (m *MsgCreateGroupResponse) XXX_Size() int { 162 return m.Size() 163 } 164 func (m *MsgCreateGroupResponse) XXX_DiscardUnknown() { 165 xxx_messageInfo_MsgCreateGroupResponse.DiscardUnknown(m) 166 } 167 168 var xxx_messageInfo_MsgCreateGroupResponse proto.InternalMessageInfo 169 170 func (m *MsgCreateGroupResponse) GetGroupId() uint64 { 171 if m != nil { 172 return m.GroupId 173 } 174 return 0 175 } 176 177 // MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. 178 type MsgUpdateGroupMembers struct { 179 // admin is the account address of the group admin. 180 Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` 181 // group_id is the unique ID of the group. 182 GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 183 // member_updates is the list of members to update, 184 // set weight to 0 to remove a member. 185 MemberUpdates []MemberRequest `protobuf:"bytes,3,rep,name=member_updates,json=memberUpdates,proto3" json:"member_updates"` 186 } 187 188 func (m *MsgUpdateGroupMembers) Reset() { *m = MsgUpdateGroupMembers{} } 189 func (m *MsgUpdateGroupMembers) String() string { return proto.CompactTextString(m) } 190 func (*MsgUpdateGroupMembers) ProtoMessage() {} 191 func (*MsgUpdateGroupMembers) Descriptor() ([]byte, []int) { 192 return fileDescriptor_6b8d3d629f136420, []int{2} 193 } 194 func (m *MsgUpdateGroupMembers) XXX_Unmarshal(b []byte) error { 195 return m.Unmarshal(b) 196 } 197 func (m *MsgUpdateGroupMembers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 198 if deterministic { 199 return xxx_messageInfo_MsgUpdateGroupMembers.Marshal(b, m, deterministic) 200 } else { 201 b = b[:cap(b)] 202 n, err := m.MarshalToSizedBuffer(b) 203 if err != nil { 204 return nil, err 205 } 206 return b[:n], nil 207 } 208 } 209 func (m *MsgUpdateGroupMembers) XXX_Merge(src proto.Message) { 210 xxx_messageInfo_MsgUpdateGroupMembers.Merge(m, src) 211 } 212 func (m *MsgUpdateGroupMembers) XXX_Size() int { 213 return m.Size() 214 } 215 func (m *MsgUpdateGroupMembers) XXX_DiscardUnknown() { 216 xxx_messageInfo_MsgUpdateGroupMembers.DiscardUnknown(m) 217 } 218 219 var xxx_messageInfo_MsgUpdateGroupMembers proto.InternalMessageInfo 220 221 func (m *MsgUpdateGroupMembers) GetAdmin() string { 222 if m != nil { 223 return m.Admin 224 } 225 return "" 226 } 227 228 func (m *MsgUpdateGroupMembers) GetGroupId() uint64 { 229 if m != nil { 230 return m.GroupId 231 } 232 return 0 233 } 234 235 func (m *MsgUpdateGroupMembers) GetMemberUpdates() []MemberRequest { 236 if m != nil { 237 return m.MemberUpdates 238 } 239 return nil 240 } 241 242 // MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. 243 type MsgUpdateGroupMembersResponse struct { 244 } 245 246 func (m *MsgUpdateGroupMembersResponse) Reset() { *m = MsgUpdateGroupMembersResponse{} } 247 func (m *MsgUpdateGroupMembersResponse) String() string { return proto.CompactTextString(m) } 248 func (*MsgUpdateGroupMembersResponse) ProtoMessage() {} 249 func (*MsgUpdateGroupMembersResponse) Descriptor() ([]byte, []int) { 250 return fileDescriptor_6b8d3d629f136420, []int{3} 251 } 252 func (m *MsgUpdateGroupMembersResponse) XXX_Unmarshal(b []byte) error { 253 return m.Unmarshal(b) 254 } 255 func (m *MsgUpdateGroupMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 256 if deterministic { 257 return xxx_messageInfo_MsgUpdateGroupMembersResponse.Marshal(b, m, deterministic) 258 } else { 259 b = b[:cap(b)] 260 n, err := m.MarshalToSizedBuffer(b) 261 if err != nil { 262 return nil, err 263 } 264 return b[:n], nil 265 } 266 } 267 func (m *MsgUpdateGroupMembersResponse) XXX_Merge(src proto.Message) { 268 xxx_messageInfo_MsgUpdateGroupMembersResponse.Merge(m, src) 269 } 270 func (m *MsgUpdateGroupMembersResponse) XXX_Size() int { 271 return m.Size() 272 } 273 func (m *MsgUpdateGroupMembersResponse) XXX_DiscardUnknown() { 274 xxx_messageInfo_MsgUpdateGroupMembersResponse.DiscardUnknown(m) 275 } 276 277 var xxx_messageInfo_MsgUpdateGroupMembersResponse proto.InternalMessageInfo 278 279 // MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. 280 type MsgUpdateGroupAdmin struct { 281 // admin is the current account address of the group admin. 282 Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` 283 // group_id is the unique ID of the group. 284 GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 285 // new_admin is the group new admin account address. 286 NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` 287 } 288 289 func (m *MsgUpdateGroupAdmin) Reset() { *m = MsgUpdateGroupAdmin{} } 290 func (m *MsgUpdateGroupAdmin) String() string { return proto.CompactTextString(m) } 291 func (*MsgUpdateGroupAdmin) ProtoMessage() {} 292 func (*MsgUpdateGroupAdmin) Descriptor() ([]byte, []int) { 293 return fileDescriptor_6b8d3d629f136420, []int{4} 294 } 295 func (m *MsgUpdateGroupAdmin) XXX_Unmarshal(b []byte) error { 296 return m.Unmarshal(b) 297 } 298 func (m *MsgUpdateGroupAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 299 if deterministic { 300 return xxx_messageInfo_MsgUpdateGroupAdmin.Marshal(b, m, deterministic) 301 } else { 302 b = b[:cap(b)] 303 n, err := m.MarshalToSizedBuffer(b) 304 if err != nil { 305 return nil, err 306 } 307 return b[:n], nil 308 } 309 } 310 func (m *MsgUpdateGroupAdmin) XXX_Merge(src proto.Message) { 311 xxx_messageInfo_MsgUpdateGroupAdmin.Merge(m, src) 312 } 313 func (m *MsgUpdateGroupAdmin) XXX_Size() int { 314 return m.Size() 315 } 316 func (m *MsgUpdateGroupAdmin) XXX_DiscardUnknown() { 317 xxx_messageInfo_MsgUpdateGroupAdmin.DiscardUnknown(m) 318 } 319 320 var xxx_messageInfo_MsgUpdateGroupAdmin proto.InternalMessageInfo 321 322 func (m *MsgUpdateGroupAdmin) GetAdmin() string { 323 if m != nil { 324 return m.Admin 325 } 326 return "" 327 } 328 329 func (m *MsgUpdateGroupAdmin) GetGroupId() uint64 { 330 if m != nil { 331 return m.GroupId 332 } 333 return 0 334 } 335 336 func (m *MsgUpdateGroupAdmin) GetNewAdmin() string { 337 if m != nil { 338 return m.NewAdmin 339 } 340 return "" 341 } 342 343 // MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. 344 type MsgUpdateGroupAdminResponse struct { 345 } 346 347 func (m *MsgUpdateGroupAdminResponse) Reset() { *m = MsgUpdateGroupAdminResponse{} } 348 func (m *MsgUpdateGroupAdminResponse) String() string { return proto.CompactTextString(m) } 349 func (*MsgUpdateGroupAdminResponse) ProtoMessage() {} 350 func (*MsgUpdateGroupAdminResponse) Descriptor() ([]byte, []int) { 351 return fileDescriptor_6b8d3d629f136420, []int{5} 352 } 353 func (m *MsgUpdateGroupAdminResponse) XXX_Unmarshal(b []byte) error { 354 return m.Unmarshal(b) 355 } 356 func (m *MsgUpdateGroupAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 357 if deterministic { 358 return xxx_messageInfo_MsgUpdateGroupAdminResponse.Marshal(b, m, deterministic) 359 } else { 360 b = b[:cap(b)] 361 n, err := m.MarshalToSizedBuffer(b) 362 if err != nil { 363 return nil, err 364 } 365 return b[:n], nil 366 } 367 } 368 func (m *MsgUpdateGroupAdminResponse) XXX_Merge(src proto.Message) { 369 xxx_messageInfo_MsgUpdateGroupAdminResponse.Merge(m, src) 370 } 371 func (m *MsgUpdateGroupAdminResponse) XXX_Size() int { 372 return m.Size() 373 } 374 func (m *MsgUpdateGroupAdminResponse) XXX_DiscardUnknown() { 375 xxx_messageInfo_MsgUpdateGroupAdminResponse.DiscardUnknown(m) 376 } 377 378 var xxx_messageInfo_MsgUpdateGroupAdminResponse proto.InternalMessageInfo 379 380 // MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. 381 type MsgUpdateGroupMetadata struct { 382 // admin is the account address of the group admin. 383 Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` 384 // group_id is the unique ID of the group. 385 GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 386 // metadata is the updated group's metadata. 387 Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 388 } 389 390 func (m *MsgUpdateGroupMetadata) Reset() { *m = MsgUpdateGroupMetadata{} } 391 func (m *MsgUpdateGroupMetadata) String() string { return proto.CompactTextString(m) } 392 func (*MsgUpdateGroupMetadata) ProtoMessage() {} 393 func (*MsgUpdateGroupMetadata) Descriptor() ([]byte, []int) { 394 return fileDescriptor_6b8d3d629f136420, []int{6} 395 } 396 func (m *MsgUpdateGroupMetadata) XXX_Unmarshal(b []byte) error { 397 return m.Unmarshal(b) 398 } 399 func (m *MsgUpdateGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 400 if deterministic { 401 return xxx_messageInfo_MsgUpdateGroupMetadata.Marshal(b, m, deterministic) 402 } else { 403 b = b[:cap(b)] 404 n, err := m.MarshalToSizedBuffer(b) 405 if err != nil { 406 return nil, err 407 } 408 return b[:n], nil 409 } 410 } 411 func (m *MsgUpdateGroupMetadata) XXX_Merge(src proto.Message) { 412 xxx_messageInfo_MsgUpdateGroupMetadata.Merge(m, src) 413 } 414 func (m *MsgUpdateGroupMetadata) XXX_Size() int { 415 return m.Size() 416 } 417 func (m *MsgUpdateGroupMetadata) XXX_DiscardUnknown() { 418 xxx_messageInfo_MsgUpdateGroupMetadata.DiscardUnknown(m) 419 } 420 421 var xxx_messageInfo_MsgUpdateGroupMetadata proto.InternalMessageInfo 422 423 func (m *MsgUpdateGroupMetadata) GetAdmin() string { 424 if m != nil { 425 return m.Admin 426 } 427 return "" 428 } 429 430 func (m *MsgUpdateGroupMetadata) GetGroupId() uint64 { 431 if m != nil { 432 return m.GroupId 433 } 434 return 0 435 } 436 437 func (m *MsgUpdateGroupMetadata) GetMetadata() string { 438 if m != nil { 439 return m.Metadata 440 } 441 return "" 442 } 443 444 // MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. 445 type MsgUpdateGroupMetadataResponse struct { 446 } 447 448 func (m *MsgUpdateGroupMetadataResponse) Reset() { *m = MsgUpdateGroupMetadataResponse{} } 449 func (m *MsgUpdateGroupMetadataResponse) String() string { return proto.CompactTextString(m) } 450 func (*MsgUpdateGroupMetadataResponse) ProtoMessage() {} 451 func (*MsgUpdateGroupMetadataResponse) Descriptor() ([]byte, []int) { 452 return fileDescriptor_6b8d3d629f136420, []int{7} 453 } 454 func (m *MsgUpdateGroupMetadataResponse) XXX_Unmarshal(b []byte) error { 455 return m.Unmarshal(b) 456 } 457 func (m *MsgUpdateGroupMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 458 if deterministic { 459 return xxx_messageInfo_MsgUpdateGroupMetadataResponse.Marshal(b, m, deterministic) 460 } else { 461 b = b[:cap(b)] 462 n, err := m.MarshalToSizedBuffer(b) 463 if err != nil { 464 return nil, err 465 } 466 return b[:n], nil 467 } 468 } 469 func (m *MsgUpdateGroupMetadataResponse) XXX_Merge(src proto.Message) { 470 xxx_messageInfo_MsgUpdateGroupMetadataResponse.Merge(m, src) 471 } 472 func (m *MsgUpdateGroupMetadataResponse) XXX_Size() int { 473 return m.Size() 474 } 475 func (m *MsgUpdateGroupMetadataResponse) XXX_DiscardUnknown() { 476 xxx_messageInfo_MsgUpdateGroupMetadataResponse.DiscardUnknown(m) 477 } 478 479 var xxx_messageInfo_MsgUpdateGroupMetadataResponse proto.InternalMessageInfo 480 481 // MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. 482 type MsgCreateGroupPolicy struct { 483 // admin is the account address of the group admin. 484 Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` 485 // group_id is the unique ID of the group. 486 GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 487 // metadata is any arbitrary metadata attached to the group policy. 488 Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 489 // decision_policy specifies the group policy's decision policy. 490 DecisionPolicy *types.Any `protobuf:"bytes,4,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"` 491 } 492 493 func (m *MsgCreateGroupPolicy) Reset() { *m = MsgCreateGroupPolicy{} } 494 func (m *MsgCreateGroupPolicy) String() string { return proto.CompactTextString(m) } 495 func (*MsgCreateGroupPolicy) ProtoMessage() {} 496 func (*MsgCreateGroupPolicy) Descriptor() ([]byte, []int) { 497 return fileDescriptor_6b8d3d629f136420, []int{8} 498 } 499 func (m *MsgCreateGroupPolicy) XXX_Unmarshal(b []byte) error { 500 return m.Unmarshal(b) 501 } 502 func (m *MsgCreateGroupPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 503 if deterministic { 504 return xxx_messageInfo_MsgCreateGroupPolicy.Marshal(b, m, deterministic) 505 } else { 506 b = b[:cap(b)] 507 n, err := m.MarshalToSizedBuffer(b) 508 if err != nil { 509 return nil, err 510 } 511 return b[:n], nil 512 } 513 } 514 func (m *MsgCreateGroupPolicy) XXX_Merge(src proto.Message) { 515 xxx_messageInfo_MsgCreateGroupPolicy.Merge(m, src) 516 } 517 func (m *MsgCreateGroupPolicy) XXX_Size() int { 518 return m.Size() 519 } 520 func (m *MsgCreateGroupPolicy) XXX_DiscardUnknown() { 521 xxx_messageInfo_MsgCreateGroupPolicy.DiscardUnknown(m) 522 } 523 524 var xxx_messageInfo_MsgCreateGroupPolicy proto.InternalMessageInfo 525 526 // MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. 527 type MsgCreateGroupPolicyResponse struct { 528 // address is the account address of the newly created group policy. 529 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 530 } 531 532 func (m *MsgCreateGroupPolicyResponse) Reset() { *m = MsgCreateGroupPolicyResponse{} } 533 func (m *MsgCreateGroupPolicyResponse) String() string { return proto.CompactTextString(m) } 534 func (*MsgCreateGroupPolicyResponse) ProtoMessage() {} 535 func (*MsgCreateGroupPolicyResponse) Descriptor() ([]byte, []int) { 536 return fileDescriptor_6b8d3d629f136420, []int{9} 537 } 538 func (m *MsgCreateGroupPolicyResponse) XXX_Unmarshal(b []byte) error { 539 return m.Unmarshal(b) 540 } 541 func (m *MsgCreateGroupPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 542 if deterministic { 543 return xxx_messageInfo_MsgCreateGroupPolicyResponse.Marshal(b, m, deterministic) 544 } else { 545 b = b[:cap(b)] 546 n, err := m.MarshalToSizedBuffer(b) 547 if err != nil { 548 return nil, err 549 } 550 return b[:n], nil 551 } 552 } 553 func (m *MsgCreateGroupPolicyResponse) XXX_Merge(src proto.Message) { 554 xxx_messageInfo_MsgCreateGroupPolicyResponse.Merge(m, src) 555 } 556 func (m *MsgCreateGroupPolicyResponse) XXX_Size() int { 557 return m.Size() 558 } 559 func (m *MsgCreateGroupPolicyResponse) XXX_DiscardUnknown() { 560 xxx_messageInfo_MsgCreateGroupPolicyResponse.DiscardUnknown(m) 561 } 562 563 var xxx_messageInfo_MsgCreateGroupPolicyResponse proto.InternalMessageInfo 564 565 func (m *MsgCreateGroupPolicyResponse) GetAddress() string { 566 if m != nil { 567 return m.Address 568 } 569 return "" 570 } 571 572 // MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. 573 type MsgUpdateGroupPolicyAdmin struct { 574 // admin is the account address of the group admin. 575 Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` 576 // group_policy_address is the account address of the group policy. 577 GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` 578 // new_admin is the new group policy admin. 579 NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` 580 } 581 582 func (m *MsgUpdateGroupPolicyAdmin) Reset() { *m = MsgUpdateGroupPolicyAdmin{} } 583 func (m *MsgUpdateGroupPolicyAdmin) String() string { return proto.CompactTextString(m) } 584 func (*MsgUpdateGroupPolicyAdmin) ProtoMessage() {} 585 func (*MsgUpdateGroupPolicyAdmin) Descriptor() ([]byte, []int) { 586 return fileDescriptor_6b8d3d629f136420, []int{10} 587 } 588 func (m *MsgUpdateGroupPolicyAdmin) XXX_Unmarshal(b []byte) error { 589 return m.Unmarshal(b) 590 } 591 func (m *MsgUpdateGroupPolicyAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 592 if deterministic { 593 return xxx_messageInfo_MsgUpdateGroupPolicyAdmin.Marshal(b, m, deterministic) 594 } else { 595 b = b[:cap(b)] 596 n, err := m.MarshalToSizedBuffer(b) 597 if err != nil { 598 return nil, err 599 } 600 return b[:n], nil 601 } 602 } 603 func (m *MsgUpdateGroupPolicyAdmin) XXX_Merge(src proto.Message) { 604 xxx_messageInfo_MsgUpdateGroupPolicyAdmin.Merge(m, src) 605 } 606 func (m *MsgUpdateGroupPolicyAdmin) XXX_Size() int { 607 return m.Size() 608 } 609 func (m *MsgUpdateGroupPolicyAdmin) XXX_DiscardUnknown() { 610 xxx_messageInfo_MsgUpdateGroupPolicyAdmin.DiscardUnknown(m) 611 } 612 613 var xxx_messageInfo_MsgUpdateGroupPolicyAdmin proto.InternalMessageInfo 614 615 func (m *MsgUpdateGroupPolicyAdmin) GetAdmin() string { 616 if m != nil { 617 return m.Admin 618 } 619 return "" 620 } 621 622 func (m *MsgUpdateGroupPolicyAdmin) GetGroupPolicyAddress() string { 623 if m != nil { 624 return m.GroupPolicyAddress 625 } 626 return "" 627 } 628 629 func (m *MsgUpdateGroupPolicyAdmin) GetNewAdmin() string { 630 if m != nil { 631 return m.NewAdmin 632 } 633 return "" 634 } 635 636 // MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. 637 type MsgUpdateGroupPolicyAdminResponse struct { 638 } 639 640 func (m *MsgUpdateGroupPolicyAdminResponse) Reset() { *m = MsgUpdateGroupPolicyAdminResponse{} } 641 func (m *MsgUpdateGroupPolicyAdminResponse) String() string { return proto.CompactTextString(m) } 642 func (*MsgUpdateGroupPolicyAdminResponse) ProtoMessage() {} 643 func (*MsgUpdateGroupPolicyAdminResponse) Descriptor() ([]byte, []int) { 644 return fileDescriptor_6b8d3d629f136420, []int{11} 645 } 646 func (m *MsgUpdateGroupPolicyAdminResponse) XXX_Unmarshal(b []byte) error { 647 return m.Unmarshal(b) 648 } 649 func (m *MsgUpdateGroupPolicyAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 650 if deterministic { 651 return xxx_messageInfo_MsgUpdateGroupPolicyAdminResponse.Marshal(b, m, deterministic) 652 } else { 653 b = b[:cap(b)] 654 n, err := m.MarshalToSizedBuffer(b) 655 if err != nil { 656 return nil, err 657 } 658 return b[:n], nil 659 } 660 } 661 func (m *MsgUpdateGroupPolicyAdminResponse) XXX_Merge(src proto.Message) { 662 xxx_messageInfo_MsgUpdateGroupPolicyAdminResponse.Merge(m, src) 663 } 664 func (m *MsgUpdateGroupPolicyAdminResponse) XXX_Size() int { 665 return m.Size() 666 } 667 func (m *MsgUpdateGroupPolicyAdminResponse) XXX_DiscardUnknown() { 668 xxx_messageInfo_MsgUpdateGroupPolicyAdminResponse.DiscardUnknown(m) 669 } 670 671 var xxx_messageInfo_MsgUpdateGroupPolicyAdminResponse proto.InternalMessageInfo 672 673 // MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. 674 type MsgCreateGroupWithPolicy struct { 675 // admin is the account address of the group and group policy admin. 676 Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` 677 // members defines the group members. 678 Members []MemberRequest `protobuf:"bytes,2,rep,name=members,proto3" json:"members"` 679 // group_metadata is any arbitrary metadata attached to the group. 680 GroupMetadata string `protobuf:"bytes,3,opt,name=group_metadata,json=groupMetadata,proto3" json:"group_metadata,omitempty"` 681 // group_policy_metadata is any arbitrary metadata attached to the group policy. 682 GroupPolicyMetadata string `protobuf:"bytes,4,opt,name=group_policy_metadata,json=groupPolicyMetadata,proto3" json:"group_policy_metadata,omitempty"` 683 // group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group 684 // and group policy admin. 685 GroupPolicyAsAdmin bool `protobuf:"varint,5,opt,name=group_policy_as_admin,json=groupPolicyAsAdmin,proto3" json:"group_policy_as_admin,omitempty"` 686 // decision_policy specifies the group policy's decision policy. 687 DecisionPolicy *types.Any `protobuf:"bytes,6,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"` 688 } 689 690 func (m *MsgCreateGroupWithPolicy) Reset() { *m = MsgCreateGroupWithPolicy{} } 691 func (m *MsgCreateGroupWithPolicy) String() string { return proto.CompactTextString(m) } 692 func (*MsgCreateGroupWithPolicy) ProtoMessage() {} 693 func (*MsgCreateGroupWithPolicy) Descriptor() ([]byte, []int) { 694 return fileDescriptor_6b8d3d629f136420, []int{12} 695 } 696 func (m *MsgCreateGroupWithPolicy) XXX_Unmarshal(b []byte) error { 697 return m.Unmarshal(b) 698 } 699 func (m *MsgCreateGroupWithPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 700 if deterministic { 701 return xxx_messageInfo_MsgCreateGroupWithPolicy.Marshal(b, m, deterministic) 702 } else { 703 b = b[:cap(b)] 704 n, err := m.MarshalToSizedBuffer(b) 705 if err != nil { 706 return nil, err 707 } 708 return b[:n], nil 709 } 710 } 711 func (m *MsgCreateGroupWithPolicy) XXX_Merge(src proto.Message) { 712 xxx_messageInfo_MsgCreateGroupWithPolicy.Merge(m, src) 713 } 714 func (m *MsgCreateGroupWithPolicy) XXX_Size() int { 715 return m.Size() 716 } 717 func (m *MsgCreateGroupWithPolicy) XXX_DiscardUnknown() { 718 xxx_messageInfo_MsgCreateGroupWithPolicy.DiscardUnknown(m) 719 } 720 721 var xxx_messageInfo_MsgCreateGroupWithPolicy proto.InternalMessageInfo 722 723 // MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. 724 type MsgCreateGroupWithPolicyResponse struct { 725 // group_id is the unique ID of the newly created group with policy. 726 GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 727 // group_policy_address is the account address of the newly created group policy. 728 GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` 729 } 730 731 func (m *MsgCreateGroupWithPolicyResponse) Reset() { *m = MsgCreateGroupWithPolicyResponse{} } 732 func (m *MsgCreateGroupWithPolicyResponse) String() string { return proto.CompactTextString(m) } 733 func (*MsgCreateGroupWithPolicyResponse) ProtoMessage() {} 734 func (*MsgCreateGroupWithPolicyResponse) Descriptor() ([]byte, []int) { 735 return fileDescriptor_6b8d3d629f136420, []int{13} 736 } 737 func (m *MsgCreateGroupWithPolicyResponse) XXX_Unmarshal(b []byte) error { 738 return m.Unmarshal(b) 739 } 740 func (m *MsgCreateGroupWithPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 741 if deterministic { 742 return xxx_messageInfo_MsgCreateGroupWithPolicyResponse.Marshal(b, m, deterministic) 743 } else { 744 b = b[:cap(b)] 745 n, err := m.MarshalToSizedBuffer(b) 746 if err != nil { 747 return nil, err 748 } 749 return b[:n], nil 750 } 751 } 752 func (m *MsgCreateGroupWithPolicyResponse) XXX_Merge(src proto.Message) { 753 xxx_messageInfo_MsgCreateGroupWithPolicyResponse.Merge(m, src) 754 } 755 func (m *MsgCreateGroupWithPolicyResponse) XXX_Size() int { 756 return m.Size() 757 } 758 func (m *MsgCreateGroupWithPolicyResponse) XXX_DiscardUnknown() { 759 xxx_messageInfo_MsgCreateGroupWithPolicyResponse.DiscardUnknown(m) 760 } 761 762 var xxx_messageInfo_MsgCreateGroupWithPolicyResponse proto.InternalMessageInfo 763 764 func (m *MsgCreateGroupWithPolicyResponse) GetGroupId() uint64 { 765 if m != nil { 766 return m.GroupId 767 } 768 return 0 769 } 770 771 func (m *MsgCreateGroupWithPolicyResponse) GetGroupPolicyAddress() string { 772 if m != nil { 773 return m.GroupPolicyAddress 774 } 775 return "" 776 } 777 778 // MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. 779 type MsgUpdateGroupPolicyDecisionPolicy struct { 780 // admin is the account address of the group admin. 781 Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` 782 // group_policy_address is the account address of group policy. 783 GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` 784 // decision_policy is the updated group policy's decision policy. 785 DecisionPolicy *types.Any `protobuf:"bytes,3,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"` 786 } 787 788 func (m *MsgUpdateGroupPolicyDecisionPolicy) Reset() { *m = MsgUpdateGroupPolicyDecisionPolicy{} } 789 func (m *MsgUpdateGroupPolicyDecisionPolicy) String() string { return proto.CompactTextString(m) } 790 func (*MsgUpdateGroupPolicyDecisionPolicy) ProtoMessage() {} 791 func (*MsgUpdateGroupPolicyDecisionPolicy) Descriptor() ([]byte, []int) { 792 return fileDescriptor_6b8d3d629f136420, []int{14} 793 } 794 func (m *MsgUpdateGroupPolicyDecisionPolicy) XXX_Unmarshal(b []byte) error { 795 return m.Unmarshal(b) 796 } 797 func (m *MsgUpdateGroupPolicyDecisionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 798 if deterministic { 799 return xxx_messageInfo_MsgUpdateGroupPolicyDecisionPolicy.Marshal(b, m, deterministic) 800 } else { 801 b = b[:cap(b)] 802 n, err := m.MarshalToSizedBuffer(b) 803 if err != nil { 804 return nil, err 805 } 806 return b[:n], nil 807 } 808 } 809 func (m *MsgUpdateGroupPolicyDecisionPolicy) XXX_Merge(src proto.Message) { 810 xxx_messageInfo_MsgUpdateGroupPolicyDecisionPolicy.Merge(m, src) 811 } 812 func (m *MsgUpdateGroupPolicyDecisionPolicy) XXX_Size() int { 813 return m.Size() 814 } 815 func (m *MsgUpdateGroupPolicyDecisionPolicy) XXX_DiscardUnknown() { 816 xxx_messageInfo_MsgUpdateGroupPolicyDecisionPolicy.DiscardUnknown(m) 817 } 818 819 var xxx_messageInfo_MsgUpdateGroupPolicyDecisionPolicy proto.InternalMessageInfo 820 821 // MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. 822 type MsgUpdateGroupPolicyDecisionPolicyResponse struct { 823 } 824 825 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) Reset() { 826 *m = MsgUpdateGroupPolicyDecisionPolicyResponse{} 827 } 828 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) String() string { 829 return proto.CompactTextString(m) 830 } 831 func (*MsgUpdateGroupPolicyDecisionPolicyResponse) ProtoMessage() {} 832 func (*MsgUpdateGroupPolicyDecisionPolicyResponse) Descriptor() ([]byte, []int) { 833 return fileDescriptor_6b8d3d629f136420, []int{15} 834 } 835 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) XXX_Unmarshal(b []byte) error { 836 return m.Unmarshal(b) 837 } 838 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 839 if deterministic { 840 return xxx_messageInfo_MsgUpdateGroupPolicyDecisionPolicyResponse.Marshal(b, m, deterministic) 841 } else { 842 b = b[:cap(b)] 843 n, err := m.MarshalToSizedBuffer(b) 844 if err != nil { 845 return nil, err 846 } 847 return b[:n], nil 848 } 849 } 850 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) XXX_Merge(src proto.Message) { 851 xxx_messageInfo_MsgUpdateGroupPolicyDecisionPolicyResponse.Merge(m, src) 852 } 853 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) XXX_Size() int { 854 return m.Size() 855 } 856 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) XXX_DiscardUnknown() { 857 xxx_messageInfo_MsgUpdateGroupPolicyDecisionPolicyResponse.DiscardUnknown(m) 858 } 859 860 var xxx_messageInfo_MsgUpdateGroupPolicyDecisionPolicyResponse proto.InternalMessageInfo 861 862 // MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. 863 type MsgUpdateGroupPolicyMetadata struct { 864 // admin is the account address of the group admin. 865 Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` 866 // group_policy_address is the account address of group policy. 867 GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` 868 // metadata is the group policy metadata to be updated. 869 Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 870 } 871 872 func (m *MsgUpdateGroupPolicyMetadata) Reset() { *m = MsgUpdateGroupPolicyMetadata{} } 873 func (m *MsgUpdateGroupPolicyMetadata) String() string { return proto.CompactTextString(m) } 874 func (*MsgUpdateGroupPolicyMetadata) ProtoMessage() {} 875 func (*MsgUpdateGroupPolicyMetadata) Descriptor() ([]byte, []int) { 876 return fileDescriptor_6b8d3d629f136420, []int{16} 877 } 878 func (m *MsgUpdateGroupPolicyMetadata) XXX_Unmarshal(b []byte) error { 879 return m.Unmarshal(b) 880 } 881 func (m *MsgUpdateGroupPolicyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 882 if deterministic { 883 return xxx_messageInfo_MsgUpdateGroupPolicyMetadata.Marshal(b, m, deterministic) 884 } else { 885 b = b[:cap(b)] 886 n, err := m.MarshalToSizedBuffer(b) 887 if err != nil { 888 return nil, err 889 } 890 return b[:n], nil 891 } 892 } 893 func (m *MsgUpdateGroupPolicyMetadata) XXX_Merge(src proto.Message) { 894 xxx_messageInfo_MsgUpdateGroupPolicyMetadata.Merge(m, src) 895 } 896 func (m *MsgUpdateGroupPolicyMetadata) XXX_Size() int { 897 return m.Size() 898 } 899 func (m *MsgUpdateGroupPolicyMetadata) XXX_DiscardUnknown() { 900 xxx_messageInfo_MsgUpdateGroupPolicyMetadata.DiscardUnknown(m) 901 } 902 903 var xxx_messageInfo_MsgUpdateGroupPolicyMetadata proto.InternalMessageInfo 904 905 func (m *MsgUpdateGroupPolicyMetadata) GetAdmin() string { 906 if m != nil { 907 return m.Admin 908 } 909 return "" 910 } 911 912 func (m *MsgUpdateGroupPolicyMetadata) GetGroupPolicyAddress() string { 913 if m != nil { 914 return m.GroupPolicyAddress 915 } 916 return "" 917 } 918 919 func (m *MsgUpdateGroupPolicyMetadata) GetMetadata() string { 920 if m != nil { 921 return m.Metadata 922 } 923 return "" 924 } 925 926 // MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. 927 type MsgUpdateGroupPolicyMetadataResponse struct { 928 } 929 930 func (m *MsgUpdateGroupPolicyMetadataResponse) Reset() { *m = MsgUpdateGroupPolicyMetadataResponse{} } 931 func (m *MsgUpdateGroupPolicyMetadataResponse) String() string { return proto.CompactTextString(m) } 932 func (*MsgUpdateGroupPolicyMetadataResponse) ProtoMessage() {} 933 func (*MsgUpdateGroupPolicyMetadataResponse) Descriptor() ([]byte, []int) { 934 return fileDescriptor_6b8d3d629f136420, []int{17} 935 } 936 func (m *MsgUpdateGroupPolicyMetadataResponse) XXX_Unmarshal(b []byte) error { 937 return m.Unmarshal(b) 938 } 939 func (m *MsgUpdateGroupPolicyMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 940 if deterministic { 941 return xxx_messageInfo_MsgUpdateGroupPolicyMetadataResponse.Marshal(b, m, deterministic) 942 } else { 943 b = b[:cap(b)] 944 n, err := m.MarshalToSizedBuffer(b) 945 if err != nil { 946 return nil, err 947 } 948 return b[:n], nil 949 } 950 } 951 func (m *MsgUpdateGroupPolicyMetadataResponse) XXX_Merge(src proto.Message) { 952 xxx_messageInfo_MsgUpdateGroupPolicyMetadataResponse.Merge(m, src) 953 } 954 func (m *MsgUpdateGroupPolicyMetadataResponse) XXX_Size() int { 955 return m.Size() 956 } 957 func (m *MsgUpdateGroupPolicyMetadataResponse) XXX_DiscardUnknown() { 958 xxx_messageInfo_MsgUpdateGroupPolicyMetadataResponse.DiscardUnknown(m) 959 } 960 961 var xxx_messageInfo_MsgUpdateGroupPolicyMetadataResponse proto.InternalMessageInfo 962 963 // MsgSubmitProposal is the Msg/SubmitProposal request type. 964 type MsgSubmitProposal struct { 965 // group_policy_address is the account address of group policy. 966 GroupPolicyAddress string `protobuf:"bytes,1,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` 967 // proposers are the account addresses of the proposers. 968 // Proposers signatures will be counted as yes votes. 969 Proposers []string `protobuf:"bytes,2,rep,name=proposers,proto3" json:"proposers,omitempty"` 970 // metadata is any arbitrary metadata attached to the proposal. 971 Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 972 // messages is a list of `sdk.Msg`s that will be executed if the proposal passes. 973 Messages []*types.Any `protobuf:"bytes,4,rep,name=messages,proto3" json:"messages,omitempty"` 974 // exec defines the mode of execution of the proposal, 975 // whether it should be executed immediately on creation or not. 976 // If so, proposers signatures are considered as Yes votes. 977 Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1.Exec" json:"exec,omitempty"` 978 // title is the title of the proposal. 979 // 980 // Since: cosmos-sdk 0.47 981 Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` 982 // summary is the summary of the proposal. 983 // 984 // Since: cosmos-sdk 0.47 985 Summary string `protobuf:"bytes,7,opt,name=summary,proto3" json:"summary,omitempty"` 986 } 987 988 func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} } 989 func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) } 990 func (*MsgSubmitProposal) ProtoMessage() {} 991 func (*MsgSubmitProposal) Descriptor() ([]byte, []int) { 992 return fileDescriptor_6b8d3d629f136420, []int{18} 993 } 994 func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error { 995 return m.Unmarshal(b) 996 } 997 func (m *MsgSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 998 if deterministic { 999 return xxx_messageInfo_MsgSubmitProposal.Marshal(b, m, deterministic) 1000 } else { 1001 b = b[:cap(b)] 1002 n, err := m.MarshalToSizedBuffer(b) 1003 if err != nil { 1004 return nil, err 1005 } 1006 return b[:n], nil 1007 } 1008 } 1009 func (m *MsgSubmitProposal) XXX_Merge(src proto.Message) { 1010 xxx_messageInfo_MsgSubmitProposal.Merge(m, src) 1011 } 1012 func (m *MsgSubmitProposal) XXX_Size() int { 1013 return m.Size() 1014 } 1015 func (m *MsgSubmitProposal) XXX_DiscardUnknown() { 1016 xxx_messageInfo_MsgSubmitProposal.DiscardUnknown(m) 1017 } 1018 1019 var xxx_messageInfo_MsgSubmitProposal proto.InternalMessageInfo 1020 1021 // MsgSubmitProposalResponse is the Msg/SubmitProposal response type. 1022 type MsgSubmitProposalResponse struct { 1023 // proposal is the unique ID of the proposal. 1024 ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 1025 } 1026 1027 func (m *MsgSubmitProposalResponse) Reset() { *m = MsgSubmitProposalResponse{} } 1028 func (m *MsgSubmitProposalResponse) String() string { return proto.CompactTextString(m) } 1029 func (*MsgSubmitProposalResponse) ProtoMessage() {} 1030 func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) { 1031 return fileDescriptor_6b8d3d629f136420, []int{19} 1032 } 1033 func (m *MsgSubmitProposalResponse) XXX_Unmarshal(b []byte) error { 1034 return m.Unmarshal(b) 1035 } 1036 func (m *MsgSubmitProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1037 if deterministic { 1038 return xxx_messageInfo_MsgSubmitProposalResponse.Marshal(b, m, deterministic) 1039 } else { 1040 b = b[:cap(b)] 1041 n, err := m.MarshalToSizedBuffer(b) 1042 if err != nil { 1043 return nil, err 1044 } 1045 return b[:n], nil 1046 } 1047 } 1048 func (m *MsgSubmitProposalResponse) XXX_Merge(src proto.Message) { 1049 xxx_messageInfo_MsgSubmitProposalResponse.Merge(m, src) 1050 } 1051 func (m *MsgSubmitProposalResponse) XXX_Size() int { 1052 return m.Size() 1053 } 1054 func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown() { 1055 xxx_messageInfo_MsgSubmitProposalResponse.DiscardUnknown(m) 1056 } 1057 1058 var xxx_messageInfo_MsgSubmitProposalResponse proto.InternalMessageInfo 1059 1060 func (m *MsgSubmitProposalResponse) GetProposalId() uint64 { 1061 if m != nil { 1062 return m.ProposalId 1063 } 1064 return 0 1065 } 1066 1067 // MsgWithdrawProposal is the Msg/WithdrawProposal request type. 1068 type MsgWithdrawProposal struct { 1069 // proposal is the unique ID of the proposal. 1070 ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 1071 // address is the admin of the group policy or one of the proposer of the proposal. 1072 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 1073 } 1074 1075 func (m *MsgWithdrawProposal) Reset() { *m = MsgWithdrawProposal{} } 1076 func (m *MsgWithdrawProposal) String() string { return proto.CompactTextString(m) } 1077 func (*MsgWithdrawProposal) ProtoMessage() {} 1078 func (*MsgWithdrawProposal) Descriptor() ([]byte, []int) { 1079 return fileDescriptor_6b8d3d629f136420, []int{20} 1080 } 1081 func (m *MsgWithdrawProposal) XXX_Unmarshal(b []byte) error { 1082 return m.Unmarshal(b) 1083 } 1084 func (m *MsgWithdrawProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1085 if deterministic { 1086 return xxx_messageInfo_MsgWithdrawProposal.Marshal(b, m, deterministic) 1087 } else { 1088 b = b[:cap(b)] 1089 n, err := m.MarshalToSizedBuffer(b) 1090 if err != nil { 1091 return nil, err 1092 } 1093 return b[:n], nil 1094 } 1095 } 1096 func (m *MsgWithdrawProposal) XXX_Merge(src proto.Message) { 1097 xxx_messageInfo_MsgWithdrawProposal.Merge(m, src) 1098 } 1099 func (m *MsgWithdrawProposal) XXX_Size() int { 1100 return m.Size() 1101 } 1102 func (m *MsgWithdrawProposal) XXX_DiscardUnknown() { 1103 xxx_messageInfo_MsgWithdrawProposal.DiscardUnknown(m) 1104 } 1105 1106 var xxx_messageInfo_MsgWithdrawProposal proto.InternalMessageInfo 1107 1108 func (m *MsgWithdrawProposal) GetProposalId() uint64 { 1109 if m != nil { 1110 return m.ProposalId 1111 } 1112 return 0 1113 } 1114 1115 func (m *MsgWithdrawProposal) GetAddress() string { 1116 if m != nil { 1117 return m.Address 1118 } 1119 return "" 1120 } 1121 1122 // MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. 1123 type MsgWithdrawProposalResponse struct { 1124 } 1125 1126 func (m *MsgWithdrawProposalResponse) Reset() { *m = MsgWithdrawProposalResponse{} } 1127 func (m *MsgWithdrawProposalResponse) String() string { return proto.CompactTextString(m) } 1128 func (*MsgWithdrawProposalResponse) ProtoMessage() {} 1129 func (*MsgWithdrawProposalResponse) Descriptor() ([]byte, []int) { 1130 return fileDescriptor_6b8d3d629f136420, []int{21} 1131 } 1132 func (m *MsgWithdrawProposalResponse) XXX_Unmarshal(b []byte) error { 1133 return m.Unmarshal(b) 1134 } 1135 func (m *MsgWithdrawProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1136 if deterministic { 1137 return xxx_messageInfo_MsgWithdrawProposalResponse.Marshal(b, m, deterministic) 1138 } else { 1139 b = b[:cap(b)] 1140 n, err := m.MarshalToSizedBuffer(b) 1141 if err != nil { 1142 return nil, err 1143 } 1144 return b[:n], nil 1145 } 1146 } 1147 func (m *MsgWithdrawProposalResponse) XXX_Merge(src proto.Message) { 1148 xxx_messageInfo_MsgWithdrawProposalResponse.Merge(m, src) 1149 } 1150 func (m *MsgWithdrawProposalResponse) XXX_Size() int { 1151 return m.Size() 1152 } 1153 func (m *MsgWithdrawProposalResponse) XXX_DiscardUnknown() { 1154 xxx_messageInfo_MsgWithdrawProposalResponse.DiscardUnknown(m) 1155 } 1156 1157 var xxx_messageInfo_MsgWithdrawProposalResponse proto.InternalMessageInfo 1158 1159 // MsgVote is the Msg/Vote request type. 1160 type MsgVote struct { 1161 // proposal is the unique ID of the proposal. 1162 ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 1163 // voter is the voter account address. 1164 Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` 1165 // option is the voter's choice on the proposal. 1166 Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"` 1167 // metadata is any arbitrary metadata attached to the vote. 1168 Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` 1169 // exec defines whether the proposal should be executed 1170 // immediately after voting or not. 1171 Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1.Exec" json:"exec,omitempty"` 1172 } 1173 1174 func (m *MsgVote) Reset() { *m = MsgVote{} } 1175 func (m *MsgVote) String() string { return proto.CompactTextString(m) } 1176 func (*MsgVote) ProtoMessage() {} 1177 func (*MsgVote) Descriptor() ([]byte, []int) { 1178 return fileDescriptor_6b8d3d629f136420, []int{22} 1179 } 1180 func (m *MsgVote) XXX_Unmarshal(b []byte) error { 1181 return m.Unmarshal(b) 1182 } 1183 func (m *MsgVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1184 if deterministic { 1185 return xxx_messageInfo_MsgVote.Marshal(b, m, deterministic) 1186 } else { 1187 b = b[:cap(b)] 1188 n, err := m.MarshalToSizedBuffer(b) 1189 if err != nil { 1190 return nil, err 1191 } 1192 return b[:n], nil 1193 } 1194 } 1195 func (m *MsgVote) XXX_Merge(src proto.Message) { 1196 xxx_messageInfo_MsgVote.Merge(m, src) 1197 } 1198 func (m *MsgVote) XXX_Size() int { 1199 return m.Size() 1200 } 1201 func (m *MsgVote) XXX_DiscardUnknown() { 1202 xxx_messageInfo_MsgVote.DiscardUnknown(m) 1203 } 1204 1205 var xxx_messageInfo_MsgVote proto.InternalMessageInfo 1206 1207 func (m *MsgVote) GetProposalId() uint64 { 1208 if m != nil { 1209 return m.ProposalId 1210 } 1211 return 0 1212 } 1213 1214 func (m *MsgVote) GetVoter() string { 1215 if m != nil { 1216 return m.Voter 1217 } 1218 return "" 1219 } 1220 1221 func (m *MsgVote) GetOption() VoteOption { 1222 if m != nil { 1223 return m.Option 1224 } 1225 return VOTE_OPTION_UNSPECIFIED 1226 } 1227 1228 func (m *MsgVote) GetMetadata() string { 1229 if m != nil { 1230 return m.Metadata 1231 } 1232 return "" 1233 } 1234 1235 func (m *MsgVote) GetExec() Exec { 1236 if m != nil { 1237 return m.Exec 1238 } 1239 return Exec_EXEC_UNSPECIFIED 1240 } 1241 1242 // MsgVoteResponse is the Msg/Vote response type. 1243 type MsgVoteResponse struct { 1244 } 1245 1246 func (m *MsgVoteResponse) Reset() { *m = MsgVoteResponse{} } 1247 func (m *MsgVoteResponse) String() string { return proto.CompactTextString(m) } 1248 func (*MsgVoteResponse) ProtoMessage() {} 1249 func (*MsgVoteResponse) Descriptor() ([]byte, []int) { 1250 return fileDescriptor_6b8d3d629f136420, []int{23} 1251 } 1252 func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error { 1253 return m.Unmarshal(b) 1254 } 1255 func (m *MsgVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1256 if deterministic { 1257 return xxx_messageInfo_MsgVoteResponse.Marshal(b, m, deterministic) 1258 } else { 1259 b = b[:cap(b)] 1260 n, err := m.MarshalToSizedBuffer(b) 1261 if err != nil { 1262 return nil, err 1263 } 1264 return b[:n], nil 1265 } 1266 } 1267 func (m *MsgVoteResponse) XXX_Merge(src proto.Message) { 1268 xxx_messageInfo_MsgVoteResponse.Merge(m, src) 1269 } 1270 func (m *MsgVoteResponse) XXX_Size() int { 1271 return m.Size() 1272 } 1273 func (m *MsgVoteResponse) XXX_DiscardUnknown() { 1274 xxx_messageInfo_MsgVoteResponse.DiscardUnknown(m) 1275 } 1276 1277 var xxx_messageInfo_MsgVoteResponse proto.InternalMessageInfo 1278 1279 // MsgExec is the Msg/Exec request type. 1280 type MsgExec struct { 1281 // proposal is the unique ID of the proposal. 1282 ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 1283 // executor is the account address used to execute the proposal. 1284 Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` 1285 } 1286 1287 func (m *MsgExec) Reset() { *m = MsgExec{} } 1288 func (m *MsgExec) String() string { return proto.CompactTextString(m) } 1289 func (*MsgExec) ProtoMessage() {} 1290 func (*MsgExec) Descriptor() ([]byte, []int) { 1291 return fileDescriptor_6b8d3d629f136420, []int{24} 1292 } 1293 func (m *MsgExec) XXX_Unmarshal(b []byte) error { 1294 return m.Unmarshal(b) 1295 } 1296 func (m *MsgExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1297 if deterministic { 1298 return xxx_messageInfo_MsgExec.Marshal(b, m, deterministic) 1299 } else { 1300 b = b[:cap(b)] 1301 n, err := m.MarshalToSizedBuffer(b) 1302 if err != nil { 1303 return nil, err 1304 } 1305 return b[:n], nil 1306 } 1307 } 1308 func (m *MsgExec) XXX_Merge(src proto.Message) { 1309 xxx_messageInfo_MsgExec.Merge(m, src) 1310 } 1311 func (m *MsgExec) XXX_Size() int { 1312 return m.Size() 1313 } 1314 func (m *MsgExec) XXX_DiscardUnknown() { 1315 xxx_messageInfo_MsgExec.DiscardUnknown(m) 1316 } 1317 1318 var xxx_messageInfo_MsgExec proto.InternalMessageInfo 1319 1320 func (m *MsgExec) GetProposalId() uint64 { 1321 if m != nil { 1322 return m.ProposalId 1323 } 1324 return 0 1325 } 1326 1327 func (m *MsgExec) GetExecutor() string { 1328 if m != nil { 1329 return m.Executor 1330 } 1331 return "" 1332 } 1333 1334 // MsgExecResponse is the Msg/Exec request type. 1335 type MsgExecResponse struct { 1336 // result is the final result of the proposal execution. 1337 Result ProposalExecutorResult `protobuf:"varint,2,opt,name=result,proto3,enum=cosmos.group.v1.ProposalExecutorResult" json:"result,omitempty"` 1338 } 1339 1340 func (m *MsgExecResponse) Reset() { *m = MsgExecResponse{} } 1341 func (m *MsgExecResponse) String() string { return proto.CompactTextString(m) } 1342 func (*MsgExecResponse) ProtoMessage() {} 1343 func (*MsgExecResponse) Descriptor() ([]byte, []int) { 1344 return fileDescriptor_6b8d3d629f136420, []int{25} 1345 } 1346 func (m *MsgExecResponse) XXX_Unmarshal(b []byte) error { 1347 return m.Unmarshal(b) 1348 } 1349 func (m *MsgExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1350 if deterministic { 1351 return xxx_messageInfo_MsgExecResponse.Marshal(b, m, deterministic) 1352 } else { 1353 b = b[:cap(b)] 1354 n, err := m.MarshalToSizedBuffer(b) 1355 if err != nil { 1356 return nil, err 1357 } 1358 return b[:n], nil 1359 } 1360 } 1361 func (m *MsgExecResponse) XXX_Merge(src proto.Message) { 1362 xxx_messageInfo_MsgExecResponse.Merge(m, src) 1363 } 1364 func (m *MsgExecResponse) XXX_Size() int { 1365 return m.Size() 1366 } 1367 func (m *MsgExecResponse) XXX_DiscardUnknown() { 1368 xxx_messageInfo_MsgExecResponse.DiscardUnknown(m) 1369 } 1370 1371 var xxx_messageInfo_MsgExecResponse proto.InternalMessageInfo 1372 1373 func (m *MsgExecResponse) GetResult() ProposalExecutorResult { 1374 if m != nil { 1375 return m.Result 1376 } 1377 return PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 1378 } 1379 1380 // MsgLeaveGroup is the Msg/LeaveGroup request type. 1381 type MsgLeaveGroup struct { 1382 // address is the account address of the group member. 1383 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 1384 // group_id is the unique ID of the group. 1385 GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 1386 } 1387 1388 func (m *MsgLeaveGroup) Reset() { *m = MsgLeaveGroup{} } 1389 func (m *MsgLeaveGroup) String() string { return proto.CompactTextString(m) } 1390 func (*MsgLeaveGroup) ProtoMessage() {} 1391 func (*MsgLeaveGroup) Descriptor() ([]byte, []int) { 1392 return fileDescriptor_6b8d3d629f136420, []int{26} 1393 } 1394 func (m *MsgLeaveGroup) XXX_Unmarshal(b []byte) error { 1395 return m.Unmarshal(b) 1396 } 1397 func (m *MsgLeaveGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1398 if deterministic { 1399 return xxx_messageInfo_MsgLeaveGroup.Marshal(b, m, deterministic) 1400 } else { 1401 b = b[:cap(b)] 1402 n, err := m.MarshalToSizedBuffer(b) 1403 if err != nil { 1404 return nil, err 1405 } 1406 return b[:n], nil 1407 } 1408 } 1409 func (m *MsgLeaveGroup) XXX_Merge(src proto.Message) { 1410 xxx_messageInfo_MsgLeaveGroup.Merge(m, src) 1411 } 1412 func (m *MsgLeaveGroup) XXX_Size() int { 1413 return m.Size() 1414 } 1415 func (m *MsgLeaveGroup) XXX_DiscardUnknown() { 1416 xxx_messageInfo_MsgLeaveGroup.DiscardUnknown(m) 1417 } 1418 1419 var xxx_messageInfo_MsgLeaveGroup proto.InternalMessageInfo 1420 1421 func (m *MsgLeaveGroup) GetAddress() string { 1422 if m != nil { 1423 return m.Address 1424 } 1425 return "" 1426 } 1427 1428 func (m *MsgLeaveGroup) GetGroupId() uint64 { 1429 if m != nil { 1430 return m.GroupId 1431 } 1432 return 0 1433 } 1434 1435 // MsgLeaveGroupResponse is the Msg/LeaveGroup response type. 1436 type MsgLeaveGroupResponse struct { 1437 } 1438 1439 func (m *MsgLeaveGroupResponse) Reset() { *m = MsgLeaveGroupResponse{} } 1440 func (m *MsgLeaveGroupResponse) String() string { return proto.CompactTextString(m) } 1441 func (*MsgLeaveGroupResponse) ProtoMessage() {} 1442 func (*MsgLeaveGroupResponse) Descriptor() ([]byte, []int) { 1443 return fileDescriptor_6b8d3d629f136420, []int{27} 1444 } 1445 func (m *MsgLeaveGroupResponse) XXX_Unmarshal(b []byte) error { 1446 return m.Unmarshal(b) 1447 } 1448 func (m *MsgLeaveGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1449 if deterministic { 1450 return xxx_messageInfo_MsgLeaveGroupResponse.Marshal(b, m, deterministic) 1451 } else { 1452 b = b[:cap(b)] 1453 n, err := m.MarshalToSizedBuffer(b) 1454 if err != nil { 1455 return nil, err 1456 } 1457 return b[:n], nil 1458 } 1459 } 1460 func (m *MsgLeaveGroupResponse) XXX_Merge(src proto.Message) { 1461 xxx_messageInfo_MsgLeaveGroupResponse.Merge(m, src) 1462 } 1463 func (m *MsgLeaveGroupResponse) XXX_Size() int { 1464 return m.Size() 1465 } 1466 func (m *MsgLeaveGroupResponse) XXX_DiscardUnknown() { 1467 xxx_messageInfo_MsgLeaveGroupResponse.DiscardUnknown(m) 1468 } 1469 1470 var xxx_messageInfo_MsgLeaveGroupResponse proto.InternalMessageInfo 1471 1472 func init() { 1473 proto.RegisterEnum("cosmos.group.v1.Exec", Exec_name, Exec_value) 1474 proto.RegisterType((*MsgCreateGroup)(nil), "cosmos.group.v1.MsgCreateGroup") 1475 proto.RegisterType((*MsgCreateGroupResponse)(nil), "cosmos.group.v1.MsgCreateGroupResponse") 1476 proto.RegisterType((*MsgUpdateGroupMembers)(nil), "cosmos.group.v1.MsgUpdateGroupMembers") 1477 proto.RegisterType((*MsgUpdateGroupMembersResponse)(nil), "cosmos.group.v1.MsgUpdateGroupMembersResponse") 1478 proto.RegisterType((*MsgUpdateGroupAdmin)(nil), "cosmos.group.v1.MsgUpdateGroupAdmin") 1479 proto.RegisterType((*MsgUpdateGroupAdminResponse)(nil), "cosmos.group.v1.MsgUpdateGroupAdminResponse") 1480 proto.RegisterType((*MsgUpdateGroupMetadata)(nil), "cosmos.group.v1.MsgUpdateGroupMetadata") 1481 proto.RegisterType((*MsgUpdateGroupMetadataResponse)(nil), "cosmos.group.v1.MsgUpdateGroupMetadataResponse") 1482 proto.RegisterType((*MsgCreateGroupPolicy)(nil), "cosmos.group.v1.MsgCreateGroupPolicy") 1483 proto.RegisterType((*MsgCreateGroupPolicyResponse)(nil), "cosmos.group.v1.MsgCreateGroupPolicyResponse") 1484 proto.RegisterType((*MsgUpdateGroupPolicyAdmin)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyAdmin") 1485 proto.RegisterType((*MsgUpdateGroupPolicyAdminResponse)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse") 1486 proto.RegisterType((*MsgCreateGroupWithPolicy)(nil), "cosmos.group.v1.MsgCreateGroupWithPolicy") 1487 proto.RegisterType((*MsgCreateGroupWithPolicyResponse)(nil), "cosmos.group.v1.MsgCreateGroupWithPolicyResponse") 1488 proto.RegisterType((*MsgUpdateGroupPolicyDecisionPolicy)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy") 1489 proto.RegisterType((*MsgUpdateGroupPolicyDecisionPolicyResponse)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse") 1490 proto.RegisterType((*MsgUpdateGroupPolicyMetadata)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyMetadata") 1491 proto.RegisterType((*MsgUpdateGroupPolicyMetadataResponse)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse") 1492 proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos.group.v1.MsgSubmitProposal") 1493 proto.RegisterType((*MsgSubmitProposalResponse)(nil), "cosmos.group.v1.MsgSubmitProposalResponse") 1494 proto.RegisterType((*MsgWithdrawProposal)(nil), "cosmos.group.v1.MsgWithdrawProposal") 1495 proto.RegisterType((*MsgWithdrawProposalResponse)(nil), "cosmos.group.v1.MsgWithdrawProposalResponse") 1496 proto.RegisterType((*MsgVote)(nil), "cosmos.group.v1.MsgVote") 1497 proto.RegisterType((*MsgVoteResponse)(nil), "cosmos.group.v1.MsgVoteResponse") 1498 proto.RegisterType((*MsgExec)(nil), "cosmos.group.v1.MsgExec") 1499 proto.RegisterType((*MsgExecResponse)(nil), "cosmos.group.v1.MsgExecResponse") 1500 proto.RegisterType((*MsgLeaveGroup)(nil), "cosmos.group.v1.MsgLeaveGroup") 1501 proto.RegisterType((*MsgLeaveGroupResponse)(nil), "cosmos.group.v1.MsgLeaveGroupResponse") 1502 } 1503 1504 func init() { proto.RegisterFile("cosmos/group/v1/tx.proto", fileDescriptor_6b8d3d629f136420) } 1505 1506 var fileDescriptor_6b8d3d629f136420 = []byte{ 1507 // 1442 bytes of a gzipped FileDescriptorProto 1508 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, 1509 0x17, 0xcf, 0xda, 0xce, 0xaf, 0x97, 0x6f, 0xdd, 0x64, 0x9b, 0xb4, 0x9b, 0x6d, 0x6b, 0xbb, 0xd3, 1510 0xb4, 0x49, 0xad, 0xc6, 0x6e, 0x9c, 0x6f, 0x2b, 0x61, 0x10, 0xa8, 0x49, 0x0d, 0x0a, 0xc2, 0x10, 1511 0x6d, 0x5b, 0x0a, 0x5c, 0xcc, 0x26, 0xde, 0x6e, 0x57, 0x64, 0xbd, 0xc6, 0xb3, 0x4e, 0x93, 0x1b, 1512 0x3f, 0x2e, 0x80, 0x90, 0x40, 0x82, 0x3f, 0x00, 0x6e, 0x1c, 0x8b, 0xd4, 0x03, 0x37, 0x6e, 0xa8, 1513 0x2a, 0x97, 0x8a, 0x13, 0x27, 0x04, 0xad, 0x50, 0x6f, 0xfc, 0x0b, 0xa0, 0x9d, 0xd9, 0x1d, 0xef, 1514 0x78, 0x77, 0xbd, 0x5b, 0xcb, 0x82, 0x4b, 0x94, 0x9d, 0xf7, 0x79, 0xbf, 0x3e, 0xef, 0xcd, 0x9b, 1515 0x19, 0x83, 0xb4, 0x6b, 0x61, 0xd3, 0xc2, 0x65, 0xbd, 0x63, 0x75, 0xdb, 0xe5, 0xfd, 0xb5, 0xb2, 1516 0x7d, 0x50, 0x6a, 0x77, 0x2c, 0xdb, 0x12, 0x8f, 0x52, 0x49, 0x89, 0x48, 0x4a, 0xfb, 0x6b, 0xf2, 1517 0xbc, 0x6e, 0xe9, 0x16, 0x91, 0x95, 0x9d, 0xff, 0x28, 0x4c, 0x5e, 0xa4, 0xb0, 0x06, 0x15, 0xb8, 1518 0x3a, 0xae, 0x48, 0xb7, 0x2c, 0x7d, 0x4f, 0x2b, 0x93, 0xaf, 0x9d, 0xee, 0xed, 0xb2, 0xda, 0x3a, 1519 0x74, 0x45, 0x27, 0x03, 0x6e, 0x0f, 0xdb, 0x9a, 0xa7, 0x77, 0xc2, 0x15, 0x9a, 0x58, 0x77, 0x44, 1520 0x26, 0xd6, 0x5d, 0xc1, 0x9c, 0x6a, 0x1a, 0x2d, 0xab, 0x4c, 0xfe, 0xd2, 0x25, 0xf4, 0xb3, 0x00, 1521 0xd9, 0x3a, 0xd6, 0x37, 0x3b, 0x9a, 0x6a, 0x6b, 0xaf, 0x38, 0xd6, 0xc4, 0x12, 0x8c, 0xab, 0x4d, 1522 0xd3, 0x68, 0x49, 0x42, 0x41, 0x58, 0x99, 0xde, 0x90, 0x7e, 0xb9, 0xbf, 0x3a, 0xef, 0xc6, 0x75, 1523 0xb5, 0xd9, 0xec, 0x68, 0x18, 0x5f, 0xb7, 0x3b, 0x46, 0x4b, 0x57, 0x28, 0x4c, 0xdc, 0x84, 0x49, 1524 0x53, 0x33, 0x77, 0xb4, 0x0e, 0x96, 0x52, 0x85, 0xf4, 0xca, 0x4c, 0x25, 0x57, 0xea, 0x4b, 0xbd, 1525 0x54, 0x27, 0x72, 0x45, 0x7b, 0xbf, 0xab, 0x61, 0x7b, 0x63, 0xfa, 0xc1, 0x6f, 0xf9, 0xb1, 0xef, 1526 0x9e, 0xde, 0x2b, 0x0a, 0x8a, 0xa7, 0x29, 0xca, 0x30, 0x65, 0x6a, 0xb6, 0xda, 0x54, 0x6d, 0x55, 1527 0x4a, 0x3b, 0x7e, 0x15, 0xf6, 0x5d, 0x5d, 0xf9, 0xe8, 0xe9, 0xbd, 0x22, 0x75, 0xf6, 0xd9, 0xd3, 1528 0x7b, 0x45, 0x97, 0xb1, 0x55, 0xdc, 0x7c, 0xaf, 0xcc, 0x87, 0x8e, 0xd6, 0xe1, 0x38, 0xbf, 0xa2, 1529 0x68, 0xb8, 0x6d, 0xb5, 0xb0, 0x26, 0x2e, 0xc2, 0x14, 0x89, 0xa6, 0x61, 0x34, 0x49, 0x5e, 0x19, 1530 0x65, 0x92, 0x7c, 0x6f, 0x35, 0xd1, 0x9f, 0x02, 0x2c, 0xd4, 0xb1, 0x7e, 0xb3, 0xdd, 0xf4, 0xb4, 1531 0xea, 0x6e, 0x50, 0xcf, 0xca, 0x84, 0xdf, 0x49, 0x8a, 0x73, 0x22, 0x6e, 0x43, 0x96, 0xa6, 0xda, 1532 0xe8, 0x12, 0x3f, 0x58, 0x4a, 0x3f, 0x2b, 0x57, 0x47, 0xa8, 0x01, 0x1a, 0x27, 0xae, 0x96, 0x79, 1533 0x56, 0x0a, 0x3c, 0x2b, 0xc1, 0x6c, 0x50, 0x1e, 0x4e, 0x87, 0x0a, 0x3c, 0x8e, 0xd0, 0x4f, 0x02, 1534 0x1c, 0xe3, 0x11, 0x57, 0x49, 0x5a, 0x23, 0xa4, 0xe1, 0x32, 0x4c, 0xb7, 0xb4, 0xbb, 0x0d, 0x6a, 1535 0x2e, 0x1d, 0x63, 0x6e, 0xaa, 0xa5, 0xdd, 0x25, 0x11, 0x54, 0x57, 0xf9, 0x5c, 0x73, 0x91, 0xb9, 1536 0x12, 0x38, 0x3a, 0x0d, 0x27, 0x43, 0x96, 0x59, 0x9e, 0xdf, 0x0b, 0xa4, 0x4d, 0x38, 0x26, 0x68, 1537 0xab, 0x8d, 0x32, 0xd5, 0x41, 0x1d, 0x7d, 0x89, 0xcf, 0xe7, 0xcc, 0x80, 0xda, 0x51, 0x0d, 0x54, 1538 0x80, 0x5c, 0xb8, 0x84, 0x65, 0xf5, 0x75, 0x0a, 0xe6, 0xf9, 0xe6, 0xdf, 0xb6, 0xf6, 0x8c, 0xdd, 1539 0xc3, 0x7f, 0x29, 0x27, 0x51, 0x85, 0xa3, 0x4d, 0x6d, 0xd7, 0xc0, 0x86, 0xd5, 0x6a, 0xb4, 0x89, 1540 0x67, 0x29, 0x53, 0x10, 0x56, 0x66, 0x2a, 0xf3, 0x25, 0x3a, 0xc7, 0x4a, 0xde, 0x1c, 0x2b, 0x5d, 1541 0x6d, 0x1d, 0x6e, 0xa0, 0x87, 0xf7, 0x57, 0x73, 0xfd, 0xbd, 0x7f, 0xcd, 0x35, 0x40, 0x23, 0x57, 1542 0xb2, 0x4d, 0xee, 0xbb, 0x5a, 0xf9, 0xe4, 0x9b, 0xfc, 0x18, 0x4f, 0x5d, 0x3e, 0x72, 0x18, 0x50, 1543 0x1d, 0xa4, 0xc0, 0xa9, 0xb0, 0x75, 0x36, 0x18, 0x2a, 0x30, 0xa9, 0x52, 0x16, 0x62, 0xf9, 0xf1, 1544 0x80, 0xe8, 0xe3, 0x14, 0x2c, 0xf2, 0xd5, 0xa0, 0x46, 0x87, 0xdb, 0x2e, 0xaf, 0xc2, 0x3c, 0xe5, 1545 0x9b, 0xb2, 0xd6, 0xf0, 0xc2, 0x49, 0xc5, 0xa8, 0x8b, 0xba, 0xdf, 0x33, 0x91, 0x0c, 0xbb, 0xbf, 1546 0xd6, 0x79, 0x52, 0x97, 0x22, 0xfb, 0xd1, 0x97, 0x27, 0x3a, 0x0b, 0x67, 0x22, 0x85, 0xac, 0x2b, 1547 0x7f, 0x48, 0x83, 0xc4, 0xf3, 0x7f, 0xcb, 0xb0, 0xef, 0x0c, 0xd9, 0x99, 0x23, 0x39, 0x69, 0xce, 1548 0x41, 0x96, 0xd2, 0xdd, 0xd7, 0xc9, 0x47, 0x74, 0x6e, 0x12, 0x54, 0x60, 0x81, 0xab, 0x0a, 0x43, 1549 0x67, 0x08, 0xfa, 0x98, 0x8f, 0x7c, 0xa6, 0xb3, 0xd6, 0xa7, 0xa3, 0x62, 0xb7, 0x12, 0xe3, 0x05, 1550 0x61, 0x65, 0x8a, 0x2f, 0x18, 0xa6, 0xcd, 0x12, 0xb2, 0x6b, 0x26, 0x46, 0xbc, 0x6b, 0xae, 0x04, 1551 0x77, 0xcd, 0xd9, 0xc8, 0x5d, 0xd3, 0xab, 0x0e, 0xfa, 0x54, 0x80, 0x42, 0x94, 0x30, 0xc1, 0xb9, 1552 0x3a, 0xca, 0xbe, 0x46, 0x3f, 0xa6, 0x00, 0x85, 0x35, 0x1b, 0x9f, 0xfa, 0x7f, 0xba, 0xf5, 0x42, 1553 0x2a, 0x99, 0x1e, 0x71, 0x25, 0xab, 0xc1, 0x4a, 0x2e, 0x47, 0x6e, 0x55, 0xde, 0x16, 0xba, 0x08, 1554 0xc5, 0x78, 0x02, 0xd9, 0xb6, 0xfd, 0x4b, 0x20, 0x63, 0x33, 0x00, 0x1f, 0xfa, 0xa0, 0x1c, 0x25, 1555 0xd3, 0x83, 0x4e, 0xd6, 0x2b, 0x49, 0xe9, 0xe1, 0xf3, 0x41, 0xe7, 0x61, 0x69, 0x90, 0x9c, 0x11, 1556 0xf3, 0x47, 0x0a, 0xe6, 0xea, 0x58, 0xbf, 0xde, 0xdd, 0x31, 0x0d, 0x7b, 0xbb, 0x63, 0xb5, 0x2d, 1557 0xac, 0xee, 0x45, 0x66, 0x27, 0x0c, 0x91, 0xdd, 0x29, 0x98, 0x6e, 0x13, 0xbb, 0xde, 0x98, 0x9b, 1558 0x56, 0x7a, 0x0b, 0x03, 0x4f, 0xe0, 0x4b, 0x8e, 0x0c, 0x63, 0x55, 0xd7, 0xb0, 0x94, 0x21, 0xf3, 1559 0x31, 0xb4, 0xf5, 0x14, 0x86, 0x12, 0x2f, 0x40, 0x46, 0x3b, 0xd0, 0x76, 0xc9, 0x7c, 0xca, 0x56, 1560 0x16, 0x02, 0xd3, 0xb4, 0x76, 0xa0, 0xed, 0x2a, 0x04, 0x22, 0xce, 0xc3, 0xb8, 0x6d, 0xd8, 0x7b, 1561 0x1a, 0x19, 0x4f, 0xd3, 0x0a, 0xfd, 0x10, 0x25, 0x98, 0xc4, 0x5d, 0xd3, 0x54, 0x3b, 0x87, 0xd2, 1562 0x24, 0x59, 0xf7, 0x3e, 0xab, 0xcf, 0x79, 0xbd, 0xda, 0x0b, 0xde, 0x29, 0x08, 0xf2, 0x15, 0x84, 1563 0x3e, 0x5e, 0x02, 0x6c, 0xa2, 0x17, 0xc8, 0xe9, 0xca, 0x2f, 0xb2, 0x81, 0x93, 0x87, 0x99, 0xb6, 1564 0xbb, 0xd6, 0x9b, 0x39, 0xe0, 0x2d, 0x6d, 0x35, 0xd1, 0xb7, 0xf4, 0x16, 0xeb, 0xcc, 0xaa, 0x66, 1565 0x47, 0xbd, 0xcb, 0x6a, 0x14, 0xa7, 0xe8, 0xbf, 0x09, 0xa4, 0x12, 0xde, 0x04, 0xaa, 0x97, 0x9d, 1566 0x0c, 0xbd, 0xaf, 0xfe, 0xa3, 0x93, 0xe5, 0xd7, 0x1f, 0x8b, 0x7b, 0x41, 0xed, 0x5f, 0x66, 0x4d, 1567 0xf6, 0xb7, 0x00, 0x93, 0x75, 0xac, 0xbf, 0x69, 0xd9, 0xf1, 0xf9, 0x3a, 0x3b, 0x71, 0xdf, 0xb2, 1568 0xb5, 0x4e, 0x6c, 0xd0, 0x14, 0x26, 0xae, 0xc3, 0x84, 0xd5, 0xb6, 0x0d, 0x8b, 0xde, 0x0f, 0xb2, 1569 0x95, 0x93, 0x81, 0xaa, 0x3b, 0x7e, 0xdf, 0x20, 0x10, 0xc5, 0x85, 0x72, 0x6d, 0x97, 0xe9, 0x6b, 1570 0xbb, 0xe4, 0x4d, 0x54, 0x5d, 0x26, 0xbb, 0x93, 0xc4, 0xe1, 0x90, 0x25, 0x85, 0x91, 0xe5, 0x78, 1571 0x47, 0x73, 0x70, 0xd4, 0xfd, 0x97, 0x91, 0xf2, 0x39, 0x25, 0xc5, 0xb1, 0x16, 0x4f, 0xca, 0xff, 1572 0x61, 0xca, 0x71, 0xd8, 0xb5, 0xad, 0x78, 0x5e, 0x18, 0xb2, 0x5a, 0x74, 0xc2, 0x63, 0x9f, 0x91, 1573 0x11, 0x3a, 0x21, 0x20, 0x85, 0x44, 0x48, 0x72, 0xf3, 0x5a, 0xf3, 0x25, 0x98, 0xe8, 0x68, 0xb8, 1574 0xbb, 0x67, 0x13, 0x97, 0xd9, 0xca, 0x72, 0x80, 0x0a, 0xaf, 0xd2, 0x35, 0xd7, 0x85, 0x42, 0xe0, 1575 0x8a, 0xab, 0x86, 0xbe, 0x10, 0xe0, 0x48, 0x1d, 0xeb, 0xaf, 0x69, 0xea, 0xbe, 0xfb, 0x16, 0x1f, 1576 0xe2, 0x76, 0x3a, 0xe0, 0xfe, 0x4e, 0xdf, 0x8c, 0xfe, 0x76, 0xcd, 0x85, 0xe5, 0xd7, 0xf3, 0x8f, 1577 0x4e, 0x90, 0xa7, 0x71, 0x6f, 0xc1, 0xcb, 0xb5, 0x58, 0x84, 0x4c, 0x8d, 0x8e, 0x85, 0xd9, 0xda, 1578 0x5b, 0xb5, 0xcd, 0xc6, 0xcd, 0xd7, 0xaf, 0x6f, 0xd7, 0x36, 0xb7, 0x5e, 0xde, 0xaa, 0x5d, 0x9b, 1579 0x1d, 0x13, 0xff, 0x07, 0x53, 0x64, 0xf5, 0x86, 0xf2, 0xf6, 0xac, 0x50, 0x79, 0x38, 0x03, 0xe9, 1580 0x3a, 0xd6, 0xc5, 0x5b, 0x30, 0xe3, 0xff, 0x9d, 0x21, 0x1f, 0xbc, 0xbc, 0x71, 0xb7, 0x0d, 0x79, 1581 0x39, 0x06, 0xc0, 0x88, 0xdf, 0x03, 0x31, 0xe4, 0xf5, 0x7e, 0x3e, 0x4c, 0x3d, 0x88, 0x93, 0x4b, 1582 0xc9, 0x70, 0xcc, 0xdb, 0x6d, 0x98, 0x0d, 0x3c, 0x91, 0x97, 0x62, 0x6c, 0x10, 0x94, 0x7c, 0x31, 1583 0x09, 0x8a, 0xf9, 0xb1, 0xe0, 0x58, 0xd8, 0x13, 0x75, 0x39, 0x36, 0x5c, 0x0a, 0x94, 0xcb, 0x09, 1584 0x81, 0xcc, 0xa1, 0x01, 0x73, 0xc1, 0xd7, 0xe3, 0xb9, 0x98, 0x22, 0x50, 0x98, 0xbc, 0x9a, 0x08, 1585 0xc6, 0x5c, 0x75, 0x61, 0x21, 0xfc, 0x49, 0x70, 0x21, 0xc6, 0x4e, 0x0f, 0x2a, 0xaf, 0x25, 0x86, 1586 0x32, 0xb7, 0x07, 0x70, 0x3c, 0xe2, 0xd1, 0x56, 0x8c, 0x21, 0xcb, 0x87, 0x95, 0x2b, 0xc9, 0xb1, 1587 0xcc, 0xf3, 0x57, 0x02, 0xe4, 0xe3, 0x6e, 0xaf, 0xeb, 0x89, 0xec, 0xf2, 0x4a, 0xf2, 0xf3, 0x43, 1588 0x28, 0xb1, 0xa8, 0x3e, 0x14, 0x60, 0x31, 0xfa, 0x8e, 0xb7, 0x9a, 0xc8, 0x34, 0xeb, 0xb7, 0xcb, 1589 0xcf, 0x04, 0x67, 0x31, 0xbc, 0x0b, 0xd9, 0xbe, 0xdb, 0x14, 0x0a, 0x33, 0xc4, 0x63, 0xe4, 0x62, 1590 0x3c, 0xc6, 0xbf, 0x61, 0x03, 0xb7, 0x81, 0xd0, 0x0d, 0xdb, 0x8f, 0x0a, 0xdf, 0xb0, 0x51, 0xc7, 1591 0xb6, 0xb8, 0x01, 0x19, 0x72, 0x64, 0x4b, 0x61, 0x5a, 0x8e, 0x44, 0x2e, 0x44, 0x49, 0xfc, 0x36, 1592 0xc8, 0x5c, 0x0d, 0xb5, 0xe1, 0x48, 0xc2, 0x6d, 0x70, 0xe7, 0xd0, 0x0d, 0x00, 0xdf, 0x11, 0x92, 1593 0x0b, 0xc3, 0xf7, 0xe4, 0xf2, 0xf9, 0xc1, 0x72, 0xcf, 0xaa, 0x3c, 0xfe, 0x81, 0xf3, 0x8e, 0xde, 1594 0x78, 0xf1, 0xc1, 0xe3, 0x9c, 0xf0, 0xe8, 0x71, 0x4e, 0xf8, 0xfd, 0x71, 0x4e, 0xf8, 0xf2, 0x49, 1595 0x6e, 0xec, 0xd1, 0x93, 0xdc, 0xd8, 0xaf, 0x4f, 0x72, 0x63, 0xef, 0x2c, 0xe9, 0x86, 0x7d, 0xa7, 1596 0xbb, 0x53, 0xda, 0xb5, 0x4c, 0xf7, 0x77, 0xec, 0xb2, 0xef, 0x74, 0x39, 0xa0, 0xe7, 0xcb, 0xce, 1597 0x04, 0xb9, 0x8a, 0xae, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x17, 0xcf, 0x29, 0x39, 0x17, 1598 0x00, 0x00, 1599 } 1600 1601 // Reference imports to suppress errors if they are not otherwise used. 1602 var _ context.Context 1603 var _ grpc.ClientConn 1604 1605 // This is a compile-time assertion to ensure that this generated file 1606 // is compatible with the grpc package it is being compiled against. 1607 const _ = grpc.SupportPackageIsVersion4 1608 1609 // MsgClient is the client API for Msg service. 1610 // 1611 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1612 type MsgClient interface { 1613 // CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. 1614 CreateGroup(ctx context.Context, in *MsgCreateGroup, opts ...grpc.CallOption) (*MsgCreateGroupResponse, error) 1615 // UpdateGroupMembers updates the group members with given group id and admin address. 1616 UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMembers, opts ...grpc.CallOption) (*MsgUpdateGroupMembersResponse, error) 1617 // UpdateGroupAdmin updates the group admin with given group id and previous admin address. 1618 UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupAdminResponse, error) 1619 // UpdateGroupMetadata updates the group metadata with given group id and admin address. 1620 UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupMetadataResponse, error) 1621 // CreateGroupPolicy creates a new group policy using given DecisionPolicy. 1622 CreateGroupPolicy(ctx context.Context, in *MsgCreateGroupPolicy, opts ...grpc.CallOption) (*MsgCreateGroupPolicyResponse, error) 1623 // CreateGroupWithPolicy creates a new group with policy. 1624 CreateGroupWithPolicy(ctx context.Context, in *MsgCreateGroupWithPolicy, opts ...grpc.CallOption) (*MsgCreateGroupWithPolicyResponse, error) 1625 // UpdateGroupPolicyAdmin updates a group policy admin. 1626 UpdateGroupPolicyAdmin(ctx context.Context, in *MsgUpdateGroupPolicyAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyAdminResponse, error) 1627 // UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. 1628 UpdateGroupPolicyDecisionPolicy(ctx context.Context, in *MsgUpdateGroupPolicyDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) 1629 // UpdateGroupPolicyMetadata updates a group policy metadata. 1630 UpdateGroupPolicyMetadata(ctx context.Context, in *MsgUpdateGroupPolicyMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyMetadataResponse, error) 1631 // SubmitProposal submits a new proposal. 1632 SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) 1633 // WithdrawProposal withdraws a proposal. 1634 WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error) 1635 // Vote allows a voter to vote on a proposal. 1636 Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) 1637 // Exec executes a proposal. 1638 Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) 1639 // LeaveGroup allows a group member to leave the group. 1640 LeaveGroup(ctx context.Context, in *MsgLeaveGroup, opts ...grpc.CallOption) (*MsgLeaveGroupResponse, error) 1641 } 1642 1643 type msgClient struct { 1644 cc grpc1.ClientConn 1645 } 1646 1647 func NewMsgClient(cc grpc1.ClientConn) MsgClient { 1648 return &msgClient{cc} 1649 } 1650 1651 func (c *msgClient) CreateGroup(ctx context.Context, in *MsgCreateGroup, opts ...grpc.CallOption) (*MsgCreateGroupResponse, error) { 1652 out := new(MsgCreateGroupResponse) 1653 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/CreateGroup", in, out, opts...) 1654 if err != nil { 1655 return nil, err 1656 } 1657 return out, nil 1658 } 1659 1660 func (c *msgClient) UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMembers, opts ...grpc.CallOption) (*MsgUpdateGroupMembersResponse, error) { 1661 out := new(MsgUpdateGroupMembersResponse) 1662 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupMembers", in, out, opts...) 1663 if err != nil { 1664 return nil, err 1665 } 1666 return out, nil 1667 } 1668 1669 func (c *msgClient) UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupAdminResponse, error) { 1670 out := new(MsgUpdateGroupAdminResponse) 1671 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupAdmin", in, out, opts...) 1672 if err != nil { 1673 return nil, err 1674 } 1675 return out, nil 1676 } 1677 1678 func (c *msgClient) UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupMetadataResponse, error) { 1679 out := new(MsgUpdateGroupMetadataResponse) 1680 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupMetadata", in, out, opts...) 1681 if err != nil { 1682 return nil, err 1683 } 1684 return out, nil 1685 } 1686 1687 func (c *msgClient) CreateGroupPolicy(ctx context.Context, in *MsgCreateGroupPolicy, opts ...grpc.CallOption) (*MsgCreateGroupPolicyResponse, error) { 1688 out := new(MsgCreateGroupPolicyResponse) 1689 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/CreateGroupPolicy", in, out, opts...) 1690 if err != nil { 1691 return nil, err 1692 } 1693 return out, nil 1694 } 1695 1696 func (c *msgClient) CreateGroupWithPolicy(ctx context.Context, in *MsgCreateGroupWithPolicy, opts ...grpc.CallOption) (*MsgCreateGroupWithPolicyResponse, error) { 1697 out := new(MsgCreateGroupWithPolicyResponse) 1698 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/CreateGroupWithPolicy", in, out, opts...) 1699 if err != nil { 1700 return nil, err 1701 } 1702 return out, nil 1703 } 1704 1705 func (c *msgClient) UpdateGroupPolicyAdmin(ctx context.Context, in *MsgUpdateGroupPolicyAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyAdminResponse, error) { 1706 out := new(MsgUpdateGroupPolicyAdminResponse) 1707 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin", in, out, opts...) 1708 if err != nil { 1709 return nil, err 1710 } 1711 return out, nil 1712 } 1713 1714 func (c *msgClient) UpdateGroupPolicyDecisionPolicy(ctx context.Context, in *MsgUpdateGroupPolicyDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) { 1715 out := new(MsgUpdateGroupPolicyDecisionPolicyResponse) 1716 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy", in, out, opts...) 1717 if err != nil { 1718 return nil, err 1719 } 1720 return out, nil 1721 } 1722 1723 func (c *msgClient) UpdateGroupPolicyMetadata(ctx context.Context, in *MsgUpdateGroupPolicyMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyMetadataResponse, error) { 1724 out := new(MsgUpdateGroupPolicyMetadataResponse) 1725 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata", in, out, opts...) 1726 if err != nil { 1727 return nil, err 1728 } 1729 return out, nil 1730 } 1731 1732 func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) { 1733 out := new(MsgSubmitProposalResponse) 1734 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/SubmitProposal", in, out, opts...) 1735 if err != nil { 1736 return nil, err 1737 } 1738 return out, nil 1739 } 1740 1741 func (c *msgClient) WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error) { 1742 out := new(MsgWithdrawProposalResponse) 1743 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/WithdrawProposal", in, out, opts...) 1744 if err != nil { 1745 return nil, err 1746 } 1747 return out, nil 1748 } 1749 1750 func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) { 1751 out := new(MsgVoteResponse) 1752 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/Vote", in, out, opts...) 1753 if err != nil { 1754 return nil, err 1755 } 1756 return out, nil 1757 } 1758 1759 func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) { 1760 out := new(MsgExecResponse) 1761 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/Exec", in, out, opts...) 1762 if err != nil { 1763 return nil, err 1764 } 1765 return out, nil 1766 } 1767 1768 func (c *msgClient) LeaveGroup(ctx context.Context, in *MsgLeaveGroup, opts ...grpc.CallOption) (*MsgLeaveGroupResponse, error) { 1769 out := new(MsgLeaveGroupResponse) 1770 err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/LeaveGroup", in, out, opts...) 1771 if err != nil { 1772 return nil, err 1773 } 1774 return out, nil 1775 } 1776 1777 // MsgServer is the server API for Msg service. 1778 type MsgServer interface { 1779 // CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. 1780 CreateGroup(context.Context, *MsgCreateGroup) (*MsgCreateGroupResponse, error) 1781 // UpdateGroupMembers updates the group members with given group id and admin address. 1782 UpdateGroupMembers(context.Context, *MsgUpdateGroupMembers) (*MsgUpdateGroupMembersResponse, error) 1783 // UpdateGroupAdmin updates the group admin with given group id and previous admin address. 1784 UpdateGroupAdmin(context.Context, *MsgUpdateGroupAdmin) (*MsgUpdateGroupAdminResponse, error) 1785 // UpdateGroupMetadata updates the group metadata with given group id and admin address. 1786 UpdateGroupMetadata(context.Context, *MsgUpdateGroupMetadata) (*MsgUpdateGroupMetadataResponse, error) 1787 // CreateGroupPolicy creates a new group policy using given DecisionPolicy. 1788 CreateGroupPolicy(context.Context, *MsgCreateGroupPolicy) (*MsgCreateGroupPolicyResponse, error) 1789 // CreateGroupWithPolicy creates a new group with policy. 1790 CreateGroupWithPolicy(context.Context, *MsgCreateGroupWithPolicy) (*MsgCreateGroupWithPolicyResponse, error) 1791 // UpdateGroupPolicyAdmin updates a group policy admin. 1792 UpdateGroupPolicyAdmin(context.Context, *MsgUpdateGroupPolicyAdmin) (*MsgUpdateGroupPolicyAdminResponse, error) 1793 // UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. 1794 UpdateGroupPolicyDecisionPolicy(context.Context, *MsgUpdateGroupPolicyDecisionPolicy) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) 1795 // UpdateGroupPolicyMetadata updates a group policy metadata. 1796 UpdateGroupPolicyMetadata(context.Context, *MsgUpdateGroupPolicyMetadata) (*MsgUpdateGroupPolicyMetadataResponse, error) 1797 // SubmitProposal submits a new proposal. 1798 SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) 1799 // WithdrawProposal withdraws a proposal. 1800 WithdrawProposal(context.Context, *MsgWithdrawProposal) (*MsgWithdrawProposalResponse, error) 1801 // Vote allows a voter to vote on a proposal. 1802 Vote(context.Context, *MsgVote) (*MsgVoteResponse, error) 1803 // Exec executes a proposal. 1804 Exec(context.Context, *MsgExec) (*MsgExecResponse, error) 1805 // LeaveGroup allows a group member to leave the group. 1806 LeaveGroup(context.Context, *MsgLeaveGroup) (*MsgLeaveGroupResponse, error) 1807 } 1808 1809 // UnimplementedMsgServer can be embedded to have forward compatible implementations. 1810 type UnimplementedMsgServer struct { 1811 } 1812 1813 func (*UnimplementedMsgServer) CreateGroup(ctx context.Context, req *MsgCreateGroup) (*MsgCreateGroupResponse, error) { 1814 return nil, status.Errorf(codes.Unimplemented, "method CreateGroup not implemented") 1815 } 1816 func (*UnimplementedMsgServer) UpdateGroupMembers(ctx context.Context, req *MsgUpdateGroupMembers) (*MsgUpdateGroupMembersResponse, error) { 1817 return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupMembers not implemented") 1818 } 1819 func (*UnimplementedMsgServer) UpdateGroupAdmin(ctx context.Context, req *MsgUpdateGroupAdmin) (*MsgUpdateGroupAdminResponse, error) { 1820 return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupAdmin not implemented") 1821 } 1822 func (*UnimplementedMsgServer) UpdateGroupMetadata(ctx context.Context, req *MsgUpdateGroupMetadata) (*MsgUpdateGroupMetadataResponse, error) { 1823 return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupMetadata not implemented") 1824 } 1825 func (*UnimplementedMsgServer) CreateGroupPolicy(ctx context.Context, req *MsgCreateGroupPolicy) (*MsgCreateGroupPolicyResponse, error) { 1826 return nil, status.Errorf(codes.Unimplemented, "method CreateGroupPolicy not implemented") 1827 } 1828 func (*UnimplementedMsgServer) CreateGroupWithPolicy(ctx context.Context, req *MsgCreateGroupWithPolicy) (*MsgCreateGroupWithPolicyResponse, error) { 1829 return nil, status.Errorf(codes.Unimplemented, "method CreateGroupWithPolicy not implemented") 1830 } 1831 func (*UnimplementedMsgServer) UpdateGroupPolicyAdmin(ctx context.Context, req *MsgUpdateGroupPolicyAdmin) (*MsgUpdateGroupPolicyAdminResponse, error) { 1832 return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupPolicyAdmin not implemented") 1833 } 1834 func (*UnimplementedMsgServer) UpdateGroupPolicyDecisionPolicy(ctx context.Context, req *MsgUpdateGroupPolicyDecisionPolicy) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) { 1835 return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupPolicyDecisionPolicy not implemented") 1836 } 1837 func (*UnimplementedMsgServer) UpdateGroupPolicyMetadata(ctx context.Context, req *MsgUpdateGroupPolicyMetadata) (*MsgUpdateGroupPolicyMetadataResponse, error) { 1838 return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupPolicyMetadata not implemented") 1839 } 1840 func (*UnimplementedMsgServer) SubmitProposal(ctx context.Context, req *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) { 1841 return nil, status.Errorf(codes.Unimplemented, "method SubmitProposal not implemented") 1842 } 1843 func (*UnimplementedMsgServer) WithdrawProposal(ctx context.Context, req *MsgWithdrawProposal) (*MsgWithdrawProposalResponse, error) { 1844 return nil, status.Errorf(codes.Unimplemented, "method WithdrawProposal not implemented") 1845 } 1846 func (*UnimplementedMsgServer) Vote(ctx context.Context, req *MsgVote) (*MsgVoteResponse, error) { 1847 return nil, status.Errorf(codes.Unimplemented, "method Vote not implemented") 1848 } 1849 func (*UnimplementedMsgServer) Exec(ctx context.Context, req *MsgExec) (*MsgExecResponse, error) { 1850 return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented") 1851 } 1852 func (*UnimplementedMsgServer) LeaveGroup(ctx context.Context, req *MsgLeaveGroup) (*MsgLeaveGroupResponse, error) { 1853 return nil, status.Errorf(codes.Unimplemented, "method LeaveGroup not implemented") 1854 } 1855 1856 func RegisterMsgServer(s grpc1.Server, srv MsgServer) { 1857 s.RegisterService(&_Msg_serviceDesc, srv) 1858 } 1859 1860 func _Msg_CreateGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1861 in := new(MsgCreateGroup) 1862 if err := dec(in); err != nil { 1863 return nil, err 1864 } 1865 if interceptor == nil { 1866 return srv.(MsgServer).CreateGroup(ctx, in) 1867 } 1868 info := &grpc.UnaryServerInfo{ 1869 Server: srv, 1870 FullMethod: "/cosmos.group.v1.Msg/CreateGroup", 1871 } 1872 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1873 return srv.(MsgServer).CreateGroup(ctx, req.(*MsgCreateGroup)) 1874 } 1875 return interceptor(ctx, in, info, handler) 1876 } 1877 1878 func _Msg_UpdateGroupMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1879 in := new(MsgUpdateGroupMembers) 1880 if err := dec(in); err != nil { 1881 return nil, err 1882 } 1883 if interceptor == nil { 1884 return srv.(MsgServer).UpdateGroupMembers(ctx, in) 1885 } 1886 info := &grpc.UnaryServerInfo{ 1887 Server: srv, 1888 FullMethod: "/cosmos.group.v1.Msg/UpdateGroupMembers", 1889 } 1890 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1891 return srv.(MsgServer).UpdateGroupMembers(ctx, req.(*MsgUpdateGroupMembers)) 1892 } 1893 return interceptor(ctx, in, info, handler) 1894 } 1895 1896 func _Msg_UpdateGroupAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1897 in := new(MsgUpdateGroupAdmin) 1898 if err := dec(in); err != nil { 1899 return nil, err 1900 } 1901 if interceptor == nil { 1902 return srv.(MsgServer).UpdateGroupAdmin(ctx, in) 1903 } 1904 info := &grpc.UnaryServerInfo{ 1905 Server: srv, 1906 FullMethod: "/cosmos.group.v1.Msg/UpdateGroupAdmin", 1907 } 1908 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1909 return srv.(MsgServer).UpdateGroupAdmin(ctx, req.(*MsgUpdateGroupAdmin)) 1910 } 1911 return interceptor(ctx, in, info, handler) 1912 } 1913 1914 func _Msg_UpdateGroupMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1915 in := new(MsgUpdateGroupMetadata) 1916 if err := dec(in); err != nil { 1917 return nil, err 1918 } 1919 if interceptor == nil { 1920 return srv.(MsgServer).UpdateGroupMetadata(ctx, in) 1921 } 1922 info := &grpc.UnaryServerInfo{ 1923 Server: srv, 1924 FullMethod: "/cosmos.group.v1.Msg/UpdateGroupMetadata", 1925 } 1926 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1927 return srv.(MsgServer).UpdateGroupMetadata(ctx, req.(*MsgUpdateGroupMetadata)) 1928 } 1929 return interceptor(ctx, in, info, handler) 1930 } 1931 1932 func _Msg_CreateGroupPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1933 in := new(MsgCreateGroupPolicy) 1934 if err := dec(in); err != nil { 1935 return nil, err 1936 } 1937 if interceptor == nil { 1938 return srv.(MsgServer).CreateGroupPolicy(ctx, in) 1939 } 1940 info := &grpc.UnaryServerInfo{ 1941 Server: srv, 1942 FullMethod: "/cosmos.group.v1.Msg/CreateGroupPolicy", 1943 } 1944 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1945 return srv.(MsgServer).CreateGroupPolicy(ctx, req.(*MsgCreateGroupPolicy)) 1946 } 1947 return interceptor(ctx, in, info, handler) 1948 } 1949 1950 func _Msg_CreateGroupWithPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1951 in := new(MsgCreateGroupWithPolicy) 1952 if err := dec(in); err != nil { 1953 return nil, err 1954 } 1955 if interceptor == nil { 1956 return srv.(MsgServer).CreateGroupWithPolicy(ctx, in) 1957 } 1958 info := &grpc.UnaryServerInfo{ 1959 Server: srv, 1960 FullMethod: "/cosmos.group.v1.Msg/CreateGroupWithPolicy", 1961 } 1962 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1963 return srv.(MsgServer).CreateGroupWithPolicy(ctx, req.(*MsgCreateGroupWithPolicy)) 1964 } 1965 return interceptor(ctx, in, info, handler) 1966 } 1967 1968 func _Msg_UpdateGroupPolicyAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1969 in := new(MsgUpdateGroupPolicyAdmin) 1970 if err := dec(in); err != nil { 1971 return nil, err 1972 } 1973 if interceptor == nil { 1974 return srv.(MsgServer).UpdateGroupPolicyAdmin(ctx, in) 1975 } 1976 info := &grpc.UnaryServerInfo{ 1977 Server: srv, 1978 FullMethod: "/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin", 1979 } 1980 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1981 return srv.(MsgServer).UpdateGroupPolicyAdmin(ctx, req.(*MsgUpdateGroupPolicyAdmin)) 1982 } 1983 return interceptor(ctx, in, info, handler) 1984 } 1985 1986 func _Msg_UpdateGroupPolicyDecisionPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1987 in := new(MsgUpdateGroupPolicyDecisionPolicy) 1988 if err := dec(in); err != nil { 1989 return nil, err 1990 } 1991 if interceptor == nil { 1992 return srv.(MsgServer).UpdateGroupPolicyDecisionPolicy(ctx, in) 1993 } 1994 info := &grpc.UnaryServerInfo{ 1995 Server: srv, 1996 FullMethod: "/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy", 1997 } 1998 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1999 return srv.(MsgServer).UpdateGroupPolicyDecisionPolicy(ctx, req.(*MsgUpdateGroupPolicyDecisionPolicy)) 2000 } 2001 return interceptor(ctx, in, info, handler) 2002 } 2003 2004 func _Msg_UpdateGroupPolicyMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2005 in := new(MsgUpdateGroupPolicyMetadata) 2006 if err := dec(in); err != nil { 2007 return nil, err 2008 } 2009 if interceptor == nil { 2010 return srv.(MsgServer).UpdateGroupPolicyMetadata(ctx, in) 2011 } 2012 info := &grpc.UnaryServerInfo{ 2013 Server: srv, 2014 FullMethod: "/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata", 2015 } 2016 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2017 return srv.(MsgServer).UpdateGroupPolicyMetadata(ctx, req.(*MsgUpdateGroupPolicyMetadata)) 2018 } 2019 return interceptor(ctx, in, info, handler) 2020 } 2021 2022 func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2023 in := new(MsgSubmitProposal) 2024 if err := dec(in); err != nil { 2025 return nil, err 2026 } 2027 if interceptor == nil { 2028 return srv.(MsgServer).SubmitProposal(ctx, in) 2029 } 2030 info := &grpc.UnaryServerInfo{ 2031 Server: srv, 2032 FullMethod: "/cosmos.group.v1.Msg/SubmitProposal", 2033 } 2034 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2035 return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal)) 2036 } 2037 return interceptor(ctx, in, info, handler) 2038 } 2039 2040 func _Msg_WithdrawProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2041 in := new(MsgWithdrawProposal) 2042 if err := dec(in); err != nil { 2043 return nil, err 2044 } 2045 if interceptor == nil { 2046 return srv.(MsgServer).WithdrawProposal(ctx, in) 2047 } 2048 info := &grpc.UnaryServerInfo{ 2049 Server: srv, 2050 FullMethod: "/cosmos.group.v1.Msg/WithdrawProposal", 2051 } 2052 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2053 return srv.(MsgServer).WithdrawProposal(ctx, req.(*MsgWithdrawProposal)) 2054 } 2055 return interceptor(ctx, in, info, handler) 2056 } 2057 2058 func _Msg_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2059 in := new(MsgVote) 2060 if err := dec(in); err != nil { 2061 return nil, err 2062 } 2063 if interceptor == nil { 2064 return srv.(MsgServer).Vote(ctx, in) 2065 } 2066 info := &grpc.UnaryServerInfo{ 2067 Server: srv, 2068 FullMethod: "/cosmos.group.v1.Msg/Vote", 2069 } 2070 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2071 return srv.(MsgServer).Vote(ctx, req.(*MsgVote)) 2072 } 2073 return interceptor(ctx, in, info, handler) 2074 } 2075 2076 func _Msg_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2077 in := new(MsgExec) 2078 if err := dec(in); err != nil { 2079 return nil, err 2080 } 2081 if interceptor == nil { 2082 return srv.(MsgServer).Exec(ctx, in) 2083 } 2084 info := &grpc.UnaryServerInfo{ 2085 Server: srv, 2086 FullMethod: "/cosmos.group.v1.Msg/Exec", 2087 } 2088 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2089 return srv.(MsgServer).Exec(ctx, req.(*MsgExec)) 2090 } 2091 return interceptor(ctx, in, info, handler) 2092 } 2093 2094 func _Msg_LeaveGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2095 in := new(MsgLeaveGroup) 2096 if err := dec(in); err != nil { 2097 return nil, err 2098 } 2099 if interceptor == nil { 2100 return srv.(MsgServer).LeaveGroup(ctx, in) 2101 } 2102 info := &grpc.UnaryServerInfo{ 2103 Server: srv, 2104 FullMethod: "/cosmos.group.v1.Msg/LeaveGroup", 2105 } 2106 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2107 return srv.(MsgServer).LeaveGroup(ctx, req.(*MsgLeaveGroup)) 2108 } 2109 return interceptor(ctx, in, info, handler) 2110 } 2111 2112 var _Msg_serviceDesc = grpc.ServiceDesc{ 2113 ServiceName: "cosmos.group.v1.Msg", 2114 HandlerType: (*MsgServer)(nil), 2115 Methods: []grpc.MethodDesc{ 2116 { 2117 MethodName: "CreateGroup", 2118 Handler: _Msg_CreateGroup_Handler, 2119 }, 2120 { 2121 MethodName: "UpdateGroupMembers", 2122 Handler: _Msg_UpdateGroupMembers_Handler, 2123 }, 2124 { 2125 MethodName: "UpdateGroupAdmin", 2126 Handler: _Msg_UpdateGroupAdmin_Handler, 2127 }, 2128 { 2129 MethodName: "UpdateGroupMetadata", 2130 Handler: _Msg_UpdateGroupMetadata_Handler, 2131 }, 2132 { 2133 MethodName: "CreateGroupPolicy", 2134 Handler: _Msg_CreateGroupPolicy_Handler, 2135 }, 2136 { 2137 MethodName: "CreateGroupWithPolicy", 2138 Handler: _Msg_CreateGroupWithPolicy_Handler, 2139 }, 2140 { 2141 MethodName: "UpdateGroupPolicyAdmin", 2142 Handler: _Msg_UpdateGroupPolicyAdmin_Handler, 2143 }, 2144 { 2145 MethodName: "UpdateGroupPolicyDecisionPolicy", 2146 Handler: _Msg_UpdateGroupPolicyDecisionPolicy_Handler, 2147 }, 2148 { 2149 MethodName: "UpdateGroupPolicyMetadata", 2150 Handler: _Msg_UpdateGroupPolicyMetadata_Handler, 2151 }, 2152 { 2153 MethodName: "SubmitProposal", 2154 Handler: _Msg_SubmitProposal_Handler, 2155 }, 2156 { 2157 MethodName: "WithdrawProposal", 2158 Handler: _Msg_WithdrawProposal_Handler, 2159 }, 2160 { 2161 MethodName: "Vote", 2162 Handler: _Msg_Vote_Handler, 2163 }, 2164 { 2165 MethodName: "Exec", 2166 Handler: _Msg_Exec_Handler, 2167 }, 2168 { 2169 MethodName: "LeaveGroup", 2170 Handler: _Msg_LeaveGroup_Handler, 2171 }, 2172 }, 2173 Streams: []grpc.StreamDesc{}, 2174 Metadata: "cosmos/group/v1/tx.proto", 2175 } 2176 2177 func (m *MsgCreateGroup) Marshal() (dAtA []byte, err error) { 2178 size := m.Size() 2179 dAtA = make([]byte, size) 2180 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2181 if err != nil { 2182 return nil, err 2183 } 2184 return dAtA[:n], nil 2185 } 2186 2187 func (m *MsgCreateGroup) MarshalTo(dAtA []byte) (int, error) { 2188 size := m.Size() 2189 return m.MarshalToSizedBuffer(dAtA[:size]) 2190 } 2191 2192 func (m *MsgCreateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2193 i := len(dAtA) 2194 _ = i 2195 var l int 2196 _ = l 2197 if len(m.Metadata) > 0 { 2198 i -= len(m.Metadata) 2199 copy(dAtA[i:], m.Metadata) 2200 i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) 2201 i-- 2202 dAtA[i] = 0x1a 2203 } 2204 if len(m.Members) > 0 { 2205 for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { 2206 { 2207 size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2208 if err != nil { 2209 return 0, err 2210 } 2211 i -= size 2212 i = encodeVarintTx(dAtA, i, uint64(size)) 2213 } 2214 i-- 2215 dAtA[i] = 0x12 2216 } 2217 } 2218 if len(m.Admin) > 0 { 2219 i -= len(m.Admin) 2220 copy(dAtA[i:], m.Admin) 2221 i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) 2222 i-- 2223 dAtA[i] = 0xa 2224 } 2225 return len(dAtA) - i, nil 2226 } 2227 2228 func (m *MsgCreateGroupResponse) Marshal() (dAtA []byte, err error) { 2229 size := m.Size() 2230 dAtA = make([]byte, size) 2231 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2232 if err != nil { 2233 return nil, err 2234 } 2235 return dAtA[:n], nil 2236 } 2237 2238 func (m *MsgCreateGroupResponse) MarshalTo(dAtA []byte) (int, error) { 2239 size := m.Size() 2240 return m.MarshalToSizedBuffer(dAtA[:size]) 2241 } 2242 2243 func (m *MsgCreateGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2244 i := len(dAtA) 2245 _ = i 2246 var l int 2247 _ = l 2248 if m.GroupId != 0 { 2249 i = encodeVarintTx(dAtA, i, uint64(m.GroupId)) 2250 i-- 2251 dAtA[i] = 0x8 2252 } 2253 return len(dAtA) - i, nil 2254 } 2255 2256 func (m *MsgUpdateGroupMembers) Marshal() (dAtA []byte, err error) { 2257 size := m.Size() 2258 dAtA = make([]byte, size) 2259 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2260 if err != nil { 2261 return nil, err 2262 } 2263 return dAtA[:n], nil 2264 } 2265 2266 func (m *MsgUpdateGroupMembers) MarshalTo(dAtA []byte) (int, error) { 2267 size := m.Size() 2268 return m.MarshalToSizedBuffer(dAtA[:size]) 2269 } 2270 2271 func (m *MsgUpdateGroupMembers) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2272 i := len(dAtA) 2273 _ = i 2274 var l int 2275 _ = l 2276 if len(m.MemberUpdates) > 0 { 2277 for iNdEx := len(m.MemberUpdates) - 1; iNdEx >= 0; iNdEx-- { 2278 { 2279 size, err := m.MemberUpdates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2280 if err != nil { 2281 return 0, err 2282 } 2283 i -= size 2284 i = encodeVarintTx(dAtA, i, uint64(size)) 2285 } 2286 i-- 2287 dAtA[i] = 0x1a 2288 } 2289 } 2290 if m.GroupId != 0 { 2291 i = encodeVarintTx(dAtA, i, uint64(m.GroupId)) 2292 i-- 2293 dAtA[i] = 0x10 2294 } 2295 if len(m.Admin) > 0 { 2296 i -= len(m.Admin) 2297 copy(dAtA[i:], m.Admin) 2298 i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) 2299 i-- 2300 dAtA[i] = 0xa 2301 } 2302 return len(dAtA) - i, nil 2303 } 2304 2305 func (m *MsgUpdateGroupMembersResponse) Marshal() (dAtA []byte, err error) { 2306 size := m.Size() 2307 dAtA = make([]byte, size) 2308 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2309 if err != nil { 2310 return nil, err 2311 } 2312 return dAtA[:n], nil 2313 } 2314 2315 func (m *MsgUpdateGroupMembersResponse) MarshalTo(dAtA []byte) (int, error) { 2316 size := m.Size() 2317 return m.MarshalToSizedBuffer(dAtA[:size]) 2318 } 2319 2320 func (m *MsgUpdateGroupMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2321 i := len(dAtA) 2322 _ = i 2323 var l int 2324 _ = l 2325 return len(dAtA) - i, nil 2326 } 2327 2328 func (m *MsgUpdateGroupAdmin) Marshal() (dAtA []byte, err error) { 2329 size := m.Size() 2330 dAtA = make([]byte, size) 2331 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2332 if err != nil { 2333 return nil, err 2334 } 2335 return dAtA[:n], nil 2336 } 2337 2338 func (m *MsgUpdateGroupAdmin) MarshalTo(dAtA []byte) (int, error) { 2339 size := m.Size() 2340 return m.MarshalToSizedBuffer(dAtA[:size]) 2341 } 2342 2343 func (m *MsgUpdateGroupAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2344 i := len(dAtA) 2345 _ = i 2346 var l int 2347 _ = l 2348 if len(m.NewAdmin) > 0 { 2349 i -= len(m.NewAdmin) 2350 copy(dAtA[i:], m.NewAdmin) 2351 i = encodeVarintTx(dAtA, i, uint64(len(m.NewAdmin))) 2352 i-- 2353 dAtA[i] = 0x1a 2354 } 2355 if m.GroupId != 0 { 2356 i = encodeVarintTx(dAtA, i, uint64(m.GroupId)) 2357 i-- 2358 dAtA[i] = 0x10 2359 } 2360 if len(m.Admin) > 0 { 2361 i -= len(m.Admin) 2362 copy(dAtA[i:], m.Admin) 2363 i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) 2364 i-- 2365 dAtA[i] = 0xa 2366 } 2367 return len(dAtA) - i, nil 2368 } 2369 2370 func (m *MsgUpdateGroupAdminResponse) Marshal() (dAtA []byte, err error) { 2371 size := m.Size() 2372 dAtA = make([]byte, size) 2373 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2374 if err != nil { 2375 return nil, err 2376 } 2377 return dAtA[:n], nil 2378 } 2379 2380 func (m *MsgUpdateGroupAdminResponse) MarshalTo(dAtA []byte) (int, error) { 2381 size := m.Size() 2382 return m.MarshalToSizedBuffer(dAtA[:size]) 2383 } 2384 2385 func (m *MsgUpdateGroupAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2386 i := len(dAtA) 2387 _ = i 2388 var l int 2389 _ = l 2390 return len(dAtA) - i, nil 2391 } 2392 2393 func (m *MsgUpdateGroupMetadata) Marshal() (dAtA []byte, err error) { 2394 size := m.Size() 2395 dAtA = make([]byte, size) 2396 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2397 if err != nil { 2398 return nil, err 2399 } 2400 return dAtA[:n], nil 2401 } 2402 2403 func (m *MsgUpdateGroupMetadata) MarshalTo(dAtA []byte) (int, error) { 2404 size := m.Size() 2405 return m.MarshalToSizedBuffer(dAtA[:size]) 2406 } 2407 2408 func (m *MsgUpdateGroupMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2409 i := len(dAtA) 2410 _ = i 2411 var l int 2412 _ = l 2413 if len(m.Metadata) > 0 { 2414 i -= len(m.Metadata) 2415 copy(dAtA[i:], m.Metadata) 2416 i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) 2417 i-- 2418 dAtA[i] = 0x1a 2419 } 2420 if m.GroupId != 0 { 2421 i = encodeVarintTx(dAtA, i, uint64(m.GroupId)) 2422 i-- 2423 dAtA[i] = 0x10 2424 } 2425 if len(m.Admin) > 0 { 2426 i -= len(m.Admin) 2427 copy(dAtA[i:], m.Admin) 2428 i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) 2429 i-- 2430 dAtA[i] = 0xa 2431 } 2432 return len(dAtA) - i, nil 2433 } 2434 2435 func (m *MsgUpdateGroupMetadataResponse) Marshal() (dAtA []byte, err error) { 2436 size := m.Size() 2437 dAtA = make([]byte, size) 2438 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2439 if err != nil { 2440 return nil, err 2441 } 2442 return dAtA[:n], nil 2443 } 2444 2445 func (m *MsgUpdateGroupMetadataResponse) MarshalTo(dAtA []byte) (int, error) { 2446 size := m.Size() 2447 return m.MarshalToSizedBuffer(dAtA[:size]) 2448 } 2449 2450 func (m *MsgUpdateGroupMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2451 i := len(dAtA) 2452 _ = i 2453 var l int 2454 _ = l 2455 return len(dAtA) - i, nil 2456 } 2457 2458 func (m *MsgCreateGroupPolicy) Marshal() (dAtA []byte, err error) { 2459 size := m.Size() 2460 dAtA = make([]byte, size) 2461 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2462 if err != nil { 2463 return nil, err 2464 } 2465 return dAtA[:n], nil 2466 } 2467 2468 func (m *MsgCreateGroupPolicy) MarshalTo(dAtA []byte) (int, error) { 2469 size := m.Size() 2470 return m.MarshalToSizedBuffer(dAtA[:size]) 2471 } 2472 2473 func (m *MsgCreateGroupPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2474 i := len(dAtA) 2475 _ = i 2476 var l int 2477 _ = l 2478 if m.DecisionPolicy != nil { 2479 { 2480 size, err := m.DecisionPolicy.MarshalToSizedBuffer(dAtA[:i]) 2481 if err != nil { 2482 return 0, err 2483 } 2484 i -= size 2485 i = encodeVarintTx(dAtA, i, uint64(size)) 2486 } 2487 i-- 2488 dAtA[i] = 0x22 2489 } 2490 if len(m.Metadata) > 0 { 2491 i -= len(m.Metadata) 2492 copy(dAtA[i:], m.Metadata) 2493 i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) 2494 i-- 2495 dAtA[i] = 0x1a 2496 } 2497 if m.GroupId != 0 { 2498 i = encodeVarintTx(dAtA, i, uint64(m.GroupId)) 2499 i-- 2500 dAtA[i] = 0x10 2501 } 2502 if len(m.Admin) > 0 { 2503 i -= len(m.Admin) 2504 copy(dAtA[i:], m.Admin) 2505 i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) 2506 i-- 2507 dAtA[i] = 0xa 2508 } 2509 return len(dAtA) - i, nil 2510 } 2511 2512 func (m *MsgCreateGroupPolicyResponse) Marshal() (dAtA []byte, err error) { 2513 size := m.Size() 2514 dAtA = make([]byte, size) 2515 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2516 if err != nil { 2517 return nil, err 2518 } 2519 return dAtA[:n], nil 2520 } 2521 2522 func (m *MsgCreateGroupPolicyResponse) MarshalTo(dAtA []byte) (int, error) { 2523 size := m.Size() 2524 return m.MarshalToSizedBuffer(dAtA[:size]) 2525 } 2526 2527 func (m *MsgCreateGroupPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2528 i := len(dAtA) 2529 _ = i 2530 var l int 2531 _ = l 2532 if len(m.Address) > 0 { 2533 i -= len(m.Address) 2534 copy(dAtA[i:], m.Address) 2535 i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) 2536 i-- 2537 dAtA[i] = 0xa 2538 } 2539 return len(dAtA) - i, nil 2540 } 2541 2542 func (m *MsgUpdateGroupPolicyAdmin) Marshal() (dAtA []byte, err error) { 2543 size := m.Size() 2544 dAtA = make([]byte, size) 2545 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2546 if err != nil { 2547 return nil, err 2548 } 2549 return dAtA[:n], nil 2550 } 2551 2552 func (m *MsgUpdateGroupPolicyAdmin) MarshalTo(dAtA []byte) (int, error) { 2553 size := m.Size() 2554 return m.MarshalToSizedBuffer(dAtA[:size]) 2555 } 2556 2557 func (m *MsgUpdateGroupPolicyAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2558 i := len(dAtA) 2559 _ = i 2560 var l int 2561 _ = l 2562 if len(m.NewAdmin) > 0 { 2563 i -= len(m.NewAdmin) 2564 copy(dAtA[i:], m.NewAdmin) 2565 i = encodeVarintTx(dAtA, i, uint64(len(m.NewAdmin))) 2566 i-- 2567 dAtA[i] = 0x1a 2568 } 2569 if len(m.GroupPolicyAddress) > 0 { 2570 i -= len(m.GroupPolicyAddress) 2571 copy(dAtA[i:], m.GroupPolicyAddress) 2572 i = encodeVarintTx(dAtA, i, uint64(len(m.GroupPolicyAddress))) 2573 i-- 2574 dAtA[i] = 0x12 2575 } 2576 if len(m.Admin) > 0 { 2577 i -= len(m.Admin) 2578 copy(dAtA[i:], m.Admin) 2579 i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) 2580 i-- 2581 dAtA[i] = 0xa 2582 } 2583 return len(dAtA) - i, nil 2584 } 2585 2586 func (m *MsgUpdateGroupPolicyAdminResponse) Marshal() (dAtA []byte, err error) { 2587 size := m.Size() 2588 dAtA = make([]byte, size) 2589 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2590 if err != nil { 2591 return nil, err 2592 } 2593 return dAtA[:n], nil 2594 } 2595 2596 func (m *MsgUpdateGroupPolicyAdminResponse) MarshalTo(dAtA []byte) (int, error) { 2597 size := m.Size() 2598 return m.MarshalToSizedBuffer(dAtA[:size]) 2599 } 2600 2601 func (m *MsgUpdateGroupPolicyAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2602 i := len(dAtA) 2603 _ = i 2604 var l int 2605 _ = l 2606 return len(dAtA) - i, nil 2607 } 2608 2609 func (m *MsgCreateGroupWithPolicy) Marshal() (dAtA []byte, err error) { 2610 size := m.Size() 2611 dAtA = make([]byte, size) 2612 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2613 if err != nil { 2614 return nil, err 2615 } 2616 return dAtA[:n], nil 2617 } 2618 2619 func (m *MsgCreateGroupWithPolicy) MarshalTo(dAtA []byte) (int, error) { 2620 size := m.Size() 2621 return m.MarshalToSizedBuffer(dAtA[:size]) 2622 } 2623 2624 func (m *MsgCreateGroupWithPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2625 i := len(dAtA) 2626 _ = i 2627 var l int 2628 _ = l 2629 if m.DecisionPolicy != nil { 2630 { 2631 size, err := m.DecisionPolicy.MarshalToSizedBuffer(dAtA[:i]) 2632 if err != nil { 2633 return 0, err 2634 } 2635 i -= size 2636 i = encodeVarintTx(dAtA, i, uint64(size)) 2637 } 2638 i-- 2639 dAtA[i] = 0x32 2640 } 2641 if m.GroupPolicyAsAdmin { 2642 i-- 2643 if m.GroupPolicyAsAdmin { 2644 dAtA[i] = 1 2645 } else { 2646 dAtA[i] = 0 2647 } 2648 i-- 2649 dAtA[i] = 0x28 2650 } 2651 if len(m.GroupPolicyMetadata) > 0 { 2652 i -= len(m.GroupPolicyMetadata) 2653 copy(dAtA[i:], m.GroupPolicyMetadata) 2654 i = encodeVarintTx(dAtA, i, uint64(len(m.GroupPolicyMetadata))) 2655 i-- 2656 dAtA[i] = 0x22 2657 } 2658 if len(m.GroupMetadata) > 0 { 2659 i -= len(m.GroupMetadata) 2660 copy(dAtA[i:], m.GroupMetadata) 2661 i = encodeVarintTx(dAtA, i, uint64(len(m.GroupMetadata))) 2662 i-- 2663 dAtA[i] = 0x1a 2664 } 2665 if len(m.Members) > 0 { 2666 for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { 2667 { 2668 size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2669 if err != nil { 2670 return 0, err 2671 } 2672 i -= size 2673 i = encodeVarintTx(dAtA, i, uint64(size)) 2674 } 2675 i-- 2676 dAtA[i] = 0x12 2677 } 2678 } 2679 if len(m.Admin) > 0 { 2680 i -= len(m.Admin) 2681 copy(dAtA[i:], m.Admin) 2682 i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) 2683 i-- 2684 dAtA[i] = 0xa 2685 } 2686 return len(dAtA) - i, nil 2687 } 2688 2689 func (m *MsgCreateGroupWithPolicyResponse) Marshal() (dAtA []byte, err error) { 2690 size := m.Size() 2691 dAtA = make([]byte, size) 2692 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2693 if err != nil { 2694 return nil, err 2695 } 2696 return dAtA[:n], nil 2697 } 2698 2699 func (m *MsgCreateGroupWithPolicyResponse) MarshalTo(dAtA []byte) (int, error) { 2700 size := m.Size() 2701 return m.MarshalToSizedBuffer(dAtA[:size]) 2702 } 2703 2704 func (m *MsgCreateGroupWithPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2705 i := len(dAtA) 2706 _ = i 2707 var l int 2708 _ = l 2709 if len(m.GroupPolicyAddress) > 0 { 2710 i -= len(m.GroupPolicyAddress) 2711 copy(dAtA[i:], m.GroupPolicyAddress) 2712 i = encodeVarintTx(dAtA, i, uint64(len(m.GroupPolicyAddress))) 2713 i-- 2714 dAtA[i] = 0x12 2715 } 2716 if m.GroupId != 0 { 2717 i = encodeVarintTx(dAtA, i, uint64(m.GroupId)) 2718 i-- 2719 dAtA[i] = 0x8 2720 } 2721 return len(dAtA) - i, nil 2722 } 2723 2724 func (m *MsgUpdateGroupPolicyDecisionPolicy) Marshal() (dAtA []byte, err error) { 2725 size := m.Size() 2726 dAtA = make([]byte, size) 2727 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2728 if err != nil { 2729 return nil, err 2730 } 2731 return dAtA[:n], nil 2732 } 2733 2734 func (m *MsgUpdateGroupPolicyDecisionPolicy) MarshalTo(dAtA []byte) (int, error) { 2735 size := m.Size() 2736 return m.MarshalToSizedBuffer(dAtA[:size]) 2737 } 2738 2739 func (m *MsgUpdateGroupPolicyDecisionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2740 i := len(dAtA) 2741 _ = i 2742 var l int 2743 _ = l 2744 if m.DecisionPolicy != nil { 2745 { 2746 size, err := m.DecisionPolicy.MarshalToSizedBuffer(dAtA[:i]) 2747 if err != nil { 2748 return 0, err 2749 } 2750 i -= size 2751 i = encodeVarintTx(dAtA, i, uint64(size)) 2752 } 2753 i-- 2754 dAtA[i] = 0x1a 2755 } 2756 if len(m.GroupPolicyAddress) > 0 { 2757 i -= len(m.GroupPolicyAddress) 2758 copy(dAtA[i:], m.GroupPolicyAddress) 2759 i = encodeVarintTx(dAtA, i, uint64(len(m.GroupPolicyAddress))) 2760 i-- 2761 dAtA[i] = 0x12 2762 } 2763 if len(m.Admin) > 0 { 2764 i -= len(m.Admin) 2765 copy(dAtA[i:], m.Admin) 2766 i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) 2767 i-- 2768 dAtA[i] = 0xa 2769 } 2770 return len(dAtA) - i, nil 2771 } 2772 2773 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) Marshal() (dAtA []byte, err error) { 2774 size := m.Size() 2775 dAtA = make([]byte, size) 2776 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2777 if err != nil { 2778 return nil, err 2779 } 2780 return dAtA[:n], nil 2781 } 2782 2783 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) MarshalTo(dAtA []byte) (int, error) { 2784 size := m.Size() 2785 return m.MarshalToSizedBuffer(dAtA[:size]) 2786 } 2787 2788 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2789 i := len(dAtA) 2790 _ = i 2791 var l int 2792 _ = l 2793 return len(dAtA) - i, nil 2794 } 2795 2796 func (m *MsgUpdateGroupPolicyMetadata) Marshal() (dAtA []byte, err error) { 2797 size := m.Size() 2798 dAtA = make([]byte, size) 2799 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2800 if err != nil { 2801 return nil, err 2802 } 2803 return dAtA[:n], nil 2804 } 2805 2806 func (m *MsgUpdateGroupPolicyMetadata) MarshalTo(dAtA []byte) (int, error) { 2807 size := m.Size() 2808 return m.MarshalToSizedBuffer(dAtA[:size]) 2809 } 2810 2811 func (m *MsgUpdateGroupPolicyMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2812 i := len(dAtA) 2813 _ = i 2814 var l int 2815 _ = l 2816 if len(m.Metadata) > 0 { 2817 i -= len(m.Metadata) 2818 copy(dAtA[i:], m.Metadata) 2819 i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) 2820 i-- 2821 dAtA[i] = 0x1a 2822 } 2823 if len(m.GroupPolicyAddress) > 0 { 2824 i -= len(m.GroupPolicyAddress) 2825 copy(dAtA[i:], m.GroupPolicyAddress) 2826 i = encodeVarintTx(dAtA, i, uint64(len(m.GroupPolicyAddress))) 2827 i-- 2828 dAtA[i] = 0x12 2829 } 2830 if len(m.Admin) > 0 { 2831 i -= len(m.Admin) 2832 copy(dAtA[i:], m.Admin) 2833 i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) 2834 i-- 2835 dAtA[i] = 0xa 2836 } 2837 return len(dAtA) - i, nil 2838 } 2839 2840 func (m *MsgUpdateGroupPolicyMetadataResponse) Marshal() (dAtA []byte, err error) { 2841 size := m.Size() 2842 dAtA = make([]byte, size) 2843 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2844 if err != nil { 2845 return nil, err 2846 } 2847 return dAtA[:n], nil 2848 } 2849 2850 func (m *MsgUpdateGroupPolicyMetadataResponse) MarshalTo(dAtA []byte) (int, error) { 2851 size := m.Size() 2852 return m.MarshalToSizedBuffer(dAtA[:size]) 2853 } 2854 2855 func (m *MsgUpdateGroupPolicyMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2856 i := len(dAtA) 2857 _ = i 2858 var l int 2859 _ = l 2860 return len(dAtA) - i, nil 2861 } 2862 2863 func (m *MsgSubmitProposal) Marshal() (dAtA []byte, err error) { 2864 size := m.Size() 2865 dAtA = make([]byte, size) 2866 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2867 if err != nil { 2868 return nil, err 2869 } 2870 return dAtA[:n], nil 2871 } 2872 2873 func (m *MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error) { 2874 size := m.Size() 2875 return m.MarshalToSizedBuffer(dAtA[:size]) 2876 } 2877 2878 func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2879 i := len(dAtA) 2880 _ = i 2881 var l int 2882 _ = l 2883 if len(m.Summary) > 0 { 2884 i -= len(m.Summary) 2885 copy(dAtA[i:], m.Summary) 2886 i = encodeVarintTx(dAtA, i, uint64(len(m.Summary))) 2887 i-- 2888 dAtA[i] = 0x3a 2889 } 2890 if len(m.Title) > 0 { 2891 i -= len(m.Title) 2892 copy(dAtA[i:], m.Title) 2893 i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) 2894 i-- 2895 dAtA[i] = 0x32 2896 } 2897 if m.Exec != 0 { 2898 i = encodeVarintTx(dAtA, i, uint64(m.Exec)) 2899 i-- 2900 dAtA[i] = 0x28 2901 } 2902 if len(m.Messages) > 0 { 2903 for iNdEx := len(m.Messages) - 1; iNdEx >= 0; iNdEx-- { 2904 { 2905 size, err := m.Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2906 if err != nil { 2907 return 0, err 2908 } 2909 i -= size 2910 i = encodeVarintTx(dAtA, i, uint64(size)) 2911 } 2912 i-- 2913 dAtA[i] = 0x22 2914 } 2915 } 2916 if len(m.Metadata) > 0 { 2917 i -= len(m.Metadata) 2918 copy(dAtA[i:], m.Metadata) 2919 i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) 2920 i-- 2921 dAtA[i] = 0x1a 2922 } 2923 if len(m.Proposers) > 0 { 2924 for iNdEx := len(m.Proposers) - 1; iNdEx >= 0; iNdEx-- { 2925 i -= len(m.Proposers[iNdEx]) 2926 copy(dAtA[i:], m.Proposers[iNdEx]) 2927 i = encodeVarintTx(dAtA, i, uint64(len(m.Proposers[iNdEx]))) 2928 i-- 2929 dAtA[i] = 0x12 2930 } 2931 } 2932 if len(m.GroupPolicyAddress) > 0 { 2933 i -= len(m.GroupPolicyAddress) 2934 copy(dAtA[i:], m.GroupPolicyAddress) 2935 i = encodeVarintTx(dAtA, i, uint64(len(m.GroupPolicyAddress))) 2936 i-- 2937 dAtA[i] = 0xa 2938 } 2939 return len(dAtA) - i, nil 2940 } 2941 2942 func (m *MsgSubmitProposalResponse) Marshal() (dAtA []byte, err error) { 2943 size := m.Size() 2944 dAtA = make([]byte, size) 2945 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2946 if err != nil { 2947 return nil, err 2948 } 2949 return dAtA[:n], nil 2950 } 2951 2952 func (m *MsgSubmitProposalResponse) MarshalTo(dAtA []byte) (int, error) { 2953 size := m.Size() 2954 return m.MarshalToSizedBuffer(dAtA[:size]) 2955 } 2956 2957 func (m *MsgSubmitProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2958 i := len(dAtA) 2959 _ = i 2960 var l int 2961 _ = l 2962 if m.ProposalId != 0 { 2963 i = encodeVarintTx(dAtA, i, uint64(m.ProposalId)) 2964 i-- 2965 dAtA[i] = 0x8 2966 } 2967 return len(dAtA) - i, nil 2968 } 2969 2970 func (m *MsgWithdrawProposal) Marshal() (dAtA []byte, err error) { 2971 size := m.Size() 2972 dAtA = make([]byte, size) 2973 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2974 if err != nil { 2975 return nil, err 2976 } 2977 return dAtA[:n], nil 2978 } 2979 2980 func (m *MsgWithdrawProposal) MarshalTo(dAtA []byte) (int, error) { 2981 size := m.Size() 2982 return m.MarshalToSizedBuffer(dAtA[:size]) 2983 } 2984 2985 func (m *MsgWithdrawProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2986 i := len(dAtA) 2987 _ = i 2988 var l int 2989 _ = l 2990 if len(m.Address) > 0 { 2991 i -= len(m.Address) 2992 copy(dAtA[i:], m.Address) 2993 i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) 2994 i-- 2995 dAtA[i] = 0x12 2996 } 2997 if m.ProposalId != 0 { 2998 i = encodeVarintTx(dAtA, i, uint64(m.ProposalId)) 2999 i-- 3000 dAtA[i] = 0x8 3001 } 3002 return len(dAtA) - i, nil 3003 } 3004 3005 func (m *MsgWithdrawProposalResponse) Marshal() (dAtA []byte, err error) { 3006 size := m.Size() 3007 dAtA = make([]byte, size) 3008 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3009 if err != nil { 3010 return nil, err 3011 } 3012 return dAtA[:n], nil 3013 } 3014 3015 func (m *MsgWithdrawProposalResponse) MarshalTo(dAtA []byte) (int, error) { 3016 size := m.Size() 3017 return m.MarshalToSizedBuffer(dAtA[:size]) 3018 } 3019 3020 func (m *MsgWithdrawProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3021 i := len(dAtA) 3022 _ = i 3023 var l int 3024 _ = l 3025 return len(dAtA) - i, nil 3026 } 3027 3028 func (m *MsgVote) Marshal() (dAtA []byte, err error) { 3029 size := m.Size() 3030 dAtA = make([]byte, size) 3031 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3032 if err != nil { 3033 return nil, err 3034 } 3035 return dAtA[:n], nil 3036 } 3037 3038 func (m *MsgVote) MarshalTo(dAtA []byte) (int, error) { 3039 size := m.Size() 3040 return m.MarshalToSizedBuffer(dAtA[:size]) 3041 } 3042 3043 func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3044 i := len(dAtA) 3045 _ = i 3046 var l int 3047 _ = l 3048 if m.Exec != 0 { 3049 i = encodeVarintTx(dAtA, i, uint64(m.Exec)) 3050 i-- 3051 dAtA[i] = 0x28 3052 } 3053 if len(m.Metadata) > 0 { 3054 i -= len(m.Metadata) 3055 copy(dAtA[i:], m.Metadata) 3056 i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) 3057 i-- 3058 dAtA[i] = 0x22 3059 } 3060 if m.Option != 0 { 3061 i = encodeVarintTx(dAtA, i, uint64(m.Option)) 3062 i-- 3063 dAtA[i] = 0x18 3064 } 3065 if len(m.Voter) > 0 { 3066 i -= len(m.Voter) 3067 copy(dAtA[i:], m.Voter) 3068 i = encodeVarintTx(dAtA, i, uint64(len(m.Voter))) 3069 i-- 3070 dAtA[i] = 0x12 3071 } 3072 if m.ProposalId != 0 { 3073 i = encodeVarintTx(dAtA, i, uint64(m.ProposalId)) 3074 i-- 3075 dAtA[i] = 0x8 3076 } 3077 return len(dAtA) - i, nil 3078 } 3079 3080 func (m *MsgVoteResponse) Marshal() (dAtA []byte, err error) { 3081 size := m.Size() 3082 dAtA = make([]byte, size) 3083 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3084 if err != nil { 3085 return nil, err 3086 } 3087 return dAtA[:n], nil 3088 } 3089 3090 func (m *MsgVoteResponse) MarshalTo(dAtA []byte) (int, error) { 3091 size := m.Size() 3092 return m.MarshalToSizedBuffer(dAtA[:size]) 3093 } 3094 3095 func (m *MsgVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3096 i := len(dAtA) 3097 _ = i 3098 var l int 3099 _ = l 3100 return len(dAtA) - i, nil 3101 } 3102 3103 func (m *MsgExec) Marshal() (dAtA []byte, err error) { 3104 size := m.Size() 3105 dAtA = make([]byte, size) 3106 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3107 if err != nil { 3108 return nil, err 3109 } 3110 return dAtA[:n], nil 3111 } 3112 3113 func (m *MsgExec) MarshalTo(dAtA []byte) (int, error) { 3114 size := m.Size() 3115 return m.MarshalToSizedBuffer(dAtA[:size]) 3116 } 3117 3118 func (m *MsgExec) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3119 i := len(dAtA) 3120 _ = i 3121 var l int 3122 _ = l 3123 if len(m.Executor) > 0 { 3124 i -= len(m.Executor) 3125 copy(dAtA[i:], m.Executor) 3126 i = encodeVarintTx(dAtA, i, uint64(len(m.Executor))) 3127 i-- 3128 dAtA[i] = 0x12 3129 } 3130 if m.ProposalId != 0 { 3131 i = encodeVarintTx(dAtA, i, uint64(m.ProposalId)) 3132 i-- 3133 dAtA[i] = 0x8 3134 } 3135 return len(dAtA) - i, nil 3136 } 3137 3138 func (m *MsgExecResponse) Marshal() (dAtA []byte, err error) { 3139 size := m.Size() 3140 dAtA = make([]byte, size) 3141 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3142 if err != nil { 3143 return nil, err 3144 } 3145 return dAtA[:n], nil 3146 } 3147 3148 func (m *MsgExecResponse) MarshalTo(dAtA []byte) (int, error) { 3149 size := m.Size() 3150 return m.MarshalToSizedBuffer(dAtA[:size]) 3151 } 3152 3153 func (m *MsgExecResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3154 i := len(dAtA) 3155 _ = i 3156 var l int 3157 _ = l 3158 if m.Result != 0 { 3159 i = encodeVarintTx(dAtA, i, uint64(m.Result)) 3160 i-- 3161 dAtA[i] = 0x10 3162 } 3163 return len(dAtA) - i, nil 3164 } 3165 3166 func (m *MsgLeaveGroup) Marshal() (dAtA []byte, err error) { 3167 size := m.Size() 3168 dAtA = make([]byte, size) 3169 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3170 if err != nil { 3171 return nil, err 3172 } 3173 return dAtA[:n], nil 3174 } 3175 3176 func (m *MsgLeaveGroup) MarshalTo(dAtA []byte) (int, error) { 3177 size := m.Size() 3178 return m.MarshalToSizedBuffer(dAtA[:size]) 3179 } 3180 3181 func (m *MsgLeaveGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3182 i := len(dAtA) 3183 _ = i 3184 var l int 3185 _ = l 3186 if m.GroupId != 0 { 3187 i = encodeVarintTx(dAtA, i, uint64(m.GroupId)) 3188 i-- 3189 dAtA[i] = 0x10 3190 } 3191 if len(m.Address) > 0 { 3192 i -= len(m.Address) 3193 copy(dAtA[i:], m.Address) 3194 i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) 3195 i-- 3196 dAtA[i] = 0xa 3197 } 3198 return len(dAtA) - i, nil 3199 } 3200 3201 func (m *MsgLeaveGroupResponse) Marshal() (dAtA []byte, err error) { 3202 size := m.Size() 3203 dAtA = make([]byte, size) 3204 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3205 if err != nil { 3206 return nil, err 3207 } 3208 return dAtA[:n], nil 3209 } 3210 3211 func (m *MsgLeaveGroupResponse) MarshalTo(dAtA []byte) (int, error) { 3212 size := m.Size() 3213 return m.MarshalToSizedBuffer(dAtA[:size]) 3214 } 3215 3216 func (m *MsgLeaveGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3217 i := len(dAtA) 3218 _ = i 3219 var l int 3220 _ = l 3221 return len(dAtA) - i, nil 3222 } 3223 3224 func encodeVarintTx(dAtA []byte, offset int, v uint64) int { 3225 offset -= sovTx(v) 3226 base := offset 3227 for v >= 1<<7 { 3228 dAtA[offset] = uint8(v&0x7f | 0x80) 3229 v >>= 7 3230 offset++ 3231 } 3232 dAtA[offset] = uint8(v) 3233 return base 3234 } 3235 func (m *MsgCreateGroup) Size() (n int) { 3236 if m == nil { 3237 return 0 3238 } 3239 var l int 3240 _ = l 3241 l = len(m.Admin) 3242 if l > 0 { 3243 n += 1 + l + sovTx(uint64(l)) 3244 } 3245 if len(m.Members) > 0 { 3246 for _, e := range m.Members { 3247 l = e.Size() 3248 n += 1 + l + sovTx(uint64(l)) 3249 } 3250 } 3251 l = len(m.Metadata) 3252 if l > 0 { 3253 n += 1 + l + sovTx(uint64(l)) 3254 } 3255 return n 3256 } 3257 3258 func (m *MsgCreateGroupResponse) Size() (n int) { 3259 if m == nil { 3260 return 0 3261 } 3262 var l int 3263 _ = l 3264 if m.GroupId != 0 { 3265 n += 1 + sovTx(uint64(m.GroupId)) 3266 } 3267 return n 3268 } 3269 3270 func (m *MsgUpdateGroupMembers) Size() (n int) { 3271 if m == nil { 3272 return 0 3273 } 3274 var l int 3275 _ = l 3276 l = len(m.Admin) 3277 if l > 0 { 3278 n += 1 + l + sovTx(uint64(l)) 3279 } 3280 if m.GroupId != 0 { 3281 n += 1 + sovTx(uint64(m.GroupId)) 3282 } 3283 if len(m.MemberUpdates) > 0 { 3284 for _, e := range m.MemberUpdates { 3285 l = e.Size() 3286 n += 1 + l + sovTx(uint64(l)) 3287 } 3288 } 3289 return n 3290 } 3291 3292 func (m *MsgUpdateGroupMembersResponse) Size() (n int) { 3293 if m == nil { 3294 return 0 3295 } 3296 var l int 3297 _ = l 3298 return n 3299 } 3300 3301 func (m *MsgUpdateGroupAdmin) Size() (n int) { 3302 if m == nil { 3303 return 0 3304 } 3305 var l int 3306 _ = l 3307 l = len(m.Admin) 3308 if l > 0 { 3309 n += 1 + l + sovTx(uint64(l)) 3310 } 3311 if m.GroupId != 0 { 3312 n += 1 + sovTx(uint64(m.GroupId)) 3313 } 3314 l = len(m.NewAdmin) 3315 if l > 0 { 3316 n += 1 + l + sovTx(uint64(l)) 3317 } 3318 return n 3319 } 3320 3321 func (m *MsgUpdateGroupAdminResponse) Size() (n int) { 3322 if m == nil { 3323 return 0 3324 } 3325 var l int 3326 _ = l 3327 return n 3328 } 3329 3330 func (m *MsgUpdateGroupMetadata) Size() (n int) { 3331 if m == nil { 3332 return 0 3333 } 3334 var l int 3335 _ = l 3336 l = len(m.Admin) 3337 if l > 0 { 3338 n += 1 + l + sovTx(uint64(l)) 3339 } 3340 if m.GroupId != 0 { 3341 n += 1 + sovTx(uint64(m.GroupId)) 3342 } 3343 l = len(m.Metadata) 3344 if l > 0 { 3345 n += 1 + l + sovTx(uint64(l)) 3346 } 3347 return n 3348 } 3349 3350 func (m *MsgUpdateGroupMetadataResponse) Size() (n int) { 3351 if m == nil { 3352 return 0 3353 } 3354 var l int 3355 _ = l 3356 return n 3357 } 3358 3359 func (m *MsgCreateGroupPolicy) Size() (n int) { 3360 if m == nil { 3361 return 0 3362 } 3363 var l int 3364 _ = l 3365 l = len(m.Admin) 3366 if l > 0 { 3367 n += 1 + l + sovTx(uint64(l)) 3368 } 3369 if m.GroupId != 0 { 3370 n += 1 + sovTx(uint64(m.GroupId)) 3371 } 3372 l = len(m.Metadata) 3373 if l > 0 { 3374 n += 1 + l + sovTx(uint64(l)) 3375 } 3376 if m.DecisionPolicy != nil { 3377 l = m.DecisionPolicy.Size() 3378 n += 1 + l + sovTx(uint64(l)) 3379 } 3380 return n 3381 } 3382 3383 func (m *MsgCreateGroupPolicyResponse) Size() (n int) { 3384 if m == nil { 3385 return 0 3386 } 3387 var l int 3388 _ = l 3389 l = len(m.Address) 3390 if l > 0 { 3391 n += 1 + l + sovTx(uint64(l)) 3392 } 3393 return n 3394 } 3395 3396 func (m *MsgUpdateGroupPolicyAdmin) Size() (n int) { 3397 if m == nil { 3398 return 0 3399 } 3400 var l int 3401 _ = l 3402 l = len(m.Admin) 3403 if l > 0 { 3404 n += 1 + l + sovTx(uint64(l)) 3405 } 3406 l = len(m.GroupPolicyAddress) 3407 if l > 0 { 3408 n += 1 + l + sovTx(uint64(l)) 3409 } 3410 l = len(m.NewAdmin) 3411 if l > 0 { 3412 n += 1 + l + sovTx(uint64(l)) 3413 } 3414 return n 3415 } 3416 3417 func (m *MsgUpdateGroupPolicyAdminResponse) Size() (n int) { 3418 if m == nil { 3419 return 0 3420 } 3421 var l int 3422 _ = l 3423 return n 3424 } 3425 3426 func (m *MsgCreateGroupWithPolicy) Size() (n int) { 3427 if m == nil { 3428 return 0 3429 } 3430 var l int 3431 _ = l 3432 l = len(m.Admin) 3433 if l > 0 { 3434 n += 1 + l + sovTx(uint64(l)) 3435 } 3436 if len(m.Members) > 0 { 3437 for _, e := range m.Members { 3438 l = e.Size() 3439 n += 1 + l + sovTx(uint64(l)) 3440 } 3441 } 3442 l = len(m.GroupMetadata) 3443 if l > 0 { 3444 n += 1 + l + sovTx(uint64(l)) 3445 } 3446 l = len(m.GroupPolicyMetadata) 3447 if l > 0 { 3448 n += 1 + l + sovTx(uint64(l)) 3449 } 3450 if m.GroupPolicyAsAdmin { 3451 n += 2 3452 } 3453 if m.DecisionPolicy != nil { 3454 l = m.DecisionPolicy.Size() 3455 n += 1 + l + sovTx(uint64(l)) 3456 } 3457 return n 3458 } 3459 3460 func (m *MsgCreateGroupWithPolicyResponse) Size() (n int) { 3461 if m == nil { 3462 return 0 3463 } 3464 var l int 3465 _ = l 3466 if m.GroupId != 0 { 3467 n += 1 + sovTx(uint64(m.GroupId)) 3468 } 3469 l = len(m.GroupPolicyAddress) 3470 if l > 0 { 3471 n += 1 + l + sovTx(uint64(l)) 3472 } 3473 return n 3474 } 3475 3476 func (m *MsgUpdateGroupPolicyDecisionPolicy) Size() (n int) { 3477 if m == nil { 3478 return 0 3479 } 3480 var l int 3481 _ = l 3482 l = len(m.Admin) 3483 if l > 0 { 3484 n += 1 + l + sovTx(uint64(l)) 3485 } 3486 l = len(m.GroupPolicyAddress) 3487 if l > 0 { 3488 n += 1 + l + sovTx(uint64(l)) 3489 } 3490 if m.DecisionPolicy != nil { 3491 l = m.DecisionPolicy.Size() 3492 n += 1 + l + sovTx(uint64(l)) 3493 } 3494 return n 3495 } 3496 3497 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) Size() (n int) { 3498 if m == nil { 3499 return 0 3500 } 3501 var l int 3502 _ = l 3503 return n 3504 } 3505 3506 func (m *MsgUpdateGroupPolicyMetadata) Size() (n int) { 3507 if m == nil { 3508 return 0 3509 } 3510 var l int 3511 _ = l 3512 l = len(m.Admin) 3513 if l > 0 { 3514 n += 1 + l + sovTx(uint64(l)) 3515 } 3516 l = len(m.GroupPolicyAddress) 3517 if l > 0 { 3518 n += 1 + l + sovTx(uint64(l)) 3519 } 3520 l = len(m.Metadata) 3521 if l > 0 { 3522 n += 1 + l + sovTx(uint64(l)) 3523 } 3524 return n 3525 } 3526 3527 func (m *MsgUpdateGroupPolicyMetadataResponse) Size() (n int) { 3528 if m == nil { 3529 return 0 3530 } 3531 var l int 3532 _ = l 3533 return n 3534 } 3535 3536 func (m *MsgSubmitProposal) Size() (n int) { 3537 if m == nil { 3538 return 0 3539 } 3540 var l int 3541 _ = l 3542 l = len(m.GroupPolicyAddress) 3543 if l > 0 { 3544 n += 1 + l + sovTx(uint64(l)) 3545 } 3546 if len(m.Proposers) > 0 { 3547 for _, s := range m.Proposers { 3548 l = len(s) 3549 n += 1 + l + sovTx(uint64(l)) 3550 } 3551 } 3552 l = len(m.Metadata) 3553 if l > 0 { 3554 n += 1 + l + sovTx(uint64(l)) 3555 } 3556 if len(m.Messages) > 0 { 3557 for _, e := range m.Messages { 3558 l = e.Size() 3559 n += 1 + l + sovTx(uint64(l)) 3560 } 3561 } 3562 if m.Exec != 0 { 3563 n += 1 + sovTx(uint64(m.Exec)) 3564 } 3565 l = len(m.Title) 3566 if l > 0 { 3567 n += 1 + l + sovTx(uint64(l)) 3568 } 3569 l = len(m.Summary) 3570 if l > 0 { 3571 n += 1 + l + sovTx(uint64(l)) 3572 } 3573 return n 3574 } 3575 3576 func (m *MsgSubmitProposalResponse) Size() (n int) { 3577 if m == nil { 3578 return 0 3579 } 3580 var l int 3581 _ = l 3582 if m.ProposalId != 0 { 3583 n += 1 + sovTx(uint64(m.ProposalId)) 3584 } 3585 return n 3586 } 3587 3588 func (m *MsgWithdrawProposal) Size() (n int) { 3589 if m == nil { 3590 return 0 3591 } 3592 var l int 3593 _ = l 3594 if m.ProposalId != 0 { 3595 n += 1 + sovTx(uint64(m.ProposalId)) 3596 } 3597 l = len(m.Address) 3598 if l > 0 { 3599 n += 1 + l + sovTx(uint64(l)) 3600 } 3601 return n 3602 } 3603 3604 func (m *MsgWithdrawProposalResponse) Size() (n int) { 3605 if m == nil { 3606 return 0 3607 } 3608 var l int 3609 _ = l 3610 return n 3611 } 3612 3613 func (m *MsgVote) Size() (n int) { 3614 if m == nil { 3615 return 0 3616 } 3617 var l int 3618 _ = l 3619 if m.ProposalId != 0 { 3620 n += 1 + sovTx(uint64(m.ProposalId)) 3621 } 3622 l = len(m.Voter) 3623 if l > 0 { 3624 n += 1 + l + sovTx(uint64(l)) 3625 } 3626 if m.Option != 0 { 3627 n += 1 + sovTx(uint64(m.Option)) 3628 } 3629 l = len(m.Metadata) 3630 if l > 0 { 3631 n += 1 + l + sovTx(uint64(l)) 3632 } 3633 if m.Exec != 0 { 3634 n += 1 + sovTx(uint64(m.Exec)) 3635 } 3636 return n 3637 } 3638 3639 func (m *MsgVoteResponse) Size() (n int) { 3640 if m == nil { 3641 return 0 3642 } 3643 var l int 3644 _ = l 3645 return n 3646 } 3647 3648 func (m *MsgExec) Size() (n int) { 3649 if m == nil { 3650 return 0 3651 } 3652 var l int 3653 _ = l 3654 if m.ProposalId != 0 { 3655 n += 1 + sovTx(uint64(m.ProposalId)) 3656 } 3657 l = len(m.Executor) 3658 if l > 0 { 3659 n += 1 + l + sovTx(uint64(l)) 3660 } 3661 return n 3662 } 3663 3664 func (m *MsgExecResponse) Size() (n int) { 3665 if m == nil { 3666 return 0 3667 } 3668 var l int 3669 _ = l 3670 if m.Result != 0 { 3671 n += 1 + sovTx(uint64(m.Result)) 3672 } 3673 return n 3674 } 3675 3676 func (m *MsgLeaveGroup) Size() (n int) { 3677 if m == nil { 3678 return 0 3679 } 3680 var l int 3681 _ = l 3682 l = len(m.Address) 3683 if l > 0 { 3684 n += 1 + l + sovTx(uint64(l)) 3685 } 3686 if m.GroupId != 0 { 3687 n += 1 + sovTx(uint64(m.GroupId)) 3688 } 3689 return n 3690 } 3691 3692 func (m *MsgLeaveGroupResponse) Size() (n int) { 3693 if m == nil { 3694 return 0 3695 } 3696 var l int 3697 _ = l 3698 return n 3699 } 3700 3701 func sovTx(x uint64) (n int) { 3702 return (math_bits.Len64(x|1) + 6) / 7 3703 } 3704 func sozTx(x uint64) (n int) { 3705 return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 3706 } 3707 func (m *MsgCreateGroup) Unmarshal(dAtA []byte) error { 3708 l := len(dAtA) 3709 iNdEx := 0 3710 for iNdEx < l { 3711 preIndex := iNdEx 3712 var wire uint64 3713 for shift := uint(0); ; shift += 7 { 3714 if shift >= 64 { 3715 return ErrIntOverflowTx 3716 } 3717 if iNdEx >= l { 3718 return io.ErrUnexpectedEOF 3719 } 3720 b := dAtA[iNdEx] 3721 iNdEx++ 3722 wire |= uint64(b&0x7F) << shift 3723 if b < 0x80 { 3724 break 3725 } 3726 } 3727 fieldNum := int32(wire >> 3) 3728 wireType := int(wire & 0x7) 3729 if wireType == 4 { 3730 return fmt.Errorf("proto: MsgCreateGroup: wiretype end group for non-group") 3731 } 3732 if fieldNum <= 0 { 3733 return fmt.Errorf("proto: MsgCreateGroup: illegal tag %d (wire type %d)", fieldNum, wire) 3734 } 3735 switch fieldNum { 3736 case 1: 3737 if wireType != 2 { 3738 return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) 3739 } 3740 var stringLen uint64 3741 for shift := uint(0); ; shift += 7 { 3742 if shift >= 64 { 3743 return ErrIntOverflowTx 3744 } 3745 if iNdEx >= l { 3746 return io.ErrUnexpectedEOF 3747 } 3748 b := dAtA[iNdEx] 3749 iNdEx++ 3750 stringLen |= uint64(b&0x7F) << shift 3751 if b < 0x80 { 3752 break 3753 } 3754 } 3755 intStringLen := int(stringLen) 3756 if intStringLen < 0 { 3757 return ErrInvalidLengthTx 3758 } 3759 postIndex := iNdEx + intStringLen 3760 if postIndex < 0 { 3761 return ErrInvalidLengthTx 3762 } 3763 if postIndex > l { 3764 return io.ErrUnexpectedEOF 3765 } 3766 m.Admin = string(dAtA[iNdEx:postIndex]) 3767 iNdEx = postIndex 3768 case 2: 3769 if wireType != 2 { 3770 return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) 3771 } 3772 var msglen int 3773 for shift := uint(0); ; shift += 7 { 3774 if shift >= 64 { 3775 return ErrIntOverflowTx 3776 } 3777 if iNdEx >= l { 3778 return io.ErrUnexpectedEOF 3779 } 3780 b := dAtA[iNdEx] 3781 iNdEx++ 3782 msglen |= int(b&0x7F) << shift 3783 if b < 0x80 { 3784 break 3785 } 3786 } 3787 if msglen < 0 { 3788 return ErrInvalidLengthTx 3789 } 3790 postIndex := iNdEx + msglen 3791 if postIndex < 0 { 3792 return ErrInvalidLengthTx 3793 } 3794 if postIndex > l { 3795 return io.ErrUnexpectedEOF 3796 } 3797 m.Members = append(m.Members, MemberRequest{}) 3798 if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3799 return err 3800 } 3801 iNdEx = postIndex 3802 case 3: 3803 if wireType != 2 { 3804 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 3805 } 3806 var stringLen uint64 3807 for shift := uint(0); ; shift += 7 { 3808 if shift >= 64 { 3809 return ErrIntOverflowTx 3810 } 3811 if iNdEx >= l { 3812 return io.ErrUnexpectedEOF 3813 } 3814 b := dAtA[iNdEx] 3815 iNdEx++ 3816 stringLen |= uint64(b&0x7F) << shift 3817 if b < 0x80 { 3818 break 3819 } 3820 } 3821 intStringLen := int(stringLen) 3822 if intStringLen < 0 { 3823 return ErrInvalidLengthTx 3824 } 3825 postIndex := iNdEx + intStringLen 3826 if postIndex < 0 { 3827 return ErrInvalidLengthTx 3828 } 3829 if postIndex > l { 3830 return io.ErrUnexpectedEOF 3831 } 3832 m.Metadata = string(dAtA[iNdEx:postIndex]) 3833 iNdEx = postIndex 3834 default: 3835 iNdEx = preIndex 3836 skippy, err := skipTx(dAtA[iNdEx:]) 3837 if err != nil { 3838 return err 3839 } 3840 if (skippy < 0) || (iNdEx+skippy) < 0 { 3841 return ErrInvalidLengthTx 3842 } 3843 if (iNdEx + skippy) > l { 3844 return io.ErrUnexpectedEOF 3845 } 3846 iNdEx += skippy 3847 } 3848 } 3849 3850 if iNdEx > l { 3851 return io.ErrUnexpectedEOF 3852 } 3853 return nil 3854 } 3855 func (m *MsgCreateGroupResponse) Unmarshal(dAtA []byte) error { 3856 l := len(dAtA) 3857 iNdEx := 0 3858 for iNdEx < l { 3859 preIndex := iNdEx 3860 var wire uint64 3861 for shift := uint(0); ; shift += 7 { 3862 if shift >= 64 { 3863 return ErrIntOverflowTx 3864 } 3865 if iNdEx >= l { 3866 return io.ErrUnexpectedEOF 3867 } 3868 b := dAtA[iNdEx] 3869 iNdEx++ 3870 wire |= uint64(b&0x7F) << shift 3871 if b < 0x80 { 3872 break 3873 } 3874 } 3875 fieldNum := int32(wire >> 3) 3876 wireType := int(wire & 0x7) 3877 if wireType == 4 { 3878 return fmt.Errorf("proto: MsgCreateGroupResponse: wiretype end group for non-group") 3879 } 3880 if fieldNum <= 0 { 3881 return fmt.Errorf("proto: MsgCreateGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3882 } 3883 switch fieldNum { 3884 case 1: 3885 if wireType != 0 { 3886 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 3887 } 3888 m.GroupId = 0 3889 for shift := uint(0); ; shift += 7 { 3890 if shift >= 64 { 3891 return ErrIntOverflowTx 3892 } 3893 if iNdEx >= l { 3894 return io.ErrUnexpectedEOF 3895 } 3896 b := dAtA[iNdEx] 3897 iNdEx++ 3898 m.GroupId |= uint64(b&0x7F) << shift 3899 if b < 0x80 { 3900 break 3901 } 3902 } 3903 default: 3904 iNdEx = preIndex 3905 skippy, err := skipTx(dAtA[iNdEx:]) 3906 if err != nil { 3907 return err 3908 } 3909 if (skippy < 0) || (iNdEx+skippy) < 0 { 3910 return ErrInvalidLengthTx 3911 } 3912 if (iNdEx + skippy) > l { 3913 return io.ErrUnexpectedEOF 3914 } 3915 iNdEx += skippy 3916 } 3917 } 3918 3919 if iNdEx > l { 3920 return io.ErrUnexpectedEOF 3921 } 3922 return nil 3923 } 3924 func (m *MsgUpdateGroupMembers) Unmarshal(dAtA []byte) error { 3925 l := len(dAtA) 3926 iNdEx := 0 3927 for iNdEx < l { 3928 preIndex := iNdEx 3929 var wire uint64 3930 for shift := uint(0); ; shift += 7 { 3931 if shift >= 64 { 3932 return ErrIntOverflowTx 3933 } 3934 if iNdEx >= l { 3935 return io.ErrUnexpectedEOF 3936 } 3937 b := dAtA[iNdEx] 3938 iNdEx++ 3939 wire |= uint64(b&0x7F) << shift 3940 if b < 0x80 { 3941 break 3942 } 3943 } 3944 fieldNum := int32(wire >> 3) 3945 wireType := int(wire & 0x7) 3946 if wireType == 4 { 3947 return fmt.Errorf("proto: MsgUpdateGroupMembers: wiretype end group for non-group") 3948 } 3949 if fieldNum <= 0 { 3950 return fmt.Errorf("proto: MsgUpdateGroupMembers: illegal tag %d (wire type %d)", fieldNum, wire) 3951 } 3952 switch fieldNum { 3953 case 1: 3954 if wireType != 2 { 3955 return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) 3956 } 3957 var stringLen uint64 3958 for shift := uint(0); ; shift += 7 { 3959 if shift >= 64 { 3960 return ErrIntOverflowTx 3961 } 3962 if iNdEx >= l { 3963 return io.ErrUnexpectedEOF 3964 } 3965 b := dAtA[iNdEx] 3966 iNdEx++ 3967 stringLen |= uint64(b&0x7F) << shift 3968 if b < 0x80 { 3969 break 3970 } 3971 } 3972 intStringLen := int(stringLen) 3973 if intStringLen < 0 { 3974 return ErrInvalidLengthTx 3975 } 3976 postIndex := iNdEx + intStringLen 3977 if postIndex < 0 { 3978 return ErrInvalidLengthTx 3979 } 3980 if postIndex > l { 3981 return io.ErrUnexpectedEOF 3982 } 3983 m.Admin = string(dAtA[iNdEx:postIndex]) 3984 iNdEx = postIndex 3985 case 2: 3986 if wireType != 0 { 3987 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 3988 } 3989 m.GroupId = 0 3990 for shift := uint(0); ; shift += 7 { 3991 if shift >= 64 { 3992 return ErrIntOverflowTx 3993 } 3994 if iNdEx >= l { 3995 return io.ErrUnexpectedEOF 3996 } 3997 b := dAtA[iNdEx] 3998 iNdEx++ 3999 m.GroupId |= uint64(b&0x7F) << shift 4000 if b < 0x80 { 4001 break 4002 } 4003 } 4004 case 3: 4005 if wireType != 2 { 4006 return fmt.Errorf("proto: wrong wireType = %d for field MemberUpdates", wireType) 4007 } 4008 var msglen int 4009 for shift := uint(0); ; shift += 7 { 4010 if shift >= 64 { 4011 return ErrIntOverflowTx 4012 } 4013 if iNdEx >= l { 4014 return io.ErrUnexpectedEOF 4015 } 4016 b := dAtA[iNdEx] 4017 iNdEx++ 4018 msglen |= int(b&0x7F) << shift 4019 if b < 0x80 { 4020 break 4021 } 4022 } 4023 if msglen < 0 { 4024 return ErrInvalidLengthTx 4025 } 4026 postIndex := iNdEx + msglen 4027 if postIndex < 0 { 4028 return ErrInvalidLengthTx 4029 } 4030 if postIndex > l { 4031 return io.ErrUnexpectedEOF 4032 } 4033 m.MemberUpdates = append(m.MemberUpdates, MemberRequest{}) 4034 if err := m.MemberUpdates[len(m.MemberUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4035 return err 4036 } 4037 iNdEx = postIndex 4038 default: 4039 iNdEx = preIndex 4040 skippy, err := skipTx(dAtA[iNdEx:]) 4041 if err != nil { 4042 return err 4043 } 4044 if (skippy < 0) || (iNdEx+skippy) < 0 { 4045 return ErrInvalidLengthTx 4046 } 4047 if (iNdEx + skippy) > l { 4048 return io.ErrUnexpectedEOF 4049 } 4050 iNdEx += skippy 4051 } 4052 } 4053 4054 if iNdEx > l { 4055 return io.ErrUnexpectedEOF 4056 } 4057 return nil 4058 } 4059 func (m *MsgUpdateGroupMembersResponse) Unmarshal(dAtA []byte) error { 4060 l := len(dAtA) 4061 iNdEx := 0 4062 for iNdEx < l { 4063 preIndex := iNdEx 4064 var wire uint64 4065 for shift := uint(0); ; shift += 7 { 4066 if shift >= 64 { 4067 return ErrIntOverflowTx 4068 } 4069 if iNdEx >= l { 4070 return io.ErrUnexpectedEOF 4071 } 4072 b := dAtA[iNdEx] 4073 iNdEx++ 4074 wire |= uint64(b&0x7F) << shift 4075 if b < 0x80 { 4076 break 4077 } 4078 } 4079 fieldNum := int32(wire >> 3) 4080 wireType := int(wire & 0x7) 4081 if wireType == 4 { 4082 return fmt.Errorf("proto: MsgUpdateGroupMembersResponse: wiretype end group for non-group") 4083 } 4084 if fieldNum <= 0 { 4085 return fmt.Errorf("proto: MsgUpdateGroupMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4086 } 4087 switch fieldNum { 4088 default: 4089 iNdEx = preIndex 4090 skippy, err := skipTx(dAtA[iNdEx:]) 4091 if err != nil { 4092 return err 4093 } 4094 if (skippy < 0) || (iNdEx+skippy) < 0 { 4095 return ErrInvalidLengthTx 4096 } 4097 if (iNdEx + skippy) > l { 4098 return io.ErrUnexpectedEOF 4099 } 4100 iNdEx += skippy 4101 } 4102 } 4103 4104 if iNdEx > l { 4105 return io.ErrUnexpectedEOF 4106 } 4107 return nil 4108 } 4109 func (m *MsgUpdateGroupAdmin) Unmarshal(dAtA []byte) error { 4110 l := len(dAtA) 4111 iNdEx := 0 4112 for iNdEx < l { 4113 preIndex := iNdEx 4114 var wire uint64 4115 for shift := uint(0); ; shift += 7 { 4116 if shift >= 64 { 4117 return ErrIntOverflowTx 4118 } 4119 if iNdEx >= l { 4120 return io.ErrUnexpectedEOF 4121 } 4122 b := dAtA[iNdEx] 4123 iNdEx++ 4124 wire |= uint64(b&0x7F) << shift 4125 if b < 0x80 { 4126 break 4127 } 4128 } 4129 fieldNum := int32(wire >> 3) 4130 wireType := int(wire & 0x7) 4131 if wireType == 4 { 4132 return fmt.Errorf("proto: MsgUpdateGroupAdmin: wiretype end group for non-group") 4133 } 4134 if fieldNum <= 0 { 4135 return fmt.Errorf("proto: MsgUpdateGroupAdmin: illegal tag %d (wire type %d)", fieldNum, wire) 4136 } 4137 switch fieldNum { 4138 case 1: 4139 if wireType != 2 { 4140 return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) 4141 } 4142 var stringLen uint64 4143 for shift := uint(0); ; shift += 7 { 4144 if shift >= 64 { 4145 return ErrIntOverflowTx 4146 } 4147 if iNdEx >= l { 4148 return io.ErrUnexpectedEOF 4149 } 4150 b := dAtA[iNdEx] 4151 iNdEx++ 4152 stringLen |= uint64(b&0x7F) << shift 4153 if b < 0x80 { 4154 break 4155 } 4156 } 4157 intStringLen := int(stringLen) 4158 if intStringLen < 0 { 4159 return ErrInvalidLengthTx 4160 } 4161 postIndex := iNdEx + intStringLen 4162 if postIndex < 0 { 4163 return ErrInvalidLengthTx 4164 } 4165 if postIndex > l { 4166 return io.ErrUnexpectedEOF 4167 } 4168 m.Admin = string(dAtA[iNdEx:postIndex]) 4169 iNdEx = postIndex 4170 case 2: 4171 if wireType != 0 { 4172 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 4173 } 4174 m.GroupId = 0 4175 for shift := uint(0); ; shift += 7 { 4176 if shift >= 64 { 4177 return ErrIntOverflowTx 4178 } 4179 if iNdEx >= l { 4180 return io.ErrUnexpectedEOF 4181 } 4182 b := dAtA[iNdEx] 4183 iNdEx++ 4184 m.GroupId |= uint64(b&0x7F) << shift 4185 if b < 0x80 { 4186 break 4187 } 4188 } 4189 case 3: 4190 if wireType != 2 { 4191 return fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", wireType) 4192 } 4193 var stringLen uint64 4194 for shift := uint(0); ; shift += 7 { 4195 if shift >= 64 { 4196 return ErrIntOverflowTx 4197 } 4198 if iNdEx >= l { 4199 return io.ErrUnexpectedEOF 4200 } 4201 b := dAtA[iNdEx] 4202 iNdEx++ 4203 stringLen |= uint64(b&0x7F) << shift 4204 if b < 0x80 { 4205 break 4206 } 4207 } 4208 intStringLen := int(stringLen) 4209 if intStringLen < 0 { 4210 return ErrInvalidLengthTx 4211 } 4212 postIndex := iNdEx + intStringLen 4213 if postIndex < 0 { 4214 return ErrInvalidLengthTx 4215 } 4216 if postIndex > l { 4217 return io.ErrUnexpectedEOF 4218 } 4219 m.NewAdmin = string(dAtA[iNdEx:postIndex]) 4220 iNdEx = postIndex 4221 default: 4222 iNdEx = preIndex 4223 skippy, err := skipTx(dAtA[iNdEx:]) 4224 if err != nil { 4225 return err 4226 } 4227 if (skippy < 0) || (iNdEx+skippy) < 0 { 4228 return ErrInvalidLengthTx 4229 } 4230 if (iNdEx + skippy) > l { 4231 return io.ErrUnexpectedEOF 4232 } 4233 iNdEx += skippy 4234 } 4235 } 4236 4237 if iNdEx > l { 4238 return io.ErrUnexpectedEOF 4239 } 4240 return nil 4241 } 4242 func (m *MsgUpdateGroupAdminResponse) Unmarshal(dAtA []byte) error { 4243 l := len(dAtA) 4244 iNdEx := 0 4245 for iNdEx < l { 4246 preIndex := iNdEx 4247 var wire uint64 4248 for shift := uint(0); ; shift += 7 { 4249 if shift >= 64 { 4250 return ErrIntOverflowTx 4251 } 4252 if iNdEx >= l { 4253 return io.ErrUnexpectedEOF 4254 } 4255 b := dAtA[iNdEx] 4256 iNdEx++ 4257 wire |= uint64(b&0x7F) << shift 4258 if b < 0x80 { 4259 break 4260 } 4261 } 4262 fieldNum := int32(wire >> 3) 4263 wireType := int(wire & 0x7) 4264 if wireType == 4 { 4265 return fmt.Errorf("proto: MsgUpdateGroupAdminResponse: wiretype end group for non-group") 4266 } 4267 if fieldNum <= 0 { 4268 return fmt.Errorf("proto: MsgUpdateGroupAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4269 } 4270 switch fieldNum { 4271 default: 4272 iNdEx = preIndex 4273 skippy, err := skipTx(dAtA[iNdEx:]) 4274 if err != nil { 4275 return err 4276 } 4277 if (skippy < 0) || (iNdEx+skippy) < 0 { 4278 return ErrInvalidLengthTx 4279 } 4280 if (iNdEx + skippy) > l { 4281 return io.ErrUnexpectedEOF 4282 } 4283 iNdEx += skippy 4284 } 4285 } 4286 4287 if iNdEx > l { 4288 return io.ErrUnexpectedEOF 4289 } 4290 return nil 4291 } 4292 func (m *MsgUpdateGroupMetadata) Unmarshal(dAtA []byte) error { 4293 l := len(dAtA) 4294 iNdEx := 0 4295 for iNdEx < l { 4296 preIndex := iNdEx 4297 var wire uint64 4298 for shift := uint(0); ; shift += 7 { 4299 if shift >= 64 { 4300 return ErrIntOverflowTx 4301 } 4302 if iNdEx >= l { 4303 return io.ErrUnexpectedEOF 4304 } 4305 b := dAtA[iNdEx] 4306 iNdEx++ 4307 wire |= uint64(b&0x7F) << shift 4308 if b < 0x80 { 4309 break 4310 } 4311 } 4312 fieldNum := int32(wire >> 3) 4313 wireType := int(wire & 0x7) 4314 if wireType == 4 { 4315 return fmt.Errorf("proto: MsgUpdateGroupMetadata: wiretype end group for non-group") 4316 } 4317 if fieldNum <= 0 { 4318 return fmt.Errorf("proto: MsgUpdateGroupMetadata: illegal tag %d (wire type %d)", fieldNum, wire) 4319 } 4320 switch fieldNum { 4321 case 1: 4322 if wireType != 2 { 4323 return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) 4324 } 4325 var stringLen uint64 4326 for shift := uint(0); ; shift += 7 { 4327 if shift >= 64 { 4328 return ErrIntOverflowTx 4329 } 4330 if iNdEx >= l { 4331 return io.ErrUnexpectedEOF 4332 } 4333 b := dAtA[iNdEx] 4334 iNdEx++ 4335 stringLen |= uint64(b&0x7F) << shift 4336 if b < 0x80 { 4337 break 4338 } 4339 } 4340 intStringLen := int(stringLen) 4341 if intStringLen < 0 { 4342 return ErrInvalidLengthTx 4343 } 4344 postIndex := iNdEx + intStringLen 4345 if postIndex < 0 { 4346 return ErrInvalidLengthTx 4347 } 4348 if postIndex > l { 4349 return io.ErrUnexpectedEOF 4350 } 4351 m.Admin = string(dAtA[iNdEx:postIndex]) 4352 iNdEx = postIndex 4353 case 2: 4354 if wireType != 0 { 4355 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 4356 } 4357 m.GroupId = 0 4358 for shift := uint(0); ; shift += 7 { 4359 if shift >= 64 { 4360 return ErrIntOverflowTx 4361 } 4362 if iNdEx >= l { 4363 return io.ErrUnexpectedEOF 4364 } 4365 b := dAtA[iNdEx] 4366 iNdEx++ 4367 m.GroupId |= uint64(b&0x7F) << shift 4368 if b < 0x80 { 4369 break 4370 } 4371 } 4372 case 3: 4373 if wireType != 2 { 4374 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 4375 } 4376 var stringLen uint64 4377 for shift := uint(0); ; shift += 7 { 4378 if shift >= 64 { 4379 return ErrIntOverflowTx 4380 } 4381 if iNdEx >= l { 4382 return io.ErrUnexpectedEOF 4383 } 4384 b := dAtA[iNdEx] 4385 iNdEx++ 4386 stringLen |= uint64(b&0x7F) << shift 4387 if b < 0x80 { 4388 break 4389 } 4390 } 4391 intStringLen := int(stringLen) 4392 if intStringLen < 0 { 4393 return ErrInvalidLengthTx 4394 } 4395 postIndex := iNdEx + intStringLen 4396 if postIndex < 0 { 4397 return ErrInvalidLengthTx 4398 } 4399 if postIndex > l { 4400 return io.ErrUnexpectedEOF 4401 } 4402 m.Metadata = string(dAtA[iNdEx:postIndex]) 4403 iNdEx = postIndex 4404 default: 4405 iNdEx = preIndex 4406 skippy, err := skipTx(dAtA[iNdEx:]) 4407 if err != nil { 4408 return err 4409 } 4410 if (skippy < 0) || (iNdEx+skippy) < 0 { 4411 return ErrInvalidLengthTx 4412 } 4413 if (iNdEx + skippy) > l { 4414 return io.ErrUnexpectedEOF 4415 } 4416 iNdEx += skippy 4417 } 4418 } 4419 4420 if iNdEx > l { 4421 return io.ErrUnexpectedEOF 4422 } 4423 return nil 4424 } 4425 func (m *MsgUpdateGroupMetadataResponse) Unmarshal(dAtA []byte) error { 4426 l := len(dAtA) 4427 iNdEx := 0 4428 for iNdEx < l { 4429 preIndex := iNdEx 4430 var wire uint64 4431 for shift := uint(0); ; shift += 7 { 4432 if shift >= 64 { 4433 return ErrIntOverflowTx 4434 } 4435 if iNdEx >= l { 4436 return io.ErrUnexpectedEOF 4437 } 4438 b := dAtA[iNdEx] 4439 iNdEx++ 4440 wire |= uint64(b&0x7F) << shift 4441 if b < 0x80 { 4442 break 4443 } 4444 } 4445 fieldNum := int32(wire >> 3) 4446 wireType := int(wire & 0x7) 4447 if wireType == 4 { 4448 return fmt.Errorf("proto: MsgUpdateGroupMetadataResponse: wiretype end group for non-group") 4449 } 4450 if fieldNum <= 0 { 4451 return fmt.Errorf("proto: MsgUpdateGroupMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4452 } 4453 switch fieldNum { 4454 default: 4455 iNdEx = preIndex 4456 skippy, err := skipTx(dAtA[iNdEx:]) 4457 if err != nil { 4458 return err 4459 } 4460 if (skippy < 0) || (iNdEx+skippy) < 0 { 4461 return ErrInvalidLengthTx 4462 } 4463 if (iNdEx + skippy) > l { 4464 return io.ErrUnexpectedEOF 4465 } 4466 iNdEx += skippy 4467 } 4468 } 4469 4470 if iNdEx > l { 4471 return io.ErrUnexpectedEOF 4472 } 4473 return nil 4474 } 4475 func (m *MsgCreateGroupPolicy) Unmarshal(dAtA []byte) error { 4476 l := len(dAtA) 4477 iNdEx := 0 4478 for iNdEx < l { 4479 preIndex := iNdEx 4480 var wire uint64 4481 for shift := uint(0); ; shift += 7 { 4482 if shift >= 64 { 4483 return ErrIntOverflowTx 4484 } 4485 if iNdEx >= l { 4486 return io.ErrUnexpectedEOF 4487 } 4488 b := dAtA[iNdEx] 4489 iNdEx++ 4490 wire |= uint64(b&0x7F) << shift 4491 if b < 0x80 { 4492 break 4493 } 4494 } 4495 fieldNum := int32(wire >> 3) 4496 wireType := int(wire & 0x7) 4497 if wireType == 4 { 4498 return fmt.Errorf("proto: MsgCreateGroupPolicy: wiretype end group for non-group") 4499 } 4500 if fieldNum <= 0 { 4501 return fmt.Errorf("proto: MsgCreateGroupPolicy: illegal tag %d (wire type %d)", fieldNum, wire) 4502 } 4503 switch fieldNum { 4504 case 1: 4505 if wireType != 2 { 4506 return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) 4507 } 4508 var stringLen uint64 4509 for shift := uint(0); ; shift += 7 { 4510 if shift >= 64 { 4511 return ErrIntOverflowTx 4512 } 4513 if iNdEx >= l { 4514 return io.ErrUnexpectedEOF 4515 } 4516 b := dAtA[iNdEx] 4517 iNdEx++ 4518 stringLen |= uint64(b&0x7F) << shift 4519 if b < 0x80 { 4520 break 4521 } 4522 } 4523 intStringLen := int(stringLen) 4524 if intStringLen < 0 { 4525 return ErrInvalidLengthTx 4526 } 4527 postIndex := iNdEx + intStringLen 4528 if postIndex < 0 { 4529 return ErrInvalidLengthTx 4530 } 4531 if postIndex > l { 4532 return io.ErrUnexpectedEOF 4533 } 4534 m.Admin = string(dAtA[iNdEx:postIndex]) 4535 iNdEx = postIndex 4536 case 2: 4537 if wireType != 0 { 4538 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 4539 } 4540 m.GroupId = 0 4541 for shift := uint(0); ; shift += 7 { 4542 if shift >= 64 { 4543 return ErrIntOverflowTx 4544 } 4545 if iNdEx >= l { 4546 return io.ErrUnexpectedEOF 4547 } 4548 b := dAtA[iNdEx] 4549 iNdEx++ 4550 m.GroupId |= uint64(b&0x7F) << shift 4551 if b < 0x80 { 4552 break 4553 } 4554 } 4555 case 3: 4556 if wireType != 2 { 4557 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 4558 } 4559 var stringLen uint64 4560 for shift := uint(0); ; shift += 7 { 4561 if shift >= 64 { 4562 return ErrIntOverflowTx 4563 } 4564 if iNdEx >= l { 4565 return io.ErrUnexpectedEOF 4566 } 4567 b := dAtA[iNdEx] 4568 iNdEx++ 4569 stringLen |= uint64(b&0x7F) << shift 4570 if b < 0x80 { 4571 break 4572 } 4573 } 4574 intStringLen := int(stringLen) 4575 if intStringLen < 0 { 4576 return ErrInvalidLengthTx 4577 } 4578 postIndex := iNdEx + intStringLen 4579 if postIndex < 0 { 4580 return ErrInvalidLengthTx 4581 } 4582 if postIndex > l { 4583 return io.ErrUnexpectedEOF 4584 } 4585 m.Metadata = string(dAtA[iNdEx:postIndex]) 4586 iNdEx = postIndex 4587 case 4: 4588 if wireType != 2 { 4589 return fmt.Errorf("proto: wrong wireType = %d for field DecisionPolicy", wireType) 4590 } 4591 var msglen int 4592 for shift := uint(0); ; shift += 7 { 4593 if shift >= 64 { 4594 return ErrIntOverflowTx 4595 } 4596 if iNdEx >= l { 4597 return io.ErrUnexpectedEOF 4598 } 4599 b := dAtA[iNdEx] 4600 iNdEx++ 4601 msglen |= int(b&0x7F) << shift 4602 if b < 0x80 { 4603 break 4604 } 4605 } 4606 if msglen < 0 { 4607 return ErrInvalidLengthTx 4608 } 4609 postIndex := iNdEx + msglen 4610 if postIndex < 0 { 4611 return ErrInvalidLengthTx 4612 } 4613 if postIndex > l { 4614 return io.ErrUnexpectedEOF 4615 } 4616 if m.DecisionPolicy == nil { 4617 m.DecisionPolicy = &types.Any{} 4618 } 4619 if err := m.DecisionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4620 return err 4621 } 4622 iNdEx = postIndex 4623 default: 4624 iNdEx = preIndex 4625 skippy, err := skipTx(dAtA[iNdEx:]) 4626 if err != nil { 4627 return err 4628 } 4629 if (skippy < 0) || (iNdEx+skippy) < 0 { 4630 return ErrInvalidLengthTx 4631 } 4632 if (iNdEx + skippy) > l { 4633 return io.ErrUnexpectedEOF 4634 } 4635 iNdEx += skippy 4636 } 4637 } 4638 4639 if iNdEx > l { 4640 return io.ErrUnexpectedEOF 4641 } 4642 return nil 4643 } 4644 func (m *MsgCreateGroupPolicyResponse) Unmarshal(dAtA []byte) error { 4645 l := len(dAtA) 4646 iNdEx := 0 4647 for iNdEx < l { 4648 preIndex := iNdEx 4649 var wire uint64 4650 for shift := uint(0); ; shift += 7 { 4651 if shift >= 64 { 4652 return ErrIntOverflowTx 4653 } 4654 if iNdEx >= l { 4655 return io.ErrUnexpectedEOF 4656 } 4657 b := dAtA[iNdEx] 4658 iNdEx++ 4659 wire |= uint64(b&0x7F) << shift 4660 if b < 0x80 { 4661 break 4662 } 4663 } 4664 fieldNum := int32(wire >> 3) 4665 wireType := int(wire & 0x7) 4666 if wireType == 4 { 4667 return fmt.Errorf("proto: MsgCreateGroupPolicyResponse: wiretype end group for non-group") 4668 } 4669 if fieldNum <= 0 { 4670 return fmt.Errorf("proto: MsgCreateGroupPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4671 } 4672 switch fieldNum { 4673 case 1: 4674 if wireType != 2 { 4675 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 4676 } 4677 var stringLen uint64 4678 for shift := uint(0); ; shift += 7 { 4679 if shift >= 64 { 4680 return ErrIntOverflowTx 4681 } 4682 if iNdEx >= l { 4683 return io.ErrUnexpectedEOF 4684 } 4685 b := dAtA[iNdEx] 4686 iNdEx++ 4687 stringLen |= uint64(b&0x7F) << shift 4688 if b < 0x80 { 4689 break 4690 } 4691 } 4692 intStringLen := int(stringLen) 4693 if intStringLen < 0 { 4694 return ErrInvalidLengthTx 4695 } 4696 postIndex := iNdEx + intStringLen 4697 if postIndex < 0 { 4698 return ErrInvalidLengthTx 4699 } 4700 if postIndex > l { 4701 return io.ErrUnexpectedEOF 4702 } 4703 m.Address = string(dAtA[iNdEx:postIndex]) 4704 iNdEx = postIndex 4705 default: 4706 iNdEx = preIndex 4707 skippy, err := skipTx(dAtA[iNdEx:]) 4708 if err != nil { 4709 return err 4710 } 4711 if (skippy < 0) || (iNdEx+skippy) < 0 { 4712 return ErrInvalidLengthTx 4713 } 4714 if (iNdEx + skippy) > l { 4715 return io.ErrUnexpectedEOF 4716 } 4717 iNdEx += skippy 4718 } 4719 } 4720 4721 if iNdEx > l { 4722 return io.ErrUnexpectedEOF 4723 } 4724 return nil 4725 } 4726 func (m *MsgUpdateGroupPolicyAdmin) Unmarshal(dAtA []byte) error { 4727 l := len(dAtA) 4728 iNdEx := 0 4729 for iNdEx < l { 4730 preIndex := iNdEx 4731 var wire uint64 4732 for shift := uint(0); ; shift += 7 { 4733 if shift >= 64 { 4734 return ErrIntOverflowTx 4735 } 4736 if iNdEx >= l { 4737 return io.ErrUnexpectedEOF 4738 } 4739 b := dAtA[iNdEx] 4740 iNdEx++ 4741 wire |= uint64(b&0x7F) << shift 4742 if b < 0x80 { 4743 break 4744 } 4745 } 4746 fieldNum := int32(wire >> 3) 4747 wireType := int(wire & 0x7) 4748 if wireType == 4 { 4749 return fmt.Errorf("proto: MsgUpdateGroupPolicyAdmin: wiretype end group for non-group") 4750 } 4751 if fieldNum <= 0 { 4752 return fmt.Errorf("proto: MsgUpdateGroupPolicyAdmin: illegal tag %d (wire type %d)", fieldNum, wire) 4753 } 4754 switch fieldNum { 4755 case 1: 4756 if wireType != 2 { 4757 return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) 4758 } 4759 var stringLen uint64 4760 for shift := uint(0); ; shift += 7 { 4761 if shift >= 64 { 4762 return ErrIntOverflowTx 4763 } 4764 if iNdEx >= l { 4765 return io.ErrUnexpectedEOF 4766 } 4767 b := dAtA[iNdEx] 4768 iNdEx++ 4769 stringLen |= uint64(b&0x7F) << shift 4770 if b < 0x80 { 4771 break 4772 } 4773 } 4774 intStringLen := int(stringLen) 4775 if intStringLen < 0 { 4776 return ErrInvalidLengthTx 4777 } 4778 postIndex := iNdEx + intStringLen 4779 if postIndex < 0 { 4780 return ErrInvalidLengthTx 4781 } 4782 if postIndex > l { 4783 return io.ErrUnexpectedEOF 4784 } 4785 m.Admin = string(dAtA[iNdEx:postIndex]) 4786 iNdEx = postIndex 4787 case 2: 4788 if wireType != 2 { 4789 return fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) 4790 } 4791 var stringLen uint64 4792 for shift := uint(0); ; shift += 7 { 4793 if shift >= 64 { 4794 return ErrIntOverflowTx 4795 } 4796 if iNdEx >= l { 4797 return io.ErrUnexpectedEOF 4798 } 4799 b := dAtA[iNdEx] 4800 iNdEx++ 4801 stringLen |= uint64(b&0x7F) << shift 4802 if b < 0x80 { 4803 break 4804 } 4805 } 4806 intStringLen := int(stringLen) 4807 if intStringLen < 0 { 4808 return ErrInvalidLengthTx 4809 } 4810 postIndex := iNdEx + intStringLen 4811 if postIndex < 0 { 4812 return ErrInvalidLengthTx 4813 } 4814 if postIndex > l { 4815 return io.ErrUnexpectedEOF 4816 } 4817 m.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) 4818 iNdEx = postIndex 4819 case 3: 4820 if wireType != 2 { 4821 return fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", wireType) 4822 } 4823 var stringLen uint64 4824 for shift := uint(0); ; shift += 7 { 4825 if shift >= 64 { 4826 return ErrIntOverflowTx 4827 } 4828 if iNdEx >= l { 4829 return io.ErrUnexpectedEOF 4830 } 4831 b := dAtA[iNdEx] 4832 iNdEx++ 4833 stringLen |= uint64(b&0x7F) << shift 4834 if b < 0x80 { 4835 break 4836 } 4837 } 4838 intStringLen := int(stringLen) 4839 if intStringLen < 0 { 4840 return ErrInvalidLengthTx 4841 } 4842 postIndex := iNdEx + intStringLen 4843 if postIndex < 0 { 4844 return ErrInvalidLengthTx 4845 } 4846 if postIndex > l { 4847 return io.ErrUnexpectedEOF 4848 } 4849 m.NewAdmin = string(dAtA[iNdEx:postIndex]) 4850 iNdEx = postIndex 4851 default: 4852 iNdEx = preIndex 4853 skippy, err := skipTx(dAtA[iNdEx:]) 4854 if err != nil { 4855 return err 4856 } 4857 if (skippy < 0) || (iNdEx+skippy) < 0 { 4858 return ErrInvalidLengthTx 4859 } 4860 if (iNdEx + skippy) > l { 4861 return io.ErrUnexpectedEOF 4862 } 4863 iNdEx += skippy 4864 } 4865 } 4866 4867 if iNdEx > l { 4868 return io.ErrUnexpectedEOF 4869 } 4870 return nil 4871 } 4872 func (m *MsgUpdateGroupPolicyAdminResponse) Unmarshal(dAtA []byte) error { 4873 l := len(dAtA) 4874 iNdEx := 0 4875 for iNdEx < l { 4876 preIndex := iNdEx 4877 var wire uint64 4878 for shift := uint(0); ; shift += 7 { 4879 if shift >= 64 { 4880 return ErrIntOverflowTx 4881 } 4882 if iNdEx >= l { 4883 return io.ErrUnexpectedEOF 4884 } 4885 b := dAtA[iNdEx] 4886 iNdEx++ 4887 wire |= uint64(b&0x7F) << shift 4888 if b < 0x80 { 4889 break 4890 } 4891 } 4892 fieldNum := int32(wire >> 3) 4893 wireType := int(wire & 0x7) 4894 if wireType == 4 { 4895 return fmt.Errorf("proto: MsgUpdateGroupPolicyAdminResponse: wiretype end group for non-group") 4896 } 4897 if fieldNum <= 0 { 4898 return fmt.Errorf("proto: MsgUpdateGroupPolicyAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4899 } 4900 switch fieldNum { 4901 default: 4902 iNdEx = preIndex 4903 skippy, err := skipTx(dAtA[iNdEx:]) 4904 if err != nil { 4905 return err 4906 } 4907 if (skippy < 0) || (iNdEx+skippy) < 0 { 4908 return ErrInvalidLengthTx 4909 } 4910 if (iNdEx + skippy) > l { 4911 return io.ErrUnexpectedEOF 4912 } 4913 iNdEx += skippy 4914 } 4915 } 4916 4917 if iNdEx > l { 4918 return io.ErrUnexpectedEOF 4919 } 4920 return nil 4921 } 4922 func (m *MsgCreateGroupWithPolicy) Unmarshal(dAtA []byte) error { 4923 l := len(dAtA) 4924 iNdEx := 0 4925 for iNdEx < l { 4926 preIndex := iNdEx 4927 var wire uint64 4928 for shift := uint(0); ; shift += 7 { 4929 if shift >= 64 { 4930 return ErrIntOverflowTx 4931 } 4932 if iNdEx >= l { 4933 return io.ErrUnexpectedEOF 4934 } 4935 b := dAtA[iNdEx] 4936 iNdEx++ 4937 wire |= uint64(b&0x7F) << shift 4938 if b < 0x80 { 4939 break 4940 } 4941 } 4942 fieldNum := int32(wire >> 3) 4943 wireType := int(wire & 0x7) 4944 if wireType == 4 { 4945 return fmt.Errorf("proto: MsgCreateGroupWithPolicy: wiretype end group for non-group") 4946 } 4947 if fieldNum <= 0 { 4948 return fmt.Errorf("proto: MsgCreateGroupWithPolicy: illegal tag %d (wire type %d)", fieldNum, wire) 4949 } 4950 switch fieldNum { 4951 case 1: 4952 if wireType != 2 { 4953 return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) 4954 } 4955 var stringLen uint64 4956 for shift := uint(0); ; shift += 7 { 4957 if shift >= 64 { 4958 return ErrIntOverflowTx 4959 } 4960 if iNdEx >= l { 4961 return io.ErrUnexpectedEOF 4962 } 4963 b := dAtA[iNdEx] 4964 iNdEx++ 4965 stringLen |= uint64(b&0x7F) << shift 4966 if b < 0x80 { 4967 break 4968 } 4969 } 4970 intStringLen := int(stringLen) 4971 if intStringLen < 0 { 4972 return ErrInvalidLengthTx 4973 } 4974 postIndex := iNdEx + intStringLen 4975 if postIndex < 0 { 4976 return ErrInvalidLengthTx 4977 } 4978 if postIndex > l { 4979 return io.ErrUnexpectedEOF 4980 } 4981 m.Admin = string(dAtA[iNdEx:postIndex]) 4982 iNdEx = postIndex 4983 case 2: 4984 if wireType != 2 { 4985 return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) 4986 } 4987 var msglen int 4988 for shift := uint(0); ; shift += 7 { 4989 if shift >= 64 { 4990 return ErrIntOverflowTx 4991 } 4992 if iNdEx >= l { 4993 return io.ErrUnexpectedEOF 4994 } 4995 b := dAtA[iNdEx] 4996 iNdEx++ 4997 msglen |= int(b&0x7F) << shift 4998 if b < 0x80 { 4999 break 5000 } 5001 } 5002 if msglen < 0 { 5003 return ErrInvalidLengthTx 5004 } 5005 postIndex := iNdEx + msglen 5006 if postIndex < 0 { 5007 return ErrInvalidLengthTx 5008 } 5009 if postIndex > l { 5010 return io.ErrUnexpectedEOF 5011 } 5012 m.Members = append(m.Members, MemberRequest{}) 5013 if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5014 return err 5015 } 5016 iNdEx = postIndex 5017 case 3: 5018 if wireType != 2 { 5019 return fmt.Errorf("proto: wrong wireType = %d for field GroupMetadata", wireType) 5020 } 5021 var stringLen uint64 5022 for shift := uint(0); ; shift += 7 { 5023 if shift >= 64 { 5024 return ErrIntOverflowTx 5025 } 5026 if iNdEx >= l { 5027 return io.ErrUnexpectedEOF 5028 } 5029 b := dAtA[iNdEx] 5030 iNdEx++ 5031 stringLen |= uint64(b&0x7F) << shift 5032 if b < 0x80 { 5033 break 5034 } 5035 } 5036 intStringLen := int(stringLen) 5037 if intStringLen < 0 { 5038 return ErrInvalidLengthTx 5039 } 5040 postIndex := iNdEx + intStringLen 5041 if postIndex < 0 { 5042 return ErrInvalidLengthTx 5043 } 5044 if postIndex > l { 5045 return io.ErrUnexpectedEOF 5046 } 5047 m.GroupMetadata = string(dAtA[iNdEx:postIndex]) 5048 iNdEx = postIndex 5049 case 4: 5050 if wireType != 2 { 5051 return fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyMetadata", wireType) 5052 } 5053 var stringLen uint64 5054 for shift := uint(0); ; shift += 7 { 5055 if shift >= 64 { 5056 return ErrIntOverflowTx 5057 } 5058 if iNdEx >= l { 5059 return io.ErrUnexpectedEOF 5060 } 5061 b := dAtA[iNdEx] 5062 iNdEx++ 5063 stringLen |= uint64(b&0x7F) << shift 5064 if b < 0x80 { 5065 break 5066 } 5067 } 5068 intStringLen := int(stringLen) 5069 if intStringLen < 0 { 5070 return ErrInvalidLengthTx 5071 } 5072 postIndex := iNdEx + intStringLen 5073 if postIndex < 0 { 5074 return ErrInvalidLengthTx 5075 } 5076 if postIndex > l { 5077 return io.ErrUnexpectedEOF 5078 } 5079 m.GroupPolicyMetadata = string(dAtA[iNdEx:postIndex]) 5080 iNdEx = postIndex 5081 case 5: 5082 if wireType != 0 { 5083 return fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAsAdmin", wireType) 5084 } 5085 var v int 5086 for shift := uint(0); ; shift += 7 { 5087 if shift >= 64 { 5088 return ErrIntOverflowTx 5089 } 5090 if iNdEx >= l { 5091 return io.ErrUnexpectedEOF 5092 } 5093 b := dAtA[iNdEx] 5094 iNdEx++ 5095 v |= int(b&0x7F) << shift 5096 if b < 0x80 { 5097 break 5098 } 5099 } 5100 m.GroupPolicyAsAdmin = bool(v != 0) 5101 case 6: 5102 if wireType != 2 { 5103 return fmt.Errorf("proto: wrong wireType = %d for field DecisionPolicy", wireType) 5104 } 5105 var msglen int 5106 for shift := uint(0); ; shift += 7 { 5107 if shift >= 64 { 5108 return ErrIntOverflowTx 5109 } 5110 if iNdEx >= l { 5111 return io.ErrUnexpectedEOF 5112 } 5113 b := dAtA[iNdEx] 5114 iNdEx++ 5115 msglen |= int(b&0x7F) << shift 5116 if b < 0x80 { 5117 break 5118 } 5119 } 5120 if msglen < 0 { 5121 return ErrInvalidLengthTx 5122 } 5123 postIndex := iNdEx + msglen 5124 if postIndex < 0 { 5125 return ErrInvalidLengthTx 5126 } 5127 if postIndex > l { 5128 return io.ErrUnexpectedEOF 5129 } 5130 if m.DecisionPolicy == nil { 5131 m.DecisionPolicy = &types.Any{} 5132 } 5133 if err := m.DecisionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5134 return err 5135 } 5136 iNdEx = postIndex 5137 default: 5138 iNdEx = preIndex 5139 skippy, err := skipTx(dAtA[iNdEx:]) 5140 if err != nil { 5141 return err 5142 } 5143 if (skippy < 0) || (iNdEx+skippy) < 0 { 5144 return ErrInvalidLengthTx 5145 } 5146 if (iNdEx + skippy) > l { 5147 return io.ErrUnexpectedEOF 5148 } 5149 iNdEx += skippy 5150 } 5151 } 5152 5153 if iNdEx > l { 5154 return io.ErrUnexpectedEOF 5155 } 5156 return nil 5157 } 5158 func (m *MsgCreateGroupWithPolicyResponse) Unmarshal(dAtA []byte) error { 5159 l := len(dAtA) 5160 iNdEx := 0 5161 for iNdEx < l { 5162 preIndex := iNdEx 5163 var wire uint64 5164 for shift := uint(0); ; shift += 7 { 5165 if shift >= 64 { 5166 return ErrIntOverflowTx 5167 } 5168 if iNdEx >= l { 5169 return io.ErrUnexpectedEOF 5170 } 5171 b := dAtA[iNdEx] 5172 iNdEx++ 5173 wire |= uint64(b&0x7F) << shift 5174 if b < 0x80 { 5175 break 5176 } 5177 } 5178 fieldNum := int32(wire >> 3) 5179 wireType := int(wire & 0x7) 5180 if wireType == 4 { 5181 return fmt.Errorf("proto: MsgCreateGroupWithPolicyResponse: wiretype end group for non-group") 5182 } 5183 if fieldNum <= 0 { 5184 return fmt.Errorf("proto: MsgCreateGroupWithPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5185 } 5186 switch fieldNum { 5187 case 1: 5188 if wireType != 0 { 5189 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 5190 } 5191 m.GroupId = 0 5192 for shift := uint(0); ; shift += 7 { 5193 if shift >= 64 { 5194 return ErrIntOverflowTx 5195 } 5196 if iNdEx >= l { 5197 return io.ErrUnexpectedEOF 5198 } 5199 b := dAtA[iNdEx] 5200 iNdEx++ 5201 m.GroupId |= uint64(b&0x7F) << shift 5202 if b < 0x80 { 5203 break 5204 } 5205 } 5206 case 2: 5207 if wireType != 2 { 5208 return fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) 5209 } 5210 var stringLen uint64 5211 for shift := uint(0); ; shift += 7 { 5212 if shift >= 64 { 5213 return ErrIntOverflowTx 5214 } 5215 if iNdEx >= l { 5216 return io.ErrUnexpectedEOF 5217 } 5218 b := dAtA[iNdEx] 5219 iNdEx++ 5220 stringLen |= uint64(b&0x7F) << shift 5221 if b < 0x80 { 5222 break 5223 } 5224 } 5225 intStringLen := int(stringLen) 5226 if intStringLen < 0 { 5227 return ErrInvalidLengthTx 5228 } 5229 postIndex := iNdEx + intStringLen 5230 if postIndex < 0 { 5231 return ErrInvalidLengthTx 5232 } 5233 if postIndex > l { 5234 return io.ErrUnexpectedEOF 5235 } 5236 m.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) 5237 iNdEx = postIndex 5238 default: 5239 iNdEx = preIndex 5240 skippy, err := skipTx(dAtA[iNdEx:]) 5241 if err != nil { 5242 return err 5243 } 5244 if (skippy < 0) || (iNdEx+skippy) < 0 { 5245 return ErrInvalidLengthTx 5246 } 5247 if (iNdEx + skippy) > l { 5248 return io.ErrUnexpectedEOF 5249 } 5250 iNdEx += skippy 5251 } 5252 } 5253 5254 if iNdEx > l { 5255 return io.ErrUnexpectedEOF 5256 } 5257 return nil 5258 } 5259 func (m *MsgUpdateGroupPolicyDecisionPolicy) Unmarshal(dAtA []byte) error { 5260 l := len(dAtA) 5261 iNdEx := 0 5262 for iNdEx < l { 5263 preIndex := iNdEx 5264 var wire uint64 5265 for shift := uint(0); ; shift += 7 { 5266 if shift >= 64 { 5267 return ErrIntOverflowTx 5268 } 5269 if iNdEx >= l { 5270 return io.ErrUnexpectedEOF 5271 } 5272 b := dAtA[iNdEx] 5273 iNdEx++ 5274 wire |= uint64(b&0x7F) << shift 5275 if b < 0x80 { 5276 break 5277 } 5278 } 5279 fieldNum := int32(wire >> 3) 5280 wireType := int(wire & 0x7) 5281 if wireType == 4 { 5282 return fmt.Errorf("proto: MsgUpdateGroupPolicyDecisionPolicy: wiretype end group for non-group") 5283 } 5284 if fieldNum <= 0 { 5285 return fmt.Errorf("proto: MsgUpdateGroupPolicyDecisionPolicy: illegal tag %d (wire type %d)", fieldNum, wire) 5286 } 5287 switch fieldNum { 5288 case 1: 5289 if wireType != 2 { 5290 return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) 5291 } 5292 var stringLen uint64 5293 for shift := uint(0); ; shift += 7 { 5294 if shift >= 64 { 5295 return ErrIntOverflowTx 5296 } 5297 if iNdEx >= l { 5298 return io.ErrUnexpectedEOF 5299 } 5300 b := dAtA[iNdEx] 5301 iNdEx++ 5302 stringLen |= uint64(b&0x7F) << shift 5303 if b < 0x80 { 5304 break 5305 } 5306 } 5307 intStringLen := int(stringLen) 5308 if intStringLen < 0 { 5309 return ErrInvalidLengthTx 5310 } 5311 postIndex := iNdEx + intStringLen 5312 if postIndex < 0 { 5313 return ErrInvalidLengthTx 5314 } 5315 if postIndex > l { 5316 return io.ErrUnexpectedEOF 5317 } 5318 m.Admin = string(dAtA[iNdEx:postIndex]) 5319 iNdEx = postIndex 5320 case 2: 5321 if wireType != 2 { 5322 return fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) 5323 } 5324 var stringLen uint64 5325 for shift := uint(0); ; shift += 7 { 5326 if shift >= 64 { 5327 return ErrIntOverflowTx 5328 } 5329 if iNdEx >= l { 5330 return io.ErrUnexpectedEOF 5331 } 5332 b := dAtA[iNdEx] 5333 iNdEx++ 5334 stringLen |= uint64(b&0x7F) << shift 5335 if b < 0x80 { 5336 break 5337 } 5338 } 5339 intStringLen := int(stringLen) 5340 if intStringLen < 0 { 5341 return ErrInvalidLengthTx 5342 } 5343 postIndex := iNdEx + intStringLen 5344 if postIndex < 0 { 5345 return ErrInvalidLengthTx 5346 } 5347 if postIndex > l { 5348 return io.ErrUnexpectedEOF 5349 } 5350 m.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) 5351 iNdEx = postIndex 5352 case 3: 5353 if wireType != 2 { 5354 return fmt.Errorf("proto: wrong wireType = %d for field DecisionPolicy", wireType) 5355 } 5356 var msglen int 5357 for shift := uint(0); ; shift += 7 { 5358 if shift >= 64 { 5359 return ErrIntOverflowTx 5360 } 5361 if iNdEx >= l { 5362 return io.ErrUnexpectedEOF 5363 } 5364 b := dAtA[iNdEx] 5365 iNdEx++ 5366 msglen |= int(b&0x7F) << shift 5367 if b < 0x80 { 5368 break 5369 } 5370 } 5371 if msglen < 0 { 5372 return ErrInvalidLengthTx 5373 } 5374 postIndex := iNdEx + msglen 5375 if postIndex < 0 { 5376 return ErrInvalidLengthTx 5377 } 5378 if postIndex > l { 5379 return io.ErrUnexpectedEOF 5380 } 5381 if m.DecisionPolicy == nil { 5382 m.DecisionPolicy = &types.Any{} 5383 } 5384 if err := m.DecisionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5385 return err 5386 } 5387 iNdEx = postIndex 5388 default: 5389 iNdEx = preIndex 5390 skippy, err := skipTx(dAtA[iNdEx:]) 5391 if err != nil { 5392 return err 5393 } 5394 if (skippy < 0) || (iNdEx+skippy) < 0 { 5395 return ErrInvalidLengthTx 5396 } 5397 if (iNdEx + skippy) > l { 5398 return io.ErrUnexpectedEOF 5399 } 5400 iNdEx += skippy 5401 } 5402 } 5403 5404 if iNdEx > l { 5405 return io.ErrUnexpectedEOF 5406 } 5407 return nil 5408 } 5409 func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) Unmarshal(dAtA []byte) error { 5410 l := len(dAtA) 5411 iNdEx := 0 5412 for iNdEx < l { 5413 preIndex := iNdEx 5414 var wire uint64 5415 for shift := uint(0); ; shift += 7 { 5416 if shift >= 64 { 5417 return ErrIntOverflowTx 5418 } 5419 if iNdEx >= l { 5420 return io.ErrUnexpectedEOF 5421 } 5422 b := dAtA[iNdEx] 5423 iNdEx++ 5424 wire |= uint64(b&0x7F) << shift 5425 if b < 0x80 { 5426 break 5427 } 5428 } 5429 fieldNum := int32(wire >> 3) 5430 wireType := int(wire & 0x7) 5431 if wireType == 4 { 5432 return fmt.Errorf("proto: MsgUpdateGroupPolicyDecisionPolicyResponse: wiretype end group for non-group") 5433 } 5434 if fieldNum <= 0 { 5435 return fmt.Errorf("proto: MsgUpdateGroupPolicyDecisionPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5436 } 5437 switch fieldNum { 5438 default: 5439 iNdEx = preIndex 5440 skippy, err := skipTx(dAtA[iNdEx:]) 5441 if err != nil { 5442 return err 5443 } 5444 if (skippy < 0) || (iNdEx+skippy) < 0 { 5445 return ErrInvalidLengthTx 5446 } 5447 if (iNdEx + skippy) > l { 5448 return io.ErrUnexpectedEOF 5449 } 5450 iNdEx += skippy 5451 } 5452 } 5453 5454 if iNdEx > l { 5455 return io.ErrUnexpectedEOF 5456 } 5457 return nil 5458 } 5459 func (m *MsgUpdateGroupPolicyMetadata) Unmarshal(dAtA []byte) error { 5460 l := len(dAtA) 5461 iNdEx := 0 5462 for iNdEx < l { 5463 preIndex := iNdEx 5464 var wire uint64 5465 for shift := uint(0); ; shift += 7 { 5466 if shift >= 64 { 5467 return ErrIntOverflowTx 5468 } 5469 if iNdEx >= l { 5470 return io.ErrUnexpectedEOF 5471 } 5472 b := dAtA[iNdEx] 5473 iNdEx++ 5474 wire |= uint64(b&0x7F) << shift 5475 if b < 0x80 { 5476 break 5477 } 5478 } 5479 fieldNum := int32(wire >> 3) 5480 wireType := int(wire & 0x7) 5481 if wireType == 4 { 5482 return fmt.Errorf("proto: MsgUpdateGroupPolicyMetadata: wiretype end group for non-group") 5483 } 5484 if fieldNum <= 0 { 5485 return fmt.Errorf("proto: MsgUpdateGroupPolicyMetadata: illegal tag %d (wire type %d)", fieldNum, wire) 5486 } 5487 switch fieldNum { 5488 case 1: 5489 if wireType != 2 { 5490 return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) 5491 } 5492 var stringLen uint64 5493 for shift := uint(0); ; shift += 7 { 5494 if shift >= 64 { 5495 return ErrIntOverflowTx 5496 } 5497 if iNdEx >= l { 5498 return io.ErrUnexpectedEOF 5499 } 5500 b := dAtA[iNdEx] 5501 iNdEx++ 5502 stringLen |= uint64(b&0x7F) << shift 5503 if b < 0x80 { 5504 break 5505 } 5506 } 5507 intStringLen := int(stringLen) 5508 if intStringLen < 0 { 5509 return ErrInvalidLengthTx 5510 } 5511 postIndex := iNdEx + intStringLen 5512 if postIndex < 0 { 5513 return ErrInvalidLengthTx 5514 } 5515 if postIndex > l { 5516 return io.ErrUnexpectedEOF 5517 } 5518 m.Admin = string(dAtA[iNdEx:postIndex]) 5519 iNdEx = postIndex 5520 case 2: 5521 if wireType != 2 { 5522 return fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) 5523 } 5524 var stringLen uint64 5525 for shift := uint(0); ; shift += 7 { 5526 if shift >= 64 { 5527 return ErrIntOverflowTx 5528 } 5529 if iNdEx >= l { 5530 return io.ErrUnexpectedEOF 5531 } 5532 b := dAtA[iNdEx] 5533 iNdEx++ 5534 stringLen |= uint64(b&0x7F) << shift 5535 if b < 0x80 { 5536 break 5537 } 5538 } 5539 intStringLen := int(stringLen) 5540 if intStringLen < 0 { 5541 return ErrInvalidLengthTx 5542 } 5543 postIndex := iNdEx + intStringLen 5544 if postIndex < 0 { 5545 return ErrInvalidLengthTx 5546 } 5547 if postIndex > l { 5548 return io.ErrUnexpectedEOF 5549 } 5550 m.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) 5551 iNdEx = postIndex 5552 case 3: 5553 if wireType != 2 { 5554 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 5555 } 5556 var stringLen uint64 5557 for shift := uint(0); ; shift += 7 { 5558 if shift >= 64 { 5559 return ErrIntOverflowTx 5560 } 5561 if iNdEx >= l { 5562 return io.ErrUnexpectedEOF 5563 } 5564 b := dAtA[iNdEx] 5565 iNdEx++ 5566 stringLen |= uint64(b&0x7F) << shift 5567 if b < 0x80 { 5568 break 5569 } 5570 } 5571 intStringLen := int(stringLen) 5572 if intStringLen < 0 { 5573 return ErrInvalidLengthTx 5574 } 5575 postIndex := iNdEx + intStringLen 5576 if postIndex < 0 { 5577 return ErrInvalidLengthTx 5578 } 5579 if postIndex > l { 5580 return io.ErrUnexpectedEOF 5581 } 5582 m.Metadata = string(dAtA[iNdEx:postIndex]) 5583 iNdEx = postIndex 5584 default: 5585 iNdEx = preIndex 5586 skippy, err := skipTx(dAtA[iNdEx:]) 5587 if err != nil { 5588 return err 5589 } 5590 if (skippy < 0) || (iNdEx+skippy) < 0 { 5591 return ErrInvalidLengthTx 5592 } 5593 if (iNdEx + skippy) > l { 5594 return io.ErrUnexpectedEOF 5595 } 5596 iNdEx += skippy 5597 } 5598 } 5599 5600 if iNdEx > l { 5601 return io.ErrUnexpectedEOF 5602 } 5603 return nil 5604 } 5605 func (m *MsgUpdateGroupPolicyMetadataResponse) Unmarshal(dAtA []byte) error { 5606 l := len(dAtA) 5607 iNdEx := 0 5608 for iNdEx < l { 5609 preIndex := iNdEx 5610 var wire uint64 5611 for shift := uint(0); ; shift += 7 { 5612 if shift >= 64 { 5613 return ErrIntOverflowTx 5614 } 5615 if iNdEx >= l { 5616 return io.ErrUnexpectedEOF 5617 } 5618 b := dAtA[iNdEx] 5619 iNdEx++ 5620 wire |= uint64(b&0x7F) << shift 5621 if b < 0x80 { 5622 break 5623 } 5624 } 5625 fieldNum := int32(wire >> 3) 5626 wireType := int(wire & 0x7) 5627 if wireType == 4 { 5628 return fmt.Errorf("proto: MsgUpdateGroupPolicyMetadataResponse: wiretype end group for non-group") 5629 } 5630 if fieldNum <= 0 { 5631 return fmt.Errorf("proto: MsgUpdateGroupPolicyMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5632 } 5633 switch fieldNum { 5634 default: 5635 iNdEx = preIndex 5636 skippy, err := skipTx(dAtA[iNdEx:]) 5637 if err != nil { 5638 return err 5639 } 5640 if (skippy < 0) || (iNdEx+skippy) < 0 { 5641 return ErrInvalidLengthTx 5642 } 5643 if (iNdEx + skippy) > l { 5644 return io.ErrUnexpectedEOF 5645 } 5646 iNdEx += skippy 5647 } 5648 } 5649 5650 if iNdEx > l { 5651 return io.ErrUnexpectedEOF 5652 } 5653 return nil 5654 } 5655 func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { 5656 l := len(dAtA) 5657 iNdEx := 0 5658 for iNdEx < l { 5659 preIndex := iNdEx 5660 var wire uint64 5661 for shift := uint(0); ; shift += 7 { 5662 if shift >= 64 { 5663 return ErrIntOverflowTx 5664 } 5665 if iNdEx >= l { 5666 return io.ErrUnexpectedEOF 5667 } 5668 b := dAtA[iNdEx] 5669 iNdEx++ 5670 wire |= uint64(b&0x7F) << shift 5671 if b < 0x80 { 5672 break 5673 } 5674 } 5675 fieldNum := int32(wire >> 3) 5676 wireType := int(wire & 0x7) 5677 if wireType == 4 { 5678 return fmt.Errorf("proto: MsgSubmitProposal: wiretype end group for non-group") 5679 } 5680 if fieldNum <= 0 { 5681 return fmt.Errorf("proto: MsgSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire) 5682 } 5683 switch fieldNum { 5684 case 1: 5685 if wireType != 2 { 5686 return fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) 5687 } 5688 var stringLen uint64 5689 for shift := uint(0); ; shift += 7 { 5690 if shift >= 64 { 5691 return ErrIntOverflowTx 5692 } 5693 if iNdEx >= l { 5694 return io.ErrUnexpectedEOF 5695 } 5696 b := dAtA[iNdEx] 5697 iNdEx++ 5698 stringLen |= uint64(b&0x7F) << shift 5699 if b < 0x80 { 5700 break 5701 } 5702 } 5703 intStringLen := int(stringLen) 5704 if intStringLen < 0 { 5705 return ErrInvalidLengthTx 5706 } 5707 postIndex := iNdEx + intStringLen 5708 if postIndex < 0 { 5709 return ErrInvalidLengthTx 5710 } 5711 if postIndex > l { 5712 return io.ErrUnexpectedEOF 5713 } 5714 m.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) 5715 iNdEx = postIndex 5716 case 2: 5717 if wireType != 2 { 5718 return fmt.Errorf("proto: wrong wireType = %d for field Proposers", wireType) 5719 } 5720 var stringLen uint64 5721 for shift := uint(0); ; shift += 7 { 5722 if shift >= 64 { 5723 return ErrIntOverflowTx 5724 } 5725 if iNdEx >= l { 5726 return io.ErrUnexpectedEOF 5727 } 5728 b := dAtA[iNdEx] 5729 iNdEx++ 5730 stringLen |= uint64(b&0x7F) << shift 5731 if b < 0x80 { 5732 break 5733 } 5734 } 5735 intStringLen := int(stringLen) 5736 if intStringLen < 0 { 5737 return ErrInvalidLengthTx 5738 } 5739 postIndex := iNdEx + intStringLen 5740 if postIndex < 0 { 5741 return ErrInvalidLengthTx 5742 } 5743 if postIndex > l { 5744 return io.ErrUnexpectedEOF 5745 } 5746 m.Proposers = append(m.Proposers, string(dAtA[iNdEx:postIndex])) 5747 iNdEx = postIndex 5748 case 3: 5749 if wireType != 2 { 5750 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 5751 } 5752 var stringLen uint64 5753 for shift := uint(0); ; shift += 7 { 5754 if shift >= 64 { 5755 return ErrIntOverflowTx 5756 } 5757 if iNdEx >= l { 5758 return io.ErrUnexpectedEOF 5759 } 5760 b := dAtA[iNdEx] 5761 iNdEx++ 5762 stringLen |= uint64(b&0x7F) << shift 5763 if b < 0x80 { 5764 break 5765 } 5766 } 5767 intStringLen := int(stringLen) 5768 if intStringLen < 0 { 5769 return ErrInvalidLengthTx 5770 } 5771 postIndex := iNdEx + intStringLen 5772 if postIndex < 0 { 5773 return ErrInvalidLengthTx 5774 } 5775 if postIndex > l { 5776 return io.ErrUnexpectedEOF 5777 } 5778 m.Metadata = string(dAtA[iNdEx:postIndex]) 5779 iNdEx = postIndex 5780 case 4: 5781 if wireType != 2 { 5782 return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType) 5783 } 5784 var msglen int 5785 for shift := uint(0); ; shift += 7 { 5786 if shift >= 64 { 5787 return ErrIntOverflowTx 5788 } 5789 if iNdEx >= l { 5790 return io.ErrUnexpectedEOF 5791 } 5792 b := dAtA[iNdEx] 5793 iNdEx++ 5794 msglen |= int(b&0x7F) << shift 5795 if b < 0x80 { 5796 break 5797 } 5798 } 5799 if msglen < 0 { 5800 return ErrInvalidLengthTx 5801 } 5802 postIndex := iNdEx + msglen 5803 if postIndex < 0 { 5804 return ErrInvalidLengthTx 5805 } 5806 if postIndex > l { 5807 return io.ErrUnexpectedEOF 5808 } 5809 m.Messages = append(m.Messages, &types.Any{}) 5810 if err := m.Messages[len(m.Messages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5811 return err 5812 } 5813 iNdEx = postIndex 5814 case 5: 5815 if wireType != 0 { 5816 return fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType) 5817 } 5818 m.Exec = 0 5819 for shift := uint(0); ; shift += 7 { 5820 if shift >= 64 { 5821 return ErrIntOverflowTx 5822 } 5823 if iNdEx >= l { 5824 return io.ErrUnexpectedEOF 5825 } 5826 b := dAtA[iNdEx] 5827 iNdEx++ 5828 m.Exec |= Exec(b&0x7F) << shift 5829 if b < 0x80 { 5830 break 5831 } 5832 } 5833 case 6: 5834 if wireType != 2 { 5835 return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) 5836 } 5837 var stringLen uint64 5838 for shift := uint(0); ; shift += 7 { 5839 if shift >= 64 { 5840 return ErrIntOverflowTx 5841 } 5842 if iNdEx >= l { 5843 return io.ErrUnexpectedEOF 5844 } 5845 b := dAtA[iNdEx] 5846 iNdEx++ 5847 stringLen |= uint64(b&0x7F) << shift 5848 if b < 0x80 { 5849 break 5850 } 5851 } 5852 intStringLen := int(stringLen) 5853 if intStringLen < 0 { 5854 return ErrInvalidLengthTx 5855 } 5856 postIndex := iNdEx + intStringLen 5857 if postIndex < 0 { 5858 return ErrInvalidLengthTx 5859 } 5860 if postIndex > l { 5861 return io.ErrUnexpectedEOF 5862 } 5863 m.Title = string(dAtA[iNdEx:postIndex]) 5864 iNdEx = postIndex 5865 case 7: 5866 if wireType != 2 { 5867 return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) 5868 } 5869 var stringLen uint64 5870 for shift := uint(0); ; shift += 7 { 5871 if shift >= 64 { 5872 return ErrIntOverflowTx 5873 } 5874 if iNdEx >= l { 5875 return io.ErrUnexpectedEOF 5876 } 5877 b := dAtA[iNdEx] 5878 iNdEx++ 5879 stringLen |= uint64(b&0x7F) << shift 5880 if b < 0x80 { 5881 break 5882 } 5883 } 5884 intStringLen := int(stringLen) 5885 if intStringLen < 0 { 5886 return ErrInvalidLengthTx 5887 } 5888 postIndex := iNdEx + intStringLen 5889 if postIndex < 0 { 5890 return ErrInvalidLengthTx 5891 } 5892 if postIndex > l { 5893 return io.ErrUnexpectedEOF 5894 } 5895 m.Summary = string(dAtA[iNdEx:postIndex]) 5896 iNdEx = postIndex 5897 default: 5898 iNdEx = preIndex 5899 skippy, err := skipTx(dAtA[iNdEx:]) 5900 if err != nil { 5901 return err 5902 } 5903 if (skippy < 0) || (iNdEx+skippy) < 0 { 5904 return ErrInvalidLengthTx 5905 } 5906 if (iNdEx + skippy) > l { 5907 return io.ErrUnexpectedEOF 5908 } 5909 iNdEx += skippy 5910 } 5911 } 5912 5913 if iNdEx > l { 5914 return io.ErrUnexpectedEOF 5915 } 5916 return nil 5917 } 5918 func (m *MsgSubmitProposalResponse) Unmarshal(dAtA []byte) error { 5919 l := len(dAtA) 5920 iNdEx := 0 5921 for iNdEx < l { 5922 preIndex := iNdEx 5923 var wire uint64 5924 for shift := uint(0); ; shift += 7 { 5925 if shift >= 64 { 5926 return ErrIntOverflowTx 5927 } 5928 if iNdEx >= l { 5929 return io.ErrUnexpectedEOF 5930 } 5931 b := dAtA[iNdEx] 5932 iNdEx++ 5933 wire |= uint64(b&0x7F) << shift 5934 if b < 0x80 { 5935 break 5936 } 5937 } 5938 fieldNum := int32(wire >> 3) 5939 wireType := int(wire & 0x7) 5940 if wireType == 4 { 5941 return fmt.Errorf("proto: MsgSubmitProposalResponse: wiretype end group for non-group") 5942 } 5943 if fieldNum <= 0 { 5944 return fmt.Errorf("proto: MsgSubmitProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5945 } 5946 switch fieldNum { 5947 case 1: 5948 if wireType != 0 { 5949 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 5950 } 5951 m.ProposalId = 0 5952 for shift := uint(0); ; shift += 7 { 5953 if shift >= 64 { 5954 return ErrIntOverflowTx 5955 } 5956 if iNdEx >= l { 5957 return io.ErrUnexpectedEOF 5958 } 5959 b := dAtA[iNdEx] 5960 iNdEx++ 5961 m.ProposalId |= uint64(b&0x7F) << shift 5962 if b < 0x80 { 5963 break 5964 } 5965 } 5966 default: 5967 iNdEx = preIndex 5968 skippy, err := skipTx(dAtA[iNdEx:]) 5969 if err != nil { 5970 return err 5971 } 5972 if (skippy < 0) || (iNdEx+skippy) < 0 { 5973 return ErrInvalidLengthTx 5974 } 5975 if (iNdEx + skippy) > l { 5976 return io.ErrUnexpectedEOF 5977 } 5978 iNdEx += skippy 5979 } 5980 } 5981 5982 if iNdEx > l { 5983 return io.ErrUnexpectedEOF 5984 } 5985 return nil 5986 } 5987 func (m *MsgWithdrawProposal) Unmarshal(dAtA []byte) error { 5988 l := len(dAtA) 5989 iNdEx := 0 5990 for iNdEx < l { 5991 preIndex := iNdEx 5992 var wire uint64 5993 for shift := uint(0); ; shift += 7 { 5994 if shift >= 64 { 5995 return ErrIntOverflowTx 5996 } 5997 if iNdEx >= l { 5998 return io.ErrUnexpectedEOF 5999 } 6000 b := dAtA[iNdEx] 6001 iNdEx++ 6002 wire |= uint64(b&0x7F) << shift 6003 if b < 0x80 { 6004 break 6005 } 6006 } 6007 fieldNum := int32(wire >> 3) 6008 wireType := int(wire & 0x7) 6009 if wireType == 4 { 6010 return fmt.Errorf("proto: MsgWithdrawProposal: wiretype end group for non-group") 6011 } 6012 if fieldNum <= 0 { 6013 return fmt.Errorf("proto: MsgWithdrawProposal: illegal tag %d (wire type %d)", fieldNum, wire) 6014 } 6015 switch fieldNum { 6016 case 1: 6017 if wireType != 0 { 6018 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 6019 } 6020 m.ProposalId = 0 6021 for shift := uint(0); ; shift += 7 { 6022 if shift >= 64 { 6023 return ErrIntOverflowTx 6024 } 6025 if iNdEx >= l { 6026 return io.ErrUnexpectedEOF 6027 } 6028 b := dAtA[iNdEx] 6029 iNdEx++ 6030 m.ProposalId |= uint64(b&0x7F) << shift 6031 if b < 0x80 { 6032 break 6033 } 6034 } 6035 case 2: 6036 if wireType != 2 { 6037 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 6038 } 6039 var stringLen uint64 6040 for shift := uint(0); ; shift += 7 { 6041 if shift >= 64 { 6042 return ErrIntOverflowTx 6043 } 6044 if iNdEx >= l { 6045 return io.ErrUnexpectedEOF 6046 } 6047 b := dAtA[iNdEx] 6048 iNdEx++ 6049 stringLen |= uint64(b&0x7F) << shift 6050 if b < 0x80 { 6051 break 6052 } 6053 } 6054 intStringLen := int(stringLen) 6055 if intStringLen < 0 { 6056 return ErrInvalidLengthTx 6057 } 6058 postIndex := iNdEx + intStringLen 6059 if postIndex < 0 { 6060 return ErrInvalidLengthTx 6061 } 6062 if postIndex > l { 6063 return io.ErrUnexpectedEOF 6064 } 6065 m.Address = string(dAtA[iNdEx:postIndex]) 6066 iNdEx = postIndex 6067 default: 6068 iNdEx = preIndex 6069 skippy, err := skipTx(dAtA[iNdEx:]) 6070 if err != nil { 6071 return err 6072 } 6073 if (skippy < 0) || (iNdEx+skippy) < 0 { 6074 return ErrInvalidLengthTx 6075 } 6076 if (iNdEx + skippy) > l { 6077 return io.ErrUnexpectedEOF 6078 } 6079 iNdEx += skippy 6080 } 6081 } 6082 6083 if iNdEx > l { 6084 return io.ErrUnexpectedEOF 6085 } 6086 return nil 6087 } 6088 func (m *MsgWithdrawProposalResponse) Unmarshal(dAtA []byte) error { 6089 l := len(dAtA) 6090 iNdEx := 0 6091 for iNdEx < l { 6092 preIndex := iNdEx 6093 var wire uint64 6094 for shift := uint(0); ; shift += 7 { 6095 if shift >= 64 { 6096 return ErrIntOverflowTx 6097 } 6098 if iNdEx >= l { 6099 return io.ErrUnexpectedEOF 6100 } 6101 b := dAtA[iNdEx] 6102 iNdEx++ 6103 wire |= uint64(b&0x7F) << shift 6104 if b < 0x80 { 6105 break 6106 } 6107 } 6108 fieldNum := int32(wire >> 3) 6109 wireType := int(wire & 0x7) 6110 if wireType == 4 { 6111 return fmt.Errorf("proto: MsgWithdrawProposalResponse: wiretype end group for non-group") 6112 } 6113 if fieldNum <= 0 { 6114 return fmt.Errorf("proto: MsgWithdrawProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6115 } 6116 switch fieldNum { 6117 default: 6118 iNdEx = preIndex 6119 skippy, err := skipTx(dAtA[iNdEx:]) 6120 if err != nil { 6121 return err 6122 } 6123 if (skippy < 0) || (iNdEx+skippy) < 0 { 6124 return ErrInvalidLengthTx 6125 } 6126 if (iNdEx + skippy) > l { 6127 return io.ErrUnexpectedEOF 6128 } 6129 iNdEx += skippy 6130 } 6131 } 6132 6133 if iNdEx > l { 6134 return io.ErrUnexpectedEOF 6135 } 6136 return nil 6137 } 6138 func (m *MsgVote) Unmarshal(dAtA []byte) error { 6139 l := len(dAtA) 6140 iNdEx := 0 6141 for iNdEx < l { 6142 preIndex := iNdEx 6143 var wire uint64 6144 for shift := uint(0); ; shift += 7 { 6145 if shift >= 64 { 6146 return ErrIntOverflowTx 6147 } 6148 if iNdEx >= l { 6149 return io.ErrUnexpectedEOF 6150 } 6151 b := dAtA[iNdEx] 6152 iNdEx++ 6153 wire |= uint64(b&0x7F) << shift 6154 if b < 0x80 { 6155 break 6156 } 6157 } 6158 fieldNum := int32(wire >> 3) 6159 wireType := int(wire & 0x7) 6160 if wireType == 4 { 6161 return fmt.Errorf("proto: MsgVote: wiretype end group for non-group") 6162 } 6163 if fieldNum <= 0 { 6164 return fmt.Errorf("proto: MsgVote: illegal tag %d (wire type %d)", fieldNum, wire) 6165 } 6166 switch fieldNum { 6167 case 1: 6168 if wireType != 0 { 6169 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 6170 } 6171 m.ProposalId = 0 6172 for shift := uint(0); ; shift += 7 { 6173 if shift >= 64 { 6174 return ErrIntOverflowTx 6175 } 6176 if iNdEx >= l { 6177 return io.ErrUnexpectedEOF 6178 } 6179 b := dAtA[iNdEx] 6180 iNdEx++ 6181 m.ProposalId |= uint64(b&0x7F) << shift 6182 if b < 0x80 { 6183 break 6184 } 6185 } 6186 case 2: 6187 if wireType != 2 { 6188 return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType) 6189 } 6190 var stringLen uint64 6191 for shift := uint(0); ; shift += 7 { 6192 if shift >= 64 { 6193 return ErrIntOverflowTx 6194 } 6195 if iNdEx >= l { 6196 return io.ErrUnexpectedEOF 6197 } 6198 b := dAtA[iNdEx] 6199 iNdEx++ 6200 stringLen |= uint64(b&0x7F) << shift 6201 if b < 0x80 { 6202 break 6203 } 6204 } 6205 intStringLen := int(stringLen) 6206 if intStringLen < 0 { 6207 return ErrInvalidLengthTx 6208 } 6209 postIndex := iNdEx + intStringLen 6210 if postIndex < 0 { 6211 return ErrInvalidLengthTx 6212 } 6213 if postIndex > l { 6214 return io.ErrUnexpectedEOF 6215 } 6216 m.Voter = string(dAtA[iNdEx:postIndex]) 6217 iNdEx = postIndex 6218 case 3: 6219 if wireType != 0 { 6220 return fmt.Errorf("proto: wrong wireType = %d for field Option", wireType) 6221 } 6222 m.Option = 0 6223 for shift := uint(0); ; shift += 7 { 6224 if shift >= 64 { 6225 return ErrIntOverflowTx 6226 } 6227 if iNdEx >= l { 6228 return io.ErrUnexpectedEOF 6229 } 6230 b := dAtA[iNdEx] 6231 iNdEx++ 6232 m.Option |= VoteOption(b&0x7F) << shift 6233 if b < 0x80 { 6234 break 6235 } 6236 } 6237 case 4: 6238 if wireType != 2 { 6239 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 6240 } 6241 var stringLen uint64 6242 for shift := uint(0); ; shift += 7 { 6243 if shift >= 64 { 6244 return ErrIntOverflowTx 6245 } 6246 if iNdEx >= l { 6247 return io.ErrUnexpectedEOF 6248 } 6249 b := dAtA[iNdEx] 6250 iNdEx++ 6251 stringLen |= uint64(b&0x7F) << shift 6252 if b < 0x80 { 6253 break 6254 } 6255 } 6256 intStringLen := int(stringLen) 6257 if intStringLen < 0 { 6258 return ErrInvalidLengthTx 6259 } 6260 postIndex := iNdEx + intStringLen 6261 if postIndex < 0 { 6262 return ErrInvalidLengthTx 6263 } 6264 if postIndex > l { 6265 return io.ErrUnexpectedEOF 6266 } 6267 m.Metadata = string(dAtA[iNdEx:postIndex]) 6268 iNdEx = postIndex 6269 case 5: 6270 if wireType != 0 { 6271 return fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType) 6272 } 6273 m.Exec = 0 6274 for shift := uint(0); ; shift += 7 { 6275 if shift >= 64 { 6276 return ErrIntOverflowTx 6277 } 6278 if iNdEx >= l { 6279 return io.ErrUnexpectedEOF 6280 } 6281 b := dAtA[iNdEx] 6282 iNdEx++ 6283 m.Exec |= Exec(b&0x7F) << shift 6284 if b < 0x80 { 6285 break 6286 } 6287 } 6288 default: 6289 iNdEx = preIndex 6290 skippy, err := skipTx(dAtA[iNdEx:]) 6291 if err != nil { 6292 return err 6293 } 6294 if (skippy < 0) || (iNdEx+skippy) < 0 { 6295 return ErrInvalidLengthTx 6296 } 6297 if (iNdEx + skippy) > l { 6298 return io.ErrUnexpectedEOF 6299 } 6300 iNdEx += skippy 6301 } 6302 } 6303 6304 if iNdEx > l { 6305 return io.ErrUnexpectedEOF 6306 } 6307 return nil 6308 } 6309 func (m *MsgVoteResponse) Unmarshal(dAtA []byte) error { 6310 l := len(dAtA) 6311 iNdEx := 0 6312 for iNdEx < l { 6313 preIndex := iNdEx 6314 var wire uint64 6315 for shift := uint(0); ; shift += 7 { 6316 if shift >= 64 { 6317 return ErrIntOverflowTx 6318 } 6319 if iNdEx >= l { 6320 return io.ErrUnexpectedEOF 6321 } 6322 b := dAtA[iNdEx] 6323 iNdEx++ 6324 wire |= uint64(b&0x7F) << shift 6325 if b < 0x80 { 6326 break 6327 } 6328 } 6329 fieldNum := int32(wire >> 3) 6330 wireType := int(wire & 0x7) 6331 if wireType == 4 { 6332 return fmt.Errorf("proto: MsgVoteResponse: wiretype end group for non-group") 6333 } 6334 if fieldNum <= 0 { 6335 return fmt.Errorf("proto: MsgVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6336 } 6337 switch fieldNum { 6338 default: 6339 iNdEx = preIndex 6340 skippy, err := skipTx(dAtA[iNdEx:]) 6341 if err != nil { 6342 return err 6343 } 6344 if (skippy < 0) || (iNdEx+skippy) < 0 { 6345 return ErrInvalidLengthTx 6346 } 6347 if (iNdEx + skippy) > l { 6348 return io.ErrUnexpectedEOF 6349 } 6350 iNdEx += skippy 6351 } 6352 } 6353 6354 if iNdEx > l { 6355 return io.ErrUnexpectedEOF 6356 } 6357 return nil 6358 } 6359 func (m *MsgExec) Unmarshal(dAtA []byte) error { 6360 l := len(dAtA) 6361 iNdEx := 0 6362 for iNdEx < l { 6363 preIndex := iNdEx 6364 var wire uint64 6365 for shift := uint(0); ; shift += 7 { 6366 if shift >= 64 { 6367 return ErrIntOverflowTx 6368 } 6369 if iNdEx >= l { 6370 return io.ErrUnexpectedEOF 6371 } 6372 b := dAtA[iNdEx] 6373 iNdEx++ 6374 wire |= uint64(b&0x7F) << shift 6375 if b < 0x80 { 6376 break 6377 } 6378 } 6379 fieldNum := int32(wire >> 3) 6380 wireType := int(wire & 0x7) 6381 if wireType == 4 { 6382 return fmt.Errorf("proto: MsgExec: wiretype end group for non-group") 6383 } 6384 if fieldNum <= 0 { 6385 return fmt.Errorf("proto: MsgExec: illegal tag %d (wire type %d)", fieldNum, wire) 6386 } 6387 switch fieldNum { 6388 case 1: 6389 if wireType != 0 { 6390 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 6391 } 6392 m.ProposalId = 0 6393 for shift := uint(0); ; shift += 7 { 6394 if shift >= 64 { 6395 return ErrIntOverflowTx 6396 } 6397 if iNdEx >= l { 6398 return io.ErrUnexpectedEOF 6399 } 6400 b := dAtA[iNdEx] 6401 iNdEx++ 6402 m.ProposalId |= uint64(b&0x7F) << shift 6403 if b < 0x80 { 6404 break 6405 } 6406 } 6407 case 2: 6408 if wireType != 2 { 6409 return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) 6410 } 6411 var stringLen uint64 6412 for shift := uint(0); ; shift += 7 { 6413 if shift >= 64 { 6414 return ErrIntOverflowTx 6415 } 6416 if iNdEx >= l { 6417 return io.ErrUnexpectedEOF 6418 } 6419 b := dAtA[iNdEx] 6420 iNdEx++ 6421 stringLen |= uint64(b&0x7F) << shift 6422 if b < 0x80 { 6423 break 6424 } 6425 } 6426 intStringLen := int(stringLen) 6427 if intStringLen < 0 { 6428 return ErrInvalidLengthTx 6429 } 6430 postIndex := iNdEx + intStringLen 6431 if postIndex < 0 { 6432 return ErrInvalidLengthTx 6433 } 6434 if postIndex > l { 6435 return io.ErrUnexpectedEOF 6436 } 6437 m.Executor = string(dAtA[iNdEx:postIndex]) 6438 iNdEx = postIndex 6439 default: 6440 iNdEx = preIndex 6441 skippy, err := skipTx(dAtA[iNdEx:]) 6442 if err != nil { 6443 return err 6444 } 6445 if (skippy < 0) || (iNdEx+skippy) < 0 { 6446 return ErrInvalidLengthTx 6447 } 6448 if (iNdEx + skippy) > l { 6449 return io.ErrUnexpectedEOF 6450 } 6451 iNdEx += skippy 6452 } 6453 } 6454 6455 if iNdEx > l { 6456 return io.ErrUnexpectedEOF 6457 } 6458 return nil 6459 } 6460 func (m *MsgExecResponse) Unmarshal(dAtA []byte) error { 6461 l := len(dAtA) 6462 iNdEx := 0 6463 for iNdEx < l { 6464 preIndex := iNdEx 6465 var wire uint64 6466 for shift := uint(0); ; shift += 7 { 6467 if shift >= 64 { 6468 return ErrIntOverflowTx 6469 } 6470 if iNdEx >= l { 6471 return io.ErrUnexpectedEOF 6472 } 6473 b := dAtA[iNdEx] 6474 iNdEx++ 6475 wire |= uint64(b&0x7F) << shift 6476 if b < 0x80 { 6477 break 6478 } 6479 } 6480 fieldNum := int32(wire >> 3) 6481 wireType := int(wire & 0x7) 6482 if wireType == 4 { 6483 return fmt.Errorf("proto: MsgExecResponse: wiretype end group for non-group") 6484 } 6485 if fieldNum <= 0 { 6486 return fmt.Errorf("proto: MsgExecResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6487 } 6488 switch fieldNum { 6489 case 2: 6490 if wireType != 0 { 6491 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 6492 } 6493 m.Result = 0 6494 for shift := uint(0); ; shift += 7 { 6495 if shift >= 64 { 6496 return ErrIntOverflowTx 6497 } 6498 if iNdEx >= l { 6499 return io.ErrUnexpectedEOF 6500 } 6501 b := dAtA[iNdEx] 6502 iNdEx++ 6503 m.Result |= ProposalExecutorResult(b&0x7F) << shift 6504 if b < 0x80 { 6505 break 6506 } 6507 } 6508 default: 6509 iNdEx = preIndex 6510 skippy, err := skipTx(dAtA[iNdEx:]) 6511 if err != nil { 6512 return err 6513 } 6514 if (skippy < 0) || (iNdEx+skippy) < 0 { 6515 return ErrInvalidLengthTx 6516 } 6517 if (iNdEx + skippy) > l { 6518 return io.ErrUnexpectedEOF 6519 } 6520 iNdEx += skippy 6521 } 6522 } 6523 6524 if iNdEx > l { 6525 return io.ErrUnexpectedEOF 6526 } 6527 return nil 6528 } 6529 func (m *MsgLeaveGroup) Unmarshal(dAtA []byte) error { 6530 l := len(dAtA) 6531 iNdEx := 0 6532 for iNdEx < l { 6533 preIndex := iNdEx 6534 var wire uint64 6535 for shift := uint(0); ; shift += 7 { 6536 if shift >= 64 { 6537 return ErrIntOverflowTx 6538 } 6539 if iNdEx >= l { 6540 return io.ErrUnexpectedEOF 6541 } 6542 b := dAtA[iNdEx] 6543 iNdEx++ 6544 wire |= uint64(b&0x7F) << shift 6545 if b < 0x80 { 6546 break 6547 } 6548 } 6549 fieldNum := int32(wire >> 3) 6550 wireType := int(wire & 0x7) 6551 if wireType == 4 { 6552 return fmt.Errorf("proto: MsgLeaveGroup: wiretype end group for non-group") 6553 } 6554 if fieldNum <= 0 { 6555 return fmt.Errorf("proto: MsgLeaveGroup: illegal tag %d (wire type %d)", fieldNum, wire) 6556 } 6557 switch fieldNum { 6558 case 1: 6559 if wireType != 2 { 6560 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 6561 } 6562 var stringLen uint64 6563 for shift := uint(0); ; shift += 7 { 6564 if shift >= 64 { 6565 return ErrIntOverflowTx 6566 } 6567 if iNdEx >= l { 6568 return io.ErrUnexpectedEOF 6569 } 6570 b := dAtA[iNdEx] 6571 iNdEx++ 6572 stringLen |= uint64(b&0x7F) << shift 6573 if b < 0x80 { 6574 break 6575 } 6576 } 6577 intStringLen := int(stringLen) 6578 if intStringLen < 0 { 6579 return ErrInvalidLengthTx 6580 } 6581 postIndex := iNdEx + intStringLen 6582 if postIndex < 0 { 6583 return ErrInvalidLengthTx 6584 } 6585 if postIndex > l { 6586 return io.ErrUnexpectedEOF 6587 } 6588 m.Address = string(dAtA[iNdEx:postIndex]) 6589 iNdEx = postIndex 6590 case 2: 6591 if wireType != 0 { 6592 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 6593 } 6594 m.GroupId = 0 6595 for shift := uint(0); ; shift += 7 { 6596 if shift >= 64 { 6597 return ErrIntOverflowTx 6598 } 6599 if iNdEx >= l { 6600 return io.ErrUnexpectedEOF 6601 } 6602 b := dAtA[iNdEx] 6603 iNdEx++ 6604 m.GroupId |= uint64(b&0x7F) << shift 6605 if b < 0x80 { 6606 break 6607 } 6608 } 6609 default: 6610 iNdEx = preIndex 6611 skippy, err := skipTx(dAtA[iNdEx:]) 6612 if err != nil { 6613 return err 6614 } 6615 if (skippy < 0) || (iNdEx+skippy) < 0 { 6616 return ErrInvalidLengthTx 6617 } 6618 if (iNdEx + skippy) > l { 6619 return io.ErrUnexpectedEOF 6620 } 6621 iNdEx += skippy 6622 } 6623 } 6624 6625 if iNdEx > l { 6626 return io.ErrUnexpectedEOF 6627 } 6628 return nil 6629 } 6630 func (m *MsgLeaveGroupResponse) Unmarshal(dAtA []byte) error { 6631 l := len(dAtA) 6632 iNdEx := 0 6633 for iNdEx < l { 6634 preIndex := iNdEx 6635 var wire uint64 6636 for shift := uint(0); ; shift += 7 { 6637 if shift >= 64 { 6638 return ErrIntOverflowTx 6639 } 6640 if iNdEx >= l { 6641 return io.ErrUnexpectedEOF 6642 } 6643 b := dAtA[iNdEx] 6644 iNdEx++ 6645 wire |= uint64(b&0x7F) << shift 6646 if b < 0x80 { 6647 break 6648 } 6649 } 6650 fieldNum := int32(wire >> 3) 6651 wireType := int(wire & 0x7) 6652 if wireType == 4 { 6653 return fmt.Errorf("proto: MsgLeaveGroupResponse: wiretype end group for non-group") 6654 } 6655 if fieldNum <= 0 { 6656 return fmt.Errorf("proto: MsgLeaveGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6657 } 6658 switch fieldNum { 6659 default: 6660 iNdEx = preIndex 6661 skippy, err := skipTx(dAtA[iNdEx:]) 6662 if err != nil { 6663 return err 6664 } 6665 if (skippy < 0) || (iNdEx+skippy) < 0 { 6666 return ErrInvalidLengthTx 6667 } 6668 if (iNdEx + skippy) > l { 6669 return io.ErrUnexpectedEOF 6670 } 6671 iNdEx += skippy 6672 } 6673 } 6674 6675 if iNdEx > l { 6676 return io.ErrUnexpectedEOF 6677 } 6678 return nil 6679 } 6680 func skipTx(dAtA []byte) (n int, err error) { 6681 l := len(dAtA) 6682 iNdEx := 0 6683 depth := 0 6684 for iNdEx < l { 6685 var wire uint64 6686 for shift := uint(0); ; shift += 7 { 6687 if shift >= 64 { 6688 return 0, ErrIntOverflowTx 6689 } 6690 if iNdEx >= l { 6691 return 0, io.ErrUnexpectedEOF 6692 } 6693 b := dAtA[iNdEx] 6694 iNdEx++ 6695 wire |= (uint64(b) & 0x7F) << shift 6696 if b < 0x80 { 6697 break 6698 } 6699 } 6700 wireType := int(wire & 0x7) 6701 switch wireType { 6702 case 0: 6703 for shift := uint(0); ; shift += 7 { 6704 if shift >= 64 { 6705 return 0, ErrIntOverflowTx 6706 } 6707 if iNdEx >= l { 6708 return 0, io.ErrUnexpectedEOF 6709 } 6710 iNdEx++ 6711 if dAtA[iNdEx-1] < 0x80 { 6712 break 6713 } 6714 } 6715 case 1: 6716 iNdEx += 8 6717 case 2: 6718 var length int 6719 for shift := uint(0); ; shift += 7 { 6720 if shift >= 64 { 6721 return 0, ErrIntOverflowTx 6722 } 6723 if iNdEx >= l { 6724 return 0, io.ErrUnexpectedEOF 6725 } 6726 b := dAtA[iNdEx] 6727 iNdEx++ 6728 length |= (int(b) & 0x7F) << shift 6729 if b < 0x80 { 6730 break 6731 } 6732 } 6733 if length < 0 { 6734 return 0, ErrInvalidLengthTx 6735 } 6736 iNdEx += length 6737 case 3: 6738 depth++ 6739 case 4: 6740 if depth == 0 { 6741 return 0, ErrUnexpectedEndOfGroupTx 6742 } 6743 depth-- 6744 case 5: 6745 iNdEx += 4 6746 default: 6747 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 6748 } 6749 if iNdEx < 0 { 6750 return 0, ErrInvalidLengthTx 6751 } 6752 if depth == 0 { 6753 return iNdEx, nil 6754 } 6755 } 6756 return 0, io.ErrUnexpectedEOF 6757 } 6758 6759 var ( 6760 ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") 6761 ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") 6762 ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") 6763 )