abi constant
Minimal abi interface of ERC1155
Implementation
static const abi = [
'function balanceOf(address,uint) view returns (uint)',
'function balanceOfBatch(address[],uint[]) view returns (uint[])',
'function uri(uint) view returns (string)',
'function isApprovedForAll(address owner, address spender) view returns (bool)',
'function setApprovedForAll(address spender, bool approved)',
'function safeTransferFrom(address, address, uint, uint, bytes)',
'function safeBatchTransferFrom(address, address, uint[], uint[], bytes)',
'function totalSupply(uint256 id) view returns (uint256)',
'function exists(uint256 id) view returns (bool)',
'function burn(address account, uint256 id, uint256 value)',
'function burnBatch(address account, uint256[] ids, uint256[] values)',
'event ApprovalForAll(address indexed account, address indexed operator, bool approved)',
'event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)',
'event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)',
];