UNPKG

web3.db-fileconnector

Version:

GraphQL System Built on web3 technologies. Web3.DB is an open database built on top of web3 technologies. It is a decentralized, open-source database that allows users to store and query data in a secure and efficient manner. The system is designed to be

44 lines (33 loc) 1.44 kB
export const erc20_abi = [ // Read-Only Functions "function balanceOf(address owner) view returns (uint256)", "function decimals() view returns (uint8)", "function symbol() view returns (string)", // Authenticated Functions "function transfer(address to, uint amount) returns (bool)", /** Will check if contract is an ERC721 or ERC1155 */ "function supportsInterface(bytes4 interfaceId) view returns (bool)", // Events "event Transfer(address indexed from, address indexed to, uint amount)", ]; export const erc721_abi = [ // Read-Only Functions "function balanceOf(address owner) view returns (uint256)", "function decimals() view returns (uint8)", "function symbol() view returns (string)", // Authenticated Functions "function transfer(address to, uint amount) returns (bool)", /** Will check if contract is an ERC721 or ERC1155 */ "function supportsInterface(bytes4 interfaceId) view returns (bool)", // Events "event Transfer(address indexed from, address indexed to, uint amount)", ]; export const erc1155_abi = [ // Read-Only Functions "function balanceOf(address owner, uint256 id) view returns (uint256)", "function symbol() view returns (string)", // Authenticated Functions "function transfer(address to, uint amount) returns (bool)", // Events "event Transfer(address indexed from, address indexed to, uint amount)", ];