@ledgerhq/hw-app-eth
Version:
Ledger Hardware Wallet Ethereum Application API
1,966 lines • 46 kB
JSON
[
{
"inputs": [
{
"internalType": "address payable",
"name": "_feeWallet",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "adapter",
"type": "address"
}
],
"name": "AdapterInitialized",
"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": "address",
"name": "router",
"type": "address"
}
],
"name": "RouterInitialized",
"type": "event"
},
{
"stateMutability": "payable",
"type": "fallback"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ROUTER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "WHITELISTED_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "getAdapterData",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getFeeWallet",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "selector",
"type": "bytes4"
}
],
"name": "getImplementation",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "partner",
"type": "address"
}
],
"name": "getPartnerFeeStructure",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "partnerShare",
"type": "uint256"
},
{
"internalType": "bool",
"name": "noPositiveSlippage",
"type": "bool"
},
{
"internalType": "bool",
"name": "positiveSlippageToUser",
"type": "bool"
},
{
"internalType": "uint16",
"name": "feePercent",
"type": "uint16"
},
{
"internalType": "string",
"name": "partnerId",
"type": "string"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"internalType": "struct AugustusStorage.FeeStructure",
"name": "",
"type": "tuple"
}
],
"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": "key",
"type": "bytes32"
}
],
"name": "getRouterData",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTokenTransferProxy",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVersion",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"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": "address",
"name": "adapter",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "initializeAdapter",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "router",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "initializeRouter",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "isAdapterInitialized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "isRouterInitialized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "partner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_partnerShare",
"type": "uint256"
},
{
"internalType": "bool",
"name": "_noPositiveSlippage",
"type": "bool"
},
{
"internalType": "bool",
"name": "_positiveSlippageToUser",
"type": "bool"
},
{
"internalType": "uint16",
"name": "_feePercent",
"type": "uint16"
},
{
"internalType": "string",
"name": "partnerId",
"type": "string"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "registerPartner",
"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": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "_feeWallet",
"type": "address"
}
],
"name": "setFeeWallet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "selector",
"type": "bytes4"
},
{
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "setImplementation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "address payable",
"name": "destination",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferTokens",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
},
{
"indexed": false,
"internalType": "address",
"name": "initiator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "beneficiary",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "srcToken",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "destToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "srcAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "receivedAmount",
"type": "uint256"
}
],
"name": "Bought",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "fee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "partnerShare",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "paraswapShare",
"type": "uint256"
}
],
"name": "FeeTaken",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
},
{
"indexed": false,
"internalType": "address",
"name": "initiator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "beneficiary",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "srcToken",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "destToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "srcAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "receivedAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "expectedAmount",
"type": "uint256"
}
],
"name": "Swapped",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountInMax",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
}
],
"name": "buyOnUniswap",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "factory",
"type": "address"
},
{
"internalType": "bytes32",
"name": "initCode",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "amountInMax",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
}
],
"name": "buyOnUniswapFork",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountInMax",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"internalType": "address",
"name": "weth",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "pools",
"type": "uint256[]"
}
],
"name": "buyOnUniswapV2Fork",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "fromToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expectedAmount",
"type": "uint256"
},
{
"internalType": "address payable",
"name": "beneficiary",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "fromAmountPercent",
"type": "uint256"
},
{
"components": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "totalNetworkFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "address payable",
"name": "adapter",
"type": "address"
},
{
"internalType": "uint256",
"name": "percent",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "networkFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "address",
"name": "targetExchange",
"type": "address"
},
{
"internalType": "uint256",
"name": "percent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "payload",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "networkFee",
"type": "uint256"
}
],
"internalType": "struct Utils.Route[]",
"name": "route",
"type": "tuple[]"
}
],
"internalType": "struct Utils.Adapter[]",
"name": "adapters",
"type": "tuple[]"
}
],
"internalType": "struct Utils.Path[]",
"name": "path",
"type": "tuple[]"
}
],
"internalType": "struct Utils.MegaSwapPath[]",
"name": "path",
"type": "tuple[]"
},
{
"internalType": "address payable",
"name": "partner",
"type": "address"
},
{
"internalType": "uint256",
"name": "feePercent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "permit",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
}
],
"internalType": "struct Utils.MegaSwapSellData",
"name": "data",
"type": "tuple"
}
],
"name": "megaSwap",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "fromToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expectedAmount",
"type": "uint256"
},
{
"internalType": "address payable",
"name": "beneficiary",
"type": "address"
},
{
"components": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "totalNetworkFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "address payable",
"name": "adapter",
"type": "address"
},
{
"internalType": "uint256",
"name": "percent",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "networkFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "address",
"name": "targetExchange",
"type": "address"
},
{
"internalType": "uint256",
"name": "percent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "payload",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "networkFee",
"type": "uint256"
}
],
"internalType": "struct Utils.Route[]",
"name": "route",
"type": "tuple[]"
}
],
"internalType": "struct Utils.Adapter[]",
"name": "adapters",
"type": "tuple[]"
}
],
"internalType": "struct Utils.Path[]",
"name": "path",
"type": "tuple[]"
},
{
"internalType": "address payable",
"name": "partner",
"type": "address"
},
{
"internalType": "uint256",
"name": "feePercent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "permit",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
}
],
"internalType": "struct Utils.SellData",
"name": "data",
"type": "tuple"
}
],
"name": "multiSwap",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "fromToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expectedAmount",
"type": "uint256"
},
{
"internalType": "address payable",
"name": "beneficiary",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "fromAmountPercent",
"type": "uint256"
},
{
"components": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "totalNetworkFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "address payable",
"name": "adapter",
"type": "address"
},
{
"internalType": "uint256",
"name": "percent",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "networkFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "address",
"name": "targetExchange",
"type": "address"
},
{
"internalType": "uint256",
"name": "percent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "payload",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "networkFee",
"type": "uint256"
}
],
"internalType": "struct Utils.Route[]",
"name": "route",
"type": "tuple[]"
}
],
"internalType": "struct Utils.Adapter[]",
"name": "adapters",
"type": "tuple[]"
}
],
"internalType": "struct Utils.Path[]",
"name": "path",
"type": "tuple[]"
}
],
"internalType": "struct Utils.MegaSwapPath[]",
"name": "path",
"type": "tuple[]"
},
{
"internalType": "address payable",
"name": "partner",
"type": "address"
},
{
"internalType": "uint256",
"name": "feePercent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "permit",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
}
],
"internalType": "struct Utils.MegaSwapSellData",
"name": "data",
"type": "tuple"
}
],
"name": "protectedMegaSwap",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "fromToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expectedAmount",
"type": "uint256"
},
{
"internalType": "address payable",
"name": "beneficiary",
"type": "address"
},
{
"components": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "totalNetworkFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "address payable",
"name": "adapter",
"type": "address"
},
{
"internalType": "uint256",
"name": "percent",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "networkFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "address",
"name": "targetExchange",
"type": "address"
},
{
"internalType": "uint256",
"name": "percent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "payload",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "networkFee",
"type": "uint256"
}
],
"internalType": "struct Utils.Route[]",
"name": "route",
"type": "tuple[]"
}
],
"internalType": "struct Utils.Adapter[]",
"name": "adapters",
"type": "tuple[]"
}
],
"internalType": "struct Utils.Path[]",
"name": "path",
"type": "tuple[]"
},
{
"internalType": "address payable",
"name": "partner",
"type": "address"
},
{
"internalType": "uint256",
"name": "feePercent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "permit",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
}
],
"internalType": "struct Utils.SellData",
"name": "data",
"type": "tuple"
}
],
"name": "protectedMultiSwap",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "fromToken",
"type": "address"
},
{
"internalType": "address",
"name": "toToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expectedAmount",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "callees",
"type": "address[]"
},
{
"internalType": "bytes",
"name": "exchangeData",
"type": "bytes"
},
{
"internalType": "uint256[]",
"name": "startIndexes",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "address payable",
"name": "beneficiary",
"type": "address"
},
{
"internalType": "address payable",
"name": "partner",
"type": "address"
},
{
"internalType": "uint256",
"name": "feePercent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "permit",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
}
],
"internalType": "struct Utils.SimpleData",
"name": "data",
"type": "tuple"
}
],
"name": "protectedSimpleBuy",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "fromToken",
"type": "address"
},
{
"internalType": "address",
"name": "toToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expectedAmount",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "callees",
"type": "address[]"
},
{
"internalType": "bytes",
"name": "exchangeData",
"type": "bytes"
},
{
"internalType": "uint256[]",
"name": "startIndexes",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "address payable",
"name": "beneficiary",
"type": "address"
},
{
"internalType": "address payable",
"name": "partner",
"type": "address"
},
{
"internalType": "uint256",
"name": "feePercent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "permit",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
}
],
"internalType": "struct Utils.SimpleData",
"name": "data",
"type": "tuple"
}
],
"name": "protectedSimpleSwap",
"outputs": [
{
"internalType": "uint256",
"name": "receivedAmount",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "fromToken",
"type": "address"
},
{
"internalType": "address",
"name": "toToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expectedAmount",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "callees",
"type": "address[]"
},
{
"internalType": "bytes",
"name": "exchangeData",
"type": "bytes"
},
{
"internalType": "uint256[]",
"name": "startIndexes",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "address payable",
"name": "beneficiary",
"type": "address"
},
{
"internalType": "address payable",
"name": "partner",
"type": "address"
},
{
"internalType": "uint256",
"name": "feePercent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "permit",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
}
],
"internalType": "struct Utils.SimpleData",
"name": "data",
"type": "tuple"
}
],
"name": "simpleBuy",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "fromToken",
"type": "address"
},
{
"internalType": "address",
"name": "toToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expectedAmount",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "callees",
"type": "address[]"
},
{
"internalType": "bytes",
"name": "exchangeData",
"type": "bytes"
},
{
"internalType": "uint256[]",
"name": "startIndexes",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "address payable",
"name": "beneficiary",
"type": "address"
},
{
"internalType": "address payable",
"name": "partner",
"type": "address"
},
{
"internalType": "uint256",
"name": "feePercent",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "permit",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes16",
"name": "uuid",
"type": "bytes16"
}
],
"internalType": "struct Utils.SimpleData",
"name": "data",
"type": "tuple"
}
],
"name": "simpleSwap",
"outputs": [
{
"internalType": "uint256",
"name": "receivedAmount",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOutMin",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
}
],
"name": "swapOnUniswap",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "factory",
"type": "address"
},
{
"internalType": "bytes32",
"name": "initCode",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOutMin",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
}
],
"name": "swapOnUniswapFork",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOutMin",
"type": "uint256"
},
{
"internalType": "address",
"name": "weth",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "pools",
"type": "uint256[]"
}
],
"name": "swapOnUniswapV2Fork",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "fromToken",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "toToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOutMin",
"type": "uint256"
},
{
"internalType": "address",
"name": "exchange",
"type": "address"
},
{
"internalType": "bytes",
"name": "payload",
"type": "bytes"
}
],
"name": "swapOnZeroXv2",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "fromToken",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "toToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOutMin",
"type": "uint256"
},
{
"internalType": "address",
"name": "exchange",
"type": "address"
},
{
"internalType": "bytes",
"name": "payload",
"type": "bytes"
}
],
"name": "swapOnZeroXv4",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
]