/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { UniqueRefungible, UniqueRefungibleInterface, } from "../UniqueRefungible"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address", }, { indexed: true, internalType: "address", name: "approved", type: "address", }, { indexed: true, internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "Approval", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address", }, { indexed: true, internalType: "address", name: "operator", type: "address", }, { indexed: false, internalType: "bool", name: "approved", type: "bool", }, ], name: "ApprovalForAll", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "TokenChanged", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "from", type: "address", }, { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: true, internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "Transfer", type: "event", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "newAdmin", type: "tuple", }, ], name: "addCollectionAdminCross", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "user", type: "tuple", }, ], name: "addToCollectionAllowListCross", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "user", type: "tuple", }, ], name: "allowlistedCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "approved", type: "address", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "approve", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, ], name: "balanceOf", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "owner", type: "tuple", }, ], name: "balanceOfCross", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "burn", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "from", type: "tuple", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "burnFromCross", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "newOwner", type: "tuple", }, ], name: "changeCollectionOwnerCross", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "collectionAdmins", outputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "collectionHelperAddress", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "collectionLimits", outputs: [ { components: [ { internalType: "enum CollectionLimitField", name: "field", type: "uint8", }, { components: [ { internalType: "bool", name: "status", type: "bool", }, { internalType: "uint256", name: "value", type: "uint256", }, ], internalType: "struct OptionUint256", name: "value", type: "tuple", }, ], internalType: "struct CollectionLimit[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "collectionNesting", outputs: [ { components: [ { internalType: "bool", name: "token_owner", type: "bool", }, { internalType: "bool", name: "collection_admin", type: "bool", }, { internalType: "address[]", name: "restricted", type: "address[]", }, ], internalType: "struct CollectionNestingAndPermission", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "collectionOwner", outputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string[]", name: "keys", type: "string[]", }, ], name: "collectionProperties", outputs: [ { components: [ { internalType: "string", name: "key", type: "string", }, { internalType: "bytes", name: "value", type: "bytes", }, ], internalType: "struct Property[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string", name: "key", type: "string", }, ], name: "collectionProperty", outputs: [ { internalType: "bytes", name: "", type: "bytes", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "collectionSponsor", outputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "confirmCollectionSponsorship", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "contractAddress", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string[]", name: "keys", type: "string[]", }, ], name: "deleteCollectionProperties", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, { internalType: "string[]", name: "keys", type: "string[]", }, ], name: "deleteProperties", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "description", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "getApproved", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "hasCollectionPendingSponsor", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, { internalType: "address", name: "operator", type: "address", }, ], name: "isApprovedForAll", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "user", type: "tuple", }, ], name: "isOwnerOrAdminCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, ], name: "mint", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { components: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "owner", type: "tuple", }, { internalType: "uint128", name: "pieces", type: "uint128", }, ], internalType: "struct OwnerPieces[]", name: "owners", type: "tuple[]", }, { components: [ { internalType: "string", name: "key", type: "string", }, { internalType: "bytes", name: "value", type: "bytes", }, ], internalType: "struct Property[]", name: "properties", type: "tuple[]", }, ], internalType: "struct MintTokenData[]", name: "tokenProperties", type: "tuple[]", }, ], name: "mintBulkCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "to", type: "tuple", }, { components: [ { internalType: "string", name: "key", type: "string", }, { internalType: "bytes", name: "value", type: "bytes", }, ], internalType: "struct Property[]", name: "properties", type: "tuple[]", }, ], name: "mintCross", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, { internalType: "string", name: "tokenUri", type: "string", }, ], name: "mintWithTokenURI", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "name", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "nextTokenId", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "ownerOf", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "ownerOfCross", outputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, { internalType: "string[]", name: "keys", type: "string[]", }, ], name: "properties", outputs: [ { components: [ { internalType: "string", name: "key", type: "string", }, { internalType: "bytes", name: "value", type: "bytes", }, ], internalType: "struct Property[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, { internalType: "string", name: "key", type: "string", }, ], name: "property", outputs: [ { internalType: "bytes", name: "", type: "bytes", }, ], stateMutability: "view", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "admin", type: "tuple", }, ], name: "removeCollectionAdminCross", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "removeCollectionSponsor", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "user", type: "tuple", }, ], name: "removeFromCollectionAllowListCross", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "safeTransferFrom", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "safeTransferFrom", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "operator", type: "address", }, { internalType: "bool", name: "approved", type: "bool", }, ], name: "setApprovalForAll", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "enum AccessMode", name: "mode", type: "uint8", }, ], name: "setCollectionAccess", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "enum CollectionLimitField", name: "field", type: "uint8", }, { components: [ { internalType: "bool", name: "status", type: "bool", }, { internalType: "uint256", name: "value", type: "uint256", }, ], internalType: "struct OptionUint256", name: "value", type: "tuple", }, ], internalType: "struct CollectionLimit", name: "limit", type: "tuple", }, ], name: "setCollectionLimit", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bool", name: "mode", type: "bool", }, ], name: "setCollectionMintMode", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "bool", name: "token_owner", type: "bool", }, { internalType: "bool", name: "collection_admin", type: "bool", }, { internalType: "address[]", name: "restricted", type: "address[]", }, ], internalType: "struct CollectionNestingAndPermission", name: "collectionNestingAndPermissions", type: "tuple", }, ], name: "setCollectionNesting", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "string", name: "key", type: "string", }, { internalType: "bytes", name: "value", type: "bytes", }, ], internalType: "struct Property[]", name: "properties", type: "tuple[]", }, ], name: "setCollectionProperties", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "sponsor", type: "tuple", }, ], name: "setCollectionSponsorCross", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, { components: [ { internalType: "string", name: "key", type: "string", }, { internalType: "bytes", name: "value", type: "bytes", }, ], internalType: "struct Property[]", name: "properties", type: "tuple[]", }, ], name: "setProperties", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "string", name: "key", type: "string", }, { components: [ { internalType: "enum TokenPermissionField", name: "code", type: "uint8", }, { internalType: "bool", name: "value", type: "bool", }, ], internalType: "struct PropertyPermission[]", name: "permissions", type: "tuple[]", }, ], internalType: "struct TokenPropertyPermission[]", name: "permissions", type: "tuple[]", }, ], name: "setTokenPropertyPermissions", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes4", name: "interfaceID", type: "bytes4", }, ], name: "supportsInterface", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "symbol", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "index", type: "uint256", }, ], name: "tokenByIndex", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "token", type: "uint256", }, ], name: "tokenContractAddress", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, { internalType: "uint256", name: "index", type: "uint256", }, ], name: "tokenOfOwnerByIndex", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "tokenPropertyPermissions", outputs: [ { components: [ { internalType: "string", name: "key", type: "string", }, { components: [ { internalType: "enum TokenPermissionField", name: "code", type: "uint8", }, { internalType: "bool", name: "value", type: "bool", }, ], internalType: "struct PropertyPermission[]", name: "permissions", type: "tuple[]", }, ], internalType: "struct TokenPropertyPermission[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "tokenURI", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "totalSupply", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "transfer", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "to", type: "tuple", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "transferCross", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "transferFrom", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "from", type: "tuple", }, { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "to", type: "tuple", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "transferFromCross", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "uniqueCollectionType", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, ] as const; export class UniqueRefungible__factory { static readonly abi = _abi; static createInterface(): UniqueRefungibleInterface { return new Interface(_abi) as UniqueRefungibleInterface; } static connect( address: string, runner?: ContractRunner | null ): UniqueRefungible { return new Contract(address, _abi, runner) as unknown as UniqueRefungible; } }