Skip to Content

@cfxdevkit/contracts


@cfxdevkit/contracts / erc1155BaseAbi

Variable: erc1155BaseAbi

const erc1155BaseAbi: readonly [{ inputs: readonly [{ internalType: "string"; name: "name_"; type: "string"; }, { internalType: "string"; name: "symbol_"; type: "string"; }, { internalType: "string"; name: "uri_"; type: "string"; }, { 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: "address"; name: "sender"; type: "address"; }, { internalType: "uint256"; name: "balance"; type: "uint256"; }, { internalType: "uint256"; name: "needed"; type: "uint256"; }, { internalType: "uint256"; name: "tokenId"; type: "uint256"; }]; name: "ERC1155InsufficientBalance"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "approver"; type: "address"; }]; name: "ERC1155InvalidApprover"; type: "error"; }, { inputs: readonly [{ internalType: "uint256"; name: "idsLength"; type: "uint256"; }, { internalType: "uint256"; name: "valuesLength"; type: "uint256"; }]; name: "ERC1155InvalidArrayLength"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "operator"; type: "address"; }]; name: "ERC1155InvalidOperator"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "receiver"; type: "address"; }]; name: "ERC1155InvalidReceiver"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "sender"; type: "address"; }]; name: "ERC1155InvalidSender"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "operator"; type: "address"; }, { internalType: "address"; name: "owner"; type: "address"; }]; name: "ERC1155MissingApprovalForAll"; 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: "EnforcedPause"; type: "error"; }, { inputs: readonly []; name: "ExpectedPause"; type: "error"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "address"; name: "account"; 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: "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: "operator"; type: "address"; }, { indexed: true; internalType: "address"; name: "from"; type: "address"; }, { indexed: true; internalType: "address"; name: "to"; type: "address"; }, { indexed: false; internalType: "uint256[]"; name: "ids"; type: "uint256[]"; }, { indexed: false; internalType: "uint256[]"; name: "values"; type: "uint256[]"; }]; name: "TransferBatch"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "address"; name: "operator"; type: "address"; }, { indexed: true; internalType: "address"; name: "from"; type: "address"; }, { indexed: true; internalType: "address"; name: "to"; type: "address"; }, { indexed: false; internalType: "uint256"; name: "id"; type: "uint256"; }, { indexed: false; internalType: "uint256"; name: "value"; type: "uint256"; }]; name: "TransferSingle"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: false; internalType: "string"; name: "value"; type: "string"; }, { indexed: true; internalType: "uint256"; name: "id"; type: "uint256"; }]; name: "URI"; 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: "account"; type: "address"; }, { internalType: "uint256"; name: "id"; type: "uint256"; }]; name: "balanceOf"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address[]"; name: "accounts"; type: "address[]"; }, { internalType: "uint256[]"; name: "ids"; type: "uint256[]"; }]; name: "balanceOfBatch"; outputs: readonly [{ internalType: "uint256[]"; name: ""; type: "uint256[]"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "account"; type: "address"; }, { internalType: "uint256"; name: "id"; type: "uint256"; }, { internalType: "uint256"; name: "value"; type: "uint256"; }]; name: "burn"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "account"; type: "address"; }, { internalType: "uint256[]"; name: "ids"; type: "uint256[]"; }, { internalType: "uint256[]"; name: "values"; type: "uint256[]"; }]; name: "burnBatch"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "id"; type: "uint256"; }]; name: "exists"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; 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: "account"; type: "address"; }, { internalType: "address"; name: "operator"; type: "address"; }]; name: "isApprovedForAll"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; name: "maxSupply"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "to"; type: "address"; }, { internalType: "uint256"; name: "id"; type: "uint256"; }, { internalType: "uint256"; name: "amount"; type: "uint256"; }, { internalType: "bytes"; name: "data"; type: "bytes"; }]; name: "mint"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "to"; type: "address"; }, { internalType: "uint256[]"; name: "ids"; type: "uint256[]"; }, { internalType: "uint256[]"; name: "amounts"; type: "uint256[]"; }, { internalType: "bytes"; name: "data"; type: "bytes"; }]; name: "mintBatch"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "name"; outputs: readonly [{ internalType: "string"; name: ""; type: "string"; }]; 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: "from"; type: "address"; }, { internalType: "address"; name: "to"; type: "address"; }, { internalType: "uint256[]"; name: "ids"; type: "uint256[]"; }, { internalType: "uint256[]"; name: "values"; type: "uint256[]"; }, { internalType: "bytes"; name: "data"; type: "bytes"; }]; name: "safeBatchTransferFrom"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "from"; type: "address"; }, { internalType: "address"; name: "to"; type: "address"; }, { internalType: "uint256"; name: "id"; type: "uint256"; }, { internalType: "uint256"; name: "value"; 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: "id"; type: "uint256"; }, { internalType: "uint256"; name: "cap"; type: "uint256"; }]; name: "setMaxSupply"; 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: "string"; name: "newUri"; type: "string"; }]; name: "setURI"; 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 []; name: "totalSupply"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "id"; type: "uint256"; }]; name: "totalSupply"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "unpause"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; name: "uri"; outputs: readonly [{ internalType: "string"; name: ""; type: "string"; }]; stateMutability: "view"; type: "function"; }]

Defined in: generated.ts:623