UNPKG

@zarclays/zswap-trident

Version:
1,665 lines (1,664 loc) 699 kB
{ "1": [ { "name": "ethereum", "chainId": "1", "contracts": { "ConstantProductPoolFactory": { "address": "0xD75F5369724b513b497101fb15211160c1d96550", "abi": [ { "inputs": [ { "internalType": "address", "name": "_masterDeployer", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidTokenOrder", "type": "error" }, { "inputs": [], "name": "UnauthorisedDeployer", "type": "error" }, { "inputs": [], "name": "ZeroAddress", "type": "error" }, { "inputs": [], "name": "bytecodeHash", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token0", "type": "address" }, { "internalType": "address", "name": "token1", "type": "address" }, { "internalType": "uint256", "name": "swapFee", "type": "uint256" }, { "internalType": "bool", "name": "twapSupport", "type": "bool" } ], "name": "calculatePoolAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "configAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "_deployData", "type": "bytes" } ], "name": "deployPool", "outputs": [ { "internalType": "address", "name": "pool", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getDeployData", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "contract IMasterDeployer", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token0", "type": "address" }, { "internalType": "address", "name": "token1", "type": "address" }, { "internalType": "uint256", "name": "startIndex", "type": "uint256" }, { "internalType": "uint256", "name": "count", "type": "uint256" } ], "name": "getPools", "outputs": [ { "internalType": "address[]", "name": "pairPools", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "masterDeployer", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "pools", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token0", "type": "address" }, { "internalType": "address", "name": "token1", "type": "address" } ], "name": "poolsCount", "outputs": [ { "internalType": "uint256", "name": "count", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ] }, "ConstantProductPoolFactoryHelper": { "address": "0x7D222c52983690678e847cd063535F328875F463", "abi": [ { "inputs": [ { "internalType": "address", "name": "constantProductPoolFactory", "type": "address" }, { "internalType": "address[]", "name": "tokens", "type": "address[]" } ], "name": "getPoolsForTokens", "outputs": [ { "components": [ { "internalType": "uint8", "name": "tokenA", "type": "uint8" }, { "internalType": "uint8", "name": "tokenB", "type": "uint8" }, { "internalType": "uint112", "name": "reserve0", "type": "uint112" }, { "internalType": "uint112", "name": "reserve1", "type": "uint112" }, { "internalType": "uint16", "name": "swapFeeAndTwapSupport", "type": "uint16" } ], "internalType": "struct ConstantProductPoolFactoryHelper.ConstantProductPoolInfo[]", "name": "poolInfos", "type": "tuple[]" }, { "internalType": "uint256", "name": "length", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ] }, "MasterDeployer": { "address": "0x10c19390E1Ac2Fd6D0c3643a2320b0abA38E5bAA", "abi": [ { "inputs": [ { "internalType": "uint256", "name": "_barFee", "type": "uint256" }, { "internalType": "address", "name": "_barFeeTo", "type": "address" }, { "internalType": "address", "name": "_bento", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidBarFee", "type": "error" }, { "inputs": [], "name": "NotWhitelisted", "type": "error" }, { "inputs": [], "name": "ZeroAddress", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "factory", "type": "address" } ], "name": "AddToWhitelist", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "barFeeTo", "type": "address" } ], "name": "BarFeeToUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "barFee", "type": "uint256" } ], "name": "BarFeeUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "factory", "type": "address" }, { "indexed": true, "internalType": "address", "name": "pool", "type": "address" }, { "indexed": false, "internalType": "bytes", "name": "deployData", "type": "bytes" } ], "name": "DeployPool", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "factory", "type": "address" } ], "name": "RemoveFromWhitelist", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "_factory", "type": "address" } ], "name": "addToWhitelist", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "barFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "barFeeTo", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "bento", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_factory", "type": "address" }, { "internalType": "bytes", "name": "_deployData", "type": "bytes" } ], "name": "deployPool", "outputs": [ { "internalType": "address", "name": "pool", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "pools", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_factory", "type": "address" } ], "name": "removeFromWhitelist", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_barFee", "type": "uint256" } ], "name": "setBarFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_barFeeTo", "type": "address" } ], "name": "setBarFeeTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "whitelistedFactories", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" } ] }, "StablePoolFactory": { "address": "0xC040F84Cf7046409f92d578eF9040fE45E6ef4be", "abi": [ { "inputs": [ { "internalType": "address", "name": "_masterDeployer", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidTokenOrder", "type": "error" }, { "inputs": [], "name": "UnauthorisedDeployer", "type": "error" }, { "inputs": [], "name": "ZeroAddress", "type": "error" }, { "inputs": [], "name": "bytecodeHash", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token0", "type": "address" }, { "internalType": "address", "name": "token1", "type": "address" }, { "internalType": "uint256", "name": "swapFee", "type": "uint256" } ], "name": "calculatePoolAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "configAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "_deployData", "type": "bytes" } ], "name": "deployPool", "outputs": [ { "internalType": "address", "name": "pool", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getDeployData", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "contract IMasterDeployerV2", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token0", "type": "address" }, { "internalType": "address", "name": "token1", "type": "address" }, { "internalType": "uint256", "name": "startIndex", "type": "uint256" }, { "internalType": "uint256", "name": "count", "type": "uint256" } ], "name": "getPools", "outputs": [ { "internalType": "address[]", "name": "pairPools", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "masterDeployer", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "pools", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token0", "type": "address" }, { "internalType": "address", "name": "token1", "type": "address" } ], "name": "poolsCount", "outputs": [ { "internalType": "uint256", "name": "count", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ] }, "TridentRouter": { "address": "0xDdC1b5920723F774d2Ec2C3c9355251A20819776", "abi": [ { "inputs": [ { "internalType": "contract IBentoBoxMinimal", "name": "_bento", "type": "address" }, { "internalType": "contract IMasterDeployer", "name": "_masterDeployer", "type": "address" }, { "internalType": "address", "name": "_wETH", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "IncorrectSlippageParams", "type": "error" }, { "inputs": [], "name": "NotEnoughLiquidityMinted", "type": "error" }, { "inputs": [], "name": "NotWethSender", "type": "error" }, { "inputs": [], "name": "TooLittleReceived", "type": "error" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "native", "type": "bool" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "internalType": "struct ITridentRouter.TokenInput[]", "name": "tokenInput", "type": "tuple[]" }, { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "minLiquidity", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "addLiquidity", "outputs": [ { "internalType": "uint256", "name": "liquidity", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "approveMasterContract", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "bento", "outputs": [ { "internalType": "contract IBentoBoxMinimal", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "components": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "internalType": "struct IPool.TokenAmount[]", "name": "minWithdrawals", "type": "tuple[]" } ], "name": "burnLiquidity", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "minWithdrawal", "type": "uint256" } ], "name": "burnLiquiditySingle", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "components": [ { "components": [ { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "bool", "name": "native", "type": "bool" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct ITridentRouter.InitialPath[]", "name": "initialPath", "type": "tuple[]" }, { "components": [ { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint64", "name": "balancePercentage", "type": "uint64" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct ITridentRouter.PercentagePath[]", "name": "percentagePath", "type": "tuple[]" }, { "components": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "bool", "name": "unwrapBento", "type": "bool" }, { "internalType": "uint256", "name": "minAmount", "type": "uint256" } ], "internalType": "struct ITridentRouter.Output[]", "name": "output", "type": "tuple[]" } ], "internalType": "struct ITridentRouter.ComplexPathParams", "name": "params", "type": "tuple" } ], "name": "complexPath", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "factory", "type": "address" }, { "internalType": "bytes", "name": "deployData", "type": "bytes" } ], "name": "deployPool", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMinimum", "type": "uint256" }, { "components": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct ITridentRouter.Path[]", "name": "path", "type": "tuple[]" } ], "internalType": "struct ITridentRouter.ExactInputParams", "name": "params", "type": "tuple" } ], "name": "exactInput", "outputs": [ { "internalType": "uint256", "name": "amountOut", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMinimum", "type": "uint256" }, { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct ITridentRouter.ExactInputSingleParams", "name": "params", "type": "tuple" } ], "name": "exactInputSingle", "outputs": [ { "internalType": "uint256", "name": "amountOut", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMinimum", "type": "uint256" }, { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct ITridentRouter.ExactInputSingleParams", "name": "params", "type": "tuple" } ], "name": "exactInputSingleWithNativeToken", "outputs": [ { "internalType": "uint256", "name": "amountOut", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMinimum", "type": "uint256" }, { "components": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct ITridentRouter.Path[]", "name": "path", "type": "tuple[]" } ], "internalType": "struct ITridentRouter.ExactInputParams", "name": "params", "type": "tuple" } ], "name": "exactInputWithNativeToken", "outputs": [ { "internalType": "uint256", "name": "amountOut", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "maxChangeAmount", "type": "uint256" } ], "name": "harvest", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "masterDeployer", "outputs": [ { "internalType": "contract IMasterDeployer", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes[]", "name": "data", "type": "bytes[]" } ], "name": "multicall", "outputs": [ { "internalType": "bytes[]", "name": "results", "type": "bytes[]" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "selfPermit", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "expiry", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "selfPermitAllowed", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "expiry", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "selfPermitAllowedIfNecessary", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "selfPermitIfNecessary", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "bool", "name": "fromBento", "type": "bool" } ], "name": "sweep", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "recipient", "type": "address" } ], "name": "unwrapWETH", "outputs": [], "stateMutability": "payable", "type": "function" }, { "stateMutability": "payable", "type": "receive" } ] }, "TridentSushiRollCP": { "address": "0x400d75dAb26bBc18D163AEA3e83D9Ea68F6c1804", "abi": [ { "inputs": [ { "internalType": "contract IBentoBoxMinimal", "name": "_bentoBox", "type": "address" }, { "internalType": "contract IPoolFactory", "name": "_poolFactoryCP", "type": "address" }, { "internalType": "contract IMasterDeployer", "name": "_masterDeployer", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "MinimumOutput", "type": "error" }, { "inputs": [], "name": "bentoBox", "outputs": [ { "internalType": "contract IBentoBoxMinimal", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "masterDeployer",