import { AbiItem } from "web3-utils" ; export const ethErc20WrapperContract = "0xc0829421C1d260BD3cB3E0F06cfE2D52db2cE315" ; export const ethReserveAddress = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" ; export const ABIContractRegistry = [ { constant : true , inputs : [ ] , name : "BANCOR_CONVERTER_UPGRADER" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "BNT_TOKEN" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_contractName" , type : "bytes32" } ] , name : "getAddress" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "CONTRACT_REGISTRY" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_contractName" , type : "bytes32" } ] , name : "unregisterAddress" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "" , type : "uint256" } ] , name : "contractNames" , outputs : [ { name : "" , type : "string" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "BANCOR_CONVERTER_FACTORY" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "BNT_CONVERTER" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_contractName" , type : "bytes32" } , { name : "_contractAddress" , type : "address" } ] , name : "registerAddress" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "itemCount" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "BANCOR_FORMULA" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "CONTRACT_FEATURES" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "owner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "BANCOR_NETWORK" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "BANCOR_GAS_PRICE_LIMIT" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_contractName" , type : "bytes32" } ] , name : "addressOf" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "BANCOR_X" , outputs : [ { name : "" , type : "bytes32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "newOwner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , name : "_contractName" , type : "bytes32" } , { indexed : false , name : "_contractAddress" , type : "address" } ] , name : "AddressUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_prevOwner" , type : "address" } , { indexed : true , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } ] ; export const ABIMultiCallContract = [ { constant : false , inputs : [ { components : [ { internalType : "address" , name : "target" , type : "address" } , { internalType : "bytes" , name : "callData" , type : "bytes" } ] , internalType : "struct Multicall.Call[]" , name : "calls" , type : "tuple[]" } , { internalType : "bool" , name : "strict" , type : "bool" } ] , name : "aggregate" , outputs : [ { internalType : "uint256" , name : "blockNumber" , type : "uint256" } , { components : [ { internalType : "bool" , name : "success" , type : "bool" } , { internalType : "bytes" , name : "data" , type : "bytes" } ] , internalType : "struct Multicall.Return[]" , name : "returnData" , type : "tuple[]" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } ] ; export const ABILiquidityProtection = [ { inputs : [ { internalType : "address[8]" , name : "_contractAddresses" , type : "address[8]" } ] , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_prevOwner" , type : "address" } , { indexed : true , internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } , { inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "acceptStoreOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "acceptWalletOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "_poolAnchor" , type : "address" } , { internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "addLiquidity" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "payable" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } , { internalType : "contract IConverterAnchor" , name : "_poolAnchor" , type : "address" } , { internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "addLiquidityFor" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "payable" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "_poolAnchor" , type : "address" } ] , name : "baseTokenAvailableSpace" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_startIndex" , type : "uint256" } , { internalType : "uint256" , name : "_endIndex" , type : "uint256" } ] , name : "claimBalance" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "govToken" , outputs : [ { internalType : "contract IERC20Token" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "govTokenGovernance" , outputs : [ { internalType : "contract ITokenGovernance" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "lastRemoveCheckpointStore" , outputs : [ { internalType : "contract ICheckpointStore" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "networkToken" , outputs : [ { internalType : "contract IERC20Token" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "_poolAnchor" , type : "address" } ] , name : "networkTokenAvailableSpace" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "networkTokenGovernance" , outputs : [ { internalType : "contract ITokenGovernance" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "newOwner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "owner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "_poolAnchor" , type : "address" } ] , name : "poolAvailableSpace" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "_poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } , { internalType : "uint256" , name : "_reserveAmount" , type : "uint256" } , { internalType : "uint256" , name : "_poolRateN" , type : "uint256" } , { internalType : "uint256" , name : "_poolRateD" , type : "uint256" } , { internalType : "uint256" , name : "_reserveRateN" , type : "uint256" } , { internalType : "uint256" , name : "_reserveRateD" , type : "uint256" } ] , name : "poolROI" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } , { internalType : "uint32" , name : "_portion" , type : "uint32" } ] , name : "removeLiquidity" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } , { internalType : "uint32" , name : "_portion" , type : "uint32" } , { internalType : "uint256" , name : "_removeTimestamp" , type : "uint256" } ] , name : "removeLiquidityReturn" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "settings" , outputs : [ { internalType : "contract ILiquidityProtectionSettings" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "stats" , outputs : [ { internalType : "contract ILiquidityProtectionStats" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "store" , outputs : [ { internalType : "contract ILiquidityProtectionStore" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "systemStore" , outputs : [ { internalType : "contract ILiquidityProtectionSystemStore" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferStoreOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferWalletOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "wallet" , outputs : [ { internalType : "contract ITokenHolder" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } ] ; export const ABILiquidityProtectionSettings = [ { inputs : [ { internalType : "contract IERC20Token" , name : "token" , type : "address" } , { internalType : "contract IContractRegistry" , name : "registry" , type : "address" } ] , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { indexed : true , internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } , { indexed : false , internalType : "bool" , name : "disabled" , type : "bool" } ] , name : "AddLiquidityDisabled" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint32" , name : "prevAverageRateMaxDeviation" , type : "uint32" } , { indexed : false , internalType : "uint32" , name : "newAverageRateMaxDeviation" , type : "uint32" } ] , name : "AverageRateMaxDeviationUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint256" , name : "prevDefault" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "newDefault" , type : "uint256" } ] , name : "DefaultNetworkTokenMintingLimitUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint256" , name : "prevLockDuration" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "newLockDuration" , type : "uint256" } ] , name : "LockDurationUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint256" , name : "prevMinNetworkCompensation" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "newMinNetworkCompensation" , type : "uint256" } ] , name : "MinNetworkCompensationUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint256" , name : "prevMin" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "newMin" , type : "uint256" } ] , name : "MinNetworkTokenLiquidityForMintingUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { indexed : false , internalType : "uint256" , name : "prevLimit" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "newLimit" , type : "uint256" } ] , name : "NetworkTokenMintingLimitUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_prevOwner" , type : "address" } , { indexed : true , internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { indexed : false , internalType : "bool" , name : "added" , type : "bool" } ] , name : "PoolWhitelistUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint256" , name : "prevMinProtectionDelay" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "newMinProtectionDelay" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "prevMaxProtectionDelay" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "newMaxProtectionDelay" , type : "uint256" } ] , name : "ProtectionDelaysUpdated" , 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 : "contract ILiquidityProtectionEventsSubscriber" , name : "subscriber" , type : "address" } , { indexed : false , internalType : "bool" , name : "added" , type : "bool" } ] , name : "SubscriberUpdated" , type : "event" } , { inputs : [ ] , name : "DEFAULT_ADMIN_ROLE" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "ROLE_OWNER" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } ] , name : "addLiquidityDisabled" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } ] , name : "addPoolToWhitelist" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract ILiquidityProtectionEventsSubscriber" , name : "subscriber" , type : "address" } ] , name : "addSubscriber" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "averageRateMaxDeviation" , outputs : [ { internalType : "uint32" , name : "" , type : "uint32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "defaultNetworkTokenMintingLimit" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } , { internalType : "bool" , name : "disable" , type : "bool" } ] , name : "disableAddLiquidity" , 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 IConverterAnchor" , name : "poolAnchor" , type : "address" } ] , name : "isPoolSupported" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } ] , name : "isPoolWhitelisted" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "lockDuration" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "maxProtectionDelay" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "minNetworkCompensation" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "minNetworkTokenLiquidityForMinting" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "minProtectionDelay" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "networkToken" , outputs : [ { internalType : "contract IERC20Token" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } ] , name : "networkTokenMintingLimits" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "newOwner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "onlyOwnerCanUpdateRegistry" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "owner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "poolWhitelist" , outputs : [ { internalType : "address[]" , name : "" , type : "address[]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "prevRegistry" , outputs : [ { internalType : "contract IContractRegistry" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "registry" , outputs : [ { internalType : "contract IContractRegistry" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } ] , name : "removePoolFromWhitelist" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract ILiquidityProtectionEventsSubscriber" , name : "subscriber" , type : "address" } ] , name : "removeSubscriber" , 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 : "restoreRegistry" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "bool" , name : "_onlyOwnerCanUpdateRegistry" , type : "bool" } ] , name : "restrictRegistryUpdate" , 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 : [ { internalType : "uint32" , name : "deviation" , type : "uint32" } ] , name : "setAverageRateMaxDeviation" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "amount" , type : "uint256" } ] , name : "setDefaultNetworkTokenMintingLimit" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "duration" , type : "uint256" } ] , name : "setLockDuration" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "amount" , type : "uint256" } ] , name : "setMinNetworkCompensation" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "amount" , type : "uint256" } ] , name : "setMinNetworkTokenLiquidityForMinting" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { internalType : "uint256" , name : "amount" , type : "uint256" } ] , name : "setNetworkTokenMintingLimit" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "minDelay" , type : "uint256" } , { internalType : "uint256" , name : "maxDelay" , type : "uint256" } ] , name : "setProtectionDelays" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "subscribers" , outputs : [ { internalType : "address[]" , name : "" , type : "address[]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "updateRegistry" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } ] ; export const ABIContainerContract = [ { constant : true , inputs : [ ] , name : "name" , outputs : [ { name : "" , type : "string" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "decimals" , outputs : [ { name : "" , type : "uint8" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "withdrawTokens" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "owner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "symbol" , outputs : [ { name : "" , type : "string" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "newOwner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { name : "_name" , type : "string" } , { name : "_symbol" , type : "string" } , { name : "_decimals" , type : "uint8" } ] , payable : false , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , name : "_prevOwner" , type : "address" } , { indexed : true , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } , { constant : true , inputs : [ ] , name : "poolTokens" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "createToken" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "mint" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_from" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "burn" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } ] ; export const ABIExchangeProxy = [ { inputs : [ { internalType : "address" , name : "zeroExAddress" , type : "address" } , { internalType : "contract IEtherTokenV06" , name : "weth" , type : "address" } , { internalType : "contract IStaking" , name : "staking" , type : "address" } , { internalType : "contract FeeCollectorController" , name : "feeCollectorController" , type : "address" } , { internalType : "uint32" , name : "protocolFeeMultiplier" , type : "uint32" } , { internalType : "bytes32" , name : "greedyTokensBloomFilter" , type : "bytes32" } ] , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : false , internalType : "bytes32" , name : "orderHash" , type : "bytes32" } , { indexed : false , internalType : "address" , name : "maker" , type : "address" } , { indexed : false , internalType : "address" , name : "taker" , type : "address" } , { indexed : false , internalType : "address" , name : "feeRecipient" , type : "address" } , { indexed : false , internalType : "address" , name : "makerToken" , type : "address" } , { indexed : false , internalType : "address" , name : "takerToken" , type : "address" } , { indexed : false , internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } , { indexed : false , internalType : "uint128" , name : "makerTokenFilledAmount" , type : "uint128" } , { indexed : false , internalType : "uint128" , name : "takerTokenFeeFilledAmount" , type : "uint128" } , { indexed : false , internalType : "uint256" , name : "protocolFeePaid" , type : "uint256" } , { indexed : false , internalType : "bytes32" , name : "pool" , type : "bytes32" } ] , name : "LimitOrderFilled" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "bytes32" , name : "orderHash" , type : "bytes32" } , { indexed : false , internalType : "address" , name : "maker" , type : "address" } ] , name : "OrderCancelled" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "address" , name : "maker" , type : "address" } , { indexed : false , internalType : "address" , name : "makerToken" , type : "address" } , { indexed : false , internalType : "address" , name : "takerToken" , type : "address" } , { indexed : false , internalType : "uint256" , name : "minValidSalt" , type : "uint256" } ] , name : "PairCancelledLimitOrders" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "address" , name : "maker" , type : "address" } , { indexed : false , internalType : "address" , name : "makerToken" , type : "address" } , { indexed : false , internalType : "address" , name : "takerToken" , type : "address" } , { indexed : false , internalType : "uint256" , name : "minValidSalt" , type : "uint256" } ] , name : "PairCancelledRfqOrders" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "bytes32" , name : "orderHash" , type : "bytes32" } , { indexed : false , internalType : "address" , name : "maker" , type : "address" } , { indexed : false , internalType : "address" , name : "taker" , type : "address" } , { indexed : false , internalType : "address" , name : "makerToken" , type : "address" } , { indexed : false , internalType : "address" , name : "takerToken" , type : "address" } , { indexed : false , internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } , { indexed : false , internalType : "uint128" , name : "makerTokenFilledAmount" , type : "uint128" } , { indexed : false , internalType : "bytes32" , name : "pool" , type : "bytes32" } ] , name : "RfqOrderFilled" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "address" , name : "origin" , type : "address" } , { indexed : false , internalType : "address[]" , name : "addrs" , type : "address[]" } , { indexed : false , internalType : "bool" , name : "allowed" , type : "bool" } ] , name : "RfqOrderOriginsAllowed" , type : "event" } , { inputs : [ ] , name : "EIP712_DOMAIN_SEPARATOR" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "FEATURE_NAME" , outputs : [ { internalType : "string" , name : "" , type : "string" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "FEATURE_VERSION" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "GREEDY_TOKENS_BLOOM_FILTER" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "PROTOCOL_FEE_MULTIPLIER" , outputs : [ { internalType : "uint32" , name : "" , type : "uint32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerTokenFeeAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } , { internalType : "address" , name : "feeRecipient" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.LimitOrder" , name : "order" , type : "tuple" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature" , name : "signature" , type : "tuple" } , { internalType : "uint128" , name : "takerTokenFillAmount" , type : "uint128" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } ] , name : "_fillLimitOrder" , outputs : [ { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } , { internalType : "uint128" , name : "makerTokenFilledAmount" , type : "uint128" } ] , stateMutability : "payable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "txOrigin" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.RfqOrder" , name : "order" , type : "tuple" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature" , name : "signature" , type : "tuple" } , { internalType : "uint128" , name : "takerTokenFillAmount" , type : "uint128" } , { internalType : "address" , name : "taker" , type : "address" } ] , name : "_fillRfqOrder" , outputs : [ { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } , { internalType : "uint128" , name : "makerTokenFilledAmount" , type : "uint128" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerTokenFeeAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } , { internalType : "address" , name : "feeRecipient" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.LimitOrder[]" , name : "orders" , type : "tuple[]" } ] , name : "batchCancelLimitOrders" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20TokenV06[]" , name : "makerTokens" , type : "address[]" } , { internalType : "contract IERC20TokenV06[]" , name : "takerTokens" , type : "address[]" } , { internalType : "uint256[]" , name : "minValidSalts" , type : "uint256[]" } ] , name : "batchCancelPairLimitOrders" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20TokenV06[]" , name : "makerTokens" , type : "address[]" } , { internalType : "contract IERC20TokenV06[]" , name : "takerTokens" , type : "address[]" } , { internalType : "uint256[]" , name : "minValidSalts" , type : "uint256[]" } ] , name : "batchCancelPairRfqOrders" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "txOrigin" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.RfqOrder[]" , name : "orders" , type : "tuple[]" } ] , name : "batchCancelRfqOrders" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerTokenFeeAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } , { internalType : "address" , name : "feeRecipient" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.LimitOrder[]" , name : "orders" , type : "tuple[]" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature[]" , name : "signatures" , type : "tuple[]" } ] , name : "batchGetLimitOrderRelevantStates" , outputs : [ { components : [ { internalType : "bytes32" , name : "orderHash" , type : "bytes32" } , { internalType : "enum LibNativeOrder.OrderStatus" , name : "status" , type : "uint8" } , { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } ] , internalType : "struct LibNativeOrder.OrderInfo[]" , name : "orderInfos" , type : "tuple[]" } , { internalType : "uint128[]" , name : "actualFillableTakerTokenAmounts" , type : "uint128[]" } , { internalType : "bool[]" , name : "isSignatureValids" , type : "bool[]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "txOrigin" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.RfqOrder[]" , name : "orders" , type : "tuple[]" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature[]" , name : "signatures" , type : "tuple[]" } ] , name : "batchGetRfqOrderRelevantStates" , outputs : [ { components : [ { internalType : "bytes32" , name : "orderHash" , type : "bytes32" } , { internalType : "enum LibNativeOrder.OrderStatus" , name : "status" , type : "uint8" } , { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } ] , internalType : "struct LibNativeOrder.OrderInfo[]" , name : "orderInfos" , type : "tuple[]" } , { internalType : "uint128[]" , name : "actualFillableTakerTokenAmounts" , type : "uint128[]" } , { internalType : "bool[]" , name : "isSignatureValids" , type : "bool[]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerTokenFeeAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } , { internalType : "address" , name : "feeRecipient" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.LimitOrder" , name : "order" , type : "tuple" } ] , name : "cancelLimitOrder" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint256" , name : "minValidSalt" , type : "uint256" } ] , name : "cancelPairLimitOrders" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint256" , name : "minValidSalt" , type : "uint256" } ] , name : "cancelPairRfqOrders" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "txOrigin" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.RfqOrder" , name : "order" , type : "tuple" } ] , name : "cancelRfqOrder" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerTokenFeeAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } , { internalType : "address" , name : "feeRecipient" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.LimitOrder" , name : "order" , type : "tuple" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature" , name : "signature" , type : "tuple" } , { internalType : "uint128" , name : "takerTokenFillAmount" , type : "uint128" } ] , name : "fillLimitOrder" , outputs : [ { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } , { internalType : "uint128" , name : "makerTokenFilledAmount" , type : "uint128" } ] , stateMutability : "payable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerTokenFeeAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } , { internalType : "address" , name : "feeRecipient" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.LimitOrder" , name : "order" , type : "tuple" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature" , name : "signature" , type : "tuple" } , { internalType : "uint128" , name : "takerTokenFillAmount" , type : "uint128" } ] , name : "fillOrKillLimitOrder" , outputs : [ { internalType : "uint128" , name : "makerTokenFilledAmount" , type : "uint128" } ] , stateMutability : "payable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "txOrigin" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.RfqOrder" , name : "order" , type : "tuple" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature" , name : "signature" , type : "tuple" } , { internalType : "uint128" , name : "takerTokenFillAmount" , type : "uint128" } ] , name : "fillOrKillRfqOrder" , outputs : [ { internalType : "uint128" , name : "makerTokenFilledAmount" , type : "uint128" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "txOrigin" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.RfqOrder" , name : "order" , type : "tuple" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature" , name : "signature" , type : "tuple" } , { internalType : "uint128" , name : "takerTokenFillAmount" , type : "uint128" } ] , name : "fillRfqOrder" , outputs : [ { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } , { internalType : "uint128" , name : "makerTokenFilledAmount" , type : "uint128" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerTokenFeeAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } , { internalType : "address" , name : "feeRecipient" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.LimitOrder" , name : "order" , type : "tuple" } ] , name : "getLimitOrderHash" , outputs : [ { internalType : "bytes32" , name : "orderHash" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerTokenFeeAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } , { internalType : "address" , name : "feeRecipient" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.LimitOrder" , name : "order" , type : "tuple" } ] , name : "getLimitOrderInfo" , outputs : [ { components : [ { internalType : "bytes32" , name : "orderHash" , type : "bytes32" } , { internalType : "enum LibNativeOrder.OrderStatus" , name : "status" , type : "uint8" } , { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } ] , internalType : "struct LibNativeOrder.OrderInfo" , name : "orderInfo" , type : "tuple" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerTokenFeeAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "sender" , type : "address" } , { internalType : "address" , name : "feeRecipient" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.LimitOrder" , name : "order" , type : "tuple" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature" , name : "signature" , type : "tuple" } ] , name : "getLimitOrderRelevantState" , outputs : [ { components : [ { internalType : "bytes32" , name : "orderHash" , type : "bytes32" } , { internalType : "enum LibNativeOrder.OrderStatus" , name : "status" , type : "uint8" } , { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } ] , internalType : "struct LibNativeOrder.OrderInfo" , name : "orderInfo" , type : "tuple" } , { internalType : "uint128" , name : "actualFillableTakerTokenAmount" , type : "uint128" } , { internalType : "bool" , name : "isSignatureValid" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "getProtocolFeeMultiplier" , outputs : [ { internalType : "uint32" , name : "multiplier" , type : "uint32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "txOrigin" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.RfqOrder" , name : "order" , type : "tuple" } ] , name : "getRfqOrderHash" , outputs : [ { internalType : "bytes32" , name : "orderHash" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "txOrigin" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.RfqOrder" , name : "order" , type : "tuple" } ] , name : "getRfqOrderInfo" , outputs : [ { components : [ { internalType : "bytes32" , name : "orderHash" , type : "bytes32" } , { internalType : "enum LibNativeOrder.OrderStatus" , name : "status" , type : "uint8" } , { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } ] , internalType : "struct LibNativeOrder.OrderInfo" , name : "orderInfo" , type : "tuple" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { components : [ { internalType : "contract IERC20TokenV06" , name : "makerToken" , type : "address" } , { internalType : "contract IERC20TokenV06" , name : "takerToken" , type : "address" } , { internalType : "uint128" , name : "makerAmount" , type : "uint128" } , { internalType : "uint128" , name : "takerAmount" , type : "uint128" } , { internalType : "address" , name : "maker" , type : "address" } , { internalType : "address" , name : "taker" , type : "address" } , { internalType : "address" , name : "txOrigin" , type : "address" } , { internalType : "bytes32" , name : "pool" , type : "bytes32" } , { internalType : "uint64" , name : "expiry" , type : "uint64" } , { internalType : "uint256" , name : "salt" , type : "uint256" } ] , internalType : "struct LibNativeOrder.RfqOrder" , name : "order" , type : "tuple" } , { components : [ { internalType : "enum LibSignature.SignatureType" , name : "signatureType" , type : "uint8" } , { internalType : "uint8" , name : "v" , type : "uint8" } , { internalType : "bytes32" , name : "r" , type : "bytes32" } , { internalType : "bytes32" , name : "s" , type : "bytes32" } ] , internalType : "struct LibSignature.Signature" , name : "signature" , type : "tuple" } ] , name : "getRfqOrderRelevantState" , outputs : [ { components : [ { internalType : "bytes32" , name : "orderHash" , type : "bytes32" } , { internalType : "enum LibNativeOrder.OrderStatus" , name : "status" , type : "uint8" } , { internalType : "uint128" , name : "takerTokenFilledAmount" , type : "uint128" } ] , internalType : "struct LibNativeOrder.OrderInfo" , name : "orderInfo" , type : "tuple" } , { internalType : "uint128" , name : "actualFillableTakerTokenAmount" , type : "uint128" } , { internalType : "bool" , name : "isSignatureValid" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "migrate" , outputs : [ { internalType : "bytes4" , name : "success" , type : "bytes4" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address[]" , name : "origins" , type : "address[]" } , { internalType : "bool" , name : "allowed" , type : "bool" } ] , name : "registerAllowedRfqOrigins" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "bytes32[]" , name : "poolIds" , type : "bytes32[]" } ] , name : "transferProtocolFeesForPools" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } ] ; export const ABISmartToken = [ { constant : true , inputs : [ ] , name : "name" , outputs : [ { name : "" , type : "string" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_spender" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "approve" , outputs : [ { name : "success" , type : "bool" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_disable" , type : "bool" } ] , name : "disableTransfers" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "totalSupply" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_from" , type : "address" } , { name : "_to" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "transferFrom" , outputs : [ { name : "success" , type : "bool" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "decimals" , outputs : [ { name : "" , type : "uint8" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "version" , outputs : [ { name : "" , type : "string" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "withdrawTokens" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "" , type : "address" } ] , name : "balanceOf" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "issue" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "owner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "symbol" , outputs : [ { name : "" , type : "string" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_from" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "destroy" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_to" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "transfer" , outputs : [ { name : "success" , type : "bool" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "transfersEnabled" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "newOwner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "" , type : "address" } , { name : "" , type : "address" } ] , name : "allowance" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { name : "_name" , type : "string" } , { name : "_symbol" , type : "string" } , { name : "_decimals" , type : "uint8" } ] , payable : false , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : false , name : "_token" , type : "address" } ] , name : "NewSmartToken" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , name : "_amount" , type : "uint256" } ] , name : "Issuance" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , name : "_amount" , type : "uint256" } ] , name : "Destruction" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_from" , type : "address" } , { indexed : true , name : "_to" , type : "address" } , { indexed : false , name : "_value" , type : "uint256" } ] , name : "Transfer" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_owner" , type : "address" } , { indexed : true , name : "_spender" , type : "address" } , { indexed : false , name : "_value" , type : "uint256" } ] , name : "Approval" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_prevOwner" , type : "address" } , { indexed : true , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } ] ; export const ABIWethToken = [ ... ABISmartToken , { constant : false , inputs : [ ] , name : "deposit" , outputs : [ ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : false , inputs : [ { name : "_wad" , type : "uint256" } ] , name : "withdraw" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } ] ; export const ABIConverterRegistry = [ { constant : false , inputs : [ { name : "_onlyOwnerCanUpdateRegistry" , type : "bool" } ] , name : "restrictRegistryUpdate" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "getSmartTokens" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_convertibleToken" , type : "address" } ] , name : "getConvertibleTokenAnchors" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_type" , type : "uint16" } , { name : "_reserveTokens" , type : "address[]" } , { name : "_reserveWeights" , type : "uint32[]" } ] , name : "getLiquidityPoolByConfig" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_smartTokens" , type : "address[]" } ] , name : "getConvertersBySmartTokens" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "onlyOwnerCanUpdateRegistry" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_value" , type : "address" } ] , name : "isConvertibleToken" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_value" , type : "address" } ] , name : "isSmartToken" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_convertibleToken" , type : "address" } ] , name : "getConvertibleTokenAnchorCount" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "updateRegistry" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_index" , type : "uint256" } ] , name : "getAnchor" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_type" , type : "uint16" } , { name : "_name" , type : "string" } , { name : "_symbol" , type : "string" } , { name : "_decimals" , type : "uint8" } , { name : "_maxConversionFee" , type : "uint32" } , { name : "_reserveTokens" , type : "address[]" } , { name : "_reserveWeights" , type : "uint32[]" } ] , name : "newConverter" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "getConvertibleTokens" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_convertibleToken" , type : "address" } , { name : "_index" , type : "uint256" } ] , name : "getConvertibleTokenAnchor" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_anchors" , type : "address[]" } ] , name : "getConvertersByAnchors" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "prevRegistry" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "getConvertibleTokenCount" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_converter" , type : "address" } ] , name : "addConverter" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_convertibleToken" , type : "address" } , { name : "_value" , type : "address" } ] , name : "isConvertibleTokenSmartToken" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "getLiquidityPoolCount" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "registry" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "getLiquidityPools" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_index" , type : "uint256" } ] , name : "getConvertibleToken" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "owner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_converter" , type : "address" } ] , name : "isSimilarLiquidityPoolRegistered" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_converter" , type : "address" } ] , name : "isConverterValid" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_converter" , type : "address" } ] , name : "removeConverter" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_index" , type : "uint256" } ] , name : "getSmartToken" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_convertibleToken" , type : "address" } ] , name : "getConvertibleTokenSmartTokenCount" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_index" , type : "uint256" } ] , name : "getLiquidityPool" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "restoreRegistry" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_convertibleToken" , type : "address" } , { name : "_value" , type : "address" } ] , name : "isConvertibleTokenAnchor" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_reserveTokens" , type : "address[]" } , { name : "_reserveWeights" , type : "uint32[]" } ] , name : "getLiquidityPoolByReserveConfig" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "safeTransfer" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "getAnchorCount" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "newOwner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_convertibleToken" , type : "address" } , { name : "_index" , type : "uint256" } ] , name : "getConvertibleTokenSmartToken" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_value" , type : "address" } ] , name : "isAnchor" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_from" , type : "address" } , { name : "_to" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "safeTransferFrom" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "getSmartTokenCount" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_value" , type : "address" } ] , name : "isLiquidityPool" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_spender" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "safeApprove" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "getAnchors" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_convertibleToken" , type : "address" } ] , name : "getConvertibleTokenSmartTokens" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { inputs : [ { name : "_registry" , type : "address" } ] , payable : false , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , name : "_anchor" , type : "address" } ] , name : "ConverterAnchorAdded" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_anchor" , type : "address" } ] , name : "ConverterAnchorRemoved" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_liquidityPool" , type : "address" } ] , name : "LiquidityPoolAdded" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_liquidityPool" , type : "address" } ] , name : "LiquidityPoolRemoved" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_convertibleToken" , type : "address" } , { indexed : true , name : "_smartToken" , type : "address" } ] , name : "ConvertibleTokenAdded" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_convertibleToken" , type : "address" } , { indexed : true , name : "_smartToken" , type : "address" } ] , name : "ConvertibleTokenRemoved" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_smartToken" , type : "address" } ] , name : "SmartTokenAdded" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_smartToken" , type : "address" } ] , name : "SmartTokenRemoved" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_prevOwner" , type : "address" } , { indexed : true , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } ] ; export const V2PoolsTokenContainer = [ { constant : true , inputs : [ ] , name : "name" , outputs : [ { name : "" , type : "string" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "decimals" , outputs : [ { name : "" , type : "uint8" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "withdrawTokens" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "owner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "symbol" , outputs : [ { name : "" , type : "string" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "newOwner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { name : "_name" , type : "string" } , { name : "_symbol" , type : "string" } , { name : "_decimals" , type : "uint8" } ] , payable : false , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , name : "_prevOwner" , type : "address" } , { indexed : true , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } , { constant : true , inputs : [ ] , name : "poolTokens" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "createToken" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "mint" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_from" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "burn" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } ] ; export const ABIConverterV28 = [ { inputs : [ { internalType : "contract IDSToken" , name : "_token" , type : "address" } , { internalType : "contract IContractRegistry" , name : "_registry" , type : "address" } , { internalType : "uint32" , name : "_maxConversionFee" , type : "uint32" } ] , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , internalType : "uint16" , name : "_type" , type : "uint16" } , { indexed : true , internalType : "contract IConverterAnchor" , name : "_anchor" , type : "address" } , { indexed : true , internalType : "bool" , name : "_activated" , type : "bool" } ] , name : "Activation" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "contract IERC20Token" , name : "_fromToken" , type : "address" } , { indexed : true , internalType : "contract IERC20Token" , name : "_toToken" , type : "address" } , { indexed : true , internalType : "address" , name : "_trader" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_amount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_return" , type : "uint256" } , { indexed : false , internalType : "int256" , name : "_conversionFee" , type : "int256" } ] , name : "Conversion" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint32" , name : "_prevFee" , type : "uint32" } , { indexed : false , internalType : "uint32" , name : "_newFee" , type : "uint32" } ] , name : "ConversionFeeUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_provider" , type : "address" } , { indexed : true , internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_amount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_newBalance" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_newSupply" , type : "uint256" } ] , name : "LiquidityAdded" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_provider" , type : "address" } , { indexed : true , internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_amount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_newBalance" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_newSupply" , type : "uint256" } ] , name : "LiquidityRemoved" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_prevOwner" , type : "address" } , { indexed : true , internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "contract IERC20Token" , name : "_token1" , type : "address" } , { indexed : true , internalType : "contract IERC20Token" , name : "_token2" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_rateN" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_rateD" , type : "uint256" } ] , name : "TokenRateUpdate" , type : "event" } , { inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "acceptTokenOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "anchor" , outputs : [ { internalType : "contract IConverterAnchor" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "connectorTokenCount" , outputs : [ { internalType : "uint16" , name : "" , type : "uint16" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_index" , type : "uint256" } ] , name : "connectorTokens" , outputs : [ { internalType : "contract IERC20Token" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_address" , type : "address" } ] , name : "connectors" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint32" , name : "" , type : "uint32" } , { internalType : "bool" , name : "" , type : "bool" } , { internalType : "bool" , name : "" , type : "bool" } , { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "conversionFee" , outputs : [ { internalType : "uint32" , name : "" , type : "uint32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "conversionWhitelist" , outputs : [ { internalType : "contract IWhitelist" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_sourceToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "_targetToken" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } , { internalType : "address" , name : "_trader" , type : "address" } , { internalType : "address payable" , name : "_beneficiary" , type : "address" } ] , name : "convert" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "payable" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_connectorToken" , type : "address" } ] , name : "getConnectorBalance" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_sourceToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "_targetToken" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "getReturn" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "isActive" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "isStandardPool" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "isV28OrHigher" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "pure" , type : "function" } , { inputs : [ ] , name : "maxConversionFee" , outputs : [ { internalType : "uint32" , name : "" , type : "uint32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "newOwner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "onlyOwnerCanUpdateRegistry" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "owner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "prevAverageRate" , outputs : [ { internalType : "uint256" , name : "n" , type : "uint256" } , { internalType : "uint256" , name : "d" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "prevAverageRateUpdateTime" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "prevRegistry" , outputs : [ { internalType : "contract IContractRegistry" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "registry" , outputs : [ { internalType : "contract IContractRegistry" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } ] , name : "reserveBalance" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "reserveRatio" , outputs : [ { internalType : "uint32" , name : "" , type : "uint32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "reserveTokenCount" , outputs : [ { internalType : "uint16" , name : "" , type : "uint16" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , name : "reserveTokens" , outputs : [ { internalType : "contract IERC20Token" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } ] , name : "reserveWeight" , outputs : [ { internalType : "uint32" , name : "" , type : "uint32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "" , type : "address" } ] , name : "reserves" , outputs : [ { internalType : "uint256" , name : "balance" , type : "uint256" } , { internalType : "uint32" , name : "weight" , type : "uint32" } , { internalType : "bool" , name : "deprecated1" , type : "bool" } , { internalType : "bool" , name : "deprecated2" , type : "bool" } , { internalType : "bool" , name : "isSet" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "restoreRegistry" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "bool" , name : "_onlyOwnerCanUpdateRegistry" , type : "bool" } ] , name : "restrictRegistryUpdate" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint32" , name : "_conversionFee" , type : "uint32" } ] , name : "setConversionFee" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IWhitelist" , name : "_whitelist" , type : "address" } ] , name : "setConversionWhitelist" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "token" , outputs : [ { internalType : "contract IConverterAnchor" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferAnchorOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferTokenOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "updateRegistry" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "upgrade" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "version" , outputs : [ { internalType : "uint16" , name : "" , type : "uint16" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address payable" , name : "_to" , type : "address" } ] , name : "withdrawETH" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_token" , type : "address" } , { internalType : "address" , name : "_to" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "withdrawTokens" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "converterType" , outputs : [ { internalType : "uint16" , name : "" , type : "uint16" } ] , stateMutability : "pure" , type : "function" } , { inputs : [ ] , name : "acceptAnchorOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_token" , type : "address" } , { internalType : "uint32" , name : "_weight" , type : "uint32" } ] , name : "addReserve" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_sourceToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "_targetToken" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "targetAmountAndFee" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_token" , type : "address" } ] , name : "recentAverageRate" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token[]" , name : "_reserveTokens" , type : "address[]" } , { internalType : "uint256[]" , name : "_reserveAmounts" , type : "uint256[]" } , { internalType : "uint256" , name : "_minReturn" , type : "uint256" } ] , name : "addLiquidity" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "payable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_amount" , type : "uint256" } , { internalType : "contract IERC20Token[]" , name : "_reserveTokens" , type : "address[]" } , { internalType : "uint256[]" , name : "_reserveMinReturnAmounts" , type : "uint256[]" } ] , name : "removeLiquidity" , outputs : [ { internalType : "uint256[]" , name : "" , type : "uint256[]" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "fund" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "payable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "liquidate" , outputs : [ { internalType : "uint256[]" , name : "" , type : "uint256[]" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token[]" , name : "_reserveTokens" , type : "address[]" } , { internalType : "uint256" , name : "_reserveTokenIndex" , type : "uint256" } , { internalType : "uint256" , name : "_reserveAmount" , type : "uint256" } ] , name : "addLiquidityCost" , outputs : [ { internalType : "uint256[]" , name : "" , type : "uint256[]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } , { internalType : "uint256" , name : "_reserveAmount" , type : "uint256" } ] , name : "addLiquidityReturn" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_amount" , type : "uint256" } , { internalType : "contract IERC20Token[]" , name : "_reserveTokens" , type : "address[]" } ] , name : "removeLiquidityReturn" , outputs : [ { internalType : "uint256[]" , name : "" , type : "uint256[]" } ] , stateMutability : "view" , type : "function" } ] ; export const ABIConverter = [ { constant : false , inputs : [ { name : "_onlyOwnerCanUpdateRegistry" , type : "bool" } ] , name : "restrictRegistryUpdate" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "reserveRatio" , outputs : [ { name : "" , type : "uint32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_address" , type : "address" } ] , name : "connectors" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint32" } , { name : "" , type : "bool" } , { name : "" , type : "bool" } , { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "hasETHReserve" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_index" , type : "uint256" } ] , name : "connectorTokens" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_reserveToken" , type : "address" } ] , name : "reserveWeight" , outputs : [ { name : "" , type : "uint32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_sourceToken" , type : "address" } , { name : "_targetToken" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "getReturn" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferTokenOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "isActive" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "onlyOwnerCanUpdateRegistry" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptTokenOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "withdrawFromAnchor" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "converterType" , outputs : [ { name : "" , type : "uint16" } ] , payable : false , stateMutability : "pure" , type : "function" } , { constant : false , inputs : [ { name : "_amount" , type : "uint256" } ] , name : "liquidate" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_sourceToken" , type : "address" } , { name : "_targetToken" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "rateAndFee" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "updateRegistry" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_whitelist" , type : "address" } ] , name : "setConversionWhitelist" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "version" , outputs : [ { name : "" , type : "uint16" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "conversionFee" , outputs : [ { name : "" , type : "uint32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "withdrawTokens" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "prevRegistry" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferAnchorOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_to" , type : "address" } ] , name : "withdrawETH" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_weight" , type : "uint32" } ] , name : "addReserve" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_x" , type : "uint256" } ] , name : "decimalLength" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "pure" , type : "function" } , { constant : true , inputs : [ ] , name : "connectorTokenCount" , outputs : [ { name : "" , type : "uint16" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "registry" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_reserveTokens" , type : "address[]" } , { name : "_reserveAmounts" , type : "uint256[]" } , { name : "_minReturn" , type : "uint256" } ] , name : "addLiquidity" , outputs : [ ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : true , inputs : [ ] , name : "owner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "maxConversionFee" , outputs : [ { name : "" , type : "uint32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "reserveTokenCount" , outputs : [ { name : "" , type : "uint16" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_values" , type : "uint256[]" } ] , name : "geometricMean" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "pure" , type : "function" } , { constant : false , inputs : [ { name : "_amount" , type : "uint256" } , { name : "_reserveTokens" , type : "address[]" } , { name : "_reserveMinReturnAmounts" , type : "uint256[]" } ] , name : "removeLiquidity" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ ] , name : "restoreRegistry" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_n" , type : "uint256" } , { name : "_d" , type : "uint256" } ] , name : "roundDiv" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "pure" , type : "function" } , { constant : true , inputs : [ ] , name : "conversionsEnabled" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "conversionWhitelist" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_amount" , type : "uint256" } ] , name : "fund" , outputs : [ ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptAnchorOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "" , type : "uint256" } ] , name : "reserveTokens" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "safeTransfer" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "isV28OrHigher" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "pure" , type : "function" } , { constant : true , inputs : [ ] , name : "anchor" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "newOwner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "upgrade" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "" , type : "address" } ] , name : "reserves" , outputs : [ { name : "balance" , type : "uint256" } , { name : "weight" , type : "uint32" } , { name : "deprecated1" , type : "bool" } , { name : "deprecated2" , type : "bool" } , { name : "isSet" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_connectorToken" , type : "address" } ] , name : "getConnectorBalance" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_from" , type : "address" } , { name : "_to" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "safeTransferFrom" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_reserveToken" , type : "address" } ] , name : "reserveBalance" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_sourceToken" , type : "address" } , { name : "_targetToken" , type : "address" } , { name : "_amount" , type : "uint256" } , { name : "_trader" , type : "address" } , { name : "_beneficiary" , type : "address" } ] , name : "convert" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_spender" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "safeApprove" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_conversionFee" , type : "uint32" } ] , name : "setConversionFee" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "token" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { inputs : [ { name : "_token" , type : "address" } , { name : "_registry" , type : "address" } , { name : "_maxConversionFee" , type : "uint32" } ] , payable : false , stateMutability : "nonpayable" , type : "constructor" } , { payable : true , stateMutability : "payable" , type : "fallback" } , { anonymous : false , inputs : [ { indexed : true , name : "_connectorToken" , type : "address" } , { indexed : false , name : "_tokenSupply" , type : "uint256" } , { indexed : false , name : "_connectorBalance" , type : "uint256" } , { indexed : false , name : "_connectorWeight" , type : "uint32" } ] , name : "PriceDataUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_provider" , type : "address" } , { indexed : true , name : "_reserveToken" , type : "address" } , { indexed : false , name : "_amount" , type : "uint256" } , { indexed : false , name : "_newBalance" , type : "uint256" } , { indexed : false , name : "_newSupply" , type : "uint256" } ] , name : "LiquidityAdded" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_provider" , type : "address" } , { indexed : true , name : "_reserveToken" , type : "address" } , { indexed : false , name : "_amount" , type : "uint256" } , { indexed : false , name : "_newBalance" , type : "uint256" } , { indexed : false , name : "_newSupply" , type : "uint256" } ] , name : "LiquidityRemoved" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , name : "_anchor" , type : "address" } , { indexed : false , name : "_activated" , type : "bool" } ] , name : "Activation" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_fromToken" , type : "address" } , { indexed : true , name : "_toToken" , type : "address" } , { indexed : true , name : "_trader" , type : "address" } , { indexed : false , name : "_amount" , type : "uint256" } , { indexed : false , name : "_return" , type : "uint256" } , { indexed : false , name : "_conversionFee" , type : "int256" } ] , name : "Conversion" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_token1" , type : "address" } , { indexed : true , name : "_token2" , type : "address" } , { indexed : false , name : "_rateN" , type : "uint256" } , { indexed : false , name : "_rateD" , type : "uint256" } ] , name : "TokenRateUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , name : "_prevFee" , type : "uint32" } , { indexed : false , name : "_newFee" , type : "uint32" } ] , name : "ConversionFeeUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_prevOwner" , type : "address" } , { indexed : true , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } ] ; export const ABINetworkContract = [ { constant : false , inputs : [ { name : "_onlyOwnerCanUpdateRegistry" , type : "bool" } ] , name : "restrictRegistryUpdate" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_register" , type : "bool" } ] , name : "registerEtherToken" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } ] , name : "getReturnByPath" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_beneficiary" , type : "address" } , { name : "_affiliateAccount" , type : "address" } , { name : "_affiliateFee" , type : "uint256" } ] , name : "claimAndConvertFor2" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "onlyOwnerCanUpdateRegistry" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "updateRegistry" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_affiliateAccount" , type : "address" } , { name : "_affiliateFee" , type : "uint256" } ] , name : "convert2" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : true , inputs : [ ] , name : "maxAffiliateFee" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "withdrawTokens" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "prevRegistry" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "registry" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } ] , name : "rateByPath" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "" , type : "address" } ] , name : "etherTokens" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_bancorX" , type : "address" } , { name : "_conversionId" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_beneficiary" , type : "address" } ] , name : "completeXConversion" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "owner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_beneficiary" , type : "address" } , { name : "_affiliateAccount" , type : "address" } , { name : "_affiliateFee" , type : "uint256" } ] , name : "convertFor2" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_beneficiary" , type : "address" } ] , name : "claimAndConvertFor" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ ] , name : "restoreRegistry" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_beneficiary" , type : "address" } , { name : "_affiliateAccount" , type : "address" } , { name : "_affiliateFee" , type : "uint256" } ] , name : "convertByPath" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_targetBlockchain" , type : "bytes32" } , { name : "_targetAccount" , type : "bytes32" } , { name : "_conversionId" , type : "uint256" } ] , name : "xConvert" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } ] , name : "claimAndConvert" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_beneficiary" , type : "address" } ] , name : "convertFor" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_targetBlockchain" , type : "bytes32" } , { name : "_targetAccount" , type : "bytes32" } , { name : "_conversionId" , type : "uint256" } , { name : "_affiliateAccount" , type : "address" } , { name : "_affiliateFee" , type : "uint256" } ] , name : "xConvert2" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "safeTransfer" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "newOwner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_sourceToken" , type : "address" } , { name : "_targetToken" , type : "address" } ] , name : "conversionPath" , outputs : [ { name : "" , type : "address[]" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_from" , type : "address" } , { name : "_to" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "safeTransferFrom" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } , { name : "_affiliateAccount" , type : "address" } , { name : "_affiliateFee" , type : "uint256" } ] , name : "claimAndConvert2" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_spender" , type : "address" } , { name : "_value" , type : "uint256" } ] , name : "safeApprove" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_path" , type : "address[]" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } ] , name : "convert" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : false , inputs : [ { name : "_maxAffiliateFee" , type : "uint256" } ] , name : "setMaxAffiliateFee" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { name : "_registry" , type : "address" } ] , payable : false , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , name : "_smartToken" , type : "address" } , { indexed : true , name : "_fromToken" , type : "address" } , { indexed : true , name : "_toToken" , type : "address" } , { indexed : false , name : "_fromAmount" , type : "uint256" } , { indexed : false , name : "_toAmount" , type : "uint256" } , { indexed : false , name : "_trader" , type : "address" } ] , name : "Conversion" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_prevOwner" , type : "address" } , { indexed : true , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } ] ; export const ABIV2Converter = [ { constant : true , inputs : [ { name : "_reserveToken" , type : "address" } ] , name : "reserveStakedBalance" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_onlyOwnerCanUpdateRegistry" , type : "bool" } ] , name : "restrictRegistryUpdate" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "primaryReserveToken" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "maxStakedBalanceEnabled" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "reserveRatio" , outputs : [ { name : "" , type : "uint32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_address" , type : "address" } ] , name : "connectors" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint32" } , { name : "" , type : "bool" } , { name : "" , type : "bool" } , { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_primaryReserveToken" , type : "address" } , { name : "_primaryReserveOracle" , type : "address" } , { name : "_secondaryReserveOracle" , type : "address" } ] , name : "activate" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "hasETHReserve" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "disableMaxStakedBalances" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_index" , type : "uint256" } ] , name : "connectorTokens" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_reserveToken" , type : "address" } ] , name : "reserveWeight" , outputs : [ { name : "" , type : "uint32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_sourceToken" , type : "address" } , { name : "_targetToken" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "getReturn" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferTokenOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "isActive" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "priceOracle" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_reserveToken" , type : "address" } ] , name : "reserveAmplifiedBalance" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_poolToken" , type : "address" } ] , name : "liquidationLimit" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "onlyOwnerCanUpdateRegistry" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptTokenOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "withdrawFromAnchor" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "converterType" , outputs : [ { name : "" , type : "uint16" } ] , payable : false , stateMutability : "pure" , type : "function" } , { constant : false , inputs : [ { name : "_reserve1MaxStakedBalance" , type : "uint256" } , { name : "_reserve2MaxStakedBalance" , type : "uint256" } ] , name : "setMaxStakedBalances" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ ] , name : "updateRegistry" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_whitelist" , type : "address" } ] , name : "setConversionWhitelist" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "version" , outputs : [ { name : "" , type : "uint16" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_reserveToken" , type : "address" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } ] , name : "addLiquidity" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : true , inputs : [ { name : "_reserveToken" , type : "address" } ] , name : "poolToken" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "conversionFee" , outputs : [ { name : "" , type : "uint32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_to" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "withdrawTokens" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "prevRegistry" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferAnchorOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "_poolToken" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "removeLiquidityReturnAndFee" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_to" , type : "address" } ] , name : "withdrawETH" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_token" , type : "address" } , { name : "_weight" , type : "uint32" } ] , name : "addReserve" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "connectorTokenCount" , outputs : [ { name : "" , type : "uint16" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "registry" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "owner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "maxConversionFee" , outputs : [ { name : "" , type : "uint32" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "" , type : "address" } ] , name : "maxStakedBalances" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "reserveTokenCount" , outputs : [ { name : "" , type : "uint16" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "referenceRate" , outputs : [ { name : "n" , type : "uint256" } , { name : "d" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_sourceToken" , type : "address" } , { name : "_targetToken" , type : "address" } , { name : "_amount" , type : "uint256" } ] , name : "targetAmountAndFee" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "restoreRegistry" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "conversionsEnabled" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_reserveToken" , type : "address" } , { name : "_balance" , type : "uint256" } ] , name : "setReserveStakedBalance" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "referenceRateUpdateTime" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "conversionWhitelist" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "acceptAnchorOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ { name : "" , type : "uint256" } ] , name : "reserveTokens" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "isV28OrHigher" , outputs : [ { name : "" , type : "bool" } ] , payable : false , stateMutability : "pure" , type : "function" } , { constant : true , inputs : [ ] , name : "anchor" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "newOwner" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ ] , name : "upgrade" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "amplificationFactor" , outputs : [ { name : "" , type : "uint8" } ] , payable : false , stateMutability : "pure" , type : "function" } , { constant : true , inputs : [ { name : "" , type : "address" } ] , name : "reserves" , outputs : [ { name : "balance" , type : "uint256" } , { name : "weight" , type : "uint32" } , { name : "deprecated1" , type : "bool" } , { name : "deprecated2" , type : "bool" } , { name : "isSet" , type : "bool" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_connectorToken" , type : "address" } ] , name : "getConnectorBalance" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "effectiveTokensRate" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "secondaryReserveToken" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ { name : "_reserveToken" , type : "address" } ] , name : "reserveBalance" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_poolToken" , type : "address" } , { name : "_amount" , type : "uint256" } , { name : "_minReturn" , type : "uint256" } ] , name : "removeLiquidity" , outputs : [ { name : "" , type : "uint256" } ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_sourceToken" , type : "address" } , { name : "_targetToken" , type : "address" } , { name : "_amount" , type : "uint256" } , { name : "_trader" , type : "address" } , { name : "_beneficiary" , type : "address" } ] , name : "convert" , outputs : [ { name : "" , type : "uint256" } ] , payable : true , stateMutability : "payable" , type : "function" } , { constant : true , inputs : [ ] , name : "effectiveReserveWeights" , outputs : [ { name : "" , type : "uint256" } , { name : "" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : false , inputs : [ { name : "_conversionFee" , type : "uint32" } ] , name : "setConversionFee" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : false , inputs : [ { name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , payable : false , stateMutability : "nonpayable" , type : "function" } , { constant : true , inputs : [ ] , name : "lastConversionRate" , outputs : [ { name : "n" , type : "uint256" } , { name : "d" , type : "uint256" } ] , payable : false , stateMutability : "view" , type : "function" } , { constant : true , inputs : [ ] , name : "token" , outputs : [ { name : "" , type : "address" } ] , payable : false , stateMutability : "view" , type : "function" } , { inputs : [ { name : "_poolTokensContainer" , type : "address" } , { name : "_registry" , type : "address" } , { name : "_maxConversionFee" , type : "uint32" } ] , payable : false , stateMutability : "nonpayable" , type : "constructor" } , { payable : true , stateMutability : "payable" , type : "fallback" } , { anonymous : false , inputs : [ { indexed : true , name : "_provider" , type : "address" } , { indexed : true , name : "_reserveToken" , type : "address" } , { indexed : false , name : "_amount" , type : "uint256" } , { indexed : false , name : "_newBalance" , type : "uint256" } , { indexed : false , name : "_newSupply" , type : "uint256" } ] , name : "LiquidityAdded" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_provider" , type : "address" } , { indexed : true , name : "_reserveToken" , type : "address" } , { indexed : false , name : "_amount" , type : "uint256" } , { indexed : false , name : "_newBalance" , type : "uint256" } , { indexed : false , name : "_newSupply" , type : "uint256" } ] , name : "LiquidityRemoved" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_type" , type : "uint16" } , { indexed : true , name : "_anchor" , type : "address" } , { indexed : true , name : "_activated" , type : "bool" } ] , name : "Activation" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_fromToken" , type : "address" } , { indexed : true , name : "_toToken" , type : "address" } , { indexed : true , name : "_trader" , type : "address" } , { indexed : false , name : "_amount" , type : "uint256" } , { indexed : false , name : "_return" , type : "uint256" } , { indexed : false , name : "_conversionFee" , type : "int256" } ] , name : "Conversion" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_token1" , type : "address" } , { indexed : true , name : "_token2" , type : "address" } , { indexed : false , name : "_rateN" , type : "uint256" } , { indexed : false , name : "_rateD" , type : "uint256" } ] , name : "TokenRateUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , name : "_prevFee" , type : "uint32" } , { indexed : false , name : "_newFee" , type : "uint32" } ] , name : "ConversionFeeUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , name : "_prevOwner" , type : "address" } , { indexed : true , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } ] ; export const ABILiquidityProtectionStore = [ { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_owner" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_amount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_expirationTime" , type : "uint256" } ] , name : "BalanceLocked" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_owner" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "BalanceUnlocked" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_prevOwner" , type : "address" } , { indexed : true , internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "contract IConverterAnchor" , name : "_poolAnchor" , type : "address" } , { indexed : false , internalType : "bool" , name : "_added" , type : "bool" } ] , name : "PoolWhitelistUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_owner" , type : "address" } , { indexed : true , internalType : "contract IDSToken" , name : "_poolToken" , type : "address" } , { indexed : true , internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_poolAmount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_reserveAmount" , type : "uint256" } ] , name : "ProtectionAdded" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_owner" , type : "address" } , { indexed : true , internalType : "contract IDSToken" , name : "_poolToken" , type : "address" } , { indexed : true , internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_poolAmount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_reserveAmount" , type : "uint256" } ] , name : "ProtectionRemoved" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_owner" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_prevPoolAmount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_prevReserveAmount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_newPoolAmount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_newReserveAmount" , type : "uint256" } ] , name : "ProtectionUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "contract IERC20Token" , name : "_token" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_prevAmount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_newAmount" , type : "uint256" } ] , name : "SystemBalanceUpdated" , type : "event" } , { inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "newOwner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "owner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "_poolAnchor" , type : "address" } ] , name : "addPoolToWhitelist" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "_poolAnchor" , type : "address" } ] , name : "removePoolFromWhitelist" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "whitelistedPoolCount" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "whitelistedPools" , outputs : [ { internalType : "contract IConverterAnchor[]" , name : "" , type : "address[]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_index" , type : "uint256" } ] , name : "whitelistedPool" , outputs : [ { internalType : "contract IConverterAnchor" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "_poolAnchor" , type : "address" } ] , name : "isPoolWhitelisted" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_token" , type : "address" } , { internalType : "address" , name : "_to" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "withdrawTokens" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } ] , name : "protectedLiquidityCount" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } ] , name : "protectedLiquidityIds" , outputs : [ { internalType : "uint256[]" , name : "" , type : "uint256[]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } , { internalType : "uint256" , name : "_index" , type : "uint256" } ] , name : "protectedLiquidityId" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } ] , name : "protectedLiquidity" , outputs : [ { internalType : "address" , name : "" , type : "address" } , { internalType : "contract IDSToken" , name : "" , type : "address" } , { internalType : "contract IERC20Token" , name : "" , type : "address" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } , { internalType : "contract IDSToken" , name : "_poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } , { internalType : "uint256" , name : "_poolAmount" , type : "uint256" } , { internalType : "uint256" , name : "_reserveAmount" , type : "uint256" } , { internalType : "uint256" , name : "_reserveRateN" , type : "uint256" } , { internalType : "uint256" , name : "_reserveRateD" , type : "uint256" } , { internalType : "uint256" , name : "_timestamp" , type : "uint256" } ] , name : "addProtectedLiquidity" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } , { internalType : "uint256" , name : "_newPoolAmount" , type : "uint256" } , { internalType : "uint256" , name : "_newReserveAmount" , type : "uint256" } ] , name : "updateProtectedLiquidityAmounts" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } ] , name : "removeProtectedLiquidity" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } ] , name : "lockedBalanceCount" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } , { internalType : "uint256" , name : "_index" , type : "uint256" } ] , name : "lockedBalance" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } , { internalType : "uint256" , name : "_startIndex" , type : "uint256" } , { internalType : "uint256" , name : "_endIndex" , type : "uint256" } ] , name : "lockedBalanceRange" , outputs : [ { internalType : "uint256[]" , name : "" , type : "uint256[]" } , { internalType : "uint256[]" , name : "" , type : "uint256[]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } , { internalType : "uint256" , name : "_expirationTime" , type : "uint256" } ] , name : "addLockedBalance" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "_owner" , type : "address" } , { internalType : "uint256" , name : "_index" , type : "uint256" } ] , name : "removeLockedBalance" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_token" , type : "address" } ] , name : "systemBalance" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_token" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "incSystemBalance" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "_token" , type : "address" } , { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "decSystemBalance" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "_poolToken" , type : "address" } ] , name : "totalProtectedPoolAmount" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "_poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "_reserveToken" , type : "address" } ] , name : "totalProtectedReserveAmount" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } ] ; export const ABIBancorGovernance = [ { inputs : [ { internalType : "contract IERC20" , name : "_govToken" , type : "address" } ] , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , internalType : "uint256" , name : "_id" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_start" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_duration" , type : "uint256" } , { indexed : false , internalType : "address" , name : "_proposer" , type : "address" } , { indexed : false , internalType : "address" , name : "_executor" , type : "address" } ] , name : "NewProposal" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint256" , name : "_minimum" , type : "uint256" } ] , name : "NewProposalMinimumUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_prevOwner" , type : "address" } , { indexed : true , internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "uint256" , name : "_id" , type : "uint256" } , { indexed : true , internalType : "address" , name : "_executor" , type : "address" } ] , name : "ProposalExecuted" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "uint256" , name : "_id" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_for" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "_against" , type : "uint256" } , { indexed : false , internalType : "bool" , name : "_quorumReached" , type : "bool" } ] , name : "ProposalFinished" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint256" , name : "_quorum" , type : "uint256" } ] , name : "QuorumUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_user" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "Staked" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_user" , type : "address" } , { indexed : false , internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "Unstaked" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "uint256" , name : "_id" , type : "uint256" } , { indexed : true , internalType : "address" , name : "_voter" , type : "address" } , { indexed : false , internalType : "bool" , name : "_vote" , type : "bool" } , { indexed : false , internalType : "uint256" , name : "_weight" , type : "uint256" } ] , name : "Vote" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint256" , name : "_voteDuration" , type : "uint256" } ] , name : "VoteDurationUpdated" , type : "event" } , { anonymous : false , inputs : [ { indexed : false , internalType : "uint256" , name : "_duration" , type : "uint256" } ] , name : "VoteLockDurationUpdated" , type : "event" } , { inputs : [ ] , name : "acceptOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "govToken" , outputs : [ { internalType : "contract IERC20" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "newOwner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "newProposalMinimum" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "owner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "proposalCount" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , name : "proposals" , outputs : [ { internalType : "uint256" , name : "id" , type : "uint256" } , { internalType : "uint256" , name : "totalVotesFor" , type : "uint256" } , { internalType : "uint256" , name : "totalVotesAgainst" , type : "uint256" } , { internalType : "uint256" , name : "start" , type : "uint256" } , { internalType : "uint256" , name : "end" , type : "uint256" } , { internalType : "uint256" , name : "totalAvailableVotes" , type : "uint256" } , { internalType : "uint256" , name : "quorum" , type : "uint256" } , { internalType : "uint256" , name : "quorumRequired" , type : "uint256" } , { internalType : "bool" , name : "open" , type : "bool" } , { internalType : "bool" , name : "executed" , type : "bool" } , { internalType : "address" , name : "proposer" , type : "address" } , { internalType : "address" , name : "executor" , type : "address" } , { internalType : "string" , name : "hash" , type : "string" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "quorum" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "totalVotes" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "voteDuration" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "voteLockDuration" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "voteLockFraction" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "" , type : "address" } ] , name : "voteLocks" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "exit" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } ] , name : "proposalStats" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_voter" , type : "address" } ] , name : "votesOf" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_voter" , type : "address" } , { internalType : "uint256" , name : "_id" , type : "uint256" } ] , name : "votesAgainstOf" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "_voter" , type : "address" } , { internalType : "uint256" , name : "_id" , type : "uint256" } ] , name : "votesForOf" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_quorum" , type : "uint256" } ] , name : "setQuorum" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_minimum" , type : "uint256" } ] , name : "setNewProposalMinimum" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_voteDuration" , type : "uint256" } ] , name : "setVoteDuration" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_duration" , type : "uint256" } ] , name : "setVoteLockDuration" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "_executor" , type : "address" } , { internalType : "string" , name : "_hash" , type : "string" } ] , name : "propose" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } ] , name : "execute" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } ] , name : "tallyVotes" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "stake" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_amount" , type : "uint256" } ] , name : "unstake" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } ] , name : "voteFor" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "_id" , type : "uint256" } ] , name : "voteAgainst" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } ] ; export const ABIStakingRewardsStore = [ { inputs : [ ] , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { indexed : false , internalType : "uint256" , name : "startTime" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "endTime" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "rewardRate" , type : "uint256" } ] , name : "PoolProgramAdded" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "contract IDSToken" , name : "poolToken" , type : "address" } ] , name : "PoolProgramRemoved" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "provider" , type : "address" } , { indexed : false , internalType : "uint256" , name : "claimTime" , type : "uint256" } ] , name : "ProviderLastClaimTimeUpdated" , 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" } , { inputs : [ ] , name : "DEFAULT_ADMIN_ROLE" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "ROLE_MANAGER" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "ROLE_OWNER" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "ROLE_SEEDER" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "ROLE_SUPERVISOR" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , 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 : "bytes32" , name : "role" , type : "bytes32" } , { internalType : "address" , name : "account" , type : "address" } ] , name : "renounceRole" , 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 : [ { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } ] , name : "isPoolParticipating" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } ] , name : "isReserveParticipating" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IDSToken[]" , name : "poolTokens" , type : "address[]" } , { internalType : "contract IERC20Token[2][]" , name : "reserveTokens" , type : "address[2][]" } , { internalType : "uint32[2][]" , name : "rewardShares" , type : "uint32[2][]" } , { internalType : "uint256[]" , name : "startTime" , type : "uint256[]" } , { internalType : "uint256[]" , name : "endTimes" , type : "uint256[]" } , { internalType : "uint256[]" , name : "rewardRates" , type : "uint256[]" } ] , name : "addPastPoolPrograms" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "contract IERC20Token[2]" , name : "reserveTokens" , type : "address[2]" } , { internalType : "uint32[2]" , name : "rewardShares" , type : "uint32[2]" } , { internalType : "uint256" , name : "endTime" , type : "uint256" } , { internalType : "uint256" , name : "rewardRate" , type : "uint256" } ] , name : "addPoolProgram" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } ] , name : "removePoolProgram" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "uint256" , name : "newEndTime" , type : "uint256" } ] , name : "setPoolProgramEndTime" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } ] , name : "poolProgram" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "contract IERC20Token[2]" , name : "" , type : "address[2]" } , { internalType : "uint32[2]" , name : "" , type : "uint32[2]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "poolPrograms" , outputs : [ { internalType : "contract IDSToken[]" , name : "" , type : "address[]" } , { internalType : "uint256[]" , name : "" , type : "uint256[]" } , { internalType : "uint256[]" , name : "" , type : "uint256[]" } , { internalType : "uint256[]" , name : "" , type : "uint256[]" } , { internalType : "contract IERC20Token[2][]" , name : "" , type : "address[2][]" } , { internalType : "uint32[2][]" , name : "" , type : "uint32[2][]" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } ] , name : "poolRewards" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } , { internalType : "uint256" , name : "lastUpdateTime" , type : "uint256" } , { internalType : "uint256" , name : "rewardPerToken" , type : "uint256" } , { internalType : "uint256" , name : "totalClaimedRewards" , type : "uint256" } ] , name : "updatePoolRewardsData" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IDSToken[]" , name : "poolTokens" , type : "address[]" } , { internalType : "contract IERC20Token[]" , name : "reserveTokens" , type : "address[]" } , { internalType : "uint256[]" , name : "lastUpdateTimes" , type : "uint256[]" } , { internalType : "uint256[]" , name : "rewardsPerToken" , type : "uint256[]" } , { internalType : "uint256[]" , name : "totalClaimedRewards" , type : "uint256[]" } ] , name : "setPoolsRewardData" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "provider" , type : "address" } , { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } ] , name : "providerRewards" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint32" , name : "" , type : "uint32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "provider" , type : "address" } , { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } , { internalType : "uint256" , name : "rewardPerToken" , type : "uint256" } , { internalType : "uint256" , name : "pendingBaseRewards" , type : "uint256" } , { internalType : "uint256" , name : "totalClaimedRewards" , type : "uint256" } , { internalType : "uint256" , name : "effectiveStakingTime" , type : "uint256" } , { internalType : "uint256" , name : "baseRewardsDebt" , type : "uint256" } , { internalType : "uint32" , name : "baseRewardsDebtMultiplier" , type : "uint32" } ] , name : "updateProviderRewardsData" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } , { internalType : "address[]" , name : "providers" , type : "address[]" } , { internalType : "uint256[]" , name : "rewardsPerToken" , type : "uint256[]" } , { internalType : "uint256[]" , name : "pendingBaseRewards" , type : "uint256[]" } , { internalType : "uint256[]" , name : "totalClaimedRewards" , type : "uint256[]" } , { internalType : "uint256[]" , name : "effectiveStakingTimes" , type : "uint256[]" } , { internalType : "uint256[]" , name : "baseRewardsDebts" , type : "uint256[]" } , { internalType : "uint32[]" , name : "baseRewardsDebtMultipliers" , type : "uint32[]" } ] , name : "setProviderRewardData" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "provider" , type : "address" } ] , name : "updateProviderLastClaimTime" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "provider" , type : "address" } ] , name : "providerLastClaimTime" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } ] ; export const ABIStakingRewards = [ { inputs : [ { internalType : "contract IStakingRewardsStore" , name : "store" , type : "address" } , { internalType : "contract ITokenGovernance" , name : "networkTokenGovernance" , type : "address" } , { internalType : "contract ICheckpointStore" , name : "lastRemoveTimes" , type : "address" } , { internalType : "contract IContractRegistry" , name : "registry" , type : "address" } ] , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "_prevOwner" , type : "address" } , { indexed : true , internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "OwnerUpdate" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "provider" , type : "address" } , { indexed : false , internalType : "uint256" , name : "amount" , type : "uint256" } ] , name : "RewardsClaimed" , type : "event" } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "provider" , type : "address" } , { indexed : true , internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { indexed : false , internalType : "uint256" , name : "amount" , type : "uint256" } , { indexed : true , internalType : "uint256" , name : "newId" , type : "uint256" } ] , name : "RewardsStaked" , 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" } , { inputs : [ ] , name : "DEFAULT_ADMIN_ROLE" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "ROLE_PUBLISHER" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "ROLE_SUPERVISOR" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "acceptOwnership" , 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 : [ ] , name : "newOwner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "onlyOwnerCanUpdateRegistry" , outputs : [ { internalType : "bool" , name : "" , type : "bool" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "owner" , outputs : [ { internalType : "address" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "prevRegistry" , outputs : [ { internalType : "contract IContractRegistry" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "registry" , outputs : [ { internalType : "contract IContractRegistry" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "bytes32" , name : "role" , type : "bytes32" } , { internalType : "address" , name : "account" , type : "address" } ] , name : "renounceRole" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "restoreRegistry" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "bool" , name : "_onlyOwnerCanUpdateRegistry" , type : "bool" } ] , name : "restrictRegistryUpdate" , 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 : [ { internalType : "address" , name : "_newOwner" , type : "address" } ] , name : "transferOwnership" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "updateRegistry" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "provider" , type : "address" } , { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , name : "onAddingLiquidity" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "address" , name : "provider" , type : "address" } , { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } , { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , name : "onRemovingLiquidity" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ ] , name : "store" , outputs : [ { internalType : "contract IStakingRewardsStore" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "networkTokenGovernance" , outputs : [ { internalType : "contract ITokenGovernance" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "lastRemoveTimes" , outputs : [ { internalType : "contract ICheckpointStore" , name : "" , type : "address" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "provider" , type : "address" } , { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } ] , name : "pendingReserveRewards" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "provider" , type : "address" } ] , name : "pendingRewards" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "address" , name : "provider" , type : "address" } ] , name : "totalClaimedRewards" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "claimRewards" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "uint256" , name : "maxAmount" , type : "uint256" } , { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } ] , name : "stakeRewards" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } , { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address[]" , name : "providers" , type : "address[]" } ] , name : "updateRewards" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "address" , name : "provider" , type : "address" } , { internalType : "contract IDSToken" , name : "poolToken" , type : "address" } , { internalType : "contract IERC20Token" , name : "reserveToken" , type : "address" } ] , name : "rewardsMultiplier" , outputs : [ { internalType : "uint32" , name : "" , type : "uint32" } ] , stateMutability : "view" , type : "function" } ] ; export const ABILiquidityProtectionSystemStore = [ { inputs : [ ] , stateMutability : "nonpayable" , type : "constructor" } , { anonymous : false , inputs : [ { indexed : true , internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { indexed : false , internalType : "uint256" , name : "prevAmount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "newAmount" , type : "uint256" } ] , name : "NetworkTokensMintedUpdated" , 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 : "contract IERC20Token" , name : "token" , type : "address" } , { indexed : false , internalType : "uint256" , name : "prevAmount" , type : "uint256" } , { indexed : false , internalType : "uint256" , name : "newAmount" , type : "uint256" } ] , name : "SystemBalanceUpdated" , type : "event" } , { inputs : [ ] , name : "DEFAULT_ADMIN_ROLE" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "ROLE_OWNER" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ ] , name : "ROLE_SUPERVISOR" , outputs : [ { internalType : "bytes32" , name : "" , type : "bytes32" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } , { internalType : "uint256" , name : "amount" , type : "uint256" } ] , name : "decNetworkTokensMinted" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "token" , type : "address" } , { internalType : "uint256" , name : "amount" , type : "uint256" } ] , name : "decSystemBalance" , 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 IConverterAnchor" , name : "poolAnchor" , type : "address" } , { internalType : "uint256" , name : "amount" , type : "uint256" } ] , name : "incNetworkTokensMinted" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IERC20Token" , name : "token" , type : "address" } , { internalType : "uint256" , name : "amount" , type : "uint256" } ] , name : "incSystemBalance" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" } , { inputs : [ { internalType : "contract IConverterAnchor" , name : "poolAnchor" , type : "address" } ] , name : "networkTokensMinted" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } , { inputs : [ { internalType : "bytes32" , name : "role" , type : "bytes32" } , { internalType : "address" , name : "account" , type : "address" } ] , name : "renounceRole" , 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 : [ { internalType : "contract IERC20Token" , name : "token" , type : "address" } ] , name : "systemBalance" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" } ] , stateMutability : "view" , type : "function" } ] ;