diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e8315ed21..515a20e631 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (x/foundation) [\#518](https://github.com/line/lbm-sdk/pull/518) add foundation treasury feature to x/foundation * (x/foundation) [\#528](https://github.com/line/lbm-sdk/pull/528) add a feature of whitelist for /lbm.foundation.v1.MsgWithdrawFromTreasury * (proto) [\#584](https://github.com/line/lbm-sdk/pull/564) remove `prove` field in the `GetTxsEventRequest` of `tx` proto +* (x/collection) [\#571](https://github.com/line/lbm-sdk/pull/571) add x/collection proto ### Improvements diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index f0155c0f41..ce700957eb 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -811,6 +811,206 @@ - [Service](#lbm.base.ostracon.v1.Service) +- [lbm/collection/v1/collection.proto](#lbm/collection/v1/collection.proto) + - [Attribute](#lbm.collection.v1.Attribute) + - [Authorization](#lbm.collection.v1.Authorization) + - [Change](#lbm.collection.v1.Change) + - [Coin](#lbm.collection.v1.Coin) + - [Contract](#lbm.collection.v1.Contract) + - [FT](#lbm.collection.v1.FT) + - [FTClass](#lbm.collection.v1.FTClass) + - [Grant](#lbm.collection.v1.Grant) + - [NFT](#lbm.collection.v1.NFT) + - [NFTClass](#lbm.collection.v1.NFTClass) + - [OwnerNFT](#lbm.collection.v1.OwnerNFT) + - [Params](#lbm.collection.v1.Params) + - [TokenType](#lbm.collection.v1.TokenType) + + - [LegacyPermission](#lbm.collection.v1.LegacyPermission) + - [Permission](#lbm.collection.v1.Permission) + +- [lbm/collection/v1/event.proto](#lbm/collection/v1/event.proto) + - [EventAbandon](#lbm.collection.v1.EventAbandon) + - [EventAttached](#lbm.collection.v1.EventAttached) + - [EventAuthorizedOperator](#lbm.collection.v1.EventAuthorizedOperator) + - [EventBurned](#lbm.collection.v1.EventBurned) + - [EventCreatedContract](#lbm.collection.v1.EventCreatedContract) + - [EventCreatedFTClass](#lbm.collection.v1.EventCreatedFTClass) + - [EventCreatedNFTClass](#lbm.collection.v1.EventCreatedNFTClass) + - [EventDetached](#lbm.collection.v1.EventDetached) + - [EventGrant](#lbm.collection.v1.EventGrant) + - [EventMintedFT](#lbm.collection.v1.EventMintedFT) + - [EventMintedNFT](#lbm.collection.v1.EventMintedNFT) + - [EventModifiedContract](#lbm.collection.v1.EventModifiedContract) + - [EventModifiedNFT](#lbm.collection.v1.EventModifiedNFT) + - [EventModifiedTokenClass](#lbm.collection.v1.EventModifiedTokenClass) + - [EventRevokedOperator](#lbm.collection.v1.EventRevokedOperator) + - [EventSent](#lbm.collection.v1.EventSent) + + - [AttributeKey](#lbm.collection.v1.AttributeKey) + - [EventType](#lbm.collection.v1.EventType) + +- [lbm/collection/v1/genesis.proto](#lbm/collection/v1/genesis.proto) + - [Balance](#lbm.collection.v1.Balance) + - [ClassStatistics](#lbm.collection.v1.ClassStatistics) + - [ContractAuthorizations](#lbm.collection.v1.ContractAuthorizations) + - [ContractBalances](#lbm.collection.v1.ContractBalances) + - [ContractClasses](#lbm.collection.v1.ContractClasses) + - [ContractGrants](#lbm.collection.v1.ContractGrants) + - [ContractNFTs](#lbm.collection.v1.ContractNFTs) + - [ContractNextTokenIDs](#lbm.collection.v1.ContractNextTokenIDs) + - [ContractStatistics](#lbm.collection.v1.ContractStatistics) + - [ContractTokenRelations](#lbm.collection.v1.ContractTokenRelations) + - [GenesisState](#lbm.collection.v1.GenesisState) + - [NextClassIDs](#lbm.collection.v1.NextClassIDs) + - [NextTokenID](#lbm.collection.v1.NextTokenID) + - [TokenRelation](#lbm.collection.v1.TokenRelation) + +- [lbm/collection/v1/query.proto](#lbm/collection/v1/query.proto) + - [QueryAllBalancesRequest](#lbm.collection.v1.QueryAllBalancesRequest) + - [QueryAllBalancesResponse](#lbm.collection.v1.QueryAllBalancesResponse) + - [QueryApprovedRequest](#lbm.collection.v1.QueryApprovedRequest) + - [QueryApprovedResponse](#lbm.collection.v1.QueryApprovedResponse) + - [QueryApproversRequest](#lbm.collection.v1.QueryApproversRequest) + - [QueryApproversResponse](#lbm.collection.v1.QueryApproversResponse) + - [QueryAuthorizationRequest](#lbm.collection.v1.QueryAuthorizationRequest) + - [QueryAuthorizationResponse](#lbm.collection.v1.QueryAuthorizationResponse) + - [QueryBalanceRequest](#lbm.collection.v1.QueryBalanceRequest) + - [QueryBalanceResponse](#lbm.collection.v1.QueryBalanceResponse) + - [QueryBurntRequest](#lbm.collection.v1.QueryBurntRequest) + - [QueryBurntResponse](#lbm.collection.v1.QueryBurntResponse) + - [QueryChildrenRequest](#lbm.collection.v1.QueryChildrenRequest) + - [QueryChildrenResponse](#lbm.collection.v1.QueryChildrenResponse) + - [QueryContractRequest](#lbm.collection.v1.QueryContractRequest) + - [QueryContractResponse](#lbm.collection.v1.QueryContractResponse) + - [QueryContractsRequest](#lbm.collection.v1.QueryContractsRequest) + - [QueryContractsResponse](#lbm.collection.v1.QueryContractsResponse) + - [QueryFTBurntRequest](#lbm.collection.v1.QueryFTBurntRequest) + - [QueryFTBurntResponse](#lbm.collection.v1.QueryFTBurntResponse) + - [QueryFTClassRequest](#lbm.collection.v1.QueryFTClassRequest) + - [QueryFTClassResponse](#lbm.collection.v1.QueryFTClassResponse) + - [QueryFTMintedRequest](#lbm.collection.v1.QueryFTMintedRequest) + - [QueryFTMintedResponse](#lbm.collection.v1.QueryFTMintedResponse) + - [QueryFTSupplyRequest](#lbm.collection.v1.QueryFTSupplyRequest) + - [QueryFTSupplyResponse](#lbm.collection.v1.QueryFTSupplyResponse) + - [QueryGrantRequest](#lbm.collection.v1.QueryGrantRequest) + - [QueryGrantResponse](#lbm.collection.v1.QueryGrantResponse) + - [QueryGranteeGrantsRequest](#lbm.collection.v1.QueryGranteeGrantsRequest) + - [QueryGranteeGrantsResponse](#lbm.collection.v1.QueryGranteeGrantsResponse) + - [QueryMintedRequest](#lbm.collection.v1.QueryMintedRequest) + - [QueryMintedResponse](#lbm.collection.v1.QueryMintedResponse) + - [QueryNFTBurntRequest](#lbm.collection.v1.QueryNFTBurntRequest) + - [QueryNFTBurntResponse](#lbm.collection.v1.QueryNFTBurntResponse) + - [QueryNFTClassRequest](#lbm.collection.v1.QueryNFTClassRequest) + - [QueryNFTClassResponse](#lbm.collection.v1.QueryNFTClassResponse) + - [QueryNFTMintedRequest](#lbm.collection.v1.QueryNFTMintedRequest) + - [QueryNFTMintedResponse](#lbm.collection.v1.QueryNFTMintedResponse) + - [QueryNFTRequest](#lbm.collection.v1.QueryNFTRequest) + - [QueryNFTResponse](#lbm.collection.v1.QueryNFTResponse) + - [QueryNFTSupplyRequest](#lbm.collection.v1.QueryNFTSupplyRequest) + - [QueryNFTSupplyResponse](#lbm.collection.v1.QueryNFTSupplyResponse) + - [QueryOperatorAuthorizationsRequest](#lbm.collection.v1.QueryOperatorAuthorizationsRequest) + - [QueryOperatorAuthorizationsResponse](#lbm.collection.v1.QueryOperatorAuthorizationsResponse) + - [QueryOwnerRequest](#lbm.collection.v1.QueryOwnerRequest) + - [QueryOwnerResponse](#lbm.collection.v1.QueryOwnerResponse) + - [QueryParentRequest](#lbm.collection.v1.QueryParentRequest) + - [QueryParentResponse](#lbm.collection.v1.QueryParentResponse) + - [QueryRootRequest](#lbm.collection.v1.QueryRootRequest) + - [QueryRootResponse](#lbm.collection.v1.QueryRootResponse) + - [QuerySupplyRequest](#lbm.collection.v1.QuerySupplyRequest) + - [QuerySupplyResponse](#lbm.collection.v1.QuerySupplyResponse) + - [QueryTokenClassTypeNameRequest](#lbm.collection.v1.QueryTokenClassTypeNameRequest) + - [QueryTokenClassTypeNameResponse](#lbm.collection.v1.QueryTokenClassTypeNameResponse) + - [QueryTokenRequest](#lbm.collection.v1.QueryTokenRequest) + - [QueryTokenResponse](#lbm.collection.v1.QueryTokenResponse) + - [QueryTokenTypeRequest](#lbm.collection.v1.QueryTokenTypeRequest) + - [QueryTokenTypeResponse](#lbm.collection.v1.QueryTokenTypeResponse) + - [QueryTokenTypesRequest](#lbm.collection.v1.QueryTokenTypesRequest) + - [QueryTokenTypesResponse](#lbm.collection.v1.QueryTokenTypesResponse) + - [QueryTokensRequest](#lbm.collection.v1.QueryTokensRequest) + - [QueryTokensResponse](#lbm.collection.v1.QueryTokensResponse) + + - [Query](#lbm.collection.v1.Query) + +- [lbm/collection/v1/tx.proto](#lbm/collection/v1/tx.proto) + - [MintNFTParam](#lbm.collection.v1.MintNFTParam) + - [MsgAbandon](#lbm.collection.v1.MsgAbandon) + - [MsgAbandonResponse](#lbm.collection.v1.MsgAbandonResponse) + - [MsgApprove](#lbm.collection.v1.MsgApprove) + - [MsgApproveResponse](#lbm.collection.v1.MsgApproveResponse) + - [MsgAttach](#lbm.collection.v1.MsgAttach) + - [MsgAttachFrom](#lbm.collection.v1.MsgAttachFrom) + - [MsgAttachFromResponse](#lbm.collection.v1.MsgAttachFromResponse) + - [MsgAttachResponse](#lbm.collection.v1.MsgAttachResponse) + - [MsgAuthorizeOperator](#lbm.collection.v1.MsgAuthorizeOperator) + - [MsgAuthorizeOperatorResponse](#lbm.collection.v1.MsgAuthorizeOperatorResponse) + - [MsgBurn](#lbm.collection.v1.MsgBurn) + - [MsgBurnFT](#lbm.collection.v1.MsgBurnFT) + - [MsgBurnFTFrom](#lbm.collection.v1.MsgBurnFTFrom) + - [MsgBurnFTFromResponse](#lbm.collection.v1.MsgBurnFTFromResponse) + - [MsgBurnFTResponse](#lbm.collection.v1.MsgBurnFTResponse) + - [MsgBurnNFT](#lbm.collection.v1.MsgBurnNFT) + - [MsgBurnNFTFrom](#lbm.collection.v1.MsgBurnNFTFrom) + - [MsgBurnNFTFromResponse](#lbm.collection.v1.MsgBurnNFTFromResponse) + - [MsgBurnNFTResponse](#lbm.collection.v1.MsgBurnNFTResponse) + - [MsgBurnResponse](#lbm.collection.v1.MsgBurnResponse) + - [MsgCreateContract](#lbm.collection.v1.MsgCreateContract) + - [MsgCreateContractResponse](#lbm.collection.v1.MsgCreateContractResponse) + - [MsgCreateFTClass](#lbm.collection.v1.MsgCreateFTClass) + - [MsgCreateFTClassResponse](#lbm.collection.v1.MsgCreateFTClassResponse) + - [MsgCreateNFTClass](#lbm.collection.v1.MsgCreateNFTClass) + - [MsgCreateNFTClassResponse](#lbm.collection.v1.MsgCreateNFTClassResponse) + - [MsgDetach](#lbm.collection.v1.MsgDetach) + - [MsgDetachFrom](#lbm.collection.v1.MsgDetachFrom) + - [MsgDetachFromResponse](#lbm.collection.v1.MsgDetachFromResponse) + - [MsgDetachResponse](#lbm.collection.v1.MsgDetachResponse) + - [MsgDisapprove](#lbm.collection.v1.MsgDisapprove) + - [MsgDisapproveResponse](#lbm.collection.v1.MsgDisapproveResponse) + - [MsgGrant](#lbm.collection.v1.MsgGrant) + - [MsgGrantPermission](#lbm.collection.v1.MsgGrantPermission) + - [MsgGrantPermissionResponse](#lbm.collection.v1.MsgGrantPermissionResponse) + - [MsgGrantResponse](#lbm.collection.v1.MsgGrantResponse) + - [MsgIssueFT](#lbm.collection.v1.MsgIssueFT) + - [MsgIssueFTResponse](#lbm.collection.v1.MsgIssueFTResponse) + - [MsgIssueNFT](#lbm.collection.v1.MsgIssueNFT) + - [MsgIssueNFTResponse](#lbm.collection.v1.MsgIssueNFTResponse) + - [MsgMintFT](#lbm.collection.v1.MsgMintFT) + - [MsgMintFTResponse](#lbm.collection.v1.MsgMintFTResponse) + - [MsgMintNFT](#lbm.collection.v1.MsgMintNFT) + - [MsgMintNFTResponse](#lbm.collection.v1.MsgMintNFTResponse) + - [MsgModify](#lbm.collection.v1.MsgModify) + - [MsgModifyContract](#lbm.collection.v1.MsgModifyContract) + - [MsgModifyContractResponse](#lbm.collection.v1.MsgModifyContractResponse) + - [MsgModifyNFT](#lbm.collection.v1.MsgModifyNFT) + - [MsgModifyNFTResponse](#lbm.collection.v1.MsgModifyNFTResponse) + - [MsgModifyResponse](#lbm.collection.v1.MsgModifyResponse) + - [MsgModifyTokenClass](#lbm.collection.v1.MsgModifyTokenClass) + - [MsgModifyTokenClassResponse](#lbm.collection.v1.MsgModifyTokenClassResponse) + - [MsgOperatorAttach](#lbm.collection.v1.MsgOperatorAttach) + - [MsgOperatorAttachResponse](#lbm.collection.v1.MsgOperatorAttachResponse) + - [MsgOperatorBurn](#lbm.collection.v1.MsgOperatorBurn) + - [MsgOperatorBurnResponse](#lbm.collection.v1.MsgOperatorBurnResponse) + - [MsgOperatorDetach](#lbm.collection.v1.MsgOperatorDetach) + - [MsgOperatorDetachResponse](#lbm.collection.v1.MsgOperatorDetachResponse) + - [MsgOperatorSend](#lbm.collection.v1.MsgOperatorSend) + - [MsgOperatorSendResponse](#lbm.collection.v1.MsgOperatorSendResponse) + - [MsgRevokeOperator](#lbm.collection.v1.MsgRevokeOperator) + - [MsgRevokeOperatorResponse](#lbm.collection.v1.MsgRevokeOperatorResponse) + - [MsgRevokePermission](#lbm.collection.v1.MsgRevokePermission) + - [MsgRevokePermissionResponse](#lbm.collection.v1.MsgRevokePermissionResponse) + - [MsgSend](#lbm.collection.v1.MsgSend) + - [MsgSendResponse](#lbm.collection.v1.MsgSendResponse) + - [MsgTransferFT](#lbm.collection.v1.MsgTransferFT) + - [MsgTransferFTFrom](#lbm.collection.v1.MsgTransferFTFrom) + - [MsgTransferFTFromResponse](#lbm.collection.v1.MsgTransferFTFromResponse) + - [MsgTransferFTResponse](#lbm.collection.v1.MsgTransferFTResponse) + - [MsgTransferNFT](#lbm.collection.v1.MsgTransferNFT) + - [MsgTransferNFTFrom](#lbm.collection.v1.MsgTransferNFTFrom) + - [MsgTransferNFTFromResponse](#lbm.collection.v1.MsgTransferNFTFromResponse) + - [MsgTransferNFTResponse](#lbm.collection.v1.MsgTransferNFTResponse) + + - [Msg](#lbm.collection.v1.Msg) + - [lbm/foundation/v1/authz.proto](#lbm/foundation/v1/authz.proto) - [ReceiveFromTreasuryAuthorization](#lbm.foundation.v1.ReceiveFromTreasuryAuthorization) @@ -11987,6 +12187,3607 @@ Service defines the gRPC querier service for ostracon queries. + +
+ +## lbm/collection/v1/collection.proto + + + + + +### Attribute +Attribute defines a key and value of the attribute. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `key` | [string](#string) | | | +| `value` | [string](#string) | | | + + + + + + + + +### Authorization +Authorization defines an authorization given to the operator on tokens of the holder. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `holder` | [string](#string) | | address of the holder which authorizes the manipulation of its tokens. | +| `operator` | [string](#string) | | address of the operator which the authorization is granted to. | + + + + + + + + +### Change +Deprecated: use Attribute + +Change defines a field-value pair. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `field` | [string](#string) | | | +| `value` | [string](#string) | | | + + + + + + + + +### Coin +Coin defines a token with a token id and an amount. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `token_id` | [string](#string) | | token id associated with the token. | +| `amount` | [string](#string) | | amount of the token. | + + + + + + + + +### Contract +Contract defines the information of the contract for the collection. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract_id defines the unique identifier of the contract. | +| `name` | [string](#string) | | name defines the human-readable name of the contract. | +| `meta` | [string](#string) | | meta is a brief description of the contract. | +| `base_img_uri` | [string](#string) | | base img uri is an uri for the contract image stored off chain. | + + + + + + + + +### FT +Deprecated: use FTClass + +FT defines the information of fungible token. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id defines the unique identifier of the fungible token. | +| `name` | [string](#string) | | name defines the human-readable name of the fungible token. | +| `meta` | [string](#string) | | meta is a brief description of the fungible token. | +| `decimals` | [int32](#int32) | | decimals is the number of decimals which one must divide the amount by to get its user representation. | +| `mintable` | [bool](#bool) | | mintable represents whether the fungible token is allowed to be minted or burnt. | + + + + + + + + +### FTClass +FTClass defines the class of fungible token. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `id` | [string](#string) | | id defines the unique identifier of the token class. Note: size of the class id is 8 in length. Note: token id of the fungible token would be `id` + `00000000`. | +| `name` | [string](#string) | | name defines the human-readable name of the token class. | +| `meta` | [string](#string) | | meta is a brief description of the token class. | +| `decimals` | [int32](#int32) | | decimals is the number of decimals which one must divide the amount by to get its user representation. | +| `mintable` | [bool](#bool) | | mintable represents whether the token class is allowed to mint or burn its tokens. | + + + + + + + + +### Grant +Grant defines permission given to a grantee. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `grantee` | [string](#string) | | address of the grantee. | +| `permission` | [Permission](#lbm.collection.v1.Permission) | | permission on the contract. | + + + + + + + + +### NFT +NFT defines the information of non-fungible token. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `id` | [string](#string) | | id defines the unique identifier of the token. | +| `name` | [string](#string) | | name defines the human-readable name of the token. | +| `meta` | [string](#string) | | meta is a brief description of the token. | + + + + + + + + +### NFTClass +NFTClass defines the class of non-fungible token. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `id` | [string](#string) | | id defines the unique identifier of the token class. Note: size of the class id is 8 in length. | +| `name` | [string](#string) | | name defines the human-readable name of the token class. | +| `meta` | [string](#string) | | meta is a brief description of the token class. | + + + + + + + + +### OwnerNFT +Deprecated: use NFT + +OwnerNFT defines the information of non-fungible token. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | id defines the unique identifier of the token. | +| `name` | [string](#string) | | name defines the human-readable name of the token. | +| `meta` | [string](#string) | | meta is a brief description of the token. | +| `owner` | [string](#string) | | owner of the token. | + + + + + + + + +### Params +Params defines the parameters for the collection module. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `depth_limit` | [uint32](#uint32) | | | +| `width_limit` | [uint32](#uint32) | | | + + + + + + + + +### TokenType +Deprecated: use TokenClass + +TokenType defines the information of token type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_type` | [string](#string) | | token type defines the unique identifier of the token type. | +| `name` | [string](#string) | | name defines the human-readable name of the token type. | +| `meta` | [string](#string) | | meta is a brief description of the token type. | + + + + + + + + + + +### LegacyPermission +Deprecated: use Permission + +LegacyPermission enumerates the valid permissions on a contract. + +| Name | Number | Description | +| ---- | ------ | ----------- | +| LEGACY_PERMISSION_UNSPECIFIED | 0 | unspecified defines the default permission which is invalid. | +| LEGACY_PERMISSION_ISSUE | 1 | issue defines a permission to create a token class. | +| LEGACY_PERMISSION_MODIFY | 2 | modify defines a permission to modify a contract. | +| LEGACY_PERMISSION_MINT | 3 | mint defines a permission to mint tokens of a contract. | +| LEGACY_PERMISSION_BURN | 4 | burn defines a permission to burn tokens of a contract. | + + + + + +### Permission +Permission enumerates the valid permissions on a contract. + +| Name | Number | Description | +| ---- | ------ | ----------- | +| PERMISSION_UNSPECIFIED | 0 | unspecified defines the default permission which is invalid. | +| PERMISSION_ISSUE | 1 | PERMISSION_ISSUE defines a permission to create a token class. | +| PERMISSION_MODIFY | 2 | PERMISSION_MODIFY defines a permission to modify a contract. | +| PERMISSION_MINT | 3 | PERMISSION_MINT defines a permission to mint tokens of a contract. | +| PERMISSION_BURN | 4 | PERMISSION_BURN defines a permission to burn tokens of a contract. | + + + + + + + + + + + + + +## lbm/collection/v1/event.proto + + + + + +### EventAbandon +EventAbandon is emitted when a grantee abandons its permission. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `grantee` | [string](#string) | | address of the grantee which abandons its grant. | +| `permission` | [Permission](#lbm.collection.v1.Permission) | | permission on the contract. | + + + + + + + + +### EventAttached +EventAttached is emitted when a token is attached to another. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggered the attach. | +| `holder` | [string](#string) | | address which holds the tokens. | +| `subject` | [string](#string) | | subject of the attach. | +| `target` | [string](#string) | | target of the attach. | + + + + + + + + +### EventAuthorizedOperator +EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `holder` | [string](#string) | | address of a holder which authorized the `operator` address as an operator. | +| `operator` | [string](#string) | | address which became an operator of `holder`. | + + + + + + + + +### EventBurned +EventBurned is emitted when tokens are burnt. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggered the burn. | +| `from` | [string](#string) | | holder whose tokens were burned. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | amount of tokens burned. | + + + + + + + + +### EventCreatedContract +EventCreatedContract is emitted when a new contract is created. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `name` | [string](#string) | | name of the contract. | +| `meta` | [string](#string) | | metadata of the contract. | +| `base_img_uri` | [string](#string) | | uri for the contract image stored off chain. | + + + + + + + + +### EventCreatedFTClass +EventCreatedFTClass is emitted when a new fungible token class is created. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `class_id` | [string](#string) | | class id associated with the token class. | +| `name` | [string](#string) | | name of the token class. | +| `meta` | [string](#string) | | metadata of the token class. | +| `decimals` | [int32](#int32) | | decimals of the token class. | +| `mintable` | [bool](#bool) | | mintable represents whether the token class is allowed to mint or burn its tokens. | + + + + + + + + +### EventCreatedNFTClass +EventCreatedNFTClass is emitted when a new non-fungible token class is created. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `class_id` | [string](#string) | | class id associated with the token class. | +| `name` | [string](#string) | | name of the token class. | +| `meta` | [string](#string) | | metadata of the token class. | + + + + + + + + +### EventDetached +EventDetached is emitted when a token is detached from its parent. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggered the detach. | +| `holder` | [string](#string) | | address which holds the token. | +| `subject` | [string](#string) | | token being detached. | + + + + + + + + +### EventGrant +EventGrant is emitted when a granter grants its permission to a grantee. + +Info: `granter` would be empty if the permission is granted by an issuance. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `granter` | [string](#string) | | address of the granter which grants the permission. | +| `grantee` | [string](#string) | | address of the grantee. | +| `permission` | [Permission](#lbm.collection.v1.Permission) | | permission on the contract. | + + + + + + + + +### EventMintedFT +EventMintedFT is emitted when fungible tokens are minted. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggered the mint. | +| `to` | [string](#string) | | recipient of the tokens. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | amount of tokens minted. | + + + + + + + + +### EventMintedNFT +EventMintedNFT is emitted when non-fungible tokens are minted. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggered the mint. | +| `to` | [string](#string) | | recipient of the tokens. | +| `tokens` | [NFT](#lbm.collection.v1.NFT) | repeated | tokens minted. | + + + + + + + + +### EventModifiedContract +EventModifiedContract is emitted when the information of a contract is modified. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggered the modify. | +| `changes` | [Attribute](#lbm.collection.v1.Attribute) | repeated | changes of the attributes applied. | + + + + + + + + +### EventModifiedNFT +EventModifiedNFT is emitted when the information of a non-fungible token is modified. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggered the modify. | +| `token_id` | [string](#string) | | token id associated with the non-fungible token. | +| `changes` | [Attribute](#lbm.collection.v1.Attribute) | repeated | changes of the attributes applied. | + + + + + + + + +### EventModifiedTokenClass +EventModifiedTokenClass is emitted when the information of a token class is modified. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggered the modify. | +| `class_id` | [string](#string) | | class id associated with the token class. | +| `changes` | [Attribute](#lbm.collection.v1.Attribute) | repeated | changes of the attributes applied. | + + + + + + + + +### EventRevokedOperator +EventRevokedOperator is emitted when an authorization is revoked. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `holder` | [string](#string) | | address of a holder which revoked the `operator` address as an operator. | +| `operator` | [string](#string) | | address which was revoked as an operator of `holder`. | + + + + + + + + +### EventSent +EventSent is emitted when tokens are transferred. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggered the send. | +| `from` | [string](#string) | | holder whose tokens were sent. | +| `to` | [string](#string) | | recipient of the tokens. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | amount of tokens sent. | + + + + + + + + + + +### AttributeKey +Deprecated: use typed events. + +AttributeKey enumerates the valid attribute keys on x/collection. + +| Name | Number | Description | +| ---- | ------ | ----------- | +| ATTRIBUTE_KEY_UNSPECIFIED | 0 | | +| ATTRIBUTE_KEY_NAME | 1 | | +| ATTRIBUTE_KEY_META | 2 | | +| ATTRIBUTE_KEY_CONTRACT_ID | 3 | | +| ATTRIBUTE_KEY_TOKEN_ID | 4 | | +| ATTRIBUTE_KEY_OWNER | 5 | | +| ATTRIBUTE_KEY_AMOUNT | 6 | | +| ATTRIBUTE_KEY_DECIMALS | 7 | | +| ATTRIBUTE_KEY_BASE_IMG_URI | 8 | | +| ATTRIBUTE_KEY_MINTABLE | 9 | | +| ATTRIBUTE_KEY_TOKEN_TYPE | 10 | | +| ATTRIBUTE_KEY_FROM | 11 | | +| ATTRIBUTE_KEY_TO | 12 | | +| ATTRIBUTE_KEY_PERM | 13 | | +| ATTRIBUTE_KEY_TO_TOKEN_ID | 14 | | +| ATTRIBUTE_KEY_FROM_TOKEN_ID | 15 | | +| ATTRIBUTE_KEY_APPROVER | 16 | | +| ATTRIBUTE_KEY_PROXY | 17 | | +| ATTRIBUTE_KEY_OLD_ROOT_TOKEN_ID | 18 | | +| ATTRIBUTE_KEY_NEW_ROOT_TOKEN_ID | 19 | | + + + + + +### EventType +Deprecated: use typed events. + +EventType enumerates the valid event types on x/collection. + +| Name | Number | Description | +| ---- | ------ | ----------- | +| EVENT_TYPE_UNSPECIFIED | 0 | | +| EVENT_TYPE_CREATE_COLLECTION | 1 | | +| EVENT_TYPE_ISSUE_FT | 2 | | +| EVENT_TYPE_ISSUE_NFT | 3 | | +| EVENT_TYPE_MINT_FT | 4 | | +| EVENT_TYPE_BURN_FT | 5 | | +| EVENT_TYPE_MINT_NFT | 6 | | +| EVENT_TYPE_BURN_NFT | 7 | | +| EVENT_TYPE_BURN_FT_FROM | 8 | | +| EVENT_TYPE_BURN_NFT_FROM | 9 | | +| EVENT_TYPE_MODIFY_COLLECTION | 10 | | +| EVENT_TYPE_MODIFY_TOKEN_TYPE | 11 | | +| EVENT_TYPE_MODIFY_TOKEN | 12 | | +| EVENT_TYPE_TRANSFER | 13 | | +| EVENT_TYPE_TRANSFER_FT | 14 | | +| EVENT_TYPE_TRANSFER_NFT | 15 | | +| EVENT_TYPE_TRANSFER_FT_FROM | 16 | | +| EVENT_TYPE_TRANSFER_NFT_FROM | 17 | | +| EVENT_TYPE_GRANT_PERM | 18 | | +| EVENT_TYPE_REVOKE_PERM | 19 | | +| EVENT_TYPE_ATTACH | 20 | | +| EVENT_TYPE_DETACH | 21 | | +| EVENT_TYPE_ATTACH_FROM | 22 | | +| EVENT_TYPE_DETACH_FROM | 23 | | +| EVENT_TYPE_APPROVE_COLLECTION | 24 | | +| EVENT_TYPE_DISAPPROVE_COLLECTION | 25 | | +| EVENT_TYPE_OPERATION_TRANSFER_NFT | 26 | | +| EVENT_TYPE_OPERATION_BURN_NFT | 27 | | +| EVENT_TYPE_OPERATION_ROOT_CHANGED | 28 | | + + + + + + + + + + + + + +## lbm/collection/v1/genesis.proto + + + + + +### Balance +Balance defines a balance of an address. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `address` | [string](#string) | | | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | | + + + + + + + + +### ClassStatistics +ClassStatistics defines statistics belong to a token class. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `class_id` | [string](#string) | | class id associated with the token class. | +| `amount` | [string](#string) | | statistics | + + + + + + + + +### ContractAuthorizations +ContractAuthorizations defines authorizations belong to a contract. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `authorizations` | [Authorization](#lbm.collection.v1.Authorization) | repeated | authorizations | + + + + + + + + +### ContractBalances +ContractBalances defines balances belong to a contract. +genesis state. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `balances` | [Balance](#lbm.collection.v1.Balance) | repeated | balances | + + + + + + + + +### ContractClasses +ContractClasses defines token classes belong to a contract. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `classes` | [google.protobuf.Any](#google.protobuf.Any) | repeated | classes | + + + + + + + + +### ContractGrants +ContractGrant defines grants belong to a contract. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `grants` | [Grant](#lbm.collection.v1.Grant) | repeated | grants | + + + + + + + + +### ContractNFTs +ContractNFTs defines token classes belong to a contract. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `nfts` | [NFT](#lbm.collection.v1.NFT) | repeated | nfts | + + + + + + + + +### ContractNextTokenIDs +ContractNextTokenIDs defines the next token ids belong to a contract. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | | +| `token_ids` | [NextTokenID](#lbm.collection.v1.NextTokenID) | repeated | | + + + + + + + + +### ContractStatistics +ContractStatistics defines statistics belong to a contract. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `statistics` | [ClassStatistics](#lbm.collection.v1.ClassStatistics) | repeated | statistics | + + + + + + + + +### ContractTokenRelations +ContractTokenRelations defines token relations belong to a contract. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `relations` | [TokenRelation](#lbm.collection.v1.TokenRelation) | repeated | relations | + + + + + + + + +### GenesisState +GenesisState defines the collection module's genesis state. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `params` | [Params](#lbm.collection.v1.Params) | | params defines all the paramaters of the module. | +| `contracts` | [Contract](#lbm.collection.v1.Contract) | repeated | contracts defines the metadata of the contracts. | +| `next_class_ids` | [NextClassIDs](#lbm.collection.v1.NextClassIDs) | repeated | next ids for token classes. | +| `classes` | [ContractClasses](#lbm.collection.v1.ContractClasses) | repeated | classes defines the metadata of the tokens. | +| `next_token_ids` | [ContractNextTokenIDs](#lbm.collection.v1.ContractNextTokenIDs) | repeated | next ids for (non-fungible) tokens. | +| `balances` | [ContractBalances](#lbm.collection.v1.ContractBalances) | repeated | balances is an array containing the balances of all the accounts. | +| `nfts` | [ContractNFTs](#lbm.collection.v1.ContractNFTs) | repeated | nfts is an array containing the nfts. | +| `parents` | [ContractTokenRelations](#lbm.collection.v1.ContractTokenRelations) | repeated | parents represents the parents of (non-fungible) tokens. | +| `grants` | [ContractGrants](#lbm.collection.v1.ContractGrants) | repeated | grants defines the grant information. | +| `authorizations` | [ContractAuthorizations](#lbm.collection.v1.ContractAuthorizations) | repeated | authorizations defines the approve information. | +| `supplies` | [ContractStatistics](#lbm.collection.v1.ContractStatistics) | repeated | supplies represents the total supplies of tokens. | +| `burnts` | [ContractStatistics](#lbm.collection.v1.ContractStatistics) | repeated | burnts represents the total amount of burnt tokens. | + + + + + + + + +### NextClassIDs +NextClassIDs defines the next class ids of the contract. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `fungible` | [string](#string) | | id for the fungible tokens. | +| `non_fungible` | [string](#string) | | id for the non-fungible tokens. | + + + + + + + + +### NextTokenID +NextTokenID defines the next (non-fungible) token id of the token class. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `class_id` | [string](#string) | | class id associated with the token class. | +| `id` | [string](#string) | | id for the token. | + + + + + + + + +### TokenRelation +TokenRelation defines relations between two tokens. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `self` | [string](#string) | | self | +| `other` | [string](#string) | | other | + + + + + + + + + + + + + + + + + + +## lbm/collection/v1/query.proto + + + + + +### QueryAllBalancesRequest +QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `address` | [string](#string) | | address is the address to query the balances for. | +| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | + + + + + + + + +### QueryAllBalancesResponse +QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `balances` | [Coin](#lbm.collection.v1.Coin) | repeated | balances is the balalces of all the tokens. | +| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response. | + + + + + + + + +### QueryApprovedRequest +Deprecated: use QueryAuthorizationRequest + +QueryApprovedRequest is the request type for the Query/Approved RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `address` | [string](#string) | | the address of the operator. | +| `approver` | [string](#string) | | the address of the token holder. | + + + + + + + + +### QueryApprovedResponse +Deprecated: do not use + +QueryApprovedResponse is the response type for the Query/Approved RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `approved` | [bool](#bool) | | | + + + + + + + + +### QueryApproversRequest +Deprecated: use QueryOperatorAuthorizations + +QueryApproversRequest is the request type for the Query/Approvers RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `address` | [string](#string) | | address of the operator. | +| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | + + + + + + + + +### QueryApproversResponse +Deprecated: do not use + +QueryApproversResponse is the response type for the Query/Approvers RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `approvers` | [string](#string) | repeated | | +| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response. | + + + + + + + + +### QueryAuthorizationRequest +QueryAuthorizationRequest is the request type for the Query/Authorization RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | the address of the operator. | +| `holder` | [string](#string) | | the address of the token holder. | + + + + + + + + +### QueryAuthorizationResponse +QueryAuthorizationResponse is the response type for the Query/Authorization RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `authorization` | [Authorization](#lbm.collection.v1.Authorization) | | if no authorization found for the request, it would be nil. | + + + + + + + + +### QueryBalanceRequest +QueryBalanceRequest is the request type for the Query/Balance RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `address` | [string](#string) | | address is the address to query the balance for. | +| `token_id` | [string](#string) | | token id associated with the token. | + + + + + + + + +### QueryBalanceResponse +QueryBalanceResponse is the response type for the Query/Balance RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `balance` | [Coin](#lbm.collection.v1.Coin) | | balance is the balance of the token. | + + + + + + + + +### QueryBurntRequest +QueryBurntRequest is the request type for the Query/Burnt RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `class_id` | [string](#string) | | class id associated with the token class. | + + + + + + + + +### QueryBurntResponse +QueryBurntResponse is the response type for the Query/Burnt RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `burnt` | [string](#string) | | burnt is the amount of the burnt tokens. | + + + + + + + + +### QueryChildrenRequest +QueryChildrenRequest is the request type for the Query/Children RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id associated with the non-fungible token. | +| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | + + + + + + + + +### QueryChildrenResponse +QueryChildrenResponse is the response type for the Query/Children RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `children` | [NFT](#lbm.collection.v1.NFT) | repeated | children is the information of the child tokens. | +| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response. | + + + + + + + + +### QueryContractRequest +QueryContractRequest is the request type for the Query/Contract RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | + + + + + + + + +### QueryContractResponse +QueryContractResponse is the response type for the Query/Contract RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract` | [Contract](#lbm.collection.v1.Contract) | | contract is the information of the contract. | + + + + + + + + +### QueryContractsRequest +QueryContractsRequest is the request type for the Query/Contracts RPC method. +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | + + + + + + + + +### QueryContractsResponse +QueryContractsResponse is the response type for the Query/Contracts RPC method. +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contracts` | [Contract](#lbm.collection.v1.Contract) | repeated | contracts are the informations of all the contracts. | +| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response. | + + + + + + + + +### QueryFTBurntRequest +Deprecated: use QueryBurntRequest + +QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id associated with the fungible token. | + + + + + + + + +### QueryFTBurntResponse +Deprecated: do not use + +QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `burnt` | [string](#string) | | burnt is the amount of the burnt tokens. | + + + + + + + + +### QueryFTClassRequest +QueryFTClassRequest is the request type for the Query/FTClass RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `class_id` | [string](#string) | | class id associated with the token class. | + + + + + + + + +### QueryFTClassResponse +QueryFTClassResponse is the response type for the Query/FTClass RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `class` | [FTClass](#lbm.collection.v1.FTClass) | | class is the information of the token class. | + + + + + + + + +### QueryFTMintedRequest +Deprecated: use QueryMintedRequest + +QueryFTMintedRequest is the request type for the Query/FTMinted RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id associated with the fungible token. | + + + + + + + + +### QueryFTMintedResponse +Deprecated: do not use + +QueryFTMintedResponse is the response type for the Query/FTMinted RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `minted` | [string](#string) | | minted is the amount of the minted tokens. | + + + + + + + + +### QueryFTSupplyRequest +Deprecated: use QuerySupplyRequest + +QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id associated with the fungible token. | + + + + + + + + +### QueryFTSupplyResponse +Deprecated: do not use + +QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `supply` | [string](#string) | | supply is the supply of the tokens. | + + + + + + + + +### QueryGrantRequest +QueryGrantRequest is the request type for the Query/Grant RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `grantee` | [string](#string) | | the address of the grantee. | +| `permission` | [Permission](#lbm.collection.v1.Permission) | | permission on the contract. | + + + + + + + + +### QueryGrantResponse +QueryGrantResponse is the response type for the Query/Grant RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `grant` | [Grant](#lbm.collection.v1.Grant) | | if no grant found for the request, it would be nil and return an error. | + + + + + + + + +### QueryGranteeGrantsRequest +QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `grantee` | [string](#string) | | the address of the grantee. | +| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | + + + + + + + + +### QueryGranteeGrantsResponse +QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `grants` | [Grant](#lbm.collection.v1.Grant) | repeated | | +| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response. | + + + + + + + + +### QueryMintedRequest +QueryMintedRequest is the request type for the Query/Minted RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `class_id` | [string](#string) | | class id associated with the token class. | + + + + + + + + +### QueryMintedResponse +QueryMintedResponse is the response type for the Query/Minted RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `minted` | [string](#string) | | minted is the amount of the minted tokens. | + + + + + + + + +### QueryNFTBurntRequest +Deprecated: use QueryBurntRequest + +QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_type` | [string](#string) | | token type associated with the token type. | + + + + + + + + +### QueryNFTBurntResponse +Deprecated: do not use + +QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `burnt` | [string](#string) | | burnt is the amount of the burnt tokens. | + + + + + + + + +### QueryNFTClassRequest +QueryNFTClassRequest is the request type for the Query/NFTClass RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `class_id` | [string](#string) | | class id associated with the token class. | + + + + + + + + +### QueryNFTClassResponse +QueryNFTClassResponse is the response type for the Query/NFTClass RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `class` | [NFTClass](#lbm.collection.v1.NFTClass) | | class is the information of the token class. | + + + + + + + + +### QueryNFTMintedRequest +Deprecated: use QueryMintedRequest + +QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_type` | [string](#string) | | token type associated with the token type. | + + + + + + + + +### QueryNFTMintedResponse +Deprecated: do not use + +QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `minted` | [string](#string) | | minted is the amount of minted tokens. | + + + + + + + + +### QueryNFTRequest +QueryNFTRequest is the request type for the Query/NFT RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id associated with the non-fungible token. | + + + + + + + + +### QueryNFTResponse +QueryNFTResponse is the response type for the Query/NFT RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `token` | [NFT](#lbm.collection.v1.NFT) | | token is the information of the non-fungible token. | + + + + + + + + +### QueryNFTSupplyRequest +Deprecated: use QuerySupplyRequest + +QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_type` | [string](#string) | | token type associated with the token type. | + + + + + + + + +### QueryNFTSupplyResponse +Deprecated: do not use + +QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `supply` | [string](#string) | | supply is the supply of the non-fungible token. | + + + + + + + + +### QueryOperatorAuthorizationsRequest +QueryOperatorAuthorizationsRequest is the request type for the Query/OperatorAuthorizations RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address of the operator. | +| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | + + + + + + + + +### QueryOperatorAuthorizationsResponse +QueryOperatorAuthorizationsResponse is the response type for the Query/OperatorAuthorizations RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `authorizations` | [Authorization](#lbm.collection.v1.Authorization) | repeated | | +| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response. | + + + + + + + + +### QueryOwnerRequest +QueryOwnerRequest is the request type for the Query/Owner RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id associated with the non-fungible token. | + + + + + + + + +### QueryOwnerResponse +QueryOwnerResponse is the response type for the Query/Owner RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `owner` | [string](#string) | | owner of the token. | + + + + + + + + +### QueryParentRequest +QueryParentRequest is the request type for the Query/Parent RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id associated wit the non-fungible token. | + + + + + + + + +### QueryParentResponse +QueryParentResponse is the response type for the Query/Parent RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `parent` | [NFT](#lbm.collection.v1.NFT) | | parent is the information of the parent token. if there is no parent for the token, it would return nil. | + + + + + + + + +### QueryRootRequest +QueryRootRequest is the request type for the Query/Root RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id associated with the non-fungible token. | + + + + + + + + +### QueryRootResponse +QueryRootResponse is the response type for the Query/Root RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `root` | [NFT](#lbm.collection.v1.NFT) | | root is the information of the root token. it would return itself if it's the root token. | + + + + + + + + +### QuerySupplyRequest +QuerySupplyRequest is the request type for the Query/Supply RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `class_id` | [string](#string) | | class id associated with the token class. | + + + + + + + + +### QuerySupplyResponse +QuerySupplyResponse is the response type for the Query/Supply RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `supply` | [string](#string) | | supply is the supply of the tokens. | + + + + + + + + +### QueryTokenClassTypeNameRequest +QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `class_id` | [string](#string) | | class id associated with the token class. | + + + + + + + + +### QueryTokenClassTypeNameResponse +QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `name` | [string](#string) | | type name of the token class. | + + + + + + + + +### QueryTokenRequest +Deprecated: use QueryFTClassRequest or QueryNFTRequest + +QueryTokenRequest is the request type for the Query/Token RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_id` | [string](#string) | | token id associated with the fungible token. | + + + + + + + + +### QueryTokenResponse +Deprecated: do not use + +QueryTokenResponse is the response type for the Query/Token RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `token` | [google.protobuf.Any](#google.protobuf.Any) | | information of the token. | + + + + + + + + +### QueryTokenTypeRequest +Deprecated: use QueryTokenClassRequest + +QueryTokenTypeRequest is the request type for the Query/TokenType RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `token_type` | [string](#string) | | token type associated with the token type. | + + + + + + + + +### QueryTokenTypeResponse +Deprecated: do not use + +QueryTokenTypeResponse is the response type for the Query/TokenType RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `token_type` | [TokenType](#lbm.collection.v1.TokenType) | | token type is the information of the token type. | + + + + + + + + +### QueryTokenTypesRequest +Deprecated: do not use + +QueryTokenTypesRequest is the request type for the Query/TokenTypes RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | + + + + + + + + +### QueryTokenTypesResponse +Deprecated: do not use + +QueryTokenTypesResponse is the response type for the Query/TokenTypes RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `token_types` | [TokenType](#lbm.collection.v1.TokenType) | repeated | token types is the informations of all the token types. | +| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response. | + + + + + + + + +### QueryTokensRequest +Deprecated: do not use + +QueryTokensRequest is the request type for the Query/Tokens RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | + + + + + + + + +### QueryTokensResponse +Deprecated: do not use + +QueryTokensResponse is the response type for the Query/Tokens RPC method. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `tokens` | [google.protobuf.Any](#google.protobuf.Any) | repeated | informations of all the tokens. | +| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response. | + + + + + + + + + + + + + + +### Query +Query defines the gRPC querier service. + +| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint | +| ----------- | ------------ | ------------- | ------------| ------- | -------- | +| `Balance` | [QueryBalanceRequest](#lbm.collection.v1.QueryBalanceRequest) | [QueryBalanceResponse](#lbm.collection.v1.QueryBalanceResponse) | Balance queries the balance of a single token class for a single account. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - ErrInvalidAddress - `address` is of invalid format. | GET|/lbm/collection/v1/contracts/{contract_id}/balances/{address}/{token_id}| +| `AllBalances` | [QueryAllBalancesRequest](#lbm.collection.v1.QueryAllBalancesRequest) | [QueryAllBalancesResponse](#lbm.collection.v1.QueryAllBalancesResponse) | AllBalances queries the balance of all token classes for a single account. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - ErrInvalidAddress - `address` is of invalid format. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/balances/{address}| +| `Supply` | [QuerySupplyRequest](#lbm.collection.v1.QuerySupplyRequest) | [QuerySupplyResponse](#lbm.collection.v1.QuerySupplyResponse) | Supply queries the number of tokens from a given contract id and class id. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `class_id` is of invalid format. - ErrNotFound - there is no token class of `class_id`. Info: one can query for both fungible tokens and non-fungible token classes. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/token_classes/{class_id}/supply| +| `Minted` | [QueryMintedRequest](#lbm.collection.v1.QueryMintedRequest) | [QueryMintedResponse](#lbm.collection.v1.QueryMintedResponse) | Minted queries the number of minted tokens from a given contract id and class id. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `class_id` is of invalid format. - ErrNotFound - there is no token class of `class_id`. Info: one can query for both fungible tokens and non-fungible token classes. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/token_classes/{class_id}/minted| +| `Burnt` | [QueryBurntRequest](#lbm.collection.v1.QueryBurntRequest) | [QueryBurntResponse](#lbm.collection.v1.QueryBurntResponse) | Burnt queries the number of burnt tokens from a given contract id and class id. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `class_id` is of invalid format. - ErrNotFound - there is no token class of `class_id`. Info: one can query for both fungible tokens and non-fungible token classes. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/token_classes/{class_id}/burnt| +| `FTSupply` | [QueryFTSupplyRequest](#lbm.collection.v1.QueryFTSupplyRequest) | [QueryFTSupplyResponse](#lbm.collection.v1.QueryFTSupplyResponse) | Deprecated: use Supply FTSupply queries the number of tokens from a given contract id and token id. | GET|/lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/supply| +| `FTMinted` | [QueryFTMintedRequest](#lbm.collection.v1.QueryFTMintedRequest) | [QueryFTMintedResponse](#lbm.collection.v1.QueryFTMintedResponse) | Deprecated: use Minted FTMinted queries the number of minted tokens from a given contract id and token id. | GET|/lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/minted| +| `FTBurnt` | [QueryFTBurntRequest](#lbm.collection.v1.QueryFTBurntRequest) | [QueryFTBurntResponse](#lbm.collection.v1.QueryFTBurntResponse) | Deprecated: use Burnt FTBurnt queries the number of burnt tokens from a given contract id and token id. | GET|/lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/burnt| +| `NFTSupply` | [QueryNFTSupplyRequest](#lbm.collection.v1.QueryNFTSupplyRequest) | [QueryNFTSupplyResponse](#lbm.collection.v1.QueryNFTSupplyResponse) | Deprecated: use Supply NFTSupply queries the number of tokens from a given contract id and token type. | GET|/lbm/collection/v1/contracts/{contract_id}/token_types/{token_type}/supply| +| `NFTMinted` | [QueryNFTMintedRequest](#lbm.collection.v1.QueryNFTMintedRequest) | [QueryNFTMintedResponse](#lbm.collection.v1.QueryNFTMintedResponse) | Deprecated: use Minted NFTMinted queries the number of minted tokens from a given contract id and token type. | GET|/lbm/collection/v1/contracts/{contract_id}/token_types/{token_type}/minted| +| `NFTBurnt` | [QueryNFTBurntRequest](#lbm.collection.v1.QueryNFTBurntRequest) | [QueryNFTBurntResponse](#lbm.collection.v1.QueryNFTBurntResponse) | Deprecated: use Burnt NFTBurnt queries the number of burnt tokens from a given contract id and token type. | GET|/lbm/collection/v1/contracts/{contract_id}/token_types/{token_type}/burnt| +| `Contract` | [QueryContractRequest](#lbm.collection.v1.QueryContractRequest) | [QueryContractResponse](#lbm.collection.v1.QueryContractResponse) | Contract queries a contract metadata based on its contract id. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - ErrNotFound - there is no contract of `contract_id`. | GET|/lbm/collection/v1/contracts/{contract_id}| +| `Contracts` | [QueryContractsRequest](#lbm.collection.v1.QueryContractsRequest) | [QueryContractsResponse](#lbm.collection.v1.QueryContractsResponse) | Contracts queries metadata of all contracts. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts| +| `FTClass` | [QueryFTClassRequest](#lbm.collection.v1.QueryFTClassRequest) | [QueryFTClassResponse](#lbm.collection.v1.QueryFTClassResponse) | FTClass queries a metadata of a fungible token class from its class id. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `class_id` is of invalid format. - ErrNotFound - there is no token class of `class_id`. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/ft_classes/{class_id}| +| `NFTClass` | [QueryNFTClassRequest](#lbm.collection.v1.QueryNFTClassRequest) | [QueryNFTClassResponse](#lbm.collection.v1.QueryNFTClassResponse) | NFTClass queries a metadata of a non-fungible token class from its class id. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `class_id` is of invalid format. - ErrNotFound - there is no token class of `class_id`. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/nft_classes/{class_id}| +| `TokenClassTypeName` | [QueryTokenClassTypeNameRequest](#lbm.collection.v1.QueryTokenClassTypeNameRequest) | [QueryTokenClassTypeNameResponse](#lbm.collection.v1.QueryTokenClassTypeNameResponse) | TokenClassTypeName queries the fully qualified message type name of a token class from its class id. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `class_id` is of invalid format. - ErrNotFound - there is no token class of `class_id`. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/token_classes/{class_id}/type_name| +| `TokenType` | [QueryTokenTypeRequest](#lbm.collection.v1.QueryTokenTypeRequest) | [QueryTokenTypeResponse](#lbm.collection.v1.QueryTokenTypeResponse) | Deprecated: use NFTClass TokenType queries metadata of a token type. | GET|/lbm/collection/v1/contracts/{contract_id}/token_types/{token_type}| +| `TokenTypes` | [QueryTokenTypesRequest](#lbm.collection.v1.QueryTokenTypesRequest) | [QueryTokenTypesResponse](#lbm.collection.v1.QueryTokenTypesResponse) | TokenTypes queries metadata of all the token types. Note: deprecated | GET|/lbm/collection/v1/contracts/{contract_id}/token_types| +| `Token` | [QueryTokenRequest](#lbm.collection.v1.QueryTokenRequest) | [QueryTokenResponse](#lbm.collection.v1.QueryTokenResponse) | Deprecated: use FTClass or NFT Token queries a metadata of a token from its token id. | GET|/lbm/collection/v1/contracts/{contract_id}/tokens/{token_id}| +| `Tokens` | [QueryTokensRequest](#lbm.collection.v1.QueryTokensRequest) | [QueryTokensResponse](#lbm.collection.v1.QueryTokensResponse) | Tokens queries all token metadata. Note: deprecated | GET|/lbm/collection/v1/contracts/{contract_id}/tokens| +| `NFT` | [QueryNFTRequest](#lbm.collection.v1.QueryNFTRequest) | [QueryNFTResponse](#lbm.collection.v1.QueryNFTResponse) | NFT queries a metadata of a non-fungible token. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `token_id` is of invalid format. - ErrNotFound - there is no token of `token_id`. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}| +| `Owner` | [QueryOwnerRequest](#lbm.collection.v1.QueryOwnerRequest) | [QueryOwnerResponse](#lbm.collection.v1.QueryOwnerResponse) | Owner queries the owner of the token. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `token_id` is of invalid format. - ErrNotFound - there is no token of `token_id`. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/owner| +| `Root` | [QueryRootRequest](#lbm.collection.v1.QueryRootRequest) | [QueryRootResponse](#lbm.collection.v1.QueryRootResponse) | Root queries the root of a given nft. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `token_id` is of invalid format. - ErrNotFound - there is no token of `token_id`. | GET|/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/root| +| `Parent` | [QueryParentRequest](#lbm.collection.v1.QueryParentRequest) | [QueryParentResponse](#lbm.collection.v1.QueryParentResponse) | Parent queries the parent of a given nft. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `token_id` is of invalid format. - ErrNotFound - there is no token of `token_id`. - token is the root. | GET|/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/parent| +| `Children` | [QueryChildrenRequest](#lbm.collection.v1.QueryChildrenRequest) | [QueryChildrenResponse](#lbm.collection.v1.QueryChildrenResponse) | Children queries the children of a given nft. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `token_id` is of invalid format. | GET|/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/children| +| `Grant` | [QueryGrantRequest](#lbm.collection.v1.QueryGrantRequest) | [QueryGrantResponse](#lbm.collection.v1.QueryGrantResponse) | Grant queries a permission on a given grantee. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - `permission` is not a valid permission. - ErrInvalidAddress - `grantee` is of invalid format. - ErrNotFound - there is no permission of `permission` on `grantee`. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/grants/{grantee}/{permission}| +| `GranteeGrants` | [QueryGranteeGrantsRequest](#lbm.collection.v1.QueryGranteeGrantsRequest) | [QueryGranteeGrantsResponse](#lbm.collection.v1.QueryGranteeGrantsResponse) | GranteeGrants queries all permissions on a given grantee. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - ErrInvalidAddress - `grantee` is of invalid format. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/grants/{grantee}| +| `Authorization` | [QueryAuthorizationRequest](#lbm.collection.v1.QueryAuthorizationRequest) | [QueryAuthorizationResponse](#lbm.collection.v1.QueryAuthorizationResponse) | Authorization queries an authorization on a given operator approver pair. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - ErrInvalidAddress - `operator` is of invalid format. - `holder` is of invalid format. - ErrNotFound - there is no authorization given by `holder` to `operator`. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/authorizations/{operator}/{holder}| +| `OperatorAuthorizations` | [QueryOperatorAuthorizationsRequest](#lbm.collection.v1.QueryOperatorAuthorizationsRequest) | [QueryOperatorAuthorizationsResponse](#lbm.collection.v1.QueryOperatorAuthorizationsResponse) | OperatorAuthorizations queries authorizations on a given operator. Throws: - ErrInvalidRequest - `contract_id` is of invalid format. - ErrInvalidAddress - `operator` is of invalid format. Since: 0.46.0 (finschia) | GET|/lbm/collection/v1/contracts/{contract_id}/authorizations/{operator}| +| `Approved` | [QueryApprovedRequest](#lbm.collection.v1.QueryApprovedRequest) | [QueryApprovedResponse](#lbm.collection.v1.QueryApprovedResponse) | Deprecated: use Authorization Approved queries whether the operator is approved by the approver. | GET|/lbm/collection/v1/contracts/{contract_id}/accounts/{address}/proxies/{approver}| +| `Approvers` | [QueryApproversRequest](#lbm.collection.v1.QueryApproversRequest) | [QueryApproversResponse](#lbm.collection.v1.QueryApproversResponse) | Deprecated: use OperatorAuthorizations Approvers queries approvers of a given operator. | GET|/lbm/collection/v1/contracts/{contract_id}/accounts/{address}/approvers| + + + + + + + + +## lbm/collection/v1/tx.proto + + + + + +### MintNFTParam +MintNFTParam defines a parameter for minting nft. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `token_type` | [string](#string) | | token type or class id of the nft. Note: it cannot start with zero. | +| `name` | [string](#string) | | name defines the human-readable name of the nft (mandatory). Note: it has an app-specific limit in length. | +| `meta` | [string](#string) | | meta is a brief description of the nft. Note: it has an app-specific limit in length. | + + + + + + + + +### MsgAbandon +MsgAbandon is the Msg/Abandon request type. + +Throws: +- ErrInvalidAddress + - `grantee` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `permission` is not a valid permission. + +Signer: `grantee` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `grantee` | [string](#string) | | address of the grantee which abandons the permission. | +| `permission` | [Permission](#lbm.collection.v1.Permission) | | permission on the contract. | + + + + + + + + +### MsgAbandonResponse +MsgAbandonResponse is the Msg/Abandon response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgApprove +Deprecated: use MsgAuthorizeOperator + +MsgApprove is the Msg/Approve request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `approver` | [string](#string) | | address of the holder who allows the manipulation of its token. | +| `proxy` | [string](#string) | | address which the manipulation is allowed to. | + + + + + + + + +### MsgApproveResponse +Deprecated: do not use + +MsgApproveResponse is the Msg/Approve response type. + + + + + + + + +### MsgAttach +MsgAttach is the Msg/Attach request type. + +Throws: +- ErrInvalidAddress + - `from` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `token_id` is of invalid format. + - `to_token_id` is of invalid format. + - `token_id` is equal to `to_token_id`. + +Signer: `from` + +TODO: revisit the field names + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | address of the owner of the token. | +| `token_id` | [string](#string) | | token id of the token to attach. | +| `to_token_id` | [string](#string) | | to token id which one attachs the token to. | + + + + + + + + +### MsgAttachFrom +Deprecated: use MsgOperatorAttach + +MsgAttachFrom is the Msg/AttachFrom request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `proxy` | [string](#string) | | address of the operator. | +| `from` | [string](#string) | | address of the owner of the token. | +| `token_id` | [string](#string) | | token id of the token to attach. | +| `to_token_id` | [string](#string) | | to token id which one attachs the token to. | + + + + + + + + +### MsgAttachFromResponse +Deprecated: do not use + +MsgAttachFromResponse is the Msg/AttachFrom response type. + + + + + + + + +### MsgAttachResponse +MsgAttachResponse is the Msg/Attach response type. + + + + + + + + +### MsgAuthorizeOperator +MsgAuthorizeOperator is the Msg/AuthorizeOperator request type. + +Throws: +- ErrInvalidAddress + - `holder` is of invalid format. + - `operator` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + +Signer: `holder` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `holder` | [string](#string) | | address of a holder which authorizes the `operator` address as an operator. | +| `operator` | [string](#string) | | address to set as an operator for `holder`. | + + + + + + + + +### MsgAuthorizeOperatorResponse +MsgAuthorizeOperatorResponse is the Msg/AuthorizeOperator response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgBurn +MsgBurn is the Msg/Burn request type. + +Throws: +- ErrInvalidAddress + - `from` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `amount` is not positive. + +Signer: `from` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | holder whose tokens are being burned. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | amount of tokens to burn. | + + + + + + + + +### MsgBurnFT +Deprecated: use MsgBurn + +MsgBurnFT is the Msg/BurnFT request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | address which the tokens will be burnt from. Note: it must have the permission for the burn. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | the amount of the burn. Note: amount may be empty. | + + + + + + + + +### MsgBurnFTFrom +Deprecated: use MsgOperatorBurn + +MsgBurnFTFrom is the Msg/BurnFTFrom request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `proxy` | [string](#string) | | address which triggers the burn. Note: it must have the permission for the burn. Note: it must have been authorized by from. | +| `from` | [string](#string) | | address which the tokens will be burnt from. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | the amount of the burn. Note: amount may be empty. | + + + + + + + + +### MsgBurnFTFromResponse +Deprecated: do not use + +MsgBurnFTFromResponse is the Msg/BurnFTFrom response type. + + + + + + + + +### MsgBurnFTResponse +Deprecated: do not use + +MsgBurnFTResponse is the Msg/BurnFT response type. + + + + + + + + +### MsgBurnNFT +Deprecated: use MsgBurn + +MsgBurnNFT is the Msg/BurnNFT request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | address which the tokens will be burnt from. Note: it must have the permission for the burn. | +| `token_ids` | [string](#string) | repeated | the token ids to burn. Note: id cannot start with zero. | + + + + + + + + +### MsgBurnNFTFrom +Deprecated: use MsgOperatorBurn + +MsgBurnNFTFrom is the Msg/BurnNFTFrom request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `proxy` | [string](#string) | | address which triggers the burn. Note: it must have the permission for the burn. Note: it must have been authorized by from. | +| `from` | [string](#string) | | address which the tokens will be burnt from. | +| `token_ids` | [string](#string) | repeated | the token ids to burn. Note: id cannot start with zero. | + + + + + + + + +### MsgBurnNFTFromResponse +Deprecated: do not use + +MsgBurnNFTFromResponse is the Msg/BurnNFTFrom response type. + + + + + + + + +### MsgBurnNFTResponse +Deprecated: do not use + +MsgBurnNFTResponse is the Msg/BurnNFT response type. + + + + + + + + +### MsgBurnResponse +MsgBurnResponse is the Msg/Burn response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgCreateContract +MsgCreateContract is the Msg/CreateContract request type. + +Throws: +- ErrInvalidAddress + - `owner` is of invalid format. +- ErrInvalidRequest + - `name` exceeds the app-specific limit in length. + - `base_img_uri` exceeds the app-specific limit in length. + - `meta` exceeds the app-specific limit in length. + +Signer: `owner` + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `owner` | [string](#string) | | address which all the permissions on the contract will be granted to (not a permanent property). | +| `name` | [string](#string) | | name defines the human-readable name of the contract. | +| `base_img_uri` | [string](#string) | | base img uri is an uri for the contract image stored off chain. | +| `meta` | [string](#string) | | meta is a brief description of the contract. | + + + + + + + + +### MsgCreateContractResponse +MsgCreateContractResponse is the Msg/CreateContract response type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `id` | [string](#string) | | id of the new contract. | + + + + + + + + +### MsgCreateFTClass +MsgCreateFTClass is the Msg/CreateFTClass request type. + +Throws: +- ErrInvalidAddress + - `operator` is of invalid format. + - `to` is not empty and is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `name` exceeds the app-specific limit in length. + - `meta` exceeds the app-specific limit in length. + - `decimals` is lesser than 0 or greater than 18. + - `supply` is positive and `to` is of invalid format. + +Signer: `operator` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggers the create. | +| `name` | [string](#string) | | name defines the human-readable name of the token class. | +| `meta` | [string](#string) | | meta is a brief description of the token class. | +| `decimals` | [int32](#int32) | | decimals is the number of decimals which one must divide the amount by to get its user representation. | +| `to` | [string](#string) | | recipient of the minted tokens. | +| `supply` | [string](#string) | | amount of tokens to mint on the create. Note: supply may be zero. | + + + + + + + + +### MsgCreateFTClassResponse +MsgCreateFTClassResponse is the Msg/CreateFTClass response type. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `id` | [string](#string) | | id of the new token class. | + + + + + + + + +### MsgCreateNFTClass +MsgCreateNFTClass is the Msg/CreateNFTClass request type. + +Throws: +- ErrInvalidAddress + - `operator` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `name` exceeds the app-specific limit in length. + - `meta` exceeds the app-specific limit in length. + +Signer: `operator` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggers the create. | +| `name` | [string](#string) | | name defines the human-readable name of the token class. | +| `meta` | [string](#string) | | meta is a brief description of the token class. | + + + + + + + + +### MsgCreateNFTClassResponse +MsgCreateNFTClassResponse is the Msg/CreateNFTClass response type. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `id` | [string](#string) | | id of the new token class. | + + + + + + + + +### MsgDetach +MsgDetach is the Msg/Detach request type. + +Throws: +- ErrInvalidAddress + - `from` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `token_id` is of invalid format. + +Signer: `from` + +TODO: revisit the field names + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | address of the owner of the token. | +| `token_id` | [string](#string) | | token id of the token to detach. | + + + + + + + + +### MsgDetachFrom +Deprecated: use MsgOperatorDetach + +MsgDetachFrom is the Msg/DetachFrom request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `proxy` | [string](#string) | | address of the operator. | +| `from` | [string](#string) | | address of the owner of the token. | +| `token_id` | [string](#string) | | token id of the token to detach. | + + + + + + + + +### MsgDetachFromResponse +Deprecated: do not use + +MsgDetachFromResponse is the Msg/DetachFrom response type. + + + + + + + + +### MsgDetachResponse +MsgDetachResponse is the Msg/Detach response type. + + + + + + + + +### MsgDisapprove +Deprecated: use MsgRevokeOperator + +MsgDisapprove is the Msg/Disapprove request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `approver` | [string](#string) | | address of the holder who allows the manipulation of its token. | +| `proxy` | [string](#string) | | address which the manipulation is allowed to. | + + + + + + + + +### MsgDisapproveResponse +Deprecated: do not use + +MsgDisapproveResponse is the Msg/Disapprove response type. + + + + + + + + +### MsgGrant +MsgGrant is the Msg/Grant request type. + +Throws: +- ErrInvalidAddress + - `granter` is of invalid format. + - `grantee` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `permission` is not a valid permission. + +Signer: `granter` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `granter` | [string](#string) | | address of the granter which must have the permission to give. | +| `grantee` | [string](#string) | | address of the grantee. | +| `permission` | [Permission](#lbm.collection.v1.Permission) | | permission on the contract. | + + + + + + + + +### MsgGrantPermission +Deprecated: use MsgGrant + +MsgGrantPermission is the Msg/GrantPermission request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | address of the granter which must have the permission to give. | +| `to` | [string](#string) | | address of the grantee. | +| `permission` | [string](#string) | | permission on the contract. | + + + + + + + + +### MsgGrantPermissionResponse +Deprecated: do not use + +MsgGrantPermissionResponse is the Msg/GrantPermission response type. + + + + + + + + +### MsgGrantResponse +MsgGrantResponse is the Msg/Grant response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgIssueFT +Deprecated: use MsgCreateFTClass + +MsgIssueFT is the Msg/IssueFT request type. + +Throws: +- ErrInvalidAddress + - `owner` is of invalid format. + - `to` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `name` is empty. + - `name` exceeds the app-specific limit in length. + - `meta` exceeds the app-specific limit in length. + - `decimals` is lesser than 0 or greater than 18. + - `amount` is not positive. + - `mintable` == false, amount == 1 and decimals == 0 (weird, but for the backward compatibility). + +Signer: `owner` + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `name` | [string](#string) | | name defines the human-readable name of the token class. | +| `meta` | [string](#string) | | meta is a brief description of the token class. | +| `decimals` | [int32](#int32) | | decimals is the number of decimals which one must divide the amount by to get its user representation. | +| `mintable` | [bool](#bool) | | mintable represents whether the token is allowed to be minted or burnt. | +| `owner` | [string](#string) | | the address of the grantee which must have the permission to issue a token. | +| `to` | [string](#string) | | the address to send the minted tokens to. mandatory. | +| `amount` | [string](#string) | | the amount of tokens to mint on the issuance. Note: if you provide negative amount, a panic may result. Note: amount may be zero. | + + + + + + + + +### MsgIssueFTResponse +Deprecated: do not use + +MsgIssueFTResponse is the Msg/IssueFT response type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `id` | [string](#string) | | id of the new token class. | + + + + + + + + +### MsgIssueNFT +Deprecated: use MsgCreateNFTClass + +MsgIssueNFT is the Msg/IssueNFT request type. + +Throws: +- ErrInvalidAddress + - `owner` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `name` exceeds the app-specific limit in length. + - `meta` exceeds the app-specific limit in length. + +Signer: `owner` + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `name` | [string](#string) | | name defines the human-readable name of the token class. | +| `meta` | [string](#string) | | meta is a brief description of the token class. | +| `owner` | [string](#string) | | the address of the grantee which must have the permission to issue a token. | + + + + + + + + +### MsgIssueNFTResponse +Deprecated: do not use + +MsgIssueNFTResponse is the Msg/IssueNFT response type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `id` | [string](#string) | | id of the new token class. | + + + + + + + + +### MsgMintFT +MsgMintFT is the Msg/MintFT request type. + +Throws: +- ErrInvalidAddress + - `from` is of invalid format. + - `to` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `amount` is not positive. + +Signer: `from` + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | address of the grantee which has the permission for the mint. | +| `to` | [string](#string) | | address which the minted tokens will be sent to. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | the amount of the mint. Note: amount may be empty. | + + + + + + + + +### MsgMintFTResponse +MsgMintFTResponse is the Msg/MintFT response type. + + + + + + + + +### MsgMintNFT +MsgMintNFT is the Msg/MintNFT request type. + +Throws: +- ErrInvalidAddress + - `from` is of invalid format. + - `to` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `params` is empty. + - `params` has an invalid element. + +Signer: `from` + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | address of the grantee which has the permission for the mint. | +| `to` | [string](#string) | | address which the minted token will be sent to. | +| `params` | [MintNFTParam](#lbm.collection.v1.MintNFTParam) | repeated | parameters for the minted tokens. | + + + + + + + + +### MsgMintNFTResponse +MsgMintNFTResponse is the Msg/MintNFT response type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `ids` | [string](#string) | repeated | ids of the new non-fungible tokens. | + + + + + + + + +### MsgModify +Deprecated: use MsgModifyContract, MsgModifyTokenClass or MsgModifyNFT + +MsgModify is the Msg/Modify request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `owner` | [string](#string) | | the address of the grantee which must have modify permission. | +| `token_type` | [string](#string) | | token type of the token. | +| `token_index` | [string](#string) | | token index of the token. if index is empty, it would modify the corresponding token type. if index is not empty, it would modify the corresponding nft. Note: if token type is of FTs, the index cannot be empty. | +| `changes` | [Change](#lbm.collection.v1.Change) | repeated | changes to apply. on modifying collection: name, base_img_uri, meta. on modifying token type and token: name, meta. | + + + + + + + + +### MsgModifyContract +MsgModifyContract is the Msg/ModifyContract request type. + +Throws: +- ErrInvalidAddress + - `operator` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `changes` has duplicate keys. + - `changes` has a key which is not allowed to modify. + - `changes` is empty. + +Signer: `operator` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggers the modify. | +| `changes` | [Attribute](#lbm.collection.v1.Attribute) | repeated | attributes to apply. | + + + + + + + + +### MsgModifyContractResponse +MsgModifyContractResponse is the Msg/ModifyContract response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgModifyNFT +MsgModifyNFT is the Msg/ModifyNFT request type. + +Throws: +- ErrInvalidAddress + - `operator` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `token_id` is of invalid format. + - `changes` has duplicate keys. + - `changes` has a key which is not allowed to modify. + - `changes` is empty. + +Signer: `operator` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggers the modify. | +| `token_id` | [string](#string) | | token id associated with the non-fungible token. | +| `changes` | [Attribute](#lbm.collection.v1.Attribute) | repeated | attributes to apply. | + + + + + + + + +### MsgModifyNFTResponse +MsgModifyNFTResponse is the Msg/ModifyNFT response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgModifyResponse +Deprecated: do not use + +MsgModifyResponse is the Msg/Modify response type. + + + + + + + + +### MsgModifyTokenClass +MsgModifyTokenClass is the Msg/ModifyTokenClass request type. + +Throws: +- ErrInvalidAddress + - `operator` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `class_id` is of invalid format. + - `changes` has duplicate keys. + - `changes` has a key which is not allowed to modify. + - `changes` is empty. + +Signer: `operator` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggers the modify. | +| `class_id` | [string](#string) | | class id associated with the token class. | +| `changes` | [Attribute](#lbm.collection.v1.Attribute) | repeated | attributes to apply. | + + + + + + + + +### MsgModifyTokenClassResponse +MsgModifyTokenClassResponse is the Msg/ModifyTokenClass response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgOperatorAttach +MsgOperatorAttach is the Msg/OperatorAttach request type. + +Throws: +- ErrInvalidAddress + - `operator` is of invalid format. + - `owner` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `subject` is of invalid format. + - `target` is of invalid format. + - `subject` is equal to `target`. + +Signer: `operator` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address of the operator. | +| `owner` | [string](#string) | | address of the owner of the token. | +| `subject` | [string](#string) | | token id of the token to attach. | +| `target` | [string](#string) | | token id which one attachs the token to. | + + + + + + + + +### MsgOperatorAttachResponse +MsgOperatorAttachResponse is the Msg/OperatorAttach response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgOperatorBurn +MsgOperatorBurn is the Msg/OperatorBurn request type. + +Throws: +- ErrInvalidAddress + - `operator` is of invalid format. + - `from` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `amount` is not positive. + +Signer: `from` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggers the burn. | +| `from` | [string](#string) | | holder whose tokens are being burned. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | amount of tokens to burn. | + + + + + + + + +### MsgOperatorBurnResponse +MsgOperatorBurnResponse is the Msg/OperatorBurn response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgOperatorDetach +MsgOperatorDetach is the Msg/OperatorDetach request type. + +Throws: +- ErrInvalidAddress + - `operator` is of invalid format. + - `owner` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `subject` is of invalid format. + +Signer: `operator` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address of the operator. | +| `owner` | [string](#string) | | address of the holder of the token. | +| `subject` | [string](#string) | | token id of the token to detach. | + + + + + + + + +### MsgOperatorDetachResponse +MsgOperatorDetachResponse is the Msg/OperatorDetach response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgOperatorSend +MsgOperatorSend is the Msg/OperatorSend request type. + +Throws: +- ErrInvalidAddress + - `operator` is of invalid format. + - `from` is of invalid format. + - `to` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `amount` is not positive. + +Signer: `operator` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `operator` | [string](#string) | | address which triggers the send. | +| `from` | [string](#string) | | holder whose tokens are being sent. | +| `to` | [string](#string) | | recipient of the tokens. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | amount of tokens to send. | + + + + + + + + +### MsgOperatorSendResponse +MsgOperatorSendResponse is the Msg/OperatorSend response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgRevokeOperator +MsgRevokeOperator is the Msg/RevokeOperator request type. + +Throws: +- ErrInvalidAddress + - `holder` is of invalid format. + - `operator` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + +Signer: `holder` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `holder` | [string](#string) | | address of a holder which revokes the `operator` address as an operator. | +| `operator` | [string](#string) | | address to rescind as an operator for `holder`. | + + + + + + + + +### MsgRevokeOperatorResponse +MsgRevokeOperatorResponse is the Msg/RevokeOperator response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgRevokePermission +Deprecated: use MsgAbandon + +MsgRevokePermission is the Msg/RevokePermission request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | address of the grantee which abandons the permission. | +| `permission` | [string](#string) | | permission on the contract. | + + + + + + + + +### MsgRevokePermissionResponse +Deprecated: do not use + +MsgRevokePermissionResponse is the Msg/RevokePermission response type. + + + + + + + + +### MsgSend +MsgSend is the Msg/Send request type. + +Throws: +- ErrInvalidAddress + - `from` is of invalid format. + - `to` is of invalid format. +- ErrInvalidRequest + - `contract_id` is of invalid format. + - `amount` is not positive. + +Signer: `from` + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | holder whose tokens are being sent. | +| `to` | [string](#string) | | recipient of the tokens. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | amount of tokens to send. | + + + + + + + + +### MsgSendResponse +MsgSendResponse is the Msg/Send response type. + +Since: 0.46.0 (finschia) + + + + + + + + +### MsgTransferFT +Deprecated: use MsgSend + +MsgTransferFT is the Msg/TransferFT request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | the address which the transfer is from. | +| `to` | [string](#string) | | the address which the transfer is to. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | the amount of the transfer. Note: amount may be empty. | + + + + + + + + +### MsgTransferFTFrom +Deprecated: use MsgOperatorSend + +MsgTransferFTFrom is the Msg/TransferFTFrom request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `proxy` | [string](#string) | | the address of the operator. | +| `from` | [string](#string) | | the address which the transfer is from. | +| `to` | [string](#string) | | the address which the transfer is to. | +| `amount` | [Coin](#lbm.collection.v1.Coin) | repeated | the amount of the transfer. Note: amount may be empty. | + + + + + + + + +### MsgTransferFTFromResponse +Deprecated: do not use + +MsgTransferFTFromResponse is the Msg/TransferFTFrom response type. + + + + + + + + +### MsgTransferFTResponse +Deprecated: do not use + +MsgTransferFTResponse is the Msg/TransferFT response type. + + + + + + + + +### MsgTransferNFT +Deprecated: use MsgSend + +MsgTransferNFT is the Msg/TransferNFT request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `from` | [string](#string) | | the address which the transfer is from. | +| `to` | [string](#string) | | the address which the transfer is to. | +| `token_ids` | [string](#string) | repeated | the token ids to transfer. | + + + + + + + + +### MsgTransferNFTFrom +Deprecated: use MsgOperatorSend + +MsgTransferNFTFrom is the Msg/TransferNFTFrom request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the contract. | +| `proxy` | [string](#string) | | the address of the operator. | +| `from` | [string](#string) | | the address which the transfer is from. | +| `to` | [string](#string) | | the address which the transfer is to. | +| `token_ids` | [string](#string) | repeated | the token ids to transfer. | + + + + + + + + +### MsgTransferNFTFromResponse +Deprecated: do not use + +MsgTransferNFTFromResponse is the Msg/TransferNFTFrom response type. + + + + + + + + +### MsgTransferNFTResponse +Deprecated: do not use + +MsgTransferNFTResponse is the Msg/TransferNFT response type. + + + + + + + + + + + + + + +### Msg +Msg defines the collection Msg service. + +| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint | +| ----------- | ------------ | ------------- | ------------| ------- | -------- | +| `Send` | [MsgSend](#lbm.collection.v1.MsgSend) | [MsgSendResponse](#lbm.collection.v1.MsgSendResponse) | Send defines a method to send tokens from one account to another account. Fires: - EventSent - transfer_ft (deprecated, not typed) - transfer_nft (deprecated, not typed) - operation_transfer_nft (deprecated, not typed) Throws: - ErrInsufficientFunds: - the balance of `from` does not have enough tokens to spend. Info: one can send both fungible tokens and non-fungible tokens. Since: 0.46.0 (finschia) | | +| `OperatorSend` | [MsgOperatorSend](#lbm.collection.v1.MsgOperatorSend) | [MsgOperatorSendResponse](#lbm.collection.v1.MsgOperatorSendResponse) | OperatorSend defines a method to send tokens from one account to another account by the operator. Fires: - EventSent - transfer_ft_from (deprecated, not typed) - transfer_nft_from (deprecated, not typed) - operation_transfer_nft (deprecated, not typed) Throws: - ErrUnauthorized: - the holder has not authorized the operator. - ErrInsufficientFunds: - the balance of `from` does not have enough tokens to spend. Info: one can send both fungible tokens and non-fungible tokens. Since: 0.46.0 (finschia) | | +| `TransferFT` | [MsgTransferFT](#lbm.collection.v1.MsgTransferFT) | [MsgTransferFTResponse](#lbm.collection.v1.MsgTransferFTResponse) | Deprecated: use Send TransferFT defines a method to send fungible tokens from one account to another account. | | +| `TransferFTFrom` | [MsgTransferFTFrom](#lbm.collection.v1.MsgTransferFTFrom) | [MsgTransferFTFromResponse](#lbm.collection.v1.MsgTransferFTFromResponse) | Deprecated: use OperatorSend TransferFTFrom defines a method to send fungible tokens from one account to another account by the operator. | | +| `TransferNFT` | [MsgTransferNFT](#lbm.collection.v1.MsgTransferNFT) | [MsgTransferNFTResponse](#lbm.collection.v1.MsgTransferNFTResponse) | Deprecated: use Send TransferNFT defines a method to send non-fungible tokens from one account to another account. | | +| `TransferNFTFrom` | [MsgTransferNFTFrom](#lbm.collection.v1.MsgTransferNFTFrom) | [MsgTransferNFTFromResponse](#lbm.collection.v1.MsgTransferNFTFromResponse) | Deprecated: use OperatorSend TransferNFTFrom defines a method to send non-fungible tokens from one account to another account by the operator. | | +| `AuthorizeOperator` | [MsgAuthorizeOperator](#lbm.collection.v1.MsgAuthorizeOperator) | [MsgAuthorizeOperatorResponse](#lbm.collection.v1.MsgAuthorizeOperatorResponse) | AuthorizeOperator allows one to send tokens on behalf of the approver. Fires: - EventAuthorizedOperator - approve_collection (deprecated, not typed) Throws: - ErrNotFound: - there is no contract of `contract_id`. - ErrInvalidRequest: - `holder` has already authorized `operator`. Since: 0.46.0 (finschia) | | +| `RevokeOperator` | [MsgRevokeOperator](#lbm.collection.v1.MsgRevokeOperator) | [MsgRevokeOperatorResponse](#lbm.collection.v1.MsgRevokeOperatorResponse) | RevokeOperator revokes the authorization of the operator to send the approver's token. Fires: - EventRevokedOperator - disapprove_collection (deprecated, not typed) Throws: - ErrNotFound: - there is no contract of `contract_id`. - there is no authorization by `holder` to `operator`. Since: 0.46.0 (finschia) | | +| `Approve` | [MsgApprove](#lbm.collection.v1.MsgApprove) | [MsgApproveResponse](#lbm.collection.v1.MsgApproveResponse) | Deprecated: use AuthorizeOperator Approve allows one to send tokens on behalf of the approver. | | +| `Disapprove` | [MsgDisapprove](#lbm.collection.v1.MsgDisapprove) | [MsgDisapproveResponse](#lbm.collection.v1.MsgDisapproveResponse) | Deprecated: use RevokeOperator Disapprove revokes the authorization of the operator to send the approver's token. | | +| `CreateContract` | [MsgCreateContract](#lbm.collection.v1.MsgCreateContract) | [MsgCreateContractResponse](#lbm.collection.v1.MsgCreateContractResponse) | CreateContract defines a method to create a contract for collection. it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. Fires: - EventCreatedContract - create_collection (deprecated, not typed) | | +| `CreateFTClass` | [MsgCreateFTClass](#lbm.collection.v1.MsgCreateFTClass) | [MsgCreateFTClassResponse](#lbm.collection.v1.MsgCreateFTClassResponse) | CreateFTClass defines a method to create a class of fungible token. one may set the supply on the creation, then no one can change the supply, which means no more mints and burns. Fires: - EventCreatedFTClass - EventMintedFT - issue_ft (deprecated, not typed) Since: 0.46.0 (finschia) | | +| `CreateNFTClass` | [MsgCreateNFTClass](#lbm.collection.v1.MsgCreateNFTClass) | [MsgCreateNFTClassResponse](#lbm.collection.v1.MsgCreateNFTClassResponse) | CreateNFTClass defines a method to create a class of non-fungible token. Fires: - EventCreatedNFTClass - issue_nft (deprecated, not typed) Since: 0.46.0 (finschia) | | +| `IssueFT` | [MsgIssueFT](#lbm.collection.v1.MsgIssueFT) | [MsgIssueFTResponse](#lbm.collection.v1.MsgIssueFTResponse) | Deprecated: use CreateFTClass IssueFT defines a method to create a class of fungible token. Fires: - EventIssueFT - EventMintedFT - issue_ft (deprecated, not typed) Note: it does not grant any permissions to its issuer. | | +| `IssueNFT` | [MsgIssueNFT](#lbm.collection.v1.MsgIssueNFT) | [MsgIssueNFTResponse](#lbm.collection.v1.MsgIssueNFTResponse) | Deprecated: use CreateNFTClass IssueNFT defines a method to create a class of non-fungible token. Fires: - EventIssueNFT - issue_nft (deprecated, not typed) Note: it DOES grant `mint` and `burn` permissions to its issuer. | | +| `MintFT` | [MsgMintFT](#lbm.collection.v1.MsgMintFT) | [MsgMintFTResponse](#lbm.collection.v1.MsgMintFTResponse) | MintFT defines a method to mint fungible tokens. Fires: - EventMintedFT - mint_ft (deprecated, not typed) Throws: - ErrUnauthorized - `from` does not have `mint` permission. | | +| `MintNFT` | [MsgMintNFT](#lbm.collection.v1.MsgMintNFT) | [MsgMintNFTResponse](#lbm.collection.v1.MsgMintNFTResponse) | MintNFT defines a method to mint non-fungible tokens. Fires: - EventMintedNFT - mint_nft (deprecated, not typed) Throws: - ErrUnauthorized - `from` does not have `mint` permission. | | +| `Burn` | [MsgBurn](#lbm.collection.v1.MsgBurn) | [MsgBurnResponse](#lbm.collection.v1.MsgBurnResponse) | Burn defines a method to burn tokens. Fires: - EventBurned - burn_ft (deprecated, not typed) - burn_nft (deprecated, not typed) - operation_burn_nft (deprecated, not typed) Throws: - ErrUnauthorized - `from` does not have `burn` permission. - ErrInsufficientFunds: - the balance of `from` does not have enough tokens to burn. Info: one can burn both fungible tokens and non-fungible tokens. Since: 0.46.0 (finschia) | | +| `OperatorBurn` | [MsgOperatorBurn](#lbm.collection.v1.MsgOperatorBurn) | [MsgOperatorBurnResponse](#lbm.collection.v1.MsgOperatorBurnResponse) | OperatorBurn defines a method to burn tokens of the holder by the operator. Fires: - EventBurned - burn_ft_from (deprecated, not typed) - burn_nft_from (deprecated, not typed) - operation_burn_nft (deprecated, not typed) Throws: - ErrUnauthorized - `operator` does not have `burn` permission. - the holder has not authorized `operator`. - ErrInsufficientFunds: - the balance of `from` does not have enough tokens to burn. Info: one can burn both fungible tokens and non-fungible tokens. Since: 0.46.0 (finschia) | | +| `BurnFT` | [MsgBurnFT](#lbm.collection.v1.MsgBurnFT) | [MsgBurnFTResponse](#lbm.collection.v1.MsgBurnFTResponse) | Deprecated: use Burn BurnFT defines a method to burn fungible tokens. | | +| `BurnFTFrom` | [MsgBurnFTFrom](#lbm.collection.v1.MsgBurnFTFrom) | [MsgBurnFTFromResponse](#lbm.collection.v1.MsgBurnFTFromResponse) | Deprecated: use OperatorBurn BurnFTFrom defines a method to burn fungible tokens of the holder by the proxy. | | +| `BurnNFT` | [MsgBurnNFT](#lbm.collection.v1.MsgBurnNFT) | [MsgBurnNFTResponse](#lbm.collection.v1.MsgBurnNFTResponse) | Deprecated: use Burn BurnNFT defines a method to burn non-fungible tokens. | | +| `BurnNFTFrom` | [MsgBurnNFTFrom](#lbm.collection.v1.MsgBurnNFTFrom) | [MsgBurnNFTFromResponse](#lbm.collection.v1.MsgBurnNFTFromResponse) | Deprecated: use OperatorBurn BurnNFTFrom defines a method to burn non-fungible tokens of the holder by the proxy. | | +| `ModifyContract` | [MsgModifyContract](#lbm.collection.v1.MsgModifyContract) | [MsgModifyContractResponse](#lbm.collection.v1.MsgModifyContractResponse) | ModifyContract defines a method to modify the attributes of a contract. Fires: - EventModifiedContract - modify_collection (deprecated, not typed) Throws: - ErrUnauthorized - the operator does not have `modify` permission. - ErrNotFound - there is no token class of `contract_id`. Since: 0.46.0 (finschia) | | +| `ModifyTokenClass` | [MsgModifyTokenClass](#lbm.collection.v1.MsgModifyTokenClass) | [MsgModifyTokenClassResponse](#lbm.collection.v1.MsgModifyTokenClassResponse) | ModifyTokenClass defines a method to modify the attributes of a token class. Fires: - EventModifiedTokenClass - modify_token_type (deprecated, not typed) - modify_token (deprecated, not typed) Throws: - ErrUnauthorized - the operator does not have `modify` permission. - ErrNotFound - there is no token class of `contract_id`. Since: 0.46.0 (finschia) | | +| `ModifyNFT` | [MsgModifyNFT](#lbm.collection.v1.MsgModifyNFT) | [MsgModifyNFTResponse](#lbm.collection.v1.MsgModifyNFTResponse) | ModifyNFT defines a method to modify the attributes of a non-fungible token. Fires: - EventModifiedNFT - modify_token (deprecated, not typed) Throws: - ErrUnauthorized - the operator does not have `modify` permission. - ErrNotFound - there is no token class of `contract_id`. Since: 0.46.0 (finschia) | | +| `Modify` | [MsgModify](#lbm.collection.v1.MsgModify) | [MsgModifyResponse](#lbm.collection.v1.MsgModifyResponse) | Deprecated: use ModifyContract, ModifyTokenClass or ModifyNFT Modify defines a method to modify metadata. | | +| `Grant` | [MsgGrant](#lbm.collection.v1.MsgGrant) | [MsgGrantResponse](#lbm.collection.v1.MsgGrantResponse) | Grant allows one to mint or burn tokens or modify metadata. Fires: - EventGrant - grant_perm (deprecated, not typed) Throws: - ErrUnauthorized - `granter` does not have `permission`. - ErrInvalidRequest - `grantee` already has `permission`. Since: 0.46.0 (finschia) | | +| `Abandon` | [MsgAbandon](#lbm.collection.v1.MsgAbandon) | [MsgAbandonResponse](#lbm.collection.v1.MsgAbandonResponse) | Abandon abandons a permission. Fires: - EventAbandon - revoke_perm (deprecated, not typed) Throws: - ErrUnauthorized - `grantee` does not have `permission`. Since: 0.46.0 (finschia) | | +| `GrantPermission` | [MsgGrantPermission](#lbm.collection.v1.MsgGrantPermission) | [MsgGrantPermissionResponse](#lbm.collection.v1.MsgGrantPermissionResponse) | Deprecated: use Grant GrantPermission allows one to mint or burn tokens or modify metadata. | | +| `RevokePermission` | [MsgRevokePermission](#lbm.collection.v1.MsgRevokePermission) | [MsgRevokePermissionResponse](#lbm.collection.v1.MsgRevokePermissionResponse) | Deprecated: use Abandon RevokePermission abandons a permission. | | +| `Attach` | [MsgAttach](#lbm.collection.v1.MsgAttach) | [MsgAttachResponse](#lbm.collection.v1.MsgAttachResponse) | Attach defines a method to attach a token to another token. Fires: - EventAttach - attach (deprecated, not typed) - operation_root_changed (deprecated, not typed) Throws: - ErrInvalidRequest - `owner` does not owns `id`. - `owner` does not owns `to`. - `token_id` is not root. - `token_id` is an ancestor of `to_token_id`, which creates a cycle as a result. - depth of `to_token_id` exceeds an app-specific limit. | | +| `Detach` | [MsgDetach](#lbm.collection.v1.MsgDetach) | [MsgDetachResponse](#lbm.collection.v1.MsgDetachResponse) | Detach defines a method to detach a token from another token. Fires: - EventDetach - detach (deprecated, not typed) - operation_root_changed (deprecated, not typed) Throws: - ErrInvalidRequest - `owner` does not owns `token_id`. | | +| `OperatorAttach` | [MsgOperatorAttach](#lbm.collection.v1.MsgOperatorAttach) | [MsgOperatorAttachResponse](#lbm.collection.v1.MsgOperatorAttachResponse) | OperatorAttach defines a method to attach a token to another token by operator. Fires: - EventAttach - attach_from (deprecated, not typed) - operation_root_changed (deprecated, not typed) Throws: - ErrUnauthorized - the holder has not authorized `operator`. - ErrInvalidRequest - `owner` does not owns `subject`. - `owner` does not owns `target`. - `subject` is not root. - `subject` is an ancestor of `target`, which creates a cycle as a result. - depth of `to` exceeds an app-specific limit. Since: 0.46.0 (finschia) | | +| `OperatorDetach` | [MsgOperatorDetach](#lbm.collection.v1.MsgOperatorDetach) | [MsgOperatorDetachResponse](#lbm.collection.v1.MsgOperatorDetachResponse) | OperatorDetach defines a method to detach a token from another token by operator. Fires: - EventDetach - detach_from (deprecated, not typed) - operation_root_changed (deprecated, not typed) Throws: - ErrUnauthorized - the holder has not authorized `operator`. - ErrInvalidRequest - `owner` does not owns `subject`. Since: 0.46.0 (finschia) | | +| `AttachFrom` | [MsgAttachFrom](#lbm.collection.v1.MsgAttachFrom) | [MsgAttachFromResponse](#lbm.collection.v1.MsgAttachFromResponse) | Deprecated: use OperatorAttach AttachFrom defines a method to attach a token to another token by operator. | | +| `DetachFrom` | [MsgDetachFrom](#lbm.collection.v1.MsgDetachFrom) | [MsgDetachFromResponse](#lbm.collection.v1.MsgDetachFromResponse) | Deprecated: use OperatorDetach DetachFrom defines a method to detach a token from another token by operator. | | + + + + + diff --git a/proto/lbm/collection/v1/collection.proto b/proto/lbm/collection/v1/collection.proto new file mode 100644 index 0000000000..0e8ede1ea0 --- /dev/null +++ b/proto/lbm/collection/v1/collection.proto @@ -0,0 +1,213 @@ +syntax = "proto3"; +package lbm.collection.v1; + +option go_package = "github.com/line/lbm-sdk/x/collection"; +option (gogoproto.equal_all) = false; +option (gogoproto.goproto_getters_all) = false; + +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; + +// Params defines the parameters for the collection module. +message Params { + uint32 depth_limit = 1; + uint32 width_limit = 2; +} + +// Contract defines the information of the contract for the collection. +message Contract { + // contract_id defines the unique identifier of the contract. + string contract_id = 1; + // name defines the human-readable name of the contract. + string name = 2; + // meta is a brief description of the contract. + string meta = 3; + // base img uri is an uri for the contract image stored off chain. + string base_img_uri = 4; +} + +// FTClass defines the class of fungible token. +// +// Since: 0.46.0 (finschia) +message FTClass { + option (gogoproto.goproto_getters) = true; + option (cosmos_proto.implements_interface) = "TokenClass"; + + // id defines the unique identifier of the token class. + // Note: size of the class id is 8 in length. + // Note: token id of the fungible token would be `id` + `00000000`. + string id = 1; + // name defines the human-readable name of the token class. + string name = 2; + // meta is a brief description of the token class. + string meta = 3; + // decimals is the number of decimals which one must divide the amount by to get its user representation. + int32 decimals = 4; + // mintable represents whether the token class is allowed to mint or burn its tokens. + bool mintable = 5; +} + +// NFTClass defines the class of non-fungible token. +// +// Since: 0.46.0 (finschia) +message NFTClass { + option (gogoproto.goproto_getters) = true; + option (cosmos_proto.implements_interface) = "TokenClass"; + + // id defines the unique identifier of the token class. + // Note: size of the class id is 8 in length. + string id = 1; + // name defines the human-readable name of the token class. + string name = 2; + // meta is a brief description of the token class. + string meta = 3; +} + +// NFT defines the information of non-fungible token. +// +// Since: 0.46.0 (finschia) +message NFT { + // id defines the unique identifier of the token. + string id = 1; + // name defines the human-readable name of the token. + string name = 2; + // meta is a brief description of the token. + string meta = 3; +} + +// Deprecated: use NFT +// +// OwnerNFT defines the information of non-fungible token. +message OwnerNFT { + option (cosmos_proto.implements_interface) = "Token"; + + // contract id associated with the contract. + string contract_id = 1; + // id defines the unique identifier of the token. + string token_id = 2; + // name defines the human-readable name of the token. + string name = 3; + // meta is a brief description of the token. + string meta = 4; + + // owner of the token. + string owner = 5; +} + +// Deprecated: use FTClass +// +// FT defines the information of fungible token. +message FT { + option (cosmos_proto.implements_interface) = "Token"; + + // contract id associated with the contract. + string contract_id = 1; + // token id defines the unique identifier of the fungible token. + string token_id = 2; + // name defines the human-readable name of the fungible token. + string name = 3; + // meta is a brief description of the fungible token. + string meta = 4; + // decimals is the number of decimals which one must divide the amount by to get its user representation. + int32 decimals = 5; + // mintable represents whether the fungible token is allowed to be minted or burnt. + bool mintable = 6; +} + +// Deprecated: use TokenClass +// +// TokenType defines the information of token type. +message TokenType { + // contract id associated with the contract. + string contract_id = 1; + // token type defines the unique identifier of the token type. + string token_type = 2; + // name defines the human-readable name of the token type. + string name = 3; + // meta is a brief description of the token type. + string meta = 4; +} + +// Coin defines a token with a token id and an amount. +message Coin { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = true; + + // token id associated with the token. + string token_id = 1; + // amount of the token. + string amount = 2 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// Grant defines permission given to a grantee. +// +// Since: 0.46.0 (finschia) +message Grant { + // address of the grantee. + string grantee = 1; + // permission on the contract. + Permission permission = 2; +} + +// Permission enumerates the valid permissions on a contract. +enum Permission { + option (gogoproto.goproto_enum_prefix) = false; + + // unspecified defines the default permission which is invalid. + PERMISSION_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "PermissionUnspecified"]; + + // PERMISSION_ISSUE defines a permission to create a token class. + PERMISSION_ISSUE = 1 [(gogoproto.enumvalue_customname) = "PermissionIssue"]; + // PERMISSION_MODIFY defines a permission to modify a contract. + PERMISSION_MODIFY = 2 [(gogoproto.enumvalue_customname) = "PermissionModify"]; + // PERMISSION_MINT defines a permission to mint tokens of a contract. + PERMISSION_MINT = 3 [(gogoproto.enumvalue_customname) = "PermissionMint"]; + // PERMISSION_BURN defines a permission to burn tokens of a contract. + PERMISSION_BURN = 4 [(gogoproto.enumvalue_customname) = "PermissionBurn"]; +} + +// Deprecated: use Permission +// +// LegacyPermission enumerates the valid permissions on a contract. +enum LegacyPermission { + option (gogoproto.goproto_enum_stringer) = false; + option (gogoproto.goproto_enum_prefix) = false; + + // unspecified defines the default permission which is invalid. + LEGACY_PERMISSION_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "LegacyPermissionUnspecified"]; + + // issue defines a permission to create a token class. + LEGACY_PERMISSION_ISSUE = 1 [(gogoproto.enumvalue_customname) = "LegacyPermissionIssue"]; + // modify defines a permission to modify a contract. + LEGACY_PERMISSION_MODIFY = 2 [(gogoproto.enumvalue_customname) = "LegacyPermissionModify"]; + // mint defines a permission to mint tokens of a contract. + LEGACY_PERMISSION_MINT = 3 [(gogoproto.enumvalue_customname) = "LegacyPermissionMint"]; + // burn defines a permission to burn tokens of a contract. + LEGACY_PERMISSION_BURN = 4 [(gogoproto.enumvalue_customname) = "LegacyPermissionBurn"]; +} + +// Authorization defines an authorization given to the operator on tokens of the holder. +// +// Since: 0.46.0 (finschia) +message Authorization { + // address of the holder which authorizes the manipulation of its tokens. + string holder = 1; + // address of the operator which the authorization is granted to. + string operator = 2; +} + +// Attribute defines a key and value of the attribute. +// +// Since: 0.46.0 (finschia) +message Attribute { + string key = 1; + string value = 2; +} + +// Deprecated: use Attribute +// +// Change defines a field-value pair. +message Change { + string field = 1; + string value = 2; +} diff --git a/proto/lbm/collection/v1/event.proto b/proto/lbm/collection/v1/event.proto new file mode 100644 index 0000000000..bb26118fb9 --- /dev/null +++ b/proto/lbm/collection/v1/event.proto @@ -0,0 +1,301 @@ +syntax = "proto3"; +package lbm.collection.v1; + +import "gogoproto/gogo.proto"; + +import "lbm/collection/v1/collection.proto"; + +option go_package = "github.com/line/lbm-sdk/x/collection"; + +// Deprecated: use typed events. +// +// EventType enumerates the valid event types on x/collection. +enum EventType { + option (gogoproto.goproto_enum_stringer) = false; + option (gogoproto.goproto_enum_prefix) = false; + + EVENT_TYPE_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "EventTypeUnspecified"]; + EVENT_TYPE_CREATE_COLLECTION = 1 [(gogoproto.enumvalue_customname) = "EventTypeCreateCollection"]; + EVENT_TYPE_ISSUE_FT = 2 [(gogoproto.enumvalue_customname) = "EventTypeIssueFT"]; + EVENT_TYPE_ISSUE_NFT = 3 [(gogoproto.enumvalue_customname) = "EventTypeIssueNFT"]; + EVENT_TYPE_MINT_FT = 4 [(gogoproto.enumvalue_customname) = "EventTypeMintFT"]; + EVENT_TYPE_BURN_FT = 5 [(gogoproto.enumvalue_customname) = "EventTypeBurnFT"]; + EVENT_TYPE_MINT_NFT = 6 [(gogoproto.enumvalue_customname) = "EventTypeMintNFT"]; + EVENT_TYPE_BURN_NFT = 7 [(gogoproto.enumvalue_customname) = "EventTypeBurnNFT"]; + EVENT_TYPE_BURN_FT_FROM = 8 [(gogoproto.enumvalue_customname) = "EventTypeBurnFTFrom"]; + EVENT_TYPE_BURN_NFT_FROM = 9 [(gogoproto.enumvalue_customname) = "EventTypeBurnNFTFrom"]; + EVENT_TYPE_MODIFY_COLLECTION = 10 [(gogoproto.enumvalue_customname) = "EventTypeModifyCollection"]; + EVENT_TYPE_MODIFY_TOKEN_TYPE = 11 [(gogoproto.enumvalue_customname) = "EventTypeModifyTokenType"]; + EVENT_TYPE_MODIFY_TOKEN = 12 [(gogoproto.enumvalue_customname) = "EventTypeModifyToken"]; + EVENT_TYPE_TRANSFER = 13 [(gogoproto.enumvalue_customname) = "EventTypeTransfer"]; + EVENT_TYPE_TRANSFER_FT = 14 [(gogoproto.enumvalue_customname) = "EventTypeTransferFT"]; + EVENT_TYPE_TRANSFER_NFT = 15 [(gogoproto.enumvalue_customname) = "EventTypeTransferNFT"]; + EVENT_TYPE_TRANSFER_FT_FROM = 16 [(gogoproto.enumvalue_customname) = "EventTypeTransferFTFrom"]; + EVENT_TYPE_TRANSFER_NFT_FROM = 17 [(gogoproto.enumvalue_customname) = "EventTypeTransferNFTFrom"]; + EVENT_TYPE_GRANT_PERM = 18 [(gogoproto.enumvalue_customname) = "EventTypeGrantPermToken"]; + EVENT_TYPE_REVOKE_PERM = 19 [(gogoproto.enumvalue_customname) = "EventTypeRevokePermToken"]; + EVENT_TYPE_ATTACH = 20 [(gogoproto.enumvalue_customname) = "EventTypeAttachToken"]; + EVENT_TYPE_DETACH = 21 [(gogoproto.enumvalue_customname) = "EventTypeDetachToken"]; + EVENT_TYPE_ATTACH_FROM = 22 [(gogoproto.enumvalue_customname) = "EventTypeAttachFrom"]; + EVENT_TYPE_DETACH_FROM = 23 [(gogoproto.enumvalue_customname) = "EventTypeDetachFrom"]; + EVENT_TYPE_APPROVE_COLLECTION = 24 [(gogoproto.enumvalue_customname) = "EventTypeApproveCollection"]; + EVENT_TYPE_DISAPPROVE_COLLECTION = 25 [(gogoproto.enumvalue_customname) = "EventTypeDisapproveCollection"]; + EVENT_TYPE_OPERATION_TRANSFER_NFT = 26 [(gogoproto.enumvalue_customname) = "EventTypeOperationTransferNFT"]; + EVENT_TYPE_OPERATION_BURN_NFT = 27 [(gogoproto.enumvalue_customname) = "EventTypeOperationBurnNFT"]; + EVENT_TYPE_OPERATION_ROOT_CHANGED = 28 [(gogoproto.enumvalue_customname) = "EventTypeOperationRootChanged"]; +} + +// Deprecated: use typed events. +// +// AttributeKey enumerates the valid attribute keys on x/collection. +enum AttributeKey { + option (gogoproto.goproto_enum_stringer) = false; + option (gogoproto.goproto_enum_prefix) = false; + + ATTRIBUTE_KEY_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "AttributeKeyUnspecified"]; + ATTRIBUTE_KEY_NAME = 1 [(gogoproto.enumvalue_customname) = "AttributeKeyName"]; + ATTRIBUTE_KEY_META = 2 [(gogoproto.enumvalue_customname) = "AttributeKeyMeta"]; + ATTRIBUTE_KEY_CONTRACT_ID = 3 [(gogoproto.enumvalue_customname) = "AttributeKeyContractID"]; + ATTRIBUTE_KEY_TOKEN_ID = 4 [(gogoproto.enumvalue_customname) = "AttributeKeyTokenID"]; + ATTRIBUTE_KEY_OWNER = 5 [(gogoproto.enumvalue_customname) = "AttributeKeyOwner"]; + ATTRIBUTE_KEY_AMOUNT = 6 [(gogoproto.enumvalue_customname) = "AttributeKeyAmount"]; + ATTRIBUTE_KEY_DECIMALS = 7 [(gogoproto.enumvalue_customname) = "AttributeKeyDecimals"]; + ATTRIBUTE_KEY_BASE_IMG_URI = 8 [(gogoproto.enumvalue_customname) = "AttributeKeyBaseImgURI"]; + ATTRIBUTE_KEY_MINTABLE = 9 [(gogoproto.enumvalue_customname) = "AttributeKeyMintable"]; + ATTRIBUTE_KEY_TOKEN_TYPE = 10 [(gogoproto.enumvalue_customname) = "AttributeKeyTokenType"]; + ATTRIBUTE_KEY_FROM = 11 [(gogoproto.enumvalue_customname) = "AttributeKeyFrom"]; + ATTRIBUTE_KEY_TO = 12 [(gogoproto.enumvalue_customname) = "AttributeKeyTo"]; + ATTRIBUTE_KEY_PERM = 13 [(gogoproto.enumvalue_customname) = "AttributeKeyPerm"]; + ATTRIBUTE_KEY_TO_TOKEN_ID = 14 [(gogoproto.enumvalue_customname) = "AttributeKeyToTokenID"]; + ATTRIBUTE_KEY_FROM_TOKEN_ID = 15 [(gogoproto.enumvalue_customname) = "AttributeKeyFromTokenID"]; + ATTRIBUTE_KEY_APPROVER = 16 [(gogoproto.enumvalue_customname) = "AttributeKeyApprover"]; + ATTRIBUTE_KEY_PROXY = 17 [(gogoproto.enumvalue_customname) = "AttributeKeyProxy"]; + ATTRIBUTE_KEY_OLD_ROOT_TOKEN_ID = 18 [(gogoproto.enumvalue_customname) = "AttributeKeyOldRoot"]; + ATTRIBUTE_KEY_NEW_ROOT_TOKEN_ID = 19 [(gogoproto.enumvalue_customname) = "AttributeKeyNewRoot"]; +} + +// EventSent is emitted when tokens are transferred. +// +// Since: 0.46.0 (finschia) +message EventSent { + // contract id associated with the contract. + string contract_id = 1; + // address which triggered the send. + string operator = 2; + // holder whose tokens were sent. + string from = 3; + // recipient of the tokens. + string to = 4; + // amount of tokens sent. + repeated Coin amount = 5 [(gogoproto.nullable) = false]; +} + +// EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens. +// +// Since: 0.46.0 (finschia) +message EventAuthorizedOperator { + // contract id associated with the contract. + string contract_id = 1; + // address of a holder which authorized the `operator` address as an operator. + string holder = 2; + // address which became an operator of `holder`. + string operator = 3; +} + +// EventRevokedOperator is emitted when an authorization is revoked. +// +// Since: 0.46.0 (finschia) +message EventRevokedOperator { + // contract id associated with the contract. + string contract_id = 1; + // address of a holder which revoked the `operator` address as an operator. + string holder = 2; + // address which was revoked as an operator of `holder`. + string operator = 3; +} + +// EventCreatedContract is emitted when a new contract is created. +// +// Since: 0.46.0 (finschia) +message EventCreatedContract { + // contract id associated with the contract. + string contract_id = 1; + // name of the contract. + string name = 2; + // metadata of the contract. + string meta = 3; + // uri for the contract image stored off chain. + string base_img_uri = 4; +} + +// EventCreatedFTClass is emitted when a new fungible token class is created. +// +// Since: 0.46.0 (finschia) +message EventCreatedFTClass { + // contract id associated with the contract. + string contract_id = 1; + // class id associated with the token class. + string class_id = 2; + // name of the token class. + string name = 3; + // metadata of the token class. + string meta = 4; + // decimals of the token class. + int32 decimals = 5; + // mintable represents whether the token class is allowed to mint or burn its tokens. + bool mintable = 6; +} + +// EventCreatedNFTClass is emitted when a new non-fungible token class is created. +// +// Since: 0.46.0 (finschia) +message EventCreatedNFTClass { + // contract id associated with the contract. + string contract_id = 1; + // class id associated with the token class. + string class_id = 2; + // name of the token class. + string name = 3; + // metadata of the token class. + string meta = 4; +} + +// EventGrant is emitted when a granter grants its permission to a grantee. +// +// Info: `granter` would be empty if the permission is granted by an issuance. +// +// Since: 0.46.0 (finschia) +message EventGrant { + // contract id associated with the contract. + string contract_id = 1; + // address of the granter which grants the permission. + string granter = 2; + // address of the grantee. + string grantee = 3; + // permission on the contract. + Permission permission = 4; +} + +// EventAbandon is emitted when a grantee abandons its permission. +// +// Since: 0.46.0 (finschia) +message EventAbandon { + // contract id associated with the contract. + string contract_id = 1; + // address of the grantee which abandons its grant. + string grantee = 2; + // permission on the contract. + Permission permission = 3; +} + +// EventMintedFT is emitted when fungible tokens are minted. +// +// Since: 0.46.0 (finschia) +message EventMintedFT { + // contract id associated with the contract. + string contract_id = 1; + // address which triggered the mint. + string operator = 2; + // recipient of the tokens. + string to = 3; + // amount of tokens minted. + repeated Coin amount = 4 [(gogoproto.nullable) = false]; +} + +// EventMintedNFT is emitted when non-fungible tokens are minted. +// +// Since: 0.46.0 (finschia) +message EventMintedNFT { + // contract id associated with the contract. + string contract_id = 1; + // address which triggered the mint. + string operator = 2; + // recipient of the tokens. + string to = 3; + // tokens minted. + repeated NFT tokens = 4 [(gogoproto.nullable) = false]; +} + +// EventBurned is emitted when tokens are burnt. +// +// Since: 0.46.0 (finschia) +message EventBurned { + // contract id associated with the contract. + string contract_id = 1; + // address which triggered the burn. + string operator = 2; + // holder whose tokens were burned. + string from = 3; + // amount of tokens burned. + repeated Coin amount = 4 [(gogoproto.nullable) = false]; +} + +// EventModifiedContract is emitted when the information of a contract is modified. +// +// Since: 0.46.0 (finschia) +message EventModifiedContract { + // contract id associated with the contract. + string contract_id = 1; + // address which triggered the modify. + string operator = 2; + // changes of the attributes applied. + repeated Attribute changes = 3 [(gogoproto.nullable) = false]; +} + +// EventModifiedTokenClass is emitted when the information of a token class is modified. +// +// Since: 0.46.0 (finschia) +message EventModifiedTokenClass { + // contract id associated with the contract. + string contract_id = 1; + // address which triggered the modify. + string operator = 2; + // class id associated with the token class. + string class_id = 3; + // changes of the attributes applied. + repeated Attribute changes = 4 [(gogoproto.nullable) = false]; +} + +// EventModifiedNFT is emitted when the information of a non-fungible token is modified. +// +// Since: 0.46.0 (finschia) +message EventModifiedNFT { + // contract id associated with the contract. + string contract_id = 1; + // address which triggered the modify. + string operator = 2; + // token id associated with the non-fungible token. + string token_id = 3; + // changes of the attributes applied. + repeated Attribute changes = 4 [(gogoproto.nullable) = false]; +} + +// EventAttached is emitted when a token is attached to another. +// +// Since: 0.46.0 (finschia) +message EventAttached { + // contract id associated with the contract. + string contract_id = 1; + // address which triggered the attach. + string operator = 2; + // address which holds the tokens. + string holder = 3; + // subject of the attach. + string subject = 4; + // target of the attach. + string target = 5; +} + +// EventDetached is emitted when a token is detached from its parent. +// +// Since: 0.46.0 (finschia) +message EventDetached { + // contract id associated with the contract. + string contract_id = 1; + // address which triggered the detach. + string operator = 2; + // address which holds the token. + string holder = 3; + // token being detached. + string subject = 4; +} diff --git a/proto/lbm/collection/v1/genesis.proto b/proto/lbm/collection/v1/genesis.proto new file mode 100644 index 0000000000..256656209b --- /dev/null +++ b/proto/lbm/collection/v1/genesis.proto @@ -0,0 +1,155 @@ +syntax = "proto3"; +package lbm.collection.v1; + +import "google/protobuf/any.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; + +import "lbm/collection/v1/collection.proto"; + +option go_package = "github.com/line/lbm-sdk/x/collection"; + +// GenesisState defines the collection module's genesis state. +message GenesisState { + // params defines all the paramaters of the module. + Params params = 1 [(gogoproto.nullable) = false]; + + // contracts defines the metadata of the contracts. + repeated Contract contracts = 2 [(gogoproto.nullable) = false]; + + // next ids for token classes. + repeated NextClassIDs next_class_ids = 3 [(gogoproto.nullable) = false]; + + // classes defines the metadata of the tokens. + repeated ContractClasses classes = 4 [(gogoproto.nullable) = false]; + + // next ids for (non-fungible) tokens. + repeated ContractNextTokenIDs next_token_ids = 5 [(gogoproto.nullable) = false]; + + // balances is an array containing the balances of all the accounts. + repeated ContractBalances balances = 6 [(gogoproto.nullable) = false]; + + // nfts is an array containing the nfts. + repeated ContractNFTs nfts = 7 [(gogoproto.nullable) = false]; + + // parents represents the parents of (non-fungible) tokens. + repeated ContractTokenRelations parents = 8 [(gogoproto.nullable) = false]; + + // grants defines the grant information. + repeated ContractGrants grants = 9 [(gogoproto.nullable) = false]; + + // authorizations defines the approve information. + repeated ContractAuthorizations authorizations = 10 [(gogoproto.nullable) = false]; + + // supplies represents the total supplies of tokens. + repeated ContractStatistics supplies = 11 [(gogoproto.nullable) = false]; + + // burnts represents the total amount of burnt tokens. + repeated ContractStatistics burnts = 12 [(gogoproto.nullable) = false]; +} + +// ContractBalances defines balances belong to a contract. +// genesis state. +message ContractBalances { + // contract id associated with the contract. + string contract_id = 1; + // balances + repeated Balance balances = 2 [(gogoproto.nullable) = false]; +} + +// ContractStatistics defines statistics belong to a contract. +message ContractStatistics { + // contract id associated with the contract. + string contract_id = 1; + // statistics + repeated ClassStatistics statistics = 2 [(gogoproto.nullable) = false]; +} + +// ClassStatistics defines statistics belong to a token class. +message ClassStatistics { + // class id associated with the token class. + string class_id = 1; + // statistics + string amount = 2 [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int"]; +} + +// Balance defines a balance of an address. +message Balance { + option (gogoproto.equal) = true; + + string address = 1; + repeated Coin amount = 2 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "Coins"]; +} + +// ContractClasses defines token classes belong to a contract. +message ContractClasses { + // contract id associated with the contract. + string contract_id = 1; + // classes + repeated google.protobuf.Any classes = 2 + [(gogoproto.nullable) = false, (cosmos_proto.accepts_interface) = "TokenClass"]; +} + +// ContractNFTs defines token classes belong to a contract. +message ContractNFTs { + // contract id associated with the contract. + string contract_id = 1; + // nfts + repeated NFT nfts = 2 [(gogoproto.nullable) = false]; +} + +// ContractAuthorizations defines authorizations belong to a contract. +message ContractAuthorizations { + // contract id associated with the contract. + string contract_id = 1; + // authorizations + repeated Authorization authorizations = 2 [(gogoproto.nullable) = false]; +} + +// ContractGrant defines grants belong to a contract. +message ContractGrants { + // contract id associated with the contract. + string contract_id = 1; + // grants + repeated Grant grants = 2 [(gogoproto.nullable) = false]; +} + +// NextClassIDs defines the next class ids of the contract. +message NextClassIDs { + // contract id associated with the contract. + string contract_id = 1; + // id for the fungible tokens. + string fungible = 2 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Uint", (gogoproto.nullable) = false]; + // id for the non-fungible tokens. + string non_fungible = 3 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Uint", (gogoproto.nullable) = false]; +} + +// ContractNextTokenIDs defines the next token ids belong to a contract. +message ContractNextTokenIDs { + string contract_id = 1; + repeated NextTokenID token_ids = 2 [(gogoproto.nullable) = false]; +} + +// NextTokenID defines the next (non-fungible) token id of the token class. +message NextTokenID { + // class id associated with the token class. + string class_id = 1; + // id for the token. + string id = 2 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Uint", (gogoproto.nullable) = false]; +} + +// ContractTokenRelations defines token relations belong to a contract. +message ContractTokenRelations { + // contract id associated with the contract. + string contract_id = 1; + // relations + repeated TokenRelation relations = 2 [(gogoproto.nullable) = false]; +} + +// TokenRelation defines relations between two tokens. +message TokenRelation { + // self + string self = 1; + // other + string other = 2; +} \ No newline at end of file diff --git a/proto/lbm/collection/v1/query.proto b/proto/lbm/collection/v1/query.proto new file mode 100644 index 0000000000..40b5ee4e5d --- /dev/null +++ b/proto/lbm/collection/v1/query.proto @@ -0,0 +1,884 @@ +syntax = "proto3"; +package lbm.collection.v1; + +import "cosmos/base/query/v1beta1/pagination.proto"; +import "google/api/annotations.proto"; +import "lbm/collection/v1/collection.proto"; + +import "google/protobuf/any.proto"; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/line/lbm-sdk/x/collection"; + +// Query defines the gRPC querier service. +service Query { + // Balance queries the balance of a single token class for a single account. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `address` is of invalid format. + rpc Balance(QueryBalanceRequest) returns (QueryBalanceResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/balances/{address}/{token_id}"; + } + + // AllBalances queries the balance of all token classes for a single account. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `address` is of invalid format. + // Since: 0.46.0 (finschia) + rpc AllBalances(QueryAllBalancesRequest) returns (QueryAllBalancesResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/balances/{address}"; + } + + // Supply queries the number of tokens from a given contract id and class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Info: one can query for both fungible tokens and non-fungible token classes. + // Since: 0.46.0 (finschia) + rpc Supply(QuerySupplyRequest) returns (QuerySupplyResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_classes/{class_id}/supply"; + } + + // Minted queries the number of minted tokens from a given contract id and class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Info: one can query for both fungible tokens and non-fungible token classes. + // Since: 0.46.0 (finschia) + rpc Minted(QueryMintedRequest) returns (QueryMintedResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_classes/{class_id}/minted"; + } + + // Burnt queries the number of burnt tokens from a given contract id and class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Info: one can query for both fungible tokens and non-fungible token classes. + // Since: 0.46.0 (finschia) + rpc Burnt(QueryBurntRequest) returns (QueryBurntResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_classes/{class_id}/burnt"; + } + + // Deprecated: use Supply + // FTSupply queries the number of tokens from a given contract id and token id. + rpc FTSupply(QueryFTSupplyRequest) returns (QueryFTSupplyResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/supply"; + } + + // Deprecated: use Minted + // FTMinted queries the number of minted tokens from a given contract id and token id. + rpc FTMinted(QueryFTMintedRequest) returns (QueryFTMintedResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/minted"; + } + + // Deprecated: use Burnt + // FTBurnt queries the number of burnt tokens from a given contract id and token id. + rpc FTBurnt(QueryFTBurntRequest) returns (QueryFTBurntResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/burnt"; + } + + // Deprecated: use Supply + // NFTSupply queries the number of tokens from a given contract id and token type. + rpc NFTSupply(QueryNFTSupplyRequest) returns (QueryNFTSupplyResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_types/{token_type}/supply"; + } + + // Deprecated: use Minted + // NFTMinted queries the number of minted tokens from a given contract id and token type. + rpc NFTMinted(QueryNFTMintedRequest) returns (QueryNFTMintedResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_types/{token_type}/minted"; + } + + // Deprecated: use Burnt + // NFTBurnt queries the number of burnt tokens from a given contract id and token type. + rpc NFTBurnt(QueryNFTBurntRequest) returns (QueryNFTBurntResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_types/{token_type}/burnt"; + } + + // Contract queries a contract metadata based on its contract id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrNotFound + // - there is no contract of `contract_id`. + rpc Contract(QueryContractRequest) returns (QueryContractResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}"; + } + + // Contracts queries metadata of all contracts. + // Since: 0.46.0 (finschia) + rpc Contracts(QueryContractsRequest) returns (QueryContractsResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts"; + } + + // FTClass queries a metadata of a fungible token class from its class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Since: 0.46.0 (finschia) + rpc FTClass(QueryFTClassRequest) returns (QueryFTClassResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/ft_classes/{class_id}"; + } + + // NFTClass queries a metadata of a non-fungible token class from its class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Since: 0.46.0 (finschia) + rpc NFTClass(QueryNFTClassRequest) returns (QueryNFTClassResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nft_classes/{class_id}"; + } + + // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Since: 0.46.0 (finschia) + rpc TokenClassTypeName(QueryTokenClassTypeNameRequest) returns (QueryTokenClassTypeNameResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_classes/{class_id}/type_name"; + } + + // Deprecated: use NFTClass + // TokenType queries metadata of a token type. + rpc TokenType(QueryTokenTypeRequest) returns (QueryTokenTypeResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_types/{token_type}"; + } + + // TokenTypes queries metadata of all the token types. + // Note: deprecated + rpc TokenTypes(QueryTokenTypesRequest) returns (QueryTokenTypesResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_types"; + } + + // Deprecated: use FTClass or NFT + // Token queries a metadata of a token from its token id. + rpc Token(QueryTokenRequest) returns (QueryTokenResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/tokens/{token_id}"; + } + + // Tokens queries all token metadata. + // Note: deprecated + rpc Tokens(QueryTokensRequest) returns (QueryTokensResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/tokens"; + } + + // NFT queries a metadata of a non-fungible token. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + // Since: 0.46.0 (finschia) + rpc NFT(QueryNFTRequest) returns (QueryNFTResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}"; + } + + // Owner queries the owner of the token. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + // Since: 0.46.0 (finschia) + rpc Owner(QueryOwnerRequest) returns (QueryOwnerResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/owner"; + } + + // Root queries the root of a given nft. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + rpc Root(QueryRootRequest) returns (QueryRootResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/root"; + } + + // Parent queries the parent of a given nft. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + // - token is the root. + rpc Parent(QueryParentRequest) returns (QueryParentResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/parent"; + } + + // Children queries the children of a given nft. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + rpc Children(QueryChildrenRequest) returns (QueryChildrenResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/children"; + } + + // Grant queries a permission on a given grantee. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `permission` is not a valid permission. + // - ErrInvalidAddress + // - `grantee` is of invalid format. + // - ErrNotFound + // - there is no permission of `permission` on `grantee`. + // Since: 0.46.0 (finschia) + rpc Grant(QueryGrantRequest) returns (QueryGrantResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/grants/{grantee}/{permission}"; + } + + // GranteeGrants queries all permissions on a given grantee. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `grantee` is of invalid format. + // Since: 0.46.0 (finschia) + rpc GranteeGrants(QueryGranteeGrantsRequest) returns (QueryGranteeGrantsResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/grants/{grantee}"; + } + + // Authorization queries an authorization on a given operator approver pair. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `operator` is of invalid format. + // - `holder` is of invalid format. + // - ErrNotFound + // - there is no authorization given by `holder` to `operator`. + // Since: 0.46.0 (finschia) + rpc Authorization(QueryAuthorizationRequest) returns (QueryAuthorizationResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/authorizations/{operator}/{holder}"; + } + + // OperatorAuthorizations queries authorizations on a given operator. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `operator` is of invalid format. + // Since: 0.46.0 (finschia) + rpc OperatorAuthorizations(QueryOperatorAuthorizationsRequest) returns (QueryOperatorAuthorizationsResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/authorizations/{operator}"; + } + + // Deprecated: use Authorization + // Approved queries whether the operator is approved by the approver. + rpc Approved(QueryApprovedRequest) returns (QueryApprovedResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/accounts/{address}/proxies/{approver}"; + } + + // Deprecated: use OperatorAuthorizations + // Approvers queries approvers of a given operator. + rpc Approvers(QueryApproversRequest) returns (QueryApproversResponse) { + option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/accounts/{address}/approvers"; + } +} + +// QueryBalanceRequest is the request type for the Query/Balance RPC method. +message QueryBalanceRequest { + // contract id associated with the contract. + string contract_id = 1; + // address is the address to query the balance for. + string address = 2; + // token id associated with the token. + string token_id = 3; +} + +// QueryBalanceResponse is the response type for the Query/Balance RPC method. +message QueryBalanceResponse { + // balance is the balance of the token. + Coin balance = 1 [(gogoproto.nullable) = false]; +} + +// QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method. +// +// Since: 0.46.0 (finschia) +message QueryAllBalancesRequest { + // contract id associated with the contract. + string contract_id = 1; + // address is the address to query the balances for. + string address = 2; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method. +// +// Since: 0.46.0 (finschia) +message QueryAllBalancesResponse { + // balances is the balalces of all the tokens. + repeated Coin balances = 1 [(gogoproto.nullable) = false]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QuerySupplyRequest is the request type for the Query/Supply RPC method. +// +// Since: 0.46.0 (finschia) +message QuerySupplyRequest { + // contract id associated with the contract. + string contract_id = 1; + // class id associated with the token class. + string class_id = 2; +} + +// QuerySupplyResponse is the response type for the Query/Supply RPC method. +// +// Since: 0.46.0 (finschia) +message QuerySupplyResponse { + // supply is the supply of the tokens. + string supply = 1 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// QueryMintedRequest is the request type for the Query/Minted RPC method. +// +// Since: 0.46.0 (finschia) +message QueryMintedRequest { + // contract id associated with the contract. + string contract_id = 1; + // class id associated with the token class. + string class_id = 2; +} + +// QueryMintedResponse is the response type for the Query/Minted RPC method. +// +// Since: 0.46.0 (finschia) +message QueryMintedResponse { + // minted is the amount of the minted tokens. + string minted = 1 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// QueryBurntRequest is the request type for the Query/Burnt RPC method. +// +// Since: 0.46.0 (finschia) +message QueryBurntRequest { + // contract id associated with the contract. + string contract_id = 1; + // class id associated with the token class. + string class_id = 2; +} + +// QueryBurntResponse is the response type for the Query/Burnt RPC method. +// +// Since: 0.46.0 (finschia) +message QueryBurntResponse { + // burnt is the amount of the burnt tokens. + string burnt = 1 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// Deprecated: use QuerySupplyRequest +// +// QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method. +message QueryFTSupplyRequest { + // contract id associated with the contract. + string contract_id = 1; + // token id associated with the fungible token. + string token_id = 2; +} + +// Deprecated: do not use +// +// QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method. +message QueryFTSupplyResponse { + // supply is the supply of the tokens. + string supply = 1 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// Deprecated: use QueryMintedRequest +// +// QueryFTMintedRequest is the request type for the Query/FTMinted RPC method. +message QueryFTMintedRequest { + // contract id associated with the contract. + string contract_id = 1; + // token id associated with the fungible token. + string token_id = 2; +} + +// Deprecated: do not use +// +// QueryFTMintedResponse is the response type for the Query/FTMinted RPC method. +message QueryFTMintedResponse { + // minted is the amount of the minted tokens. + string minted = 1 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// Deprecated: use QueryBurntRequest +// +// QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method. +message QueryFTBurntRequest { + // contract id associated with the contract. + string contract_id = 1; + // token id associated with the fungible token. + string token_id = 2; +} + +// Deprecated: do not use +// +// QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. +message QueryFTBurntResponse { + // burnt is the amount of the burnt tokens. + string burnt = 1 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// Deprecated: use QuerySupplyRequest +// +// QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. +message QueryNFTSupplyRequest { + // contract id associated with the contract. + string contract_id = 1; + // token type associated with the token type. + string token_type = 2; +} + +// Deprecated: do not use +// +// QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. +message QueryNFTSupplyResponse { + // supply is the supply of the non-fungible token. + string supply = 1 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// Deprecated: use QueryMintedRequest +// +// QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. +message QueryNFTMintedRequest { + // contract id associated with the contract. + string contract_id = 1; + // token type associated with the token type. + string token_type = 2; +} + +// Deprecated: do not use +// +// QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. +message QueryNFTMintedResponse { + // minted is the amount of minted tokens. + string minted = 1 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// Deprecated: use QueryBurntRequest +// +// QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. +message QueryNFTBurntRequest { + // contract id associated with the contract. + string contract_id = 1; + // token type associated with the token type. + string token_type = 2; +} + +// Deprecated: do not use +// +// QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. +message QueryNFTBurntResponse { + // burnt is the amount of the burnt tokens. + string burnt = 1 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// QueryContractRequest is the request type for the Query/Contract RPC method. +message QueryContractRequest { + // contract id associated with the contract. + string contract_id = 1; +} + +// QueryContractResponse is the response type for the Query/Contract RPC method. +message QueryContractResponse { + // contract is the information of the contract. + Contract contract = 1 [(gogoproto.nullable) = false]; +} + +// QueryContractsRequest is the request type for the Query/Contracts RPC method. +// Since: 0.46.0 (finschia) +message QueryContractsRequest { + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +// QueryContractsResponse is the response type for the Query/Contracts RPC method. +// Since: 0.46.0 (finschia) +message QueryContractsResponse { + // contracts are the informations of all the contracts. + repeated Contract contracts = 1 [(gogoproto.nullable) = false]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// Deprecated: use QueryTokenClassRequest +// +// QueryTokenTypeRequest is the request type for the Query/TokenType RPC method. +message QueryTokenTypeRequest { + // contract id associated with the contract. + string contract_id = 1; + // token type associated with the token type. + string token_type = 2; +} + +// Deprecated: do not use +// +// QueryTokenTypeResponse is the response type for the Query/TokenType RPC method. +message QueryTokenTypeResponse { + // token type is the information of the token type. + TokenType token_type = 1 [(gogoproto.nullable) = false]; +} + +// Deprecated: do not use +// +// QueryTokenTypesRequest is the request type for the Query/TokenTypes RPC method. +message QueryTokenTypesRequest { + // contract id associated with the contract. + string contract_id = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// Deprecated: do not use +// +// QueryTokenTypesResponse is the response type for the Query/TokenTypes RPC method. +message QueryTokenTypesResponse { + // token types is the informations of all the token types. + repeated TokenType token_types = 1 [(gogoproto.nullable) = false]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// Deprecated: use QueryFTClassRequest or QueryNFTRequest +// +// QueryTokenRequest is the request type for the Query/Token RPC method. +message QueryTokenRequest { + // contract id associated with the contract. + string contract_id = 1; + // token id associated with the fungible token. + string token_id = 2; +} + +// Deprecated: do not use +// +// QueryTokenResponse is the response type for the Query/Token RPC method. +message QueryTokenResponse { + // information of the token. + google.protobuf.Any token = 1 [(gogoproto.nullable) = false]; +} + +// Deprecated: do not use +// +// QueryTokensRequest is the request type for the Query/Tokens RPC method. +message QueryTokensRequest { + // contract id associated with the contract. + string contract_id = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// Deprecated: do not use +// +// QueryTokensResponse is the response type for the Query/Tokens RPC method. +message QueryTokensResponse { + // informations of all the tokens. + repeated google.protobuf.Any tokens = 1 [(gogoproto.nullable) = false]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryFTClassRequest is the request type for the Query/FTClass RPC method. +// +// Since: 0.46.0 (finschia) +message QueryFTClassRequest { + // contract id associated with the contract. + string contract_id = 1; + // class id associated with the token class. + string class_id = 2; +} + +// QueryFTClassResponse is the response type for the Query/FTClass RPC method. +// +// Since: 0.46.0 (finschia) +message QueryFTClassResponse { + // class is the information of the token class. + FTClass class = 1 [(gogoproto.nullable) = false]; +} + +// QueryNFTClassRequest is the request type for the Query/NFTClass RPC method. +// +// Since: 0.46.0 (finschia) +message QueryNFTClassRequest { + // contract id associated with the contract. + string contract_id = 1; + // class id associated with the token class. + string class_id = 2; +} + +// QueryNFTClassResponse is the response type for the Query/NFTClass RPC method. +// +// Since: 0.46.0 (finschia) +message QueryNFTClassResponse { + // class is the information of the token class. + NFTClass class = 1 [(gogoproto.nullable) = false]; +} + +// QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +message QueryTokenClassTypeNameRequest { + // contract id associated with the contract. + string contract_id = 1; + // class id associated with the token class. + string class_id = 2; +} + +// QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +message QueryTokenClassTypeNameResponse { + // type name of the token class. + string name = 1; +} + +// QueryNFTRequest is the request type for the Query/NFT RPC method. +// +// Since: 0.46.0 (finschia) +message QueryNFTRequest { + // contract id associated with the contract. + string contract_id = 1; + // token id associated with the non-fungible token. + string token_id = 2; +} + +// QueryNFTResponse is the response type for the Query/NFT RPC method. +// +// Since: 0.46.0 (finschia) +message QueryNFTResponse { + // token is the information of the non-fungible token. + NFT token = 1 [(gogoproto.nullable) = false]; +} + +// QueryOwnerRequest is the request type for the Query/Owner RPC method. +// +// Since: 0.46.0 (finschia) +message QueryOwnerRequest { + // contract id associated with the contract. + string contract_id = 1; + // token id associated with the non-fungible token. + string token_id = 2; +} + +// QueryOwnerResponse is the response type for the Query/Owner RPC method. +// +// Since: 0.46.0 (finschia) +message QueryOwnerResponse { + // owner of the token. + string owner = 1; +} + +// QueryRootRequest is the request type for the Query/Root RPC method. +message QueryRootRequest { + // contract id associated with the contract. + string contract_id = 1; + // token id associated with the non-fungible token. + string token_id = 2; +} + +// QueryRootResponse is the response type for the Query/Root RPC method. +message QueryRootResponse { + // root is the information of the root token. + // it would return itself if it's the root token. + NFT root = 1 [(gogoproto.nullable) = false]; +} + +// QueryParentRequest is the request type for the Query/Parent RPC method. +message QueryParentRequest { + // contract id associated with the contract. + string contract_id = 1; + // token id associated wit the non-fungible token. + string token_id = 2; +} + +// QueryParentResponse is the response type for the Query/Parent RPC method. +message QueryParentResponse { + // parent is the information of the parent token. + // if there is no parent for the token, it would return nil. + NFT parent = 1 [(gogoproto.nullable) = false]; +} + +// QueryChildrenRequest is the request type for the Query/Children RPC method. +message QueryChildrenRequest { + // contract id associated with the contract. + string contract_id = 1; + // token id associated with the non-fungible token. + string token_id = 2; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +// QueryChildrenResponse is the response type for the Query/Children RPC method. +message QueryChildrenResponse { + // children is the information of the child tokens. + repeated NFT children = 1 [(gogoproto.nullable) = false]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryGrantRequest is the request type for the Query/Grant RPC method. +// +// Since: 0.46.0 (finschia) +message QueryGrantRequest { + // contract id associated with the contract. + string contract_id = 1; + // the address of the grantee. + string grantee = 2; + // permission on the contract. + Permission permission = 3; +} + +// QueryGrantResponse is the response type for the Query/Grant RPC method. +// +// Since: 0.46.0 (finschia) +message QueryGrantResponse { + // if no grant found for the request, it would be nil and return an error. + Grant grant = 1 [(gogoproto.nullable) = false]; +} + +// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. +// +// Since: 0.46.0 (finschia) +message QueryGranteeGrantsRequest { + // contract id associated with the contract. + string contract_id = 1; + // the address of the grantee. + string grantee = 2; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. +// +// Since: 0.46.0 (finschia) +message QueryGranteeGrantsResponse { + repeated Grant grants = 1 [(gogoproto.nullable) = false]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryAuthorizationRequest is the request type for the Query/Authorization RPC method. +// +// Since: 0.46.0 (finschia) +message QueryAuthorizationRequest { + // contract id associated with the contract. + string contract_id = 1; + // the address of the operator. + string operator = 2; + // the address of the token holder. + string holder = 3; +} + +// QueryAuthorizationResponse is the response type for the Query/Authorization RPC method. +// +// Since: 0.46.0 (finschia) +message QueryAuthorizationResponse { + // if no authorization found for the request, it would be nil. + Authorization authorization = 1 [(gogoproto.nullable) = false]; +} + +// QueryOperatorAuthorizationsRequest is the request type for the Query/OperatorAuthorizations RPC method. +// +// Since: 0.46.0 (finschia) +message QueryOperatorAuthorizationsRequest { + // contract id associated with the contract. + string contract_id = 1; + // address of the operator. + string operator = 2; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +// QueryOperatorAuthorizationsResponse is the response type for the Query/OperatorAuthorizations RPC method. +// +// Since: 0.46.0 (finschia) +message QueryOperatorAuthorizationsResponse { + repeated Authorization authorizations = 1 [(gogoproto.nullable) = false]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// Deprecated: use QueryAuthorizationRequest +// +// QueryApprovedRequest is the request type for the Query/Approved RPC method. +message QueryApprovedRequest { + // contract id associated with the contract. + string contract_id = 1; + // the address of the operator. + string address = 2; + // the address of the token holder. + string approver = 3; +} + +// Deprecated: do not use +// +// QueryApprovedResponse is the response type for the Query/Approved RPC method. +message QueryApprovedResponse { + bool approved = 1; +} + +// Deprecated: use QueryOperatorAuthorizations +// +// QueryApproversRequest is the request type for the Query/Approvers RPC method. +message QueryApproversRequest { + // contract id associated with the contract. + string contract_id = 1; + // address of the operator. + string address = 2; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +// Deprecated: do not use +// +// QueryApproversResponse is the response type for the Query/Approvers RPC method. +message QueryApproversResponse { + repeated string approvers = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} diff --git a/proto/lbm/collection/v1/tx.proto b/proto/lbm/collection/v1/tx.proto new file mode 100644 index 0000000000..e920ee3ec0 --- /dev/null +++ b/proto/lbm/collection/v1/tx.proto @@ -0,0 +1,1307 @@ +syntax = "proto3"; +package lbm.collection.v1; + +import "gogoproto/gogo.proto"; + +import "lbm/collection/v1/collection.proto"; + +option go_package = "github.com/line/lbm-sdk/x/collection"; + +option (gogoproto.equal_all) = false; + +// Msg defines the collection Msg service. +service Msg { + // Send defines a method to send tokens from one account to another account. + // Fires: + // - EventSent + // - transfer_ft (deprecated, not typed) + // - transfer_nft (deprecated, not typed) + // - operation_transfer_nft (deprecated, not typed) + // Throws: + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to spend. + // Info: one can send both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + rpc Send(MsgSend) returns (MsgSendResponse); + + // OperatorSend defines a method to send tokens from one account to another account by the operator. + // Fires: + // - EventSent + // - transfer_ft_from (deprecated, not typed) + // - transfer_nft_from (deprecated, not typed) + // - operation_transfer_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized: + // - the holder has not authorized the operator. + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to spend. + // Info: one can send both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + rpc OperatorSend(MsgOperatorSend) returns (MsgOperatorSendResponse); + + // Deprecated: use Send + // TransferFT defines a method to send fungible tokens from one account to another account. + rpc TransferFT(MsgTransferFT) returns (MsgTransferFTResponse); + + // Deprecated: use OperatorSend + // TransferFTFrom defines a method to send fungible tokens from one account to another account by the operator. + rpc TransferFTFrom(MsgTransferFTFrom) returns (MsgTransferFTFromResponse); + + // Deprecated: use Send + // TransferNFT defines a method to send non-fungible tokens from one account to another account. + rpc TransferNFT(MsgTransferNFT) returns (MsgTransferNFTResponse); + + // Deprecated: use OperatorSend + // TransferNFTFrom defines a method to send non-fungible tokens from one account to another account by the operator. + rpc TransferNFTFrom(MsgTransferNFTFrom) returns (MsgTransferNFTFromResponse); + + // AuthorizeOperator allows one to send tokens on behalf of the approver. + // Fires: + // - EventAuthorizedOperator + // - approve_collection (deprecated, not typed) + // Throws: + // - ErrNotFound: + // - there is no contract of `contract_id`. + // - ErrInvalidRequest: + // - `holder` has already authorized `operator`. + // Since: 0.46.0 (finschia) + rpc AuthorizeOperator(MsgAuthorizeOperator) returns (MsgAuthorizeOperatorResponse); + + // RevokeOperator revokes the authorization of the operator to send the approver's token. + // Fires: + // - EventRevokedOperator + // - disapprove_collection (deprecated, not typed) + // Throws: + // - ErrNotFound: + // - there is no contract of `contract_id`. + // - there is no authorization by `holder` to `operator`. + // Since: 0.46.0 (finschia) + rpc RevokeOperator(MsgRevokeOperator) returns (MsgRevokeOperatorResponse); + + // Deprecated: use AuthorizeOperator + // Approve allows one to send tokens on behalf of the approver. + rpc Approve(MsgApprove) returns (MsgApproveResponse); + + // Deprecated: use RevokeOperator + // Disapprove revokes the authorization of the operator to send the approver's token. + rpc Disapprove(MsgDisapprove) returns (MsgDisapproveResponse); + + // CreateContract defines a method to create a contract for collection. + // it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. + // Fires: + // - EventCreatedContract + // - create_collection (deprecated, not typed) + rpc CreateContract(MsgCreateContract) returns (MsgCreateContractResponse); + + // CreateFTClass defines a method to create a class of fungible token. + // one may set the supply on the creation, then no one can change the supply, which means no more mints and burns. + // Fires: + // - EventCreatedFTClass + // - EventMintedFT + // - issue_ft (deprecated, not typed) + // Since: 0.46.0 (finschia) + rpc CreateFTClass(MsgCreateFTClass) returns (MsgCreateFTClassResponse); + + // CreateNFTClass defines a method to create a class of non-fungible token. + // Fires: + // - EventCreatedNFTClass + // - issue_nft (deprecated, not typed) + // Since: 0.46.0 (finschia) + rpc CreateNFTClass(MsgCreateNFTClass) returns (MsgCreateNFTClassResponse); + + // Deprecated: use CreateFTClass + // IssueFT defines a method to create a class of fungible token. + // Fires: + // - EventIssueFT + // - EventMintedFT + // - issue_ft (deprecated, not typed) + // Note: it does not grant any permissions to its issuer. + rpc IssueFT(MsgIssueFT) returns (MsgIssueFTResponse); + + // Deprecated: use CreateNFTClass + // IssueNFT defines a method to create a class of non-fungible token. + // Fires: + // - EventIssueNFT + // - issue_nft (deprecated, not typed) + // Note: it DOES grant `mint` and `burn` permissions to its issuer. + rpc IssueNFT(MsgIssueNFT) returns (MsgIssueNFTResponse); + + // MintFT defines a method to mint fungible tokens. + // Fires: + // - EventMintedFT + // - mint_ft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `from` does not have `mint` permission. + rpc MintFT(MsgMintFT) returns (MsgMintFTResponse); + + // MintNFT defines a method to mint non-fungible tokens. + // Fires: + // - EventMintedNFT + // - mint_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `from` does not have `mint` permission. + rpc MintNFT(MsgMintNFT) returns (MsgMintNFTResponse); + + // Burn defines a method to burn tokens. + // Fires: + // - EventBurned + // - burn_ft (deprecated, not typed) + // - burn_nft (deprecated, not typed) + // - operation_burn_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `from` does not have `burn` permission. + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to burn. + // Info: one can burn both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + rpc Burn(MsgBurn) returns (MsgBurnResponse); + + // OperatorBurn defines a method to burn tokens of the holder by the operator. + // Fires: + // - EventBurned + // - burn_ft_from (deprecated, not typed) + // - burn_nft_from (deprecated, not typed) + // - operation_burn_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `operator` does not have `burn` permission. + // - the holder has not authorized `operator`. + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to burn. + // Info: one can burn both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + rpc OperatorBurn(MsgOperatorBurn) returns (MsgOperatorBurnResponse); + + // Deprecated: use Burn + // BurnFT defines a method to burn fungible tokens. + rpc BurnFT(MsgBurnFT) returns (MsgBurnFTResponse); + + // Deprecated: use OperatorBurn + // BurnFTFrom defines a method to burn fungible tokens of the holder by the proxy. + rpc BurnFTFrom(MsgBurnFTFrom) returns (MsgBurnFTFromResponse); + + // Deprecated: use Burn + // BurnNFT defines a method to burn non-fungible tokens. + rpc BurnNFT(MsgBurnNFT) returns (MsgBurnNFTResponse); + + // Deprecated: use OperatorBurn + // BurnNFTFrom defines a method to burn non-fungible tokens of the holder by the proxy. + rpc BurnNFTFrom(MsgBurnNFTFrom) returns (MsgBurnNFTFromResponse); + + // ModifyContract defines a method to modify the attributes of a contract. + // Fires: + // - EventModifiedContract + // - modify_collection (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the operator does not have `modify` permission. + // - ErrNotFound + // - there is no token class of `contract_id`. + // Since: 0.46.0 (finschia) + rpc ModifyContract(MsgModifyContract) returns (MsgModifyContractResponse); + + // ModifyTokenClass defines a method to modify the attributes of a token class. + // Fires: + // - EventModifiedTokenClass + // - modify_token_type (deprecated, not typed) + // - modify_token (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the operator does not have `modify` permission. + // - ErrNotFound + // - there is no token class of `contract_id`. + // Since: 0.46.0 (finschia) + rpc ModifyTokenClass(MsgModifyTokenClass) returns (MsgModifyTokenClassResponse); + + // ModifyNFT defines a method to modify the attributes of a non-fungible token. + // Fires: + // - EventModifiedNFT + // - modify_token (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the operator does not have `modify` permission. + // - ErrNotFound + // - there is no token class of `contract_id`. + // Since: 0.46.0 (finschia) + rpc ModifyNFT(MsgModifyNFT) returns (MsgModifyNFTResponse); + + // Deprecated: use ModifyContract, ModifyTokenClass or ModifyNFT + // Modify defines a method to modify metadata. + rpc Modify(MsgModify) returns (MsgModifyResponse); + + // Grant allows one to mint or burn tokens or modify metadata. + // Fires: + // - EventGrant + // - grant_perm (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `granter` does not have `permission`. + // - ErrInvalidRequest + // - `grantee` already has `permission`. + // Since: 0.46.0 (finschia) + rpc Grant(MsgGrant) returns (MsgGrantResponse); + + // Abandon abandons a permission. + // Fires: + // - EventAbandon + // - revoke_perm (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `grantee` does not have `permission`. + // Since: 0.46.0 (finschia) + rpc Abandon(MsgAbandon) returns (MsgAbandonResponse); + + // Deprecated: use Grant + // GrantPermission allows one to mint or burn tokens or modify metadata. + rpc GrantPermission(MsgGrantPermission) returns (MsgGrantPermissionResponse); + + // Deprecated: use Abandon + // RevokePermission abandons a permission. + rpc RevokePermission(MsgRevokePermission) returns (MsgRevokePermissionResponse); + + // Attach defines a method to attach a token to another token. + // Fires: + // - EventAttach + // - attach (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrInvalidRequest + // - `owner` does not owns `id`. + // - `owner` does not owns `to`. + // - `token_id` is not root. + // - `token_id` is an ancestor of `to_token_id`, which creates a cycle as a result. + // - depth of `to_token_id` exceeds an app-specific limit. + rpc Attach(MsgAttach) returns (MsgAttachResponse); + + // Detach defines a method to detach a token from another token. + // Fires: + // - EventDetach + // - detach (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrInvalidRequest + // - `owner` does not owns `token_id`. + rpc Detach(MsgDetach) returns (MsgDetachResponse); + + // OperatorAttach defines a method to attach a token to another token by operator. + // Fires: + // - EventAttach + // - attach_from (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the holder has not authorized `operator`. + // - ErrInvalidRequest + // - `owner` does not owns `subject`. + // - `owner` does not owns `target`. + // - `subject` is not root. + // - `subject` is an ancestor of `target`, which creates a cycle as a result. + // - depth of `to` exceeds an app-specific limit. + // Since: 0.46.0 (finschia) + rpc OperatorAttach(MsgOperatorAttach) returns (MsgOperatorAttachResponse); + + // OperatorDetach defines a method to detach a token from another token by operator. + // Fires: + // - EventDetach + // - detach_from (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the holder has not authorized `operator`. + // - ErrInvalidRequest + // - `owner` does not owns `subject`. + // Since: 0.46.0 (finschia) + rpc OperatorDetach(MsgOperatorDetach) returns (MsgOperatorDetachResponse); + + // Deprecated: use OperatorAttach + // AttachFrom defines a method to attach a token to another token by operator. + rpc AttachFrom(MsgAttachFrom) returns (MsgAttachFromResponse); + + // Deprecated: use OperatorDetach + // DetachFrom defines a method to detach a token from another token by operator. + rpc DetachFrom(MsgDetachFrom) returns (MsgDetachFromResponse); +} + +// MsgSend is the Msg/Send request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `from` +// +// Since: 0.46.0 (finschia) +message MsgSend { + // contract id associated with the contract. + string contract_id = 1; + // holder whose tokens are being sent. + string from = 2; + // recipient of the tokens. + string to = 3; + // amount of tokens to send. + repeated Coin amount = 4 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "Coins"]; +} + +// MsgSendResponse is the Msg/Send response type. +// +// Since: 0.46.0 (finschia) +message MsgSendResponse {} + +// MsgOperatorSend is the Msg/OperatorSend request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `from` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +message MsgOperatorSend { + // contract id associated with the contract. + string contract_id = 1; + // address which triggers the send. + string operator = 2; + // holder whose tokens are being sent. + string from = 3; + // recipient of the tokens. + string to = 4; + // amount of tokens to send. + repeated Coin amount = 5 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "Coins"]; +} + +// MsgOperatorSendResponse is the Msg/OperatorSend response type. +// +// Since: 0.46.0 (finschia) +message MsgOperatorSendResponse {} + +// Deprecated: use MsgSend +// +// MsgTransferFT is the Msg/TransferFT request type. +message MsgTransferFT { + // contract id associated with the contract. + string contract_id = 1; + // the address which the transfer is from. + string from = 2; + // the address which the transfer is to. + string to = 3; + // the amount of the transfer. + // Note: amount may be empty. + repeated Coin amount = 4 [(gogoproto.nullable) = false]; +} + +// Deprecated: do not use +// +// MsgTransferFTResponse is the Msg/TransferFT response type. +message MsgTransferFTResponse {} + +// Deprecated: use MsgOperatorSend +// +// MsgTransferFTFrom is the Msg/TransferFTFrom request type. +message MsgTransferFTFrom { + // contract id associated with the contract. + string contract_id = 1; + // the address of the operator. + string proxy = 2; + // the address which the transfer is from. + string from = 3; + // the address which the transfer is to. + string to = 4; + // the amount of the transfer. + // Note: amount may be empty. + repeated Coin amount = 5 [(gogoproto.nullable) = false]; +} + +// Deprecated: do not use +// +// MsgTransferFTFromResponse is the Msg/TransferFTFrom response type. +message MsgTransferFTFromResponse {} + +// Deprecated: use MsgSend +// +// MsgTransferNFT is the Msg/TransferNFT request type. +message MsgTransferNFT { + // contract id associated with the contract. + string contract_id = 1; + // the address which the transfer is from. + string from = 2; + // the address which the transfer is to. + string to = 3; + // the token ids to transfer. + repeated string token_ids = 4; +} + +// Deprecated: do not use +// +// MsgTransferNFTResponse is the Msg/TransferNFT response type. +message MsgTransferNFTResponse {} + +// Deprecated: use MsgOperatorSend +// +// MsgTransferNFTFrom is the Msg/TransferNFTFrom request type. +message MsgTransferNFTFrom { + // contract id associated with the contract. + string contract_id = 1; + // the address of the operator. + string proxy = 2; + // the address which the transfer is from. + string from = 3; + // the address which the transfer is to. + string to = 4; + // the token ids to transfer. + repeated string token_ids = 5; +} + +// Deprecated: do not use +// +// MsgTransferNFTFromResponse is the Msg/TransferNFTFrom response type. +message MsgTransferNFTFromResponse {} + +// MsgAuthorizeOperator is the Msg/AuthorizeOperator request type. +// +// Throws: +// - ErrInvalidAddress +// - `holder` is of invalid format. +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// +// Signer: `holder` +// +// Since: 0.46.0 (finschia) +message MsgAuthorizeOperator { + // contract id associated with the contract. + string contract_id = 1; + // address of a holder which authorizes the `operator` address as an operator. + string holder = 2; + // address to set as an operator for `holder`. + string operator = 3; +} + +// MsgAuthorizeOperatorResponse is the Msg/AuthorizeOperator response type. +// +// Since: 0.46.0 (finschia) +message MsgAuthorizeOperatorResponse {} + +// MsgRevokeOperator is the Msg/RevokeOperator request type. +// +// Throws: +// - ErrInvalidAddress +// - `holder` is of invalid format. +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// +// Signer: `holder` +// +// Since: 0.46.0 (finschia) +message MsgRevokeOperator { + // contract id associated with the contract. + string contract_id = 1; + // address of a holder which revokes the `operator` address as an operator. + string holder = 2; + // address to rescind as an operator for `holder`. + string operator = 3; +} + +// MsgRevokeOperatorResponse is the Msg/RevokeOperator response type. +// +// Since: 0.46.0 (finschia) +message MsgRevokeOperatorResponse {} + +// Deprecated: use MsgAuthorizeOperator +// +// MsgApprove is the Msg/Approve request type. +message MsgApprove { + // contract id associated with the contract. + string contract_id = 1; + // address of the holder who allows the manipulation of its token. + string approver = 2; + // address which the manipulation is allowed to. + string proxy = 3; +} + +// Deprecated: do not use +// +// MsgApproveResponse is the Msg/Approve response type. +message MsgApproveResponse {} + +// Deprecated: use MsgRevokeOperator +// +// MsgDisapprove is the Msg/Disapprove request type. +message MsgDisapprove { + // contract id associated with the contract. + string contract_id = 1; + // address of the holder who allows the manipulation of its token. + string approver = 2; + // address which the manipulation is allowed to. + string proxy = 3; +} + +// Deprecated: do not use +// +// MsgDisapproveResponse is the Msg/Disapprove response type. +message MsgDisapproveResponse {} + +// MsgCreateContract is the Msg/CreateContract request type. +// +// Throws: +// - ErrInvalidAddress +// - `owner` is of invalid format. +// - ErrInvalidRequest +// - `name` exceeds the app-specific limit in length. +// - `base_img_uri` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// +// Signer: `owner` +message MsgCreateContract { + // address which all the permissions on the contract will be granted to (not a permanent property). + string owner = 1; + + // name defines the human-readable name of the contract. + string name = 2; + // base img uri is an uri for the contract image stored off chain. + string base_img_uri = 3; + // meta is a brief description of the contract. + string meta = 4; +} + +// MsgCreateContractResponse is the Msg/CreateContract response type. +message MsgCreateContractResponse { + // id of the new contract. + string id = 1; +} + +// MsgCreateFTClass is the Msg/CreateFTClass request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `to` is not empty and is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `name` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// - `decimals` is lesser than 0 or greater than 18. +// - `supply` is positive and `to` is of invalid format. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +message MsgCreateFTClass { + // contract id associated with the contract. + string contract_id = 1; + // address which triggers the create. + string operator = 2; + // name defines the human-readable name of the token class. + string name = 3; + // meta is a brief description of the token class. + string meta = 4; + // decimals is the number of decimals which one must divide the amount by to get its user representation. + int32 decimals = 5; + + // recipient of the minted tokens. + string to = 6; + // amount of tokens to mint on the create. + // Note: supply may be zero. + string supply = 7 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// MsgCreateFTClassResponse is the Msg/CreateFTClass response type. +// +// Since: 0.46.0 (finschia) +message MsgCreateFTClassResponse { + // id of the new token class. + string id = 1; +} + +// MsgCreateNFTClass is the Msg/CreateNFTClass request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `name` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +message MsgCreateNFTClass { + // contract id associated with the contract. + string contract_id = 1; + // address which triggers the create. + string operator = 2; + // name defines the human-readable name of the token class. + string name = 3; + // meta is a brief description of the token class. + string meta = 4; +} + +// MsgCreateNFTClassResponse is the Msg/CreateNFTClass response type. +// +// Since: 0.46.0 (finschia) +message MsgCreateNFTClassResponse { + // id of the new token class. + string id = 1; +} + +// Deprecated: use MsgCreateFTClass +// +// MsgIssueFT is the Msg/IssueFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `owner` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `name` is empty. +// - `name` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// - `decimals` is lesser than 0 or greater than 18. +// - `amount` is not positive. +// - `mintable` == false, amount == 1 and decimals == 0 (weird, but for the backward compatibility). +// +// Signer: `owner` +message MsgIssueFT { + // contract id associated with the contract. + string contract_id = 1; + // name defines the human-readable name of the token class. + string name = 2; + // meta is a brief description of the token class. + string meta = 3; + // decimals is the number of decimals which one must divide the amount by to get its user representation. + int32 decimals = 4; + // mintable represents whether the token is allowed to be minted or burnt. + bool mintable = 5; + + // the address of the grantee which must have the permission to issue a token. + string owner = 6; + + // the address to send the minted tokens to. mandatory. + string to = 7; + // the amount of tokens to mint on the issuance. + // Note: if you provide negative amount, a panic may result. + // Note: amount may be zero. + string amount = 8 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false]; +} + +// Deprecated: do not use +// +// MsgIssueFTResponse is the Msg/IssueFT response type. +message MsgIssueFTResponse { + // id of the new token class. + string id = 1; +} + +// Deprecated: use MsgCreateNFTClass +// +// MsgIssueNFT is the Msg/IssueNFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `owner` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `name` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// +// Signer: `owner` +message MsgIssueNFT { + // contract id associated with the contract. + string contract_id = 1; + // name defines the human-readable name of the token class. + string name = 2; + // meta is a brief description of the token class. + string meta = 3; + + // the address of the grantee which must have the permission to issue a token. + string owner = 4; +} + +// Deprecated: do not use +// +// MsgIssueNFTResponse is the Msg/IssueNFT response type. +message MsgIssueNFTResponse { + // id of the new token class. + string id = 1; +} + +// MsgMintFT is the Msg/MintFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `from` +message MsgMintFT { + // contract id associated with the contract. + string contract_id = 1; + // address of the grantee which has the permission for the mint. + string from = 2; + // address which the minted tokens will be sent to. + string to = 3; + // the amount of the mint. + // Note: amount may be empty. + repeated Coin amount = 4 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "Coins"]; +} + +// MsgMintFTResponse is the Msg/MintFT response type. +message MsgMintFTResponse {} + +// MsgMintNFT is the Msg/MintNFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `params` is empty. +// - `params` has an invalid element. +// +// Signer: `from` +message MsgMintNFT { + // contract id associated with the contract. + string contract_id = 1; + // address of the grantee which has the permission for the mint. + string from = 2; + // address which the minted token will be sent to. + string to = 3; + // parameters for the minted tokens. + repeated MintNFTParam params = 4 [(gogoproto.nullable) = false]; +} + +// MsgMintNFTResponse is the Msg/MintNFT response type. +message MsgMintNFTResponse { + // ids of the new non-fungible tokens. + repeated string ids = 1; +} + +// MintNFTParam defines a parameter for minting nft. +message MintNFTParam { + // token type or class id of the nft. + // Note: it cannot start with zero. + string token_type = 1; + // name defines the human-readable name of the nft (mandatory). + // Note: it has an app-specific limit in length. + string name = 2; + // meta is a brief description of the nft. + // Note: it has an app-specific limit in length. + string meta = 3; +} + +// MsgBurn is the Msg/Burn request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `from` +// +// Since: 0.46.0 (finschia) +message MsgBurn { + // contract id associated with the contract. + string contract_id = 1; + // holder whose tokens are being burned. + string from = 2; + // amount of tokens to burn. + repeated Coin amount = 3 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "Coins"]; +} + +// MsgBurnResponse is the Msg/Burn response type. +// +// Since: 0.46.0 (finschia) +message MsgBurnResponse {} + +// MsgOperatorBurn is the Msg/OperatorBurn request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `from` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `from` +// +// Since: 0.46.0 (finschia) +message MsgOperatorBurn { + // contract id associated with the contract. + string contract_id = 1; + // address which triggers the burn. + string operator = 2; + // holder whose tokens are being burned. + string from = 3; + // amount of tokens to burn. + repeated Coin amount = 4 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "Coins"]; +} + +// MsgOperatorBurnResponse is the Msg/OperatorBurn response type. +// +// Since: 0.46.0 (finschia) +message MsgOperatorBurnResponse {} + +// Deprecated: use MsgBurn +// +// MsgBurnFT is the Msg/BurnFT request type. +message MsgBurnFT { + // contract id associated with the contract. + string contract_id = 1; + // address which the tokens will be burnt from. + // Note: it must have the permission for the burn. + string from = 2; + // the amount of the burn. + // Note: amount may be empty. + repeated Coin amount = 3 [(gogoproto.nullable) = false]; +} + +// Deprecated: do not use +// +// MsgBurnFTResponse is the Msg/BurnFT response type. +message MsgBurnFTResponse {} + +// Deprecated: use MsgOperatorBurn +// +// MsgBurnFTFrom is the Msg/BurnFTFrom request type. +message MsgBurnFTFrom { + // contract id associated with the contract. + string contract_id = 1; + // address which triggers the burn. + // Note: it must have the permission for the burn. + // Note: it must have been authorized by from. + string proxy = 2; + // address which the tokens will be burnt from. + string from = 3; + // the amount of the burn. + // Note: amount may be empty. + repeated Coin amount = 4 [(gogoproto.nullable) = false]; +} + +// Deprecated: do not use +// +// MsgBurnFTFromResponse is the Msg/BurnFTFrom response type. +message MsgBurnFTFromResponse {} + +// Deprecated: use MsgBurn +// +// MsgBurnNFT is the Msg/BurnNFT request type. +message MsgBurnNFT { + // contract id associated with the contract. + string contract_id = 1; + // address which the tokens will be burnt from. + // Note: it must have the permission for the burn. + string from = 2; + // the token ids to burn. + // Note: id cannot start with zero. + repeated string token_ids = 3; +} + +// Deprecated: do not use +// +// MsgBurnNFTResponse is the Msg/BurnNFT response type. +message MsgBurnNFTResponse {} + +// Deprecated: use MsgOperatorBurn +// +// MsgBurnNFTFrom is the Msg/BurnNFTFrom request type. +message MsgBurnNFTFrom { + // contract id associated with the contract. + string contract_id = 1; + // address which triggers the burn. + // Note: it must have the permission for the burn. + // Note: it must have been authorized by from. + string proxy = 2; + // address which the tokens will be burnt from. + string from = 3; + // the token ids to burn. + // Note: id cannot start with zero. + repeated string token_ids = 4; +} + +// Deprecated: do not use +// +// MsgBurnNFTFromResponse is the Msg/BurnNFTFrom response type. +message MsgBurnNFTFromResponse {} + +// MsgModifyContract is the Msg/ModifyContract request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `changes` has duplicate keys. +// - `changes` has a key which is not allowed to modify. +// - `changes` is empty. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +message MsgModifyContract { + // contract id associated with the contract. + string contract_id = 1; + // address which triggers the modify. + string operator = 2; + // attributes to apply. + repeated Attribute changes = 3 [(gogoproto.nullable) = false]; +} + +// MsgModifyContractResponse is the Msg/ModifyContract response type. +// +// Since: 0.46.0 (finschia) +message MsgModifyContractResponse {} + +// MsgModifyTokenClass is the Msg/ModifyTokenClass request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `class_id` is of invalid format. +// - `changes` has duplicate keys. +// - `changes` has a key which is not allowed to modify. +// - `changes` is empty. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +message MsgModifyTokenClass { + // contract id associated with the contract. + string contract_id = 1; + // address which triggers the modify. + string operator = 2; + // class id associated with the token class. + string class_id = 3; + // attributes to apply. + repeated Attribute changes = 4 [(gogoproto.nullable) = false]; +} + +// MsgModifyTokenClassResponse is the Msg/ModifyTokenClass response type. +// +// Since: 0.46.0 (finschia) +message MsgModifyTokenClassResponse {} + +// MsgModifyNFT is the Msg/ModifyNFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `token_id` is of invalid format. +// - `changes` has duplicate keys. +// - `changes` has a key which is not allowed to modify. +// - `changes` is empty. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +message MsgModifyNFT { + // contract id associated with the contract. + string contract_id = 1; + // address which triggers the modify. + string operator = 2; + // token id associated with the non-fungible token. + string token_id = 3; + // attributes to apply. + repeated Attribute changes = 4 [(gogoproto.nullable) = false]; +} + +// MsgModifyNFTResponse is the Msg/ModifyNFT response type. +// +// Since: 0.46.0 (finschia) +message MsgModifyNFTResponse {} + +// Deprecated: use MsgModifyContract, MsgModifyTokenClass or MsgModifyNFT +// +// MsgModify is the Msg/Modify request type. +message MsgModify { + // contract id associated with the contract. + string contract_id = 1; + // the address of the grantee which must have modify permission. + string owner = 2; + // token type of the token. + string token_type = 3; + // token index of the token. + // if index is empty, it would modify the corresponding token type. + // if index is not empty, it would modify the corresponding nft. + // Note: if token type is of FTs, the index cannot be empty. + string token_index = 4; + // changes to apply. + // on modifying collection: name, base_img_uri, meta. + // on modifying token type and token: name, meta. + repeated Change changes = 5 [(gogoproto.nullable) = false]; +} + +// Deprecated: do not use +// +// MsgModifyResponse is the Msg/Modify response type. +message MsgModifyResponse {} + +// MsgGrant is the Msg/Grant request type. +// +// Throws: +// - ErrInvalidAddress +// - `granter` is of invalid format. +// - `grantee` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `permission` is not a valid permission. +// +// Signer: `granter` +// +// Since: 0.46.0 (finschia) +message MsgGrant { + // contract id associated with the contract. + string contract_id = 1; + // address of the granter which must have the permission to give. + string granter = 2; + // address of the grantee. + string grantee = 3; + // permission on the contract. + Permission permission = 4; +} + +// MsgGrantResponse is the Msg/Grant response type. +// +// Since: 0.46.0 (finschia) +message MsgGrantResponse {} + +// MsgAbandon is the Msg/Abandon request type. +// +// Throws: +// - ErrInvalidAddress +// - `grantee` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `permission` is not a valid permission. +// +// Signer: `grantee` +// +// Since: 0.46.0 (finschia) +message MsgAbandon { + // contract id associated with the contract. + string contract_id = 1; + // address of the grantee which abandons the permission. + string grantee = 2; + // permission on the contract. + Permission permission = 3; +} + +// MsgAbandonResponse is the Msg/Abandon response type. +// +// Since: 0.46.0 (finschia) +message MsgAbandonResponse {} + +// Deprecated: use MsgGrant +// +// MsgGrantPermission is the Msg/GrantPermission request type. +message MsgGrantPermission { + // contract id associated with the contract. + string contract_id = 1; + // address of the granter which must have the permission to give. + string from = 2; + // address of the grantee. + string to = 3; + // permission on the contract. + string permission = 4; +} + +// Deprecated: do not use +// +// MsgGrantPermissionResponse is the Msg/GrantPermission response type. +message MsgGrantPermissionResponse {} + +// Deprecated: use MsgAbandon +// +// MsgRevokePermission is the Msg/RevokePermission request type. +message MsgRevokePermission { + // contract id associated with the contract. + string contract_id = 1; + // address of the grantee which abandons the permission. + string from = 2; + // permission on the contract. + string permission = 3; +} + +// Deprecated: do not use +// +// MsgRevokePermissionResponse is the Msg/RevokePermission response type. +message MsgRevokePermissionResponse {} + +// MsgAttach is the Msg/Attach request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `token_id` is of invalid format. +// - `to_token_id` is of invalid format. +// - `token_id` is equal to `to_token_id`. +// +// Signer: `from` +// +// TODO: revisit the field names +message MsgAttach { + // contract id associated with the contract. + string contract_id = 1; + // address of the owner of the token. + string from = 2; + // token id of the token to attach. + string token_id = 3; + // to token id which one attachs the token to. + string to_token_id = 4; +} + +// MsgAttachResponse is the Msg/Attach response type. +message MsgAttachResponse {} + +// MsgDetach is the Msg/Detach request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `token_id` is of invalid format. +// +// Signer: `from` +// +// TODO: revisit the field names +message MsgDetach { + // contract id associated with the contract. + string contract_id = 1; + // address of the owner of the token. + string from = 2; + // token id of the token to detach. + string token_id = 3; +} + +// MsgDetachResponse is the Msg/Detach response type. +message MsgDetachResponse {} + +// MsgOperatorAttach is the Msg/OperatorAttach request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `owner` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `subject` is of invalid format. +// - `target` is of invalid format. +// - `subject` is equal to `target`. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +message MsgOperatorAttach { + // contract id associated with the contract. + string contract_id = 1; + // address of the operator. + string operator = 2; + // address of the owner of the token. + string owner = 3; + // token id of the token to attach. + string subject = 4; + // token id which one attachs the token to. + string target = 5; +} + +// MsgOperatorAttachResponse is the Msg/OperatorAttach response type. +// +// Since: 0.46.0 (finschia) +message MsgOperatorAttachResponse {} + +// MsgOperatorDetach is the Msg/OperatorDetach request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `owner` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `subject` is of invalid format. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +message MsgOperatorDetach { + // contract id associated with the contract. + string contract_id = 1; + // address of the operator. + string operator = 2; + // address of the holder of the token. + string owner = 3; + // token id of the token to detach. + string subject = 4; +} + +// MsgOperatorDetachResponse is the Msg/OperatorDetach response type. +// +// Since: 0.46.0 (finschia) +message MsgOperatorDetachResponse {} + +// Deprecated: use MsgOperatorAttach +// +// MsgAttachFrom is the Msg/AttachFrom request type. +message MsgAttachFrom { + // contract id associated with the contract. + string contract_id = 1; + // address of the operator. + string proxy = 2; + // address of the owner of the token. + string from = 3; + // token id of the token to attach. + string token_id = 4; + // to token id which one attachs the token to. + string to_token_id = 5; +} + +// Deprecated: do not use +// +// MsgAttachFromResponse is the Msg/AttachFrom response type. +message MsgAttachFromResponse {} + +// Deprecated: use MsgOperatorDetach +// +// MsgDetachFrom is the Msg/DetachFrom request type. +message MsgDetachFrom { + // contract id associated with the contract. + string contract_id = 1; + // address of the operator. + string proxy = 2; + // address of the owner of the token. + string from = 3; + // token id of the token to detach. + string token_id = 4; +} + +// Deprecated: do not use +// +// MsgDetachFromResponse is the Msg/DetachFrom response type. +message MsgDetachFromResponse {} diff --git a/x/collection/collection.go b/x/collection/collection.go new file mode 100644 index 0000000000..946852280c --- /dev/null +++ b/x/collection/collection.go @@ -0,0 +1,110 @@ +package collection + +import ( + "fmt" + "strings" + + sdk "github.com/line/lbm-sdk/types" +) + +func ValidateTokenID(id string) error { + return nil +} + +func ValidateNFTID(id string) error { + return nil +} + +//----------------------------------------------------------------------------- +// Coin +func NewCoin(id string, amount sdk.Int) Coin { + coin := Coin{ + TokenId: id, + Amount: amount, + } + + if err := coin.ValidateBasic(); err != nil { + panic(err) + } + + return coin +} + +func (c Coin) String() string { + return fmt.Sprintf("%s:%s", c.TokenId, c.Amount) +} + +func (c Coin) ValidateBasic() error { + if err := ValidateTokenID(c.TokenId); err != nil { + return err + } + + if c.isNil() || !c.isPositive() { + return fmt.Errorf("invalid amount: %v", c.Amount) + } + + if err := ValidateNFTID(c.TokenId); err == nil { + if !c.Amount.Equal(sdk.OneInt()) { + return fmt.Errorf("duplicate non fungible tokens") + } + } + + return nil +} + +func (c Coin) isPositive() bool { + return c.Amount.IsPositive() +} + +func (c Coin) isNil() bool { + return c.Amount.IsNil() +} + +//----------------------------------------------------------------------------- +// Coins +type Coins []Coin + +func NewCoins(coins ...Coin) Coins { + newCoins := Coins(coins) + if err := newCoins.ValidateBasic(); err != nil { + panic(fmt.Errorf("invalid coin %s: %w", newCoins, err)) + } + + return newCoins +} + +func (coins Coins) String() string { + if len(coins) == 0 { + return "" + } else if len(coins) == 1 { + return coins[0].String() + } + + var out strings.Builder + for _, coin := range coins[:len(coins)-1] { + out.WriteString(coin.String()) + out.WriteByte(',') + } + out.WriteString(coins[len(coins)-1].String()) + return out.String() +} + +func (coins Coins) ValidateBasic() error { + if len(coins) == 0 { + return fmt.Errorf("empty coins") + } + + seenIDs := map[string]bool{} + for _, coin := range coins { + if seenIDs[coin.TokenId] { + return fmt.Errorf("duplicate id %s", coin.TokenId) + } + seenIDs[coin.TokenId] = true + + if err := coin.ValidateBasic(); err != nil { + return fmt.Errorf("invalid coin %s: %w", coin.TokenId, err) + } + } + + return nil +} diff --git a/x/collection/collection.pb.go b/x/collection/collection.pb.go new file mode 100644 index 0000000000..690ad02909 --- /dev/null +++ b/x/collection/collection.pb.go @@ -0,0 +1,3728 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/collection.proto + +package collection + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + github_com_line_lbm_sdk_types "github.com/line/lbm-sdk/types" + _ "github.com/regen-network/cosmos-proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Permission enumerates the valid permissions on a contract. +type Permission int32 + +const ( + // unspecified defines the default permission which is invalid. + PermissionUnspecified Permission = 0 + // PERMISSION_ISSUE defines a permission to create a token class. + PermissionIssue Permission = 1 + // PERMISSION_MODIFY defines a permission to modify a contract. + PermissionModify Permission = 2 + // PERMISSION_MINT defines a permission to mint tokens of a contract. + PermissionMint Permission = 3 + // PERMISSION_BURN defines a permission to burn tokens of a contract. + PermissionBurn Permission = 4 +) + +var Permission_name = map[int32]string{ + 0: "PERMISSION_UNSPECIFIED", + 1: "PERMISSION_ISSUE", + 2: "PERMISSION_MODIFY", + 3: "PERMISSION_MINT", + 4: "PERMISSION_BURN", +} + +var Permission_value = map[string]int32{ + "PERMISSION_UNSPECIFIED": 0, + "PERMISSION_ISSUE": 1, + "PERMISSION_MODIFY": 2, + "PERMISSION_MINT": 3, + "PERMISSION_BURN": 4, +} + +func (x Permission) String() string { + return proto.EnumName(Permission_name, int32(x)) +} + +func (Permission) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{0} +} + +// Deprecated: use Permission +// +// LegacyPermission enumerates the valid permissions on a contract. +type LegacyPermission int32 + +const ( + // unspecified defines the default permission which is invalid. + LegacyPermissionUnspecified LegacyPermission = 0 + // issue defines a permission to create a token class. + LegacyPermissionIssue LegacyPermission = 1 + // modify defines a permission to modify a contract. + LegacyPermissionModify LegacyPermission = 2 + // mint defines a permission to mint tokens of a contract. + LegacyPermissionMint LegacyPermission = 3 + // burn defines a permission to burn tokens of a contract. + LegacyPermissionBurn LegacyPermission = 4 +) + +var LegacyPermission_name = map[int32]string{ + 0: "LEGACY_PERMISSION_UNSPECIFIED", + 1: "LEGACY_PERMISSION_ISSUE", + 2: "LEGACY_PERMISSION_MODIFY", + 3: "LEGACY_PERMISSION_MINT", + 4: "LEGACY_PERMISSION_BURN", +} + +var LegacyPermission_value = map[string]int32{ + "LEGACY_PERMISSION_UNSPECIFIED": 0, + "LEGACY_PERMISSION_ISSUE": 1, + "LEGACY_PERMISSION_MODIFY": 2, + "LEGACY_PERMISSION_MINT": 3, + "LEGACY_PERMISSION_BURN": 4, +} + +func (LegacyPermission) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{1} +} + +// Params defines the parameters for the collection module. +type Params struct { + DepthLimit uint32 `protobuf:"varint,1,opt,name=depth_limit,json=depthLimit,proto3" json:"depth_limit,omitempty"` + WidthLimit uint32 `protobuf:"varint,2,opt,name=width_limit,json=widthLimit,proto3" json:"width_limit,omitempty"` +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +// Contract defines the information of the contract for the collection. +type Contract struct { + // contract_id defines the unique identifier of the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // name defines the human-readable name of the contract. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the contract. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // base img uri is an uri for the contract image stored off chain. + BaseImgUri string `protobuf:"bytes,4,opt,name=base_img_uri,json=baseImgUri,proto3" json:"base_img_uri,omitempty"` +} + +func (m *Contract) Reset() { *m = Contract{} } +func (m *Contract) String() string { return proto.CompactTextString(m) } +func (*Contract) ProtoMessage() {} +func (*Contract) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{1} +} +func (m *Contract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Contract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Contract) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contract.Merge(m, src) +} +func (m *Contract) XXX_Size() int { + return m.Size() +} +func (m *Contract) XXX_DiscardUnknown() { + xxx_messageInfo_Contract.DiscardUnknown(m) +} + +var xxx_messageInfo_Contract proto.InternalMessageInfo + +// FTClass defines the class of fungible token. +// +// Since: 0.46.0 (finschia) +type FTClass struct { + // id defines the unique identifier of the token class. + // Note: size of the class id is 8 in length. + // Note: token id of the fungible token would be `id` + `00000000`. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // name defines the human-readable name of the token class. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token class. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // decimals is the number of decimals which one must divide the amount by to get its user representation. + Decimals int32 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"` + // mintable represents whether the token class is allowed to mint or burn its tokens. + Mintable bool `protobuf:"varint,5,opt,name=mintable,proto3" json:"mintable,omitempty"` +} + +func (m *FTClass) Reset() { *m = FTClass{} } +func (m *FTClass) String() string { return proto.CompactTextString(m) } +func (*FTClass) ProtoMessage() {} +func (*FTClass) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{2} +} +func (m *FTClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FTClass.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FTClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_FTClass.Merge(m, src) +} +func (m *FTClass) XXX_Size() int { + return m.Size() +} +func (m *FTClass) XXX_DiscardUnknown() { + xxx_messageInfo_FTClass.DiscardUnknown(m) +} + +var xxx_messageInfo_FTClass proto.InternalMessageInfo + +func (m *FTClass) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *FTClass) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *FTClass) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *FTClass) GetDecimals() int32 { + if m != nil { + return m.Decimals + } + return 0 +} + +func (m *FTClass) GetMintable() bool { + if m != nil { + return m.Mintable + } + return false +} + +// NFTClass defines the class of non-fungible token. +// +// Since: 0.46.0 (finschia) +type NFTClass struct { + // id defines the unique identifier of the token class. + // Note: size of the class id is 8 in length. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // name defines the human-readable name of the token class. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token class. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (m *NFTClass) Reset() { *m = NFTClass{} } +func (m *NFTClass) String() string { return proto.CompactTextString(m) } +func (*NFTClass) ProtoMessage() {} +func (*NFTClass) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{3} +} +func (m *NFTClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTClass.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NFTClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTClass.Merge(m, src) +} +func (m *NFTClass) XXX_Size() int { + return m.Size() +} +func (m *NFTClass) XXX_DiscardUnknown() { + xxx_messageInfo_NFTClass.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTClass proto.InternalMessageInfo + +func (m *NFTClass) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *NFTClass) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTClass) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +// NFT defines the information of non-fungible token. +// +// Since: 0.46.0 (finschia) +type NFT struct { + // id defines the unique identifier of the token. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // name defines the human-readable name of the token. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (m *NFT) Reset() { *m = NFT{} } +func (m *NFT) String() string { return proto.CompactTextString(m) } +func (*NFT) ProtoMessage() {} +func (*NFT) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{4} +} +func (m *NFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFT.Merge(m, src) +} +func (m *NFT) XXX_Size() int { + return m.Size() +} +func (m *NFT) XXX_DiscardUnknown() { + xxx_messageInfo_NFT.DiscardUnknown(m) +} + +var xxx_messageInfo_NFT proto.InternalMessageInfo + +// Deprecated: use NFT +// +// OwnerNFT defines the information of non-fungible token. +type OwnerNFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // id defines the unique identifier of the token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // name defines the human-readable name of the token. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` + // owner of the token. + Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *OwnerNFT) Reset() { *m = OwnerNFT{} } +func (m *OwnerNFT) String() string { return proto.CompactTextString(m) } +func (*OwnerNFT) ProtoMessage() {} +func (*OwnerNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{5} +} +func (m *OwnerNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OwnerNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OwnerNFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OwnerNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_OwnerNFT.Merge(m, src) +} +func (m *OwnerNFT) XXX_Size() int { + return m.Size() +} +func (m *OwnerNFT) XXX_DiscardUnknown() { + xxx_messageInfo_OwnerNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_OwnerNFT proto.InternalMessageInfo + +// Deprecated: use FTClass +// +// FT defines the information of fungible token. +type FT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id defines the unique identifier of the fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // name defines the human-readable name of the fungible token. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the fungible token. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` + // decimals is the number of decimals which one must divide the amount by to get its user representation. + Decimals int32 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"` + // mintable represents whether the fungible token is allowed to be minted or burnt. + Mintable bool `protobuf:"varint,6,opt,name=mintable,proto3" json:"mintable,omitempty"` +} + +func (m *FT) Reset() { *m = FT{} } +func (m *FT) String() string { return proto.CompactTextString(m) } +func (*FT) ProtoMessage() {} +func (*FT) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{6} +} +func (m *FT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FT) XXX_Merge(src proto.Message) { + xxx_messageInfo_FT.Merge(m, src) +} +func (m *FT) XXX_Size() int { + return m.Size() +} +func (m *FT) XXX_DiscardUnknown() { + xxx_messageInfo_FT.DiscardUnknown(m) +} + +var xxx_messageInfo_FT proto.InternalMessageInfo + +// Deprecated: use TokenClass +// +// TokenType defines the information of token type. +type TokenType struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type defines the unique identifier of the token type. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // name defines the human-readable name of the token type. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token type. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (m *TokenType) Reset() { *m = TokenType{} } +func (m *TokenType) String() string { return proto.CompactTextString(m) } +func (*TokenType) ProtoMessage() {} +func (*TokenType) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{7} +} +func (m *TokenType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TokenType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenType.Merge(m, src) +} +func (m *TokenType) XXX_Size() int { + return m.Size() +} +func (m *TokenType) XXX_DiscardUnknown() { + xxx_messageInfo_TokenType.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenType proto.InternalMessageInfo + +// Coin defines a token with a token id and an amount. +type Coin struct { + // token id associated with the token. + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // amount of the token. + Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"` +} + +func (m *Coin) Reset() { *m = Coin{} } +func (*Coin) ProtoMessage() {} +func (*Coin) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{8} +} +func (m *Coin) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Coin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Coin.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Coin) XXX_Merge(src proto.Message) { + xxx_messageInfo_Coin.Merge(m, src) +} +func (m *Coin) XXX_Size() int { + return m.Size() +} +func (m *Coin) XXX_DiscardUnknown() { + xxx_messageInfo_Coin.DiscardUnknown(m) +} + +var xxx_messageInfo_Coin proto.InternalMessageInfo + +// Grant defines permission given to a grantee. +// +// Since: 0.46.0 (finschia) +type Grant struct { + // address of the grantee. + Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,2,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` +} + +func (m *Grant) Reset() { *m = Grant{} } +func (m *Grant) String() string { return proto.CompactTextString(m) } +func (*Grant) ProtoMessage() {} +func (*Grant) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{9} +} +func (m *Grant) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Grant.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Grant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Grant.Merge(m, src) +} +func (m *Grant) XXX_Size() int { + return m.Size() +} +func (m *Grant) XXX_DiscardUnknown() { + xxx_messageInfo_Grant.DiscardUnknown(m) +} + +var xxx_messageInfo_Grant proto.InternalMessageInfo + +// Authorization defines an authorization given to the operator on tokens of the holder. +// +// Since: 0.46.0 (finschia) +type Authorization struct { + // address of the holder which authorizes the manipulation of its tokens. + Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"` + // address of the operator which the authorization is granted to. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (m *Authorization) Reset() { *m = Authorization{} } +func (m *Authorization) String() string { return proto.CompactTextString(m) } +func (*Authorization) ProtoMessage() {} +func (*Authorization) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{10} +} +func (m *Authorization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Authorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Authorization.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Authorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Authorization.Merge(m, src) +} +func (m *Authorization) XXX_Size() int { + return m.Size() +} +func (m *Authorization) XXX_DiscardUnknown() { + xxx_messageInfo_Authorization.DiscardUnknown(m) +} + +var xxx_messageInfo_Authorization proto.InternalMessageInfo + +// Attribute defines a key and value of the attribute. +// +// Since: 0.46.0 (finschia) +type Attribute struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *Attribute) Reset() { *m = Attribute{} } +func (m *Attribute) String() string { return proto.CompactTextString(m) } +func (*Attribute) ProtoMessage() {} +func (*Attribute) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{11} +} +func (m *Attribute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Attribute.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Attribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_Attribute.Merge(m, src) +} +func (m *Attribute) XXX_Size() int { + return m.Size() +} +func (m *Attribute) XXX_DiscardUnknown() { + xxx_messageInfo_Attribute.DiscardUnknown(m) +} + +var xxx_messageInfo_Attribute proto.InternalMessageInfo + +// Deprecated: use Attribute +// +// Change defines a field-value pair. +type Change struct { + Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *Change) Reset() { *m = Change{} } +func (m *Change) String() string { return proto.CompactTextString(m) } +func (*Change) ProtoMessage() {} +func (*Change) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{12} +} +func (m *Change) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Change.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Change) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change.Merge(m, src) +} +func (m *Change) XXX_Size() int { + return m.Size() +} +func (m *Change) XXX_DiscardUnknown() { + xxx_messageInfo_Change.DiscardUnknown(m) +} + +var xxx_messageInfo_Change proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("lbm.collection.v1.Permission", Permission_name, Permission_value) + proto.RegisterEnum("lbm.collection.v1.LegacyPermission", LegacyPermission_name, LegacyPermission_value) + proto.RegisterType((*Params)(nil), "lbm.collection.v1.Params") + proto.RegisterType((*Contract)(nil), "lbm.collection.v1.Contract") + proto.RegisterType((*FTClass)(nil), "lbm.collection.v1.FTClass") + proto.RegisterType((*NFTClass)(nil), "lbm.collection.v1.NFTClass") + proto.RegisterType((*NFT)(nil), "lbm.collection.v1.NFT") + proto.RegisterType((*OwnerNFT)(nil), "lbm.collection.v1.OwnerNFT") + proto.RegisterType((*FT)(nil), "lbm.collection.v1.FT") + proto.RegisterType((*TokenType)(nil), "lbm.collection.v1.TokenType") + proto.RegisterType((*Coin)(nil), "lbm.collection.v1.Coin") + proto.RegisterType((*Grant)(nil), "lbm.collection.v1.Grant") + proto.RegisterType((*Authorization)(nil), "lbm.collection.v1.Authorization") + proto.RegisterType((*Attribute)(nil), "lbm.collection.v1.Attribute") + proto.RegisterType((*Change)(nil), "lbm.collection.v1.Change") +} + +func init() { + proto.RegisterFile("lbm/collection/v1/collection.proto", fileDescriptor_bb15fea9f4c37044) +} + +var fileDescriptor_bb15fea9f4c37044 = []byte{ + // 902 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcf, 0x6f, 0xdb, 0x64, + 0x18, 0xb6, 0xf3, 0xab, 0xc9, 0x0b, 0xeb, 0x32, 0x53, 0x4a, 0x6a, 0x54, 0xc7, 0x58, 0x48, 0x6c, + 0x43, 0x4d, 0x34, 0x36, 0x10, 0xaa, 0xb4, 0x43, 0x93, 0x25, 0x93, 0x51, 0x9b, 0x56, 0x4e, 0x82, + 0x34, 0x2e, 0xc1, 0xb1, 0xbf, 0x26, 0x9f, 0x6a, 0xfb, 0x8b, 0xec, 0xcf, 0x1d, 0xe1, 0x2f, 0x98, + 0x22, 0x21, 0x38, 0x72, 0x89, 0x54, 0x09, 0x0e, 0x93, 0xb8, 0xee, 0xcc, 0xb9, 0xc7, 0x69, 0x27, + 0xc4, 0x61, 0x82, 0xf6, 0xc2, 0x9d, 0x7f, 0x00, 0x7d, 0x9f, 0x9d, 0xd4, 0x4b, 0x33, 0x36, 0x81, + 0xb4, 0xdb, 0xfb, 0xbc, 0xef, 0xf3, 0xbc, 0xef, 0xeb, 0xe7, 0x8d, 0x63, 0xd0, 0x9c, 0xbe, 0x5b, + 0xb5, 0x88, 0xe3, 0x20, 0x8b, 0x62, 0xe2, 0x55, 0x8f, 0x6f, 0x25, 0x50, 0x65, 0xe4, 0x13, 0x4a, + 0xa4, 0x6b, 0x4e, 0xdf, 0xad, 0x24, 0xb2, 0xc7, 0xb7, 0xe4, 0xb5, 0x01, 0x19, 0x10, 0x5e, 0xad, + 0xb2, 0x28, 0x22, 0xca, 0x1b, 0x16, 0x09, 0x5c, 0x12, 0xf4, 0xa2, 0x42, 0x04, 0xa2, 0x92, 0xf6, + 0x05, 0xe4, 0x0e, 0x4c, 0xdf, 0x74, 0x03, 0xa9, 0x0c, 0x6f, 0xd9, 0x68, 0x44, 0x87, 0x3d, 0x07, + 0xbb, 0x98, 0x96, 0x44, 0x55, 0xbc, 0x7e, 0xc5, 0x00, 0x9e, 0xda, 0x65, 0x19, 0x46, 0x78, 0x88, + 0xed, 0x39, 0x21, 0x15, 0x11, 0x78, 0x8a, 0x13, 0xb4, 0x10, 0xf2, 0x75, 0xe2, 0x51, 0xdf, 0xb4, + 0x38, 0xd9, 0x8a, 0xe3, 0x1e, 0xb6, 0x79, 0xb7, 0x82, 0x01, 0xb3, 0x94, 0x6e, 0x4b, 0x12, 0x64, + 0x3c, 0xd3, 0x45, 0xbc, 0x4d, 0xc1, 0xe0, 0x31, 0xcb, 0xb9, 0x88, 0x9a, 0xa5, 0x74, 0x94, 0x63, + 0xb1, 0xa4, 0xc2, 0xdb, 0x7d, 0x33, 0x40, 0x3d, 0xec, 0x0e, 0x7a, 0xa1, 0x8f, 0x4b, 0x99, 0xa8, + 0x13, 0xcb, 0xe9, 0xee, 0xa0, 0xeb, 0x63, 0xed, 0x3b, 0x11, 0x56, 0x9a, 0x9d, 0xba, 0x63, 0x06, + 0x81, 0xb4, 0x0a, 0xa9, 0xf9, 0xb4, 0x14, 0x7e, 0xfd, 0x29, 0x32, 0xe4, 0x6d, 0x64, 0x61, 0xd7, + 0x74, 0x02, 0x3e, 0x21, 0x6b, 0xcc, 0x31, 0xab, 0xb9, 0xd8, 0xa3, 0x66, 0xdf, 0x41, 0xa5, 0xac, + 0x2a, 0x5e, 0xcf, 0x1b, 0x73, 0xbc, 0x2d, 0x3d, 0x3a, 0x29, 0x8b, 0xcf, 0x9e, 0x6c, 0x41, 0x87, + 0x1c, 0x21, 0x8f, 0xef, 0xa0, 0x7d, 0x09, 0xf9, 0xd6, 0xff, 0xdc, 0x67, 0x69, 0xdf, 0xbb, 0x90, + 0x6e, 0x35, 0x3b, 0xff, 0xb5, 0xa5, 0xf6, 0xbd, 0x08, 0xf9, 0xfd, 0x87, 0x1e, 0xf2, 0x59, 0x93, + 0x57, 0x9e, 0x67, 0x03, 0xf2, 0x94, 0x8d, 0x66, 0xd5, 0xa8, 0xf3, 0x0a, 0xc7, 0x89, 0xcb, 0xa5, + 0x97, 0x0c, 0xcc, 0x24, 0x3c, 0x5d, 0x83, 0x2c, 0x61, 0xf3, 0xb8, 0x69, 0x05, 0x23, 0x02, 0xdb, + 0x85, 0x67, 0x4f, 0xb6, 0xb2, 0xfc, 0xa9, 0xb4, 0x5f, 0x44, 0x48, 0xbd, 0xa1, 0x5d, 0x92, 0xf7, + 0xcd, 0xfe, 0xcb, 0x7d, 0x73, 0x0b, 0xf7, 0x4d, 0x6c, 0x1b, 0x40, 0x81, 0x07, 0x9d, 0xf1, 0x08, + 0xbd, 0x7a, 0xe7, 0x4d, 0x80, 0x68, 0x67, 0x3a, 0x1e, 0xcd, 0x6e, 0x53, 0xa0, 0x73, 0xfd, 0x6b, + 0xee, 0xad, 0x79, 0x90, 0xa9, 0x13, 0xec, 0xbd, 0x60, 0x81, 0xf8, 0xa2, 0x05, 0x3b, 0x90, 0x33, + 0x5d, 0x12, 0x7a, 0xd1, 0x1b, 0x59, 0xa8, 0xdd, 0x38, 0x7d, 0x5e, 0x16, 0x7e, 0x7f, 0x5e, 0xfe, + 0x60, 0x80, 0xe9, 0x30, 0xec, 0x57, 0x2c, 0xe2, 0x56, 0x1d, 0xec, 0xa1, 0xaa, 0xd3, 0x77, 0xb7, + 0x02, 0xfb, 0xa8, 0xca, 0x36, 0x0a, 0x2a, 0xba, 0x47, 0x8d, 0x58, 0xb8, 0x9d, 0xff, 0xf1, 0xa4, + 0x2c, 0xfc, 0x75, 0x52, 0x16, 0xb5, 0xaf, 0x21, 0x7b, 0xdf, 0x37, 0x3d, 0x2a, 0x95, 0x60, 0x65, + 0xc0, 0x02, 0x84, 0x66, 0xf3, 0x62, 0x28, 0xdd, 0x05, 0x18, 0x21, 0xdf, 0xc5, 0x41, 0x80, 0x89, + 0xc7, 0x67, 0xae, 0x7e, 0xb2, 0x59, 0xb9, 0xf4, 0x57, 0x54, 0x39, 0x98, 0x93, 0x8c, 0x84, 0x40, + 0xab, 0xc3, 0x95, 0x9d, 0x90, 0x0e, 0x89, 0x8f, 0xbf, 0x35, 0x19, 0x55, 0x5a, 0x87, 0xdc, 0x90, + 0x38, 0x36, 0xf2, 0xe3, 0x41, 0x31, 0x62, 0x67, 0x21, 0x23, 0xe4, 0x9b, 0x94, 0xf8, 0xb1, 0x7f, + 0x73, 0xac, 0xdd, 0x86, 0xc2, 0x0e, 0xa5, 0x3e, 0xee, 0x87, 0x14, 0x49, 0x45, 0x48, 0x1f, 0xa1, + 0x71, 0xac, 0x66, 0x21, 0xfb, 0xe5, 0x1d, 0x9b, 0x4e, 0x38, 0xf3, 0x3d, 0x02, 0xda, 0x1d, 0xc8, + 0xd5, 0x87, 0xa6, 0x37, 0x40, 0xac, 0x7e, 0x88, 0x91, 0x33, 0xb3, 0x32, 0x02, 0xcb, 0x55, 0x37, + 0xff, 0x16, 0x01, 0x2e, 0x1e, 0x45, 0xfa, 0x14, 0xd6, 0x0f, 0x1a, 0xc6, 0x9e, 0xde, 0x6e, 0xeb, + 0xfb, 0xad, 0x5e, 0xb7, 0xd5, 0x3e, 0x68, 0xd4, 0xf5, 0xa6, 0xde, 0xb8, 0x57, 0x14, 0xe4, 0x8d, + 0xc9, 0x54, 0x7d, 0xf7, 0x82, 0xdb, 0xf5, 0x82, 0x11, 0xb2, 0xf0, 0x21, 0x46, 0xb6, 0x74, 0x03, + 0x8a, 0x09, 0x99, 0xde, 0x6e, 0x77, 0x1b, 0x45, 0x51, 0x7e, 0x67, 0x32, 0x55, 0xaf, 0x5e, 0x08, + 0xf4, 0x20, 0x08, 0x91, 0xf4, 0x31, 0x5c, 0x4b, 0x50, 0xf7, 0xf6, 0xef, 0xe9, 0xcd, 0x07, 0xc5, + 0x94, 0xbc, 0x36, 0x99, 0xaa, 0xc5, 0x0b, 0xee, 0x1e, 0xb1, 0xf1, 0xe1, 0x58, 0xfa, 0x08, 0xae, + 0x26, 0xc9, 0x7a, 0xab, 0x53, 0x4c, 0xcb, 0xd2, 0x64, 0xaa, 0xae, 0x26, 0xa8, 0xd8, 0xa3, 0x0b, + 0xc4, 0x5a, 0xd7, 0x68, 0x15, 0x33, 0x8b, 0xc4, 0x5a, 0xe8, 0x7b, 0x72, 0xe6, 0xd1, 0x4f, 0x8a, + 0x70, 0xf3, 0xd7, 0x14, 0x14, 0x77, 0xd1, 0xc0, 0xb4, 0xc6, 0x89, 0x67, 0xaf, 0xc1, 0xe6, 0x6e, + 0xe3, 0xfe, 0x4e, 0xfd, 0x41, 0xef, 0xa5, 0x16, 0x94, 0x27, 0x53, 0xf5, 0xfd, 0x45, 0x61, 0xd2, + 0x88, 0xcf, 0xe0, 0xbd, 0xcb, 0x3d, 0x66, 0x7e, 0x70, 0x03, 0x17, 0xd5, 0x91, 0x2b, 0x9f, 0x43, + 0xe9, 0xb2, 0x6e, 0x6e, 0x8e, 0x3c, 0x99, 0xaa, 0xeb, 0x8b, 0xc2, 0xd8, 0xa2, 0x3b, 0xb0, 0xbe, + 0x44, 0x19, 0x39, 0x55, 0x9a, 0x4c, 0xd5, 0xb5, 0x4b, 0x3a, 0xe6, 0xd7, 0x52, 0x55, 0x6c, 0xdb, + 0x52, 0x15, 0x37, 0x2f, 0xcf, 0xcc, 0x7b, 0xfc, 0xb3, 0x22, 0xd4, 0x9a, 0xa7, 0x7f, 0x2a, 0xc2, + 0xe3, 0x33, 0x45, 0x38, 0x3d, 0x53, 0xc4, 0xa7, 0x67, 0x8a, 0xf8, 0xc7, 0x99, 0x22, 0xfe, 0x70, + 0xae, 0x08, 0x4f, 0xcf, 0x15, 0xe1, 0xb7, 0x73, 0x45, 0xf8, 0xea, 0xc3, 0x97, 0xbd, 0x9f, 0xdf, + 0x24, 0xbe, 0xf4, 0xfd, 0x1c, 0xff, 0x4c, 0xdf, 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x04, + 0xeb, 0x54, 0x10, 0x08, 0x00, 0x00, +} + +func (this *Coin) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Coin) + if !ok { + that2, ok := that.(Coin) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TokenId != that1.TokenId { + return false + } + if !this.Amount.Equal(that1.Amount) { + return false + } + return true +} +func (m *Params) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.WidthLimit != 0 { + i = encodeVarintCollection(dAtA, i, uint64(m.WidthLimit)) + i-- + dAtA[i] = 0x10 + } + if m.DepthLimit != 0 { + i = encodeVarintCollection(dAtA, i, uint64(m.DepthLimit)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Contract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Contract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BaseImgUri) > 0 { + i -= len(m.BaseImgUri) + copy(dAtA[i:], m.BaseImgUri) + i = encodeVarintCollection(dAtA, i, uint64(len(m.BaseImgUri))) + i-- + dAtA[i] = 0x22 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintCollection(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FTClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FTClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Mintable { + i-- + if m.Mintable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Decimals != 0 { + i = encodeVarintCollection(dAtA, i, uint64(m.Decimals)) + i-- + dAtA[i] = 0x20 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NFTClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OwnerNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OwnerNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OwnerNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x2a + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintCollection(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintCollection(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Mintable { + i-- + if m.Mintable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Decimals != 0 { + i = encodeVarintCollection(dAtA, i, uint64(m.Decimals)) + i-- + dAtA[i] = 0x28 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintCollection(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintCollection(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TokenType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TokenType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintCollection(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintCollection(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Coin) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Coin) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Coin) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintCollection(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Grant) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Grant) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Grant) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permission != 0 { + i = encodeVarintCollection(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x10 + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Grantee))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Authorization) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Authorization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Authorization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Attribute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Attribute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Attribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Change) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Change) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + } + if len(m.Field) > 0 { + i -= len(m.Field) + copy(dAtA[i:], m.Field) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Field))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DepthLimit != 0 { + n += 1 + sovCollection(uint64(m.DepthLimit)) + } + if m.WidthLimit != 0 { + n += 1 + sovCollection(uint64(m.WidthLimit)) + } + return n +} + +func (m *Contract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.BaseImgUri) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *FTClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + if m.Decimals != 0 { + n += 1 + sovCollection(uint64(m.Decimals)) + } + if m.Mintable { + n += 2 + } + return n +} + +func (m *NFTClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *NFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *OwnerNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *FT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + if m.Decimals != 0 { + n += 1 + sovCollection(uint64(m.Decimals)) + } + if m.Mintable { + n += 2 + } + return n +} + +func (m *TokenType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *Coin) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovCollection(uint64(l)) + return n +} + +func (m *Grant) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + if m.Permission != 0 { + n += 1 + sovCollection(uint64(m.Permission)) + } + return n +} + +func (m *Authorization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *Attribute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *Change) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Field) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func sovCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCollection(x uint64) (n int) { + return sovCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepthLimit", wireType) + } + m.DepthLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepthLimit |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WidthLimit", wireType) + } + m.WidthLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WidthLimit |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Contract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Contract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Contract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseImgUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseImgUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FTClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FTClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FTClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + m.Decimals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimals |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Mintable = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NFTClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OwnerNFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OwnerNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnerNFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + m.Decimals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimals |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Mintable = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TokenType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TokenType: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenType: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Coin) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Coin: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Coin: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Grant) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Grant: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Grant: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Authorization) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Authorization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Authorization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Attribute) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Attribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Attribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Change) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Change: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Change: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Field", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Field = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCollection(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCollection + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCollection + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCollection + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/collection/event.pb.go b/x/collection/event.pb.go new file mode 100644 index 0000000000..3ba3353bd2 --- /dev/null +++ b/x/collection/event.pb.go @@ -0,0 +1,5726 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/event.proto + +package collection + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Deprecated: use typed events. +// +// EventType enumerates the valid event types on x/collection. +type EventType int32 + +const ( + EventTypeUnspecified EventType = 0 + EventTypeCreateCollection EventType = 1 + EventTypeIssueFT EventType = 2 + EventTypeIssueNFT EventType = 3 + EventTypeMintFT EventType = 4 + EventTypeBurnFT EventType = 5 + EventTypeMintNFT EventType = 6 + EventTypeBurnNFT EventType = 7 + EventTypeBurnFTFrom EventType = 8 + EventTypeBurnNFTFrom EventType = 9 + EventTypeModifyCollection EventType = 10 + EventTypeModifyTokenType EventType = 11 + EventTypeModifyToken EventType = 12 + EventTypeTransfer EventType = 13 + EventTypeTransferFT EventType = 14 + EventTypeTransferNFT EventType = 15 + EventTypeTransferFTFrom EventType = 16 + EventTypeTransferNFTFrom EventType = 17 + EventTypeGrantPermToken EventType = 18 + EventTypeRevokePermToken EventType = 19 + EventTypeAttachToken EventType = 20 + EventTypeDetachToken EventType = 21 + EventTypeAttachFrom EventType = 22 + EventTypeDetachFrom EventType = 23 + EventTypeApproveCollection EventType = 24 + EventTypeDisapproveCollection EventType = 25 + EventTypeOperationTransferNFT EventType = 26 + EventTypeOperationBurnNFT EventType = 27 + EventTypeOperationRootChanged EventType = 28 +) + +var EventType_name = map[int32]string{ + 0: "EVENT_TYPE_UNSPECIFIED", + 1: "EVENT_TYPE_CREATE_COLLECTION", + 2: "EVENT_TYPE_ISSUE_FT", + 3: "EVENT_TYPE_ISSUE_NFT", + 4: "EVENT_TYPE_MINT_FT", + 5: "EVENT_TYPE_BURN_FT", + 6: "EVENT_TYPE_MINT_NFT", + 7: "EVENT_TYPE_BURN_NFT", + 8: "EVENT_TYPE_BURN_FT_FROM", + 9: "EVENT_TYPE_BURN_NFT_FROM", + 10: "EVENT_TYPE_MODIFY_COLLECTION", + 11: "EVENT_TYPE_MODIFY_TOKEN_TYPE", + 12: "EVENT_TYPE_MODIFY_TOKEN", + 13: "EVENT_TYPE_TRANSFER", + 14: "EVENT_TYPE_TRANSFER_FT", + 15: "EVENT_TYPE_TRANSFER_NFT", + 16: "EVENT_TYPE_TRANSFER_FT_FROM", + 17: "EVENT_TYPE_TRANSFER_NFT_FROM", + 18: "EVENT_TYPE_GRANT_PERM", + 19: "EVENT_TYPE_REVOKE_PERM", + 20: "EVENT_TYPE_ATTACH", + 21: "EVENT_TYPE_DETACH", + 22: "EVENT_TYPE_ATTACH_FROM", + 23: "EVENT_TYPE_DETACH_FROM", + 24: "EVENT_TYPE_APPROVE_COLLECTION", + 25: "EVENT_TYPE_DISAPPROVE_COLLECTION", + 26: "EVENT_TYPE_OPERATION_TRANSFER_NFT", + 27: "EVENT_TYPE_OPERATION_BURN_NFT", + 28: "EVENT_TYPE_OPERATION_ROOT_CHANGED", +} + +var EventType_value = map[string]int32{ + "EVENT_TYPE_UNSPECIFIED": 0, + "EVENT_TYPE_CREATE_COLLECTION": 1, + "EVENT_TYPE_ISSUE_FT": 2, + "EVENT_TYPE_ISSUE_NFT": 3, + "EVENT_TYPE_MINT_FT": 4, + "EVENT_TYPE_BURN_FT": 5, + "EVENT_TYPE_MINT_NFT": 6, + "EVENT_TYPE_BURN_NFT": 7, + "EVENT_TYPE_BURN_FT_FROM": 8, + "EVENT_TYPE_BURN_NFT_FROM": 9, + "EVENT_TYPE_MODIFY_COLLECTION": 10, + "EVENT_TYPE_MODIFY_TOKEN_TYPE": 11, + "EVENT_TYPE_MODIFY_TOKEN": 12, + "EVENT_TYPE_TRANSFER": 13, + "EVENT_TYPE_TRANSFER_FT": 14, + "EVENT_TYPE_TRANSFER_NFT": 15, + "EVENT_TYPE_TRANSFER_FT_FROM": 16, + "EVENT_TYPE_TRANSFER_NFT_FROM": 17, + "EVENT_TYPE_GRANT_PERM": 18, + "EVENT_TYPE_REVOKE_PERM": 19, + "EVENT_TYPE_ATTACH": 20, + "EVENT_TYPE_DETACH": 21, + "EVENT_TYPE_ATTACH_FROM": 22, + "EVENT_TYPE_DETACH_FROM": 23, + "EVENT_TYPE_APPROVE_COLLECTION": 24, + "EVENT_TYPE_DISAPPROVE_COLLECTION": 25, + "EVENT_TYPE_OPERATION_TRANSFER_NFT": 26, + "EVENT_TYPE_OPERATION_BURN_NFT": 27, + "EVENT_TYPE_OPERATION_ROOT_CHANGED": 28, +} + +func (EventType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{0} +} + +// Deprecated: use typed events. +// +// AttributeKey enumerates the valid attribute keys on x/collection. +type AttributeKey int32 + +const ( + AttributeKeyUnspecified AttributeKey = 0 + AttributeKeyName AttributeKey = 1 + AttributeKeyMeta AttributeKey = 2 + AttributeKeyContractID AttributeKey = 3 + AttributeKeyTokenID AttributeKey = 4 + AttributeKeyOwner AttributeKey = 5 + AttributeKeyAmount AttributeKey = 6 + AttributeKeyDecimals AttributeKey = 7 + AttributeKeyBaseImgURI AttributeKey = 8 + AttributeKeyMintable AttributeKey = 9 + AttributeKeyTokenType AttributeKey = 10 + AttributeKeyFrom AttributeKey = 11 + AttributeKeyTo AttributeKey = 12 + AttributeKeyPerm AttributeKey = 13 + AttributeKeyToTokenID AttributeKey = 14 + AttributeKeyFromTokenID AttributeKey = 15 + AttributeKeyApprover AttributeKey = 16 + AttributeKeyProxy AttributeKey = 17 + AttributeKeyOldRoot AttributeKey = 18 + AttributeKeyNewRoot AttributeKey = 19 +) + +var AttributeKey_name = map[int32]string{ + 0: "ATTRIBUTE_KEY_UNSPECIFIED", + 1: "ATTRIBUTE_KEY_NAME", + 2: "ATTRIBUTE_KEY_META", + 3: "ATTRIBUTE_KEY_CONTRACT_ID", + 4: "ATTRIBUTE_KEY_TOKEN_ID", + 5: "ATTRIBUTE_KEY_OWNER", + 6: "ATTRIBUTE_KEY_AMOUNT", + 7: "ATTRIBUTE_KEY_DECIMALS", + 8: "ATTRIBUTE_KEY_BASE_IMG_URI", + 9: "ATTRIBUTE_KEY_MINTABLE", + 10: "ATTRIBUTE_KEY_TOKEN_TYPE", + 11: "ATTRIBUTE_KEY_FROM", + 12: "ATTRIBUTE_KEY_TO", + 13: "ATTRIBUTE_KEY_PERM", + 14: "ATTRIBUTE_KEY_TO_TOKEN_ID", + 15: "ATTRIBUTE_KEY_FROM_TOKEN_ID", + 16: "ATTRIBUTE_KEY_APPROVER", + 17: "ATTRIBUTE_KEY_PROXY", + 18: "ATTRIBUTE_KEY_OLD_ROOT_TOKEN_ID", + 19: "ATTRIBUTE_KEY_NEW_ROOT_TOKEN_ID", +} + +var AttributeKey_value = map[string]int32{ + "ATTRIBUTE_KEY_UNSPECIFIED": 0, + "ATTRIBUTE_KEY_NAME": 1, + "ATTRIBUTE_KEY_META": 2, + "ATTRIBUTE_KEY_CONTRACT_ID": 3, + "ATTRIBUTE_KEY_TOKEN_ID": 4, + "ATTRIBUTE_KEY_OWNER": 5, + "ATTRIBUTE_KEY_AMOUNT": 6, + "ATTRIBUTE_KEY_DECIMALS": 7, + "ATTRIBUTE_KEY_BASE_IMG_URI": 8, + "ATTRIBUTE_KEY_MINTABLE": 9, + "ATTRIBUTE_KEY_TOKEN_TYPE": 10, + "ATTRIBUTE_KEY_FROM": 11, + "ATTRIBUTE_KEY_TO": 12, + "ATTRIBUTE_KEY_PERM": 13, + "ATTRIBUTE_KEY_TO_TOKEN_ID": 14, + "ATTRIBUTE_KEY_FROM_TOKEN_ID": 15, + "ATTRIBUTE_KEY_APPROVER": 16, + "ATTRIBUTE_KEY_PROXY": 17, + "ATTRIBUTE_KEY_OLD_ROOT_TOKEN_ID": 18, + "ATTRIBUTE_KEY_NEW_ROOT_TOKEN_ID": 19, +} + +func (AttributeKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{1} +} + +// EventSent is emitted when tokens are transferred. +// +// Since: 0.46.0 (finschia) +type EventSent struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggered the send. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // holder whose tokens were sent. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // recipient of the tokens. + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // amount of tokens sent. + Amount []Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount"` +} + +func (m *EventSent) Reset() { *m = EventSent{} } +func (m *EventSent) String() string { return proto.CompactTextString(m) } +func (*EventSent) ProtoMessage() {} +func (*EventSent) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{0} +} +func (m *EventSent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventSent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventSent) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventSent.Merge(m, src) +} +func (m *EventSent) XXX_Size() int { + return m.Size() +} +func (m *EventSent) XXX_DiscardUnknown() { + xxx_messageInfo_EventSent.DiscardUnknown(m) +} + +var xxx_messageInfo_EventSent proto.InternalMessageInfo + +func (m *EventSent) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventSent) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventSent) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *EventSent) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *EventSent) GetAmount() []Coin { + if m != nil { + return m.Amount + } + return nil +} + +// EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens. +// +// Since: 0.46.0 (finschia) +type EventAuthorizedOperator struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of a holder which authorized the `operator` address as an operator. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which became an operator of `holder`. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (m *EventAuthorizedOperator) Reset() { *m = EventAuthorizedOperator{} } +func (m *EventAuthorizedOperator) String() string { return proto.CompactTextString(m) } +func (*EventAuthorizedOperator) ProtoMessage() {} +func (*EventAuthorizedOperator) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{1} +} +func (m *EventAuthorizedOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventAuthorizedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventAuthorizedOperator.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventAuthorizedOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventAuthorizedOperator.Merge(m, src) +} +func (m *EventAuthorizedOperator) XXX_Size() int { + return m.Size() +} +func (m *EventAuthorizedOperator) XXX_DiscardUnknown() { + xxx_messageInfo_EventAuthorizedOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_EventAuthorizedOperator proto.InternalMessageInfo + +func (m *EventAuthorizedOperator) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventAuthorizedOperator) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *EventAuthorizedOperator) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +// EventRevokedOperator is emitted when an authorization is revoked. +// +// Since: 0.46.0 (finschia) +type EventRevokedOperator struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of a holder which revoked the `operator` address as an operator. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which was revoked as an operator of `holder`. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (m *EventRevokedOperator) Reset() { *m = EventRevokedOperator{} } +func (m *EventRevokedOperator) String() string { return proto.CompactTextString(m) } +func (*EventRevokedOperator) ProtoMessage() {} +func (*EventRevokedOperator) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{2} +} +func (m *EventRevokedOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventRevokedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventRevokedOperator.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventRevokedOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventRevokedOperator.Merge(m, src) +} +func (m *EventRevokedOperator) XXX_Size() int { + return m.Size() +} +func (m *EventRevokedOperator) XXX_DiscardUnknown() { + xxx_messageInfo_EventRevokedOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_EventRevokedOperator proto.InternalMessageInfo + +func (m *EventRevokedOperator) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventRevokedOperator) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *EventRevokedOperator) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +// EventCreatedContract is emitted when a new contract is created. +// +// Since: 0.46.0 (finschia) +type EventCreatedContract struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // name of the contract. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // metadata of the contract. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // uri for the contract image stored off chain. + BaseImgUri string `protobuf:"bytes,4,opt,name=base_img_uri,json=baseImgUri,proto3" json:"base_img_uri,omitempty"` +} + +func (m *EventCreatedContract) Reset() { *m = EventCreatedContract{} } +func (m *EventCreatedContract) String() string { return proto.CompactTextString(m) } +func (*EventCreatedContract) ProtoMessage() {} +func (*EventCreatedContract) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{3} +} +func (m *EventCreatedContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventCreatedContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventCreatedContract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventCreatedContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventCreatedContract.Merge(m, src) +} +func (m *EventCreatedContract) XXX_Size() int { + return m.Size() +} +func (m *EventCreatedContract) XXX_DiscardUnknown() { + xxx_messageInfo_EventCreatedContract.DiscardUnknown(m) +} + +var xxx_messageInfo_EventCreatedContract proto.InternalMessageInfo + +func (m *EventCreatedContract) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventCreatedContract) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *EventCreatedContract) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *EventCreatedContract) GetBaseImgUri() string { + if m != nil { + return m.BaseImgUri + } + return "" +} + +// EventCreatedFTClass is emitted when a new fungible token class is created. +// +// Since: 0.46.0 (finschia) +type EventCreatedFTClass struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // name of the token class. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // metadata of the token class. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` + // decimals of the token class. + Decimals int32 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"` + // mintable represents whether the token class is allowed to mint or burn its tokens. + Mintable bool `protobuf:"varint,6,opt,name=mintable,proto3" json:"mintable,omitempty"` +} + +func (m *EventCreatedFTClass) Reset() { *m = EventCreatedFTClass{} } +func (m *EventCreatedFTClass) String() string { return proto.CompactTextString(m) } +func (*EventCreatedFTClass) ProtoMessage() {} +func (*EventCreatedFTClass) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{4} +} +func (m *EventCreatedFTClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventCreatedFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventCreatedFTClass.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventCreatedFTClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventCreatedFTClass.Merge(m, src) +} +func (m *EventCreatedFTClass) XXX_Size() int { + return m.Size() +} +func (m *EventCreatedFTClass) XXX_DiscardUnknown() { + xxx_messageInfo_EventCreatedFTClass.DiscardUnknown(m) +} + +var xxx_messageInfo_EventCreatedFTClass proto.InternalMessageInfo + +func (m *EventCreatedFTClass) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventCreatedFTClass) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +func (m *EventCreatedFTClass) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *EventCreatedFTClass) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *EventCreatedFTClass) GetDecimals() int32 { + if m != nil { + return m.Decimals + } + return 0 +} + +func (m *EventCreatedFTClass) GetMintable() bool { + if m != nil { + return m.Mintable + } + return false +} + +// EventCreatedNFTClass is emitted when a new non-fungible token class is created. +// +// Since: 0.46.0 (finschia) +type EventCreatedNFTClass struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // name of the token class. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // metadata of the token class. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (m *EventCreatedNFTClass) Reset() { *m = EventCreatedNFTClass{} } +func (m *EventCreatedNFTClass) String() string { return proto.CompactTextString(m) } +func (*EventCreatedNFTClass) ProtoMessage() {} +func (*EventCreatedNFTClass) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{5} +} +func (m *EventCreatedNFTClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventCreatedNFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventCreatedNFTClass.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventCreatedNFTClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventCreatedNFTClass.Merge(m, src) +} +func (m *EventCreatedNFTClass) XXX_Size() int { + return m.Size() +} +func (m *EventCreatedNFTClass) XXX_DiscardUnknown() { + xxx_messageInfo_EventCreatedNFTClass.DiscardUnknown(m) +} + +var xxx_messageInfo_EventCreatedNFTClass proto.InternalMessageInfo + +func (m *EventCreatedNFTClass) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventCreatedNFTClass) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +func (m *EventCreatedNFTClass) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *EventCreatedNFTClass) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +// EventGrant is emitted when a granter grants its permission to a grantee. +// +// Info: `granter` would be empty if the permission is granted by an issuance. +// +// Since: 0.46.0 (finschia) +type EventGrant struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the granter which grants the permission. + Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"` + // address of the grantee. + Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` +} + +func (m *EventGrant) Reset() { *m = EventGrant{} } +func (m *EventGrant) String() string { return proto.CompactTextString(m) } +func (*EventGrant) ProtoMessage() {} +func (*EventGrant) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{6} +} +func (m *EventGrant) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventGrant.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventGrant) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventGrant.Merge(m, src) +} +func (m *EventGrant) XXX_Size() int { + return m.Size() +} +func (m *EventGrant) XXX_DiscardUnknown() { + xxx_messageInfo_EventGrant.DiscardUnknown(m) +} + +var xxx_messageInfo_EventGrant proto.InternalMessageInfo + +func (m *EventGrant) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventGrant) GetGranter() string { + if m != nil { + return m.Granter + } + return "" +} + +func (m *EventGrant) GetGrantee() string { + if m != nil { + return m.Grantee + } + return "" +} + +func (m *EventGrant) GetPermission() Permission { + if m != nil { + return m.Permission + } + return PermissionUnspecified +} + +// EventAbandon is emitted when a grantee abandons its permission. +// +// Since: 0.46.0 (finschia) +type EventAbandon struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the grantee which abandons its grant. + Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` +} + +func (m *EventAbandon) Reset() { *m = EventAbandon{} } +func (m *EventAbandon) String() string { return proto.CompactTextString(m) } +func (*EventAbandon) ProtoMessage() {} +func (*EventAbandon) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{7} +} +func (m *EventAbandon) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventAbandon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventAbandon.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventAbandon) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventAbandon.Merge(m, src) +} +func (m *EventAbandon) XXX_Size() int { + return m.Size() +} +func (m *EventAbandon) XXX_DiscardUnknown() { + xxx_messageInfo_EventAbandon.DiscardUnknown(m) +} + +var xxx_messageInfo_EventAbandon proto.InternalMessageInfo + +func (m *EventAbandon) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventAbandon) GetGrantee() string { + if m != nil { + return m.Grantee + } + return "" +} + +func (m *EventAbandon) GetPermission() Permission { + if m != nil { + return m.Permission + } + return PermissionUnspecified +} + +// EventMintedFT is emitted when fungible tokens are minted. +// +// Since: 0.46.0 (finschia) +type EventMintedFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggered the mint. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // recipient of the tokens. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // amount of tokens minted. + Amount []Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount"` +} + +func (m *EventMintedFT) Reset() { *m = EventMintedFT{} } +func (m *EventMintedFT) String() string { return proto.CompactTextString(m) } +func (*EventMintedFT) ProtoMessage() {} +func (*EventMintedFT) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{8} +} +func (m *EventMintedFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventMintedFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventMintedFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventMintedFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventMintedFT.Merge(m, src) +} +func (m *EventMintedFT) XXX_Size() int { + return m.Size() +} +func (m *EventMintedFT) XXX_DiscardUnknown() { + xxx_messageInfo_EventMintedFT.DiscardUnknown(m) +} + +var xxx_messageInfo_EventMintedFT proto.InternalMessageInfo + +func (m *EventMintedFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventMintedFT) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventMintedFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *EventMintedFT) GetAmount() []Coin { + if m != nil { + return m.Amount + } + return nil +} + +// EventMintedNFT is emitted when non-fungible tokens are minted. +// +// Since: 0.46.0 (finschia) +type EventMintedNFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggered the mint. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // recipient of the tokens. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // tokens minted. + Tokens []NFT `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens"` +} + +func (m *EventMintedNFT) Reset() { *m = EventMintedNFT{} } +func (m *EventMintedNFT) String() string { return proto.CompactTextString(m) } +func (*EventMintedNFT) ProtoMessage() {} +func (*EventMintedNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{9} +} +func (m *EventMintedNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventMintedNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventMintedNFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventMintedNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventMintedNFT.Merge(m, src) +} +func (m *EventMintedNFT) XXX_Size() int { + return m.Size() +} +func (m *EventMintedNFT) XXX_DiscardUnknown() { + xxx_messageInfo_EventMintedNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_EventMintedNFT proto.InternalMessageInfo + +func (m *EventMintedNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventMintedNFT) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventMintedNFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *EventMintedNFT) GetTokens() []NFT { + if m != nil { + return m.Tokens + } + return nil +} + +// EventBurned is emitted when tokens are burnt. +// +// Since: 0.46.0 (finschia) +type EventBurned struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggered the burn. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // holder whose tokens were burned. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // amount of tokens burned. + Amount []Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount"` +} + +func (m *EventBurned) Reset() { *m = EventBurned{} } +func (m *EventBurned) String() string { return proto.CompactTextString(m) } +func (*EventBurned) ProtoMessage() {} +func (*EventBurned) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{10} +} +func (m *EventBurned) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventBurned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventBurned.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventBurned) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBurned.Merge(m, src) +} +func (m *EventBurned) XXX_Size() int { + return m.Size() +} +func (m *EventBurned) XXX_DiscardUnknown() { + xxx_messageInfo_EventBurned.DiscardUnknown(m) +} + +var xxx_messageInfo_EventBurned proto.InternalMessageInfo + +func (m *EventBurned) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventBurned) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventBurned) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *EventBurned) GetAmount() []Coin { + if m != nil { + return m.Amount + } + return nil +} + +// EventModifiedContract is emitted when the information of a contract is modified. +// +// Since: 0.46.0 (finschia) +type EventModifiedContract struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggered the modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // changes of the attributes applied. + Changes []Attribute `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"` +} + +func (m *EventModifiedContract) Reset() { *m = EventModifiedContract{} } +func (m *EventModifiedContract) String() string { return proto.CompactTextString(m) } +func (*EventModifiedContract) ProtoMessage() {} +func (*EventModifiedContract) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{11} +} +func (m *EventModifiedContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventModifiedContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventModifiedContract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventModifiedContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventModifiedContract.Merge(m, src) +} +func (m *EventModifiedContract) XXX_Size() int { + return m.Size() +} +func (m *EventModifiedContract) XXX_DiscardUnknown() { + xxx_messageInfo_EventModifiedContract.DiscardUnknown(m) +} + +var xxx_messageInfo_EventModifiedContract proto.InternalMessageInfo + +func (m *EventModifiedContract) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventModifiedContract) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventModifiedContract) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +// EventModifiedTokenClass is emitted when the information of a token class is modified. +// +// Since: 0.46.0 (finschia) +type EventModifiedTokenClass struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggered the modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // changes of the attributes applied. + Changes []Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes"` +} + +func (m *EventModifiedTokenClass) Reset() { *m = EventModifiedTokenClass{} } +func (m *EventModifiedTokenClass) String() string { return proto.CompactTextString(m) } +func (*EventModifiedTokenClass) ProtoMessage() {} +func (*EventModifiedTokenClass) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{12} +} +func (m *EventModifiedTokenClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventModifiedTokenClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventModifiedTokenClass.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventModifiedTokenClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventModifiedTokenClass.Merge(m, src) +} +func (m *EventModifiedTokenClass) XXX_Size() int { + return m.Size() +} +func (m *EventModifiedTokenClass) XXX_DiscardUnknown() { + xxx_messageInfo_EventModifiedTokenClass.DiscardUnknown(m) +} + +var xxx_messageInfo_EventModifiedTokenClass proto.InternalMessageInfo + +func (m *EventModifiedTokenClass) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventModifiedTokenClass) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventModifiedTokenClass) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +func (m *EventModifiedTokenClass) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +// EventModifiedNFT is emitted when the information of a non-fungible token is modified. +// +// Since: 0.46.0 (finschia) +type EventModifiedNFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggered the modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // token id associated with the non-fungible token. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // changes of the attributes applied. + Changes []Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes"` +} + +func (m *EventModifiedNFT) Reset() { *m = EventModifiedNFT{} } +func (m *EventModifiedNFT) String() string { return proto.CompactTextString(m) } +func (*EventModifiedNFT) ProtoMessage() {} +func (*EventModifiedNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{13} +} +func (m *EventModifiedNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventModifiedNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventModifiedNFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventModifiedNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventModifiedNFT.Merge(m, src) +} +func (m *EventModifiedNFT) XXX_Size() int { + return m.Size() +} +func (m *EventModifiedNFT) XXX_DiscardUnknown() { + xxx_messageInfo_EventModifiedNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_EventModifiedNFT proto.InternalMessageInfo + +func (m *EventModifiedNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventModifiedNFT) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventModifiedNFT) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *EventModifiedNFT) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +// EventAttached is emitted when a token is attached to another. +// +// Since: 0.46.0 (finschia) +type EventAttached struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggered the attach. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // address which holds the tokens. + Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` + // subject of the attach. + Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` + // target of the attach. + Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` +} + +func (m *EventAttached) Reset() { *m = EventAttached{} } +func (m *EventAttached) String() string { return proto.CompactTextString(m) } +func (*EventAttached) ProtoMessage() {} +func (*EventAttached) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{14} +} +func (m *EventAttached) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventAttached) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventAttached.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventAttached) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventAttached.Merge(m, src) +} +func (m *EventAttached) XXX_Size() int { + return m.Size() +} +func (m *EventAttached) XXX_DiscardUnknown() { + xxx_messageInfo_EventAttached.DiscardUnknown(m) +} + +var xxx_messageInfo_EventAttached proto.InternalMessageInfo + +func (m *EventAttached) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventAttached) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventAttached) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *EventAttached) GetSubject() string { + if m != nil { + return m.Subject + } + return "" +} + +func (m *EventAttached) GetTarget() string { + if m != nil { + return m.Target + } + return "" +} + +// EventDetached is emitted when a token is detached from its parent. +// +// Since: 0.46.0 (finschia) +type EventDetached struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggered the detach. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // address which holds the token. + Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` + // token being detached. + Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` +} + +func (m *EventDetached) Reset() { *m = EventDetached{} } +func (m *EventDetached) String() string { return proto.CompactTextString(m) } +func (*EventDetached) ProtoMessage() {} +func (*EventDetached) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{15} +} +func (m *EventDetached) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventDetached) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventDetached.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventDetached) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventDetached.Merge(m, src) +} +func (m *EventDetached) XXX_Size() int { + return m.Size() +} +func (m *EventDetached) XXX_DiscardUnknown() { + xxx_messageInfo_EventDetached.DiscardUnknown(m) +} + +var xxx_messageInfo_EventDetached proto.InternalMessageInfo + +func (m *EventDetached) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventDetached) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventDetached) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *EventDetached) GetSubject() string { + if m != nil { + return m.Subject + } + return "" +} + +func init() { + proto.RegisterEnum("lbm.collection.v1.EventType", EventType_name, EventType_value) + proto.RegisterEnum("lbm.collection.v1.AttributeKey", AttributeKey_name, AttributeKey_value) + proto.RegisterType((*EventSent)(nil), "lbm.collection.v1.EventSent") + proto.RegisterType((*EventAuthorizedOperator)(nil), "lbm.collection.v1.EventAuthorizedOperator") + proto.RegisterType((*EventRevokedOperator)(nil), "lbm.collection.v1.EventRevokedOperator") + proto.RegisterType((*EventCreatedContract)(nil), "lbm.collection.v1.EventCreatedContract") + proto.RegisterType((*EventCreatedFTClass)(nil), "lbm.collection.v1.EventCreatedFTClass") + proto.RegisterType((*EventCreatedNFTClass)(nil), "lbm.collection.v1.EventCreatedNFTClass") + proto.RegisterType((*EventGrant)(nil), "lbm.collection.v1.EventGrant") + proto.RegisterType((*EventAbandon)(nil), "lbm.collection.v1.EventAbandon") + proto.RegisterType((*EventMintedFT)(nil), "lbm.collection.v1.EventMintedFT") + proto.RegisterType((*EventMintedNFT)(nil), "lbm.collection.v1.EventMintedNFT") + proto.RegisterType((*EventBurned)(nil), "lbm.collection.v1.EventBurned") + proto.RegisterType((*EventModifiedContract)(nil), "lbm.collection.v1.EventModifiedContract") + proto.RegisterType((*EventModifiedTokenClass)(nil), "lbm.collection.v1.EventModifiedTokenClass") + proto.RegisterType((*EventModifiedNFT)(nil), "lbm.collection.v1.EventModifiedNFT") + proto.RegisterType((*EventAttached)(nil), "lbm.collection.v1.EventAttached") + proto.RegisterType((*EventDetached)(nil), "lbm.collection.v1.EventDetached") +} + +func init() { proto.RegisterFile("lbm/collection/v1/event.proto", fileDescriptor_478cfab12ea1b00e) } + +var fileDescriptor_478cfab12ea1b00e = []byte{ + // 1676 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4b, 0x6f, 0xdb, 0xc6, + 0x16, 0x36, 0x2d, 0xd9, 0x96, 0xc7, 0x8f, 0xd0, 0xf4, 0x4b, 0xa6, 0x6d, 0x85, 0x11, 0xee, 0xc2, + 0xc8, 0xbd, 0xb1, 0x6e, 0x5e, 0xf7, 0xa6, 0x81, 0x9b, 0x96, 0x92, 0x28, 0x87, 0xb0, 0x45, 0x0a, + 0x14, 0x95, 0xd4, 0xdd, 0x08, 0x94, 0x34, 0x91, 0x59, 0x4b, 0xa4, 0x41, 0x52, 0x4e, 0x9c, 0x45, + 0x81, 0x02, 0x5d, 0x04, 0x5a, 0x15, 0x0d, 0xda, 0x9d, 0x80, 0x02, 0xe9, 0x22, 0xbb, 0xa2, 0xbf, + 0xa1, 0x9b, 0x2c, 0xb3, 0xec, 0xaa, 0x28, 0x92, 0x3f, 0x52, 0xcc, 0xf0, 0xa1, 0x21, 0xa9, 0x3c, + 0x5c, 0xa7, 0xed, 0x4e, 0x43, 0x9e, 0xef, 0x9c, 0x6f, 0xce, 0x39, 0xf3, 0x1d, 0x8e, 0xc0, 0x66, + 0xa7, 0xd1, 0xcd, 0x35, 0xcd, 0x4e, 0x07, 0x36, 0x1d, 0xdd, 0x34, 0x72, 0x27, 0x57, 0x73, 0xf0, + 0x04, 0x1a, 0xce, 0xf6, 0xb1, 0x65, 0x3a, 0x26, 0xb3, 0xd0, 0x69, 0x74, 0xb7, 0x87, 0xaf, 0xb7, + 0x4f, 0xae, 0xb2, 0x4b, 0x6d, 0xb3, 0x6d, 0xe2, 0xb7, 0x39, 0xf4, 0xcb, 0x35, 0x64, 0xb3, 0x71, + 0x3f, 0x04, 0x0c, 0xdb, 0x64, 0x9f, 0x51, 0x60, 0x5a, 0x40, 0xce, 0xab, 0xd0, 0x70, 0x98, 0x8b, + 0x60, 0xa6, 0x69, 0x1a, 0x8e, 0xa5, 0x35, 0x9d, 0xba, 0xde, 0x4a, 0x53, 0x1c, 0xb5, 0x35, 0xad, + 0x00, 0xff, 0x91, 0xd8, 0x62, 0x58, 0x90, 0x32, 0x8f, 0xa1, 0xa5, 0x39, 0xa6, 0x95, 0x1e, 0xc7, + 0x6f, 0x83, 0x35, 0xc3, 0x80, 0xe4, 0x03, 0xcb, 0xec, 0xa6, 0x13, 0xf8, 0x39, 0xfe, 0xcd, 0xcc, + 0x83, 0x71, 0xc7, 0x4c, 0x27, 0xf1, 0x93, 0x71, 0xc7, 0x64, 0x6e, 0x82, 0x49, 0xad, 0x6b, 0xf6, + 0x0c, 0x27, 0x3d, 0xc1, 0x25, 0xb6, 0x66, 0xae, 0xad, 0x6e, 0xc7, 0x36, 0xb3, 0x5d, 0x30, 0x75, + 0x23, 0x9f, 0x7c, 0xf1, 0xdb, 0xc5, 0x31, 0xc5, 0x33, 0xce, 0x1a, 0x60, 0x15, 0x93, 0xe4, 0x7b, + 0xce, 0xa1, 0x69, 0xe9, 0x8f, 0x61, 0x4b, 0xf6, 0xa3, 0xbe, 0x93, 0xf2, 0x0a, 0x98, 0x3c, 0x34, + 0x3b, 0x2d, 0xe8, 0x13, 0xf6, 0x56, 0xa1, 0xad, 0x24, 0xc2, 0x5b, 0xc9, 0x1e, 0x81, 0x25, 0x1c, + 0x4f, 0x81, 0x27, 0xe6, 0xd1, 0x5f, 0x1d, 0xec, 0x2b, 0xca, 0x8b, 0x56, 0xb0, 0xa0, 0xe6, 0xc0, + 0x56, 0xc1, 0x73, 0xf7, 0xee, 0x68, 0x0c, 0x48, 0x1a, 0x5a, 0x17, 0x7a, 0xb1, 0xf0, 0x6f, 0xf4, + 0xac, 0x0b, 0x1d, 0xcd, 0xaf, 0x02, 0xfa, 0xcd, 0x70, 0x60, 0xb6, 0xa1, 0xd9, 0xb0, 0xae, 0x77, + 0xdb, 0xf5, 0x9e, 0xa5, 0x7b, 0xf5, 0x00, 0xe8, 0x99, 0xd8, 0x6d, 0xd7, 0x2c, 0x3d, 0xfb, 0x33, + 0x05, 0x16, 0x49, 0x0e, 0x25, 0xb5, 0xd0, 0xd1, 0x6c, 0xfb, 0xdd, 0x14, 0xd6, 0x40, 0xaa, 0x89, + 0x2c, 0xd1, 0x5b, 0x97, 0xc6, 0x14, 0x5e, 0x13, 0xec, 0x12, 0x23, 0xd8, 0x25, 0x09, 0x76, 0x2c, + 0x48, 0xb5, 0x60, 0x53, 0xef, 0x6a, 0x1d, 0x3b, 0x3d, 0xc1, 0x51, 0x5b, 0x13, 0x4a, 0xb0, 0x46, + 0xef, 0xba, 0xba, 0xe1, 0x68, 0x8d, 0x0e, 0x4c, 0x4f, 0x72, 0xd4, 0x56, 0x4a, 0x09, 0xd6, 0xd9, + 0xc7, 0xe1, 0xb4, 0x49, 0x7f, 0x23, 0xe7, 0xec, 0x0f, 0x14, 0x00, 0x38, 0xf8, 0xae, 0xa5, 0xbd, + 0xcf, 0xb9, 0x49, 0x83, 0xa9, 0x36, 0xb2, 0x0c, 0x1a, 0xc3, 0x5f, 0x0e, 0xdf, 0xf8, 0x41, 0xfd, + 0x25, 0xf3, 0x31, 0x00, 0xc7, 0xd0, 0xea, 0xea, 0xb6, 0xad, 0x9b, 0x06, 0x8e, 0x3e, 0x7f, 0x6d, + 0x73, 0xc4, 0x79, 0xa9, 0x04, 0x46, 0x0a, 0x01, 0xc8, 0x3e, 0xa1, 0xc0, 0xac, 0x7b, 0x68, 0x1a, + 0x9a, 0xd1, 0x32, 0x8d, 0x33, 0x90, 0x84, 0x61, 0x92, 0x51, 0x2a, 0x89, 0xb3, 0x52, 0x79, 0x4a, + 0x81, 0x39, 0x4c, 0xa5, 0xac, 0x1b, 0xb8, 0xb9, 0xce, 0x27, 0x34, 0xae, 0xa8, 0x24, 0x46, 0x88, + 0x4a, 0xf2, 0x2c, 0xa2, 0xf2, 0x94, 0x02, 0xf3, 0x04, 0x2b, 0xe9, 0x43, 0xd3, 0xba, 0x01, 0x26, + 0x1d, 0xf3, 0x08, 0x1a, 0xb6, 0x47, 0x6b, 0x65, 0x04, 0x2d, 0xa9, 0xa4, 0xfa, 0xac, 0x5c, 0xdb, + 0xec, 0x77, 0x14, 0x98, 0xc1, 0xac, 0xf2, 0x3d, 0xcb, 0x80, 0xad, 0x0f, 0x2f, 0xc9, 0x7f, 0x32, + 0x5b, 0xdf, 0x52, 0x60, 0xd9, 0xcd, 0x96, 0xd9, 0xd2, 0x1f, 0xe8, 0x67, 0x91, 0xa9, 0xb7, 0x31, + 0xdc, 0x01, 0x53, 0xcd, 0x43, 0xcd, 0x68, 0x43, 0x3b, 0x9d, 0xc0, 0x74, 0x36, 0x46, 0xd0, 0xe1, + 0x1d, 0xc7, 0xd2, 0x1b, 0x3d, 0x07, 0x7a, 0x9c, 0x7c, 0x48, 0xf6, 0x27, 0xca, 0x1b, 0x0c, 0x3e, + 0x29, 0x15, 0x25, 0xf1, 0x3d, 0x65, 0xe0, 0x6d, 0xb4, 0x48, 0x89, 0x48, 0x84, 0x25, 0x82, 0x60, + 0x9c, 0x3c, 0x3b, 0xe3, 0xe7, 0x14, 0xa0, 0x43, 0x8c, 0xcf, 0xdd, 0x76, 0x6b, 0x20, 0x85, 0x5b, + 0x87, 0xa0, 0x8a, 0xd7, 0xe7, 0xa6, 0xfa, 0xbd, 0x7f, 0x6a, 0x79, 0xc7, 0xd1, 0x9a, 0x87, 0xe7, + 0xed, 0xc5, 0xe1, 0x68, 0x4c, 0x84, 0x46, 0x63, 0x1a, 0x4c, 0xd9, 0xbd, 0xc6, 0x17, 0xb0, 0xe9, + 0x78, 0x0a, 0xeb, 0x2f, 0x11, 0xc2, 0xd1, 0xac, 0x36, 0x74, 0xf0, 0x58, 0x98, 0x56, 0xbc, 0x55, + 0xf6, 0x4b, 0x8f, 0x57, 0x11, 0xfe, 0x23, 0xbc, 0x2e, 0x7f, 0x3d, 0xe7, 0x7d, 0x33, 0xa9, 0xa7, + 0xc7, 0x90, 0xb9, 0x01, 0x56, 0x84, 0x7b, 0x82, 0xa4, 0xd6, 0xd5, 0x83, 0x8a, 0x50, 0xaf, 0x49, + 0xd5, 0x8a, 0x50, 0x10, 0x4b, 0xa2, 0x50, 0xa4, 0xc7, 0xd8, 0x74, 0x7f, 0xc0, 0x2d, 0x05, 0xa6, + 0x35, 0xc3, 0x3e, 0x86, 0x4d, 0x5c, 0x75, 0xe6, 0x13, 0xb0, 0x41, 0xa0, 0x0a, 0x8a, 0xc0, 0xab, + 0x42, 0xbd, 0x20, 0xef, 0xef, 0x0b, 0x05, 0x55, 0x94, 0x25, 0x9a, 0x62, 0x37, 0xfb, 0x03, 0x6e, + 0x2d, 0xc0, 0xba, 0x43, 0xae, 0x10, 0x54, 0x8e, 0xb9, 0x02, 0x16, 0x09, 0x07, 0x62, 0xb5, 0x5a, + 0x13, 0xea, 0x25, 0x95, 0x1e, 0x67, 0x97, 0xfa, 0x03, 0x8e, 0x0e, 0x70, 0xa2, 0x6d, 0xf7, 0x60, + 0x49, 0x65, 0x72, 0x60, 0x29, 0x66, 0x2e, 0x95, 0x54, 0x3a, 0xc1, 0x2e, 0xf7, 0x07, 0xdc, 0x42, + 0xd8, 0x1e, 0xf5, 0xe4, 0xbf, 0x01, 0x43, 0x00, 0xca, 0xa2, 0xa4, 0x22, 0xf7, 0x49, 0x76, 0xb1, + 0x3f, 0xe0, 0x2e, 0x04, 0xe6, 0x48, 0x3a, 0x63, 0xc6, 0xf9, 0x9a, 0x22, 0x21, 0xe3, 0x89, 0x88, + 0x31, 0x52, 0xb4, 0x92, 0x1a, 0x61, 0x8e, 0x3d, 0x23, 0x26, 0x93, 0x11, 0xe6, 0xc8, 0xb5, 0x14, + 0x33, 0xc7, 0xbe, 0x91, 0xf9, 0x54, 0xc4, 0x1c, 0x39, 0x47, 0xe6, 0x37, 0xc0, 0x6a, 0x9c, 0x4a, + 0xbd, 0xa4, 0xc8, 0x65, 0x3a, 0xc5, 0xae, 0xf6, 0x07, 0xdc, 0x62, 0x84, 0x4f, 0x09, 0x89, 0xe2, + 0xff, 0x40, 0x7a, 0x44, 0x10, 0x17, 0x36, 0x1d, 0x29, 0xa3, 0x17, 0x09, 0xe3, 0xc2, 0x65, 0x2c, + 0xcb, 0x45, 0xb1, 0x74, 0x40, 0x96, 0x11, 0x44, 0xca, 0x88, 0x4f, 0xfd, 0x29, 0x51, 0xc6, 0x3b, + 0xa3, 0x1c, 0xa8, 0xf2, 0x9e, 0x20, 0xe1, 0x27, 0xf4, 0x0c, 0xbb, 0xd1, 0x1f, 0x70, 0xe9, 0x88, + 0x03, 0x2c, 0x73, 0xb8, 0xfb, 0x6e, 0x86, 0xb6, 0x4b, 0xe2, 0xe9, 0xd9, 0x08, 0x6f, 0x02, 0xca, + 0x6c, 0x87, 0x92, 0xaa, 0x2a, 0xbc, 0x54, 0x2d, 0x09, 0x0a, 0x3d, 0x17, 0xe9, 0x06, 0xd5, 0xd2, + 0x0c, 0xfb, 0x01, 0xb4, 0x98, 0xeb, 0xa1, 0x26, 0xf7, 0xed, 0x51, 0x91, 0xe7, 0x23, 0x49, 0xf5, + 0x21, 0x25, 0x35, 0xc2, 0x2d, 0x00, 0xa1, 0xea, 0x5d, 0x88, 0x70, 0xf3, 0x51, 0xa8, 0x82, 0x3b, + 0x60, 0x7d, 0x74, 0x2c, 0xb7, 0x1c, 0x34, 0xbb, 0xde, 0x1f, 0x70, 0xab, 0x23, 0x02, 0xe2, 0x8a, + 0x84, 0x13, 0x4a, 0x06, 0x75, 0xe1, 0x0b, 0x91, 0x84, 0x12, 0x91, 0xbd, 0x4e, 0x58, 0x26, 0xf0, + 0xbb, 0x0a, 0x2f, 0xa9, 0xf5, 0x8a, 0xa0, 0x94, 0x69, 0x26, 0x12, 0x17, 0x7f, 0xf9, 0xa1, 0x0f, + 0x1e, 0x37, 0xa3, 0xb7, 0x42, 0x19, 0x52, 0x84, 0x7b, 0xf2, 0x9e, 0xe0, 0x02, 0x17, 0x23, 0x11, + 0xdd, 0x4b, 0xc5, 0x10, 0x99, 0x03, 0x0b, 0x04, 0x92, 0x57, 0x55, 0xbe, 0x70, 0x97, 0x5e, 0x8a, + 0x24, 0xc8, 0xd5, 0xe0, 0x51, 0x80, 0xa2, 0x80, 0x01, 0xcb, 0x11, 0x80, 0x2b, 0x8e, 0x2e, 0x20, + 0x5c, 0x3d, 0x37, 0x82, 0x9b, 0x8d, 0x95, 0x48, 0xf5, 0xdc, 0x30, 0x38, 0x11, 0x61, 0x90, 0x1b, + 0xc5, 0x05, 0xad, 0x46, 0x40, 0x6e, 0x28, 0x0c, 0xe2, 0xc1, 0x26, 0x19, 0xa9, 0x52, 0x51, 0xe4, + 0x7b, 0x21, 0x5d, 0x4b, 0xb3, 0x99, 0xfe, 0x80, 0x63, 0x87, 0x01, 0x8f, 0x8f, 0x2d, 0xf3, 0x84, + 0x14, 0xb6, 0x5d, 0xc0, 0x91, 0x71, 0xc5, 0xea, 0x08, 0x2f, 0x6b, 0xec, 0xa5, 0xfe, 0x80, 0xdb, + 0x1c, 0x32, 0xd0, 0x6d, 0x2d, 0xe6, 0xe8, 0x2e, 0xb8, 0x44, 0x38, 0x92, 0x2b, 0x82, 0xc2, 0x23, + 0x70, 0xb8, 0x11, 0xd9, 0x88, 0x27, 0xf7, 0xaa, 0xa7, 0x9b, 0x06, 0xd9, 0x91, 0x9f, 0x86, 0x76, + 0x35, 0xf4, 0x14, 0x88, 0xd1, 0x7a, 0xe4, 0x98, 0x07, 0x5e, 0x7c, 0x55, 0x7a, 0x13, 0x17, 0x45, + 0x96, 0xd5, 0x7a, 0xe1, 0x2e, 0x2f, 0xed, 0x0a, 0x45, 0x7a, 0xe3, 0x4d, 0x5c, 0x14, 0xd3, 0x74, + 0x0a, 0x78, 0x2a, 0xb7, 0xd8, 0xd4, 0x93, 0x67, 0x99, 0xb1, 0xe7, 0x3f, 0x66, 0xc6, 0x2e, 0xff, + 0x92, 0x02, 0xb3, 0xc1, 0xf0, 0xde, 0x83, 0xa7, 0xcc, 0x6d, 0xb0, 0xc6, 0xab, 0xaa, 0x22, 0xe6, + 0x6b, 0xaa, 0x50, 0xdf, 0x13, 0x0e, 0x22, 0xc3, 0x08, 0xb7, 0x2f, 0x09, 0x20, 0xe7, 0xd1, 0x7f, + 0x00, 0x13, 0xc6, 0x4a, 0x7c, 0x59, 0xa0, 0x29, 0x57, 0x64, 0x49, 0x90, 0x84, 0xae, 0x44, 0x31, + 0xeb, 0xb2, 0xa0, 0xf2, 0xfe, 0xec, 0x21, 0xad, 0xcb, 0xe8, 0x82, 0xf7, 0x51, 0x94, 0x57, 0x41, + 0x96, 0x54, 0x85, 0x2f, 0xa8, 0x75, 0xb1, 0x48, 0x27, 0x58, 0xb6, 0x3f, 0xe0, 0x56, 0x48, 0x90, + 0xff, 0x65, 0x29, 0x16, 0x51, 0x13, 0x86, 0xa1, 0xae, 0x34, 0x8a, 0x45, 0x3a, 0xe9, 0x36, 0x21, + 0x89, 0xc3, 0xcd, 0x2e, 0x16, 0x91, 0xb8, 0x85, 0x41, 0xf2, 0x7d, 0x49, 0x50, 0xe8, 0x09, 0x57, + 0xdc, 0x48, 0x84, 0xfc, 0xd0, 0x80, 0x16, 0xf3, 0x5f, 0xb0, 0x14, 0xb6, 0xe7, 0xcb, 0x72, 0x4d, + 0x42, 0x13, 0x69, 0xa5, 0x3f, 0xe0, 0x18, 0x12, 0xc0, 0xe3, 0x8f, 0x61, 0x34, 0xf3, 0xc3, 0x88, + 0xa2, 0x50, 0x10, 0xcb, 0xfc, 0x7e, 0x95, 0x9e, 0x72, 0x8f, 0x21, 0x89, 0x29, 0xfa, 0x97, 0xd9, + 0xdb, 0x80, 0x0d, 0xa3, 0xf2, 0x7c, 0x55, 0xa8, 0x8b, 0xe5, 0xdd, 0x7a, 0x4d, 0x11, 0xe9, 0x54, + 0x3c, 0x11, 0x79, 0xef, 0x82, 0xae, 0x88, 0xf1, 0x88, 0x68, 0x6e, 0xf2, 0xf9, 0x7d, 0xc1, 0x1f, + 0x4f, 0xa1, 0xac, 0x7b, 0x57, 0x64, 0xe6, 0xff, 0x20, 0x3d, 0x2a, 0x7d, 0x78, 0xb2, 0x00, 0x76, + 0xad, 0x3f, 0xe0, 0x96, 0x63, 0x09, 0xc4, 0x63, 0x25, 0x56, 0x60, 0x7c, 0xf0, 0x67, 0xe2, 0x05, + 0xc6, 0xa7, 0x7e, 0x0b, 0xd0, 0xd1, 0x30, 0xf4, 0x2c, 0xcb, 0xf4, 0x07, 0xdc, 0x7c, 0xd8, 0x7d, + 0xdc, 0x2f, 0x56, 0xc8, 0xb9, 0xb8, 0x5f, 0x24, 0x8f, 0xcc, 0xad, 0x68, 0xe3, 0xa8, 0xf2, 0xb0, + 0x01, 0xe6, 0x47, 0xf1, 0xf7, 0x5b, 0x60, 0x07, 0xac, 0xc7, 0xf9, 0x0f, 0xb1, 0x17, 0xe2, 0x87, + 0x01, 0x6d, 0xc4, 0x47, 0xc7, 0x92, 0xed, 0x49, 0x90, 0x42, 0xd3, 0xf1, 0x64, 0x7b, 0x0a, 0x66, + 0xc5, 0xdb, 0xae, 0xa2, 0xc8, 0x9f, 0x1d, 0xd0, 0x0b, 0xf1, 0xb6, 0xab, 0x58, 0xe6, 0xa3, 0x53, + 0x66, 0x07, 0x5c, 0x8c, 0xb4, 0xe9, 0x7e, 0xd1, 0x15, 0x84, 0x80, 0x27, 0x13, 0x6f, 0x72, 0xb9, + 0xd3, 0x42, 0x72, 0x10, 0x47, 0x4b, 0xc2, 0xfd, 0x08, 0x7a, 0x31, 0x8e, 0x96, 0xe0, 0x43, 0x84, + 0x1e, 0xaa, 0x48, 0xfe, 0xce, 0x8b, 0x57, 0x19, 0xea, 0xe5, 0xab, 0x0c, 0xf5, 0xfb, 0xab, 0x0c, + 0xf5, 0xcd, 0xeb, 0xcc, 0xd8, 0xcb, 0xd7, 0x99, 0xb1, 0x5f, 0x5f, 0x67, 0xc6, 0x3e, 0xff, 0x57, + 0x5b, 0x77, 0x0e, 0x7b, 0x8d, 0xed, 0xa6, 0xd9, 0xcd, 0x75, 0x74, 0x03, 0xe6, 0x3a, 0x8d, 0xee, + 0x15, 0xbb, 0x75, 0x94, 0x7b, 0x44, 0xfc, 0x8d, 0xd8, 0x98, 0xc4, 0xff, 0x23, 0x5e, 0xff, 0x23, + 0x00, 0x00, 0xff, 0xff, 0xfb, 0x94, 0x0e, 0x06, 0xb5, 0x14, 0x00, 0x00, +} + +func (m *EventSent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventSent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventSent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x22 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventAuthorizedOperator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventAuthorizedOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventAuthorizedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventRevokedOperator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventRevokedOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventRevokedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventCreatedContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventCreatedContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventCreatedContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BaseImgUri) > 0 { + i -= len(m.BaseImgUri) + copy(dAtA[i:], m.BaseImgUri) + i = encodeVarintEvent(dAtA, i, uint64(len(m.BaseImgUri))) + i-- + dAtA[i] = 0x22 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventCreatedFTClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventCreatedFTClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventCreatedFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Mintable { + i-- + if m.Mintable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Decimals != 0 { + i = encodeVarintEvent(dAtA, i, uint64(m.Decimals)) + i-- + dAtA[i] = 0x28 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventCreatedNFTClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventCreatedNFTClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventCreatedNFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventGrant) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventGrant) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permission != 0 { + i = encodeVarintEvent(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x20 + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) + i-- + dAtA[i] = 0x1a + } + if len(m.Granter) > 0 { + i -= len(m.Granter) + copy(dAtA[i:], m.Granter) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Granter))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventAbandon) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventAbandon) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventAbandon) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permission != 0 { + i = encodeVarintEvent(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x18 + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventMintedFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventMintedFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventMintedFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventMintedNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventMintedNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventMintedNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Tokens) > 0 { + for iNdEx := len(m.Tokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventBurned) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventBurned) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventBurned) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventModifiedContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventModifiedContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventModifiedContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventModifiedTokenClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventModifiedTokenClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventModifiedTokenClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventModifiedNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventModifiedNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventModifiedNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventAttached) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventAttached) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventAttached) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Target) > 0 { + i -= len(m.Target) + copy(dAtA[i:], m.Target) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Target))) + i-- + dAtA[i] = 0x2a + } + if len(m.Subject) > 0 { + i -= len(m.Subject) + copy(dAtA[i:], m.Subject) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Subject))) + i-- + dAtA[i] = 0x22 + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventDetached) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventDetached) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventDetached) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Subject) > 0 { + i -= len(m.Subject) + copy(dAtA[i:], m.Subject) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Subject))) + i-- + dAtA[i] = 0x22 + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { + offset -= sovEvent(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *EventSent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventAuthorizedOperator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventRevokedOperator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventCreatedContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.BaseImgUri) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventCreatedFTClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if m.Decimals != 0 { + n += 1 + sovEvent(uint64(m.Decimals)) + } + if m.Mintable { + n += 2 + } + return n +} + +func (m *EventCreatedNFTClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventGrant) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Granter) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if m.Permission != 0 { + n += 1 + sovEvent(uint64(m.Permission)) + } + return n +} + +func (m *EventAbandon) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if m.Permission != 0 { + n += 1 + sovEvent(uint64(m.Permission)) + } + return n +} + +func (m *EventMintedFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventMintedNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Tokens) > 0 { + for _, e := range m.Tokens { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventBurned) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventModifiedContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventModifiedTokenClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventModifiedNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventAttached) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Subject) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Target) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventDetached) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Subject) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func sovEvent(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEvent(x uint64) (n int) { + return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EventSent) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventSent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventSent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventAuthorizedOperator) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventAuthorizedOperator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventAuthorizedOperator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventRevokedOperator) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventRevokedOperator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventRevokedOperator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventCreatedContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventCreatedContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventCreatedContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseImgUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseImgUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventCreatedFTClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventCreatedFTClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventCreatedFTClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + m.Decimals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimals |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Mintable = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventCreatedNFTClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventCreatedNFTClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventGrant) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventGrant: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventGrant: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Granter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventAbandon) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventAbandon: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventAbandon: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventMintedFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventMintedFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventMintedFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventMintedNFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventMintedNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventMintedNFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tokens = append(m.Tokens, NFT{}) + if err := m.Tokens[len(m.Tokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventBurned) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventBurned: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventBurned: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventModifiedContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventModifiedContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventModifiedContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventModifiedTokenClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventModifiedTokenClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventModifiedTokenClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventModifiedNFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventModifiedNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventModifiedNFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventAttached) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventAttached: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventAttached: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subject = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Target = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventDetached) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventDetached: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventDetached: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subject = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEvent(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthEvent + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEvent + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEvent + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/collection/genesis.pb.go b/x/collection/genesis.pb.go new file mode 100644 index 0000000000..1150a0f847 --- /dev/null +++ b/x/collection/genesis.pb.go @@ -0,0 +1,4139 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/genesis.proto + +package collection + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + types "github.com/line/lbm-sdk/codec/types" + github_com_line_lbm_sdk_types "github.com/line/lbm-sdk/types" + _ "github.com/regen-network/cosmos-proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// GenesisState defines the collection module's genesis state. +type GenesisState struct { + // params defines all the paramaters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + // contracts defines the metadata of the contracts. + Contracts []Contract `protobuf:"bytes,2,rep,name=contracts,proto3" json:"contracts"` + // next ids for token classes. + NextClassIds []NextClassIDs `protobuf:"bytes,3,rep,name=next_class_ids,json=nextClassIds,proto3" json:"next_class_ids"` + // classes defines the metadata of the tokens. + Classes []ContractClasses `protobuf:"bytes,4,rep,name=classes,proto3" json:"classes"` + // next ids for (non-fungible) tokens. + NextTokenIds []ContractNextTokenIDs `protobuf:"bytes,5,rep,name=next_token_ids,json=nextTokenIds,proto3" json:"next_token_ids"` + // balances is an array containing the balances of all the accounts. + Balances []ContractBalances `protobuf:"bytes,6,rep,name=balances,proto3" json:"balances"` + // nfts is an array containing the nfts. + Nfts []ContractNFTs `protobuf:"bytes,7,rep,name=nfts,proto3" json:"nfts"` + // parents represents the parents of (non-fungible) tokens. + Parents []ContractTokenRelations `protobuf:"bytes,8,rep,name=parents,proto3" json:"parents"` + // grants defines the grant information. + Grants []ContractGrants `protobuf:"bytes,9,rep,name=grants,proto3" json:"grants"` + // authorizations defines the approve information. + Authorizations []ContractAuthorizations `protobuf:"bytes,10,rep,name=authorizations,proto3" json:"authorizations"` + // supplies represents the total supplies of tokens. + Supplies []ContractStatistics `protobuf:"bytes,11,rep,name=supplies,proto3" json:"supplies"` + // burnts represents the total amount of burnt tokens. + Burnts []ContractStatistics `protobuf:"bytes,12,rep,name=burnts,proto3" json:"burnts"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetContracts() []Contract { + if m != nil { + return m.Contracts + } + return nil +} + +func (m *GenesisState) GetNextClassIds() []NextClassIDs { + if m != nil { + return m.NextClassIds + } + return nil +} + +func (m *GenesisState) GetClasses() []ContractClasses { + if m != nil { + return m.Classes + } + return nil +} + +func (m *GenesisState) GetNextTokenIds() []ContractNextTokenIDs { + if m != nil { + return m.NextTokenIds + } + return nil +} + +func (m *GenesisState) GetBalances() []ContractBalances { + if m != nil { + return m.Balances + } + return nil +} + +func (m *GenesisState) GetNfts() []ContractNFTs { + if m != nil { + return m.Nfts + } + return nil +} + +func (m *GenesisState) GetParents() []ContractTokenRelations { + if m != nil { + return m.Parents + } + return nil +} + +func (m *GenesisState) GetGrants() []ContractGrants { + if m != nil { + return m.Grants + } + return nil +} + +func (m *GenesisState) GetAuthorizations() []ContractAuthorizations { + if m != nil { + return m.Authorizations + } + return nil +} + +func (m *GenesisState) GetSupplies() []ContractStatistics { + if m != nil { + return m.Supplies + } + return nil +} + +func (m *GenesisState) GetBurnts() []ContractStatistics { + if m != nil { + return m.Burnts + } + return nil +} + +// ContractBalances defines balances belong to a contract. +// genesis state. +type ContractBalances struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // balances + Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"` +} + +func (m *ContractBalances) Reset() { *m = ContractBalances{} } +func (m *ContractBalances) String() string { return proto.CompactTextString(m) } +func (*ContractBalances) ProtoMessage() {} +func (*ContractBalances) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{1} +} +func (m *ContractBalances) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractBalances.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractBalances) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractBalances.Merge(m, src) +} +func (m *ContractBalances) XXX_Size() int { + return m.Size() +} +func (m *ContractBalances) XXX_DiscardUnknown() { + xxx_messageInfo_ContractBalances.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractBalances proto.InternalMessageInfo + +func (m *ContractBalances) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractBalances) GetBalances() []Balance { + if m != nil { + return m.Balances + } + return nil +} + +// ContractStatistics defines statistics belong to a contract. +type ContractStatistics struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // statistics + Statistics []ClassStatistics `protobuf:"bytes,2,rep,name=statistics,proto3" json:"statistics"` +} + +func (m *ContractStatistics) Reset() { *m = ContractStatistics{} } +func (m *ContractStatistics) String() string { return proto.CompactTextString(m) } +func (*ContractStatistics) ProtoMessage() {} +func (*ContractStatistics) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{2} +} +func (m *ContractStatistics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractStatistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractStatistics.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractStatistics) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractStatistics.Merge(m, src) +} +func (m *ContractStatistics) XXX_Size() int { + return m.Size() +} +func (m *ContractStatistics) XXX_DiscardUnknown() { + xxx_messageInfo_ContractStatistics.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractStatistics proto.InternalMessageInfo + +func (m *ContractStatistics) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractStatistics) GetStatistics() []ClassStatistics { + if m != nil { + return m.Statistics + } + return nil +} + +// ClassStatistics defines statistics belong to a token class. +type ClassStatistics struct { + // class id associated with the token class. + ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // statistics + Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"` +} + +func (m *ClassStatistics) Reset() { *m = ClassStatistics{} } +func (m *ClassStatistics) String() string { return proto.CompactTextString(m) } +func (*ClassStatistics) ProtoMessage() {} +func (*ClassStatistics) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{3} +} +func (m *ClassStatistics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClassStatistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClassStatistics.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ClassStatistics) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClassStatistics.Merge(m, src) +} +func (m *ClassStatistics) XXX_Size() int { + return m.Size() +} +func (m *ClassStatistics) XXX_DiscardUnknown() { + xxx_messageInfo_ClassStatistics.DiscardUnknown(m) +} + +var xxx_messageInfo_ClassStatistics proto.InternalMessageInfo + +func (m *ClassStatistics) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// Balance defines a balance of an address. +type Balance struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Amount Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=Coins" json:"amount"` +} + +func (m *Balance) Reset() { *m = Balance{} } +func (m *Balance) String() string { return proto.CompactTextString(m) } +func (*Balance) ProtoMessage() {} +func (*Balance) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{4} +} +func (m *Balance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Balance.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Balance) XXX_Merge(src proto.Message) { + xxx_messageInfo_Balance.Merge(m, src) +} +func (m *Balance) XXX_Size() int { + return m.Size() +} +func (m *Balance) XXX_DiscardUnknown() { + xxx_messageInfo_Balance.DiscardUnknown(m) +} + +var xxx_messageInfo_Balance proto.InternalMessageInfo + +func (m *Balance) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *Balance) GetAmount() Coins { + if m != nil { + return m.Amount + } + return nil +} + +// ContractClasses defines token classes belong to a contract. +type ContractClasses struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // classes + Classes []types.Any `protobuf:"bytes,2,rep,name=classes,proto3" json:"classes"` +} + +func (m *ContractClasses) Reset() { *m = ContractClasses{} } +func (m *ContractClasses) String() string { return proto.CompactTextString(m) } +func (*ContractClasses) ProtoMessage() {} +func (*ContractClasses) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{5} +} +func (m *ContractClasses) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractClasses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractClasses.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractClasses) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractClasses.Merge(m, src) +} +func (m *ContractClasses) XXX_Size() int { + return m.Size() +} +func (m *ContractClasses) XXX_DiscardUnknown() { + xxx_messageInfo_ContractClasses.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractClasses proto.InternalMessageInfo + +func (m *ContractClasses) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractClasses) GetClasses() []types.Any { + if m != nil { + return m.Classes + } + return nil +} + +// ContractNFTs defines token classes belong to a contract. +type ContractNFTs struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // nfts + Nfts []NFT `protobuf:"bytes,2,rep,name=nfts,proto3" json:"nfts"` +} + +func (m *ContractNFTs) Reset() { *m = ContractNFTs{} } +func (m *ContractNFTs) String() string { return proto.CompactTextString(m) } +func (*ContractNFTs) ProtoMessage() {} +func (*ContractNFTs) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{6} +} +func (m *ContractNFTs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractNFTs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractNFTs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractNFTs) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractNFTs.Merge(m, src) +} +func (m *ContractNFTs) XXX_Size() int { + return m.Size() +} +func (m *ContractNFTs) XXX_DiscardUnknown() { + xxx_messageInfo_ContractNFTs.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractNFTs proto.InternalMessageInfo + +func (m *ContractNFTs) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractNFTs) GetNfts() []NFT { + if m != nil { + return m.Nfts + } + return nil +} + +// ContractAuthorizations defines authorizations belong to a contract. +type ContractAuthorizations struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // authorizations + Authorizations []Authorization `protobuf:"bytes,2,rep,name=authorizations,proto3" json:"authorizations"` +} + +func (m *ContractAuthorizations) Reset() { *m = ContractAuthorizations{} } +func (m *ContractAuthorizations) String() string { return proto.CompactTextString(m) } +func (*ContractAuthorizations) ProtoMessage() {} +func (*ContractAuthorizations) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{7} +} +func (m *ContractAuthorizations) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractAuthorizations.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractAuthorizations) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractAuthorizations.Merge(m, src) +} +func (m *ContractAuthorizations) XXX_Size() int { + return m.Size() +} +func (m *ContractAuthorizations) XXX_DiscardUnknown() { + xxx_messageInfo_ContractAuthorizations.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractAuthorizations proto.InternalMessageInfo + +func (m *ContractAuthorizations) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractAuthorizations) GetAuthorizations() []Authorization { + if m != nil { + return m.Authorizations + } + return nil +} + +// ContractGrant defines grants belong to a contract. +type ContractGrants struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // grants + Grants []Grant `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants"` +} + +func (m *ContractGrants) Reset() { *m = ContractGrants{} } +func (m *ContractGrants) String() string { return proto.CompactTextString(m) } +func (*ContractGrants) ProtoMessage() {} +func (*ContractGrants) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{8} +} +func (m *ContractGrants) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractGrants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractGrants.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractGrants) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractGrants.Merge(m, src) +} +func (m *ContractGrants) XXX_Size() int { + return m.Size() +} +func (m *ContractGrants) XXX_DiscardUnknown() { + xxx_messageInfo_ContractGrants.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractGrants proto.InternalMessageInfo + +func (m *ContractGrants) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractGrants) GetGrants() []Grant { + if m != nil { + return m.Grants + } + return nil +} + +// NextClassIDs defines the next class ids of the contract. +type NextClassIDs struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // id for the fungible tokens. + Fungible github_com_line_lbm_sdk_types.Uint `protobuf:"bytes,2,opt,name=fungible,proto3,customtype=github.com/line/lbm-sdk/types.Uint" json:"fungible"` + // id for the non-fungible tokens. + NonFungible github_com_line_lbm_sdk_types.Uint `protobuf:"bytes,3,opt,name=non_fungible,json=nonFungible,proto3,customtype=github.com/line/lbm-sdk/types.Uint" json:"non_fungible"` +} + +func (m *NextClassIDs) Reset() { *m = NextClassIDs{} } +func (m *NextClassIDs) String() string { return proto.CompactTextString(m) } +func (*NextClassIDs) ProtoMessage() {} +func (*NextClassIDs) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{9} +} +func (m *NextClassIDs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NextClassIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NextClassIDs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NextClassIDs) XXX_Merge(src proto.Message) { + xxx_messageInfo_NextClassIDs.Merge(m, src) +} +func (m *NextClassIDs) XXX_Size() int { + return m.Size() +} +func (m *NextClassIDs) XXX_DiscardUnknown() { + xxx_messageInfo_NextClassIDs.DiscardUnknown(m) +} + +var xxx_messageInfo_NextClassIDs proto.InternalMessageInfo + +func (m *NextClassIDs) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +// ContractNextTokenIDs defines the next token ids belong to a contract. +type ContractNextTokenIDs struct { + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + TokenIds []NextTokenID `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids"` +} + +func (m *ContractNextTokenIDs) Reset() { *m = ContractNextTokenIDs{} } +func (m *ContractNextTokenIDs) String() string { return proto.CompactTextString(m) } +func (*ContractNextTokenIDs) ProtoMessage() {} +func (*ContractNextTokenIDs) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{10} +} +func (m *ContractNextTokenIDs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractNextTokenIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractNextTokenIDs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractNextTokenIDs) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractNextTokenIDs.Merge(m, src) +} +func (m *ContractNextTokenIDs) XXX_Size() int { + return m.Size() +} +func (m *ContractNextTokenIDs) XXX_DiscardUnknown() { + xxx_messageInfo_ContractNextTokenIDs.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractNextTokenIDs proto.InternalMessageInfo + +func (m *ContractNextTokenIDs) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractNextTokenIDs) GetTokenIds() []NextTokenID { + if m != nil { + return m.TokenIds + } + return nil +} + +// NextTokenID defines the next (non-fungible) token id of the token class. +type NextTokenID struct { + // class id associated with the token class. + ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // id for the token. + Id github_com_line_lbm_sdk_types.Uint `protobuf:"bytes,2,opt,name=id,proto3,customtype=github.com/line/lbm-sdk/types.Uint" json:"id"` +} + +func (m *NextTokenID) Reset() { *m = NextTokenID{} } +func (m *NextTokenID) String() string { return proto.CompactTextString(m) } +func (*NextTokenID) ProtoMessage() {} +func (*NextTokenID) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{11} +} +func (m *NextTokenID) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NextTokenID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NextTokenID.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NextTokenID) XXX_Merge(src proto.Message) { + xxx_messageInfo_NextTokenID.Merge(m, src) +} +func (m *NextTokenID) XXX_Size() int { + return m.Size() +} +func (m *NextTokenID) XXX_DiscardUnknown() { + xxx_messageInfo_NextTokenID.DiscardUnknown(m) +} + +var xxx_messageInfo_NextTokenID proto.InternalMessageInfo + +func (m *NextTokenID) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// ContractTokenRelations defines token relations belong to a contract. +type ContractTokenRelations struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // relations + Relations []TokenRelation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations"` +} + +func (m *ContractTokenRelations) Reset() { *m = ContractTokenRelations{} } +func (m *ContractTokenRelations) String() string { return proto.CompactTextString(m) } +func (*ContractTokenRelations) ProtoMessage() {} +func (*ContractTokenRelations) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{12} +} +func (m *ContractTokenRelations) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractTokenRelations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractTokenRelations.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractTokenRelations) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractTokenRelations.Merge(m, src) +} +func (m *ContractTokenRelations) XXX_Size() int { + return m.Size() +} +func (m *ContractTokenRelations) XXX_DiscardUnknown() { + xxx_messageInfo_ContractTokenRelations.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractTokenRelations proto.InternalMessageInfo + +func (m *ContractTokenRelations) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractTokenRelations) GetRelations() []TokenRelation { + if m != nil { + return m.Relations + } + return nil +} + +// TokenRelation defines relations between two tokens. +type TokenRelation struct { + // self + Self string `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"` + // other + Other string `protobuf:"bytes,2,opt,name=other,proto3" json:"other,omitempty"` +} + +func (m *TokenRelation) Reset() { *m = TokenRelation{} } +func (m *TokenRelation) String() string { return proto.CompactTextString(m) } +func (*TokenRelation) ProtoMessage() {} +func (*TokenRelation) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{13} +} +func (m *TokenRelation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenRelation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TokenRelation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenRelation.Merge(m, src) +} +func (m *TokenRelation) XXX_Size() int { + return m.Size() +} +func (m *TokenRelation) XXX_DiscardUnknown() { + xxx_messageInfo_TokenRelation.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenRelation proto.InternalMessageInfo + +func (m *TokenRelation) GetSelf() string { + if m != nil { + return m.Self + } + return "" +} + +func (m *TokenRelation) GetOther() string { + if m != nil { + return m.Other + } + return "" +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "lbm.collection.v1.GenesisState") + proto.RegisterType((*ContractBalances)(nil), "lbm.collection.v1.ContractBalances") + proto.RegisterType((*ContractStatistics)(nil), "lbm.collection.v1.ContractStatistics") + proto.RegisterType((*ClassStatistics)(nil), "lbm.collection.v1.ClassStatistics") + proto.RegisterType((*Balance)(nil), "lbm.collection.v1.Balance") + proto.RegisterType((*ContractClasses)(nil), "lbm.collection.v1.ContractClasses") + proto.RegisterType((*ContractNFTs)(nil), "lbm.collection.v1.ContractNFTs") + proto.RegisterType((*ContractAuthorizations)(nil), "lbm.collection.v1.ContractAuthorizations") + proto.RegisterType((*ContractGrants)(nil), "lbm.collection.v1.ContractGrants") + proto.RegisterType((*NextClassIDs)(nil), "lbm.collection.v1.NextClassIDs") + proto.RegisterType((*ContractNextTokenIDs)(nil), "lbm.collection.v1.ContractNextTokenIDs") + proto.RegisterType((*NextTokenID)(nil), "lbm.collection.v1.NextTokenID") + proto.RegisterType((*ContractTokenRelations)(nil), "lbm.collection.v1.ContractTokenRelations") + proto.RegisterType((*TokenRelation)(nil), "lbm.collection.v1.TokenRelation") +} + +func init() { proto.RegisterFile("lbm/collection/v1/genesis.proto", fileDescriptor_2b8b3f666cffb1ec) } + +var fileDescriptor_2b8b3f666cffb1ec = []byte{ + // 914 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0x8f, 0x13, 0xc7, 0x7f, 0x9e, 0xdd, 0x14, 0x46, 0x51, 0xd9, 0x04, 0xc9, 0x4e, 0x07, 0x10, + 0x2d, 0x52, 0x77, 0x69, 0x91, 0x40, 0xad, 0x50, 0xab, 0x38, 0x25, 0xc1, 0x42, 0x54, 0xc8, 0x0d, + 0x42, 0xe2, 0x62, 0xed, 0x9f, 0xc9, 0x66, 0xd4, 0xf5, 0x8c, 0xd9, 0x19, 0x47, 0x49, 0x2f, 0x3d, + 0x73, 0xe3, 0x23, 0x70, 0xe6, 0xcc, 0x67, 0x40, 0x15, 0xa7, 0x1e, 0x11, 0x87, 0x82, 0x92, 0x0b, + 0x1f, 0x03, 0xed, 0xcc, 0xec, 0x66, 0x6d, 0x6f, 0x76, 0xd5, 0xde, 0x76, 0x66, 0x7e, 0x7f, 0xde, + 0x3c, 0xbf, 0xf7, 0xc6, 0xd0, 0x8f, 0xbc, 0x89, 0xe3, 0xf3, 0x28, 0x22, 0xbe, 0xa4, 0x9c, 0x39, + 0x27, 0x77, 0x9d, 0x90, 0x30, 0x22, 0xa8, 0xb0, 0xa7, 0x31, 0x97, 0x1c, 0xbd, 0x1b, 0x79, 0x13, + 0xfb, 0x12, 0x60, 0x9f, 0xdc, 0xdd, 0xde, 0x0a, 0x39, 0x0f, 0x23, 0xe2, 0x28, 0x80, 0x37, 0x3b, + 0x72, 0x5c, 0x76, 0xa6, 0xd1, 0xdb, 0x9b, 0x21, 0x0f, 0xb9, 0xfa, 0x74, 0x92, 0x2f, 0xb3, 0xbb, + 0xe5, 0x73, 0x31, 0xe1, 0x62, 0xac, 0x0f, 0xf4, 0xc2, 0x1c, 0xe1, 0x65, 0xff, 0x9c, 0x99, 0xc2, + 0xe0, 0x8b, 0x06, 0x74, 0x0f, 0x74, 0x50, 0x4f, 0xa5, 0x2b, 0x09, 0xfa, 0x02, 0x1a, 0x53, 0x37, + 0x76, 0x27, 0xc2, 0xaa, 0xed, 0xd4, 0x6e, 0x75, 0xee, 0x6d, 0xd9, 0x4b, 0x41, 0xda, 0xdf, 0x29, + 0xc0, 0xa0, 0xfe, 0xf2, 0x75, 0x7f, 0x65, 0x64, 0xe0, 0xe8, 0x11, 0xb4, 0x7d, 0xce, 0x64, 0xec, + 0xfa, 0x52, 0x58, 0xab, 0x3b, 0x6b, 0xb7, 0x3a, 0xf7, 0xde, 0x2f, 0xe0, 0xee, 0x19, 0x8c, 0x61, + 0x5f, 0x72, 0xd0, 0x37, 0xb0, 0xc1, 0xc8, 0xa9, 0x1c, 0xfb, 0x91, 0x2b, 0xc4, 0x98, 0x06, 0xc2, + 0x5a, 0x53, 0x2a, 0xfd, 0x02, 0x95, 0x27, 0xe4, 0x54, 0xee, 0x25, 0xb8, 0xe1, 0xe3, 0x34, 0x8e, + 0x2e, 0xcb, 0xf6, 0x02, 0x81, 0x06, 0xd0, 0x54, 0x3a, 0x44, 0x58, 0x75, 0xa5, 0x82, 0x4b, 0x62, + 0xd9, 0xd3, 0x48, 0x23, 0x94, 0x12, 0xd1, 0x53, 0x13, 0x90, 0xe4, 0xcf, 0x08, 0x53, 0x01, 0xad, + 0x2b, 0xa9, 0x8f, 0x4b, 0xa4, 0x92, 0xc0, 0x0e, 0x13, 0xfc, 0x42, 0x60, 0x7a, 0x2f, 0x10, 0xe8, + 0x2b, 0x68, 0x79, 0x6e, 0xe4, 0x32, 0x9f, 0x08, 0xab, 0xa1, 0xe4, 0x3e, 0x28, 0xcb, 0x92, 0x81, + 0x1a, 0xa9, 0x8c, 0x8a, 0xee, 0x43, 0x9d, 0x1d, 0x49, 0x61, 0x35, 0xaf, 0x4c, 0x51, 0x16, 0xd1, + 0xfe, 0x61, 0x4a, 0x57, 0x14, 0x34, 0x84, 0xe6, 0xd4, 0x8d, 0x09, 0x93, 0xc2, 0x6a, 0x29, 0xf6, + 0xed, 0x12, 0xb6, 0x8a, 0x7b, 0x44, 0x22, 0x37, 0x39, 0xc8, 0x32, 0x64, 0xf8, 0xe8, 0x11, 0x34, + 0xc2, 0xd8, 0x4d, 0x94, 0xda, 0x4a, 0xe9, 0x66, 0x89, 0xd2, 0x81, 0x02, 0xa6, 0x45, 0xa3, 0x69, + 0xe8, 0x07, 0xd8, 0x70, 0x67, 0xf2, 0x98, 0xc7, 0xf4, 0xb9, 0x76, 0xb0, 0xa0, 0x32, 0xa4, 0xdd, + 0x39, 0x82, 0x11, 0x5c, 0x90, 0x41, 0x07, 0xd0, 0x12, 0xb3, 0xe9, 0x34, 0xa2, 0x44, 0x58, 0x1d, + 0x25, 0xf9, 0x51, 0x89, 0x64, 0x52, 0xfa, 0x54, 0x48, 0xea, 0x67, 0x89, 0x4e, 0xc9, 0x68, 0x0f, + 0x1a, 0xde, 0x2c, 0x4e, 0xae, 0xd8, 0x7d, 0x73, 0x19, 0x43, 0xc5, 0x3f, 0xc1, 0x3b, 0x8b, 0xbf, + 0x28, 0xea, 0x43, 0x27, 0xad, 0xfd, 0x31, 0x0d, 0x54, 0xb7, 0xb5, 0x47, 0x90, 0x6e, 0x0d, 0x03, + 0xf4, 0x65, 0xae, 0x52, 0x74, 0x3f, 0x6d, 0x17, 0x78, 0x1b, 0xbd, 0xc5, 0x02, 0xc1, 0x2f, 0x00, + 0x2d, 0x87, 0x55, 0x6d, 0xfa, 0x35, 0x80, 0xc8, 0xe0, 0xc6, 0xb6, 0xb0, 0x75, 0x92, 0x1e, 0x59, + 0xba, 0x6f, 0x8e, 0x8b, 0x39, 0x5c, 0x5f, 0x00, 0xa1, 0x2d, 0x68, 0xa5, 0xcd, 0x6d, 0xac, 0x75, + 0xaf, 0x0d, 0x03, 0xb4, 0x0b, 0x0d, 0x77, 0xc2, 0x67, 0x4c, 0x5a, 0xab, 0xc9, 0xc1, 0xe0, 0x76, + 0xa2, 0xf7, 0xf7, 0xeb, 0xfe, 0xcd, 0x90, 0xca, 0xe3, 0x99, 0x67, 0xfb, 0x7c, 0xe2, 0x44, 0x94, + 0x11, 0x27, 0xf2, 0x26, 0x77, 0x44, 0xf0, 0xcc, 0x91, 0x67, 0x53, 0x22, 0xec, 0x21, 0x93, 0x23, + 0x43, 0xc4, 0x14, 0x9a, 0x26, 0x19, 0xc8, 0x82, 0xa6, 0x1b, 0x04, 0x31, 0x11, 0x22, 0xf5, 0x31, + 0x4b, 0xf4, 0x30, 0xe7, 0x93, 0xdc, 0xed, 0xbd, 0xc2, 0x9f, 0x93, 0xb2, 0xc1, 0xb5, 0x24, 0x80, + 0xdf, 0xfe, 0xe9, 0xaf, 0x27, 0x2b, 0x91, 0x9a, 0x3c, 0xa8, 0xff, 0xf7, 0x6b, 0xbf, 0x86, 0x4f, + 0xe0, 0xfa, 0xc2, 0xec, 0xa8, 0xce, 0x6c, 0x6e, 0x22, 0x69, 0xeb, 0x4d, 0x5b, 0xcf, 0x7a, 0x3b, + 0x9d, 0xf5, 0xf6, 0x2e, 0x3b, 0x1b, 0xa0, 0xc4, 0xf7, 0xcf, 0xdf, 0xef, 0x80, 0xea, 0x3c, 0xa5, + 0x9e, 0x4d, 0x24, 0xec, 0x42, 0x37, 0xdf, 0xd6, 0xd5, 0xa6, 0x9f, 0x9a, 0x31, 0xa1, 0x1d, 0x6f, + 0x14, 0x4d, 0xd2, 0xfd, 0xc3, 0xfc, 0x74, 0xc0, 0x3f, 0xd7, 0xe0, 0x46, 0x71, 0xa7, 0x55, 0xbb, + 0x3d, 0x59, 0xea, 0x66, 0xed, 0xbb, 0x53, 0xe0, 0x3b, 0xa7, 0x5d, 0xdc, 0xc4, 0x98, 0xc2, 0xc6, + 0xfc, 0xf4, 0xa8, 0x0e, 0xe1, 0xf3, 0x6c, 0x22, 0x69, 0x6b, 0xab, 0xc0, 0x5a, 0x69, 0xcd, 0x0f, + 0x22, 0xfc, 0x47, 0x0d, 0xba, 0xf9, 0x47, 0xa5, 0xda, 0x69, 0x1f, 0x5a, 0x47, 0x33, 0x16, 0x52, + 0x2f, 0x22, 0xa6, 0x66, 0x3f, 0x31, 0x35, 0x8b, 0xcb, 0x6b, 0xf6, 0x7b, 0xca, 0xe4, 0x28, 0xe3, + 0xa2, 0x6f, 0xa1, 0xcb, 0x38, 0x1b, 0x67, 0x5a, 0x6b, 0x6f, 0xac, 0xd5, 0x61, 0x9c, 0xed, 0x1b, + 0x3a, 0x7e, 0x0e, 0x9b, 0x45, 0x6f, 0x51, 0xf5, 0x7d, 0x76, 0xa1, 0x7d, 0xf9, 0xd0, 0xe9, 0xe4, + 0xf5, 0xae, 0x78, 0x79, 0x8d, 0x68, 0x3a, 0x73, 0xa4, 0x79, 0xdb, 0x70, 0x00, 0x9d, 0xdc, 0x71, + 0x59, 0xbb, 0x3f, 0x80, 0x55, 0x1a, 0xbc, 0x45, 0xda, 0x56, 0x69, 0x80, 0x5f, 0x5c, 0x16, 0xe8, + 0xfc, 0xeb, 0x54, 0x7d, 0xc7, 0xc7, 0xd0, 0x8e, 0x53, 0x74, 0x49, 0x6d, 0xce, 0xc9, 0xa6, 0x7f, + 0x54, 0x32, 0x22, 0xbe, 0x0f, 0xd7, 0xe6, 0x10, 0x08, 0x41, 0x5d, 0x90, 0xe8, 0xc8, 0x18, 0xaa, + 0x6f, 0xb4, 0x09, 0xeb, 0x5c, 0x1e, 0x93, 0x58, 0x5f, 0x72, 0xa4, 0x17, 0x83, 0x87, 0x2f, 0xcf, + 0x7b, 0xb5, 0x57, 0xe7, 0xbd, 0xda, 0xbf, 0xe7, 0xbd, 0xda, 0x2f, 0x17, 0xbd, 0x95, 0x57, 0x17, + 0xbd, 0x95, 0xbf, 0x2e, 0x7a, 0x2b, 0x3f, 0x7e, 0x78, 0xd5, 0xed, 0x4f, 0x73, 0x7f, 0xda, 0xbc, + 0x86, 0x9a, 0x15, 0x9f, 0xfd, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x21, 0xb1, 0x0f, 0x5b, 0x0a, + 0x00, 0x00, +} + +func (this *Balance) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Balance) + if !ok { + that2, ok := that.(Balance) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Address != that1.Address { + return false + } + if len(this.Amount) != len(that1.Amount) { + return false + } + for i := range this.Amount { + if !this.Amount[i].Equal(&that1.Amount[i]) { + return false + } + } + return true +} +func (m *GenesisState) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Burnts) > 0 { + for iNdEx := len(m.Burnts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Burnts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if len(m.Supplies) > 0 { + for iNdEx := len(m.Supplies) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Supplies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.Authorizations) > 0 { + for iNdEx := len(m.Authorizations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Authorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.Grants) > 0 { + for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.Parents) > 0 { + for iNdEx := len(m.Parents) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Parents[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.Nfts) > 0 { + for iNdEx := len(m.Nfts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nfts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.NextTokenIds) > 0 { + for iNdEx := len(m.NextTokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NextTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.Classes) > 0 { + for iNdEx := len(m.Classes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Classes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.NextClassIds) > 0 { + for iNdEx := len(m.NextClassIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NextClassIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Contracts) > 0 { + for iNdEx := len(m.Contracts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Contracts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ContractBalances) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractBalances) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractBalances) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractStatistics) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractStatistics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractStatistics) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Statistics) > 0 { + for iNdEx := len(m.Statistics) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Statistics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClassStatistics) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClassStatistics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClassStatistics) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Balance) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Balance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractClasses) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractClasses) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractClasses) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Classes) > 0 { + for iNdEx := len(m.Classes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Classes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractNFTs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractNFTs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractNFTs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Nfts) > 0 { + for iNdEx := len(m.Nfts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nfts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractAuthorizations) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractAuthorizations) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractAuthorizations) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Authorizations) > 0 { + for iNdEx := len(m.Authorizations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Authorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractGrants) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractGrants) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractGrants) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Grants) > 0 { + for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NextClassIDs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NextClassIDs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NextClassIDs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.NonFungible.Size() + i -= size + if _, err := m.NonFungible.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.Fungible.Size() + i -= size + if _, err := m.Fungible.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractNextTokenIDs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractNextTokenIDs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractNextTokenIDs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NextTokenID) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NextTokenID) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NextTokenID) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Id.Size() + i -= size + if _, err := m.Id.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractTokenRelations) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractTokenRelations) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractTokenRelations) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Relations) > 0 { + for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Relations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TokenRelation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TokenRelation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Other) > 0 { + i -= len(m.Other) + copy(dAtA[i:], m.Other) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Other))) + i-- + dAtA[i] = 0x12 + } + if len(m.Self) > 0 { + i -= len(m.Self) + copy(dAtA[i:], m.Self) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Self))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.Contracts) > 0 { + for _, e := range m.Contracts { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.NextClassIds) > 0 { + for _, e := range m.NextClassIds { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Classes) > 0 { + for _, e := range m.Classes { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.NextTokenIds) > 0 { + for _, e := range m.NextTokenIds { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Nfts) > 0 { + for _, e := range m.Nfts { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Parents) > 0 { + for _, e := range m.Parents { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Grants) > 0 { + for _, e := range m.Grants { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Authorizations) > 0 { + for _, e := range m.Authorizations { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Supplies) > 0 { + for _, e := range m.Supplies { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Burnts) > 0 { + for _, e := range m.Burnts { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractBalances) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractStatistics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Statistics) > 0 { + for _, e := range m.Statistics { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ClassStatistics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *Balance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractClasses) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Classes) > 0 { + for _, e := range m.Classes { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractNFTs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Nfts) > 0 { + for _, e := range m.Nfts { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractAuthorizations) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Authorizations) > 0 { + for _, e := range m.Authorizations { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractGrants) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Grants) > 0 { + for _, e := range m.Grants { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *NextClassIDs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.Fungible.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.NonFungible.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *ContractNextTokenIDs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *NextTokenID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.Id.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *ContractTokenRelations) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Relations) > 0 { + for _, e := range m.Relations { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *TokenRelation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Self) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Other) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contracts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Contracts = append(m.Contracts, Contract{}) + if err := m.Contracts[len(m.Contracts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextClassIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextClassIds = append(m.NextClassIds, NextClassIDs{}) + if err := m.NextClassIds[len(m.NextClassIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Classes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Classes = append(m.Classes, ContractClasses{}) + if err := m.Classes[len(m.Classes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextTokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextTokenIds = append(m.NextTokenIds, ContractNextTokenIDs{}) + if err := m.NextTokenIds[len(m.NextTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, ContractBalances{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nfts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nfts = append(m.Nfts, ContractNFTs{}) + if err := m.Nfts[len(m.Nfts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parents", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parents = append(m.Parents, ContractTokenRelations{}) + if err := m.Parents[len(m.Parents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grants = append(m.Grants, ContractGrants{}) + if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authorizations = append(m.Authorizations, ContractAuthorizations{}) + if err := m.Authorizations[len(m.Authorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Supplies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Supplies = append(m.Supplies, ContractStatistics{}) + if err := m.Supplies[len(m.Supplies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Burnts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Burnts = append(m.Burnts, ContractStatistics{}) + if err := m.Burnts[len(m.Burnts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractBalances) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractBalances: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractBalances: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, Balance{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractStatistics) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractStatistics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractStatistics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Statistics = append(m.Statistics, ClassStatistics{}) + if err := m.Statistics[len(m.Statistics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClassStatistics) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClassStatistics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClassStatistics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Balance) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Balance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Balance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractClasses) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractClasses: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractClasses: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Classes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Classes = append(m.Classes, types.Any{}) + if err := m.Classes[len(m.Classes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractNFTs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractNFTs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractNFTs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nfts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nfts = append(m.Nfts, NFT{}) + if err := m.Nfts[len(m.Nfts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractAuthorizations) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractAuthorizations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractAuthorizations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authorizations = append(m.Authorizations, Authorization{}) + if err := m.Authorizations[len(m.Authorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractGrants) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractGrants: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractGrants: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grants = append(m.Grants, Grant{}) + if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NextClassIDs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NextClassIDs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NextClassIDs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fungible", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Fungible.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NonFungible", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NonFungible.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractNextTokenIDs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractNextTokenIDs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractNextTokenIDs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, NextTokenID{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NextTokenID) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NextTokenID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NextTokenID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractTokenRelations) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractTokenRelations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractTokenRelations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Relations = append(m.Relations, TokenRelation{}) + if err := m.Relations[len(m.Relations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TokenRelation) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TokenRelation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenRelation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Self", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Self = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Other", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Other = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/collection/query.pb.go b/x/collection/query.pb.go new file mode 100644 index 0000000000..7cf5e98605 --- /dev/null +++ b/x/collection/query.pb.go @@ -0,0 +1,15116 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/query.proto + +package collection + +import ( + context "context" + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + types "github.com/line/lbm-sdk/codec/types" + github_com_line_lbm_sdk_types "github.com/line/lbm-sdk/types" + query "github.com/line/lbm-sdk/types/query" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// QueryBalanceRequest is the request type for the Query/Balance RPC method. +type QueryBalanceRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address is the address to query the balance for. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // token id associated with the token. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryBalanceRequest) Reset() { *m = QueryBalanceRequest{} } +func (m *QueryBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryBalanceRequest) ProtoMessage() {} +func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{0} +} +func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBalanceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBalanceRequest.Merge(m, src) +} +func (m *QueryBalanceRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBalanceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBalanceRequest proto.InternalMessageInfo + +func (m *QueryBalanceRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryBalanceRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryBalanceRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// QueryBalanceResponse is the response type for the Query/Balance RPC method. +type QueryBalanceResponse struct { + // balance is the balance of the token. + Balance Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance"` +} + +func (m *QueryBalanceResponse) Reset() { *m = QueryBalanceResponse{} } +func (m *QueryBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryBalanceResponse) ProtoMessage() {} +func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{1} +} +func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBalanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBalanceResponse.Merge(m, src) +} +func (m *QueryBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBalanceResponse proto.InternalMessageInfo + +func (m *QueryBalanceResponse) GetBalance() Coin { + if m != nil { + return m.Balance + } + return Coin{} +} + +// QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method. +// +// Since: 0.46.0 (finschia) +type QueryAllBalancesRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address is the address to query the balances for. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllBalancesRequest) Reset() { *m = QueryAllBalancesRequest{} } +func (m *QueryAllBalancesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllBalancesRequest) ProtoMessage() {} +func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{2} +} +func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllBalancesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllBalancesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllBalancesRequest.Merge(m, src) +} +func (m *QueryAllBalancesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllBalancesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllBalancesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllBalancesRequest proto.InternalMessageInfo + +func (m *QueryAllBalancesRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryAllBalancesRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryAllBalancesRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method. +// +// Since: 0.46.0 (finschia) +type QueryAllBalancesResponse struct { + // balances is the balalces of all the tokens. + Balances []Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllBalancesResponse) Reset() { *m = QueryAllBalancesResponse{} } +func (m *QueryAllBalancesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllBalancesResponse) ProtoMessage() {} +func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{3} +} +func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllBalancesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllBalancesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllBalancesResponse.Merge(m, src) +} +func (m *QueryAllBalancesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllBalancesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllBalancesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllBalancesResponse proto.InternalMessageInfo + +func (m *QueryAllBalancesResponse) GetBalances() []Coin { + if m != nil { + return m.Balances + } + return nil +} + +func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QuerySupplyRequest is the request type for the Query/Supply RPC method. +// +// Since: 0.46.0 (finschia) +type QuerySupplyRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` +} + +func (m *QuerySupplyRequest) Reset() { *m = QuerySupplyRequest{} } +func (m *QuerySupplyRequest) String() string { return proto.CompactTextString(m) } +func (*QuerySupplyRequest) ProtoMessage() {} +func (*QuerySupplyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{4} +} +func (m *QuerySupplyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySupplyRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QuerySupplyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySupplyRequest.Merge(m, src) +} +func (m *QuerySupplyRequest) XXX_Size() int { + return m.Size() +} +func (m *QuerySupplyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySupplyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySupplyRequest proto.InternalMessageInfo + +func (m *QuerySupplyRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QuerySupplyRequest) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// QuerySupplyResponse is the response type for the Query/Supply RPC method. +// +// Since: 0.46.0 (finschia) +type QuerySupplyResponse struct { + // supply is the supply of the tokens. + Supply github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=supply,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"supply"` +} + +func (m *QuerySupplyResponse) Reset() { *m = QuerySupplyResponse{} } +func (m *QuerySupplyResponse) String() string { return proto.CompactTextString(m) } +func (*QuerySupplyResponse) ProtoMessage() {} +func (*QuerySupplyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{5} +} +func (m *QuerySupplyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySupplyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QuerySupplyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySupplyResponse.Merge(m, src) +} +func (m *QuerySupplyResponse) XXX_Size() int { + return m.Size() +} +func (m *QuerySupplyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySupplyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySupplyResponse proto.InternalMessageInfo + +// QueryMintedRequest is the request type for the Query/Minted RPC method. +// +// Since: 0.46.0 (finschia) +type QueryMintedRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` +} + +func (m *QueryMintedRequest) Reset() { *m = QueryMintedRequest{} } +func (m *QueryMintedRequest) String() string { return proto.CompactTextString(m) } +func (*QueryMintedRequest) ProtoMessage() {} +func (*QueryMintedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{6} +} +func (m *QueryMintedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMintedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMintedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryMintedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMintedRequest.Merge(m, src) +} +func (m *QueryMintedRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryMintedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMintedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMintedRequest proto.InternalMessageInfo + +func (m *QueryMintedRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryMintedRequest) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// QueryMintedResponse is the response type for the Query/Minted RPC method. +// +// Since: 0.46.0 (finschia) +type QueryMintedResponse struct { + // minted is the amount of the minted tokens. + Minted github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=minted,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"minted"` +} + +func (m *QueryMintedResponse) Reset() { *m = QueryMintedResponse{} } +func (m *QueryMintedResponse) String() string { return proto.CompactTextString(m) } +func (*QueryMintedResponse) ProtoMessage() {} +func (*QueryMintedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{7} +} +func (m *QueryMintedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMintedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMintedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryMintedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMintedResponse.Merge(m, src) +} +func (m *QueryMintedResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryMintedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMintedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMintedResponse proto.InternalMessageInfo + +// QueryBurntRequest is the request type for the Query/Burnt RPC method. +// +// Since: 0.46.0 (finschia) +type QueryBurntRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` +} + +func (m *QueryBurntRequest) Reset() { *m = QueryBurntRequest{} } +func (m *QueryBurntRequest) String() string { return proto.CompactTextString(m) } +func (*QueryBurntRequest) ProtoMessage() {} +func (*QueryBurntRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{8} +} +func (m *QueryBurntRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBurntRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBurntRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryBurntRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBurntRequest.Merge(m, src) +} +func (m *QueryBurntRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryBurntRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBurntRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBurntRequest proto.InternalMessageInfo + +func (m *QueryBurntRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryBurntRequest) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// QueryBurntResponse is the response type for the Query/Burnt RPC method. +// +// Since: 0.46.0 (finschia) +type QueryBurntResponse struct { + // burnt is the amount of the burnt tokens. + Burnt github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=burnt,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"burnt"` +} + +func (m *QueryBurntResponse) Reset() { *m = QueryBurntResponse{} } +func (m *QueryBurntResponse) String() string { return proto.CompactTextString(m) } +func (*QueryBurntResponse) ProtoMessage() {} +func (*QueryBurntResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{9} +} +func (m *QueryBurntResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBurntResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBurntResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryBurntResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBurntResponse.Merge(m, src) +} +func (m *QueryBurntResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryBurntResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBurntResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBurntResponse proto.InternalMessageInfo + +// Deprecated: use QuerySupplyRequest +// +// QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method. +type QueryFTSupplyRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated with the fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryFTSupplyRequest) Reset() { *m = QueryFTSupplyRequest{} } +func (m *QueryFTSupplyRequest) String() string { return proto.CompactTextString(m) } +func (*QueryFTSupplyRequest) ProtoMessage() {} +func (*QueryFTSupplyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{10} +} +func (m *QueryFTSupplyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFTSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFTSupplyRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFTSupplyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFTSupplyRequest.Merge(m, src) +} +func (m *QueryFTSupplyRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryFTSupplyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFTSupplyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFTSupplyRequest proto.InternalMessageInfo + +func (m *QueryFTSupplyRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryFTSupplyRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// Deprecated: do not use +// +// QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method. +type QueryFTSupplyResponse struct { + // supply is the supply of the tokens. + Supply github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=supply,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"supply"` +} + +func (m *QueryFTSupplyResponse) Reset() { *m = QueryFTSupplyResponse{} } +func (m *QueryFTSupplyResponse) String() string { return proto.CompactTextString(m) } +func (*QueryFTSupplyResponse) ProtoMessage() {} +func (*QueryFTSupplyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{11} +} +func (m *QueryFTSupplyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFTSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFTSupplyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFTSupplyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFTSupplyResponse.Merge(m, src) +} +func (m *QueryFTSupplyResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryFTSupplyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFTSupplyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFTSupplyResponse proto.InternalMessageInfo + +// Deprecated: use QueryMintedRequest +// +// QueryFTMintedRequest is the request type for the Query/FTMinted RPC method. +type QueryFTMintedRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated with the fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryFTMintedRequest) Reset() { *m = QueryFTMintedRequest{} } +func (m *QueryFTMintedRequest) String() string { return proto.CompactTextString(m) } +func (*QueryFTMintedRequest) ProtoMessage() {} +func (*QueryFTMintedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{12} +} +func (m *QueryFTMintedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFTMintedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFTMintedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFTMintedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFTMintedRequest.Merge(m, src) +} +func (m *QueryFTMintedRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryFTMintedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFTMintedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFTMintedRequest proto.InternalMessageInfo + +func (m *QueryFTMintedRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryFTMintedRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// Deprecated: do not use +// +// QueryFTMintedResponse is the response type for the Query/FTMinted RPC method. +type QueryFTMintedResponse struct { + // minted is the amount of the minted tokens. + Minted github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=minted,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"minted"` +} + +func (m *QueryFTMintedResponse) Reset() { *m = QueryFTMintedResponse{} } +func (m *QueryFTMintedResponse) String() string { return proto.CompactTextString(m) } +func (*QueryFTMintedResponse) ProtoMessage() {} +func (*QueryFTMintedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{13} +} +func (m *QueryFTMintedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFTMintedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFTMintedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFTMintedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFTMintedResponse.Merge(m, src) +} +func (m *QueryFTMintedResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryFTMintedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFTMintedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFTMintedResponse proto.InternalMessageInfo + +// Deprecated: use QueryBurntRequest +// +// QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method. +type QueryFTBurntRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated with the fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryFTBurntRequest) Reset() { *m = QueryFTBurntRequest{} } +func (m *QueryFTBurntRequest) String() string { return proto.CompactTextString(m) } +func (*QueryFTBurntRequest) ProtoMessage() {} +func (*QueryFTBurntRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{14} +} +func (m *QueryFTBurntRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFTBurntRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFTBurntRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFTBurntRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFTBurntRequest.Merge(m, src) +} +func (m *QueryFTBurntRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryFTBurntRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFTBurntRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFTBurntRequest proto.InternalMessageInfo + +func (m *QueryFTBurntRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryFTBurntRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// Deprecated: do not use +// +// QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. +type QueryFTBurntResponse struct { + // burnt is the amount of the burnt tokens. + Burnt github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=burnt,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"burnt"` +} + +func (m *QueryFTBurntResponse) Reset() { *m = QueryFTBurntResponse{} } +func (m *QueryFTBurntResponse) String() string { return proto.CompactTextString(m) } +func (*QueryFTBurntResponse) ProtoMessage() {} +func (*QueryFTBurntResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{15} +} +func (m *QueryFTBurntResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFTBurntResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFTBurntResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFTBurntResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFTBurntResponse.Merge(m, src) +} +func (m *QueryFTBurntResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryFTBurntResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFTBurntResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFTBurntResponse proto.InternalMessageInfo + +// Deprecated: use QuerySupplyRequest +// +// QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. +type QueryNFTSupplyRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type associated with the token type. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` +} + +func (m *QueryNFTSupplyRequest) Reset() { *m = QueryNFTSupplyRequest{} } +func (m *QueryNFTSupplyRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNFTSupplyRequest) ProtoMessage() {} +func (*QueryNFTSupplyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{16} +} +func (m *QueryNFTSupplyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTSupplyRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTSupplyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTSupplyRequest.Merge(m, src) +} +func (m *QueryNFTSupplyRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTSupplyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTSupplyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTSupplyRequest proto.InternalMessageInfo + +func (m *QueryNFTSupplyRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryNFTSupplyRequest) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +// Deprecated: do not use +// +// QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. +type QueryNFTSupplyResponse struct { + // supply is the supply of the non-fungible token. + Supply github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=supply,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"supply"` +} + +func (m *QueryNFTSupplyResponse) Reset() { *m = QueryNFTSupplyResponse{} } +func (m *QueryNFTSupplyResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNFTSupplyResponse) ProtoMessage() {} +func (*QueryNFTSupplyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{17} +} +func (m *QueryNFTSupplyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTSupplyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTSupplyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTSupplyResponse.Merge(m, src) +} +func (m *QueryNFTSupplyResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTSupplyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTSupplyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTSupplyResponse proto.InternalMessageInfo + +// Deprecated: use QueryMintedRequest +// +// QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. +type QueryNFTMintedRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type associated with the token type. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` +} + +func (m *QueryNFTMintedRequest) Reset() { *m = QueryNFTMintedRequest{} } +func (m *QueryNFTMintedRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNFTMintedRequest) ProtoMessage() {} +func (*QueryNFTMintedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{18} +} +func (m *QueryNFTMintedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTMintedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTMintedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTMintedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTMintedRequest.Merge(m, src) +} +func (m *QueryNFTMintedRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTMintedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTMintedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTMintedRequest proto.InternalMessageInfo + +func (m *QueryNFTMintedRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryNFTMintedRequest) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +// Deprecated: do not use +// +// QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. +type QueryNFTMintedResponse struct { + // minted is the amount of minted tokens. + Minted github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=minted,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"minted"` +} + +func (m *QueryNFTMintedResponse) Reset() { *m = QueryNFTMintedResponse{} } +func (m *QueryNFTMintedResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNFTMintedResponse) ProtoMessage() {} +func (*QueryNFTMintedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{19} +} +func (m *QueryNFTMintedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTMintedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTMintedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTMintedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTMintedResponse.Merge(m, src) +} +func (m *QueryNFTMintedResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTMintedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTMintedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTMintedResponse proto.InternalMessageInfo + +// Deprecated: use QueryBurntRequest +// +// QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. +type QueryNFTBurntRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type associated with the token type. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` +} + +func (m *QueryNFTBurntRequest) Reset() { *m = QueryNFTBurntRequest{} } +func (m *QueryNFTBurntRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNFTBurntRequest) ProtoMessage() {} +func (*QueryNFTBurntRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{20} +} +func (m *QueryNFTBurntRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTBurntRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTBurntRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTBurntRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTBurntRequest.Merge(m, src) +} +func (m *QueryNFTBurntRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTBurntRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTBurntRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTBurntRequest proto.InternalMessageInfo + +func (m *QueryNFTBurntRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryNFTBurntRequest) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +// Deprecated: do not use +// +// QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. +type QueryNFTBurntResponse struct { + // burnt is the amount of the burnt tokens. + Burnt github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=burnt,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"burnt"` +} + +func (m *QueryNFTBurntResponse) Reset() { *m = QueryNFTBurntResponse{} } +func (m *QueryNFTBurntResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNFTBurntResponse) ProtoMessage() {} +func (*QueryNFTBurntResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{21} +} +func (m *QueryNFTBurntResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTBurntResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTBurntResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTBurntResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTBurntResponse.Merge(m, src) +} +func (m *QueryNFTBurntResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTBurntResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTBurntResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTBurntResponse proto.InternalMessageInfo + +// QueryContractRequest is the request type for the Query/Contract RPC method. +type QueryContractRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` +} + +func (m *QueryContractRequest) Reset() { *m = QueryContractRequest{} } +func (m *QueryContractRequest) String() string { return proto.CompactTextString(m) } +func (*QueryContractRequest) ProtoMessage() {} +func (*QueryContractRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{22} +} +func (m *QueryContractRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryContractRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryContractRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryContractRequest.Merge(m, src) +} +func (m *QueryContractRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryContractRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryContractRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryContractRequest proto.InternalMessageInfo + +func (m *QueryContractRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +// QueryContractResponse is the response type for the Query/Contract RPC method. +type QueryContractResponse struct { + // contract is the information of the contract. + Contract Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract"` +} + +func (m *QueryContractResponse) Reset() { *m = QueryContractResponse{} } +func (m *QueryContractResponse) String() string { return proto.CompactTextString(m) } +func (*QueryContractResponse) ProtoMessage() {} +func (*QueryContractResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{23} +} +func (m *QueryContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryContractResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryContractResponse.Merge(m, src) +} +func (m *QueryContractResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryContractResponse proto.InternalMessageInfo + +func (m *QueryContractResponse) GetContract() Contract { + if m != nil { + return m.Contract + } + return Contract{} +} + +// QueryContractsRequest is the request type for the Query/Contracts RPC method. +// Since: 0.46.0 (finschia) +type QueryContractsRequest struct { + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryContractsRequest) Reset() { *m = QueryContractsRequest{} } +func (m *QueryContractsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryContractsRequest) ProtoMessage() {} +func (*QueryContractsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{24} +} +func (m *QueryContractsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryContractsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryContractsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryContractsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryContractsRequest.Merge(m, src) +} +func (m *QueryContractsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryContractsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryContractsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryContractsRequest proto.InternalMessageInfo + +func (m *QueryContractsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryContractsResponse is the response type for the Query/Contracts RPC method. +// Since: 0.46.0 (finschia) +type QueryContractsResponse struct { + // contracts are the informations of all the contracts. + Contracts []Contract `protobuf:"bytes,1,rep,name=contracts,proto3" json:"contracts"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryContractsResponse) Reset() { *m = QueryContractsResponse{} } +func (m *QueryContractsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryContractsResponse) ProtoMessage() {} +func (*QueryContractsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{25} +} +func (m *QueryContractsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryContractsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryContractsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryContractsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryContractsResponse.Merge(m, src) +} +func (m *QueryContractsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryContractsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryContractsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryContractsResponse proto.InternalMessageInfo + +func (m *QueryContractsResponse) GetContracts() []Contract { + if m != nil { + return m.Contracts + } + return nil +} + +func (m *QueryContractsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// Deprecated: use QueryTokenClassRequest +// +// QueryTokenTypeRequest is the request type for the Query/TokenType RPC method. +type QueryTokenTypeRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type associated with the token type. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` +} + +func (m *QueryTokenTypeRequest) Reset() { *m = QueryTokenTypeRequest{} } +func (m *QueryTokenTypeRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTokenTypeRequest) ProtoMessage() {} +func (*QueryTokenTypeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{26} +} +func (m *QueryTokenTypeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenTypeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokenTypeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenTypeRequest.Merge(m, src) +} +func (m *QueryTokenTypeRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenTypeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenTypeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenTypeRequest proto.InternalMessageInfo + +func (m *QueryTokenTypeRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryTokenTypeRequest) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +// Deprecated: do not use +// +// QueryTokenTypeResponse is the response type for the Query/TokenType RPC method. +type QueryTokenTypeResponse struct { + // token type is the information of the token type. + TokenType TokenType `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type"` +} + +func (m *QueryTokenTypeResponse) Reset() { *m = QueryTokenTypeResponse{} } +func (m *QueryTokenTypeResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTokenTypeResponse) ProtoMessage() {} +func (*QueryTokenTypeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{27} +} +func (m *QueryTokenTypeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenTypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenTypeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokenTypeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenTypeResponse.Merge(m, src) +} +func (m *QueryTokenTypeResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenTypeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenTypeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenTypeResponse proto.InternalMessageInfo + +func (m *QueryTokenTypeResponse) GetTokenType() TokenType { + if m != nil { + return m.TokenType + } + return TokenType{} +} + +// Deprecated: do not use +// +// QueryTokenTypesRequest is the request type for the Query/TokenTypes RPC method. +type QueryTokenTypesRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryTokenTypesRequest) Reset() { *m = QueryTokenTypesRequest{} } +func (m *QueryTokenTypesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTokenTypesRequest) ProtoMessage() {} +func (*QueryTokenTypesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{28} +} +func (m *QueryTokenTypesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenTypesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokenTypesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenTypesRequest.Merge(m, src) +} +func (m *QueryTokenTypesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenTypesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenTypesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenTypesRequest proto.InternalMessageInfo + +func (m *QueryTokenTypesRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryTokenTypesRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// Deprecated: do not use +// +// QueryTokenTypesResponse is the response type for the Query/TokenTypes RPC method. +type QueryTokenTypesResponse struct { + // token types is the informations of all the token types. + TokenTypes []TokenType `protobuf:"bytes,1,rep,name=token_types,json=tokenTypes,proto3" json:"token_types"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryTokenTypesResponse) Reset() { *m = QueryTokenTypesResponse{} } +func (m *QueryTokenTypesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTokenTypesResponse) ProtoMessage() {} +func (*QueryTokenTypesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{29} +} +func (m *QueryTokenTypesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenTypesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokenTypesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenTypesResponse.Merge(m, src) +} +func (m *QueryTokenTypesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenTypesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenTypesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenTypesResponse proto.InternalMessageInfo + +func (m *QueryTokenTypesResponse) GetTokenTypes() []TokenType { + if m != nil { + return m.TokenTypes + } + return nil +} + +func (m *QueryTokenTypesResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// Deprecated: use QueryFTClassRequest or QueryNFTRequest +// +// QueryTokenRequest is the request type for the Query/Token RPC method. +type QueryTokenRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated with the fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryTokenRequest) Reset() { *m = QueryTokenRequest{} } +func (m *QueryTokenRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTokenRequest) ProtoMessage() {} +func (*QueryTokenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{30} +} +func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenRequest.Merge(m, src) +} +func (m *QueryTokenRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenRequest proto.InternalMessageInfo + +func (m *QueryTokenRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryTokenRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// Deprecated: do not use +// +// QueryTokenResponse is the response type for the Query/Token RPC method. +type QueryTokenResponse struct { + // information of the token. + Token types.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` +} + +func (m *QueryTokenResponse) Reset() { *m = QueryTokenResponse{} } +func (m *QueryTokenResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTokenResponse) ProtoMessage() {} +func (*QueryTokenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{31} +} +func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenResponse.Merge(m, src) +} +func (m *QueryTokenResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenResponse proto.InternalMessageInfo + +func (m *QueryTokenResponse) GetToken() types.Any { + if m != nil { + return m.Token + } + return types.Any{} +} + +// Deprecated: do not use +// +// QueryTokensRequest is the request type for the Query/Tokens RPC method. +type QueryTokensRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryTokensRequest) Reset() { *m = QueryTokensRequest{} } +func (m *QueryTokensRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTokensRequest) ProtoMessage() {} +func (*QueryTokensRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{32} +} +func (m *QueryTokensRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokensRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokensRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokensRequest.Merge(m, src) +} +func (m *QueryTokensRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTokensRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokensRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokensRequest proto.InternalMessageInfo + +func (m *QueryTokensRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryTokensRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// Deprecated: do not use +// +// QueryTokensResponse is the response type for the Query/Tokens RPC method. +type QueryTokensResponse struct { + // informations of all the tokens. + Tokens []types.Any `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryTokensResponse) Reset() { *m = QueryTokensResponse{} } +func (m *QueryTokensResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTokensResponse) ProtoMessage() {} +func (*QueryTokensResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{33} +} +func (m *QueryTokensResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokensResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokensResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokensResponse.Merge(m, src) +} +func (m *QueryTokensResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTokensResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokensResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokensResponse proto.InternalMessageInfo + +func (m *QueryTokensResponse) GetTokens() []types.Any { + if m != nil { + return m.Tokens + } + return nil +} + +func (m *QueryTokensResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryFTClassRequest is the request type for the Query/FTClass RPC method. +// +// Since: 0.46.0 (finschia) +type QueryFTClassRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` +} + +func (m *QueryFTClassRequest) Reset() { *m = QueryFTClassRequest{} } +func (m *QueryFTClassRequest) String() string { return proto.CompactTextString(m) } +func (*QueryFTClassRequest) ProtoMessage() {} +func (*QueryFTClassRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{34} +} +func (m *QueryFTClassRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFTClassRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFTClassRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFTClassRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFTClassRequest.Merge(m, src) +} +func (m *QueryFTClassRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryFTClassRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFTClassRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFTClassRequest proto.InternalMessageInfo + +func (m *QueryFTClassRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryFTClassRequest) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// QueryFTClassResponse is the response type for the Query/FTClass RPC method. +// +// Since: 0.46.0 (finschia) +type QueryFTClassResponse struct { + // class is the information of the token class. + Class FTClass `protobuf:"bytes,1,opt,name=class,proto3" json:"class"` +} + +func (m *QueryFTClassResponse) Reset() { *m = QueryFTClassResponse{} } +func (m *QueryFTClassResponse) String() string { return proto.CompactTextString(m) } +func (*QueryFTClassResponse) ProtoMessage() {} +func (*QueryFTClassResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{35} +} +func (m *QueryFTClassResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFTClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFTClassResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFTClassResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFTClassResponse.Merge(m, src) +} +func (m *QueryFTClassResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryFTClassResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFTClassResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFTClassResponse proto.InternalMessageInfo + +func (m *QueryFTClassResponse) GetClass() FTClass { + if m != nil { + return m.Class + } + return FTClass{} +} + +// QueryNFTClassRequest is the request type for the Query/NFTClass RPC method. +// +// Since: 0.46.0 (finschia) +type QueryNFTClassRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` +} + +func (m *QueryNFTClassRequest) Reset() { *m = QueryNFTClassRequest{} } +func (m *QueryNFTClassRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNFTClassRequest) ProtoMessage() {} +func (*QueryNFTClassRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{36} +} +func (m *QueryNFTClassRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTClassRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTClassRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTClassRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTClassRequest.Merge(m, src) +} +func (m *QueryNFTClassRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTClassRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTClassRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTClassRequest proto.InternalMessageInfo + +func (m *QueryNFTClassRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryNFTClassRequest) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// QueryNFTClassResponse is the response type for the Query/NFTClass RPC method. +// +// Since: 0.46.0 (finschia) +type QueryNFTClassResponse struct { + // class is the information of the token class. + Class NFTClass `protobuf:"bytes,1,opt,name=class,proto3" json:"class"` +} + +func (m *QueryNFTClassResponse) Reset() { *m = QueryNFTClassResponse{} } +func (m *QueryNFTClassResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNFTClassResponse) ProtoMessage() {} +func (*QueryNFTClassResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{37} +} +func (m *QueryNFTClassResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTClassResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTClassResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTClassResponse.Merge(m, src) +} +func (m *QueryNFTClassResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTClassResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTClassResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTClassResponse proto.InternalMessageInfo + +func (m *QueryNFTClassResponse) GetClass() NFTClass { + if m != nil { + return m.Class + } + return NFTClass{} +} + +// QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +type QueryTokenClassTypeNameRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` +} + +func (m *QueryTokenClassTypeNameRequest) Reset() { *m = QueryTokenClassTypeNameRequest{} } +func (m *QueryTokenClassTypeNameRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTokenClassTypeNameRequest) ProtoMessage() {} +func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{38} +} +func (m *QueryTokenClassTypeNameRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenClassTypeNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenClassTypeNameRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokenClassTypeNameRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenClassTypeNameRequest.Merge(m, src) +} +func (m *QueryTokenClassTypeNameRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenClassTypeNameRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenClassTypeNameRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenClassTypeNameRequest proto.InternalMessageInfo + +func (m *QueryTokenClassTypeNameRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryTokenClassTypeNameRequest) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +type QueryTokenClassTypeNameResponse struct { + // type name of the token class. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *QueryTokenClassTypeNameResponse) Reset() { *m = QueryTokenClassTypeNameResponse{} } +func (m *QueryTokenClassTypeNameResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTokenClassTypeNameResponse) ProtoMessage() {} +func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{39} +} +func (m *QueryTokenClassTypeNameResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenClassTypeNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenClassTypeNameResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTokenClassTypeNameResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenClassTypeNameResponse.Merge(m, src) +} +func (m *QueryTokenClassTypeNameResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenClassTypeNameResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenClassTypeNameResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenClassTypeNameResponse proto.InternalMessageInfo + +func (m *QueryTokenClassTypeNameResponse) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// QueryNFTRequest is the request type for the Query/NFT RPC method. +// +// Since: 0.46.0 (finschia) +type QueryNFTRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated with the non-fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryNFTRequest) Reset() { *m = QueryNFTRequest{} } +func (m *QueryNFTRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNFTRequest) ProtoMessage() {} +func (*QueryNFTRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{40} +} +func (m *QueryNFTRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTRequest.Merge(m, src) +} +func (m *QueryNFTRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTRequest proto.InternalMessageInfo + +func (m *QueryNFTRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryNFTRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// QueryNFTResponse is the response type for the Query/NFT RPC method. +// +// Since: 0.46.0 (finschia) +type QueryNFTResponse struct { + // token is the information of the non-fungible token. + Token NFT `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` +} + +func (m *QueryNFTResponse) Reset() { *m = QueryNFTResponse{} } +func (m *QueryNFTResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNFTResponse) ProtoMessage() {} +func (*QueryNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{41} +} +func (m *QueryNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTResponse.Merge(m, src) +} +func (m *QueryNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTResponse proto.InternalMessageInfo + +func (m *QueryNFTResponse) GetToken() NFT { + if m != nil { + return m.Token + } + return NFT{} +} + +// QueryOwnerRequest is the request type for the Query/Owner RPC method. +// +// Since: 0.46.0 (finschia) +type QueryOwnerRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated with the non-fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryOwnerRequest) Reset() { *m = QueryOwnerRequest{} } +func (m *QueryOwnerRequest) String() string { return proto.CompactTextString(m) } +func (*QueryOwnerRequest) ProtoMessage() {} +func (*QueryOwnerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{42} +} +func (m *QueryOwnerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryOwnerRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryOwnerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOwnerRequest.Merge(m, src) +} +func (m *QueryOwnerRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryOwnerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOwnerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryOwnerRequest proto.InternalMessageInfo + +func (m *QueryOwnerRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryOwnerRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// QueryOwnerResponse is the response type for the Query/Owner RPC method. +// +// Since: 0.46.0 (finschia) +type QueryOwnerResponse struct { + // owner of the token. + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *QueryOwnerResponse) Reset() { *m = QueryOwnerResponse{} } +func (m *QueryOwnerResponse) String() string { return proto.CompactTextString(m) } +func (*QueryOwnerResponse) ProtoMessage() {} +func (*QueryOwnerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{43} +} +func (m *QueryOwnerResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryOwnerResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryOwnerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOwnerResponse.Merge(m, src) +} +func (m *QueryOwnerResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryOwnerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOwnerResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryOwnerResponse proto.InternalMessageInfo + +func (m *QueryOwnerResponse) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +// QueryRootRequest is the request type for the Query/Root RPC method. +type QueryRootRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated with the non-fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryRootRequest) Reset() { *m = QueryRootRequest{} } +func (m *QueryRootRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRootRequest) ProtoMessage() {} +func (*QueryRootRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{44} +} +func (m *QueryRootRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRootRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRootRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRootRequest.Merge(m, src) +} +func (m *QueryRootRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryRootRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRootRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRootRequest proto.InternalMessageInfo + +func (m *QueryRootRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryRootRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// QueryRootResponse is the response type for the Query/Root RPC method. +type QueryRootResponse struct { + // root is the information of the root token. + // it would return itself if it's the root token. + Root NFT `protobuf:"bytes,1,opt,name=root,proto3" json:"root"` +} + +func (m *QueryRootResponse) Reset() { *m = QueryRootResponse{} } +func (m *QueryRootResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRootResponse) ProtoMessage() {} +func (*QueryRootResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{45} +} +func (m *QueryRootResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRootResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRootResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRootResponse.Merge(m, src) +} +func (m *QueryRootResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryRootResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRootResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRootResponse proto.InternalMessageInfo + +func (m *QueryRootResponse) GetRoot() NFT { + if m != nil { + return m.Root + } + return NFT{} +} + +// QueryParentRequest is the request type for the Query/Parent RPC method. +type QueryParentRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated wit the non-fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryParentRequest) Reset() { *m = QueryParentRequest{} } +func (m *QueryParentRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParentRequest) ProtoMessage() {} +func (*QueryParentRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{46} +} +func (m *QueryParentRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParentRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParentRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParentRequest.Merge(m, src) +} +func (m *QueryParentRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParentRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParentRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParentRequest proto.InternalMessageInfo + +func (m *QueryParentRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryParentRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// QueryParentResponse is the response type for the Query/Parent RPC method. +type QueryParentResponse struct { + // parent is the information of the parent token. + // if there is no parent for the token, it would return nil. + Parent NFT `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent"` +} + +func (m *QueryParentResponse) Reset() { *m = QueryParentResponse{} } +func (m *QueryParentResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParentResponse) ProtoMessage() {} +func (*QueryParentResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{47} +} +func (m *QueryParentResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParentResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParentResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParentResponse.Merge(m, src) +} +func (m *QueryParentResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParentResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParentResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParentResponse proto.InternalMessageInfo + +func (m *QueryParentResponse) GetParent() NFT { + if m != nil { + return m.Parent + } + return NFT{} +} + +// QueryChildrenRequest is the request type for the Query/Children RPC method. +type QueryChildrenRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated with the non-fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryChildrenRequest) Reset() { *m = QueryChildrenRequest{} } +func (m *QueryChildrenRequest) String() string { return proto.CompactTextString(m) } +func (*QueryChildrenRequest) ProtoMessage() {} +func (*QueryChildrenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{48} +} +func (m *QueryChildrenRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryChildrenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryChildrenRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryChildrenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryChildrenRequest.Merge(m, src) +} +func (m *QueryChildrenRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryChildrenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryChildrenRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryChildrenRequest proto.InternalMessageInfo + +func (m *QueryChildrenRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryChildrenRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *QueryChildrenRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryChildrenResponse is the response type for the Query/Children RPC method. +type QueryChildrenResponse struct { + // children is the information of the child tokens. + Children []NFT `protobuf:"bytes,1,rep,name=children,proto3" json:"children"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryChildrenResponse) Reset() { *m = QueryChildrenResponse{} } +func (m *QueryChildrenResponse) String() string { return proto.CompactTextString(m) } +func (*QueryChildrenResponse) ProtoMessage() {} +func (*QueryChildrenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{49} +} +func (m *QueryChildrenResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryChildrenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryChildrenResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryChildrenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryChildrenResponse.Merge(m, src) +} +func (m *QueryChildrenResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryChildrenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryChildrenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryChildrenResponse proto.InternalMessageInfo + +func (m *QueryChildrenResponse) GetChildren() []NFT { + if m != nil { + return m.Children + } + return nil +} + +func (m *QueryChildrenResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryGrantRequest is the request type for the Query/Grant RPC method. +// +// Since: 0.46.0 (finschia) +type QueryGrantRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the grantee. + Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` +} + +func (m *QueryGrantRequest) Reset() { *m = QueryGrantRequest{} } +func (m *QueryGrantRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGrantRequest) ProtoMessage() {} +func (*QueryGrantRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{50} +} +func (m *QueryGrantRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGrantRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGrantRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGrantRequest.Merge(m, src) +} +func (m *QueryGrantRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGrantRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGrantRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGrantRequest proto.InternalMessageInfo + +func (m *QueryGrantRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryGrantRequest) GetGrantee() string { + if m != nil { + return m.Grantee + } + return "" +} + +func (m *QueryGrantRequest) GetPermission() Permission { + if m != nil { + return m.Permission + } + return PermissionUnspecified +} + +// QueryGrantResponse is the response type for the Query/Grant RPC method. +// +// Since: 0.46.0 (finschia) +type QueryGrantResponse struct { + // if no grant found for the request, it would be nil and return an error. + Grant Grant `protobuf:"bytes,1,opt,name=grant,proto3" json:"grant"` +} + +func (m *QueryGrantResponse) Reset() { *m = QueryGrantResponse{} } +func (m *QueryGrantResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGrantResponse) ProtoMessage() {} +func (*QueryGrantResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{51} +} +func (m *QueryGrantResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGrantResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGrantResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGrantResponse.Merge(m, src) +} +func (m *QueryGrantResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGrantResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGrantResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGrantResponse proto.InternalMessageInfo + +func (m *QueryGrantResponse) GetGrant() Grant { + if m != nil { + return m.Grant + } + return Grant{} +} + +// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. +// +// Since: 0.46.0 (finschia) +type QueryGranteeGrantsRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the grantee. + Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryGranteeGrantsRequest) Reset() { *m = QueryGranteeGrantsRequest{} } +func (m *QueryGranteeGrantsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGranteeGrantsRequest) ProtoMessage() {} +func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{52} +} +func (m *QueryGranteeGrantsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGranteeGrantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGranteeGrantsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGranteeGrantsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGranteeGrantsRequest.Merge(m, src) +} +func (m *QueryGranteeGrantsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGranteeGrantsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGranteeGrantsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGranteeGrantsRequest proto.InternalMessageInfo + +func (m *QueryGranteeGrantsRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryGranteeGrantsRequest) GetGrantee() string { + if m != nil { + return m.Grantee + } + return "" +} + +func (m *QueryGranteeGrantsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. +// +// Since: 0.46.0 (finschia) +type QueryGranteeGrantsResponse struct { + Grants []Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryGranteeGrantsResponse) Reset() { *m = QueryGranteeGrantsResponse{} } +func (m *QueryGranteeGrantsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGranteeGrantsResponse) ProtoMessage() {} +func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{53} +} +func (m *QueryGranteeGrantsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGranteeGrantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGranteeGrantsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGranteeGrantsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGranteeGrantsResponse.Merge(m, src) +} +func (m *QueryGranteeGrantsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGranteeGrantsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGranteeGrantsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGranteeGrantsResponse proto.InternalMessageInfo + +func (m *QueryGranteeGrantsResponse) GetGrants() []Grant { + if m != nil { + return m.Grants + } + return nil +} + +func (m *QueryGranteeGrantsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryAuthorizationRequest is the request type for the Query/Authorization RPC method. +// +// Since: 0.46.0 (finschia) +type QueryAuthorizationRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // the address of the token holder. + Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` +} + +func (m *QueryAuthorizationRequest) Reset() { *m = QueryAuthorizationRequest{} } +func (m *QueryAuthorizationRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAuthorizationRequest) ProtoMessage() {} +func (*QueryAuthorizationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{54} +} +func (m *QueryAuthorizationRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAuthorizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAuthorizationRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAuthorizationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAuthorizationRequest.Merge(m, src) +} +func (m *QueryAuthorizationRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAuthorizationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAuthorizationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAuthorizationRequest proto.InternalMessageInfo + +func (m *QueryAuthorizationRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryAuthorizationRequest) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *QueryAuthorizationRequest) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +// QueryAuthorizationResponse is the response type for the Query/Authorization RPC method. +// +// Since: 0.46.0 (finschia) +type QueryAuthorizationResponse struct { + // if no authorization found for the request, it would be nil. + Authorization Authorization `protobuf:"bytes,1,opt,name=authorization,proto3" json:"authorization"` +} + +func (m *QueryAuthorizationResponse) Reset() { *m = QueryAuthorizationResponse{} } +func (m *QueryAuthorizationResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAuthorizationResponse) ProtoMessage() {} +func (*QueryAuthorizationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{55} +} +func (m *QueryAuthorizationResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAuthorizationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAuthorizationResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAuthorizationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAuthorizationResponse.Merge(m, src) +} +func (m *QueryAuthorizationResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAuthorizationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAuthorizationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAuthorizationResponse proto.InternalMessageInfo + +func (m *QueryAuthorizationResponse) GetAuthorization() Authorization { + if m != nil { + return m.Authorization + } + return Authorization{} +} + +// QueryOperatorAuthorizationsRequest is the request type for the Query/OperatorAuthorizations RPC method. +// +// Since: 0.46.0 (finschia) +type QueryOperatorAuthorizationsRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryOperatorAuthorizationsRequest) Reset() { *m = QueryOperatorAuthorizationsRequest{} } +func (m *QueryOperatorAuthorizationsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryOperatorAuthorizationsRequest) ProtoMessage() {} +func (*QueryOperatorAuthorizationsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{56} +} +func (m *QueryOperatorAuthorizationsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryOperatorAuthorizationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryOperatorAuthorizationsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryOperatorAuthorizationsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOperatorAuthorizationsRequest.Merge(m, src) +} +func (m *QueryOperatorAuthorizationsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryOperatorAuthorizationsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOperatorAuthorizationsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryOperatorAuthorizationsRequest proto.InternalMessageInfo + +func (m *QueryOperatorAuthorizationsRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryOperatorAuthorizationsRequest) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *QueryOperatorAuthorizationsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryOperatorAuthorizationsResponse is the response type for the Query/OperatorAuthorizations RPC method. +// +// Since: 0.46.0 (finschia) +type QueryOperatorAuthorizationsResponse struct { + Authorizations []Authorization `protobuf:"bytes,1,rep,name=authorizations,proto3" json:"authorizations"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryOperatorAuthorizationsResponse) Reset() { *m = QueryOperatorAuthorizationsResponse{} } +func (m *QueryOperatorAuthorizationsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryOperatorAuthorizationsResponse) ProtoMessage() {} +func (*QueryOperatorAuthorizationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{57} +} +func (m *QueryOperatorAuthorizationsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryOperatorAuthorizationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryOperatorAuthorizationsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryOperatorAuthorizationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOperatorAuthorizationsResponse.Merge(m, src) +} +func (m *QueryOperatorAuthorizationsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryOperatorAuthorizationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOperatorAuthorizationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryOperatorAuthorizationsResponse proto.InternalMessageInfo + +func (m *QueryOperatorAuthorizationsResponse) GetAuthorizations() []Authorization { + if m != nil { + return m.Authorizations + } + return nil +} + +func (m *QueryOperatorAuthorizationsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// Deprecated: use QueryAuthorizationRequest +// +// QueryApprovedRequest is the request type for the Query/Approved RPC method. +type QueryApprovedRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the operator. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // the address of the token holder. + Approver string `protobuf:"bytes,3,opt,name=approver,proto3" json:"approver,omitempty"` +} + +func (m *QueryApprovedRequest) Reset() { *m = QueryApprovedRequest{} } +func (m *QueryApprovedRequest) String() string { return proto.CompactTextString(m) } +func (*QueryApprovedRequest) ProtoMessage() {} +func (*QueryApprovedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{58} +} +func (m *QueryApprovedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryApprovedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryApprovedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryApprovedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryApprovedRequest.Merge(m, src) +} +func (m *QueryApprovedRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryApprovedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryApprovedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryApprovedRequest proto.InternalMessageInfo + +func (m *QueryApprovedRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryApprovedRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryApprovedRequest) GetApprover() string { + if m != nil { + return m.Approver + } + return "" +} + +// Deprecated: do not use +// +// QueryApprovedResponse is the response type for the Query/Approved RPC method. +type QueryApprovedResponse struct { + Approved bool `protobuf:"varint,1,opt,name=approved,proto3" json:"approved,omitempty"` +} + +func (m *QueryApprovedResponse) Reset() { *m = QueryApprovedResponse{} } +func (m *QueryApprovedResponse) String() string { return proto.CompactTextString(m) } +func (*QueryApprovedResponse) ProtoMessage() {} +func (*QueryApprovedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{59} +} +func (m *QueryApprovedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryApprovedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryApprovedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryApprovedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryApprovedResponse.Merge(m, src) +} +func (m *QueryApprovedResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryApprovedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryApprovedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryApprovedResponse proto.InternalMessageInfo + +func (m *QueryApprovedResponse) GetApproved() bool { + if m != nil { + return m.Approved + } + return false +} + +// Deprecated: use QueryOperatorAuthorizations +// +// QueryApproversRequest is the request type for the Query/Approvers RPC method. +type QueryApproversRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the operator. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryApproversRequest) Reset() { *m = QueryApproversRequest{} } +func (m *QueryApproversRequest) String() string { return proto.CompactTextString(m) } +func (*QueryApproversRequest) ProtoMessage() {} +func (*QueryApproversRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{60} +} +func (m *QueryApproversRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryApproversRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryApproversRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryApproversRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryApproversRequest.Merge(m, src) +} +func (m *QueryApproversRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryApproversRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryApproversRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryApproversRequest proto.InternalMessageInfo + +func (m *QueryApproversRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryApproversRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryApproversRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// Deprecated: do not use +// +// QueryApproversResponse is the response type for the Query/Approvers RPC method. +type QueryApproversResponse struct { + Approvers []string `protobuf:"bytes,1,rep,name=approvers,proto3" json:"approvers,omitempty"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryApproversResponse) Reset() { *m = QueryApproversResponse{} } +func (m *QueryApproversResponse) String() string { return proto.CompactTextString(m) } +func (*QueryApproversResponse) ProtoMessage() {} +func (*QueryApproversResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{61} +} +func (m *QueryApproversResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryApproversResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryApproversResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryApproversResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryApproversResponse.Merge(m, src) +} +func (m *QueryApproversResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryApproversResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryApproversResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryApproversResponse proto.InternalMessageInfo + +func (m *QueryApproversResponse) GetApprovers() []string { + if m != nil { + return m.Approvers + } + return nil +} + +func (m *QueryApproversResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +func init() { + proto.RegisterType((*QueryBalanceRequest)(nil), "lbm.collection.v1.QueryBalanceRequest") + proto.RegisterType((*QueryBalanceResponse)(nil), "lbm.collection.v1.QueryBalanceResponse") + proto.RegisterType((*QueryAllBalancesRequest)(nil), "lbm.collection.v1.QueryAllBalancesRequest") + proto.RegisterType((*QueryAllBalancesResponse)(nil), "lbm.collection.v1.QueryAllBalancesResponse") + proto.RegisterType((*QuerySupplyRequest)(nil), "lbm.collection.v1.QuerySupplyRequest") + proto.RegisterType((*QuerySupplyResponse)(nil), "lbm.collection.v1.QuerySupplyResponse") + proto.RegisterType((*QueryMintedRequest)(nil), "lbm.collection.v1.QueryMintedRequest") + proto.RegisterType((*QueryMintedResponse)(nil), "lbm.collection.v1.QueryMintedResponse") + proto.RegisterType((*QueryBurntRequest)(nil), "lbm.collection.v1.QueryBurntRequest") + proto.RegisterType((*QueryBurntResponse)(nil), "lbm.collection.v1.QueryBurntResponse") + proto.RegisterType((*QueryFTSupplyRequest)(nil), "lbm.collection.v1.QueryFTSupplyRequest") + proto.RegisterType((*QueryFTSupplyResponse)(nil), "lbm.collection.v1.QueryFTSupplyResponse") + proto.RegisterType((*QueryFTMintedRequest)(nil), "lbm.collection.v1.QueryFTMintedRequest") + proto.RegisterType((*QueryFTMintedResponse)(nil), "lbm.collection.v1.QueryFTMintedResponse") + proto.RegisterType((*QueryFTBurntRequest)(nil), "lbm.collection.v1.QueryFTBurntRequest") + proto.RegisterType((*QueryFTBurntResponse)(nil), "lbm.collection.v1.QueryFTBurntResponse") + proto.RegisterType((*QueryNFTSupplyRequest)(nil), "lbm.collection.v1.QueryNFTSupplyRequest") + proto.RegisterType((*QueryNFTSupplyResponse)(nil), "lbm.collection.v1.QueryNFTSupplyResponse") + proto.RegisterType((*QueryNFTMintedRequest)(nil), "lbm.collection.v1.QueryNFTMintedRequest") + proto.RegisterType((*QueryNFTMintedResponse)(nil), "lbm.collection.v1.QueryNFTMintedResponse") + proto.RegisterType((*QueryNFTBurntRequest)(nil), "lbm.collection.v1.QueryNFTBurntRequest") + proto.RegisterType((*QueryNFTBurntResponse)(nil), "lbm.collection.v1.QueryNFTBurntResponse") + proto.RegisterType((*QueryContractRequest)(nil), "lbm.collection.v1.QueryContractRequest") + proto.RegisterType((*QueryContractResponse)(nil), "lbm.collection.v1.QueryContractResponse") + proto.RegisterType((*QueryContractsRequest)(nil), "lbm.collection.v1.QueryContractsRequest") + proto.RegisterType((*QueryContractsResponse)(nil), "lbm.collection.v1.QueryContractsResponse") + proto.RegisterType((*QueryTokenTypeRequest)(nil), "lbm.collection.v1.QueryTokenTypeRequest") + proto.RegisterType((*QueryTokenTypeResponse)(nil), "lbm.collection.v1.QueryTokenTypeResponse") + proto.RegisterType((*QueryTokenTypesRequest)(nil), "lbm.collection.v1.QueryTokenTypesRequest") + proto.RegisterType((*QueryTokenTypesResponse)(nil), "lbm.collection.v1.QueryTokenTypesResponse") + proto.RegisterType((*QueryTokenRequest)(nil), "lbm.collection.v1.QueryTokenRequest") + proto.RegisterType((*QueryTokenResponse)(nil), "lbm.collection.v1.QueryTokenResponse") + proto.RegisterType((*QueryTokensRequest)(nil), "lbm.collection.v1.QueryTokensRequest") + proto.RegisterType((*QueryTokensResponse)(nil), "lbm.collection.v1.QueryTokensResponse") + proto.RegisterType((*QueryFTClassRequest)(nil), "lbm.collection.v1.QueryFTClassRequest") + proto.RegisterType((*QueryFTClassResponse)(nil), "lbm.collection.v1.QueryFTClassResponse") + proto.RegisterType((*QueryNFTClassRequest)(nil), "lbm.collection.v1.QueryNFTClassRequest") + proto.RegisterType((*QueryNFTClassResponse)(nil), "lbm.collection.v1.QueryNFTClassResponse") + proto.RegisterType((*QueryTokenClassTypeNameRequest)(nil), "lbm.collection.v1.QueryTokenClassTypeNameRequest") + proto.RegisterType((*QueryTokenClassTypeNameResponse)(nil), "lbm.collection.v1.QueryTokenClassTypeNameResponse") + proto.RegisterType((*QueryNFTRequest)(nil), "lbm.collection.v1.QueryNFTRequest") + proto.RegisterType((*QueryNFTResponse)(nil), "lbm.collection.v1.QueryNFTResponse") + proto.RegisterType((*QueryOwnerRequest)(nil), "lbm.collection.v1.QueryOwnerRequest") + proto.RegisterType((*QueryOwnerResponse)(nil), "lbm.collection.v1.QueryOwnerResponse") + proto.RegisterType((*QueryRootRequest)(nil), "lbm.collection.v1.QueryRootRequest") + proto.RegisterType((*QueryRootResponse)(nil), "lbm.collection.v1.QueryRootResponse") + proto.RegisterType((*QueryParentRequest)(nil), "lbm.collection.v1.QueryParentRequest") + proto.RegisterType((*QueryParentResponse)(nil), "lbm.collection.v1.QueryParentResponse") + proto.RegisterType((*QueryChildrenRequest)(nil), "lbm.collection.v1.QueryChildrenRequest") + proto.RegisterType((*QueryChildrenResponse)(nil), "lbm.collection.v1.QueryChildrenResponse") + proto.RegisterType((*QueryGrantRequest)(nil), "lbm.collection.v1.QueryGrantRequest") + proto.RegisterType((*QueryGrantResponse)(nil), "lbm.collection.v1.QueryGrantResponse") + proto.RegisterType((*QueryGranteeGrantsRequest)(nil), "lbm.collection.v1.QueryGranteeGrantsRequest") + proto.RegisterType((*QueryGranteeGrantsResponse)(nil), "lbm.collection.v1.QueryGranteeGrantsResponse") + proto.RegisterType((*QueryAuthorizationRequest)(nil), "lbm.collection.v1.QueryAuthorizationRequest") + proto.RegisterType((*QueryAuthorizationResponse)(nil), "lbm.collection.v1.QueryAuthorizationResponse") + proto.RegisterType((*QueryOperatorAuthorizationsRequest)(nil), "lbm.collection.v1.QueryOperatorAuthorizationsRequest") + proto.RegisterType((*QueryOperatorAuthorizationsResponse)(nil), "lbm.collection.v1.QueryOperatorAuthorizationsResponse") + proto.RegisterType((*QueryApprovedRequest)(nil), "lbm.collection.v1.QueryApprovedRequest") + proto.RegisterType((*QueryApprovedResponse)(nil), "lbm.collection.v1.QueryApprovedResponse") + proto.RegisterType((*QueryApproversRequest)(nil), "lbm.collection.v1.QueryApproversRequest") + proto.RegisterType((*QueryApproversResponse)(nil), "lbm.collection.v1.QueryApproversResponse") +} + +func init() { proto.RegisterFile("lbm/collection/v1/query.proto", fileDescriptor_a09de688aac2ee73) } + +var fileDescriptor_a09de688aac2ee73 = []byte{ + // 2217 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x9a, 0xdf, 0x6f, 0x1c, 0x57, + 0x15, 0xc7, 0x73, 0x93, 0xec, 0x7a, 0xf7, 0x58, 0x29, 0xf4, 0x12, 0x52, 0x67, 0x48, 0x9c, 0x30, + 0x4d, 0x13, 0xc7, 0xb4, 0x3b, 0xd8, 0xa1, 0x49, 0x0b, 0x4d, 0x82, 0xed, 0xc6, 0xa9, 0xf3, 0x63, + 0xed, 0x2c, 0x6e, 0x1b, 0x15, 0xa4, 0x68, 0x76, 0x77, 0xea, 0x2c, 0xd9, 0x9d, 0xd9, 0xce, 0x8c, + 0x4d, 0x8d, 0xb5, 0x42, 0xf0, 0xc0, 0x1b, 0x12, 0x94, 0xb7, 0x08, 0xf2, 0x50, 0x10, 0xe5, 0x57, + 0x25, 0x90, 0x90, 0x78, 0xe3, 0x85, 0x97, 0x3e, 0x56, 0x20, 0x24, 0xc4, 0x43, 0x05, 0x09, 0x7f, + 0x08, 0x9a, 0x7b, 0xcf, 0x9d, 0x5f, 0x3b, 0x77, 0x67, 0x67, 0x7d, 0x41, 0x3c, 0xc5, 0x33, 0x73, + 0xee, 0xb9, 0x9f, 0x73, 0xee, 0xb9, 0x3f, 0xf6, 0x7b, 0x03, 0x27, 0xbb, 0xcd, 0x9e, 0xd1, 0x72, + 0xba, 0x5d, 0xab, 0xe5, 0x77, 0x1c, 0xdb, 0xd8, 0x59, 0x30, 0xde, 0xd9, 0xb6, 0xdc, 0xdd, 0x5a, + 0xdf, 0x75, 0x7c, 0x87, 0x3e, 0xdd, 0x6d, 0xf6, 0x6a, 0xd1, 0xe7, 0xda, 0xce, 0x82, 0x36, 0xdf, + 0x72, 0xbc, 0x9e, 0xe3, 0x19, 0x4d, 0xd3, 0xb3, 0xb8, 0xad, 0xb1, 0xb3, 0xd0, 0xb4, 0x7c, 0x73, + 0xc1, 0xe8, 0x9b, 0x5b, 0x1d, 0xdb, 0x64, 0x86, 0xac, 0xb9, 0x76, 0x62, 0xcb, 0x71, 0xb6, 0xba, + 0x96, 0x61, 0xf6, 0x3b, 0x86, 0x69, 0xdb, 0x8e, 0xcf, 0x3e, 0x7a, 0xf8, 0x55, 0x1f, 0xee, 0x3b, + 0xd6, 0x15, 0xb7, 0x39, 0x8e, 0x1e, 0xd8, 0x53, 0x73, 0xfb, 0x6d, 0xc3, 0xb4, 0x91, 0x4d, 0x3b, + 0xba, 0xe5, 0x6c, 0x39, 0xec, 0x4f, 0x23, 0xf8, 0x8b, 0xbf, 0xd5, 0x1f, 0xc0, 0x67, 0xee, 0x04, + 0x50, 0xcb, 0x66, 0xd7, 0xb4, 0x5b, 0x56, 0xc3, 0x7a, 0x67, 0xdb, 0xf2, 0x7c, 0x7a, 0x0a, 0xa6, + 0x5b, 0x8e, 0xed, 0xbb, 0x66, 0xcb, 0xbf, 0xd7, 0x69, 0xcf, 0x90, 0xd3, 0x64, 0xae, 0xda, 0x00, + 0xf1, 0x6a, 0xad, 0x4d, 0x67, 0x60, 0xca, 0x6c, 0xb7, 0x5d, 0xcb, 0xf3, 0x66, 0x0e, 0xb2, 0x8f, + 0xe2, 0x91, 0x1e, 0x87, 0x8a, 0xef, 0x3c, 0xb0, 0xec, 0xa0, 0xdd, 0x21, 0xfe, 0x89, 0x3d, 0xaf, + 0xb5, 0xf5, 0x75, 0x38, 0x9a, 0xec, 0xcc, 0xeb, 0x3b, 0xb6, 0x67, 0xd1, 0x4b, 0x30, 0xd5, 0xe4, + 0xaf, 0x58, 0x4f, 0xd3, 0x8b, 0xcf, 0xd4, 0x86, 0x12, 0x59, 0x5b, 0x71, 0x3a, 0xf6, 0xf2, 0xe1, + 0x8f, 0x3e, 0x39, 0x75, 0xa0, 0x21, 0xac, 0xf5, 0x9f, 0x10, 0x78, 0x86, 0x79, 0x5c, 0xea, 0x76, + 0xd1, 0xa9, 0xa7, 0x20, 0x84, 0x55, 0x80, 0x68, 0x6c, 0x58, 0x10, 0xd3, 0x8b, 0x67, 0x6b, 0x7c, + 0x20, 0x6b, 0xc1, 0x40, 0xd6, 0xf8, 0xa0, 0xe3, 0x40, 0xd6, 0x36, 0xcc, 0x2d, 0x91, 0xb9, 0x46, + 0xac, 0xa5, 0xfe, 0x88, 0xc0, 0xcc, 0x30, 0x1e, 0x06, 0xfd, 0x32, 0x54, 0x30, 0x0c, 0x6f, 0x86, + 0x9c, 0x3e, 0x94, 0x1f, 0x75, 0x68, 0x4e, 0xaf, 0x27, 0xf8, 0x0e, 0x32, 0xbe, 0x73, 0xb9, 0x7c, + 0xbc, 0xdf, 0x04, 0xe0, 0x06, 0x50, 0xc6, 0xf7, 0xb5, 0xed, 0x7e, 0xbf, 0xbb, 0x3b, 0x76, 0xe6, + 0x8e, 0x43, 0xa5, 0xd5, 0x35, 0x3d, 0x2f, 0xf8, 0x8a, 0xa9, 0x63, 0xcf, 0x6b, 0x6d, 0xfd, 0x2e, + 0xd6, 0x93, 0xf0, 0x88, 0xc1, 0x2e, 0x41, 0xd9, 0x63, 0x6f, 0xb8, 0xb7, 0xe5, 0xf3, 0x41, 0x44, + 0xff, 0xf8, 0xe4, 0xd4, 0xe7, 0xb7, 0x3a, 0xfe, 0xfd, 0xed, 0x66, 0xad, 0xe5, 0xf4, 0x8c, 0x6e, + 0xc7, 0xb6, 0x8c, 0x6e, 0xb3, 0xf7, 0x82, 0xd7, 0x7e, 0x60, 0xf8, 0xbb, 0x7d, 0xcb, 0xab, 0xad, + 0xd9, 0x7e, 0x03, 0x1b, 0x86, 0xac, 0xb7, 0x3b, 0xb6, 0x6f, 0xb5, 0x55, 0xb2, 0x0a, 0x8f, 0x11, + 0x6b, 0x8f, 0xbd, 0x99, 0x80, 0x95, 0x37, 0xd4, 0xd7, 0xe1, 0x69, 0x5e, 0xe8, 0xdb, 0xae, 0xed, + 0xab, 0x40, 0x7d, 0x1d, 0x83, 0x47, 0x87, 0x48, 0x7a, 0x15, 0x4a, 0xcd, 0xe0, 0x45, 0x71, 0x50, + 0xde, 0x4e, 0x6f, 0xe0, 0x84, 0x5c, 0xdd, 0x2c, 0x5e, 0x01, 0xe1, 0x24, 0x3f, 0x98, 0x9c, 0xe4, + 0x6f, 0xc1, 0x67, 0x53, 0x3e, 0xd5, 0xd5, 0x40, 0xc4, 0x5b, 0xbc, 0x0a, 0xf2, 0x79, 0xd5, 0xd7, + 0xc1, 0x1d, 0xac, 0xb0, 0xd5, 0xcd, 0xc2, 0x95, 0x20, 0xc3, 0x7d, 0x33, 0x4c, 0x81, 0xe2, 0x5a, + 0x78, 0x13, 0xf3, 0x50, 0x2f, 0x5c, 0x0c, 0x27, 0x01, 0x38, 0x6d, 0xe0, 0x13, 0x79, 0xab, 0xec, + 0xcd, 0xe6, 0x6e, 0xdf, 0xd2, 0xbf, 0x0e, 0xc7, 0xd2, 0x8e, 0xd5, 0x55, 0x44, 0x8c, 0xba, 0x60, + 0x49, 0x8c, 0x4f, 0xad, 0xbe, 0x2e, 0xde, 0xc0, 0x41, 0xac, 0x17, 0x2d, 0x8c, 0x1c, 0xe8, 0xbb, + 0x51, 0x36, 0x14, 0x57, 0xc7, 0x25, 0x24, 0x5e, 0x41, 0x96, 0x71, 0x89, 0xf5, 0x37, 0x10, 0x29, + 0x6a, 0x88, 0x48, 0x97, 0xa1, 0x22, 0xcc, 0x70, 0xd7, 0xff, 0x5c, 0xe6, 0xfe, 0xc7, 0x4d, 0xc4, + 0x1e, 0x28, 0x9a, 0xe8, 0xf7, 0x52, 0x7e, 0xc3, 0x7d, 0x3f, 0xb9, 0x79, 0x93, 0x89, 0x37, 0xef, + 0xf7, 0x09, 0x56, 0x40, 0xac, 0x87, 0x30, 0x9b, 0x55, 0xc1, 0x21, 0xf6, 0xee, 0x31, 0xd8, 0xa3, + 0x36, 0xea, 0x36, 0x70, 0x51, 0xfe, 0x9b, 0xa2, 0x04, 0x54, 0x97, 0x7f, 0xcc, 0x71, 0x58, 0xfe, + 0xf1, 0x86, 0x3c, 0xbf, 0x27, 0x32, 0xa2, 0x0f, 0x5b, 0x8a, 0xf0, 0x23, 0xe7, 0xdf, 0x25, 0x69, + 0xef, 0xe3, 0x9f, 0xda, 0x56, 0x33, 0x52, 0x37, 0xc9, 0xf0, 0x7e, 0x20, 0x8e, 0x8e, 0x71, 0x06, + 0x0c, 0x71, 0x05, 0xa6, 0xa3, 0x10, 0xc5, 0x08, 0x8f, 0x13, 0x23, 0x84, 0x31, 0x2a, 0x1c, 0x63, + 0x71, 0x98, 0x60, 0x9d, 0xa9, 0xd8, 0x42, 0x56, 0xf1, 0x30, 0x81, 0x0e, 0x31, 0xe8, 0x2f, 0x42, + 0x89, 0x19, 0xe0, 0x90, 0x1e, 0xad, 0xf1, 0x9f, 0x12, 0x35, 0xf1, 0x53, 0xa2, 0xb6, 0x64, 0xef, + 0x62, 0x98, 0xdc, 0x50, 0x1f, 0xc4, 0xfd, 0xfc, 0xef, 0x47, 0xf0, 0x3d, 0x82, 0xbb, 0xab, 0xe8, + 0x1f, 0x03, 0x59, 0x84, 0x32, 0xe3, 0x13, 0x03, 0x37, 0x2a, 0x12, 0xb4, 0x54, 0x37, 0x58, 0xd1, + 0x8e, 0xbf, 0x12, 0x1c, 0xdd, 0x54, 0x9c, 0xfd, 0xea, 0xe1, 0x8e, 0x8f, 0x2e, 0x31, 0xce, 0x8b, + 0x50, 0x62, 0x26, 0x38, 0x60, 0x5a, 0x46, 0x7d, 0x62, 0x13, 0x31, 0x6c, 0xcc, 0x3c, 0x3c, 0x44, + 0xd5, 0x15, 0x32, 0x6e, 0x44, 0x1b, 0x4f, 0x12, 0xf2, 0x52, 0x12, 0x32, 0x6b, 0x99, 0xac, 0x67, + 0x52, 0x7e, 0x03, 0x66, 0xa3, 0xc1, 0x65, 0xdf, 0x83, 0x69, 0x55, 0x37, 0x7b, 0x96, 0x0a, 0xde, + 0x17, 0xe1, 0x94, 0xd4, 0x3b, 0x92, 0x53, 0x38, 0x6c, 0x9b, 0x3d, 0x0b, 0xfd, 0xb2, 0xbf, 0xf5, + 0xdb, 0xf0, 0x29, 0x11, 0xa6, 0x9a, 0x89, 0xf8, 0xe9, 0xc8, 0x5d, 0x58, 0xbd, 0x89, 0x69, 0x78, + 0x2c, 0x3b, 0x61, 0xc9, 0x89, 0x28, 0x56, 0x88, 0xf5, 0x6f, 0xd9, 0x96, 0xab, 0x02, 0x6c, 0x1e, + 0x67, 0x36, 0x3a, 0x44, 0xb4, 0xa3, 0x50, 0x72, 0x82, 0x17, 0xe8, 0x8b, 0x3f, 0xe8, 0x75, 0x0c, + 0xa2, 0xe1, 0x38, 0x4a, 0x0e, 0xb8, 0xd7, 0x30, 0x18, 0xee, 0x2f, 0x5c, 0x9c, 0x0e, 0xbb, 0x8e, + 0xe3, 0x8f, 0x95, 0x14, 0x66, 0x19, 0xfe, 0x5c, 0xdc, 0x30, 0x5d, 0x4b, 0xcd, 0xc9, 0xfb, 0x26, + 0x4e, 0x6d, 0xe1, 0x11, 0xd1, 0xbe, 0x04, 0xe5, 0x3e, 0x7b, 0x33, 0x16, 0x1c, 0xda, 0xea, 0x0f, + 0x89, 0x38, 0x50, 0xdd, 0xef, 0x74, 0xdb, 0xae, 0x92, 0x85, 0x5d, 0x99, 0x6e, 0xf1, 0x90, 0x88, + 0xc3, 0x55, 0x08, 0x87, 0xc1, 0xbe, 0x04, 0x95, 0x16, 0xbe, 0xc3, 0xd5, 0x75, 0x74, 0xb8, 0xa1, + 0xb5, 0xba, 0x15, 0xf6, 0x07, 0x04, 0x0b, 0xe4, 0xba, 0x6b, 0x16, 0x18, 0xd8, 0x19, 0x98, 0xda, + 0x0a, 0x1a, 0x58, 0xe2, 0xb0, 0x23, 0x1e, 0xe9, 0x65, 0x80, 0xbe, 0xe5, 0xf6, 0x3a, 0x9e, 0x27, + 0xb2, 0xf6, 0xd4, 0xe2, 0xc9, 0x8c, 0xa8, 0x36, 0x42, 0xa3, 0x46, 0xac, 0x81, 0x7e, 0x03, 0x0b, + 0x0d, 0x71, 0xc2, 0xaa, 0x28, 0x31, 0xff, 0x58, 0x14, 0x33, 0x19, 0xfe, 0x58, 0x03, 0x31, 0x91, + 0x99, 0xb1, 0xfe, 0x88, 0xc0, 0xf1, 0xc8, 0x99, 0x65, 0xb1, 0x7f, 0x3c, 0x05, 0x31, 0xaa, 0xaa, + 0x8c, 0x9f, 0x12, 0xd0, 0xb2, 0x00, 0xc3, 0x2d, 0xa9, 0xcc, 0x7a, 0x14, 0x5b, 0x6f, 0x5e, 0xd8, + 0x68, 0xad, 0xae, 0x38, 0xfa, 0x98, 0xbf, 0xa5, 0x6d, 0xff, 0xbe, 0xe3, 0x76, 0xbe, 0xcd, 0xde, + 0x8e, 0x9d, 0x3f, 0x0d, 0x2a, 0x4e, 0xdf, 0x72, 0x4d, 0xdf, 0x71, 0x31, 0x81, 0xe1, 0x33, 0x3d, + 0x06, 0xe5, 0xfb, 0x4e, 0xb7, 0x6d, 0xb9, 0x28, 0x6a, 0xe2, 0x93, 0xfe, 0x4d, 0x4c, 0x48, 0xaa, + 0x47, 0x4c, 0xc8, 0x2d, 0x38, 0x62, 0xc6, 0x3f, 0x60, 0x39, 0x9c, 0xce, 0xc8, 0x4b, 0xc2, 0x01, + 0xe6, 0x27, 0xd9, 0x58, 0xff, 0x15, 0x01, 0x9d, 0xaf, 0xcb, 0x48, 0x95, 0x68, 0xe3, 0x29, 0x89, + 0x53, 0x55, 0xa5, 0xfc, 0x89, 0xc0, 0xb3, 0x23, 0x59, 0x31, 0x43, 0x75, 0x78, 0x2a, 0x11, 0xa4, + 0x28, 0x9d, 0x71, 0x53, 0x94, 0x6a, 0xad, 0xae, 0x94, 0x7a, 0xb8, 0x40, 0x2f, 0xf5, 0xfb, 0xae, + 0xb3, 0x53, 0x40, 0x58, 0x90, 0xeb, 0xca, 0x1a, 0x54, 0x4c, 0xee, 0x4d, 0x54, 0x51, 0xf8, 0xac, + 0x5f, 0xc0, 0x25, 0x37, 0xea, 0x0e, 0x13, 0x14, 0x35, 0xe2, 0x9d, 0x55, 0xc2, 0x46, 0xed, 0x68, + 0xa1, 0xc6, 0x56, 0xee, 0xff, 0x93, 0xfa, 0xfd, 0x1d, 0xfc, 0x91, 0x17, 0x63, 0xc3, 0x90, 0x4e, + 0x40, 0x55, 0xc4, 0xcd, 0x87, 0xbb, 0xda, 0x88, 0x5e, 0x28, 0x1b, 0xc1, 0xc5, 0x7f, 0x9d, 0x87, + 0x12, 0x23, 0xa0, 0xbf, 0x25, 0x30, 0x85, 0x02, 0x3c, 0x3d, 0x9b, 0x51, 0x58, 0x19, 0x57, 0x20, + 0xda, 0xb9, 0x5c, 0x3b, 0xde, 0xa5, 0xbe, 0xf1, 0xbd, 0xbf, 0xfe, 0xfb, 0xc7, 0x07, 0x6f, 0xd0, + 0xd7, 0x8c, 0xac, 0x0b, 0x1a, 0xfc, 0xc9, 0x6f, 0xec, 0xc5, 0x86, 0x63, 0x60, 0x08, 0x29, 0xdf, + 0xd8, 0xc3, 0xac, 0x0f, 0x8c, 0x3d, 0xb1, 0xab, 0x0f, 0xe8, 0x87, 0x04, 0xa6, 0x63, 0x57, 0x06, + 0x74, 0x5e, 0x86, 0x32, 0x7c, 0xed, 0xa1, 0x7d, 0x61, 0x2c, 0x5b, 0x44, 0xbf, 0xc6, 0xd0, 0xaf, + 0xd2, 0xcb, 0xfb, 0x42, 0xa7, 0xbf, 0x21, 0x50, 0xe6, 0xd2, 0x1e, 0x7d, 0x4e, 0xd6, 0x7d, 0x42, + 0x53, 0xd4, 0xce, 0xe6, 0x99, 0x21, 0x60, 0x83, 0x01, 0xde, 0xa2, 0x37, 0x0a, 0x00, 0xf2, 0x3c, + 0xb2, 0x93, 0x7e, 0x40, 0x29, 0x7e, 0x02, 0x0c, 0x0c, 0x2e, 0x19, 0x32, 0x5a, 0x2e, 0xe9, 0xc9, + 0x69, 0x13, 0x5a, 0xa2, 0x9c, 0x36, 0xa9, 0x0c, 0xaa, 0xa5, 0xe5, 0x52, 0x21, 0xfd, 0x80, 0x40, + 0x89, 0x69, 0x79, 0xf4, 0x8c, 0xb4, 0x20, 0x63, 0x12, 0xa2, 0xf6, 0x5c, 0x8e, 0x15, 0xa2, 0xde, + 0x61, 0xa8, 0x37, 0xe9, 0x9a, 0x0a, 0x54, 0x26, 0x11, 0x06, 0xa4, 0x15, 0x21, 0xf1, 0x52, 0xe9, + 0xec, 0x49, 0xa9, 0xcb, 0xda, 0x5c, 0xbe, 0x21, 0x22, 0xbf, 0xc6, 0x90, 0x97, 0xe9, 0x57, 0x0b, + 0x20, 0xbf, 0x1d, 0xbc, 0x09, 0x27, 0x96, 0xa8, 0x00, 0x4e, 0x8a, 0x35, 0x30, 0x82, 0x34, 0x59, + 0x05, 0x73, 0xf9, 0x86, 0xea, 0x48, 0x71, 0xf4, 0x7f, 0x46, 0x60, 0x0a, 0xb5, 0x5c, 0xf9, 0xc2, + 0x95, 0x14, 0x91, 0xb5, 0x73, 0xb9, 0x76, 0x88, 0x79, 0x9d, 0x61, 0x2e, 0xd1, 0xab, 0x93, 0x63, + 0xf2, 0x91, 0xff, 0x03, 0x81, 0x6a, 0xa8, 0xee, 0x53, 0x69, 0x9e, 0xd2, 0x37, 0x0b, 0xda, 0xf9, + 0x31, 0x2c, 0xf7, 0x3d, 0xb5, 0x98, 0x86, 0x27, 0x98, 0x83, 0x87, 0xb0, 0x0c, 0x10, 0x1b, 0xeb, + 0x60, 0x14, 0x76, 0xb2, 0x10, 0xce, 0x8f, 0x61, 0xf9, 0xdf, 0xc0, 0xc6, 0x9a, 0xf8, 0x1d, 0x81, + 0x8a, 0x10, 0xf8, 0xe5, 0xd5, 0x9b, 0xba, 0x5a, 0xd0, 0xe6, 0xf2, 0x0d, 0xf7, 0xbd, 0x34, 0x64, + 0x30, 0xf3, 0x02, 0xf9, 0x11, 0x81, 0x8a, 0x50, 0xc3, 0xe5, 0xc8, 0xa9, 0xbb, 0x05, 0x39, 0x72, + 0xfa, 0x2e, 0x41, 0x5f, 0x64, 0xc8, 0xcf, 0xd3, 0xf9, 0xf1, 0x91, 0xe9, 0xf7, 0x09, 0x54, 0x43, + 0x69, 0x9f, 0xe6, 0xf6, 0xe5, 0xe5, 0x8e, 0xfe, 0xd0, 0x3d, 0x81, 0x7e, 0x86, 0x61, 0xcd, 0xd2, + 0x13, 0xa3, 0xb0, 0xe8, 0xcf, 0xd9, 0x1c, 0x67, 0x22, 0xd4, 0xa8, 0x39, 0x1e, 0xd7, 0xea, 0x46, + 0xcd, 0xf1, 0x84, 0xfe, 0x36, 0xe1, 0x52, 0x94, 0xb1, 0xc8, 0xd3, 0x5f, 0xf2, 0xb2, 0xe3, 0x9c, + 0xa3, 0xca, 0x2e, 0x01, 0x3a, 0x97, 0x6f, 0x88, 0xa4, 0x6b, 0x8c, 0x74, 0x85, 0x2e, 0x15, 0x20, + 0xb5, 0xb3, 0x51, 0xff, 0x42, 0x80, 0x0e, 0x2b, 0x7b, 0x74, 0x41, 0xc6, 0x22, 0xd5, 0x18, 0xb5, + 0xc5, 0x22, 0x4d, 0x30, 0x90, 0xd7, 0x59, 0x20, 0xeb, 0xf4, 0xb6, 0x8a, 0xad, 0x35, 0x98, 0x45, + 0xf7, 0xec, 0x80, 0xfe, 0x43, 0x02, 0xd5, 0xf0, 0xbe, 0x41, 0x5e, 0xaf, 0xe9, 0x9b, 0x20, 0x79, + 0xbd, 0x0e, 0x5d, 0xed, 0xe8, 0x37, 0x19, 0xf9, 0x35, 0xba, 0xa2, 0x60, 0xe6, 0x07, 0x5b, 0x17, + 0x44, 0x77, 0x2b, 0x34, 0x1f, 0x23, 0xac, 0x99, 0xf9, 0x71, 0x4c, 0x11, 0xf9, 0x0a, 0x43, 0x7e, + 0x89, 0x5e, 0x9c, 0x0c, 0x99, 0x3e, 0x24, 0x50, 0x62, 0x6e, 0xe5, 0xc7, 0xab, 0xf8, 0xbd, 0x8b, + 0xfc, 0x78, 0x95, 0xb8, 0x4c, 0xd1, 0x5f, 0x65, 0x58, 0x57, 0xe8, 0x2b, 0x45, 0xb1, 0xe2, 0xbb, + 0x2b, 0x7d, 0x8f, 0x40, 0x99, 0x5f, 0x6e, 0xd0, 0xd1, 0xfd, 0x7a, 0xb9, 0x27, 0xd5, 0xe4, 0x1d, + 0x89, 0xfe, 0x32, 0xe3, 0xbb, 0x40, 0x17, 0x0a, 0xf3, 0x05, 0x50, 0x87, 0xea, 0xab, 0x9b, 0x54, + 0x1f, 0x31, 0xb3, 0x05, 0xce, 0xb3, 0x23, 0x6d, 0x90, 0x65, 0x99, 0xb1, 0xbc, 0x42, 0xbf, 0x5c, + 0x6c, 0xe2, 0x27, 0x32, 0xf5, 0x88, 0x40, 0x89, 0x89, 0xd5, 0xf2, 0x61, 0x8c, 0x8b, 0xe3, 0xf2, + 0x61, 0x4c, 0x28, 0xde, 0x13, 0xad, 0x9e, 0x29, 0x34, 0x83, 0xa9, 0xe4, 0x41, 0x9d, 0x1d, 0x6e, + 0x38, 0x8e, 0x4f, 0xa5, 0x29, 0x89, 0xe9, 0xe7, 0xda, 0x99, 0xd1, 0x46, 0xfb, 0x38, 0xbf, 0xa5, + 0xe9, 0xdc, 0x80, 0xe9, 0x7d, 0x02, 0x65, 0xae, 0x6a, 0xcb, 0xeb, 0x2c, 0xa1, 0xa3, 0xcb, 0xeb, + 0x2c, 0x29, 0x8e, 0x4f, 0xba, 0xa8, 0x27, 0x10, 0xb9, 0x62, 0x4e, 0x7f, 0x1d, 0x9c, 0x21, 0x84, + 0x9a, 0x2c, 0x3f, 0x43, 0x24, 0xe5, 0xf4, 0x11, 0x67, 0x88, 0x94, 0xb4, 0x3d, 0xd1, 0xe2, 0x97, + 0x46, 0x0d, 0xd5, 0xee, 0x5f, 0x10, 0x28, 0x31, 0xa1, 0x53, 0x5e, 0x8f, 0x71, 0xf9, 0x5a, 0x5e, + 0x8f, 0x09, 0x55, 0x79, 0x22, 0xa9, 0x81, 0x4b, 0xac, 0xc6, 0x1e, 0x4a, 0xc1, 0x03, 0x63, 0x2f, + 0x12, 0xaf, 0x07, 0xf4, 0xf7, 0x04, 0x8e, 0x24, 0xb4, 0x5c, 0xfa, 0xfc, 0x48, 0x94, 0x94, 0x26, + 0xad, 0xbd, 0x30, 0xa6, 0x35, 0x06, 0xb0, 0xc2, 0x02, 0xb8, 0x4c, 0xbf, 0xb2, 0x8f, 0x00, 0xe8, + 0x9f, 0x09, 0x1c, 0x49, 0x48, 0x81, 0x72, 0xe6, 0x2c, 0x1d, 0x58, 0xce, 0x9c, 0xa9, 0xe1, 0x4e, + 0xb4, 0x9f, 0x27, 0x45, 0x49, 0x63, 0x4f, 0xc8, 0xab, 0x03, 0x63, 0x8f, 0xeb, 0xc6, 0x03, 0xfa, + 0x37, 0x02, 0xc7, 0xb2, 0xb5, 0x51, 0xfa, 0xa2, 0x74, 0x75, 0x1a, 0xa5, 0xfb, 0x6a, 0x17, 0x8b, + 0x36, 0xc3, 0x00, 0x6f, 0xb1, 0x00, 0x57, 0xe9, 0xab, 0x2a, 0x02, 0xa4, 0x7f, 0x24, 0x50, 0x11, + 0x22, 0xa6, 0x7c, 0x9e, 0xa6, 0x54, 0x55, 0xf9, 0x3c, 0x4d, 0xeb, 0xa1, 0xfa, 0x5d, 0x46, 0xdb, + 0xa0, 0x1b, 0x45, 0x68, 0x5b, 0x2d, 0x67, 0x9b, 0x15, 0x51, 0x28, 0xb7, 0xf5, 0x5d, 0xe7, 0xdd, + 0x0e, 0x53, 0xb1, 0x50, 0x78, 0x64, 0x73, 0xa1, 0x1a, 0x8a, 0x95, 0x34, 0x8f, 0xc8, 0xcd, 0xff, + 0x45, 0x30, 0xa4, 0x7c, 0xea, 0xeb, 0x0c, 0x7e, 0x8d, 0x5e, 0xdf, 0x1f, 0x7c, 0x28, 0x96, 0x2e, + 0x5f, 0xf9, 0xe8, 0xf1, 0x2c, 0xf9, 0xf8, 0xf1, 0x2c, 0xf9, 0xe7, 0xe3, 0x59, 0xf2, 0xc3, 0x27, + 0xb3, 0x07, 0x3e, 0x7e, 0x32, 0x7b, 0xe0, 0xef, 0x4f, 0x66, 0x0f, 0xbc, 0x75, 0x46, 0xf6, 0x7f, + 0xbb, 0xde, 0x8d, 0xf5, 0xdb, 0x2c, 0xb3, 0xff, 0x14, 0x71, 0xe1, 0x3f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x85, 0xd4, 0x1e, 0x2d, 0xd9, 0x2e, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Balance queries the balance of a single token class for a single account. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `address` is of invalid format. + Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) + // AllBalances queries the balance of all token classes for a single account. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `address` is of invalid format. + // Since: 0.46.0 (finschia) + AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) + // Supply queries the number of tokens from a given contract id and class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Info: one can query for both fungible tokens and non-fungible token classes. + // Since: 0.46.0 (finschia) + Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error) + // Minted queries the number of minted tokens from a given contract id and class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Info: one can query for both fungible tokens and non-fungible token classes. + // Since: 0.46.0 (finschia) + Minted(ctx context.Context, in *QueryMintedRequest, opts ...grpc.CallOption) (*QueryMintedResponse, error) + // Burnt queries the number of burnt tokens from a given contract id and class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Info: one can query for both fungible tokens and non-fungible token classes. + // Since: 0.46.0 (finschia) + Burnt(ctx context.Context, in *QueryBurntRequest, opts ...grpc.CallOption) (*QueryBurntResponse, error) + // Deprecated: use Supply + // FTSupply queries the number of tokens from a given contract id and token id. + FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) + // Deprecated: use Minted + // FTMinted queries the number of minted tokens from a given contract id and token id. + FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) + // Deprecated: use Burnt + // FTBurnt queries the number of burnt tokens from a given contract id and token id. + FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) + // Deprecated: use Supply + // NFTSupply queries the number of tokens from a given contract id and token type. + NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) + // Deprecated: use Minted + // NFTMinted queries the number of minted tokens from a given contract id and token type. + NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) + // Deprecated: use Burnt + // NFTBurnt queries the number of burnt tokens from a given contract id and token type. + NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) + // Contract queries a contract metadata based on its contract id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrNotFound + // - there is no contract of `contract_id`. + Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) + // Contracts queries metadata of all contracts. + // Since: 0.46.0 (finschia) + Contracts(ctx context.Context, in *QueryContractsRequest, opts ...grpc.CallOption) (*QueryContractsResponse, error) + // FTClass queries a metadata of a fungible token class from its class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Since: 0.46.0 (finschia) + FTClass(ctx context.Context, in *QueryFTClassRequest, opts ...grpc.CallOption) (*QueryFTClassResponse, error) + // NFTClass queries a metadata of a non-fungible token class from its class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Since: 0.46.0 (finschia) + NFTClass(ctx context.Context, in *QueryNFTClassRequest, opts ...grpc.CallOption) (*QueryNFTClassResponse, error) + // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Since: 0.46.0 (finschia) + TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) + // Deprecated: use NFTClass + // TokenType queries metadata of a token type. + TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) + // TokenTypes queries metadata of all the token types. + // Note: deprecated + TokenTypes(ctx context.Context, in *QueryTokenTypesRequest, opts ...grpc.CallOption) (*QueryTokenTypesResponse, error) + // Deprecated: use FTClass or NFT + // Token queries a metadata of a token from its token id. + Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) + // Tokens queries all token metadata. + // Note: deprecated + Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error) + // NFT queries a metadata of a non-fungible token. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + // Since: 0.46.0 (finschia) + NFT(ctx context.Context, in *QueryNFTRequest, opts ...grpc.CallOption) (*QueryNFTResponse, error) + // Owner queries the owner of the token. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + // Since: 0.46.0 (finschia) + Owner(ctx context.Context, in *QueryOwnerRequest, opts ...grpc.CallOption) (*QueryOwnerResponse, error) + // Root queries the root of a given nft. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) + // Parent queries the parent of a given nft. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + // - token is the root. + Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) + // Children queries the children of a given nft. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) + // Grant queries a permission on a given grantee. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `permission` is not a valid permission. + // - ErrInvalidAddress + // - `grantee` is of invalid format. + // - ErrNotFound + // - there is no permission of `permission` on `grantee`. + // Since: 0.46.0 (finschia) + Grant(ctx context.Context, in *QueryGrantRequest, opts ...grpc.CallOption) (*QueryGrantResponse, error) + // GranteeGrants queries all permissions on a given grantee. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `grantee` is of invalid format. + // Since: 0.46.0 (finschia) + GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) + // Authorization queries an authorization on a given operator approver pair. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `operator` is of invalid format. + // - `holder` is of invalid format. + // - ErrNotFound + // - there is no authorization given by `holder` to `operator`. + // Since: 0.46.0 (finschia) + Authorization(ctx context.Context, in *QueryAuthorizationRequest, opts ...grpc.CallOption) (*QueryAuthorizationResponse, error) + // OperatorAuthorizations queries authorizations on a given operator. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `operator` is of invalid format. + // Since: 0.46.0 (finschia) + OperatorAuthorizations(ctx context.Context, in *QueryOperatorAuthorizationsRequest, opts ...grpc.CallOption) (*QueryOperatorAuthorizationsResponse, error) + // Deprecated: use Authorization + // Approved queries whether the operator is approved by the approver. + Approved(ctx context.Context, in *QueryApprovedRequest, opts ...grpc.CallOption) (*QueryApprovedResponse, error) + // Deprecated: use OperatorAuthorizations + // Approvers queries approvers of a given operator. + Approvers(ctx context.Context, in *QueryApproversRequest, opts ...grpc.CallOption) (*QueryApproversResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { + out := new(QueryBalanceResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Balance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) { + out := new(QueryAllBalancesResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/AllBalances", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error) { + out := new(QuerySupplyResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Supply", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Minted(ctx context.Context, in *QueryMintedRequest, opts ...grpc.CallOption) (*QueryMintedResponse, error) { + out := new(QueryMintedResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Minted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Burnt(ctx context.Context, in *QueryBurntRequest, opts ...grpc.CallOption) (*QueryBurntResponse, error) { + out := new(QueryBurntResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Burnt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) { + out := new(QueryFTSupplyResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTSupply", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) { + out := new(QueryFTMintedResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTMinted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) { + out := new(QueryFTBurntResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTBurnt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) { + out := new(QueryNFTSupplyResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTSupply", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) { + out := new(QueryNFTMintedResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTMinted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) { + out := new(QueryNFTBurntResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTBurnt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) { + out := new(QueryContractResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Contract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Contracts(ctx context.Context, in *QueryContractsRequest, opts ...grpc.CallOption) (*QueryContractsResponse, error) { + out := new(QueryContractsResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Contracts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) FTClass(ctx context.Context, in *QueryFTClassRequest, opts ...grpc.CallOption) (*QueryFTClassResponse, error) { + out := new(QueryFTClassResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTClass", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NFTClass(ctx context.Context, in *QueryNFTClassRequest, opts ...grpc.CallOption) (*QueryNFTClassResponse, error) { + out := new(QueryNFTClassResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTClass", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) { + out := new(QueryTokenClassTypeNameResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenClassTypeName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) { + out := new(QueryTokenTypeResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenType", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TokenTypes(ctx context.Context, in *QueryTokenTypesRequest, opts ...grpc.CallOption) (*QueryTokenTypesResponse, error) { + out := new(QueryTokenTypesResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenTypes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) { + out := new(QueryTokenResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Token", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error) { + out := new(QueryTokensResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Tokens", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NFT(ctx context.Context, in *QueryNFTRequest, opts ...grpc.CallOption) (*QueryNFTResponse, error) { + out := new(QueryNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Owner(ctx context.Context, in *QueryOwnerRequest, opts ...grpc.CallOption) (*QueryOwnerResponse, error) { + out := new(QueryOwnerResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Owner", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) { + out := new(QueryRootResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Root", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) { + out := new(QueryParentResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Parent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) { + out := new(QueryChildrenResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Children", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Grant(ctx context.Context, in *QueryGrantRequest, opts ...grpc.CallOption) (*QueryGrantResponse, error) { + out := new(QueryGrantResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Grant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) { + out := new(QueryGranteeGrantsResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/GranteeGrants", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Authorization(ctx context.Context, in *QueryAuthorizationRequest, opts ...grpc.CallOption) (*QueryAuthorizationResponse, error) { + out := new(QueryAuthorizationResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Authorization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) OperatorAuthorizations(ctx context.Context, in *QueryOperatorAuthorizationsRequest, opts ...grpc.CallOption) (*QueryOperatorAuthorizationsResponse, error) { + out := new(QueryOperatorAuthorizationsResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/OperatorAuthorizations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Approved(ctx context.Context, in *QueryApprovedRequest, opts ...grpc.CallOption) (*QueryApprovedResponse, error) { + out := new(QueryApprovedResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Approved", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Approvers(ctx context.Context, in *QueryApproversRequest, opts ...grpc.CallOption) (*QueryApproversResponse, error) { + out := new(QueryApproversResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Approvers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Balance queries the balance of a single token class for a single account. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `address` is of invalid format. + Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) + // AllBalances queries the balance of all token classes for a single account. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `address` is of invalid format. + // Since: 0.46.0 (finschia) + AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) + // Supply queries the number of tokens from a given contract id and class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Info: one can query for both fungible tokens and non-fungible token classes. + // Since: 0.46.0 (finschia) + Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error) + // Minted queries the number of minted tokens from a given contract id and class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Info: one can query for both fungible tokens and non-fungible token classes. + // Since: 0.46.0 (finschia) + Minted(context.Context, *QueryMintedRequest) (*QueryMintedResponse, error) + // Burnt queries the number of burnt tokens from a given contract id and class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Info: one can query for both fungible tokens and non-fungible token classes. + // Since: 0.46.0 (finschia) + Burnt(context.Context, *QueryBurntRequest) (*QueryBurntResponse, error) + // Deprecated: use Supply + // FTSupply queries the number of tokens from a given contract id and token id. + FTSupply(context.Context, *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) + // Deprecated: use Minted + // FTMinted queries the number of minted tokens from a given contract id and token id. + FTMinted(context.Context, *QueryFTMintedRequest) (*QueryFTMintedResponse, error) + // Deprecated: use Burnt + // FTBurnt queries the number of burnt tokens from a given contract id and token id. + FTBurnt(context.Context, *QueryFTBurntRequest) (*QueryFTBurntResponse, error) + // Deprecated: use Supply + // NFTSupply queries the number of tokens from a given contract id and token type. + NFTSupply(context.Context, *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) + // Deprecated: use Minted + // NFTMinted queries the number of minted tokens from a given contract id and token type. + NFTMinted(context.Context, *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) + // Deprecated: use Burnt + // NFTBurnt queries the number of burnt tokens from a given contract id and token type. + NFTBurnt(context.Context, *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) + // Contract queries a contract metadata based on its contract id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrNotFound + // - there is no contract of `contract_id`. + Contract(context.Context, *QueryContractRequest) (*QueryContractResponse, error) + // Contracts queries metadata of all contracts. + // Since: 0.46.0 (finschia) + Contracts(context.Context, *QueryContractsRequest) (*QueryContractsResponse, error) + // FTClass queries a metadata of a fungible token class from its class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Since: 0.46.0 (finschia) + FTClass(context.Context, *QueryFTClassRequest) (*QueryFTClassResponse, error) + // NFTClass queries a metadata of a non-fungible token class from its class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Since: 0.46.0 (finschia) + NFTClass(context.Context, *QueryNFTClassRequest) (*QueryNFTClassResponse, error) + // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `class_id` is of invalid format. + // - ErrNotFound + // - there is no token class of `class_id`. + // Since: 0.46.0 (finschia) + TokenClassTypeName(context.Context, *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) + // Deprecated: use NFTClass + // TokenType queries metadata of a token type. + TokenType(context.Context, *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) + // TokenTypes queries metadata of all the token types. + // Note: deprecated + TokenTypes(context.Context, *QueryTokenTypesRequest) (*QueryTokenTypesResponse, error) + // Deprecated: use FTClass or NFT + // Token queries a metadata of a token from its token id. + Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) + // Tokens queries all token metadata. + // Note: deprecated + Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, error) + // NFT queries a metadata of a non-fungible token. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + // Since: 0.46.0 (finschia) + NFT(context.Context, *QueryNFTRequest) (*QueryNFTResponse, error) + // Owner queries the owner of the token. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + // Since: 0.46.0 (finschia) + Owner(context.Context, *QueryOwnerRequest) (*QueryOwnerResponse, error) + // Root queries the root of a given nft. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + Root(context.Context, *QueryRootRequest) (*QueryRootResponse, error) + // Parent queries the parent of a given nft. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + // - ErrNotFound + // - there is no token of `token_id`. + // - token is the root. + Parent(context.Context, *QueryParentRequest) (*QueryParentResponse, error) + // Children queries the children of a given nft. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `token_id` is of invalid format. + Children(context.Context, *QueryChildrenRequest) (*QueryChildrenResponse, error) + // Grant queries a permission on a given grantee. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - `permission` is not a valid permission. + // - ErrInvalidAddress + // - `grantee` is of invalid format. + // - ErrNotFound + // - there is no permission of `permission` on `grantee`. + // Since: 0.46.0 (finschia) + Grant(context.Context, *QueryGrantRequest) (*QueryGrantResponse, error) + // GranteeGrants queries all permissions on a given grantee. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `grantee` is of invalid format. + // Since: 0.46.0 (finschia) + GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) + // Authorization queries an authorization on a given operator approver pair. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `operator` is of invalid format. + // - `holder` is of invalid format. + // - ErrNotFound + // - there is no authorization given by `holder` to `operator`. + // Since: 0.46.0 (finschia) + Authorization(context.Context, *QueryAuthorizationRequest) (*QueryAuthorizationResponse, error) + // OperatorAuthorizations queries authorizations on a given operator. + // Throws: + // - ErrInvalidRequest + // - `contract_id` is of invalid format. + // - ErrInvalidAddress + // - `operator` is of invalid format. + // Since: 0.46.0 (finschia) + OperatorAuthorizations(context.Context, *QueryOperatorAuthorizationsRequest) (*QueryOperatorAuthorizationsResponse, error) + // Deprecated: use Authorization + // Approved queries whether the operator is approved by the approver. + Approved(context.Context, *QueryApprovedRequest) (*QueryApprovedResponse, error) + // Deprecated: use OperatorAuthorizations + // Approvers queries approvers of a given operator. + Approvers(context.Context, *QueryApproversRequest) (*QueryApproversResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") +} +func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllBalances not implemented") +} +func (*UnimplementedQueryServer) Supply(ctx context.Context, req *QuerySupplyRequest) (*QuerySupplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Supply not implemented") +} +func (*UnimplementedQueryServer) Minted(ctx context.Context, req *QueryMintedRequest) (*QueryMintedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Minted not implemented") +} +func (*UnimplementedQueryServer) Burnt(ctx context.Context, req *QueryBurntRequest) (*QueryBurntResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Burnt not implemented") +} +func (*UnimplementedQueryServer) FTSupply(ctx context.Context, req *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FTSupply not implemented") +} +func (*UnimplementedQueryServer) FTMinted(ctx context.Context, req *QueryFTMintedRequest) (*QueryFTMintedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FTMinted not implemented") +} +func (*UnimplementedQueryServer) FTBurnt(ctx context.Context, req *QueryFTBurntRequest) (*QueryFTBurntResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FTBurnt not implemented") +} +func (*UnimplementedQueryServer) NFTSupply(ctx context.Context, req *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTSupply not implemented") +} +func (*UnimplementedQueryServer) NFTMinted(ctx context.Context, req *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTMinted not implemented") +} +func (*UnimplementedQueryServer) NFTBurnt(ctx context.Context, req *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTBurnt not implemented") +} +func (*UnimplementedQueryServer) Contract(ctx context.Context, req *QueryContractRequest) (*QueryContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Contract not implemented") +} +func (*UnimplementedQueryServer) Contracts(ctx context.Context, req *QueryContractsRequest) (*QueryContractsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Contracts not implemented") +} +func (*UnimplementedQueryServer) FTClass(ctx context.Context, req *QueryFTClassRequest) (*QueryFTClassResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FTClass not implemented") +} +func (*UnimplementedQueryServer) NFTClass(ctx context.Context, req *QueryNFTClassRequest) (*QueryNFTClassResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTClass not implemented") +} +func (*UnimplementedQueryServer) TokenClassTypeName(ctx context.Context, req *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TokenClassTypeName not implemented") +} +func (*UnimplementedQueryServer) TokenType(ctx context.Context, req *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TokenType not implemented") +} +func (*UnimplementedQueryServer) TokenTypes(ctx context.Context, req *QueryTokenTypesRequest) (*QueryTokenTypesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TokenTypes not implemented") +} +func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") +} +func (*UnimplementedQueryServer) Tokens(ctx context.Context, req *QueryTokensRequest) (*QueryTokensResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Tokens not implemented") +} +func (*UnimplementedQueryServer) NFT(ctx context.Context, req *QueryNFTRequest) (*QueryNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFT not implemented") +} +func (*UnimplementedQueryServer) Owner(ctx context.Context, req *QueryOwnerRequest) (*QueryOwnerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Owner not implemented") +} +func (*UnimplementedQueryServer) Root(ctx context.Context, req *QueryRootRequest) (*QueryRootResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Root not implemented") +} +func (*UnimplementedQueryServer) Parent(ctx context.Context, req *QueryParentRequest) (*QueryParentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Parent not implemented") +} +func (*UnimplementedQueryServer) Children(ctx context.Context, req *QueryChildrenRequest) (*QueryChildrenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Children not implemented") +} +func (*UnimplementedQueryServer) Grant(ctx context.Context, req *QueryGrantRequest) (*QueryGrantResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Grant not implemented") +} +func (*UnimplementedQueryServer) GranteeGrants(ctx context.Context, req *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GranteeGrants not implemented") +} +func (*UnimplementedQueryServer) Authorization(ctx context.Context, req *QueryAuthorizationRequest) (*QueryAuthorizationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Authorization not implemented") +} +func (*UnimplementedQueryServer) OperatorAuthorizations(ctx context.Context, req *QueryOperatorAuthorizationsRequest) (*QueryOperatorAuthorizationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorAuthorizations not implemented") +} +func (*UnimplementedQueryServer) Approved(ctx context.Context, req *QueryApprovedRequest) (*QueryApprovedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Approved not implemented") +} +func (*UnimplementedQueryServer) Approvers(ctx context.Context, req *QueryApproversRequest) (*QueryApproversResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Approvers not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Balance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Balance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllBalancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AllBalances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/AllBalances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Supply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySupplyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Supply(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Supply", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Supply(ctx, req.(*QuerySupplyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Minted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryMintedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Minted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Minted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Minted(ctx, req.(*QueryMintedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Burnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBurntRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Burnt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Burnt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Burnt(ctx, req.(*QueryBurntRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_FTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFTSupplyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).FTSupply(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/FTSupply", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FTSupply(ctx, req.(*QueryFTSupplyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_FTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFTMintedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).FTMinted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/FTMinted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FTMinted(ctx, req.(*QueryFTMintedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_FTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFTBurntRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).FTBurnt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/FTBurnt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FTBurnt(ctx, req.(*QueryFTBurntRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_NFTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNFTSupplyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NFTSupply(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/NFTSupply", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NFTSupply(ctx, req.(*QueryNFTSupplyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_NFTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNFTMintedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NFTMinted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/NFTMinted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NFTMinted(ctx, req.(*QueryNFTMintedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_NFTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNFTBurntRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NFTBurnt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/NFTBurnt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NFTBurnt(ctx, req.(*QueryNFTBurntRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Contract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Contract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Contract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Contract(ctx, req.(*QueryContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Contracts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryContractsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Contracts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Contracts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Contracts(ctx, req.(*QueryContractsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_FTClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFTClassRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).FTClass(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/FTClass", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FTClass(ctx, req.(*QueryFTClassRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_NFTClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNFTClassRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NFTClass(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/NFTClass", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NFTClass(ctx, req.(*QueryNFTClassRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TokenClassTypeName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenClassTypeNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TokenClassTypeName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/TokenClassTypeName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TokenClassTypeName(ctx, req.(*QueryTokenClassTypeNameRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TokenType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenTypeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TokenType(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/TokenType", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TokenType(ctx, req.(*QueryTokenTypeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TokenTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenTypesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TokenTypes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/TokenTypes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TokenTypes(ctx, req.(*QueryTokenTypesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Token(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Token", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Tokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokensRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Tokens(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Tokens", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Tokens(ctx, req.(*QueryTokensRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_NFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNFTRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/NFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NFT(ctx, req.(*QueryNFTRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Owner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOwnerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Owner(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Owner", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Owner(ctx, req.(*QueryOwnerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Root_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRootRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Root(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Root", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Root(ctx, req.(*QueryRootRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Parent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Parent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Parent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Parent(ctx, req.(*QueryParentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Children_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryChildrenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Children(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Children", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Children(ctx, req.(*QueryChildrenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Grant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGrantRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Grant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Grant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Grant(ctx, req.(*QueryGrantRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GranteeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGranteeGrantsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GranteeGrants(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/GranteeGrants", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GranteeGrants(ctx, req.(*QueryGranteeGrantsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Authorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAuthorizationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Authorization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Authorization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Authorization(ctx, req.(*QueryAuthorizationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_OperatorAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOperatorAuthorizationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).OperatorAuthorizations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/OperatorAuthorizations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).OperatorAuthorizations(ctx, req.(*QueryOperatorAuthorizationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Approved_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryApprovedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Approved(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Approved", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Approved(ctx, req.(*QueryApprovedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Approvers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryApproversRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Approvers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Approvers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Approvers(ctx, req.(*QueryApproversRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "lbm.collection.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Balance", + Handler: _Query_Balance_Handler, + }, + { + MethodName: "AllBalances", + Handler: _Query_AllBalances_Handler, + }, + { + MethodName: "Supply", + Handler: _Query_Supply_Handler, + }, + { + MethodName: "Minted", + Handler: _Query_Minted_Handler, + }, + { + MethodName: "Burnt", + Handler: _Query_Burnt_Handler, + }, + { + MethodName: "FTSupply", + Handler: _Query_FTSupply_Handler, + }, + { + MethodName: "FTMinted", + Handler: _Query_FTMinted_Handler, + }, + { + MethodName: "FTBurnt", + Handler: _Query_FTBurnt_Handler, + }, + { + MethodName: "NFTSupply", + Handler: _Query_NFTSupply_Handler, + }, + { + MethodName: "NFTMinted", + Handler: _Query_NFTMinted_Handler, + }, + { + MethodName: "NFTBurnt", + Handler: _Query_NFTBurnt_Handler, + }, + { + MethodName: "Contract", + Handler: _Query_Contract_Handler, + }, + { + MethodName: "Contracts", + Handler: _Query_Contracts_Handler, + }, + { + MethodName: "FTClass", + Handler: _Query_FTClass_Handler, + }, + { + MethodName: "NFTClass", + Handler: _Query_NFTClass_Handler, + }, + { + MethodName: "TokenClassTypeName", + Handler: _Query_TokenClassTypeName_Handler, + }, + { + MethodName: "TokenType", + Handler: _Query_TokenType_Handler, + }, + { + MethodName: "TokenTypes", + Handler: _Query_TokenTypes_Handler, + }, + { + MethodName: "Token", + Handler: _Query_Token_Handler, + }, + { + MethodName: "Tokens", + Handler: _Query_Tokens_Handler, + }, + { + MethodName: "NFT", + Handler: _Query_NFT_Handler, + }, + { + MethodName: "Owner", + Handler: _Query_Owner_Handler, + }, + { + MethodName: "Root", + Handler: _Query_Root_Handler, + }, + { + MethodName: "Parent", + Handler: _Query_Parent_Handler, + }, + { + MethodName: "Children", + Handler: _Query_Children_Handler, + }, + { + MethodName: "Grant", + Handler: _Query_Grant_Handler, + }, + { + MethodName: "GranteeGrants", + Handler: _Query_GranteeGrants_Handler, + }, + { + MethodName: "Authorization", + Handler: _Query_Authorization_Handler, + }, + { + MethodName: "OperatorAuthorizations", + Handler: _Query_OperatorAuthorizations_Handler, + }, + { + MethodName: "Approved", + Handler: _Query_Approved_Handler, + }, + { + MethodName: "Approvers", + Handler: _Query_Approvers_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "lbm/collection/v1/query.proto", +} + +func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Balance.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllBalancesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllBalancesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QuerySupplyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QuerySupplyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QuerySupplyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QuerySupplyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Supply.Size() + i -= size + if _, err := m.Supply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryMintedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryMintedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMintedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryMintedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryMintedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMintedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Minted.Size() + i -= size + if _, err := m.Minted.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryBurntRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryBurntRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBurntRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryBurntResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryBurntResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBurntResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Burnt.Size() + i -= size + if _, err := m.Burnt.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryFTSupplyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFTSupplyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFTSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryFTSupplyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFTSupplyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFTSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Supply.Size() + i -= size + if _, err := m.Supply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryFTMintedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFTMintedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFTMintedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryFTMintedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFTMintedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFTMintedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Minted.Size() + i -= size + if _, err := m.Minted.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryFTBurntRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFTBurntRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFTBurntRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryFTBurntResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFTBurntResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFTBurntResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Burnt.Size() + i -= size + if _, err := m.Burnt.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryNFTSupplyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTSupplyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryNFTSupplyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTSupplyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Supply.Size() + i -= size + if _, err := m.Supply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryNFTMintedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTMintedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTMintedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryNFTMintedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTMintedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTMintedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Minted.Size() + i -= size + if _, err := m.Minted.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryNFTBurntRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTBurntRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTBurntRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryNFTBurntResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTBurntResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTBurntResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Burnt.Size() + i -= size + if _, err := m.Burnt.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryContractRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryContractRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Contract.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryContractsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryContractsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryContractsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryContractsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryContractsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryContractsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Contracts) > 0 { + for iNdEx := len(m.Contracts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Contracts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryTokenTypeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokenTypeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenTypeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTokenTypeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokenTypeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenTypeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.TokenType.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryTokenTypesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokenTypesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenTypesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTokenTypesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokenTypesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenTypesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.TokenTypes) > 0 { + for iNdEx := len(m.TokenTypes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryTokenRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokenRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTokenResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokenResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Token.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryTokensRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokensRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTokensResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokensResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Tokens) > 0 { + for iNdEx := len(m.Tokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryFTClassRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFTClassRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFTClassRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryFTClassResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFTClassResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFTClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Class.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryNFTClassRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTClassRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTClassRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryNFTClassResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTClassResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Class.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryTokenClassTypeNameRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokenClassTypeNameRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenClassTypeNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTokenClassTypeNameResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTokenClassTypeNameResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenClassTypeNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryNFTRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Token.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryOwnerRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryOwnerRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryOwnerResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryOwnerResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryRootRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRootRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRootRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryRootResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRootResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRootResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Root.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryParentRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParentRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryParentResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParentResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Parent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryChildrenRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryChildrenRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryChildrenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryChildrenResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryChildrenResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryChildrenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Children[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGrantRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGrantRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGrantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permission != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x18 + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGrantResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGrantResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Grant.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryGranteeGrantsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGranteeGrantsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGranteeGrantsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGranteeGrantsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGranteeGrantsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGranteeGrantsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Grants) > 0 { + for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryAuthorizationRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAuthorizationRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAuthorizationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAuthorizationResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAuthorizationResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAuthorizationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Authorization.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryOperatorAuthorizationsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryOperatorAuthorizationsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryOperatorAuthorizationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryOperatorAuthorizationsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryOperatorAuthorizationsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryOperatorAuthorizationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Authorizations) > 0 { + for iNdEx := len(m.Authorizations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Authorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryApprovedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryApprovedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryApprovedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Approver) > 0 { + i -= len(m.Approver) + copy(dAtA[i:], m.Approver) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Approver))) + i-- + dAtA[i] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryApprovedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryApprovedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryApprovedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Approved { + i-- + if m.Approved { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryApproversRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryApproversRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryApproversRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryApproversResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryApproversResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryApproversResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Approvers) > 0 { + for iNdEx := len(m.Approvers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Approvers[iNdEx]) + copy(dAtA[i:], m.Approvers[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Approvers[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Balance.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllBalancesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllBalancesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QuerySupplyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QuerySupplyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Supply.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryMintedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryMintedResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Minted.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryBurntRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryBurntResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Burnt.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryFTSupplyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryFTSupplyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Supply.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryFTMintedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryFTMintedResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Minted.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryFTBurntRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryFTBurntResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Burnt.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryNFTSupplyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryNFTSupplyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Supply.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryNFTMintedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryNFTMintedResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Minted.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryNFTBurntRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryNFTBurntResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Burnt.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryContractRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Contract.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryContractsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryContractsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Contracts) > 0 { + for _, e := range m.Contracts { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTokenTypeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTokenTypeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TokenType.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryTokenTypesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTokenTypesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TokenTypes) > 0 { + for _, e := range m.TokenTypes { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTokenRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTokenResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Token.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryTokensRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTokensResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tokens) > 0 { + for _, e := range m.Tokens { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryFTClassRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryFTClassResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Class.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryNFTClassRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryNFTClassResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Class.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryTokenClassTypeNameRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTokenClassTypeNameResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryNFTRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Token.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryOwnerRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryOwnerResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRootRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRootResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Root.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryParentRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryParentResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Parent.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryChildrenRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryChildrenResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Children) > 0 { + for _, e := range m.Children { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGrantRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Permission != 0 { + n += 1 + sovQuery(uint64(m.Permission)) + } + return n +} + +func (m *QueryGrantResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Grant.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryGranteeGrantsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGranteeGrantsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Grants) > 0 { + for _, e := range m.Grants { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAuthorizationRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAuthorizationResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Authorization.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryOperatorAuthorizationsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryOperatorAuthorizationsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Authorizations) > 0 { + for _, e := range m.Authorizations { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryApprovedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Approver) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryApprovedResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Approved { + n += 2 + } + return n +} + +func (m *QueryApproversRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryApproversResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Approvers) > 0 { + for _, s := range m.Approvers { + l = len(s) + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllBalancesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllBalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllBalancesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllBalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, Coin{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QuerySupplyRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QuerySupplyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuerySupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QuerySupplyResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QuerySupplyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuerySupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryMintedRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMintedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryMintedResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMintedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryBurntRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryBurntRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryBurntResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryBurntResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFTSupplyRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFTSupplyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFTSupplyResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFTSupplyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFTMintedRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFTMintedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFTMintedResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFTMintedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFTBurntRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFTBurntRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFTBurntResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFTBurntResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTSupplyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTSupplyResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTSupplyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTMintedRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTMintedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTMintedResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTMintedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTBurntRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTBurntRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTBurntResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTBurntResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryContractRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryContractRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryContractResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Contract.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryContractsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryContractsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryContractsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryContractsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryContractsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryContractsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contracts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Contracts = append(m.Contracts, Contract{}) + if err := m.Contracts[len(m.Contracts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokenTypeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokenTypeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenTypeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokenTypeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokenTypeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TokenType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokenTypesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokenTypesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenTypesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokenTypesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokenTypesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenTypesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenTypes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenTypes = append(m.TokenTypes, TokenType{}) + if err := m.TokenTypes[len(m.TokenTypes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokenRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokenResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokensRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokensRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokensRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokensResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokensResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokensResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tokens = append(m.Tokens, types.Any{}) + if err := m.Tokens[len(m.Tokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFTClassRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFTClassRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFTClassRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFTClassResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFTClassResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFTClassResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Class", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Class.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTClassRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTClassRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTClassRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTClassResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTClassResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTClassResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Class", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Class.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokenClassTypeNameRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTokenClassTypeNameResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryOwnerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOwnerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryOwnerResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOwnerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRootRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryRootRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRootRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRootResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryRootResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRootResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Root.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParentRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParentRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParentResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Parent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryChildrenRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryChildrenRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryChildrenRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryChildrenResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryChildrenResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryChildrenResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Children = append(m.Children, NFT{}) + if err := m.Children[len(m.Children)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGrantRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGrantRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGrantRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGrantResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGrantResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grant", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Grant.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGranteeGrantsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGranteeGrantsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGranteeGrantsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGranteeGrantsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGranteeGrantsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGranteeGrantsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grants = append(m.Grants, Grant{}) + if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAuthorizationRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAuthorizationRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAuthorizationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAuthorizationResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAuthorizationResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAuthorizationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorization", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Authorization.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryOperatorAuthorizationsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOperatorAuthorizationsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOperatorAuthorizationsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryOperatorAuthorizationsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOperatorAuthorizationsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOperatorAuthorizationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authorizations = append(m.Authorizations, Authorization{}) + if err := m.Authorizations[len(m.Authorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryApprovedRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryApprovedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryApprovedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Approver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Approver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryApprovedResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryApprovedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryApprovedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Approved", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Approved = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryApproversRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryApproversRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryApproversRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryApproversResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryApproversResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryApproversResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Approvers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Approvers = append(m.Approvers, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/collection/query.pb.gw.go b/x/collection/query.pb.gw.go new file mode 100644 index 0000000000..35fe1039df --- /dev/null +++ b/x/collection/query.pb.gw.go @@ -0,0 +1,3920 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: lbm/collection/v1/query.proto + +/* +Package collection is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package collection + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage + +func request_Query_Balance_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBalanceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.Balance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Balance_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBalanceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.Balance(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_AllBalances_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0, "address": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_AllBalances_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllBalancesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AllBalances_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AllBalances(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AllBalances_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllBalancesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AllBalances_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AllBalances(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Supply_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySupplyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := client.Supply(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Supply_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySupplyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := server.Supply(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Minted_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryMintedRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := client.Minted(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Minted_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryMintedRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := server.Minted(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Burnt_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBurntRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := client.Burnt(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Burnt_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBurntRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := server.Burnt(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_FTSupply_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFTSupplyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.FTSupply(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_FTSupply_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFTSupplyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.FTSupply(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_FTMinted_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFTMintedRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.FTMinted(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_FTMinted_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFTMintedRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.FTMinted(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_FTBurnt_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFTBurntRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.FTBurnt(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_FTBurnt_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFTBurntRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.FTBurnt(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_NFTSupply_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTSupplyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := client.NFTSupply(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NFTSupply_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTSupplyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := server.NFTSupply(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_NFTMinted_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTMintedRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := client.NFTMinted(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NFTMinted_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTMintedRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := server.NFTMinted(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_NFTBurnt_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTBurntRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := client.NFTBurnt(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NFTBurnt_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTBurntRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := server.NFTBurnt(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Contract_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryContractRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + msg, err := client.Contract(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Contract_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryContractRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + msg, err := server.Contract(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_Contracts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_Contracts_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryContractsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Contracts_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Contracts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Contracts_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryContractsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Contracts_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Contracts(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_FTClass_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFTClassRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := client.FTClass(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_FTClass_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFTClassRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := server.FTClass(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_NFTClass_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTClassRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := client.NFTClass(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NFTClass_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTClassRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := server.NFTClass(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_TokenClassTypeName_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenClassTypeNameRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := client.TokenClassTypeName(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_TokenClassTypeName_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenClassTypeNameRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := server.TokenClassTypeName(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_TokenType_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenTypeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := client.TokenType(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_TokenType_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenTypeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := server.TokenType(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_TokenTypes_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_TokenTypes_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenTypesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TokenTypes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.TokenTypes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_TokenTypes_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenTypesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TokenTypes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.TokenTypes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Token_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.Token(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Token_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.Token(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_Tokens_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_Tokens_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokensRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Tokens_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Tokens(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Tokens_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokensRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Tokens_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Tokens(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_NFT_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.NFT(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NFT_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.NFT(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Owner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOwnerRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.Owner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Owner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOwnerRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.Owner(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Root_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRootRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.Root(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Root_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRootRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.Root(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Parent_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.Parent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Parent_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.Parent(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_Children_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0, "token_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_Children_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryChildrenRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Children_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Children(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Children_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryChildrenRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Children_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Children(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Grant_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGrantRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["grantee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grantee") + } + + protoReq.Grantee, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grantee", err) + } + + val, ok = pathParams["permission"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "permission") + } + + e, err = runtime.Enum(val, Permission_value) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "permission", err) + } + + protoReq.Permission = Permission(e) + + msg, err := client.Grant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Grant_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGrantRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["grantee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grantee") + } + + protoReq.Grantee, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grantee", err) + } + + val, ok = pathParams["permission"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "permission") + } + + e, err = runtime.Enum(val, Permission_value) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "permission", err) + } + + protoReq.Permission = Permission(e) + + msg, err := server.Grant(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_GranteeGrants_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0, "grantee": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_GranteeGrants_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGranteeGrantsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["grantee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grantee") + } + + protoReq.Grantee, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grantee", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GranteeGrants_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GranteeGrants(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GranteeGrants_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGranteeGrantsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["grantee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grantee") + } + + protoReq.Grantee, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grantee", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GranteeGrants_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GranteeGrants(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Authorization_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAuthorizationRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["operator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "operator") + } + + protoReq.Operator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "operator", err) + } + + val, ok = pathParams["holder"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "holder") + } + + protoReq.Holder, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "holder", err) + } + + msg, err := client.Authorization(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Authorization_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAuthorizationRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["operator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "operator") + } + + protoReq.Operator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "operator", err) + } + + val, ok = pathParams["holder"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "holder") + } + + protoReq.Holder, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "holder", err) + } + + msg, err := server.Authorization(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_OperatorAuthorizations_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0, "operator": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_OperatorAuthorizations_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOperatorAuthorizationsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["operator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "operator") + } + + protoReq.Operator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "operator", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_OperatorAuthorizations_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.OperatorAuthorizations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_OperatorAuthorizations_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOperatorAuthorizationsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["operator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "operator") + } + + protoReq.Operator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "operator", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_OperatorAuthorizations_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.OperatorAuthorizations(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Approved_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryApprovedRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["approver"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "approver") + } + + protoReq.Approver, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "approver", err) + } + + msg, err := client.Approved(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Approved_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryApprovedRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["approver"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "approver") + } + + protoReq.Approver, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "approver", err) + } + + msg, err := server.Approved(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_Approvers_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0, "address": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_Approvers_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryApproversRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Approvers_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Approvers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Approvers_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryApproversRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") + } + + protoReq.ContractId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Approvers_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Approvers(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_Balance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Balance_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AllBalances_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AllBalances_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AllBalances_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Supply_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Supply_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Supply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Minted_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Minted_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Minted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Burnt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Burnt_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Burnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_FTSupply_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_FTSupply_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_FTSupply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_FTMinted_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_FTMinted_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_FTMinted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_FTBurnt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_FTBurnt_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_FTBurnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTSupply_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_NFTSupply_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFTSupply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTMinted_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_NFTMinted_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFTMinted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTBurnt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_NFTBurnt_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFTBurnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Contract_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Contract_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Contract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Contracts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Contracts_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Contracts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_FTClass_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_FTClass_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_FTClass_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTClass_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_NFTClass_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFTClass_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenClassTypeName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_TokenClassTypeName_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TokenClassTypeName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenType_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_TokenType_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TokenType_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenTypes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_TokenTypes_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TokenTypes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Token_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Token_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Token_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Tokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Tokens_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Tokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFT_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_NFT_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFT_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Owner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Owner_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Owner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Root_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Root_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Root_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Parent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Parent_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Parent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Children_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Children_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Children_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Grant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Grant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Grant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GranteeGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GranteeGrants_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GranteeGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Authorization_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Authorization_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Authorization_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_OperatorAuthorizations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_OperatorAuthorizations_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_OperatorAuthorizations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Approved_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Approved_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Approved_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Approvers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Approvers_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Approvers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_Balance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Balance_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AllBalances_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AllBalances_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AllBalances_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Supply_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Supply_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Supply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Minted_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Minted_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Minted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Burnt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Burnt_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Burnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_FTSupply_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_FTSupply_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_FTSupply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_FTMinted_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_FTMinted_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_FTMinted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_FTBurnt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_FTBurnt_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_FTBurnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTSupply_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_NFTSupply_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFTSupply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTMinted_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_NFTMinted_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFTMinted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTBurnt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_NFTBurnt_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFTBurnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Contract_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Contract_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Contract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Contracts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Contracts_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Contracts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_FTClass_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_FTClass_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_FTClass_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTClass_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_NFTClass_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFTClass_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenClassTypeName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_TokenClassTypeName_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TokenClassTypeName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenType_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_TokenType_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TokenType_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenTypes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_TokenTypes_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TokenTypes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Token_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Token_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Token_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Tokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Tokens_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Tokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFT_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_NFT_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NFT_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Owner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Owner_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Owner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Root_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Root_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Root_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Parent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Parent_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Parent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Children_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Children_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Children_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Grant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Grant_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Grant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GranteeGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GranteeGrants_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GranteeGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Authorization_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Authorization_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Authorization_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_OperatorAuthorizations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_OperatorAuthorizations_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_OperatorAuthorizations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Approved_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Approved_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Approved_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Approvers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Approvers_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Approvers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_Balance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "balances", "address", "token_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_AllBalances_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "balances", "address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Supply_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "token_classes", "class_id", "supply"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Minted_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "token_classes", "class_id", "minted"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Burnt_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "token_classes", "class_id", "burnt"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_FTSupply_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "fts", "token_id", "supply"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_FTMinted_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "fts", "token_id", "minted"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_FTBurnt_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "fts", "token_id", "burnt"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_NFTSupply_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "token_types", "token_type", "supply"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_NFTMinted_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "token_types", "token_type", "minted"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_NFTBurnt_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "token_types", "token_type", "burnt"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Contract_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"lbm", "collection", "v1", "contracts", "contract_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Contracts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"lbm", "collection", "v1", "contracts"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_FTClass_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "ft_classes", "class_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_NFTClass_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nft_classes", "class_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_TokenClassTypeName_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "token_classes", "class_id", "type_name"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_TokenType_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "token_types", "token_type"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_TokenTypes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "token_types"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Token_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "tokens", "token_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Tokens_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "tokens"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_NFT_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nfts", "token_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Owner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nfts", "token_id", "owner"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Root_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nfts", "token_id", "root"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Parent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nfts", "token_id", "parent"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Children_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nfts", "token_id", "children"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Grant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "grants", "grantee", "permission"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_GranteeGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "grants", "grantee"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Authorization_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "authorizations", "operator", "holder"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_OperatorAuthorizations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "authorizations", "operator"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Approved_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7, 1, 0, 4, 1, 5, 8}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "accounts", "address", "proxies", "approver"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Approvers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "accounts", "address", "approvers"}, "", runtime.AssumeColonVerbOpt(false))) +) + +var ( + forward_Query_Balance_0 = runtime.ForwardResponseMessage + + forward_Query_AllBalances_0 = runtime.ForwardResponseMessage + + forward_Query_Supply_0 = runtime.ForwardResponseMessage + + forward_Query_Minted_0 = runtime.ForwardResponseMessage + + forward_Query_Burnt_0 = runtime.ForwardResponseMessage + + forward_Query_FTSupply_0 = runtime.ForwardResponseMessage + + forward_Query_FTMinted_0 = runtime.ForwardResponseMessage + + forward_Query_FTBurnt_0 = runtime.ForwardResponseMessage + + forward_Query_NFTSupply_0 = runtime.ForwardResponseMessage + + forward_Query_NFTMinted_0 = runtime.ForwardResponseMessage + + forward_Query_NFTBurnt_0 = runtime.ForwardResponseMessage + + forward_Query_Contract_0 = runtime.ForwardResponseMessage + + forward_Query_Contracts_0 = runtime.ForwardResponseMessage + + forward_Query_FTClass_0 = runtime.ForwardResponseMessage + + forward_Query_NFTClass_0 = runtime.ForwardResponseMessage + + forward_Query_TokenClassTypeName_0 = runtime.ForwardResponseMessage + + forward_Query_TokenType_0 = runtime.ForwardResponseMessage + + forward_Query_TokenTypes_0 = runtime.ForwardResponseMessage + + forward_Query_Token_0 = runtime.ForwardResponseMessage + + forward_Query_Tokens_0 = runtime.ForwardResponseMessage + + forward_Query_NFT_0 = runtime.ForwardResponseMessage + + forward_Query_Owner_0 = runtime.ForwardResponseMessage + + forward_Query_Root_0 = runtime.ForwardResponseMessage + + forward_Query_Parent_0 = runtime.ForwardResponseMessage + + forward_Query_Children_0 = runtime.ForwardResponseMessage + + forward_Query_Grant_0 = runtime.ForwardResponseMessage + + forward_Query_GranteeGrants_0 = runtime.ForwardResponseMessage + + forward_Query_Authorization_0 = runtime.ForwardResponseMessage + + forward_Query_OperatorAuthorizations_0 = runtime.ForwardResponseMessage + + forward_Query_Approved_0 = runtime.ForwardResponseMessage + + forward_Query_Approvers_0 = runtime.ForwardResponseMessage +) diff --git a/x/collection/tx.pb.go b/x/collection/tx.pb.go new file mode 100644 index 0000000000..99c9c7be36 --- /dev/null +++ b/x/collection/tx.pb.go @@ -0,0 +1,19870 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/tx.proto + +package collection + +import ( + context "context" + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + github_com_line_lbm_sdk_types "github.com/line/lbm-sdk/types" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MsgSend is the Msg/Send request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `from` +// +// Since: 0.46.0 (finschia) +type MsgSend struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // holder whose tokens are being sent. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // recipient of the tokens. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // amount of tokens to send. + Amount Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=Coins" json:"amount"` +} + +func (m *MsgSend) Reset() { *m = MsgSend{} } +func (m *MsgSend) String() string { return proto.CompactTextString(m) } +func (*MsgSend) ProtoMessage() {} +func (*MsgSend) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{0} +} +func (m *MsgSend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSend.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSend) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSend.Merge(m, src) +} +func (m *MsgSend) XXX_Size() int { + return m.Size() +} +func (m *MsgSend) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSend.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSend proto.InternalMessageInfo + +func (m *MsgSend) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgSend) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgSend) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgSend) GetAmount() Coins { + if m != nil { + return m.Amount + } + return nil +} + +// MsgSendResponse is the Msg/Send response type. +// +// Since: 0.46.0 (finschia) +type MsgSendResponse struct { +} + +func (m *MsgSendResponse) Reset() { *m = MsgSendResponse{} } +func (m *MsgSendResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSendResponse) ProtoMessage() {} +func (*MsgSendResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{1} +} +func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSendResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSendResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSendResponse.Merge(m, src) +} +func (m *MsgSendResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSendResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSendResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSendResponse proto.InternalMessageInfo + +// MsgOperatorSend is the Msg/OperatorSend request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `from` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +type MsgOperatorSend struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggers the send. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // holder whose tokens are being sent. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // recipient of the tokens. + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // amount of tokens to send. + Amount Coins `protobuf:"bytes,5,rep,name=amount,proto3,castrepeated=Coins" json:"amount"` +} + +func (m *MsgOperatorSend) Reset() { *m = MsgOperatorSend{} } +func (m *MsgOperatorSend) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorSend) ProtoMessage() {} +func (*MsgOperatorSend) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{2} +} +func (m *MsgOperatorSend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorSend.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOperatorSend) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorSend.Merge(m, src) +} +func (m *MsgOperatorSend) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorSend) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorSend.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorSend proto.InternalMessageInfo + +func (m *MsgOperatorSend) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgOperatorSend) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgOperatorSend) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgOperatorSend) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgOperatorSend) GetAmount() Coins { + if m != nil { + return m.Amount + } + return nil +} + +// MsgOperatorSendResponse is the Msg/OperatorSend response type. +// +// Since: 0.46.0 (finschia) +type MsgOperatorSendResponse struct { +} + +func (m *MsgOperatorSendResponse) Reset() { *m = MsgOperatorSendResponse{} } +func (m *MsgOperatorSendResponse) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorSendResponse) ProtoMessage() {} +func (*MsgOperatorSendResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{3} +} +func (m *MsgOperatorSendResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorSendResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOperatorSendResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorSendResponse.Merge(m, src) +} +func (m *MsgOperatorSendResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorSendResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorSendResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorSendResponse proto.InternalMessageInfo + +// Deprecated: use MsgSend +// +// MsgTransferFT is the Msg/TransferFT request type. +type MsgTransferFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address which the transfer is from. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // the address which the transfer is to. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // the amount of the transfer. + // Note: amount may be empty. + Amount []Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount"` +} + +func (m *MsgTransferFT) Reset() { *m = MsgTransferFT{} } +func (m *MsgTransferFT) String() string { return proto.CompactTextString(m) } +func (*MsgTransferFT) ProtoMessage() {} +func (*MsgTransferFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{4} +} +func (m *MsgTransferFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferFT.Merge(m, src) +} +func (m *MsgTransferFT) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferFT proto.InternalMessageInfo + +func (m *MsgTransferFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgTransferFT) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgTransferFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgTransferFT) GetAmount() []Coin { + if m != nil { + return m.Amount + } + return nil +} + +// Deprecated: do not use +// +// MsgTransferFTResponse is the Msg/TransferFT response type. +type MsgTransferFTResponse struct { +} + +func (m *MsgTransferFTResponse) Reset() { *m = MsgTransferFTResponse{} } +func (m *MsgTransferFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgTransferFTResponse) ProtoMessage() {} +func (*MsgTransferFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{5} +} +func (m *MsgTransferFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferFTResponse.Merge(m, src) +} +func (m *MsgTransferFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferFTResponse proto.InternalMessageInfo + +// Deprecated: use MsgOperatorSend +// +// MsgTransferFTFrom is the Msg/TransferFTFrom request type. +type MsgTransferFTFrom struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the operator. + Proxy string `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"` + // the address which the transfer is from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the address which the transfer is to. + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // the amount of the transfer. + // Note: amount may be empty. + Amount []Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount"` +} + +func (m *MsgTransferFTFrom) Reset() { *m = MsgTransferFTFrom{} } +func (m *MsgTransferFTFrom) String() string { return proto.CompactTextString(m) } +func (*MsgTransferFTFrom) ProtoMessage() {} +func (*MsgTransferFTFrom) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{6} +} +func (m *MsgTransferFTFrom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferFTFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferFTFrom.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferFTFrom) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferFTFrom.Merge(m, src) +} +func (m *MsgTransferFTFrom) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferFTFrom) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferFTFrom.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferFTFrom proto.InternalMessageInfo + +func (m *MsgTransferFTFrom) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgTransferFTFrom) GetProxy() string { + if m != nil { + return m.Proxy + } + return "" +} + +func (m *MsgTransferFTFrom) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgTransferFTFrom) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgTransferFTFrom) GetAmount() []Coin { + if m != nil { + return m.Amount + } + return nil +} + +// Deprecated: do not use +// +// MsgTransferFTFromResponse is the Msg/TransferFTFrom response type. +type MsgTransferFTFromResponse struct { +} + +func (m *MsgTransferFTFromResponse) Reset() { *m = MsgTransferFTFromResponse{} } +func (m *MsgTransferFTFromResponse) String() string { return proto.CompactTextString(m) } +func (*MsgTransferFTFromResponse) ProtoMessage() {} +func (*MsgTransferFTFromResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{7} +} +func (m *MsgTransferFTFromResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferFTFromResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferFTFromResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferFTFromResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferFTFromResponse.Merge(m, src) +} +func (m *MsgTransferFTFromResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferFTFromResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferFTFromResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferFTFromResponse proto.InternalMessageInfo + +// Deprecated: use MsgSend +// +// MsgTransferNFT is the Msg/TransferNFT request type. +type MsgTransferNFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address which the transfer is from. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // the address which the transfer is to. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // the token ids to transfer. + TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` +} + +func (m *MsgTransferNFT) Reset() { *m = MsgTransferNFT{} } +func (m *MsgTransferNFT) String() string { return proto.CompactTextString(m) } +func (*MsgTransferNFT) ProtoMessage() {} +func (*MsgTransferNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{8} +} +func (m *MsgTransferNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferNFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferNFT.Merge(m, src) +} +func (m *MsgTransferNFT) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferNFT proto.InternalMessageInfo + +func (m *MsgTransferNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgTransferNFT) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgTransferNFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgTransferNFT) GetTokenIds() []string { + if m != nil { + return m.TokenIds + } + return nil +} + +// Deprecated: do not use +// +// MsgTransferNFTResponse is the Msg/TransferNFT response type. +type MsgTransferNFTResponse struct { +} + +func (m *MsgTransferNFTResponse) Reset() { *m = MsgTransferNFTResponse{} } +func (m *MsgTransferNFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgTransferNFTResponse) ProtoMessage() {} +func (*MsgTransferNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{9} +} +func (m *MsgTransferNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferNFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferNFTResponse.Merge(m, src) +} +func (m *MsgTransferNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferNFTResponse proto.InternalMessageInfo + +// Deprecated: use MsgOperatorSend +// +// MsgTransferNFTFrom is the Msg/TransferNFTFrom request type. +type MsgTransferNFTFrom struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the operator. + Proxy string `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"` + // the address which the transfer is from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the address which the transfer is to. + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // the token ids to transfer. + TokenIds []string `protobuf:"bytes,5,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` +} + +func (m *MsgTransferNFTFrom) Reset() { *m = MsgTransferNFTFrom{} } +func (m *MsgTransferNFTFrom) String() string { return proto.CompactTextString(m) } +func (*MsgTransferNFTFrom) ProtoMessage() {} +func (*MsgTransferNFTFrom) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{10} +} +func (m *MsgTransferNFTFrom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferNFTFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferNFTFrom.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferNFTFrom) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferNFTFrom.Merge(m, src) +} +func (m *MsgTransferNFTFrom) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferNFTFrom) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferNFTFrom.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferNFTFrom proto.InternalMessageInfo + +func (m *MsgTransferNFTFrom) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgTransferNFTFrom) GetProxy() string { + if m != nil { + return m.Proxy + } + return "" +} + +func (m *MsgTransferNFTFrom) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgTransferNFTFrom) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgTransferNFTFrom) GetTokenIds() []string { + if m != nil { + return m.TokenIds + } + return nil +} + +// Deprecated: do not use +// +// MsgTransferNFTFromResponse is the Msg/TransferNFTFrom response type. +type MsgTransferNFTFromResponse struct { +} + +func (m *MsgTransferNFTFromResponse) Reset() { *m = MsgTransferNFTFromResponse{} } +func (m *MsgTransferNFTFromResponse) String() string { return proto.CompactTextString(m) } +func (*MsgTransferNFTFromResponse) ProtoMessage() {} +func (*MsgTransferNFTFromResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{11} +} +func (m *MsgTransferNFTFromResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferNFTFromResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferNFTFromResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferNFTFromResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferNFTFromResponse.Merge(m, src) +} +func (m *MsgTransferNFTFromResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferNFTFromResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferNFTFromResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferNFTFromResponse proto.InternalMessageInfo + +// MsgAuthorizeOperator is the Msg/AuthorizeOperator request type. +// +// Throws: +// - ErrInvalidAddress +// - `holder` is of invalid format. +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// +// Signer: `holder` +// +// Since: 0.46.0 (finschia) +type MsgAuthorizeOperator struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of a holder which authorizes the `operator` address as an operator. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address to set as an operator for `holder`. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (m *MsgAuthorizeOperator) Reset() { *m = MsgAuthorizeOperator{} } +func (m *MsgAuthorizeOperator) String() string { return proto.CompactTextString(m) } +func (*MsgAuthorizeOperator) ProtoMessage() {} +func (*MsgAuthorizeOperator) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{12} +} +func (m *MsgAuthorizeOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAuthorizeOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAuthorizeOperator.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAuthorizeOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAuthorizeOperator.Merge(m, src) +} +func (m *MsgAuthorizeOperator) XXX_Size() int { + return m.Size() +} +func (m *MsgAuthorizeOperator) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAuthorizeOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAuthorizeOperator proto.InternalMessageInfo + +func (m *MsgAuthorizeOperator) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgAuthorizeOperator) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *MsgAuthorizeOperator) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +// MsgAuthorizeOperatorResponse is the Msg/AuthorizeOperator response type. +// +// Since: 0.46.0 (finschia) +type MsgAuthorizeOperatorResponse struct { +} + +func (m *MsgAuthorizeOperatorResponse) Reset() { *m = MsgAuthorizeOperatorResponse{} } +func (m *MsgAuthorizeOperatorResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAuthorizeOperatorResponse) ProtoMessage() {} +func (*MsgAuthorizeOperatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{13} +} +func (m *MsgAuthorizeOperatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAuthorizeOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAuthorizeOperatorResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAuthorizeOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAuthorizeOperatorResponse.Merge(m, src) +} +func (m *MsgAuthorizeOperatorResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAuthorizeOperatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAuthorizeOperatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAuthorizeOperatorResponse proto.InternalMessageInfo + +// MsgRevokeOperator is the Msg/RevokeOperator request type. +// +// Throws: +// - ErrInvalidAddress +// - `holder` is of invalid format. +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// +// Signer: `holder` +// +// Since: 0.46.0 (finschia) +type MsgRevokeOperator struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of a holder which revokes the `operator` address as an operator. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address to rescind as an operator for `holder`. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (m *MsgRevokeOperator) Reset() { *m = MsgRevokeOperator{} } +func (m *MsgRevokeOperator) String() string { return proto.CompactTextString(m) } +func (*MsgRevokeOperator) ProtoMessage() {} +func (*MsgRevokeOperator) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{14} +} +func (m *MsgRevokeOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRevokeOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRevokeOperator.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRevokeOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRevokeOperator.Merge(m, src) +} +func (m *MsgRevokeOperator) XXX_Size() int { + return m.Size() +} +func (m *MsgRevokeOperator) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRevokeOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRevokeOperator proto.InternalMessageInfo + +func (m *MsgRevokeOperator) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgRevokeOperator) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *MsgRevokeOperator) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +// MsgRevokeOperatorResponse is the Msg/RevokeOperator response type. +// +// Since: 0.46.0 (finschia) +type MsgRevokeOperatorResponse struct { +} + +func (m *MsgRevokeOperatorResponse) Reset() { *m = MsgRevokeOperatorResponse{} } +func (m *MsgRevokeOperatorResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRevokeOperatorResponse) ProtoMessage() {} +func (*MsgRevokeOperatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{15} +} +func (m *MsgRevokeOperatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRevokeOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRevokeOperatorResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRevokeOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRevokeOperatorResponse.Merge(m, src) +} +func (m *MsgRevokeOperatorResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRevokeOperatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRevokeOperatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRevokeOperatorResponse proto.InternalMessageInfo + +// Deprecated: use MsgAuthorizeOperator +// +// MsgApprove is the Msg/Approve request type. +type MsgApprove struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the holder who allows the manipulation of its token. + Approver string `protobuf:"bytes,2,opt,name=approver,proto3" json:"approver,omitempty"` + // address which the manipulation is allowed to. + Proxy string `protobuf:"bytes,3,opt,name=proxy,proto3" json:"proxy,omitempty"` +} + +func (m *MsgApprove) Reset() { *m = MsgApprove{} } +func (m *MsgApprove) String() string { return proto.CompactTextString(m) } +func (*MsgApprove) ProtoMessage() {} +func (*MsgApprove) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{16} +} +func (m *MsgApprove) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgApprove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgApprove.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgApprove) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgApprove.Merge(m, src) +} +func (m *MsgApprove) XXX_Size() int { + return m.Size() +} +func (m *MsgApprove) XXX_DiscardUnknown() { + xxx_messageInfo_MsgApprove.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgApprove proto.InternalMessageInfo + +func (m *MsgApprove) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgApprove) GetApprover() string { + if m != nil { + return m.Approver + } + return "" +} + +func (m *MsgApprove) GetProxy() string { + if m != nil { + return m.Proxy + } + return "" +} + +// Deprecated: do not use +// +// MsgApproveResponse is the Msg/Approve response type. +type MsgApproveResponse struct { +} + +func (m *MsgApproveResponse) Reset() { *m = MsgApproveResponse{} } +func (m *MsgApproveResponse) String() string { return proto.CompactTextString(m) } +func (*MsgApproveResponse) ProtoMessage() {} +func (*MsgApproveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{17} +} +func (m *MsgApproveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgApproveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgApproveResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgApproveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgApproveResponse.Merge(m, src) +} +func (m *MsgApproveResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgApproveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgApproveResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgApproveResponse proto.InternalMessageInfo + +// Deprecated: use MsgRevokeOperator +// +// MsgDisapprove is the Msg/Disapprove request type. +type MsgDisapprove struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the holder who allows the manipulation of its token. + Approver string `protobuf:"bytes,2,opt,name=approver,proto3" json:"approver,omitempty"` + // address which the manipulation is allowed to. + Proxy string `protobuf:"bytes,3,opt,name=proxy,proto3" json:"proxy,omitempty"` +} + +func (m *MsgDisapprove) Reset() { *m = MsgDisapprove{} } +func (m *MsgDisapprove) String() string { return proto.CompactTextString(m) } +func (*MsgDisapprove) ProtoMessage() {} +func (*MsgDisapprove) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{18} +} +func (m *MsgDisapprove) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDisapprove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDisapprove.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDisapprove) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDisapprove.Merge(m, src) +} +func (m *MsgDisapprove) XXX_Size() int { + return m.Size() +} +func (m *MsgDisapprove) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDisapprove.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDisapprove proto.InternalMessageInfo + +func (m *MsgDisapprove) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgDisapprove) GetApprover() string { + if m != nil { + return m.Approver + } + return "" +} + +func (m *MsgDisapprove) GetProxy() string { + if m != nil { + return m.Proxy + } + return "" +} + +// Deprecated: do not use +// +// MsgDisapproveResponse is the Msg/Disapprove response type. +type MsgDisapproveResponse struct { +} + +func (m *MsgDisapproveResponse) Reset() { *m = MsgDisapproveResponse{} } +func (m *MsgDisapproveResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDisapproveResponse) ProtoMessage() {} +func (*MsgDisapproveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{19} +} +func (m *MsgDisapproveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDisapproveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDisapproveResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDisapproveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDisapproveResponse.Merge(m, src) +} +func (m *MsgDisapproveResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDisapproveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDisapproveResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDisapproveResponse proto.InternalMessageInfo + +// MsgCreateContract is the Msg/CreateContract request type. +// +// Throws: +// - ErrInvalidAddress +// - `owner` is of invalid format. +// - ErrInvalidRequest +// - `name` exceeds the app-specific limit in length. +// - `base_img_uri` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// +// Signer: `owner` +type MsgCreateContract struct { + // address which all the permissions on the contract will be granted to (not a permanent property). + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + // name defines the human-readable name of the contract. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // base img uri is an uri for the contract image stored off chain. + BaseImgUri string `protobuf:"bytes,3,opt,name=base_img_uri,json=baseImgUri,proto3" json:"base_img_uri,omitempty"` + // meta is a brief description of the contract. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (m *MsgCreateContract) Reset() { *m = MsgCreateContract{} } +func (m *MsgCreateContract) String() string { return proto.CompactTextString(m) } +func (*MsgCreateContract) ProtoMessage() {} +func (*MsgCreateContract) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{20} +} +func (m *MsgCreateContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateContract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateContract.Merge(m, src) +} +func (m *MsgCreateContract) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateContract) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateContract.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateContract proto.InternalMessageInfo + +func (m *MsgCreateContract) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgCreateContract) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MsgCreateContract) GetBaseImgUri() string { + if m != nil { + return m.BaseImgUri + } + return "" +} + +func (m *MsgCreateContract) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +// MsgCreateContractResponse is the Msg/CreateContract response type. +type MsgCreateContractResponse struct { + // id of the new contract. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *MsgCreateContractResponse) Reset() { *m = MsgCreateContractResponse{} } +func (m *MsgCreateContractResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateContractResponse) ProtoMessage() {} +func (*MsgCreateContractResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{21} +} +func (m *MsgCreateContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateContractResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateContractResponse.Merge(m, src) +} +func (m *MsgCreateContractResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateContractResponse proto.InternalMessageInfo + +func (m *MsgCreateContractResponse) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +// MsgCreateFTClass is the Msg/CreateFTClass request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `to` is not empty and is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `name` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// - `decimals` is lesser than 0 or greater than 18. +// - `supply` is positive and `to` is of invalid format. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +type MsgCreateFTClass struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggers the create. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // name defines the human-readable name of the token class. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token class. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` + // decimals is the number of decimals which one must divide the amount by to get its user representation. + Decimals int32 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"` + // recipient of the minted tokens. + To string `protobuf:"bytes,6,opt,name=to,proto3" json:"to,omitempty"` + // amount of tokens to mint on the create. + // Note: supply may be zero. + Supply github_com_line_lbm_sdk_types.Int `protobuf:"bytes,7,opt,name=supply,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"supply"` +} + +func (m *MsgCreateFTClass) Reset() { *m = MsgCreateFTClass{} } +func (m *MsgCreateFTClass) String() string { return proto.CompactTextString(m) } +func (*MsgCreateFTClass) ProtoMessage() {} +func (*MsgCreateFTClass) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{22} +} +func (m *MsgCreateFTClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateFTClass.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateFTClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateFTClass.Merge(m, src) +} +func (m *MsgCreateFTClass) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateFTClass) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateFTClass.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateFTClass proto.InternalMessageInfo + +func (m *MsgCreateFTClass) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgCreateFTClass) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgCreateFTClass) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MsgCreateFTClass) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *MsgCreateFTClass) GetDecimals() int32 { + if m != nil { + return m.Decimals + } + return 0 +} + +func (m *MsgCreateFTClass) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +// MsgCreateFTClassResponse is the Msg/CreateFTClass response type. +// +// Since: 0.46.0 (finschia) +type MsgCreateFTClassResponse struct { + // id of the new token class. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *MsgCreateFTClassResponse) Reset() { *m = MsgCreateFTClassResponse{} } +func (m *MsgCreateFTClassResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateFTClassResponse) ProtoMessage() {} +func (*MsgCreateFTClassResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{23} +} +func (m *MsgCreateFTClassResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateFTClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateFTClassResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateFTClassResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateFTClassResponse.Merge(m, src) +} +func (m *MsgCreateFTClassResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateFTClassResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateFTClassResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateFTClassResponse proto.InternalMessageInfo + +func (m *MsgCreateFTClassResponse) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +// MsgCreateNFTClass is the Msg/CreateNFTClass request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `name` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +type MsgCreateNFTClass struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggers the create. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // name defines the human-readable name of the token class. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token class. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (m *MsgCreateNFTClass) Reset() { *m = MsgCreateNFTClass{} } +func (m *MsgCreateNFTClass) String() string { return proto.CompactTextString(m) } +func (*MsgCreateNFTClass) ProtoMessage() {} +func (*MsgCreateNFTClass) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{24} +} +func (m *MsgCreateNFTClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateNFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateNFTClass.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateNFTClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateNFTClass.Merge(m, src) +} +func (m *MsgCreateNFTClass) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateNFTClass) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateNFTClass.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateNFTClass proto.InternalMessageInfo + +func (m *MsgCreateNFTClass) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgCreateNFTClass) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgCreateNFTClass) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MsgCreateNFTClass) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +// MsgCreateNFTClassResponse is the Msg/CreateNFTClass response type. +// +// Since: 0.46.0 (finschia) +type MsgCreateNFTClassResponse struct { + // id of the new token class. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *MsgCreateNFTClassResponse) Reset() { *m = MsgCreateNFTClassResponse{} } +func (m *MsgCreateNFTClassResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateNFTClassResponse) ProtoMessage() {} +func (*MsgCreateNFTClassResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{25} +} +func (m *MsgCreateNFTClassResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateNFTClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateNFTClassResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateNFTClassResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateNFTClassResponse.Merge(m, src) +} +func (m *MsgCreateNFTClassResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateNFTClassResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateNFTClassResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateNFTClassResponse proto.InternalMessageInfo + +func (m *MsgCreateNFTClassResponse) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +// Deprecated: use MsgCreateFTClass +// +// MsgIssueFT is the Msg/IssueFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `owner` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `name` is empty. +// - `name` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// - `decimals` is lesser than 0 or greater than 18. +// - `amount` is not positive. +// - `mintable` == false, amount == 1 and decimals == 0 (weird, but for the backward compatibility). +// +// Signer: `owner` +type MsgIssueFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // name defines the human-readable name of the token class. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token class. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // decimals is the number of decimals which one must divide the amount by to get its user representation. + Decimals int32 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"` + // mintable represents whether the token is allowed to be minted or burnt. + Mintable bool `protobuf:"varint,5,opt,name=mintable,proto3" json:"mintable,omitempty"` + // the address of the grantee which must have the permission to issue a token. + Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` + // the address to send the minted tokens to. mandatory. + To string `protobuf:"bytes,7,opt,name=to,proto3" json:"to,omitempty"` + // the amount of tokens to mint on the issuance. + // Note: if you provide negative amount, a panic may result. + // Note: amount may be zero. + Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,8,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"` +} + +func (m *MsgIssueFT) Reset() { *m = MsgIssueFT{} } +func (m *MsgIssueFT) String() string { return proto.CompactTextString(m) } +func (*MsgIssueFT) ProtoMessage() {} +func (*MsgIssueFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{26} +} +func (m *MsgIssueFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgIssueFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgIssueFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgIssueFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgIssueFT.Merge(m, src) +} +func (m *MsgIssueFT) XXX_Size() int { + return m.Size() +} +func (m *MsgIssueFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgIssueFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgIssueFT proto.InternalMessageInfo + +func (m *MsgIssueFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgIssueFT) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MsgIssueFT) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *MsgIssueFT) GetDecimals() int32 { + if m != nil { + return m.Decimals + } + return 0 +} + +func (m *MsgIssueFT) GetMintable() bool { + if m != nil { + return m.Mintable + } + return false +} + +func (m *MsgIssueFT) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgIssueFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +// Deprecated: do not use +// +// MsgIssueFTResponse is the Msg/IssueFT response type. +type MsgIssueFTResponse struct { + // id of the new token class. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *MsgIssueFTResponse) Reset() { *m = MsgIssueFTResponse{} } +func (m *MsgIssueFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgIssueFTResponse) ProtoMessage() {} +func (*MsgIssueFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{27} +} +func (m *MsgIssueFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgIssueFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgIssueFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgIssueFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgIssueFTResponse.Merge(m, src) +} +func (m *MsgIssueFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgIssueFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgIssueFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgIssueFTResponse proto.InternalMessageInfo + +func (m *MsgIssueFTResponse) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +// Deprecated: use MsgCreateNFTClass +// +// MsgIssueNFT is the Msg/IssueNFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `owner` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `name` exceeds the app-specific limit in length. +// - `meta` exceeds the app-specific limit in length. +// +// Signer: `owner` +type MsgIssueNFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // name defines the human-readable name of the token class. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token class. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // the address of the grantee which must have the permission to issue a token. + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *MsgIssueNFT) Reset() { *m = MsgIssueNFT{} } +func (m *MsgIssueNFT) String() string { return proto.CompactTextString(m) } +func (*MsgIssueNFT) ProtoMessage() {} +func (*MsgIssueNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{28} +} +func (m *MsgIssueNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgIssueNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgIssueNFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgIssueNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgIssueNFT.Merge(m, src) +} +func (m *MsgIssueNFT) XXX_Size() int { + return m.Size() +} +func (m *MsgIssueNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgIssueNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgIssueNFT proto.InternalMessageInfo + +func (m *MsgIssueNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgIssueNFT) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MsgIssueNFT) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *MsgIssueNFT) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +// Deprecated: do not use +// +// MsgIssueNFTResponse is the Msg/IssueNFT response type. +type MsgIssueNFTResponse struct { + // id of the new token class. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *MsgIssueNFTResponse) Reset() { *m = MsgIssueNFTResponse{} } +func (m *MsgIssueNFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgIssueNFTResponse) ProtoMessage() {} +func (*MsgIssueNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{29} +} +func (m *MsgIssueNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgIssueNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgIssueNFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgIssueNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgIssueNFTResponse.Merge(m, src) +} +func (m *MsgIssueNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgIssueNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgIssueNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgIssueNFTResponse proto.InternalMessageInfo + +func (m *MsgIssueNFTResponse) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +// MsgMintFT is the Msg/MintFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `from` +type MsgMintFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the grantee which has the permission for the mint. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // address which the minted tokens will be sent to. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // the amount of the mint. + // Note: amount may be empty. + Amount Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=Coins" json:"amount"` +} + +func (m *MsgMintFT) Reset() { *m = MsgMintFT{} } +func (m *MsgMintFT) String() string { return proto.CompactTextString(m) } +func (*MsgMintFT) ProtoMessage() {} +func (*MsgMintFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{30} +} +func (m *MsgMintFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMintFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMintFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgMintFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMintFT.Merge(m, src) +} +func (m *MsgMintFT) XXX_Size() int { + return m.Size() +} +func (m *MsgMintFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMintFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgMintFT proto.InternalMessageInfo + +func (m *MsgMintFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgMintFT) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgMintFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgMintFT) GetAmount() Coins { + if m != nil { + return m.Amount + } + return nil +} + +// MsgMintFTResponse is the Msg/MintFT response type. +type MsgMintFTResponse struct { +} + +func (m *MsgMintFTResponse) Reset() { *m = MsgMintFTResponse{} } +func (m *MsgMintFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgMintFTResponse) ProtoMessage() {} +func (*MsgMintFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{31} +} +func (m *MsgMintFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMintFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMintFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgMintFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMintFTResponse.Merge(m, src) +} +func (m *MsgMintFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgMintFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMintFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgMintFTResponse proto.InternalMessageInfo + +// MsgMintNFT is the Msg/MintNFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - `to` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `params` is empty. +// - `params` has an invalid element. +// +// Signer: `from` +type MsgMintNFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the grantee which has the permission for the mint. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // address which the minted token will be sent to. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // parameters for the minted tokens. + Params []MintNFTParam `protobuf:"bytes,4,rep,name=params,proto3" json:"params"` +} + +func (m *MsgMintNFT) Reset() { *m = MsgMintNFT{} } +func (m *MsgMintNFT) String() string { return proto.CompactTextString(m) } +func (*MsgMintNFT) ProtoMessage() {} +func (*MsgMintNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{32} +} +func (m *MsgMintNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMintNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMintNFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgMintNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMintNFT.Merge(m, src) +} +func (m *MsgMintNFT) XXX_Size() int { + return m.Size() +} +func (m *MsgMintNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMintNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgMintNFT proto.InternalMessageInfo + +func (m *MsgMintNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgMintNFT) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgMintNFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgMintNFT) GetParams() []MintNFTParam { + if m != nil { + return m.Params + } + return nil +} + +// MsgMintNFTResponse is the Msg/MintNFT response type. +type MsgMintNFTResponse struct { + // ids of the new non-fungible tokens. + Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` +} + +func (m *MsgMintNFTResponse) Reset() { *m = MsgMintNFTResponse{} } +func (m *MsgMintNFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgMintNFTResponse) ProtoMessage() {} +func (*MsgMintNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{33} +} +func (m *MsgMintNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMintNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMintNFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgMintNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMintNFTResponse.Merge(m, src) +} +func (m *MsgMintNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgMintNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMintNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgMintNFTResponse proto.InternalMessageInfo + +func (m *MsgMintNFTResponse) GetIds() []string { + if m != nil { + return m.Ids + } + return nil +} + +// MintNFTParam defines a parameter for minting nft. +type MintNFTParam struct { + // token type or class id of the nft. + // Note: it cannot start with zero. + TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // name defines the human-readable name of the nft (mandatory). + // Note: it has an app-specific limit in length. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the nft. + // Note: it has an app-specific limit in length. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (m *MintNFTParam) Reset() { *m = MintNFTParam{} } +func (m *MintNFTParam) String() string { return proto.CompactTextString(m) } +func (*MintNFTParam) ProtoMessage() {} +func (*MintNFTParam) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{34} +} +func (m *MintNFTParam) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MintNFTParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MintNFTParam.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MintNFTParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_MintNFTParam.Merge(m, src) +} +func (m *MintNFTParam) XXX_Size() int { + return m.Size() +} +func (m *MintNFTParam) XXX_DiscardUnknown() { + xxx_messageInfo_MintNFTParam.DiscardUnknown(m) +} + +var xxx_messageInfo_MintNFTParam proto.InternalMessageInfo + +func (m *MintNFTParam) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +func (m *MintNFTParam) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MintNFTParam) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +// MsgBurn is the Msg/Burn request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `from` +// +// Since: 0.46.0 (finschia) +type MsgBurn struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // holder whose tokens are being burned. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // amount of tokens to burn. + Amount Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=Coins" json:"amount"` +} + +func (m *MsgBurn) Reset() { *m = MsgBurn{} } +func (m *MsgBurn) String() string { return proto.CompactTextString(m) } +func (*MsgBurn) ProtoMessage() {} +func (*MsgBurn) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{35} +} +func (m *MsgBurn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurn.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurn) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurn.Merge(m, src) +} +func (m *MsgBurn) XXX_Size() int { + return m.Size() +} +func (m *MsgBurn) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurn.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurn proto.InternalMessageInfo + +func (m *MsgBurn) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgBurn) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgBurn) GetAmount() Coins { + if m != nil { + return m.Amount + } + return nil +} + +// MsgBurnResponse is the Msg/Burn response type. +// +// Since: 0.46.0 (finschia) +type MsgBurnResponse struct { +} + +func (m *MsgBurnResponse) Reset() { *m = MsgBurnResponse{} } +func (m *MsgBurnResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBurnResponse) ProtoMessage() {} +func (*MsgBurnResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{36} +} +func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnResponse.Merge(m, src) +} +func (m *MsgBurnResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnResponse proto.InternalMessageInfo + +// MsgOperatorBurn is the Msg/OperatorBurn request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `from` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `amount` is not positive. +// +// Signer: `from` +// +// Since: 0.46.0 (finschia) +type MsgOperatorBurn struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggers the burn. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // holder whose tokens are being burned. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // amount of tokens to burn. + Amount Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=Coins" json:"amount"` +} + +func (m *MsgOperatorBurn) Reset() { *m = MsgOperatorBurn{} } +func (m *MsgOperatorBurn) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorBurn) ProtoMessage() {} +func (*MsgOperatorBurn) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{37} +} +func (m *MsgOperatorBurn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorBurn.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOperatorBurn) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorBurn.Merge(m, src) +} +func (m *MsgOperatorBurn) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorBurn) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorBurn.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorBurn proto.InternalMessageInfo + +func (m *MsgOperatorBurn) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgOperatorBurn) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgOperatorBurn) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgOperatorBurn) GetAmount() Coins { + if m != nil { + return m.Amount + } + return nil +} + +// MsgOperatorBurnResponse is the Msg/OperatorBurn response type. +// +// Since: 0.46.0 (finschia) +type MsgOperatorBurnResponse struct { +} + +func (m *MsgOperatorBurnResponse) Reset() { *m = MsgOperatorBurnResponse{} } +func (m *MsgOperatorBurnResponse) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorBurnResponse) ProtoMessage() {} +func (*MsgOperatorBurnResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{38} +} +func (m *MsgOperatorBurnResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorBurnResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOperatorBurnResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorBurnResponse.Merge(m, src) +} +func (m *MsgOperatorBurnResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorBurnResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorBurnResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorBurnResponse proto.InternalMessageInfo + +// Deprecated: use MsgBurn +// +// MsgBurnFT is the Msg/BurnFT request type. +type MsgBurnFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which the tokens will be burnt from. + // Note: it must have the permission for the burn. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // the amount of the burn. + // Note: amount may be empty. + Amount []Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` +} + +func (m *MsgBurnFT) Reset() { *m = MsgBurnFT{} } +func (m *MsgBurnFT) String() string { return proto.CompactTextString(m) } +func (*MsgBurnFT) ProtoMessage() {} +func (*MsgBurnFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{39} +} +func (m *MsgBurnFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnFT.Merge(m, src) +} +func (m *MsgBurnFT) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnFT proto.InternalMessageInfo + +func (m *MsgBurnFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgBurnFT) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgBurnFT) GetAmount() []Coin { + if m != nil { + return m.Amount + } + return nil +} + +// Deprecated: do not use +// +// MsgBurnFTResponse is the Msg/BurnFT response type. +type MsgBurnFTResponse struct { +} + +func (m *MsgBurnFTResponse) Reset() { *m = MsgBurnFTResponse{} } +func (m *MsgBurnFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBurnFTResponse) ProtoMessage() {} +func (*MsgBurnFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{40} +} +func (m *MsgBurnFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnFTResponse.Merge(m, src) +} +func (m *MsgBurnFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnFTResponse proto.InternalMessageInfo + +// Deprecated: use MsgOperatorBurn +// +// MsgBurnFTFrom is the Msg/BurnFTFrom request type. +type MsgBurnFTFrom struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggers the burn. + // Note: it must have the permission for the burn. + // Note: it must have been authorized by from. + Proxy string `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"` + // address which the tokens will be burnt from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the amount of the burn. + // Note: amount may be empty. + Amount []Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount"` +} + +func (m *MsgBurnFTFrom) Reset() { *m = MsgBurnFTFrom{} } +func (m *MsgBurnFTFrom) String() string { return proto.CompactTextString(m) } +func (*MsgBurnFTFrom) ProtoMessage() {} +func (*MsgBurnFTFrom) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{41} +} +func (m *MsgBurnFTFrom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnFTFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnFTFrom.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnFTFrom) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnFTFrom.Merge(m, src) +} +func (m *MsgBurnFTFrom) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnFTFrom) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnFTFrom.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnFTFrom proto.InternalMessageInfo + +func (m *MsgBurnFTFrom) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgBurnFTFrom) GetProxy() string { + if m != nil { + return m.Proxy + } + return "" +} + +func (m *MsgBurnFTFrom) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgBurnFTFrom) GetAmount() []Coin { + if m != nil { + return m.Amount + } + return nil +} + +// Deprecated: do not use +// +// MsgBurnFTFromResponse is the Msg/BurnFTFrom response type. +type MsgBurnFTFromResponse struct { +} + +func (m *MsgBurnFTFromResponse) Reset() { *m = MsgBurnFTFromResponse{} } +func (m *MsgBurnFTFromResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBurnFTFromResponse) ProtoMessage() {} +func (*MsgBurnFTFromResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{42} +} +func (m *MsgBurnFTFromResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnFTFromResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnFTFromResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnFTFromResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnFTFromResponse.Merge(m, src) +} +func (m *MsgBurnFTFromResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnFTFromResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnFTFromResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnFTFromResponse proto.InternalMessageInfo + +// Deprecated: use MsgBurn +// +// MsgBurnNFT is the Msg/BurnNFT request type. +type MsgBurnNFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which the tokens will be burnt from. + // Note: it must have the permission for the burn. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // the token ids to burn. + // Note: id cannot start with zero. + TokenIds []string `protobuf:"bytes,3,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` +} + +func (m *MsgBurnNFT) Reset() { *m = MsgBurnNFT{} } +func (m *MsgBurnNFT) String() string { return proto.CompactTextString(m) } +func (*MsgBurnNFT) ProtoMessage() {} +func (*MsgBurnNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{43} +} +func (m *MsgBurnNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnNFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnNFT.Merge(m, src) +} +func (m *MsgBurnNFT) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnNFT proto.InternalMessageInfo + +func (m *MsgBurnNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgBurnNFT) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgBurnNFT) GetTokenIds() []string { + if m != nil { + return m.TokenIds + } + return nil +} + +// Deprecated: do not use +// +// MsgBurnNFTResponse is the Msg/BurnNFT response type. +type MsgBurnNFTResponse struct { +} + +func (m *MsgBurnNFTResponse) Reset() { *m = MsgBurnNFTResponse{} } +func (m *MsgBurnNFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBurnNFTResponse) ProtoMessage() {} +func (*MsgBurnNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{44} +} +func (m *MsgBurnNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnNFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnNFTResponse.Merge(m, src) +} +func (m *MsgBurnNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnNFTResponse proto.InternalMessageInfo + +// Deprecated: use MsgOperatorBurn +// +// MsgBurnNFTFrom is the Msg/BurnNFTFrom request type. +type MsgBurnNFTFrom struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggers the burn. + // Note: it must have the permission for the burn. + // Note: it must have been authorized by from. + Proxy string `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"` + // address which the tokens will be burnt from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the token ids to burn. + // Note: id cannot start with zero. + TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` +} + +func (m *MsgBurnNFTFrom) Reset() { *m = MsgBurnNFTFrom{} } +func (m *MsgBurnNFTFrom) String() string { return proto.CompactTextString(m) } +func (*MsgBurnNFTFrom) ProtoMessage() {} +func (*MsgBurnNFTFrom) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{45} +} +func (m *MsgBurnNFTFrom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnNFTFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnNFTFrom.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnNFTFrom) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnNFTFrom.Merge(m, src) +} +func (m *MsgBurnNFTFrom) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnNFTFrom) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnNFTFrom.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnNFTFrom proto.InternalMessageInfo + +func (m *MsgBurnNFTFrom) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgBurnNFTFrom) GetProxy() string { + if m != nil { + return m.Proxy + } + return "" +} + +func (m *MsgBurnNFTFrom) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgBurnNFTFrom) GetTokenIds() []string { + if m != nil { + return m.TokenIds + } + return nil +} + +// Deprecated: do not use +// +// MsgBurnNFTFromResponse is the Msg/BurnNFTFrom response type. +type MsgBurnNFTFromResponse struct { +} + +func (m *MsgBurnNFTFromResponse) Reset() { *m = MsgBurnNFTFromResponse{} } +func (m *MsgBurnNFTFromResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBurnNFTFromResponse) ProtoMessage() {} +func (*MsgBurnNFTFromResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{46} +} +func (m *MsgBurnNFTFromResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnNFTFromResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnNFTFromResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnNFTFromResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnNFTFromResponse.Merge(m, src) +} +func (m *MsgBurnNFTFromResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnNFTFromResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnNFTFromResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnNFTFromResponse proto.InternalMessageInfo + +// MsgModifyContract is the Msg/ModifyContract request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `changes` has duplicate keys. +// - `changes` has a key which is not allowed to modify. +// - `changes` is empty. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +type MsgModifyContract struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggers the modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // attributes to apply. + Changes []Attribute `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"` +} + +func (m *MsgModifyContract) Reset() { *m = MsgModifyContract{} } +func (m *MsgModifyContract) String() string { return proto.CompactTextString(m) } +func (*MsgModifyContract) ProtoMessage() {} +func (*MsgModifyContract) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{47} +} +func (m *MsgModifyContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModifyContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModifyContract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModifyContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModifyContract.Merge(m, src) +} +func (m *MsgModifyContract) XXX_Size() int { + return m.Size() +} +func (m *MsgModifyContract) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModifyContract.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModifyContract proto.InternalMessageInfo + +func (m *MsgModifyContract) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgModifyContract) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgModifyContract) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +// MsgModifyContractResponse is the Msg/ModifyContract response type. +// +// Since: 0.46.0 (finschia) +type MsgModifyContractResponse struct { +} + +func (m *MsgModifyContractResponse) Reset() { *m = MsgModifyContractResponse{} } +func (m *MsgModifyContractResponse) String() string { return proto.CompactTextString(m) } +func (*MsgModifyContractResponse) ProtoMessage() {} +func (*MsgModifyContractResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{48} +} +func (m *MsgModifyContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModifyContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModifyContractResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModifyContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModifyContractResponse.Merge(m, src) +} +func (m *MsgModifyContractResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgModifyContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModifyContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModifyContractResponse proto.InternalMessageInfo + +// MsgModifyTokenClass is the Msg/ModifyTokenClass request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `class_id` is of invalid format. +// - `changes` has duplicate keys. +// - `changes` has a key which is not allowed to modify. +// - `changes` is empty. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +type MsgModifyTokenClass struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggers the modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // attributes to apply. + Changes []Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes"` +} + +func (m *MsgModifyTokenClass) Reset() { *m = MsgModifyTokenClass{} } +func (m *MsgModifyTokenClass) String() string { return proto.CompactTextString(m) } +func (*MsgModifyTokenClass) ProtoMessage() {} +func (*MsgModifyTokenClass) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{49} +} +func (m *MsgModifyTokenClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModifyTokenClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModifyTokenClass.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModifyTokenClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModifyTokenClass.Merge(m, src) +} +func (m *MsgModifyTokenClass) XXX_Size() int { + return m.Size() +} +func (m *MsgModifyTokenClass) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModifyTokenClass.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModifyTokenClass proto.InternalMessageInfo + +func (m *MsgModifyTokenClass) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgModifyTokenClass) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgModifyTokenClass) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +func (m *MsgModifyTokenClass) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +// MsgModifyTokenClassResponse is the Msg/ModifyTokenClass response type. +// +// Since: 0.46.0 (finschia) +type MsgModifyTokenClassResponse struct { +} + +func (m *MsgModifyTokenClassResponse) Reset() { *m = MsgModifyTokenClassResponse{} } +func (m *MsgModifyTokenClassResponse) String() string { return proto.CompactTextString(m) } +func (*MsgModifyTokenClassResponse) ProtoMessage() {} +func (*MsgModifyTokenClassResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{50} +} +func (m *MsgModifyTokenClassResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModifyTokenClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModifyTokenClassResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModifyTokenClassResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModifyTokenClassResponse.Merge(m, src) +} +func (m *MsgModifyTokenClassResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgModifyTokenClassResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModifyTokenClassResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModifyTokenClassResponse proto.InternalMessageInfo + +// MsgModifyNFT is the Msg/ModifyNFT request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `token_id` is of invalid format. +// - `changes` has duplicate keys. +// - `changes` has a key which is not allowed to modify. +// - `changes` is empty. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +type MsgModifyNFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address which triggers the modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // token id associated with the non-fungible token. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // attributes to apply. + Changes []Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes"` +} + +func (m *MsgModifyNFT) Reset() { *m = MsgModifyNFT{} } +func (m *MsgModifyNFT) String() string { return proto.CompactTextString(m) } +func (*MsgModifyNFT) ProtoMessage() {} +func (*MsgModifyNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{51} +} +func (m *MsgModifyNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModifyNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModifyNFT.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModifyNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModifyNFT.Merge(m, src) +} +func (m *MsgModifyNFT) XXX_Size() int { + return m.Size() +} +func (m *MsgModifyNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModifyNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModifyNFT proto.InternalMessageInfo + +func (m *MsgModifyNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgModifyNFT) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgModifyNFT) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MsgModifyNFT) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +// MsgModifyNFTResponse is the Msg/ModifyNFT response type. +// +// Since: 0.46.0 (finschia) +type MsgModifyNFTResponse struct { +} + +func (m *MsgModifyNFTResponse) Reset() { *m = MsgModifyNFTResponse{} } +func (m *MsgModifyNFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgModifyNFTResponse) ProtoMessage() {} +func (*MsgModifyNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{52} +} +func (m *MsgModifyNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModifyNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModifyNFTResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModifyNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModifyNFTResponse.Merge(m, src) +} +func (m *MsgModifyNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgModifyNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModifyNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModifyNFTResponse proto.InternalMessageInfo + +// Deprecated: use MsgModifyContract, MsgModifyTokenClass or MsgModifyNFT +// +// MsgModify is the Msg/Modify request type. +type MsgModify struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the grantee which must have modify permission. + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + // token type of the token. + TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // token index of the token. + // if index is empty, it would modify the corresponding token type. + // if index is not empty, it would modify the corresponding nft. + // Note: if token type is of FTs, the index cannot be empty. + TokenIndex string `protobuf:"bytes,4,opt,name=token_index,json=tokenIndex,proto3" json:"token_index,omitempty"` + // changes to apply. + // on modifying collection: name, base_img_uri, meta. + // on modifying token type and token: name, meta. + Changes []Change `protobuf:"bytes,5,rep,name=changes,proto3" json:"changes"` +} + +func (m *MsgModify) Reset() { *m = MsgModify{} } +func (m *MsgModify) String() string { return proto.CompactTextString(m) } +func (*MsgModify) ProtoMessage() {} +func (*MsgModify) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{53} +} +func (m *MsgModify) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModify.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModify) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModify.Merge(m, src) +} +func (m *MsgModify) XXX_Size() int { + return m.Size() +} +func (m *MsgModify) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModify.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModify proto.InternalMessageInfo + +func (m *MsgModify) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgModify) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgModify) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +func (m *MsgModify) GetTokenIndex() string { + if m != nil { + return m.TokenIndex + } + return "" +} + +func (m *MsgModify) GetChanges() []Change { + if m != nil { + return m.Changes + } + return nil +} + +// Deprecated: do not use +// +// MsgModifyResponse is the Msg/Modify response type. +type MsgModifyResponse struct { +} + +func (m *MsgModifyResponse) Reset() { *m = MsgModifyResponse{} } +func (m *MsgModifyResponse) String() string { return proto.CompactTextString(m) } +func (*MsgModifyResponse) ProtoMessage() {} +func (*MsgModifyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{54} +} +func (m *MsgModifyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModifyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModifyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModifyResponse.Merge(m, src) +} +func (m *MsgModifyResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgModifyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModifyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModifyResponse proto.InternalMessageInfo + +// MsgGrant is the Msg/Grant request type. +// +// Throws: +// - ErrInvalidAddress +// - `granter` is of invalid format. +// - `grantee` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `permission` is not a valid permission. +// +// Signer: `granter` +// +// Since: 0.46.0 (finschia) +type MsgGrant struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the granter which must have the permission to give. + Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"` + // address of the grantee. + Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` +} + +func (m *MsgGrant) Reset() { *m = MsgGrant{} } +func (m *MsgGrant) String() string { return proto.CompactTextString(m) } +func (*MsgGrant) ProtoMessage() {} +func (*MsgGrant) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{55} +} +func (m *MsgGrant) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGrant.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgGrant) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGrant.Merge(m, src) +} +func (m *MsgGrant) XXX_Size() int { + return m.Size() +} +func (m *MsgGrant) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGrant.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgGrant proto.InternalMessageInfo + +func (m *MsgGrant) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgGrant) GetGranter() string { + if m != nil { + return m.Granter + } + return "" +} + +func (m *MsgGrant) GetGrantee() string { + if m != nil { + return m.Grantee + } + return "" +} + +func (m *MsgGrant) GetPermission() Permission { + if m != nil { + return m.Permission + } + return PermissionUnspecified +} + +// MsgGrantResponse is the Msg/Grant response type. +// +// Since: 0.46.0 (finschia) +type MsgGrantResponse struct { +} + +func (m *MsgGrantResponse) Reset() { *m = MsgGrantResponse{} } +func (m *MsgGrantResponse) String() string { return proto.CompactTextString(m) } +func (*MsgGrantResponse) ProtoMessage() {} +func (*MsgGrantResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{56} +} +func (m *MsgGrantResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGrantResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgGrantResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGrantResponse.Merge(m, src) +} +func (m *MsgGrantResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgGrantResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGrantResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgGrantResponse proto.InternalMessageInfo + +// MsgAbandon is the Msg/Abandon request type. +// +// Throws: +// - ErrInvalidAddress +// - `grantee` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `permission` is not a valid permission. +// +// Signer: `grantee` +// +// Since: 0.46.0 (finschia) +type MsgAbandon struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the grantee which abandons the permission. + Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` +} + +func (m *MsgAbandon) Reset() { *m = MsgAbandon{} } +func (m *MsgAbandon) String() string { return proto.CompactTextString(m) } +func (*MsgAbandon) ProtoMessage() {} +func (*MsgAbandon) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{57} +} +func (m *MsgAbandon) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAbandon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAbandon.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAbandon) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAbandon.Merge(m, src) +} +func (m *MsgAbandon) XXX_Size() int { + return m.Size() +} +func (m *MsgAbandon) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAbandon.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAbandon proto.InternalMessageInfo + +func (m *MsgAbandon) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgAbandon) GetGrantee() string { + if m != nil { + return m.Grantee + } + return "" +} + +func (m *MsgAbandon) GetPermission() Permission { + if m != nil { + return m.Permission + } + return PermissionUnspecified +} + +// MsgAbandonResponse is the Msg/Abandon response type. +// +// Since: 0.46.0 (finschia) +type MsgAbandonResponse struct { +} + +func (m *MsgAbandonResponse) Reset() { *m = MsgAbandonResponse{} } +func (m *MsgAbandonResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAbandonResponse) ProtoMessage() {} +func (*MsgAbandonResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{58} +} +func (m *MsgAbandonResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAbandonResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAbandonResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAbandonResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAbandonResponse.Merge(m, src) +} +func (m *MsgAbandonResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAbandonResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAbandonResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAbandonResponse proto.InternalMessageInfo + +// Deprecated: use MsgGrant +// +// MsgGrantPermission is the Msg/GrantPermission request type. +type MsgGrantPermission struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the granter which must have the permission to give. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // address of the grantee. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // permission on the contract. + Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` +} + +func (m *MsgGrantPermission) Reset() { *m = MsgGrantPermission{} } +func (m *MsgGrantPermission) String() string { return proto.CompactTextString(m) } +func (*MsgGrantPermission) ProtoMessage() {} +func (*MsgGrantPermission) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{59} +} +func (m *MsgGrantPermission) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGrantPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGrantPermission.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgGrantPermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGrantPermission.Merge(m, src) +} +func (m *MsgGrantPermission) XXX_Size() int { + return m.Size() +} +func (m *MsgGrantPermission) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGrantPermission.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgGrantPermission proto.InternalMessageInfo + +func (m *MsgGrantPermission) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgGrantPermission) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgGrantPermission) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgGrantPermission) GetPermission() string { + if m != nil { + return m.Permission + } + return "" +} + +// Deprecated: do not use +// +// MsgGrantPermissionResponse is the Msg/GrantPermission response type. +type MsgGrantPermissionResponse struct { +} + +func (m *MsgGrantPermissionResponse) Reset() { *m = MsgGrantPermissionResponse{} } +func (m *MsgGrantPermissionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgGrantPermissionResponse) ProtoMessage() {} +func (*MsgGrantPermissionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{60} +} +func (m *MsgGrantPermissionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGrantPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGrantPermissionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgGrantPermissionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGrantPermissionResponse.Merge(m, src) +} +func (m *MsgGrantPermissionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgGrantPermissionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGrantPermissionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgGrantPermissionResponse proto.InternalMessageInfo + +// Deprecated: use MsgAbandon +// +// MsgRevokePermission is the Msg/RevokePermission request type. +type MsgRevokePermission struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the grantee which abandons the permission. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // permission on the contract. + Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` +} + +func (m *MsgRevokePermission) Reset() { *m = MsgRevokePermission{} } +func (m *MsgRevokePermission) String() string { return proto.CompactTextString(m) } +func (*MsgRevokePermission) ProtoMessage() {} +func (*MsgRevokePermission) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{61} +} +func (m *MsgRevokePermission) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRevokePermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRevokePermission.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRevokePermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRevokePermission.Merge(m, src) +} +func (m *MsgRevokePermission) XXX_Size() int { + return m.Size() +} +func (m *MsgRevokePermission) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRevokePermission.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRevokePermission proto.InternalMessageInfo + +func (m *MsgRevokePermission) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgRevokePermission) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgRevokePermission) GetPermission() string { + if m != nil { + return m.Permission + } + return "" +} + +// Deprecated: do not use +// +// MsgRevokePermissionResponse is the Msg/RevokePermission response type. +type MsgRevokePermissionResponse struct { +} + +func (m *MsgRevokePermissionResponse) Reset() { *m = MsgRevokePermissionResponse{} } +func (m *MsgRevokePermissionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRevokePermissionResponse) ProtoMessage() {} +func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{62} +} +func (m *MsgRevokePermissionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRevokePermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRevokePermissionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRevokePermissionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRevokePermissionResponse.Merge(m, src) +} +func (m *MsgRevokePermissionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRevokePermissionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRevokePermissionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRevokePermissionResponse proto.InternalMessageInfo + +// MsgAttach is the Msg/Attach request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `token_id` is of invalid format. +// - `to_token_id` is of invalid format. +// - `token_id` is equal to `to_token_id`. +// +// Signer: `from` +// +// TODO: revisit the field names +type MsgAttach struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the owner of the token. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // token id of the token to attach. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // to token id which one attachs the token to. + ToTokenId string `protobuf:"bytes,4,opt,name=to_token_id,json=toTokenId,proto3" json:"to_token_id,omitempty"` +} + +func (m *MsgAttach) Reset() { *m = MsgAttach{} } +func (m *MsgAttach) String() string { return proto.CompactTextString(m) } +func (*MsgAttach) ProtoMessage() {} +func (*MsgAttach) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{63} +} +func (m *MsgAttach) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAttach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAttach.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAttach) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAttach.Merge(m, src) +} +func (m *MsgAttach) XXX_Size() int { + return m.Size() +} +func (m *MsgAttach) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAttach.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAttach proto.InternalMessageInfo + +func (m *MsgAttach) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgAttach) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgAttach) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MsgAttach) GetToTokenId() string { + if m != nil { + return m.ToTokenId + } + return "" +} + +// MsgAttachResponse is the Msg/Attach response type. +type MsgAttachResponse struct { +} + +func (m *MsgAttachResponse) Reset() { *m = MsgAttachResponse{} } +func (m *MsgAttachResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAttachResponse) ProtoMessage() {} +func (*MsgAttachResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{64} +} +func (m *MsgAttachResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAttachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAttachResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAttachResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAttachResponse.Merge(m, src) +} +func (m *MsgAttachResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAttachResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAttachResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAttachResponse proto.InternalMessageInfo + +// MsgDetach is the Msg/Detach request type. +// +// Throws: +// - ErrInvalidAddress +// - `from` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `token_id` is of invalid format. +// +// Signer: `from` +// +// TODO: revisit the field names +type MsgDetach struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the owner of the token. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // token id of the token to detach. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *MsgDetach) Reset() { *m = MsgDetach{} } +func (m *MsgDetach) String() string { return proto.CompactTextString(m) } +func (*MsgDetach) ProtoMessage() {} +func (*MsgDetach) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{65} +} +func (m *MsgDetach) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDetach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDetach.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDetach) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDetach.Merge(m, src) +} +func (m *MsgDetach) XXX_Size() int { + return m.Size() +} +func (m *MsgDetach) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDetach.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDetach proto.InternalMessageInfo + +func (m *MsgDetach) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgDetach) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgDetach) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// MsgDetachResponse is the Msg/Detach response type. +type MsgDetachResponse struct { +} + +func (m *MsgDetachResponse) Reset() { *m = MsgDetachResponse{} } +func (m *MsgDetachResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDetachResponse) ProtoMessage() {} +func (*MsgDetachResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{66} +} +func (m *MsgDetachResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDetachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDetachResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDetachResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDetachResponse.Merge(m, src) +} +func (m *MsgDetachResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDetachResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDetachResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDetachResponse proto.InternalMessageInfo + +// MsgOperatorAttach is the Msg/OperatorAttach request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `owner` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `subject` is of invalid format. +// - `target` is of invalid format. +// - `subject` is equal to `target`. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +type MsgOperatorAttach struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // address of the owner of the token. + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + // token id of the token to attach. + Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` + // token id which one attachs the token to. + Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` +} + +func (m *MsgOperatorAttach) Reset() { *m = MsgOperatorAttach{} } +func (m *MsgOperatorAttach) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorAttach) ProtoMessage() {} +func (*MsgOperatorAttach) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{67} +} +func (m *MsgOperatorAttach) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorAttach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorAttach.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOperatorAttach) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorAttach.Merge(m, src) +} +func (m *MsgOperatorAttach) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorAttach) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorAttach.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorAttach proto.InternalMessageInfo + +func (m *MsgOperatorAttach) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgOperatorAttach) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgOperatorAttach) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgOperatorAttach) GetSubject() string { + if m != nil { + return m.Subject + } + return "" +} + +func (m *MsgOperatorAttach) GetTarget() string { + if m != nil { + return m.Target + } + return "" +} + +// MsgOperatorAttachResponse is the Msg/OperatorAttach response type. +// +// Since: 0.46.0 (finschia) +type MsgOperatorAttachResponse struct { +} + +func (m *MsgOperatorAttachResponse) Reset() { *m = MsgOperatorAttachResponse{} } +func (m *MsgOperatorAttachResponse) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorAttachResponse) ProtoMessage() {} +func (*MsgOperatorAttachResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{68} +} +func (m *MsgOperatorAttachResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorAttachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorAttachResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOperatorAttachResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorAttachResponse.Merge(m, src) +} +func (m *MsgOperatorAttachResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorAttachResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorAttachResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorAttachResponse proto.InternalMessageInfo + +// MsgOperatorDetach is the Msg/OperatorDetach request type. +// +// Throws: +// - ErrInvalidAddress +// - `operator` is of invalid format. +// - `owner` is of invalid format. +// - ErrInvalidRequest +// - `contract_id` is of invalid format. +// - `subject` is of invalid format. +// +// Signer: `operator` +// +// Since: 0.46.0 (finschia) +type MsgOperatorDetach struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // address of the holder of the token. + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + // token id of the token to detach. + Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` +} + +func (m *MsgOperatorDetach) Reset() { *m = MsgOperatorDetach{} } +func (m *MsgOperatorDetach) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorDetach) ProtoMessage() {} +func (*MsgOperatorDetach) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{69} +} +func (m *MsgOperatorDetach) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorDetach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorDetach.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOperatorDetach) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorDetach.Merge(m, src) +} +func (m *MsgOperatorDetach) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorDetach) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorDetach.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorDetach proto.InternalMessageInfo + +func (m *MsgOperatorDetach) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgOperatorDetach) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgOperatorDetach) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgOperatorDetach) GetSubject() string { + if m != nil { + return m.Subject + } + return "" +} + +// MsgOperatorDetachResponse is the Msg/OperatorDetach response type. +// +// Since: 0.46.0 (finschia) +type MsgOperatorDetachResponse struct { +} + +func (m *MsgOperatorDetachResponse) Reset() { *m = MsgOperatorDetachResponse{} } +func (m *MsgOperatorDetachResponse) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorDetachResponse) ProtoMessage() {} +func (*MsgOperatorDetachResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{70} +} +func (m *MsgOperatorDetachResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorDetachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorDetachResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOperatorDetachResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorDetachResponse.Merge(m, src) +} +func (m *MsgOperatorDetachResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorDetachResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorDetachResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorDetachResponse proto.InternalMessageInfo + +// Deprecated: use MsgOperatorAttach +// +// MsgAttachFrom is the Msg/AttachFrom request type. +type MsgAttachFrom struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the operator. + Proxy string `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"` + // address of the owner of the token. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // token id of the token to attach. + TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // to token id which one attachs the token to. + ToTokenId string `protobuf:"bytes,5,opt,name=to_token_id,json=toTokenId,proto3" json:"to_token_id,omitempty"` +} + +func (m *MsgAttachFrom) Reset() { *m = MsgAttachFrom{} } +func (m *MsgAttachFrom) String() string { return proto.CompactTextString(m) } +func (*MsgAttachFrom) ProtoMessage() {} +func (*MsgAttachFrom) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{71} +} +func (m *MsgAttachFrom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAttachFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAttachFrom.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAttachFrom) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAttachFrom.Merge(m, src) +} +func (m *MsgAttachFrom) XXX_Size() int { + return m.Size() +} +func (m *MsgAttachFrom) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAttachFrom.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAttachFrom proto.InternalMessageInfo + +func (m *MsgAttachFrom) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgAttachFrom) GetProxy() string { + if m != nil { + return m.Proxy + } + return "" +} + +func (m *MsgAttachFrom) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgAttachFrom) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MsgAttachFrom) GetToTokenId() string { + if m != nil { + return m.ToTokenId + } + return "" +} + +// Deprecated: do not use +// +// MsgAttachFromResponse is the Msg/AttachFrom response type. +type MsgAttachFromResponse struct { +} + +func (m *MsgAttachFromResponse) Reset() { *m = MsgAttachFromResponse{} } +func (m *MsgAttachFromResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAttachFromResponse) ProtoMessage() {} +func (*MsgAttachFromResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{72} +} +func (m *MsgAttachFromResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAttachFromResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAttachFromResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAttachFromResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAttachFromResponse.Merge(m, src) +} +func (m *MsgAttachFromResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAttachFromResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAttachFromResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAttachFromResponse proto.InternalMessageInfo + +// Deprecated: use MsgOperatorDetach +// +// MsgDetachFrom is the Msg/DetachFrom request type. +type MsgDetachFrom struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the operator. + Proxy string `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"` + // address of the owner of the token. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // token id of the token to detach. + TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *MsgDetachFrom) Reset() { *m = MsgDetachFrom{} } +func (m *MsgDetachFrom) String() string { return proto.CompactTextString(m) } +func (*MsgDetachFrom) ProtoMessage() {} +func (*MsgDetachFrom) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{73} +} +func (m *MsgDetachFrom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDetachFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDetachFrom.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDetachFrom) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDetachFrom.Merge(m, src) +} +func (m *MsgDetachFrom) XXX_Size() int { + return m.Size() +} +func (m *MsgDetachFrom) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDetachFrom.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDetachFrom proto.InternalMessageInfo + +func (m *MsgDetachFrom) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgDetachFrom) GetProxy() string { + if m != nil { + return m.Proxy + } + return "" +} + +func (m *MsgDetachFrom) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgDetachFrom) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// Deprecated: do not use +// +// MsgDetachFromResponse is the Msg/DetachFrom response type. +type MsgDetachFromResponse struct { +} + +func (m *MsgDetachFromResponse) Reset() { *m = MsgDetachFromResponse{} } +func (m *MsgDetachFromResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDetachFromResponse) ProtoMessage() {} +func (*MsgDetachFromResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{74} +} +func (m *MsgDetachFromResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDetachFromResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDetachFromResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDetachFromResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDetachFromResponse.Merge(m, src) +} +func (m *MsgDetachFromResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDetachFromResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDetachFromResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDetachFromResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgSend)(nil), "lbm.collection.v1.MsgSend") + proto.RegisterType((*MsgSendResponse)(nil), "lbm.collection.v1.MsgSendResponse") + proto.RegisterType((*MsgOperatorSend)(nil), "lbm.collection.v1.MsgOperatorSend") + proto.RegisterType((*MsgOperatorSendResponse)(nil), "lbm.collection.v1.MsgOperatorSendResponse") + proto.RegisterType((*MsgTransferFT)(nil), "lbm.collection.v1.MsgTransferFT") + proto.RegisterType((*MsgTransferFTResponse)(nil), "lbm.collection.v1.MsgTransferFTResponse") + proto.RegisterType((*MsgTransferFTFrom)(nil), "lbm.collection.v1.MsgTransferFTFrom") + proto.RegisterType((*MsgTransferFTFromResponse)(nil), "lbm.collection.v1.MsgTransferFTFromResponse") + proto.RegisterType((*MsgTransferNFT)(nil), "lbm.collection.v1.MsgTransferNFT") + proto.RegisterType((*MsgTransferNFTResponse)(nil), "lbm.collection.v1.MsgTransferNFTResponse") + proto.RegisterType((*MsgTransferNFTFrom)(nil), "lbm.collection.v1.MsgTransferNFTFrom") + proto.RegisterType((*MsgTransferNFTFromResponse)(nil), "lbm.collection.v1.MsgTransferNFTFromResponse") + proto.RegisterType((*MsgAuthorizeOperator)(nil), "lbm.collection.v1.MsgAuthorizeOperator") + proto.RegisterType((*MsgAuthorizeOperatorResponse)(nil), "lbm.collection.v1.MsgAuthorizeOperatorResponse") + proto.RegisterType((*MsgRevokeOperator)(nil), "lbm.collection.v1.MsgRevokeOperator") + proto.RegisterType((*MsgRevokeOperatorResponse)(nil), "lbm.collection.v1.MsgRevokeOperatorResponse") + proto.RegisterType((*MsgApprove)(nil), "lbm.collection.v1.MsgApprove") + proto.RegisterType((*MsgApproveResponse)(nil), "lbm.collection.v1.MsgApproveResponse") + proto.RegisterType((*MsgDisapprove)(nil), "lbm.collection.v1.MsgDisapprove") + proto.RegisterType((*MsgDisapproveResponse)(nil), "lbm.collection.v1.MsgDisapproveResponse") + proto.RegisterType((*MsgCreateContract)(nil), "lbm.collection.v1.MsgCreateContract") + proto.RegisterType((*MsgCreateContractResponse)(nil), "lbm.collection.v1.MsgCreateContractResponse") + proto.RegisterType((*MsgCreateFTClass)(nil), "lbm.collection.v1.MsgCreateFTClass") + proto.RegisterType((*MsgCreateFTClassResponse)(nil), "lbm.collection.v1.MsgCreateFTClassResponse") + proto.RegisterType((*MsgCreateNFTClass)(nil), "lbm.collection.v1.MsgCreateNFTClass") + proto.RegisterType((*MsgCreateNFTClassResponse)(nil), "lbm.collection.v1.MsgCreateNFTClassResponse") + proto.RegisterType((*MsgIssueFT)(nil), "lbm.collection.v1.MsgIssueFT") + proto.RegisterType((*MsgIssueFTResponse)(nil), "lbm.collection.v1.MsgIssueFTResponse") + proto.RegisterType((*MsgIssueNFT)(nil), "lbm.collection.v1.MsgIssueNFT") + proto.RegisterType((*MsgIssueNFTResponse)(nil), "lbm.collection.v1.MsgIssueNFTResponse") + proto.RegisterType((*MsgMintFT)(nil), "lbm.collection.v1.MsgMintFT") + proto.RegisterType((*MsgMintFTResponse)(nil), "lbm.collection.v1.MsgMintFTResponse") + proto.RegisterType((*MsgMintNFT)(nil), "lbm.collection.v1.MsgMintNFT") + proto.RegisterType((*MsgMintNFTResponse)(nil), "lbm.collection.v1.MsgMintNFTResponse") + proto.RegisterType((*MintNFTParam)(nil), "lbm.collection.v1.MintNFTParam") + proto.RegisterType((*MsgBurn)(nil), "lbm.collection.v1.MsgBurn") + proto.RegisterType((*MsgBurnResponse)(nil), "lbm.collection.v1.MsgBurnResponse") + proto.RegisterType((*MsgOperatorBurn)(nil), "lbm.collection.v1.MsgOperatorBurn") + proto.RegisterType((*MsgOperatorBurnResponse)(nil), "lbm.collection.v1.MsgOperatorBurnResponse") + proto.RegisterType((*MsgBurnFT)(nil), "lbm.collection.v1.MsgBurnFT") + proto.RegisterType((*MsgBurnFTResponse)(nil), "lbm.collection.v1.MsgBurnFTResponse") + proto.RegisterType((*MsgBurnFTFrom)(nil), "lbm.collection.v1.MsgBurnFTFrom") + proto.RegisterType((*MsgBurnFTFromResponse)(nil), "lbm.collection.v1.MsgBurnFTFromResponse") + proto.RegisterType((*MsgBurnNFT)(nil), "lbm.collection.v1.MsgBurnNFT") + proto.RegisterType((*MsgBurnNFTResponse)(nil), "lbm.collection.v1.MsgBurnNFTResponse") + proto.RegisterType((*MsgBurnNFTFrom)(nil), "lbm.collection.v1.MsgBurnNFTFrom") + proto.RegisterType((*MsgBurnNFTFromResponse)(nil), "lbm.collection.v1.MsgBurnNFTFromResponse") + proto.RegisterType((*MsgModifyContract)(nil), "lbm.collection.v1.MsgModifyContract") + proto.RegisterType((*MsgModifyContractResponse)(nil), "lbm.collection.v1.MsgModifyContractResponse") + proto.RegisterType((*MsgModifyTokenClass)(nil), "lbm.collection.v1.MsgModifyTokenClass") + proto.RegisterType((*MsgModifyTokenClassResponse)(nil), "lbm.collection.v1.MsgModifyTokenClassResponse") + proto.RegisterType((*MsgModifyNFT)(nil), "lbm.collection.v1.MsgModifyNFT") + proto.RegisterType((*MsgModifyNFTResponse)(nil), "lbm.collection.v1.MsgModifyNFTResponse") + proto.RegisterType((*MsgModify)(nil), "lbm.collection.v1.MsgModify") + proto.RegisterType((*MsgModifyResponse)(nil), "lbm.collection.v1.MsgModifyResponse") + proto.RegisterType((*MsgGrant)(nil), "lbm.collection.v1.MsgGrant") + proto.RegisterType((*MsgGrantResponse)(nil), "lbm.collection.v1.MsgGrantResponse") + proto.RegisterType((*MsgAbandon)(nil), "lbm.collection.v1.MsgAbandon") + proto.RegisterType((*MsgAbandonResponse)(nil), "lbm.collection.v1.MsgAbandonResponse") + proto.RegisterType((*MsgGrantPermission)(nil), "lbm.collection.v1.MsgGrantPermission") + proto.RegisterType((*MsgGrantPermissionResponse)(nil), "lbm.collection.v1.MsgGrantPermissionResponse") + proto.RegisterType((*MsgRevokePermission)(nil), "lbm.collection.v1.MsgRevokePermission") + proto.RegisterType((*MsgRevokePermissionResponse)(nil), "lbm.collection.v1.MsgRevokePermissionResponse") + proto.RegisterType((*MsgAttach)(nil), "lbm.collection.v1.MsgAttach") + proto.RegisterType((*MsgAttachResponse)(nil), "lbm.collection.v1.MsgAttachResponse") + proto.RegisterType((*MsgDetach)(nil), "lbm.collection.v1.MsgDetach") + proto.RegisterType((*MsgDetachResponse)(nil), "lbm.collection.v1.MsgDetachResponse") + proto.RegisterType((*MsgOperatorAttach)(nil), "lbm.collection.v1.MsgOperatorAttach") + proto.RegisterType((*MsgOperatorAttachResponse)(nil), "lbm.collection.v1.MsgOperatorAttachResponse") + proto.RegisterType((*MsgOperatorDetach)(nil), "lbm.collection.v1.MsgOperatorDetach") + proto.RegisterType((*MsgOperatorDetachResponse)(nil), "lbm.collection.v1.MsgOperatorDetachResponse") + proto.RegisterType((*MsgAttachFrom)(nil), "lbm.collection.v1.MsgAttachFrom") + proto.RegisterType((*MsgAttachFromResponse)(nil), "lbm.collection.v1.MsgAttachFromResponse") + proto.RegisterType((*MsgDetachFrom)(nil), "lbm.collection.v1.MsgDetachFrom") + proto.RegisterType((*MsgDetachFromResponse)(nil), "lbm.collection.v1.MsgDetachFromResponse") +} + +func init() { proto.RegisterFile("lbm/collection/v1/tx.proto", fileDescriptor_eaee77977a3cfe12) } + +var fileDescriptor_eaee77977a3cfe12 = []byte{ + // 2011 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0xcd, 0x6f, 0x1b, 0xc7, + 0x15, 0xd7, 0x8a, 0x14, 0x49, 0x3d, 0xd9, 0x8e, 0xbd, 0x76, 0x6d, 0x7a, 0x25, 0x51, 0xf2, 0x46, + 0x52, 0x64, 0xc7, 0x21, 0x11, 0x17, 0x3e, 0x14, 0x68, 0x0a, 0x48, 0x0a, 0x54, 0x10, 0x28, 0xe5, + 0x80, 0x95, 0x81, 0xa2, 0x01, 0x22, 0x2c, 0xc9, 0x31, 0xb5, 0x16, 0xb9, 0x4b, 0xec, 0x2e, 0x15, + 0xa9, 0x05, 0x8a, 0x9e, 0x7a, 0x69, 0x11, 0xb8, 0x87, 0x02, 0x3d, 0xf5, 0x50, 0xb4, 0x40, 0xd0, + 0xde, 0x7a, 0xef, 0x3d, 0xc7, 0x1c, 0x8b, 0x1e, 0xd2, 0x42, 0x06, 0xfa, 0x27, 0xf4, 0x1c, 0xcc, + 0xc7, 0x0e, 0x67, 0x76, 0x77, 0x76, 0x57, 0x22, 0x95, 0x1b, 0x67, 0xdf, 0x9b, 0x79, 0xbf, 0xf7, + 0x31, 0xf3, 0x3e, 0x24, 0x30, 0x06, 0x9d, 0x61, 0xa3, 0xeb, 0x0e, 0x06, 0xa8, 0x1b, 0xd8, 0xae, + 0xd3, 0x38, 0xfd, 0xb0, 0x11, 0x9c, 0xd5, 0x47, 0x9e, 0x1b, 0xb8, 0xfa, 0x9d, 0x41, 0x67, 0x58, + 0x9f, 0xd0, 0xea, 0xa7, 0x1f, 0x1a, 0xf7, 0xfa, 0x6e, 0xdf, 0x25, 0xd4, 0x06, 0xfe, 0x45, 0x19, + 0x0d, 0x33, 0x7e, 0x88, 0xb0, 0x8d, 0xf0, 0x98, 0x5f, 0x68, 0x50, 0x6e, 0xf9, 0xfd, 0x9f, 0x22, + 0xa7, 0xa7, 0xaf, 0xc1, 0x52, 0xd7, 0x75, 0x02, 0xcf, 0xea, 0x06, 0x47, 0x76, 0xaf, 0xaa, 0xad, + 0x6b, 0xdb, 0x8b, 0x6d, 0x08, 0x3f, 0x35, 0x7b, 0xba, 0x0e, 0xc5, 0x57, 0x9e, 0x3b, 0xac, 0xce, + 0x13, 0x0a, 0xf9, 0xad, 0xdf, 0x82, 0xf9, 0xc0, 0xad, 0x16, 0xc8, 0x97, 0xf9, 0xc0, 0xd5, 0x7f, + 0x04, 0x25, 0x6b, 0xe8, 0x8e, 0x9d, 0xa0, 0x5a, 0x5c, 0x2f, 0x6c, 0x2f, 0x3d, 0x7b, 0x50, 0x8f, + 0xc1, 0xad, 0xef, 0xb9, 0xb6, 0xb3, 0x7b, 0xf3, 0xab, 0x6f, 0xd6, 0xe6, 0xfe, 0xf6, 0x9f, 0xb5, + 0x05, 0xbc, 0xf2, 0xdb, 0x6c, 0x97, 0x79, 0x07, 0xde, 0x61, 0x78, 0xda, 0xc8, 0x1f, 0xb9, 0x8e, + 0x8f, 0xcc, 0x7f, 0x68, 0xe4, 0xdb, 0x8b, 0x11, 0xf2, 0xac, 0xc0, 0xf5, 0xf2, 0x61, 0x35, 0xa0, + 0xe2, 0xb2, 0x0d, 0x0c, 0x2f, 0x5f, 0x73, 0x3d, 0x0a, 0x31, 0x3d, 0x8a, 0x09, 0x7a, 0x2c, 0x5c, + 0x49, 0x8f, 0x87, 0xf0, 0x20, 0x82, 0x99, 0xeb, 0xf3, 0x5b, 0x0d, 0x6e, 0xb6, 0xfc, 0xfe, 0xa1, + 0x67, 0x39, 0xfe, 0x2b, 0xe4, 0xed, 0x1f, 0xce, 0xc6, 0xf2, 0xcf, 0xf3, 0x5a, 0xbe, 0x88, 0x11, + 0x73, 0xa0, 0x0f, 0xe0, 0x7b, 0x12, 0x18, 0x0e, 0xf3, 0xaf, 0x1a, 0xdc, 0x91, 0x28, 0xfb, 0x58, + 0x6a, 0x26, 0xd4, 0x7b, 0xb0, 0x30, 0xf2, 0xdc, 0xb3, 0x73, 0x86, 0x95, 0x2e, 0x72, 0x99, 0xfc, + 0x79, 0x5e, 0x93, 0xcb, 0x0a, 0x2c, 0xc3, 0xc3, 0x18, 0x4c, 0xae, 0x84, 0x07, 0xb7, 0x04, 0xe2, + 0xc1, 0xac, 0x6c, 0xbd, 0x0c, 0x8b, 0x81, 0x7b, 0x82, 0x9c, 0x23, 0xbb, 0xe7, 0x13, 0x73, 0x2f, + 0xb6, 0x2b, 0xe4, 0x43, 0xb3, 0xe7, 0x9b, 0x55, 0xb8, 0x2f, 0xcb, 0xe4, 0x68, 0x7e, 0xa7, 0x81, + 0x2e, 0x93, 0xae, 0xdb, 0xa6, 0x12, 0xd0, 0x85, 0x08, 0xd0, 0x15, 0x30, 0xe2, 0x68, 0x38, 0xd8, + 0x13, 0xb8, 0xd7, 0xf2, 0xfb, 0x3b, 0xe3, 0xe0, 0xd8, 0xf5, 0xec, 0x5f, 0xa0, 0x30, 0x94, 0xb3, + 0xd1, 0xde, 0x87, 0xd2, 0xb1, 0x3b, 0xe8, 0xa1, 0xf0, 0xe2, 0xb1, 0x95, 0x74, 0x25, 0x0b, 0xf2, + 0x95, 0x34, 0x6b, 0xb0, 0x92, 0x24, 0x8c, 0x83, 0x39, 0x26, 0xb1, 0xd8, 0x46, 0xa7, 0xee, 0xc9, + 0x35, 0x23, 0xa1, 0xe1, 0x24, 0x4b, 0xe2, 0x30, 0x8e, 0x00, 0x30, 0xcc, 0xd1, 0xc8, 0x73, 0x4f, + 0x51, 0xae, 0x47, 0xc8, 0xa2, 0xbc, 0xfc, 0x11, 0x0a, 0xd7, 0x13, 0x9f, 0x16, 0x04, 0x9f, 0x9a, + 0xf7, 0x48, 0x80, 0x30, 0x01, 0x5c, 0x6c, 0x87, 0x3c, 0x18, 0x1f, 0xdb, 0xbe, 0x75, 0x7d, 0x92, + 0xe9, 0x3b, 0x30, 0x91, 0xc1, 0x85, 0xfb, 0xc4, 0xf4, 0x7b, 0x1e, 0xb2, 0x02, 0xb4, 0xc7, 0x24, + 0xe0, 0x33, 0xdc, 0xcf, 0x1d, 0xe4, 0x31, 0xd1, 0x74, 0x81, 0x23, 0xd2, 0xb1, 0x86, 0x28, 0xbc, + 0x3a, 0xf8, 0xb7, 0xbe, 0x0e, 0x37, 0x3a, 0x96, 0x8f, 0x8e, 0xec, 0x61, 0xff, 0x68, 0xec, 0xd9, + 0x4c, 0x28, 0xe0, 0x6f, 0xcd, 0x61, 0xff, 0xa5, 0x67, 0xe3, 0x5d, 0x43, 0x14, 0x58, 0x2c, 0x6a, + 0xc9, 0x6f, 0xf3, 0x7d, 0xe2, 0x05, 0x59, 0x68, 0x88, 0x08, 0x07, 0x39, 0x57, 0x7a, 0xde, 0xee, + 0x99, 0xff, 0xd3, 0xe0, 0x36, 0xe7, 0xde, 0x3f, 0xdc, 0x1b, 0x58, 0xbe, 0x3f, 0x75, 0x86, 0x20, + 0x8a, 0x14, 0x04, 0x45, 0x12, 0x60, 0xe2, 0x33, 0x7a, 0xa8, 0x6b, 0x0f, 0xad, 0x01, 0xbe, 0x5d, + 0xda, 0xf6, 0x42, 0x9b, 0xaf, 0xd9, 0x55, 0x2c, 0xf1, 0xab, 0xb8, 0x03, 0x25, 0x7f, 0x3c, 0x1a, + 0x0d, 0xce, 0xab, 0x65, 0xfc, 0x6d, 0xf7, 0x31, 0x7e, 0xc5, 0xfe, 0xfd, 0xcd, 0xda, 0xa3, 0xbe, + 0x1d, 0x1c, 0x8f, 0x3b, 0xf5, 0xae, 0x3b, 0x6c, 0x0c, 0x6c, 0x07, 0x35, 0x06, 0x9d, 0xe1, 0x07, + 0x7e, 0xef, 0xa4, 0x11, 0x9c, 0x8f, 0x90, 0x5f, 0x6f, 0x3a, 0x41, 0x9b, 0x6d, 0x34, 0x9f, 0x40, + 0x35, 0xaa, 0xa7, 0xd2, 0x28, 0x67, 0x82, 0xdb, 0x0e, 0xbe, 0x4b, 0xa3, 0x48, 0xbe, 0x3b, 0xc8, + 0x82, 0xf9, 0x7f, 0x8d, 0x5c, 0xa9, 0xa6, 0xef, 0x8f, 0x51, 0xce, 0xd7, 0x39, 0x16, 0x62, 0x21, + 0x88, 0x82, 0xc2, 0x33, 0xc5, 0x88, 0x67, 0x0c, 0xa8, 0x0c, 0x6d, 0x27, 0xb0, 0x3a, 0x03, 0x44, + 0xbc, 0x56, 0x69, 0xf3, 0xf5, 0x24, 0xb0, 0x4b, 0x62, 0x60, 0x53, 0x5f, 0x96, 0x45, 0x5f, 0xb2, + 0x54, 0x55, 0xb9, 0xb4, 0x2f, 0x59, 0xda, 0xda, 0x20, 0x37, 0x9d, 0xe9, 0xad, 0x34, 0xcf, 0x00, + 0x96, 0x42, 0xae, 0x83, 0x59, 0x9a, 0x87, 0xab, 0x59, 0x14, 0xd4, 0x34, 0x37, 0xe1, 0xae, 0x20, + 0x4d, 0x09, 0xea, 0x8d, 0x06, 0x8b, 0x2d, 0xbf, 0xdf, 0xb2, 0x9d, 0x60, 0x56, 0x09, 0x75, 0xda, + 0xb2, 0xf1, 0x2e, 0x89, 0x76, 0x8a, 0x88, 0xbf, 0x5c, 0x6f, 0x68, 0x6c, 0xe1, 0xaf, 0x33, 0xcb, + 0xfc, 0x1f, 0x41, 0x69, 0x64, 0x79, 0xd6, 0xd0, 0x67, 0x40, 0xd7, 0x12, 0x80, 0x32, 0x81, 0x9f, + 0x60, 0xbe, 0xb0, 0x58, 0xa1, 0x9b, 0xcc, 0x2d, 0xe2, 0x75, 0xc6, 0xc0, 0x0d, 0x7c, 0x1b, 0x0a, + 0x38, 0x3f, 0x6b, 0x24, 0x3f, 0xe3, 0x9f, 0xe6, 0x4b, 0xb8, 0x21, 0x9e, 0xa2, 0xaf, 0x02, 0xd0, + 0x3c, 0x8e, 0x03, 0x89, 0x41, 0xa7, 0x99, 0xfd, 0xf0, 0x7c, 0x84, 0xf2, 0xba, 0xdd, 0xfc, 0x15, + 0xa9, 0xf6, 0x77, 0xc7, 0x9e, 0x73, 0x35, 0x6b, 0x4c, 0xdc, 0x54, 0x98, 0xa2, 0xba, 0xc7, 0xf2, + 0xb9, 0x93, 0xfe, 0x2c, 0x57, 0xf7, 0xf9, 0xb0, 0x5d, 0xb6, 0xba, 0x9f, 0x36, 0xbc, 0xe4, 0x6a, + 0x5e, 0xc2, 0xff, 0x39, 0xb9, 0x0b, 0xf8, 0xd3, 0x55, 0x43, 0xec, 0x79, 0x5e, 0xa3, 0xca, 0x75, + 0x2f, 0x0d, 0x79, 0x2a, 0x98, 0xa3, 0xf9, 0x3d, 0xed, 0x2d, 0xe8, 0xd7, 0x59, 0x17, 0x97, 0x53, + 0x75, 0x18, 0x13, 0x48, 0x1c, 0xec, 0x67, 0xe4, 0x7a, 0x62, 0xc2, 0x95, 0xaf, 0xa7, 0x54, 0xdf, + 0x16, 0x22, 0xf5, 0x2d, 0x2d, 0xa6, 0xd8, 0xf9, 0x5c, 0xea, 0x19, 0x69, 0x09, 0xd8, 0xd7, 0x59, + 0x9b, 0x28, 0x47, 0x63, 0x20, 0x48, 0xe6, 0x98, 0xbe, 0xa0, 0xbd, 0x56, 0xcb, 0xed, 0xd9, 0xaf, + 0xce, 0x79, 0x91, 0x35, 0xd5, 0x35, 0xf8, 0x21, 0x94, 0xbb, 0xc7, 0x96, 0xd3, 0x47, 0x3e, 0x0b, + 0xab, 0x95, 0x04, 0x6f, 0xed, 0x04, 0x81, 0x67, 0x77, 0xc6, 0x01, 0x62, 0x2e, 0x0b, 0xb7, 0xb0, + 0x2a, 0x58, 0xc6, 0xc3, 0xd1, 0xfe, 0x5d, 0x23, 0x79, 0x82, 0x52, 0x0f, 0xb1, 0x76, 0x33, 0xa8, + 0x2e, 0x1e, 0x42, 0xa5, 0x8b, 0x4f, 0xc1, 0x3b, 0xa9, 0x45, 0xcb, 0x64, 0xdd, 0xec, 0x89, 0xaa, + 0x14, 0x2f, 0xaf, 0xca, 0x2a, 0x2c, 0x27, 0x80, 0xe5, 0xca, 0xfc, 0x45, 0x83, 0x1b, 0x9c, 0x9e, + 0x2b, 0x0e, 0x33, 0xb4, 0x08, 0xfd, 0x1f, 0x6a, 0xc1, 0xdc, 0x3f, 0xa5, 0x16, 0xf7, 0x49, 0x37, + 0xc6, 0x51, 0x72, 0xf8, 0xff, 0x64, 0xb9, 0x98, 0x10, 0x72, 0x45, 0x32, 0xcd, 0xfb, 0xf3, 0x62, + 0x79, 0x23, 0x67, 0x97, 0x42, 0x34, 0xbb, 0xac, 0xc1, 0x12, 0x53, 0xca, 0xe9, 0xa1, 0x33, 0x56, + 0x32, 0xd0, 0x1d, 0x4d, 0xfc, 0x45, 0xff, 0xc1, 0x44, 0x35, 0xda, 0xba, 0x3f, 0x4c, 0x7a, 0x19, + 0x08, 0x47, 0x54, 0xaf, 0xbb, 0x42, 0xe0, 0x73, 0xa5, 0xfe, 0xa4, 0x41, 0xa5, 0xe5, 0xf7, 0x7f, + 0xec, 0x59, 0x4e, 0x8e, 0x5b, 0x50, 0x85, 0x72, 0x1f, 0x73, 0x72, 0xad, 0xc2, 0xe5, 0x84, 0x12, + 0x2a, 0x15, 0x2e, 0xf5, 0x8f, 0x00, 0x46, 0xc8, 0x1b, 0xda, 0xbe, 0x6f, 0xbb, 0x0e, 0xd1, 0xe8, + 0xd6, 0xb3, 0xd5, 0x04, 0xd0, 0x9f, 0x70, 0xa6, 0xb6, 0xb0, 0xc1, 0xd4, 0x49, 0xc3, 0x41, 0xf0, + 0x71, 0xd0, 0xbf, 0xa1, 0xd5, 0xc6, 0x4e, 0xc7, 0x72, 0x7a, 0xae, 0x73, 0x09, 0xd8, 0x48, 0x86, + 0x1d, 0x05, 0x57, 0xb8, 0x2c, 0x38, 0xd6, 0x43, 0x52, 0x1c, 0x1c, 0xde, 0x39, 0xf9, 0x4a, 0x20, + 0x4f, 0xf6, 0xcd, 0xa6, 0x26, 0xaa, 0xc5, 0x8c, 0xb9, 0x28, 0x01, 0xa2, 0x73, 0x86, 0x88, 0x68, + 0x0e, 0xec, 0x35, 0x79, 0x4c, 0x68, 0xc3, 0x3d, 0x2d, 0xb2, 0x5a, 0xcc, 0x72, 0x32, 0x12, 0xfa, + 0x16, 0x44, 0x65, 0x71, 0x28, 0xbf, 0x24, 0x77, 0x69, 0x27, 0x08, 0xac, 0xee, 0xf1, 0xd5, 0x00, + 0xa4, 0xdc, 0xff, 0x1a, 0xbe, 0x45, 0x47, 0x9c, 0x5a, 0x0c, 0x6f, 0xd9, 0x21, 0xa5, 0xb3, 0x9b, + 0x40, 0x85, 0x73, 0x44, 0x9f, 0x12, 0x44, 0x1f, 0xa3, 0xeb, 0x40, 0xc4, 0x24, 0xd2, 0xc3, 0xb9, + 0xc4, 0x3f, 0xd2, 0x54, 0x14, 0xd6, 0x3a, 0x79, 0x8d, 0x91, 0xf6, 0x28, 0xf2, 0x47, 0xa7, 0x20, + 0x3e, 0x3a, 0x55, 0x28, 0xfb, 0xe3, 0xce, 0x6b, 0xd4, 0x0d, 0x98, 0x2d, 0xc2, 0xa5, 0x7e, 0x1f, + 0x4a, 0x81, 0xe5, 0xf5, 0x51, 0x40, 0xba, 0xb3, 0xc5, 0x36, 0x5b, 0xb1, 0xa4, 0x24, 0x23, 0xe3, + 0xb8, 0x7f, 0x2d, 0xe3, 0xce, 0x6b, 0xb2, 0x19, 0xe2, 0x8e, 0xe0, 0x8b, 0xd8, 0xf5, 0x0f, 0xb4, + 0x32, 0xa3, 0xa8, 0x67, 0x5d, 0x76, 0x88, 0x4e, 0x2e, 0xa6, 0x86, 0xdd, 0x42, 0x34, 0xec, 0x68, + 0x75, 0x36, 0x81, 0xc5, 0x01, 0x8f, 0xe9, 0xd0, 0x09, 0x7d, 0xb7, 0x78, 0xc3, 0x39, 0x14, 0x8a, + 0xe2, 0x79, 0xf6, 0xa5, 0x01, 0x85, 0x96, 0xdf, 0xd7, 0xf7, 0xa1, 0x48, 0xfe, 0x04, 0x60, 0x24, + 0x75, 0x5e, 0xf4, 0x4f, 0x07, 0x86, 0xa9, 0xa6, 0xf1, 0xa6, 0xeb, 0x33, 0xb8, 0x21, 0xfd, 0x49, + 0x41, 0xb1, 0x47, 0xe4, 0x31, 0x9e, 0x64, 0xf3, 0xf0, 0xf3, 0x7f, 0x06, 0x20, 0x8c, 0xf8, 0xd7, + 0x93, 0x77, 0x4e, 0x38, 0x8c, 0xed, 0x2c, 0x0e, 0x7e, 0x72, 0x0f, 0x6e, 0x45, 0xa6, 0xf2, 0x1b, + 0x59, 0x7b, 0x31, 0x97, 0xf1, 0x34, 0x0f, 0x17, 0x97, 0xf2, 0x29, 0x2c, 0x89, 0x73, 0xf3, 0x47, + 0xe9, 0x9b, 0x0f, 0xf6, 0x0f, 0x8d, 0xc7, 0x99, 0x2c, 0xfc, 0xf0, 0x3e, 0xbc, 0x13, 0x9d, 0x82, + 0x6f, 0x66, 0xee, 0x26, 0x4a, 0x7c, 0x90, 0x8b, 0x8d, 0x0b, 0x1a, 0xc2, 0x9d, 0xf8, 0x08, 0xfb, + 0xbd, 0xe4, 0x33, 0x62, 0x8c, 0x46, 0x23, 0x27, 0xa3, 0xe8, 0x9a, 0xc8, 0x90, 0x5a, 0xe1, 0x1a, + 0x99, 0x4b, 0xe5, 0x9a, 0xe4, 0x31, 0xb4, 0xfe, 0x02, 0xca, 0xe1, 0x0c, 0x7a, 0x55, 0x81, 0x90, + 0x92, 0x8d, 0xcd, 0x54, 0xb2, 0x18, 0xab, 0xc2, 0x74, 0x59, 0x11, 0xab, 0x13, 0x0e, 0x55, 0xac, + 0xc6, 0xa7, 0xc7, 0xd8, 0x20, 0x91, 0xd1, 0xb1, 0xc2, 0x20, 0x32, 0x97, 0xca, 0x20, 0x8a, 0x89, + 0xb0, 0x05, 0x37, 0xe5, 0xe9, 0xef, 0xbb, 0x69, 0xdb, 0x19, 0x93, 0xf1, 0x7e, 0x0e, 0xa6, 0xb8, + 0x22, 0x7c, 0x98, 0x9a, 0xaa, 0x48, 0xc8, 0x95, 0xae, 0x48, 0x6c, 0x3c, 0xfa, 0x02, 0xca, 0xe1, + 0x28, 0x54, 0xe1, 0x59, 0x46, 0x56, 0x79, 0x36, 0x3a, 0x50, 0x6c, 0x43, 0x85, 0x4f, 0x0f, 0x6b, + 0x29, 0x5b, 0xf0, 0xfd, 0xdd, 0x4a, 0xa7, 0xf3, 0x33, 0x7f, 0x02, 0x25, 0x36, 0xfb, 0x5b, 0x49, + 0xde, 0x41, 0xa9, 0xc6, 0x46, 0x1a, 0x55, 0x54, 0x39, 0x9c, 0xd0, 0xad, 0xaa, 0x37, 0x1c, 0xa8, + 0x55, 0x8e, 0x4e, 0xd3, 0xf6, 0xa1, 0x48, 0xa6, 0x48, 0x8a, 0x04, 0x81, 0x69, 0xaa, 0x04, 0x21, + 0x4e, 0x76, 0xc4, 0x04, 0x41, 0xce, 0xcb, 0x48, 0x10, 0xe4, 0xdc, 0x27, 0xd9, 0x3c, 0xa2, 0x19, + 0xd9, 0xd8, 0x68, 0x45, 0x8d, 0x46, 0x6d, 0x46, 0x79, 0xf2, 0x83, 0xaf, 0xb0, 0x30, 0xf5, 0x59, + 0x4f, 0xdb, 0x43, 0xde, 0xd1, 0xed, 0x2c, 0x0e, 0xd1, 0x41, 0xe1, 0x8c, 0x66, 0x55, 0xbd, 0x29, + 0xc5, 0x41, 0x91, 0x09, 0x0c, 0xce, 0x2c, 0xe2, 0xf8, 0xe5, 0x51, 0xea, 0x2e, 0x02, 0xf6, 0x71, + 0x26, 0x8b, 0x78, 0x4f, 0x23, 0x63, 0x14, 0x55, 0x18, 0x4a, 0x5c, 0xaa, 0x7b, 0x9a, 0x3c, 0x02, + 0xd1, 0x5f, 0xc3, 0xed, 0xd8, 0xf8, 0x63, 0x2b, 0xed, 0x84, 0x09, 0x9f, 0x51, 0xcf, 0xc7, 0xc7, + 0x65, 0xbd, 0x84, 0x45, 0x61, 0x3a, 0x91, 0xb6, 0x19, 0xfb, 0xe0, 0xbd, 0x0c, 0x06, 0xe9, 0x16, + 0xd3, 0xa9, 0xc1, 0x4a, 0xda, 0x16, 0x23, 0xd5, 0x7c, 0xfc, 0xb4, 0x26, 0x2c, 0xd0, 0x76, 0x7d, + 0x39, 0x99, 0x9d, 0x10, 0x8d, 0x77, 0x53, 0x88, 0x52, 0x76, 0x63, 0x4d, 0xb4, 0x2a, 0xbb, 0x51, + 0xb2, 0x32, 0xbb, 0xc9, 0xad, 0x2f, 0x2e, 0x36, 0xa2, 0x7d, 0xef, 0x66, 0x0a, 0x90, 0x09, 0x9b, + 0xaa, 0xd8, 0x50, 0xb4, 0xb2, 0x38, 0x2a, 0x62, 0x7d, 0xec, 0x56, 0x5a, 0x66, 0x17, 0x44, 0xd5, + 0xf3, 0xf1, 0x89, 0xee, 0x63, 0xbd, 0x99, 0xc2, 0x7d, 0x94, 0xaa, 0x72, 0x9f, 0xdc, 0x3d, 0xe1, + 0xd3, 0x58, 0xc7, 0xa4, 0x38, 0x8d, 0x52, 0x55, 0xa7, 0xc9, 0xbd, 0x0e, 0xbe, 0x83, 0x91, 0xfe, + 0x71, 0x23, 0xfd, 0x5d, 0x64, 0x58, 0x9f, 0xe6, 0xe1, 0x4a, 0x92, 0xc2, 0xb0, 0x67, 0x48, 0x61, + 0x3a, 0x3c, 0xcd, 0xc3, 0x25, 0xbe, 0xab, 0x42, 0xcf, 0xb6, 0x9e, 0x66, 0xcd, 0xb4, 0x77, 0x35, + 0xde, 0x60, 0x91, 0xa2, 0x0b, 0x65, 0x9d, 0x3c, 0xe1, 0x50, 0x16, 0x5d, 0xb1, 0x56, 0x69, 0x77, + 0xf7, 0xcb, 0x8b, 0xda, 0xdc, 0x57, 0x17, 0x35, 0xed, 0xeb, 0x8b, 0x9a, 0xf6, 0xdf, 0x8b, 0x9a, + 0xf6, 0xe6, 0x6d, 0x6d, 0xee, 0xeb, 0xb7, 0xb5, 0xb9, 0x7f, 0xbd, 0xad, 0xcd, 0xfd, 0x7c, 0x43, + 0xf5, 0x47, 0xca, 0x33, 0xe1, 0xff, 0xc3, 0x3a, 0x25, 0xf2, 0x0f, 0x62, 0xdf, 0xff, 0x36, 0x00, + 0x00, 0xff, 0xff, 0xd6, 0x51, 0xfa, 0xbf, 0x8b, 0x26, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + // Send defines a method to send tokens from one account to another account. + // Fires: + // - EventSent + // - transfer_ft (deprecated, not typed) + // - transfer_nft (deprecated, not typed) + // - operation_transfer_nft (deprecated, not typed) + // Throws: + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to spend. + // Info: one can send both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) + // OperatorSend defines a method to send tokens from one account to another account by the operator. + // Fires: + // - EventSent + // - transfer_ft_from (deprecated, not typed) + // - transfer_nft_from (deprecated, not typed) + // - operation_transfer_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized: + // - the holder has not authorized the operator. + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to spend. + // Info: one can send both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + OperatorSend(ctx context.Context, in *MsgOperatorSend, opts ...grpc.CallOption) (*MsgOperatorSendResponse, error) + // Deprecated: use Send + // TransferFT defines a method to send fungible tokens from one account to another account. + TransferFT(ctx context.Context, in *MsgTransferFT, opts ...grpc.CallOption) (*MsgTransferFTResponse, error) + // Deprecated: use OperatorSend + // TransferFTFrom defines a method to send fungible tokens from one account to another account by the operator. + TransferFTFrom(ctx context.Context, in *MsgTransferFTFrom, opts ...grpc.CallOption) (*MsgTransferFTFromResponse, error) + // Deprecated: use Send + // TransferNFT defines a method to send non-fungible tokens from one account to another account. + TransferNFT(ctx context.Context, in *MsgTransferNFT, opts ...grpc.CallOption) (*MsgTransferNFTResponse, error) + // Deprecated: use OperatorSend + // TransferNFTFrom defines a method to send non-fungible tokens from one account to another account by the operator. + TransferNFTFrom(ctx context.Context, in *MsgTransferNFTFrom, opts ...grpc.CallOption) (*MsgTransferNFTFromResponse, error) + // AuthorizeOperator allows one to send tokens on behalf of the approver. + // Fires: + // - EventAuthorizedOperator + // - approve_collection (deprecated, not typed) + // Throws: + // - ErrNotFound: + // - there is no contract of `contract_id`. + // - ErrInvalidRequest: + // - `holder` has already authorized `operator`. + // Since: 0.46.0 (finschia) + AuthorizeOperator(ctx context.Context, in *MsgAuthorizeOperator, opts ...grpc.CallOption) (*MsgAuthorizeOperatorResponse, error) + // RevokeOperator revokes the authorization of the operator to send the approver's token. + // Fires: + // - EventRevokedOperator + // - disapprove_collection (deprecated, not typed) + // Throws: + // - ErrNotFound: + // - there is no contract of `contract_id`. + // - there is no authorization by `holder` to `operator`. + // Since: 0.46.0 (finschia) + RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error) + // Deprecated: use AuthorizeOperator + // Approve allows one to send tokens on behalf of the approver. + Approve(ctx context.Context, in *MsgApprove, opts ...grpc.CallOption) (*MsgApproveResponse, error) + // Deprecated: use RevokeOperator + // Disapprove revokes the authorization of the operator to send the approver's token. + Disapprove(ctx context.Context, in *MsgDisapprove, opts ...grpc.CallOption) (*MsgDisapproveResponse, error) + // CreateContract defines a method to create a contract for collection. + // it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. + // Fires: + // - EventCreatedContract + // - create_collection (deprecated, not typed) + CreateContract(ctx context.Context, in *MsgCreateContract, opts ...grpc.CallOption) (*MsgCreateContractResponse, error) + // CreateFTClass defines a method to create a class of fungible token. + // one may set the supply on the creation, then no one can change the supply, which means no more mints and burns. + // Fires: + // - EventCreatedFTClass + // - EventMintedFT + // - issue_ft (deprecated, not typed) + // Since: 0.46.0 (finschia) + CreateFTClass(ctx context.Context, in *MsgCreateFTClass, opts ...grpc.CallOption) (*MsgCreateFTClassResponse, error) + // CreateNFTClass defines a method to create a class of non-fungible token. + // Fires: + // - EventCreatedNFTClass + // - issue_nft (deprecated, not typed) + // Since: 0.46.0 (finschia) + CreateNFTClass(ctx context.Context, in *MsgCreateNFTClass, opts ...grpc.CallOption) (*MsgCreateNFTClassResponse, error) + // Deprecated: use CreateFTClass + // IssueFT defines a method to create a class of fungible token. + // Fires: + // - EventIssueFT + // - EventMintedFT + // - issue_ft (deprecated, not typed) + // Note: it does not grant any permissions to its issuer. + IssueFT(ctx context.Context, in *MsgIssueFT, opts ...grpc.CallOption) (*MsgIssueFTResponse, error) + // Deprecated: use CreateNFTClass + // IssueNFT defines a method to create a class of non-fungible token. + // Fires: + // - EventIssueNFT + // - issue_nft (deprecated, not typed) + // Note: it DOES grant `mint` and `burn` permissions to its issuer. + IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc.CallOption) (*MsgIssueNFTResponse, error) + // MintFT defines a method to mint fungible tokens. + // Fires: + // - EventMintedFT + // - mint_ft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `from` does not have `mint` permission. + MintFT(ctx context.Context, in *MsgMintFT, opts ...grpc.CallOption) (*MsgMintFTResponse, error) + // MintNFT defines a method to mint non-fungible tokens. + // Fires: + // - EventMintedNFT + // - mint_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `from` does not have `mint` permission. + MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error) + // Burn defines a method to burn tokens. + // Fires: + // - EventBurned + // - burn_ft (deprecated, not typed) + // - burn_nft (deprecated, not typed) + // - operation_burn_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `from` does not have `burn` permission. + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to burn. + // Info: one can burn both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) + // OperatorBurn defines a method to burn tokens of the holder by the operator. + // Fires: + // - EventBurned + // - burn_ft_from (deprecated, not typed) + // - burn_nft_from (deprecated, not typed) + // - operation_burn_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `operator` does not have `burn` permission. + // - the holder has not authorized `operator`. + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to burn. + // Info: one can burn both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + OperatorBurn(ctx context.Context, in *MsgOperatorBurn, opts ...grpc.CallOption) (*MsgOperatorBurnResponse, error) + // Deprecated: use Burn + // BurnFT defines a method to burn fungible tokens. + BurnFT(ctx context.Context, in *MsgBurnFT, opts ...grpc.CallOption) (*MsgBurnFTResponse, error) + // Deprecated: use OperatorBurn + // BurnFTFrom defines a method to burn fungible tokens of the holder by the proxy. + BurnFTFrom(ctx context.Context, in *MsgBurnFTFrom, opts ...grpc.CallOption) (*MsgBurnFTFromResponse, error) + // Deprecated: use Burn + // BurnNFT defines a method to burn non-fungible tokens. + BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, error) + // Deprecated: use OperatorBurn + // BurnNFTFrom defines a method to burn non-fungible tokens of the holder by the proxy. + BurnNFTFrom(ctx context.Context, in *MsgBurnNFTFrom, opts ...grpc.CallOption) (*MsgBurnNFTFromResponse, error) + // ModifyContract defines a method to modify the attributes of a contract. + // Fires: + // - EventModifiedContract + // - modify_collection (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the operator does not have `modify` permission. + // - ErrNotFound + // - there is no token class of `contract_id`. + // Since: 0.46.0 (finschia) + ModifyContract(ctx context.Context, in *MsgModifyContract, opts ...grpc.CallOption) (*MsgModifyContractResponse, error) + // ModifyTokenClass defines a method to modify the attributes of a token class. + // Fires: + // - EventModifiedTokenClass + // - modify_token_type (deprecated, not typed) + // - modify_token (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the operator does not have `modify` permission. + // - ErrNotFound + // - there is no token class of `contract_id`. + // Since: 0.46.0 (finschia) + ModifyTokenClass(ctx context.Context, in *MsgModifyTokenClass, opts ...grpc.CallOption) (*MsgModifyTokenClassResponse, error) + // ModifyNFT defines a method to modify the attributes of a non-fungible token. + // Fires: + // - EventModifiedNFT + // - modify_token (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the operator does not have `modify` permission. + // - ErrNotFound + // - there is no token class of `contract_id`. + // Since: 0.46.0 (finschia) + ModifyNFT(ctx context.Context, in *MsgModifyNFT, opts ...grpc.CallOption) (*MsgModifyNFTResponse, error) + // Deprecated: use ModifyContract, ModifyTokenClass or ModifyNFT + // Modify defines a method to modify metadata. + Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, error) + // Grant allows one to mint or burn tokens or modify metadata. + // Fires: + // - EventGrant + // - grant_perm (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `granter` does not have `permission`. + // - ErrInvalidRequest + // - `grantee` already has `permission`. + // Since: 0.46.0 (finschia) + Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error) + // Abandon abandons a permission. + // Fires: + // - EventAbandon + // - revoke_perm (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `grantee` does not have `permission`. + // Since: 0.46.0 (finschia) + Abandon(ctx context.Context, in *MsgAbandon, opts ...grpc.CallOption) (*MsgAbandonResponse, error) + // Deprecated: use Grant + // GrantPermission allows one to mint or burn tokens or modify metadata. + GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error) + // Deprecated: use Abandon + // RevokePermission abandons a permission. + RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) + // Attach defines a method to attach a token to another token. + // Fires: + // - EventAttach + // - attach (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrInvalidRequest + // - `owner` does not owns `id`. + // - `owner` does not owns `to`. + // - `token_id` is not root. + // - `token_id` is an ancestor of `to_token_id`, which creates a cycle as a result. + // - depth of `to_token_id` exceeds an app-specific limit. + Attach(ctx context.Context, in *MsgAttach, opts ...grpc.CallOption) (*MsgAttachResponse, error) + // Detach defines a method to detach a token from another token. + // Fires: + // - EventDetach + // - detach (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrInvalidRequest + // - `owner` does not owns `token_id`. + Detach(ctx context.Context, in *MsgDetach, opts ...grpc.CallOption) (*MsgDetachResponse, error) + // OperatorAttach defines a method to attach a token to another token by operator. + // Fires: + // - EventAttach + // - attach_from (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the holder has not authorized `operator`. + // - ErrInvalidRequest + // - `owner` does not owns `subject`. + // - `owner` does not owns `target`. + // - `subject` is not root. + // - `subject` is an ancestor of `target`, which creates a cycle as a result. + // - depth of `to` exceeds an app-specific limit. + // Since: 0.46.0 (finschia) + OperatorAttach(ctx context.Context, in *MsgOperatorAttach, opts ...grpc.CallOption) (*MsgOperatorAttachResponse, error) + // OperatorDetach defines a method to detach a token from another token by operator. + // Fires: + // - EventDetach + // - detach_from (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the holder has not authorized `operator`. + // - ErrInvalidRequest + // - `owner` does not owns `subject`. + // Since: 0.46.0 (finschia) + OperatorDetach(ctx context.Context, in *MsgOperatorDetach, opts ...grpc.CallOption) (*MsgOperatorDetachResponse, error) + // Deprecated: use OperatorAttach + // AttachFrom defines a method to attach a token to another token by operator. + AttachFrom(ctx context.Context, in *MsgAttachFrom, opts ...grpc.CallOption) (*MsgAttachFromResponse, error) + // Deprecated: use OperatorDetach + // DetachFrom defines a method to detach a token from another token by operator. + DetachFrom(ctx context.Context, in *MsgDetachFrom, opts ...grpc.CallOption) (*MsgDetachFromResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) { + out := new(MsgSendResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Send", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) OperatorSend(ctx context.Context, in *MsgOperatorSend, opts ...grpc.CallOption) (*MsgOperatorSendResponse, error) { + out := new(MsgOperatorSendResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorSend", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) TransferFT(ctx context.Context, in *MsgTransferFT, opts ...grpc.CallOption) (*MsgTransferFTResponse, error) { + out := new(MsgTransferFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/TransferFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) TransferFTFrom(ctx context.Context, in *MsgTransferFTFrom, opts ...grpc.CallOption) (*MsgTransferFTFromResponse, error) { + out := new(MsgTransferFTFromResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/TransferFTFrom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) TransferNFT(ctx context.Context, in *MsgTransferNFT, opts ...grpc.CallOption) (*MsgTransferNFTResponse, error) { + out := new(MsgTransferNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/TransferNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) TransferNFTFrom(ctx context.Context, in *MsgTransferNFTFrom, opts ...grpc.CallOption) (*MsgTransferNFTFromResponse, error) { + out := new(MsgTransferNFTFromResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/TransferNFTFrom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AuthorizeOperator(ctx context.Context, in *MsgAuthorizeOperator, opts ...grpc.CallOption) (*MsgAuthorizeOperatorResponse, error) { + out := new(MsgAuthorizeOperatorResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/AuthorizeOperator", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error) { + out := new(MsgRevokeOperatorResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/RevokeOperator", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Approve(ctx context.Context, in *MsgApprove, opts ...grpc.CallOption) (*MsgApproveResponse, error) { + out := new(MsgApproveResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Approve", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Disapprove(ctx context.Context, in *MsgDisapprove, opts ...grpc.CallOption) (*MsgDisapproveResponse, error) { + out := new(MsgDisapproveResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Disapprove", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateContract(ctx context.Context, in *MsgCreateContract, opts ...grpc.CallOption) (*MsgCreateContractResponse, error) { + out := new(MsgCreateContractResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/CreateContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateFTClass(ctx context.Context, in *MsgCreateFTClass, opts ...grpc.CallOption) (*MsgCreateFTClassResponse, error) { + out := new(MsgCreateFTClassResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/CreateFTClass", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateNFTClass(ctx context.Context, in *MsgCreateNFTClass, opts ...grpc.CallOption) (*MsgCreateNFTClassResponse, error) { + out := new(MsgCreateNFTClassResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/CreateNFTClass", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) IssueFT(ctx context.Context, in *MsgIssueFT, opts ...grpc.CallOption) (*MsgIssueFTResponse, error) { + out := new(MsgIssueFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/IssueFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc.CallOption) (*MsgIssueNFTResponse, error) { + out := new(MsgIssueNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/IssueNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) MintFT(ctx context.Context, in *MsgMintFT, opts ...grpc.CallOption) (*MsgMintFTResponse, error) { + out := new(MsgMintFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/MintFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error) { + out := new(MsgMintNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/MintNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) { + out := new(MsgBurnResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Burn", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) OperatorBurn(ctx context.Context, in *MsgOperatorBurn, opts ...grpc.CallOption) (*MsgOperatorBurnResponse, error) { + out := new(MsgOperatorBurnResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorBurn", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) BurnFT(ctx context.Context, in *MsgBurnFT, opts ...grpc.CallOption) (*MsgBurnFTResponse, error) { + out := new(MsgBurnFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/BurnFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) BurnFTFrom(ctx context.Context, in *MsgBurnFTFrom, opts ...grpc.CallOption) (*MsgBurnFTFromResponse, error) { + out := new(MsgBurnFTFromResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/BurnFTFrom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, error) { + out := new(MsgBurnNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/BurnNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) BurnNFTFrom(ctx context.Context, in *MsgBurnNFTFrom, opts ...grpc.CallOption) (*MsgBurnNFTFromResponse, error) { + out := new(MsgBurnNFTFromResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/BurnNFTFrom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ModifyContract(ctx context.Context, in *MsgModifyContract, opts ...grpc.CallOption) (*MsgModifyContractResponse, error) { + out := new(MsgModifyContractResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/ModifyContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ModifyTokenClass(ctx context.Context, in *MsgModifyTokenClass, opts ...grpc.CallOption) (*MsgModifyTokenClassResponse, error) { + out := new(MsgModifyTokenClassResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/ModifyTokenClass", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ModifyNFT(ctx context.Context, in *MsgModifyNFT, opts ...grpc.CallOption) (*MsgModifyNFTResponse, error) { + out := new(MsgModifyNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/ModifyNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, error) { + out := new(MsgModifyResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Modify", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error) { + out := new(MsgGrantResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Grant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Abandon(ctx context.Context, in *MsgAbandon, opts ...grpc.CallOption) (*MsgAbandonResponse, error) { + out := new(MsgAbandonResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Abandon", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error) { + out := new(MsgGrantPermissionResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/GrantPermission", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) { + out := new(MsgRevokePermissionResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/RevokePermission", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Attach(ctx context.Context, in *MsgAttach, opts ...grpc.CallOption) (*MsgAttachResponse, error) { + out := new(MsgAttachResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Attach", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Detach(ctx context.Context, in *MsgDetach, opts ...grpc.CallOption) (*MsgDetachResponse, error) { + out := new(MsgDetachResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Detach", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) OperatorAttach(ctx context.Context, in *MsgOperatorAttach, opts ...grpc.CallOption) (*MsgOperatorAttachResponse, error) { + out := new(MsgOperatorAttachResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorAttach", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) OperatorDetach(ctx context.Context, in *MsgOperatorDetach, opts ...grpc.CallOption) (*MsgOperatorDetachResponse, error) { + out := new(MsgOperatorDetachResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorDetach", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AttachFrom(ctx context.Context, in *MsgAttachFrom, opts ...grpc.CallOption) (*MsgAttachFromResponse, error) { + out := new(MsgAttachFromResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/AttachFrom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DetachFrom(ctx context.Context, in *MsgDetachFrom, opts ...grpc.CallOption) (*MsgDetachFromResponse, error) { + out := new(MsgDetachFromResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/DetachFrom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + // Send defines a method to send tokens from one account to another account. + // Fires: + // - EventSent + // - transfer_ft (deprecated, not typed) + // - transfer_nft (deprecated, not typed) + // - operation_transfer_nft (deprecated, not typed) + // Throws: + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to spend. + // Info: one can send both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + Send(context.Context, *MsgSend) (*MsgSendResponse, error) + // OperatorSend defines a method to send tokens from one account to another account by the operator. + // Fires: + // - EventSent + // - transfer_ft_from (deprecated, not typed) + // - transfer_nft_from (deprecated, not typed) + // - operation_transfer_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized: + // - the holder has not authorized the operator. + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to spend. + // Info: one can send both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + OperatorSend(context.Context, *MsgOperatorSend) (*MsgOperatorSendResponse, error) + // Deprecated: use Send + // TransferFT defines a method to send fungible tokens from one account to another account. + TransferFT(context.Context, *MsgTransferFT) (*MsgTransferFTResponse, error) + // Deprecated: use OperatorSend + // TransferFTFrom defines a method to send fungible tokens from one account to another account by the operator. + TransferFTFrom(context.Context, *MsgTransferFTFrom) (*MsgTransferFTFromResponse, error) + // Deprecated: use Send + // TransferNFT defines a method to send non-fungible tokens from one account to another account. + TransferNFT(context.Context, *MsgTransferNFT) (*MsgTransferNFTResponse, error) + // Deprecated: use OperatorSend + // TransferNFTFrom defines a method to send non-fungible tokens from one account to another account by the operator. + TransferNFTFrom(context.Context, *MsgTransferNFTFrom) (*MsgTransferNFTFromResponse, error) + // AuthorizeOperator allows one to send tokens on behalf of the approver. + // Fires: + // - EventAuthorizedOperator + // - approve_collection (deprecated, not typed) + // Throws: + // - ErrNotFound: + // - there is no contract of `contract_id`. + // - ErrInvalidRequest: + // - `holder` has already authorized `operator`. + // Since: 0.46.0 (finschia) + AuthorizeOperator(context.Context, *MsgAuthorizeOperator) (*MsgAuthorizeOperatorResponse, error) + // RevokeOperator revokes the authorization of the operator to send the approver's token. + // Fires: + // - EventRevokedOperator + // - disapprove_collection (deprecated, not typed) + // Throws: + // - ErrNotFound: + // - there is no contract of `contract_id`. + // - there is no authorization by `holder` to `operator`. + // Since: 0.46.0 (finschia) + RevokeOperator(context.Context, *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error) + // Deprecated: use AuthorizeOperator + // Approve allows one to send tokens on behalf of the approver. + Approve(context.Context, *MsgApprove) (*MsgApproveResponse, error) + // Deprecated: use RevokeOperator + // Disapprove revokes the authorization of the operator to send the approver's token. + Disapprove(context.Context, *MsgDisapprove) (*MsgDisapproveResponse, error) + // CreateContract defines a method to create a contract for collection. + // it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. + // Fires: + // - EventCreatedContract + // - create_collection (deprecated, not typed) + CreateContract(context.Context, *MsgCreateContract) (*MsgCreateContractResponse, error) + // CreateFTClass defines a method to create a class of fungible token. + // one may set the supply on the creation, then no one can change the supply, which means no more mints and burns. + // Fires: + // - EventCreatedFTClass + // - EventMintedFT + // - issue_ft (deprecated, not typed) + // Since: 0.46.0 (finschia) + CreateFTClass(context.Context, *MsgCreateFTClass) (*MsgCreateFTClassResponse, error) + // CreateNFTClass defines a method to create a class of non-fungible token. + // Fires: + // - EventCreatedNFTClass + // - issue_nft (deprecated, not typed) + // Since: 0.46.0 (finschia) + CreateNFTClass(context.Context, *MsgCreateNFTClass) (*MsgCreateNFTClassResponse, error) + // Deprecated: use CreateFTClass + // IssueFT defines a method to create a class of fungible token. + // Fires: + // - EventIssueFT + // - EventMintedFT + // - issue_ft (deprecated, not typed) + // Note: it does not grant any permissions to its issuer. + IssueFT(context.Context, *MsgIssueFT) (*MsgIssueFTResponse, error) + // Deprecated: use CreateNFTClass + // IssueNFT defines a method to create a class of non-fungible token. + // Fires: + // - EventIssueNFT + // - issue_nft (deprecated, not typed) + // Note: it DOES grant `mint` and `burn` permissions to its issuer. + IssueNFT(context.Context, *MsgIssueNFT) (*MsgIssueNFTResponse, error) + // MintFT defines a method to mint fungible tokens. + // Fires: + // - EventMintedFT + // - mint_ft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `from` does not have `mint` permission. + MintFT(context.Context, *MsgMintFT) (*MsgMintFTResponse, error) + // MintNFT defines a method to mint non-fungible tokens. + // Fires: + // - EventMintedNFT + // - mint_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `from` does not have `mint` permission. + MintNFT(context.Context, *MsgMintNFT) (*MsgMintNFTResponse, error) + // Burn defines a method to burn tokens. + // Fires: + // - EventBurned + // - burn_ft (deprecated, not typed) + // - burn_nft (deprecated, not typed) + // - operation_burn_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `from` does not have `burn` permission. + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to burn. + // Info: one can burn both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) + // OperatorBurn defines a method to burn tokens of the holder by the operator. + // Fires: + // - EventBurned + // - burn_ft_from (deprecated, not typed) + // - burn_nft_from (deprecated, not typed) + // - operation_burn_nft (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `operator` does not have `burn` permission. + // - the holder has not authorized `operator`. + // - ErrInsufficientFunds: + // - the balance of `from` does not have enough tokens to burn. + // Info: one can burn both fungible tokens and non-fungible tokens. + // Since: 0.46.0 (finschia) + OperatorBurn(context.Context, *MsgOperatorBurn) (*MsgOperatorBurnResponse, error) + // Deprecated: use Burn + // BurnFT defines a method to burn fungible tokens. + BurnFT(context.Context, *MsgBurnFT) (*MsgBurnFTResponse, error) + // Deprecated: use OperatorBurn + // BurnFTFrom defines a method to burn fungible tokens of the holder by the proxy. + BurnFTFrom(context.Context, *MsgBurnFTFrom) (*MsgBurnFTFromResponse, error) + // Deprecated: use Burn + // BurnNFT defines a method to burn non-fungible tokens. + BurnNFT(context.Context, *MsgBurnNFT) (*MsgBurnNFTResponse, error) + // Deprecated: use OperatorBurn + // BurnNFTFrom defines a method to burn non-fungible tokens of the holder by the proxy. + BurnNFTFrom(context.Context, *MsgBurnNFTFrom) (*MsgBurnNFTFromResponse, error) + // ModifyContract defines a method to modify the attributes of a contract. + // Fires: + // - EventModifiedContract + // - modify_collection (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the operator does not have `modify` permission. + // - ErrNotFound + // - there is no token class of `contract_id`. + // Since: 0.46.0 (finschia) + ModifyContract(context.Context, *MsgModifyContract) (*MsgModifyContractResponse, error) + // ModifyTokenClass defines a method to modify the attributes of a token class. + // Fires: + // - EventModifiedTokenClass + // - modify_token_type (deprecated, not typed) + // - modify_token (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the operator does not have `modify` permission. + // - ErrNotFound + // - there is no token class of `contract_id`. + // Since: 0.46.0 (finschia) + ModifyTokenClass(context.Context, *MsgModifyTokenClass) (*MsgModifyTokenClassResponse, error) + // ModifyNFT defines a method to modify the attributes of a non-fungible token. + // Fires: + // - EventModifiedNFT + // - modify_token (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the operator does not have `modify` permission. + // - ErrNotFound + // - there is no token class of `contract_id`. + // Since: 0.46.0 (finschia) + ModifyNFT(context.Context, *MsgModifyNFT) (*MsgModifyNFTResponse, error) + // Deprecated: use ModifyContract, ModifyTokenClass or ModifyNFT + // Modify defines a method to modify metadata. + Modify(context.Context, *MsgModify) (*MsgModifyResponse, error) + // Grant allows one to mint or burn tokens or modify metadata. + // Fires: + // - EventGrant + // - grant_perm (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `granter` does not have `permission`. + // - ErrInvalidRequest + // - `grantee` already has `permission`. + // Since: 0.46.0 (finschia) + Grant(context.Context, *MsgGrant) (*MsgGrantResponse, error) + // Abandon abandons a permission. + // Fires: + // - EventAbandon + // - revoke_perm (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - `grantee` does not have `permission`. + // Since: 0.46.0 (finschia) + Abandon(context.Context, *MsgAbandon) (*MsgAbandonResponse, error) + // Deprecated: use Grant + // GrantPermission allows one to mint or burn tokens or modify metadata. + GrantPermission(context.Context, *MsgGrantPermission) (*MsgGrantPermissionResponse, error) + // Deprecated: use Abandon + // RevokePermission abandons a permission. + RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error) + // Attach defines a method to attach a token to another token. + // Fires: + // - EventAttach + // - attach (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrInvalidRequest + // - `owner` does not owns `id`. + // - `owner` does not owns `to`. + // - `token_id` is not root. + // - `token_id` is an ancestor of `to_token_id`, which creates a cycle as a result. + // - depth of `to_token_id` exceeds an app-specific limit. + Attach(context.Context, *MsgAttach) (*MsgAttachResponse, error) + // Detach defines a method to detach a token from another token. + // Fires: + // - EventDetach + // - detach (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrInvalidRequest + // - `owner` does not owns `token_id`. + Detach(context.Context, *MsgDetach) (*MsgDetachResponse, error) + // OperatorAttach defines a method to attach a token to another token by operator. + // Fires: + // - EventAttach + // - attach_from (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the holder has not authorized `operator`. + // - ErrInvalidRequest + // - `owner` does not owns `subject`. + // - `owner` does not owns `target`. + // - `subject` is not root. + // - `subject` is an ancestor of `target`, which creates a cycle as a result. + // - depth of `to` exceeds an app-specific limit. + // Since: 0.46.0 (finschia) + OperatorAttach(context.Context, *MsgOperatorAttach) (*MsgOperatorAttachResponse, error) + // OperatorDetach defines a method to detach a token from another token by operator. + // Fires: + // - EventDetach + // - detach_from (deprecated, not typed) + // - operation_root_changed (deprecated, not typed) + // Throws: + // - ErrUnauthorized + // - the holder has not authorized `operator`. + // - ErrInvalidRequest + // - `owner` does not owns `subject`. + // Since: 0.46.0 (finschia) + OperatorDetach(context.Context, *MsgOperatorDetach) (*MsgOperatorDetachResponse, error) + // Deprecated: use OperatorAttach + // AttachFrom defines a method to attach a token to another token by operator. + AttachFrom(context.Context, *MsgAttachFrom) (*MsgAttachFromResponse, error) + // Deprecated: use OperatorDetach + // DetachFrom defines a method to detach a token from another token by operator. + DetachFrom(context.Context, *MsgDetachFrom) (*MsgDetachFromResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) Send(ctx context.Context, req *MsgSend) (*MsgSendResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Send not implemented") +} +func (*UnimplementedMsgServer) OperatorSend(ctx context.Context, req *MsgOperatorSend) (*MsgOperatorSendResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorSend not implemented") +} +func (*UnimplementedMsgServer) TransferFT(ctx context.Context, req *MsgTransferFT) (*MsgTransferFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferFT not implemented") +} +func (*UnimplementedMsgServer) TransferFTFrom(ctx context.Context, req *MsgTransferFTFrom) (*MsgTransferFTFromResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferFTFrom not implemented") +} +func (*UnimplementedMsgServer) TransferNFT(ctx context.Context, req *MsgTransferNFT) (*MsgTransferNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferNFT not implemented") +} +func (*UnimplementedMsgServer) TransferNFTFrom(ctx context.Context, req *MsgTransferNFTFrom) (*MsgTransferNFTFromResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferNFTFrom not implemented") +} +func (*UnimplementedMsgServer) AuthorizeOperator(ctx context.Context, req *MsgAuthorizeOperator) (*MsgAuthorizeOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AuthorizeOperator not implemented") +} +func (*UnimplementedMsgServer) RevokeOperator(ctx context.Context, req *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RevokeOperator not implemented") +} +func (*UnimplementedMsgServer) Approve(ctx context.Context, req *MsgApprove) (*MsgApproveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Approve not implemented") +} +func (*UnimplementedMsgServer) Disapprove(ctx context.Context, req *MsgDisapprove) (*MsgDisapproveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Disapprove not implemented") +} +func (*UnimplementedMsgServer) CreateContract(ctx context.Context, req *MsgCreateContract) (*MsgCreateContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateContract not implemented") +} +func (*UnimplementedMsgServer) CreateFTClass(ctx context.Context, req *MsgCreateFTClass) (*MsgCreateFTClassResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateFTClass not implemented") +} +func (*UnimplementedMsgServer) CreateNFTClass(ctx context.Context, req *MsgCreateNFTClass) (*MsgCreateNFTClassResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNFTClass not implemented") +} +func (*UnimplementedMsgServer) IssueFT(ctx context.Context, req *MsgIssueFT) (*MsgIssueFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IssueFT not implemented") +} +func (*UnimplementedMsgServer) IssueNFT(ctx context.Context, req *MsgIssueNFT) (*MsgIssueNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IssueNFT not implemented") +} +func (*UnimplementedMsgServer) MintFT(ctx context.Context, req *MsgMintFT) (*MsgMintFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MintFT not implemented") +} +func (*UnimplementedMsgServer) MintNFT(ctx context.Context, req *MsgMintNFT) (*MsgMintNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MintNFT not implemented") +} +func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Burn not implemented") +} +func (*UnimplementedMsgServer) OperatorBurn(ctx context.Context, req *MsgOperatorBurn) (*MsgOperatorBurnResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorBurn not implemented") +} +func (*UnimplementedMsgServer) BurnFT(ctx context.Context, req *MsgBurnFT) (*MsgBurnFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurnFT not implemented") +} +func (*UnimplementedMsgServer) BurnFTFrom(ctx context.Context, req *MsgBurnFTFrom) (*MsgBurnFTFromResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurnFTFrom not implemented") +} +func (*UnimplementedMsgServer) BurnNFT(ctx context.Context, req *MsgBurnNFT) (*MsgBurnNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurnNFT not implemented") +} +func (*UnimplementedMsgServer) BurnNFTFrom(ctx context.Context, req *MsgBurnNFTFrom) (*MsgBurnNFTFromResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurnNFTFrom not implemented") +} +func (*UnimplementedMsgServer) ModifyContract(ctx context.Context, req *MsgModifyContract) (*MsgModifyContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModifyContract not implemented") +} +func (*UnimplementedMsgServer) ModifyTokenClass(ctx context.Context, req *MsgModifyTokenClass) (*MsgModifyTokenClassResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModifyTokenClass not implemented") +} +func (*UnimplementedMsgServer) ModifyNFT(ctx context.Context, req *MsgModifyNFT) (*MsgModifyNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModifyNFT not implemented") +} +func (*UnimplementedMsgServer) Modify(ctx context.Context, req *MsgModify) (*MsgModifyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Modify not implemented") +} +func (*UnimplementedMsgServer) Grant(ctx context.Context, req *MsgGrant) (*MsgGrantResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Grant not implemented") +} +func (*UnimplementedMsgServer) Abandon(ctx context.Context, req *MsgAbandon) (*MsgAbandonResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Abandon not implemented") +} +func (*UnimplementedMsgServer) GrantPermission(ctx context.Context, req *MsgGrantPermission) (*MsgGrantPermissionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GrantPermission not implemented") +} +func (*UnimplementedMsgServer) RevokePermission(ctx context.Context, req *MsgRevokePermission) (*MsgRevokePermissionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RevokePermission not implemented") +} +func (*UnimplementedMsgServer) Attach(ctx context.Context, req *MsgAttach) (*MsgAttachResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Attach not implemented") +} +func (*UnimplementedMsgServer) Detach(ctx context.Context, req *MsgDetach) (*MsgDetachResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Detach not implemented") +} +func (*UnimplementedMsgServer) OperatorAttach(ctx context.Context, req *MsgOperatorAttach) (*MsgOperatorAttachResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorAttach not implemented") +} +func (*UnimplementedMsgServer) OperatorDetach(ctx context.Context, req *MsgOperatorDetach) (*MsgOperatorDetachResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorDetach not implemented") +} +func (*UnimplementedMsgServer) AttachFrom(ctx context.Context, req *MsgAttachFrom) (*MsgAttachFromResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AttachFrom not implemented") +} +func (*UnimplementedMsgServer) DetachFrom(ctx context.Context, req *MsgDetachFrom) (*MsgDetachFromResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DetachFrom not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSend) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Send(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Send", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Send(ctx, req.(*MsgSend)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_OperatorSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorSend) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).OperatorSend(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorSend", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorSend(ctx, req.(*MsgOperatorSend)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_TransferFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).TransferFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/TransferFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).TransferFT(ctx, req.(*MsgTransferFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_TransferFTFrom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferFTFrom) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).TransferFTFrom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/TransferFTFrom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).TransferFTFrom(ctx, req.(*MsgTransferFTFrom)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_TransferNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).TransferNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/TransferNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).TransferNFT(ctx, req.(*MsgTransferNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_TransferNFTFrom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferNFTFrom) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).TransferNFTFrom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/TransferNFTFrom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).TransferNFTFrom(ctx, req.(*MsgTransferNFTFrom)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AuthorizeOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAuthorizeOperator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AuthorizeOperator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/AuthorizeOperator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AuthorizeOperator(ctx, req.(*MsgAuthorizeOperator)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RevokeOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRevokeOperator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RevokeOperator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/RevokeOperator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RevokeOperator(ctx, req.(*MsgRevokeOperator)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Approve_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgApprove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Approve(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Approve", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Approve(ctx, req.(*MsgApprove)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Disapprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDisapprove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Disapprove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Disapprove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Disapprove(ctx, req.(*MsgDisapprove)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/CreateContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateContract(ctx, req.(*MsgCreateContract)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateFTClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateFTClass) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateFTClass(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/CreateFTClass", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateFTClass(ctx, req.(*MsgCreateFTClass)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateNFTClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateNFTClass) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateNFTClass(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/CreateNFTClass", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateNFTClass(ctx, req.(*MsgCreateNFTClass)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_IssueFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgIssueFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).IssueFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/IssueFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).IssueFT(ctx, req.(*MsgIssueFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_IssueNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgIssueNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).IssueNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/IssueNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).IssueNFT(ctx, req.(*MsgIssueNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_MintFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMintFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).MintFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/MintFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MintFT(ctx, req.(*MsgMintFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_MintNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMintNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).MintNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/MintNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MintNFT(ctx, req.(*MsgMintNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Burn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBurn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Burn(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Burn", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Burn(ctx, req.(*MsgBurn)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_OperatorBurn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorBurn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).OperatorBurn(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorBurn", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorBurn(ctx, req.(*MsgOperatorBurn)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_BurnFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBurnFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BurnFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/BurnFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BurnFT(ctx, req.(*MsgBurnFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_BurnFTFrom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBurnFTFrom) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BurnFTFrom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/BurnFTFrom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BurnFTFrom(ctx, req.(*MsgBurnFTFrom)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_BurnNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBurnNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BurnNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/BurnNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BurnNFT(ctx, req.(*MsgBurnNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_BurnNFTFrom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBurnNFTFrom) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BurnNFTFrom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/BurnNFTFrom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BurnNFTFrom(ctx, req.(*MsgBurnNFTFrom)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ModifyContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgModifyContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ModifyContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/ModifyContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ModifyContract(ctx, req.(*MsgModifyContract)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ModifyTokenClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgModifyTokenClass) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ModifyTokenClass(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/ModifyTokenClass", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ModifyTokenClass(ctx, req.(*MsgModifyTokenClass)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ModifyNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgModifyNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ModifyNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/ModifyNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ModifyNFT(ctx, req.(*MsgModifyNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Modify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgModify) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Modify(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Modify", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Modify(ctx, req.(*MsgModify)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Grant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgGrant) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Grant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Grant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Grant(ctx, req.(*MsgGrant)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Abandon_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAbandon) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Abandon(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Abandon", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Abandon(ctx, req.(*MsgAbandon)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_GrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgGrantPermission) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).GrantPermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/GrantPermission", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).GrantPermission(ctx, req.(*MsgGrantPermission)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRevokePermission) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RevokePermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/RevokePermission", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RevokePermission(ctx, req.(*MsgRevokePermission)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Attach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAttach) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Attach(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Attach", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Attach(ctx, req.(*MsgAttach)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Detach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDetach) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Detach(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Detach", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Detach(ctx, req.(*MsgDetach)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_OperatorAttach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorAttach) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).OperatorAttach(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorAttach", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorAttach(ctx, req.(*MsgOperatorAttach)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_OperatorDetach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorDetach) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).OperatorDetach(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorDetach", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorDetach(ctx, req.(*MsgOperatorDetach)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AttachFrom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAttachFrom) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AttachFrom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/AttachFrom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AttachFrom(ctx, req.(*MsgAttachFrom)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DetachFrom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDetachFrom) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DetachFrom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/DetachFrom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DetachFrom(ctx, req.(*MsgDetachFrom)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "lbm.collection.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Send", + Handler: _Msg_Send_Handler, + }, + { + MethodName: "OperatorSend", + Handler: _Msg_OperatorSend_Handler, + }, + { + MethodName: "TransferFT", + Handler: _Msg_TransferFT_Handler, + }, + { + MethodName: "TransferFTFrom", + Handler: _Msg_TransferFTFrom_Handler, + }, + { + MethodName: "TransferNFT", + Handler: _Msg_TransferNFT_Handler, + }, + { + MethodName: "TransferNFTFrom", + Handler: _Msg_TransferNFTFrom_Handler, + }, + { + MethodName: "AuthorizeOperator", + Handler: _Msg_AuthorizeOperator_Handler, + }, + { + MethodName: "RevokeOperator", + Handler: _Msg_RevokeOperator_Handler, + }, + { + MethodName: "Approve", + Handler: _Msg_Approve_Handler, + }, + { + MethodName: "Disapprove", + Handler: _Msg_Disapprove_Handler, + }, + { + MethodName: "CreateContract", + Handler: _Msg_CreateContract_Handler, + }, + { + MethodName: "CreateFTClass", + Handler: _Msg_CreateFTClass_Handler, + }, + { + MethodName: "CreateNFTClass", + Handler: _Msg_CreateNFTClass_Handler, + }, + { + MethodName: "IssueFT", + Handler: _Msg_IssueFT_Handler, + }, + { + MethodName: "IssueNFT", + Handler: _Msg_IssueNFT_Handler, + }, + { + MethodName: "MintFT", + Handler: _Msg_MintFT_Handler, + }, + { + MethodName: "MintNFT", + Handler: _Msg_MintNFT_Handler, + }, + { + MethodName: "Burn", + Handler: _Msg_Burn_Handler, + }, + { + MethodName: "OperatorBurn", + Handler: _Msg_OperatorBurn_Handler, + }, + { + MethodName: "BurnFT", + Handler: _Msg_BurnFT_Handler, + }, + { + MethodName: "BurnFTFrom", + Handler: _Msg_BurnFTFrom_Handler, + }, + { + MethodName: "BurnNFT", + Handler: _Msg_BurnNFT_Handler, + }, + { + MethodName: "BurnNFTFrom", + Handler: _Msg_BurnNFTFrom_Handler, + }, + { + MethodName: "ModifyContract", + Handler: _Msg_ModifyContract_Handler, + }, + { + MethodName: "ModifyTokenClass", + Handler: _Msg_ModifyTokenClass_Handler, + }, + { + MethodName: "ModifyNFT", + Handler: _Msg_ModifyNFT_Handler, + }, + { + MethodName: "Modify", + Handler: _Msg_Modify_Handler, + }, + { + MethodName: "Grant", + Handler: _Msg_Grant_Handler, + }, + { + MethodName: "Abandon", + Handler: _Msg_Abandon_Handler, + }, + { + MethodName: "GrantPermission", + Handler: _Msg_GrantPermission_Handler, + }, + { + MethodName: "RevokePermission", + Handler: _Msg_RevokePermission_Handler, + }, + { + MethodName: "Attach", + Handler: _Msg_Attach_Handler, + }, + { + MethodName: "Detach", + Handler: _Msg_Detach_Handler, + }, + { + MethodName: "OperatorAttach", + Handler: _Msg_OperatorAttach_Handler, + }, + { + MethodName: "OperatorDetach", + Handler: _Msg_OperatorDetach_Handler, + }, + { + MethodName: "AttachFrom", + Handler: _Msg_AttachFrom_Handler, + }, + { + MethodName: "DetachFrom", + Handler: _Msg_DetachFrom_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "lbm/collection/v1/tx.proto", +} + +func (m *MsgSend) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSendResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSendResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgOperatorSend) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorSend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x22 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgOperatorSendResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorSendResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgTransferFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgTransferFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgTransferFTFrom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferFTFrom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferFTFrom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x22 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proxy) > 0 { + i -= len(m.Proxy) + copy(dAtA[i:], m.Proxy) + i = encodeVarintTx(dAtA, i, uint64(len(m.Proxy))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgTransferFTFromResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferFTFromResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferFTFromResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgTransferNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgTransferNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgTransferNFTFrom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferNFTFrom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferNFTFrom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x22 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proxy) > 0 { + i -= len(m.Proxy) + copy(dAtA[i:], m.Proxy) + i = encodeVarintTx(dAtA, i, uint64(len(m.Proxy))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgTransferNFTFromResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferNFTFromResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferNFTFromResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAuthorizeOperator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAuthorizeOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAuthorizeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAuthorizeOperatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAuthorizeOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAuthorizeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRevokeOperator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRevokeOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRevokeOperatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRevokeOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgApprove) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgApprove) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgApprove) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Proxy) > 0 { + i -= len(m.Proxy) + copy(dAtA[i:], m.Proxy) + i = encodeVarintTx(dAtA, i, uint64(len(m.Proxy))) + i-- + dAtA[i] = 0x1a + } + if len(m.Approver) > 0 { + i -= len(m.Approver) + copy(dAtA[i:], m.Approver) + i = encodeVarintTx(dAtA, i, uint64(len(m.Approver))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgApproveResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgApproveResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgApproveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgDisapprove) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDisapprove) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDisapprove) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Proxy) > 0 { + i -= len(m.Proxy) + copy(dAtA[i:], m.Proxy) + i = encodeVarintTx(dAtA, i, uint64(len(m.Proxy))) + i-- + dAtA[i] = 0x1a + } + if len(m.Approver) > 0 { + i -= len(m.Approver) + copy(dAtA[i:], m.Approver) + i = encodeVarintTx(dAtA, i, uint64(len(m.Approver))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDisapproveResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDisapproveResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDisapproveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCreateContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(m.BaseImgUri) > 0 { + i -= len(m.BaseImgUri) + copy(dAtA[i:], m.BaseImgUri) + i = encodeVarintTx(dAtA, i, uint64(len(m.BaseImgUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintTx(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateFTClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateFTClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Supply.Size() + i -= size + if _, err := m.Supply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x32 + } + if m.Decimals != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Decimals)) + i-- + dAtA[i] = 0x28 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateFTClassResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateFTClassResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateFTClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintTx(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateNFTClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateNFTClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateNFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateNFTClassResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateNFTClassResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateNFTClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintTx(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgIssueFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgIssueFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgIssueFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x3a + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x32 + } + if m.Mintable { + i-- + if m.Mintable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Decimals != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Decimals)) + i-- + dAtA[i] = 0x20 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgIssueFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgIssueFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgIssueFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintTx(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgIssueNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgIssueNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgIssueNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x22 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgIssueNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgIssueNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgIssueNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintTx(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgMintFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgMintFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMintFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgMintFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgMintFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMintFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgMintNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgMintNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMintNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgMintNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgMintNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ids[iNdEx]) + copy(dAtA[i:], m.Ids[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Ids[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *MintNFTParam) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MintNFTParam) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MintNFTParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBurn) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgOperatorBurn) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorBurn) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorBurn) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgOperatorBurnResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorBurnResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgBurnFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBurnFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgBurnFTFrom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnFTFrom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnFTFrom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proxy) > 0 { + i -= len(m.Proxy) + copy(dAtA[i:], m.Proxy) + i = encodeVarintTx(dAtA, i, uint64(len(m.Proxy))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBurnFTFromResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnFTFromResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnFTFromResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgBurnNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBurnNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgBurnNFTFrom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnNFTFrom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnNFTFrom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proxy) > 0 { + i -= len(m.Proxy) + copy(dAtA[i:], m.Proxy) + i = encodeVarintTx(dAtA, i, uint64(len(m.Proxy))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBurnNFTFromResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnNFTFromResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnNFTFromResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgModifyContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModifyContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModifyContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgModifyContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModifyContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModifyContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgModifyTokenClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModifyTokenClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModifyTokenClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgModifyTokenClassResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModifyTokenClassResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModifyTokenClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgModifyNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModifyNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModifyNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgModifyNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModifyNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModifyNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgModify) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModify) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModify) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenIndex) > 0 { + i -= len(m.TokenIndex) + copy(dAtA[i:], m.TokenIndex) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIndex))) + i-- + dAtA[i] = 0x22 + } + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgModifyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModifyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModifyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgGrant) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGrant) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permission != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x20 + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintTx(dAtA, i, uint64(len(m.Grantee))) + i-- + dAtA[i] = 0x1a + } + if len(m.Granter) > 0 { + i -= len(m.Granter) + copy(dAtA[i:], m.Granter) + i = encodeVarintTx(dAtA, i, uint64(len(m.Granter))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgGrantResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGrantResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAbandon) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAbandon) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAbandon) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permission != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x18 + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintTx(dAtA, i, uint64(len(m.Grantee))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAbandonResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAbandonResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAbandonResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgGrantPermission) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGrantPermission) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGrantPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Permission) > 0 { + i -= len(m.Permission) + copy(dAtA[i:], m.Permission) + i = encodeVarintTx(dAtA, i, uint64(len(m.Permission))) + i-- + dAtA[i] = 0x22 + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgGrantPermissionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGrantPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRevokePermission) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRevokePermission) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokePermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Permission) > 0 { + i -= len(m.Permission) + copy(dAtA[i:], m.Permission) + i = encodeVarintTx(dAtA, i, uint64(len(m.Permission))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRevokePermissionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokePermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAttach) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAttach) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAttach) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ToTokenId) > 0 { + i -= len(m.ToTokenId) + copy(dAtA[i:], m.ToTokenId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ToTokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAttachResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAttachResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAttachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgDetach) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDetach) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDetach) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDetachResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDetachResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDetachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgOperatorAttach) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorAttach) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorAttach) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Target) > 0 { + i -= len(m.Target) + copy(dAtA[i:], m.Target) + i = encodeVarintTx(dAtA, i, uint64(len(m.Target))) + i-- + dAtA[i] = 0x2a + } + if len(m.Subject) > 0 { + i -= len(m.Subject) + copy(dAtA[i:], m.Subject) + i = encodeVarintTx(dAtA, i, uint64(len(m.Subject))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgOperatorAttachResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorAttachResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorAttachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgOperatorDetach) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorDetach) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorDetach) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Subject) > 0 { + i -= len(m.Subject) + copy(dAtA[i:], m.Subject) + i = encodeVarintTx(dAtA, i, uint64(len(m.Subject))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgOperatorDetachResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorDetachResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorDetachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAttachFrom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAttachFrom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAttachFrom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ToTokenId) > 0 { + i -= len(m.ToTokenId) + copy(dAtA[i:], m.ToTokenId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ToTokenId))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proxy) > 0 { + i -= len(m.Proxy) + copy(dAtA[i:], m.Proxy) + i = encodeVarintTx(dAtA, i, uint64(len(m.Proxy))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAttachFromResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAttachFromResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAttachFromResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgDetachFrom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDetachFrom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDetachFrom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proxy) > 0 { + i -= len(m.Proxy) + copy(dAtA[i:], m.Proxy) + i = encodeVarintTx(dAtA, i, uint64(len(m.Proxy))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDetachFromResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDetachFromResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDetachFromResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgSend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSendResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgOperatorSend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgOperatorSendResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgTransferFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgTransferFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgTransferFTFrom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Proxy) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgTransferFTFromResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgTransferNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgTransferNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgTransferNFTFrom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Proxy) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgTransferNFTFromResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAuthorizeOperator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAuthorizeOperatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRevokeOperator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRevokeOperatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgApprove) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Approver) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Proxy) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgApproveResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgDisapprove) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Approver) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Proxy) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDisapproveResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCreateContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.BaseImgUri) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateFTClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Decimals != 0 { + n += 1 + sovTx(uint64(m.Decimals)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Supply.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgCreateFTClassResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateNFTClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateNFTClassResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgIssueFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Decimals != 0 { + n += 1 + sovTx(uint64(m.Decimals)) + } + if m.Mintable { + n += 2 + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgIssueFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgIssueNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgIssueNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgMintFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgMintFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgMintNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgMintNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ids) > 0 { + for _, s := range m.Ids { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MintNFTParam) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgBurn) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgBurnResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgOperatorBurn) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgOperatorBurnResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBurnFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgBurnFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBurnFTFrom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Proxy) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgBurnFTFromResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBurnNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgBurnNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBurnNFTFrom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Proxy) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgBurnNFTFromResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgModifyContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgModifyContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgModifyTokenClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgModifyTokenClassResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgModifyNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgModifyNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgModify) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenIndex) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgModifyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgGrant) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Granter) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Permission != 0 { + n += 1 + sovTx(uint64(m.Permission)) + } + return n +} + +func (m *MsgGrantResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAbandon) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Permission != 0 { + n += 1 + sovTx(uint64(m.Permission)) + } + return n +} + +func (m *MsgAbandonResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgGrantPermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Permission) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgGrantPermissionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRevokePermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Permission) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRevokePermissionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAttach) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ToTokenId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAttachResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgDetach) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDetachResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgOperatorAttach) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Subject) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Target) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgOperatorAttachResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgOperatorDetach) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Subject) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgOperatorDetachResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAttachFrom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Proxy) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ToTokenId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAttachFromResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgDetachFrom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Proxy) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDetachFromResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgSend) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSendResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSendResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSendResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOperatorSend) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOperatorSend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorSend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOperatorSendResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOperatorSendResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorSendResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferFTFrom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferFTFrom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferFTFrom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proxy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proxy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferFTFromResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferFTFromResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferFTFromResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferNFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferNFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferNFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferNFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferNFTFrom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferNFTFrom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferNFTFrom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proxy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proxy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferNFTFromResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferNFTFromResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferNFTFromResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAuthorizeOperator) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAuthorizeOperator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAuthorizeOperator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAuthorizeOperatorResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAuthorizeOperatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAuthorizeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRevokeOperator) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRevokeOperator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRevokeOperator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRevokeOperatorResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRevokeOperatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRevokeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgApprove) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgApprove: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgApprove: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Approver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Approver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proxy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proxy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgApproveResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgApproveResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgApproveResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDisapprove) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDisapprove: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDisapprove: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Approver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Approver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proxy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proxy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDisapproveResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDisapproveResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDisapproveResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseImgUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseImgUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateContractResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateFTClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateFTClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateFTClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + m.Decimals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimals |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateFTClassResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateFTClassResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateFTClassResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateNFTClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateNFTClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateNFTClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateNFTClassResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateNFTClassResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateNFTClassResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgIssueFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgIssueFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + m.Decimals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimals |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Mintable = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgIssueFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgIssueFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgIssueFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgIssueNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgIssueNFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgIssueNFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgIssueNFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgIssueNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgMintFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgMintFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMintFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgMintFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgMintFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMintFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgMintNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMintNFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, MintNFTParam{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgMintNFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMintNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MintNFTParam) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MintNFTParam: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MintNFTParam: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurn) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurnResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOperatorBurn) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOperatorBurn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorBurn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOperatorBurnResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOperatorBurnResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorBurnResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurnFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurnFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurnFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurnFTFrom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurnFTFrom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnFTFrom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proxy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proxy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurnFTFromResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurnFTFromResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnFTFromResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurnNFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurnNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnNFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurnNFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurnNFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurnNFTFrom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurnNFTFrom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnNFTFrom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proxy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proxy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBurnNFTFromResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBurnNFTFromResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnNFTFromResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModifyContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModifyContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModifyContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModifyContractResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModifyContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModifyContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModifyTokenClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModifyTokenClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModifyTokenClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModifyTokenClassResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModifyTokenClassResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModifyTokenClassResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModifyNFT) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModifyNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModifyNFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModifyNFTResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModifyNFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModifyNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModify) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModify: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModify: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIndex", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIndex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Change{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModifyResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModifyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModifyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgGrant) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgGrant: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgGrant: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Granter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgGrantResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgGrantResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAbandon) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAbandon: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAbandon: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAbandonResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAbandonResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAbandonResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgGrantPermission) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgGrantPermission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgGrantPermission: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Permission = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgGrantPermissionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgGrantPermissionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRevokePermission) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRevokePermission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRevokePermission: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Permission = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRevokePermissionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRevokePermissionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAttach) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAttach: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAttach: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToTokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ToTokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAttachResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAttachResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAttachResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDetach) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDetach: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDetach: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDetachResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDetachResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDetachResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOperatorAttach) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOperatorAttach: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorAttach: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subject = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Target = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOperatorAttachResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOperatorAttachResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorAttachResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOperatorDetach) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOperatorDetach: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorDetach: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subject = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOperatorDetachResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOperatorDetachResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorDetachResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAttachFrom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAttachFrom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAttachFrom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proxy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proxy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToTokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ToTokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAttachFromResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAttachFromResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAttachFromResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDetachFrom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDetachFrom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDetachFrom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proxy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proxy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDetachFromResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDetachFromResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDetachFromResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +)