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