Skip to Content

@cfxdevkit/contracts


@cfxdevkit/contracts / erc1155Abi

Variable: erc1155Abi

const erc1155Abi: readonly [{ inputs: readonly [{ name: "id"; type: "uint256"; }]; name: "uri"; outputs: readonly [{ name: ""; type: "string"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ name: "account"; type: "address"; }, { name: "id"; type: "uint256"; }]; name: "balanceOf"; outputs: readonly [{ name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ name: "accounts"; type: "address[]"; }, { name: "ids"; type: "uint256[]"; }]; name: "balanceOfBatch"; outputs: readonly [{ name: ""; type: "uint256[]"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ name: "account"; type: "address"; }, { name: "operator"; type: "address"; }]; name: "isApprovedForAll"; outputs: readonly [{ name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ name: "interfaceId"; type: "bytes4"; }]; name: "supportsInterface"; outputs: readonly [{ name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ name: "operator"; type: "address"; }, { name: "approved"; type: "bool"; }]; name: "setApprovalForAll"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ name: "from"; type: "address"; }, { name: "to"; type: "address"; }, { name: "id"; type: "uint256"; }, { name: "amount"; type: "uint256"; }, { name: "data"; type: "bytes"; }]; name: "safeTransferFrom"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ name: "from"; type: "address"; }, { name: "to"; type: "address"; }, { name: "ids"; type: "uint256[]"; }, { name: "amounts"; type: "uint256[]"; }, { name: "data"; type: "bytes"; }]; name: "safeBatchTransferFrom"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { anonymous: false; inputs: readonly [{ indexed: true; name: "operator"; type: "address"; }, { indexed: true; name: "from"; type: "address"; }, { indexed: true; name: "to"; type: "address"; }, { indexed: false; name: "id"; type: "uint256"; }, { indexed: false; name: "value"; type: "uint256"; }]; name: "TransferSingle"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; name: "operator"; type: "address"; }, { indexed: true; name: "from"; type: "address"; }, { indexed: true; name: "to"; type: "address"; }, { indexed: false; name: "ids"; type: "uint256[]"; }, { indexed: false; name: "values"; type: "uint256[]"; }]; name: "TransferBatch"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; name: "account"; type: "address"; }, { indexed: true; name: "operator"; type: "address"; }, { indexed: false; name: "approved"; type: "bool"; }]; name: "ApprovalForAll"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: false; name: "value"; type: "string"; }, { indexed: true; name: "id"; type: "uint256"; }]; name: "URI"; type: "event"; }]

Defined in: standard-abis.ts:674