/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { UniqueFungible, UniqueFungibleInterface, } from "../UniqueFungible"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address", }, { indexed: true, internalType: "address", name: "spender", type: "address", }, { indexed: false, internalType: "uint256", name: "value", type: "uint256", }, ], name: "Approval", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "from", type: "address", }, { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: false, internalType: "uint256", name: "value", 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: [ { internalType: "address", name: "owner", type: "address", }, { internalType: "address", name: "spender", type: "address", }, ], name: "allowance", 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", }, { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "spender", type: "tuple", }, ], name: "allowanceCross", 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: "user", type: "tuple", }, ], name: "allowlistedCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "spender", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "approve", 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: "spender", type: "tuple", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "approveCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], 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: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "from", type: "tuple", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "burnFromCross", 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: "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: [], name: "decimals", outputs: [ { internalType: "uint8", name: "", type: "uint8", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string[]", name: "keys", type: "string[]", }, ], name: "deleteCollectionProperties", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "description", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "hasCollectionPendingSponsor", 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", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "mint", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], internalType: "struct AmountForAddress[]", name: "amounts", type: "tuple[]", }, ], name: "mintBulk", 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", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "mintCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "name", outputs: [ { internalType: "string", name: "", type: "string", }, ], 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: "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: "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: [], name: "totalSupply", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "transfer", 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", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "transferCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "transferFrom", 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: "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: "amount", type: "uint256", }, ], name: "transferFromCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "uniqueCollectionType", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, ] as const; export class UniqueFungible__factory { static readonly abi = _abi; static createInterface(): UniqueFungibleInterface { return new Interface(_abi) as UniqueFungibleInterface; } static connect( address: string, runner?: ContractRunner | null ): UniqueFungible { return new Contract(address, _abi, runner) as unknown as UniqueFungible; } }