Skip to Content

@cfxdevkit/contracts


@cfxdevkit/contracts / erc721BaseAbi

Variable: erc721BaseAbi

const erc721BaseAbi: readonly [{ inputs: readonly [{ internalType: "string"; name: "name_"; type: "string"; }, { internalType: "string"; name: "symbol_"; type: "string"; }, { internalType: "uint256"; name: "maxSupply_"; type: "uint256"; }, { internalType: "address"; name: "royaltyReceiver"; type: "address"; }, { internalType: "uint96"; name: "royaltyFeeNumer"; type: "uint96"; }, { internalType: "address"; name: "admin"; type: "address"; }]; stateMutability: "nonpayable"; type: "constructor"; }, { inputs: readonly []; name: "AccessControlBadConfirmation"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "account"; type: "address"; }, { internalType: "bytes32"; name: "neededRole"; type: "bytes32"; }]; name: "AccessControlUnauthorizedAccount"; type: "error"; }, { inputs: readonly [{ internalType: "uint256"; name: "numerator"; type: "uint256"; }, { internalType: "uint256"; name: "denominator"; type: "uint256"; }]; name: "ERC2981InvalidDefaultRoyalty"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "receiver"; type: "address"; }]; name: "ERC2981InvalidDefaultRoyaltyReceiver"; type: "error"; }, { inputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }, { internalType: "uint256"; name: "numerator"; type: "uint256"; }, { internalType: "uint256"; name: "denominator"; type: "uint256"; }]; name: "ERC2981InvalidTokenRoyalty"; type: "error"; }, { inputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }, { internalType: "address"; name: "receiver"; type: "address"; }]; name: "ERC2981InvalidTokenRoyaltyReceiver"; type: "error"; }, { inputs: readonly []; name: "ERC721EnumerableForbiddenBatchMint"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "sender"; type: "address"; }, { internalType: "uint256"; name: "tokenId"; type: "uint256"; }, { internalType: "address"; name: "owner"; type: "address"; }]; name: "ERC721IncorrectOwner"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "operator"; type: "address"; }, { internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "ERC721InsufficientApproval"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "approver"; type: "address"; }]; name: "ERC721InvalidApprover"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "operator"; type: "address"; }]; name: "ERC721InvalidOperator"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "owner"; type: "address"; }]; name: "ERC721InvalidOwner"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "receiver"; type: "address"; }]; name: "ERC721InvalidReceiver"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "sender"; type: "address"; }]; name: "ERC721InvalidSender"; type: "error"; }, { inputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "ERC721NonexistentToken"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "owner"; type: "address"; }, { internalType: "uint256"; name: "index"; type: "uint256"; }]; name: "ERC721OutOfBoundsIndex"; type: "error"; }, { inputs: readonly []; name: "EnforcedPause"; type: "error"; }, { inputs: readonly []; name: "ExpectedPause"; type: "error"; }, { anonymous: false; inputs: readonly [{ 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: readonly [{ 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: readonly [{ indexed: false; internalType: "uint256"; name: "_fromTokenId"; type: "uint256"; }, { indexed: false; internalType: "uint256"; name: "_toTokenId"; type: "uint256"; }]; name: "BatchMetadataUpdate"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: false; internalType: "uint256"; name: "_tokenId"; type: "uint256"; }]; name: "MetadataUpdate"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: false; internalType: "address"; name: "account"; type: "address"; }]; name: "Paused"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "bytes32"; name: "role"; type: "bytes32"; }, { indexed: true; internalType: "bytes32"; name: "previousAdminRole"; type: "bytes32"; }, { indexed: true; internalType: "bytes32"; name: "newAdminRole"; type: "bytes32"; }]; name: "RoleAdminChanged"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "bytes32"; name: "role"; type: "bytes32"; }, { indexed: true; internalType: "address"; name: "account"; type: "address"; }, { indexed: true; internalType: "address"; name: "sender"; type: "address"; }]; name: "RoleGranted"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "bytes32"; name: "role"; type: "bytes32"; }, { indexed: true; internalType: "address"; name: "account"; type: "address"; }, { indexed: true; internalType: "address"; name: "sender"; type: "address"; }]; name: "RoleRevoked"; type: "event"; }, { anonymous: false; inputs: readonly [{ 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"; }, { anonymous: false; inputs: readonly [{ indexed: false; internalType: "address"; name: "account"; type: "address"; }]; name: "Unpaused"; type: "event"; }, { inputs: readonly []; name: "DEFAULT_ADMIN_ROLE"; outputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "MINTER_ROLE"; outputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "PAUSER_ROLE"; outputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "to"; type: "address"; }, { internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "approve"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "owner"; type: "address"; }]; name: "balanceOf"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "burn"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "getApproved"; outputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "role"; type: "bytes32"; }]; name: "getRoleAdmin"; outputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "role"; type: "bytes32"; }, { internalType: "address"; name: "account"; type: "address"; }]; name: "grantRole"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "role"; type: "bytes32"; }, { internalType: "address"; name: "account"; type: "address"; }]; name: "hasRole"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "owner"; type: "address"; }, { internalType: "address"; name: "operator"; type: "address"; }]; name: "isApprovedForAll"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "maxSupply"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "name"; outputs: readonly [{ internalType: "string"; name: ""; type: "string"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "ownerOf"; outputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "pause"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "paused"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "role"; type: "bytes32"; }, { internalType: "address"; name: "callerConfirmation"; type: "address"; }]; name: "renounceRole"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "role"; type: "bytes32"; }, { internalType: "address"; name: "account"; type: "address"; }]; name: "revokeRole"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }, { internalType: "uint256"; name: "salePrice"; type: "uint256"; }]; name: "royaltyInfo"; outputs: readonly [{ internalType: "address"; name: "receiver"; type: "address"; }, { internalType: "uint256"; name: "amount"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "to"; type: "address"; }, { internalType: "string"; name: "uri_"; type: "string"; }]; name: "safeMint"; outputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "from"; type: "address"; }, { internalType: "address"; name: "to"; type: "address"; }, { internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "safeTransferFrom"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ 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: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "operator"; type: "address"; }, { internalType: "bool"; name: "approved"; type: "bool"; }]; name: "setApprovalForAll"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "receiver"; type: "address"; }, { internalType: "uint96"; name: "feeNumerator"; type: "uint96"; }]; name: "setDefaultRoyalty"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }, { internalType: "address"; name: "receiver"; type: "address"; }, { internalType: "uint96"; name: "feeNumerator"; type: "uint96"; }]; name: "setTokenRoyalty"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes4"; name: "interfaceId"; type: "bytes4"; }]; name: "supportsInterface"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "symbol"; outputs: readonly [{ internalType: "string"; name: ""; type: "string"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "index"; type: "uint256"; }]; name: "tokenByIndex"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "owner"; type: "address"; }, { internalType: "uint256"; name: "index"; type: "uint256"; }]; name: "tokenOfOwnerByIndex"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "tokenURI"; outputs: readonly [{ internalType: "string"; name: ""; type: "string"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "totalSupply"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "from"; type: "address"; }, { internalType: "address"; name: "to"; type: "address"; }, { internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "transferFrom"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "unpause"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }]

Defined in: generated.ts:1693