UNPKG

@lifi/rpc-wrapper

Version:
47 lines (46 loc) 1.63 kB
export const ERC20Abi = [ // Read-Only Functions 'function name() public view returns (string)', 'function balanceOf(address owner) view returns (uint256)', 'function decimals() view returns (uint8)', 'function totalSupply() public view returns (uint256)', 'function symbol() view returns (string)', 'function allowance(address _owner, address _spender) public view returns (uint256 remaining)', // Authenticated Functions 'function transfer(address to, uint amount) returns (boolean)', 'function mint(address account, uint256 amount)', 'function approve(address _spender, uint256 _value) public returns (bool success)', 'function transferFrom(address _from, address _to, uint256 _value) public returns (bool success)', ]; export const MulticallAbi = [ { constant: true, inputs: [ { components: [ { name: 'target', type: 'address' }, { name: 'callData', type: 'bytes' }, ], name: 'calls', type: 'tuple[]', }, ], name: 'aggregate', outputs: [ { name: 'blockNumber', type: 'uint256' }, { name: 'returnData', type: 'bytes[]' }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [{ name: 'addr', type: 'address' }], name: 'getEthBalance', outputs: [{ name: 'balance', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, ];