{ "casper_contract_schema_version": 1, "toolchain": "rustc 1.79.0-nightly (3a36386dc 2024-04-25)", "authors": [ "Jakub Płaskonka ", "Krzysztof Pobiarżyn ", "Maciej Zieliński " ], "repository": "https://github.com/odradev/odra", "homepage": null, "contract_name": "TestCep78", "contract_version": "1.2.0", "types": [ { "struct": { "name": "Approval", "description": null, "members": [ { "name": "owner", "description": null, "ty": "Key" }, { "name": "spender", "description": null, "ty": "Key" }, { "name": "token_id", "description": null, "ty": "String" } ] } }, { "struct": { "name": "ApprovalForAll", "description": null, "members": [ { "name": "owner", "description": null, "ty": "Key" }, { "name": "operator", "description": null, "ty": "Key" } ] } }, { "struct": { "name": "ApprovalRevoked", "description": null, "members": [ { "name": "owner", "description": null, "ty": "Key" }, { "name": "token_id", "description": null, "ty": "String" } ] } }, { "struct": { "name": "Burn", "description": null, "members": [ { "name": "owner", "description": null, "ty": "Key" }, { "name": "token_id", "description": null, "ty": "String" }, { "name": "burner", "description": null, "ty": "Key" } ] } }, { "struct": { "name": "MetadataUpdated", "description": null, "members": [ { "name": "token_id", "description": null, "ty": "String" }, { "name": "data", "description": null, "ty": "String" } ] } }, { "struct": { "name": "Mint", "description": null, "members": [ { "name": "recipient", "description": null, "ty": "Key" }, { "name": "token_id", "description": null, "ty": "String" }, { "name": "data", "description": null, "ty": "String" } ] } }, { "struct": { "name": "RevokedForAll", "description": null, "members": [ { "name": "owner", "description": null, "ty": "Key" }, { "name": "operator", "description": null, "ty": "Key" } ] } }, { "struct": { "name": "Transfer", "description": null, "members": [ { "name": "owner", "description": null, "ty": "Key" }, { "name": "spender", "description": null, "ty": { "Option": "Key" } }, { "name": "recipient", "description": null, "ty": "Key" }, { "name": "token_id", "description": null, "ty": "String" } ] } }, { "struct": { "name": "VariablesSet", "description": null, "members": [] } }, { "enum": { "name": "BurnMode", "description": null, "variants": [ { "name": "Burnable", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "NonBurnable", "description": null, "discriminant": 1, "ty": "Unit" } ] } }, { "enum": { "name": "EventsMode", "description": null, "variants": [ { "name": "NoEvents", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "CES", "description": null, "discriminant": 2, "ty": "Unit" } ] } }, { "enum": { "name": "MetadataMutability", "description": null, "variants": [ { "name": "Immutable", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "Mutable", "description": null, "discriminant": 1, "ty": "Unit" } ] } }, { "enum": { "name": "MintingMode", "description": null, "variants": [ { "name": "Installer", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "Public", "description": null, "discriminant": 1, "ty": "Unit" }, { "name": "Acl", "description": null, "discriminant": 2, "ty": "Unit" } ] } }, { "enum": { "name": "NFTHolderMode", "description": null, "variants": [ { "name": "Accounts", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "Contracts", "description": null, "discriminant": 1, "ty": "Unit" }, { "name": "Mixed", "description": null, "discriminant": 2, "ty": "Unit" } ] } }, { "enum": { "name": "NFTIdentifierMode", "description": null, "variants": [ { "name": "Ordinal", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "Hash", "description": null, "discriminant": 1, "ty": "Unit" } ] } }, { "enum": { "name": "NFTKind", "description": null, "variants": [ { "name": "Physical", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "Digital", "description": null, "discriminant": 1, "ty": "Unit" }, { "name": "Virtual", "description": null, "discriminant": 2, "ty": "Unit" } ] } }, { "enum": { "name": "NFTMetadataKind", "description": null, "variants": [ { "name": "CEP78", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "NFT721", "description": null, "discriminant": 1, "ty": "Unit" }, { "name": "Raw", "description": null, "discriminant": 2, "ty": "Unit" }, { "name": "CustomValidated", "description": null, "discriminant": 3, "ty": "Unit" } ] } }, { "enum": { "name": "OwnerReverseLookupMode", "description": null, "variants": [ { "name": "NoLookUp", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "Complete", "description": null, "discriminant": 1, "ty": "Unit" }, { "name": "TransfersOnly", "description": null, "discriminant": 2, "ty": "Unit" } ] } }, { "enum": { "name": "OwnershipMode", "description": null, "variants": [ { "name": "Minter", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "Assigned", "description": null, "discriminant": 1, "ty": "Unit" }, { "name": "Transferable", "description": null, "discriminant": 2, "ty": "Unit" } ] } }, { "enum": { "name": "WhitelistMode", "description": null, "variants": [ { "name": "Unlocked", "description": null, "discriminant": 0, "ty": "Unit" }, { "name": "Locked", "description": null, "discriminant": 1, "ty": "Unit" } ] } } ], "errors": [ { "name": "CannotInstallWithZeroSupply", "description": "", "discriminant": 123 }, { "name": "CannotUpgradeToMoreSupply", "description": "", "discriminant": 150 }, { "name": "CannotUpgradeWithZeroSupply", "description": "", "discriminant": 122 }, { "name": "ContractAlreadyInitialized", "description": "", "discriminant": 58 }, { "name": "ContractAlreadyMigrated", "description": "", "discriminant": 126 }, { "name": "DuplicateIdentifier", "description": "", "discriminant": 170 }, { "name": "DuplicateMinted", "description": "", "discriminant": 15 }, { "name": "EmptyACLWhitelist", "description": "", "discriminant": 162 }, { "name": "EmptyContractWhitelist", "description": "", "discriminant": 83 }, { "name": "ExceededMaxTotalSupply", "description": "", "discriminant": 133 }, { "name": "FailedToAccessOwnershipDictionary", "description": "", "discriminant": 14 }, { "name": "FailedToAccessStorageDictionary", "description": "", "discriminant": 13 }, { "name": "FailedToConvertToAccountHash", "description": "", "discriminant": 40 }, { "name": "FailedToConvertToCLValue", "description": "", "discriminant": 16 }, { "name": "FailedToCreateDictionary", "description": "", "discriminant": 8 }, { "name": "FailedToGetArgBytes", "description": "", "discriminant": 7 }, { "name": "FailedToJsonifyCEP78Metadata", "description": "", "discriminant": 92 }, { "name": "FailedToJsonifyCustomMetadata", "description": "", "discriminant": 103 }, { "name": "FailedToJsonifyNFT721Metadata", "description": "", "discriminant": 94 }, { "name": "FailedToParse721Metadata", "description": "", "discriminant": 89 }, { "name": "FailedToParseCep78Metadata", "description": "", "discriminant": 88 }, { "name": "FailedToParseCustomMetadata", "description": "", "discriminant": 90 }, { "name": "FailedToParseTokenId", "description": "", "discriminant": 100 }, { "name": "FailedToSerializeMetaData", "description": "", "discriminant": 19 }, { "name": "FailureToParseAccountHash", "description": "", "discriminant": 60 }, { "name": "FatalTokenIdDuplication", "description": "", "discriminant": 35 }, { "name": "ForbiddenMetadataUpdate", "description": "", "discriminant": 104 }, { "name": "GoingBelowZeroSupply", "description": "", "discriminant": 171 }, { "name": "InvalidACLPackageMode", "description": "", "discriminant": 163 }, { "name": "InvalidACLWhitelist", "description": "", "discriminant": 161 }, { "name": "InvalidAccessKeyName", "description": "", "discriminant": 137 }, { "name": "InvalidAccount", "description": "", "discriminant": 1 }, { "name": "InvalidAccountHash", "description": "", "discriminant": 31 }, { "name": "InvalidAccountKeyInDictionary", "description": "", "discriminant": 66 }, { "name": "InvalidAdditionalNFTMetadataKind", "description": "", "discriminant": 146 }, { "name": "InvalidAdditionalRequiredMetadata", "description": "", "discriminant": 141 }, { "name": "InvalidAllowMinting", "description": "", "discriminant": 44 }, { "name": "InvalidApproveAll", "description": "", "discriminant": 54 }, { "name": "InvalidApprovedAccountHash", "description": "", "discriminant": 50 }, { "name": "InvalidBurnMode", "description": "", "discriminant": 106 }, { "name": "InvalidBurner", "description": "", "discriminant": 41 }, { "name": "InvalidCEP78Metadata", "description": "", "discriminant": 91 }, { "name": "InvalidCep78InvalidHash", "description": "", "discriminant": 135 }, { "name": "InvalidCheckForUpgrade", "description": "", "discriminant": 138 }, { "name": "InvalidCollectionName", "description": "", "discriminant": 18 }, { "name": "InvalidCollectionSymbol", "description": "", "discriminant": 24 }, { "name": "InvalidContract", "description": "", "discriminant": 82 }, { "name": "InvalidContractWhitelist", "description": "", "discriminant": 80 }, { "name": "InvalidCustomMetadata", "description": "", "discriminant": 95 }, { "name": "InvalidEventsMode", "description": "", "discriminant": 149 }, { "name": "InvalidHashByIndex", "description": "", "discriminant": 108 }, { "name": "InvalidHolderMode", "description": "", "discriminant": 76 }, { "name": "InvalidIdentifier", "description": "", "discriminant": 169 }, { "name": "InvalidIdentifierMode", "description": "", "discriminant": 99 }, { "name": "InvalidIndexByHash", "description": "", "discriminant": 110 }, { "name": "InvalidInstaller", "description": "", "discriminant": 3 }, { "name": "InvalidJsonFormat", "description": "", "discriminant": 87 }, { "name": "InvalidJsonMetadata", "description": "", "discriminant": 86 }, { "name": "InvalidJsonSchema", "description": "", "discriminant": 68 }, { "name": "InvalidKey", "description": "", "discriminant": 69 }, { "name": "InvalidMetadataMutability", "description": "", "discriminant": 102 }, { "name": "InvalidMigrationFlag", "description": "", "discriminant": 125 }, { "name": "InvalidMinter", "description": "", "discriminant": 36 }, { "name": "InvalidMintingMode", "description": "", "discriminant": 38 }, { "name": "InvalidMintingStatus", "description": "", "discriminant": 22 }, { "name": "InvalidNFT721Metadata", "description": "", "discriminant": 93 }, { "name": "InvalidNFTMetadataKind", "description": "", "discriminant": 97 }, { "name": "InvalidNamedKeyConvention", "description": "", "discriminant": 139 }, { "name": "InvalidNftKind", "description": "", "discriminant": 74 }, { "name": "InvalidNumberOfMintedTokens", "description": "", "discriminant": 46 }, { "name": "InvalidOperator", "description": "", "discriminant": 56 }, { "name": "InvalidOperatorBurnMode", "description": "", "discriminant": 167 }, { "name": "InvalidOptionalMetadata", "description": "", "discriminant": 142 }, { "name": "InvalidOptionalNFTMetadataKind", "description": "", "discriminant": 144 }, { "name": "InvalidOwnedTokens", "description": "", "discriminant": 70 }, { "name": "InvalidOwnersUref", "description": "", "discriminant": 12 }, { "name": "InvalidOwnershipMode", "description": "", "discriminant": 63 }, { "name": "InvalidPackageHashName", "description": "", "discriminant": 136 }, { "name": "InvalidPackageOperatorMode", "description": "", "discriminant": 165 }, { "name": "InvalidPageIndex", "description": "", "discriminant": 116 }, { "name": "InvalidPageLimit", "description": "", "discriminant": 114 }, { "name": "InvalidPageNumber", "description": "", "discriminant": 115 }, { "name": "InvalidPageTableURef", "description": "", "discriminant": 112 }, { "name": "InvalidPageUref", "description": "", "discriminant": 121 }, { "name": "InvalidReceiptName", "description": "", "discriminant": 85 }, { "name": "InvalidReportingMode", "description": "", "discriminant": 130 }, { "name": "InvalidRequirement", "description": "", "discriminant": 147 }, { "name": "InvalidSpenderAccountHash", "description": "", "discriminant": 154 }, { "name": "InvalidStorageUref", "description": "", "discriminant": 10 }, { "name": "InvalidTokenIdentifier", "description": "", "discriminant": 28 }, { "name": "InvalidTokenMetaData", "description": "", "discriminant": 48 }, { "name": "InvalidTokenMinter", "description": "", "discriminant": 64 }, { "name": "InvalidTokenOwner", "description": "", "discriminant": 6 }, { "name": "InvalidTokenURI", "description": "", "discriminant": 72 }, { "name": "InvalidTotalTokenSupply", "description": "", "discriminant": 26 }, { "name": "InvalidTransferFilterContract", "description": "", "discriminant": 156 }, { "name": "InvalidUnmatchedHashCount", "description": "", "discriminant": 118 }, { "name": "InvalidWhitelistMode", "description": "", "discriminant": 78 }, { "name": "MintingIsPaused", "description": "", "discriminant": 59 }, { "name": "MissingACLPackageMode", "description": "", "discriminant": 164 }, { "name": "MissingACLWhiteList", "description": "", "discriminant": 160 }, { "name": "MissingAccount", "description": "", "discriminant": 20 }, { "name": "MissingAccountHash", "description": "", "discriminant": 30 }, { "name": "MissingAdditionalNFTMetadataKind", "description": "", "discriminant": 145 }, { "name": "MissingAllowMinting", "description": "", "discriminant": 43 }, { "name": "MissingApproveAll", "description": "", "discriminant": 53 }, { "name": "MissingApprovedAccountHash", "description": "", "discriminant": 49 }, { "name": "MissingApprovedDict", "description": "", "discriminant": 152 }, { "name": "MissingApprovedTokensDictionary", "description": "", "discriminant": 51 }, { "name": "MissingBurnMode", "description": "", "discriminant": 105 }, { "name": "MissingCep78PackageHash", "description": "", "discriminant": 134 }, { "name": "MissingCollectionName", "description": "", "discriminant": 17 }, { "name": "MissingCollectionSymbol", "description": "", "discriminant": 23 }, { "name": "MissingContractWhiteList", "description": "", "discriminant": 79 }, { "name": "MissingEventsMode", "description": "", "discriminant": 148 }, { "name": "MissingHashByIndex", "description": "", "discriminant": 107 }, { "name": "MissingHolderMode", "description": "", "discriminant": 75 }, { "name": "MissingIdentifierMode", "description": "", "discriminant": 98 }, { "name": "MissingIndexByHash", "description": "", "discriminant": 109 }, { "name": "MissingInstaller", "description": "", "discriminant": 2 }, { "name": "MissingInstallerKey", "description": "", "discriminant": 39 }, { "name": "MissingJsonSchema", "description": "", "discriminant": 67 }, { "name": "MissingMetadataMutability", "description": "", "discriminant": 101 }, { "name": "MissingMigrationFlag", "description": "", "discriminant": 124 }, { "name": "MissingMintingMode", "description": "", "discriminant": 37 }, { "name": "MissingMintingStatus", "description": "", "discriminant": 21 }, { "name": "MissingNFTMetadataKind", "description": "", "discriminant": 96 }, { "name": "MissingNftKind", "description": "", "discriminant": 73 }, { "name": "MissingNumberOfMintedTokens", "description": "", "discriminant": 45 }, { "name": "MissingOperator", "description": "", "discriminant": 55 }, { "name": "MissingOperatorBurnMode", "description": "", "discriminant": 168 }, { "name": "MissingOperatorDict", "description": "", "discriminant": 151 }, { "name": "MissingOptionalNFTMetadataKind", "description": "", "discriminant": 143 }, { "name": "MissingOwnedTokens", "description": "", "discriminant": 65 }, { "name": "MissingOwnedTokensDictionary", "description": "", "discriminant": 33 }, { "name": "MissingOwnerTokenIdentifierKey", "description": "", "discriminant": 155 }, { "name": "MissingOwnersUref", "description": "", "discriminant": 11 }, { "name": "MissingOwnershipMode", "description": "", "discriminant": 62 }, { "name": "MissingPackageHashForUpgrade", "description": "", "discriminant": 119 }, { "name": "MissingPackageOperatorMode", "description": "", "discriminant": 166 }, { "name": "MissingPage", "description": "", "discriminant": 131 }, { "name": "MissingPageLimit", "description": "", "discriminant": 113 }, { "name": "MissingPageTableURef", "description": "", "discriminant": 111 }, { "name": "MissingPageUref", "description": "", "discriminant": 120 }, { "name": "MissingReceiptName", "description": "", "discriminant": 84 }, { "name": "MissingReportingMode", "description": "", "discriminant": 129 }, { "name": "MissingSpenderAccountHash", "description": "", "discriminant": 153 }, { "name": "MissingStorageUref", "description": "", "discriminant": 9 }, { "name": "MissingTokenID", "description": "", "discriminant": 27 }, { "name": "MissingTokenMetaData", "description": "", "discriminant": 47 }, { "name": "MissingTokenOwner", "description": "", "discriminant": 5 }, { "name": "MissingTokenOwners", "description": "", "discriminant": 29 }, { "name": "MissingTokenURI", "description": "", "discriminant": 71 }, { "name": "MissingTotalTokenSupply", "description": "", "discriminant": 25 }, { "name": "MissingTransferFilterContract", "description": "", "discriminant": 157 }, { "name": "MissingUnmatchedHashCount", "description": "", "discriminant": 117 }, { "name": "MissingWhitelistMode", "description": "", "discriminant": 77 }, { "name": "OwnerReverseLookupModeNotTransferable", "description": "", "discriminant": 140 }, { "name": "Phantom", "description": "", "discriminant": 57 }, { "name": "PreviouslyBurntToken", "description": "", "discriminant": 42 }, { "name": "ReverseLookupIntegrityViolation", "description": "", "discriminant": 172 }, { "name": "TokenAlreadyApproved", "description": "", "discriminant": 52 }, { "name": "TokenAlreadyBelongsToMinterFatal", "description": "", "discriminant": 34 }, { "name": "TokenSupplyDepleted", "description": "", "discriminant": 32 }, { "name": "TransferFilterContractDenied", "description": "", "discriminant": 159 }, { "name": "TransferFilterContractNeedsTransferableMode", "description": "", "discriminant": 158 }, { "name": "UnexpectedKeyVariant", "description": "", "discriminant": 4 }, { "name": "UnlistedContractHash", "description": "", "discriminant": 81 }, { "name": "UnregisteredOwnerFromMigration", "description": "", "discriminant": 132 }, { "name": "UnregisteredOwnerInBurn", "description": "", "discriminant": 173 }, { "name": "UnregisteredOwnerInMint", "description": "", "discriminant": 127 }, { "name": "UnregisteredOwnerInTransfer", "description": "", "discriminant": 128 }, { "name": "VacantValueInDictionary", "description": "", "discriminant": 61 } ], "entry_points": [ { "name": "get_whitelist_mode", "description": "", "is_mutable": false, "arguments": [], "return_ty": "WhitelistMode", "is_contract_context": true, "access": "public" }, { "name": "get_collection_name", "description": "", "is_mutable": false, "arguments": [], "return_ty": "String", "is_contract_context": true, "access": "public" }, { "name": "get_collection_symbol", "description": "", "is_mutable": false, "arguments": [], "return_ty": "String", "is_contract_context": true, "access": "public" }, { "name": "is_minting_allowed", "description": "", "is_mutable": false, "arguments": [], "return_ty": "Bool", "is_contract_context": true, "access": "public" }, { "name": "is_operator_burn_mode", "description": "", "is_mutable": false, "arguments": [], "return_ty": "Bool", "is_contract_context": true, "access": "public" }, { "name": "get_total_supply", "description": "", "is_mutable": false, "arguments": [], "return_ty": "U64", "is_contract_context": true, "access": "public" }, { "name": "get_minting_mode", "description": "", "is_mutable": false, "arguments": [], "return_ty": "MintingMode", "is_contract_context": true, "access": "public" }, { "name": "get_holder_mode", "description": "", "is_mutable": false, "arguments": [], "return_ty": "NFTHolderMode", "is_contract_context": true, "access": "public" }, { "name": "get_number_of_minted_tokens", "description": "", "is_mutable": false, "arguments": [], "return_ty": "U64", "is_contract_context": true, "access": "public" }, { "name": "get_page", "description": "", "is_mutable": false, "arguments": [ { "name": "page_number", "description": null, "ty": "U64", "optional": false } ], "return_ty": { "List": "Bool" }, "is_contract_context": true, "access": "public" }, { "name": "get_page_by_token_id", "description": "", "is_mutable": false, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": false } ], "return_ty": { "List": "Bool" }, "is_contract_context": true, "access": "public" }, { "name": "get_page_by_token_hash", "description": "", "is_mutable": false, "arguments": [ { "name": "token_hash", "description": null, "ty": "String", "optional": false } ], "return_ty": { "List": "Bool" }, "is_contract_context": true, "access": "public" }, { "name": "get_page_table", "description": "", "is_mutable": false, "arguments": [], "return_ty": { "List": "Bool" }, "is_contract_context": true, "access": "public" }, { "name": "get_metadata_by_kind", "description": "", "is_mutable": false, "arguments": [ { "name": "kind", "description": null, "ty": "NFTMetadataKind", "optional": false }, { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": "String", "is_contract_context": true, "access": "public" }, { "name": "get_token_issuer", "description": "", "is_mutable": false, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": "Key", "is_contract_context": true, "access": "public" }, { "name": "token_burned", "description": "", "is_mutable": false, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": "Bool", "is_contract_context": true, "access": "public" }, { "name": "set_variables", "description": "Delegated. See `self.token.set_variables()` for details.", "is_mutable": true, "arguments": [ { "name": "allow_minting", "description": null, "ty": "Bool", "optional": true }, { "name": "acl_whitelist", "description": null, "ty": { "List": "Key" }, "optional": true }, { "name": "operator_burn_mode", "description": null, "ty": "Bool", "optional": true } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "mint", "description": "Delegated. See `self.token.mint()` for details.", "is_mutable": true, "arguments": [ { "name": "token_owner", "description": null, "ty": "Key", "optional": false }, { "name": "token_meta_data", "description": null, "ty": "String", "optional": false }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "burn", "description": "Delegated. See `self.token.burn()` for details.", "is_mutable": true, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "transfer", "description": "Delegated. See `self.token.transfer()` for details.", "is_mutable": true, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true }, { "name": "source_key", "description": null, "ty": "Key", "optional": false }, { "name": "target_key", "description": null, "ty": "Key", "optional": false } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "approve", "description": "Delegated. See `self.token.approve()` for details.", "is_mutable": true, "arguments": [ { "name": "spender", "description": null, "ty": "Key", "optional": false }, { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "revoke", "description": "Delegated. See `self.token.revoke()` for details.", "is_mutable": true, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "set_approval_for_all", "description": "Delegated. See `self.token.set_approval_for_all()` for details.", "is_mutable": true, "arguments": [ { "name": "approve_all", "description": null, "ty": "Bool", "optional": false }, { "name": "operator", "description": null, "ty": "Key", "optional": false } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "is_approved_for_all", "description": "Delegated. See `self.token.is_approved_for_all()` for details.", "is_mutable": true, "arguments": [ { "name": "token_owner", "description": null, "ty": "Key", "optional": false }, { "name": "operator", "description": null, "ty": "Key", "optional": false } ], "return_ty": "Bool", "is_contract_context": true, "access": "public" }, { "name": "owner_of", "description": "Delegated. See `self.token.owner_of()` for details.", "is_mutable": false, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": "Key", "is_contract_context": true, "access": "public" }, { "name": "get_approved", "description": "Delegated. See `self.token.get_approved()` for details.", "is_mutable": true, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": { "Option": "Key" }, "is_contract_context": true, "access": "public" }, { "name": "metadata", "description": "Delegated. See `self.token.metadata()` for details.", "is_mutable": false, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true } ], "return_ty": "String", "is_contract_context": true, "access": "public" }, { "name": "set_token_metadata", "description": "Delegated. See `self.token.set_token_metadata()` for details.", "is_mutable": true, "arguments": [ { "name": "token_id", "description": null, "ty": "U64", "optional": true }, { "name": "token_hash", "description": null, "ty": "String", "optional": true }, { "name": "token_meta_data", "description": null, "ty": "String", "optional": false } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "balance_of", "description": "Delegated. See `self.token.balance_of()` for details.", "is_mutable": false, "arguments": [ { "name": "token_owner", "description": null, "ty": "Key", "optional": false } ], "return_ty": "U64", "is_contract_context": true, "access": "public" }, { "name": "register_owner", "description": "Delegated. See `self.token.register_owner()` for details.", "is_mutable": true, "arguments": [ { "name": "token_owner", "description": null, "ty": "Key", "optional": true } ], "return_ty": "String", "is_contract_context": true, "access": "public" }, { "name": "is_whitelisted", "description": "Delegated. See `self.token.is_whitelisted()` for details.", "is_mutable": false, "arguments": [ { "name": "address", "description": null, "ty": "Key", "optional": false } ], "return_ty": "Bool", "is_contract_context": true, "access": "public" } ], "events": [ { "name": "Approval", "ty": "Approval" }, { "name": "ApprovalForAll", "ty": "ApprovalForAll" }, { "name": "ApprovalRevoked", "ty": "ApprovalRevoked" }, { "name": "Burn", "ty": "Burn" }, { "name": "MetadataUpdated", "ty": "MetadataUpdated" }, { "name": "Mint", "ty": "Mint" }, { "name": "RevokedForAll", "ty": "RevokedForAll" }, { "name": "Transfer", "ty": "Transfer" }, { "name": "VariablesSet", "ty": "VariablesSet" } ], "call": { "wasm_file_name": "TestCep78.wasm", "description": "Delegated. See `self.token.init()` for details.", "arguments": [ { "name": "odra_cfg_package_hash_key_name", "description": "The arg name for the package hash key name.", "ty": "String", "optional": false }, { "name": "odra_cfg_allow_key_override", "description": "The arg name for the allow key override.", "ty": "Bool", "optional": false }, { "name": "odra_cfg_is_upgradable", "description": "The arg name for the contract upgradeability setting.", "ty": "Bool", "optional": false }, { "name": "collection_name", "description": null, "ty": "String", "optional": false }, { "name": "collection_symbol", "description": null, "ty": "String", "optional": false }, { "name": "total_token_supply", "description": null, "ty": "U64", "optional": false }, { "name": "ownership_mode", "description": null, "ty": "OwnershipMode", "optional": false }, { "name": "nft_kind", "description": null, "ty": "NFTKind", "optional": false }, { "name": "identifier_mode", "description": null, "ty": "NFTIdentifierMode", "optional": false }, { "name": "nft_metadata_kind", "description": null, "ty": "NFTMetadataKind", "optional": false }, { "name": "metadata_mutability", "description": null, "ty": "MetadataMutability", "optional": false }, { "name": "receipt_name", "description": null, "ty": "String", "optional": false }, { "name": "allow_minting", "description": null, "ty": "Bool", "optional": true }, { "name": "minting_mode", "description": null, "ty": "MintingMode", "optional": true }, { "name": "holder_mode", "description": null, "ty": "NFTHolderMode", "optional": true }, { "name": "whitelist_mode", "description": null, "ty": "WhitelistMode", "optional": true }, { "name": "acl_whitelist", "description": null, "ty": { "List": "Key" }, "optional": true }, { "name": "json_schema", "description": null, "ty": "String", "optional": true }, { "name": "burn_mode", "description": null, "ty": "BurnMode", "optional": true }, { "name": "operator_burn_mode", "description": null, "ty": "Bool", "optional": true }, { "name": "owner_reverse_lookup_mode", "description": null, "ty": "OwnerReverseLookupMode", "optional": true }, { "name": "events_mode", "description": null, "ty": "EventsMode", "optional": true }, { "name": "transfer_filter_contract_contract", "description": null, "ty": "Key", "optional": true }, { "name": "additional_required_metadata", "description": null, "ty": { "List": "NFTMetadataKind" }, "optional": true }, { "name": "optional_metadata", "description": null, "ty": { "List": "NFTMetadataKind" }, "optional": true } ] } }