UNPKG

js-conflux-sdk

Version:
25 lines (22 loc) 980 B
const CRC20_ABI = [ 'function name() view returns (string)', 'function symbol() view returns (string)', 'function decimals() view returns (uint8)', 'function totalSupply() view returns (uint256)', 'function balanceOf(address) view returns (uint256)', 'function transfer(address to, uint256 amount)', 'function allowance(address owner, address spender) view returns (uint256)', 'function approve(address spender, uint256 amount) returns (bool)', 'function transferFrom(address sender, address recipient, uint256 amount) returns (bool)', 'function increaseAllowance(address spender, uint256 amount) returns (bool)', 'function decreaseAllowance(address spender, uint256 amount) returns (bool)', 'event Transfer(address indexed from, address indexed to, uint256 amount)', 'event Approval(address indexed owner, address indexed spender, uint256 amount)', ]; const ERROR_ABI = [ 'function Error(string)', ]; module.exports = { CRC20_ABI, ERROR_ABI, };