UNPKG

mev-inspect

Version:

A JS port of 'mev-inspect-py' optimised for ease of use.

847 lines 26.9 kB
const abi = [ { inputs: [ { internalType: 'contract ITokenGovernance', name: 'initBNTGovernance', type: 'address', }, { internalType: 'contract ITokenGovernance', name: 'initVBNTGovernance', type: 'address', }, { internalType: 'contract INetworkSettings', name: 'initNetworkSettings', type: 'address', }, { internalType: 'contract IMasterVault', name: 'initMasterVault', type: 'address', }, { internalType: 'contract IExternalProtectionVault', name: 'initExternalProtectionVault', type: 'address', }, { internalType: 'contract IPoolToken', name: 'initBNTPoolToken', type: 'address', }, ], stateMutability: 'nonpayable', type: 'constructor', }, { inputs: [], name: 'AccessDenied', type: 'error' }, { inputs: [], name: 'AlreadyExists', type: 'error' }, { inputs: [], name: 'AlreadyInitialized', type: 'error' }, { inputs: [], name: 'DeadlineExpired', type: 'error' }, { inputs: [], name: 'DoesNotExist', type: 'error' }, { inputs: [], name: 'InsufficientFlashLoanReturn', type: 'error' }, { inputs: [], name: 'InvalidAddress', type: 'error' }, { inputs: [], name: 'InvalidPool', type: 'error' }, { inputs: [], name: 'InvalidToken', type: 'error' }, { inputs: [], name: 'NativeTokenAmountMismatch', type: 'error' }, { inputs: [], name: 'NotEmpty', type: 'error' }, { inputs: [], name: 'NotWhitelisted', type: 'error' }, { inputs: [], name: 'Overflow', type: 'error' }, { inputs: [], name: 'PermitUnsupported', type: 'error' }, { inputs: [], name: 'ZeroValue', type: 'error' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'contract Token', name: 'token', type: 'address', }, { indexed: true, internalType: 'address', name: 'borrower', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'feeAmount', type: 'uint256', }, ], name: 'FlashLoanCompleted', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'contextId', type: 'bytes32', }, { indexed: true, internalType: 'contract Token', name: 'token', type: 'address', }, { indexed: true, internalType: 'address', name: 'provider', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'availableAmount', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'originalAmount', type: 'uint256', }, ], name: 'FundsMigrated', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'caller', type: 'address', }, { indexed: true, internalType: 'address', name: 'recipient', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, ], name: 'NetworkFeesWithdrawn', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'address', name: 'account', type: 'address', }, ], name: 'Paused', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'contract Token', name: 'pool', type: 'address', }, { indexed: true, internalType: 'contract IPoolCollection', name: 'poolCollection', type: 'address', }, ], name: 'PoolAdded', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'uint16', name: 'poolType', type: 'uint16', }, { indexed: true, internalType: 'contract IPoolCollection', name: 'poolCollection', type: 'address', }, ], name: 'PoolCollectionAdded', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'uint16', name: 'poolType', type: 'uint16', }, { indexed: true, internalType: 'contract IPoolCollection', name: 'poolCollection', type: 'address', }, ], name: 'PoolCollectionRemoved', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'contract Token', name: 'pool', type: 'address', }, { indexed: true, internalType: 'contract IPoolCollection', name: 'poolCollection', type: 'address', }, ], name: 'PoolCreated', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'contract Token', name: 'pool', type: 'address', }, { indexed: true, internalType: 'contract IPoolCollection', name: 'poolCollection', type: 'address', }, ], name: 'PoolRemoved', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' }, { indexed: true, internalType: 'bytes32', name: 'previousAdminRole', type: 'bytes32', }, { indexed: true, internalType: 'bytes32', name: 'newAdminRole', type: 'bytes32', }, ], name: 'RoleAdminChanged', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' }, { indexed: true, internalType: 'address', name: 'account', type: 'address', }, { indexed: true, internalType: 'address', name: 'sender', type: 'address', }, ], name: 'RoleGranted', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' }, { indexed: true, internalType: 'address', name: 'account', type: 'address', }, { indexed: true, internalType: 'address', name: 'sender', type: 'address', }, ], name: 'RoleRevoked', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'contextId', type: 'bytes32', }, { indexed: true, internalType: 'contract Token', name: 'sourceToken', type: 'address', }, { indexed: true, internalType: 'contract Token', name: 'targetToken', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'sourceAmount', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'targetAmount', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'bntAmount', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'targetFeeAmount', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'bntFeeAmount', type: 'uint256', }, { indexed: false, internalType: 'address', name: 'trader', type: 'address', }, ], name: 'TokensTraded', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'address', name: 'account', type: 'address', }, ], name: 'Unpaused', type: 'event', }, { inputs: [], name: 'DEFAULT_ADMIN_ROLE', outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], stateMutability: 'view', type: 'function', }, { inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }], name: 'cancelWithdrawal', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [{ internalType: 'contract Token', name: 'pool', type: 'address' }], name: 'collectionByPool', outputs: [ { internalType: 'contract IPoolCollection', name: '', type: 'address' }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'contract Token[]', name: 'tokens', type: 'address[]' }, { internalType: 'contract IPoolCollection', name: 'poolCollection', type: 'address', }, ], name: 'createPools', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'contract Token', name: 'pool', type: 'address' }, { internalType: 'uint256', name: 'tokenAmount', type: 'uint256' }, ], name: 'deposit', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'payable', type: 'function', }, { inputs: [ { internalType: 'address', name: 'provider', type: 'address' }, { internalType: 'contract Token', name: 'pool', type: 'address' }, { internalType: 'uint256', name: 'tokenAmount', type: 'uint256' }, ], name: 'depositFor', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'payable', type: 'function', }, { inputs: [ { internalType: 'address', name: 'provider', type: 'address' }, { internalType: 'contract Token', name: 'pool', type: 'address' }, { internalType: 'uint256', name: 'tokenAmount', type: 'uint256' }, { internalType: 'uint256', name: 'deadline', type: 'uint256' }, { internalType: 'uint8', name: 'v', type: 'uint8' }, { internalType: 'bytes32', name: 'r', type: 'bytes32' }, { internalType: 'bytes32', name: 's', type: 'bytes32' }, ], name: 'depositForPermitted', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'contract Token', name: 'pool', type: 'address' }, { internalType: 'uint256', name: 'tokenAmount', type: 'uint256' }, { internalType: 'uint256', name: 'deadline', type: 'uint256' }, { internalType: 'uint8', name: 'v', type: 'uint8' }, { internalType: 'bytes32', name: 'r', type: 'bytes32' }, { internalType: 'bytes32', name: 's', type: 'bytes32' }, ], name: 'depositPermitted', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'contract Token', name: 'token', type: 'address' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }, { internalType: 'contract IFlashLoanRecipient', name: 'recipient', type: 'address', }, { internalType: 'bytes', name: 'data', type: 'bytes' }, ], name: 'flashLoan', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }], name: 'getRoleAdmin', outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'uint256', name: 'index', type: 'uint256' }, ], name: 'getRoleMember', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }], name: 'getRoleMemberCount', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'address', name: 'account', type: 'address' }, ], name: 'grantRole', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'address', name: 'account', type: 'address' }, ], name: 'hasRole', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'contract IPoolToken', name: 'poolToken', type: 'address', }, { internalType: 'uint256', name: 'poolTokenAmount', type: 'uint256' }, ], name: 'initWithdrawal', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'contract IPoolToken', name: 'poolToken', type: 'address', }, { internalType: 'uint256', name: 'poolTokenAmount', type: 'uint256' }, { internalType: 'uint256', name: 'deadline', type: 'uint256' }, { internalType: 'uint8', name: 'v', type: 'uint8' }, { internalType: 'bytes32', name: 'r', type: 'bytes32' }, { internalType: 'bytes32', name: 's', type: 'bytes32' }, ], name: 'initWithdrawalPermitted', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'contract IBNTPool', name: 'initBNTPool', type: 'address', }, { internalType: 'contract IPendingWithdrawals', name: 'initPendingWithdrawals', type: 'address', }, { internalType: 'contract IPoolMigrator', name: 'initPoolMigrator', type: 'address', }, ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'liquidityPools', outputs: [ { internalType: 'contract Token[]', name: '', type: 'address[]' }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'contract Token', name: 'token', type: 'address' }, { internalType: 'address', name: 'provider', type: 'address' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }, { internalType: 'uint256', name: 'availableAmount', type: 'uint256' }, { internalType: 'uint256', name: 'originalAmount', type: 'uint256' }, ], name: 'migrateLiquidity', outputs: [], stateMutability: 'payable', type: 'function', }, { inputs: [ { internalType: 'contract Token[]', name: 'pools', type: 'address[]' }, { internalType: 'contract IPoolCollection', name: 'newPoolCollection', type: 'address', }, ], name: 'migratePools', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'pause', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'paused', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'pendingNetworkFeeAmount', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'poolCollections', outputs: [ { internalType: 'contract IPoolCollection[]', name: '', type: 'address[]', }, ], stateMutability: 'view', type: 'function', }, { inputs: [{ internalType: 'bytes', name: 'data', type: 'bytes' }], name: 'postUpgrade', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'contract IPoolCollection', name: 'newPoolCollection', type: 'address', }, ], name: 'registerPoolCollection', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'address', name: 'account', type: 'address' }, ], name: 'renounceRole', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'resume', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'address', name: 'account', type: 'address' }, ], name: 'revokeRole', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'roleAdmin', outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], stateMutability: 'pure', type: 'function', }, { inputs: [], name: 'roleEmergencyStopper', outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], stateMutability: 'pure', type: 'function', }, { inputs: [], name: 'roleMigrationManager', outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], stateMutability: 'pure', type: 'function', }, { inputs: [], name: 'roleNetworkFeeManager', outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], stateMutability: 'pure', type: 'function', }, { inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }], name: 'supportsInterface', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'contract Token', name: 'sourceToken', type: 'address' }, { internalType: 'contract Token', name: 'targetToken', type: 'address' }, { internalType: 'uint256', name: 'sourceAmount', type: 'uint256' }, { internalType: 'uint256', name: 'minReturnAmount', type: 'uint256' }, { internalType: 'uint256', name: 'deadline', type: 'uint256' }, { internalType: 'address', name: 'beneficiary', type: 'address' }, ], name: 'tradeBySourceAmount', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'payable', type: 'function', }, { inputs: [ { internalType: 'contract Token', name: 'sourceToken', type: 'address' }, { internalType: 'contract Token', name: 'targetToken', type: 'address' }, { internalType: 'uint256', name: 'sourceAmount', type: 'uint256' }, { internalType: 'uint256', name: 'minReturnAmount', type: 'uint256' }, { internalType: 'uint256', name: 'deadline', type: 'uint256' }, { internalType: 'address', name: 'beneficiary', type: 'address' }, { internalType: 'uint8', name: 'v', type: 'uint8' }, { internalType: 'bytes32', name: 'r', type: 'bytes32' }, { internalType: 'bytes32', name: 's', type: 'bytes32' }, ], name: 'tradeBySourceAmountPermitted', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'contract Token', name: 'sourceToken', type: 'address' }, { internalType: 'contract Token', name: 'targetToken', type: 'address' }, { internalType: 'uint256', name: 'targetAmount', type: 'uint256' }, { internalType: 'uint256', name: 'maxSourceAmount', type: 'uint256' }, { internalType: 'uint256', name: 'deadline', type: 'uint256' }, { internalType: 'address', name: 'beneficiary', type: 'address' }, ], name: 'tradeByTargetAmount', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'payable', type: 'function', }, { inputs: [ { internalType: 'contract Token', name: 'sourceToken', type: 'address' }, { internalType: 'contract Token', name: 'targetToken', type: 'address' }, { internalType: 'uint256', name: 'targetAmount', type: 'uint256' }, { internalType: 'uint256', name: 'maxSourceAmount', type: 'uint256' }, { internalType: 'uint256', name: 'deadline', type: 'uint256' }, { internalType: 'address', name: 'beneficiary', type: 'address' }, { internalType: 'uint8', name: 'v', type: 'uint8' }, { internalType: 'bytes32', name: 'r', type: 'bytes32' }, { internalType: 'bytes32', name: 's', type: 'bytes32' }, ], name: 'tradeByTargetAmountPermitted', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'contract IPoolCollection', name: 'poolCollection', type: 'address', }, ], name: 'unregisterPoolCollection', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'version', outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], stateMutability: 'pure', type: 'function', }, { inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }], name: 'withdraw', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [{ internalType: 'address', name: 'recipient', type: 'address' }], name: 'withdrawNetworkFees', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { stateMutability: 'payable', type: 'receive' }, ]; export default abi; //# sourceMappingURL=bancorV3.js.map