UNPKG

@composable-finance/v1-sdk-defi-protocols

Version:

Provides ABIs, Addresses, and Solidity Interfaces to popular DeFi protocols.

258 lines (257 loc) 9.24 kB
[ { "inputs": [ { "internalType": "address", "name": "_weth", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": true, "inputs": [ { "indexed": true, "internalType": "bytes4", "name": "sig", "type": "bytes4" }, { "indexed": true, "internalType": "address", "name": "caller", "type": "address" }, { "indexed": false, "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "LOG_CALL", "type": "event" }, { "payable": true, "stateMutability": "payable", "type": "fallback" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "tokenInParam", "type": "uint256" }, { "internalType": "uint256", "name": "tokenOutParam", "type": "uint256" }, { "internalType": "uint256", "name": "maxPrice", "type": "uint256" } ], "internalType": "struct ExchangeProxy.Swap[]", "name": "swaps", "type": "tuple[]" }, { "internalType": "address", "name": "tokenOut", "type": "address" }, { "internalType": "uint256", "name": "minTotalAmountOut", "type": "uint256" } ], "name": "batchEthInSwapExactIn", "outputs": [ { "internalType": "uint256", "name": "totalAmountOut", "type": "uint256" } ], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "tokenInParam", "type": "uint256" }, { "internalType": "uint256", "name": "tokenOutParam", "type": "uint256" }, { "internalType": "uint256", "name": "maxPrice", "type": "uint256" } ], "internalType": "struct ExchangeProxy.Swap[]", "name": "swaps", "type": "tuple[]" }, { "internalType": "address", "name": "tokenOut", "type": "address" } ], "name": "batchEthInSwapExactOut", "outputs": [ { "internalType": "uint256", "name": "totalAmountIn", "type": "uint256" } ], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "tokenInParam", "type": "uint256" }, { "internalType": "uint256", "name": "tokenOutParam", "type": "uint256" }, { "internalType": "uint256", "name": "maxPrice", "type": "uint256" } ], "internalType": "struct ExchangeProxy.Swap[]", "name": "swaps", "type": "tuple[]" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "uint256", "name": "totalAmountIn", "type": "uint256" }, { "internalType": "uint256", "name": "minTotalAmountOut", "type": "uint256" } ], "name": "batchEthOutSwapExactIn", "outputs": [ { "internalType": "uint256", "name": "totalAmountOut", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "tokenInParam", "type": "uint256" }, { "internalType": "uint256", "name": "tokenOutParam", "type": "uint256" }, { "internalType": "uint256", "name": "maxPrice", "type": "uint256" } ], "internalType": "struct ExchangeProxy.Swap[]", "name": "swaps", "type": "tuple[]" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "uint256", "name": "maxTotalAmountIn", "type": "uint256" } ], "name": "batchEthOutSwapExactOut", "outputs": [ { "internalType": "uint256", "name": "totalAmountIn", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "tokenInParam", "type": "uint256" }, { "internalType": "uint256", "name": "tokenOutParam", "type": "uint256" }, { "internalType": "uint256", "name": "maxPrice", "type": "uint256" } ], "internalType": "struct ExchangeProxy.Swap[]", "name": "swaps", "type": "tuple[]" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "tokenOut", "type": "address" }, { "internalType": "uint256", "name": "totalAmountIn", "type": "uint256" }, { "internalType": "uint256", "name": "minTotalAmountOut", "type": "uint256" } ], "name": "batchSwapExactIn", "outputs": [ { "internalType": "uint256", "name": "totalAmountOut", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "tokenInParam", "type": "uint256" }, { "internalType": "uint256", "name": "tokenOutParam", "type": "uint256" }, { "internalType": "uint256", "name": "maxPrice", "type": "uint256" } ], "internalType": "struct ExchangeProxy.Swap[]", "name": "swaps", "type": "tuple[]" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "tokenOut", "type": "address" }, { "internalType": "uint256", "name": "maxTotalAmountIn", "type": "uint256" } ], "name": "batchSwapExactOut", "outputs": [ { "internalType": "uint256", "name": "totalAmountIn", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ]