import { AbiItem } from 'web3-utils'; export const approveFuncSelector = '0x095ea7b3'; export const transferFuncSelector = '0xaa7415f5'; export const bep20Abi: AbiItem[] = [ { type: 'constructor', stateMutability: 'nonpayable', payable: false, inputs: [], }, { type: 'event', name: 'Approval', inputs: [ { type: 'address', name: 'owner', internalType: 'address', indexed: true, }, { type: 'address', name: 'spender', internalType: 'address', indexed: true, }, { type: 'uint256', name: 'value', internalType: 'uint256', indexed: false, }, ], anonymous: false, }, { type: 'event', name: 'OwnershipTransferred', inputs: [ { type: 'address', name: 'previousOwner', internalType: 'address', indexed: true, }, { type: 'address', name: 'newOwner', internalType: 'address', indexed: true, }, ], anonymous: false, }, { type: 'event', name: 'Transfer', inputs: [ { type: 'address', name: 'from', internalType: 'address', indexed: true, }, { type: 'address', name: 'to', internalType: 'address', indexed: true, }, { type: 'uint256', name: 'value', internalType: 'uint256', indexed: false, }, ], anonymous: false, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'uint8', name: '', internalType: 'uint8' }], name: '_decimals', inputs: [], constant: true, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'string', name: '', internalType: 'string' }], name: '_name', inputs: [], constant: true, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'string', name: '', internalType: 'string' }], name: '_symbol', inputs: [], constant: true, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'uint256', name: '', internalType: 'uint256' }], name: 'allowance', inputs: [ { type: 'address', name: 'owner', internalType: 'address' }, { type: 'address', name: 'spender', internalType: 'address' }, ], constant: true, }, { type: 'function', stateMutability: 'nonpayable', payable: false, outputs: [{ type: 'bool', name: '', internalType: 'bool' }], name: 'approve', inputs: [ { type: 'address', name: 'spender', internalType: 'address' }, { type: 'uint256', name: 'amount', internalType: 'uint256' }, ], constant: false, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'uint256', name: '', internalType: 'uint256' }], name: 'balanceOf', inputs: [{ type: 'address', name: 'account', internalType: 'address' }], constant: true, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'uint256', name: '', internalType: 'uint256' }], name: 'decimals', inputs: [], constant: true, }, { type: 'function', stateMutability: 'nonpayable', payable: false, outputs: [{ type: 'bool', name: '', internalType: 'bool' }], name: 'decreaseAllowance', inputs: [ { type: 'address', name: 'spender', internalType: 'address' }, { type: 'uint256', name: 'subtractedValue', internalType: 'uint256', }, ], constant: false, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'address', name: '', internalType: 'address' }], name: 'getOwner', inputs: [], constant: true, }, { type: 'function', stateMutability: 'nonpayable', payable: false, outputs: [{ type: 'bool', name: '', internalType: 'bool' }], name: 'increaseAllowance', inputs: [ { type: 'address', name: 'spender', internalType: 'address' }, { type: 'uint256', name: 'addedValue', internalType: 'uint256' }, ], constant: false, }, { type: 'function', stateMutability: 'nonpayable', payable: false, outputs: [{ type: 'bool', name: '', internalType: 'bool' }], name: 'mint', inputs: [{ type: 'uint256', name: 'amount', internalType: 'uint256' }], constant: false, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'address', name: '', internalType: 'address' }], name: 'owner', inputs: [], constant: true, }, { type: 'function', stateMutability: 'nonpayable', payable: false, outputs: [], name: 'renounceOwnership', inputs: [], constant: false, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'string', name: '', internalType: 'string' }], name: 'symbol', inputs: [], constant: true, }, { type: 'function', stateMutability: 'view', payable: false, outputs: [{ type: 'uint256', name: '', internalType: 'uint256' }], name: 'totalSupply', inputs: [], constant: true, }, { type: 'function', stateMutability: 'nonpayable', payable: false, outputs: [{ type: 'bool', name: '', internalType: 'bool' }], name: 'transfer', inputs: [ { type: 'address', name: 'recipient', internalType: 'address' }, { type: 'uint256', name: 'amount', internalType: 'uint256' }, ], constant: false, }, { type: 'function', stateMutability: 'nonpayable', payable: false, outputs: [{ type: 'bool', name: '', internalType: 'bool' }], name: 'transferFrom', inputs: [ { type: 'address', name: 'sender', internalType: 'address' }, { type: 'address', name: 'recipient', internalType: 'address' }, { type: 'uint256', name: 'amount', internalType: 'uint256' }, ], constant: false, }, { type: 'function', stateMutability: 'nonpayable', payable: false, outputs: [], name: 'transferOwnership', inputs: [{ type: 'address', name: 'newOwner', internalType: 'address' }], constant: false, }, ];