[
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "address",
                "name": "adapter",
                "type": "address"
            }
        ],
        "name": "AdapterInitialized",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "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": "string",
                "name": "referrer",
                "type": "string"
            }
        ],
        "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": true,
                "internalType": "address",
                "name": "previousOwner",
                "type": "address"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "newOwner",
                "type": "address"
            }
        ],
        "name": "OwnershipTransferred",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "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"
            },
            {
                "indexed": false,
                "internalType": "string",
                "name": "referrer",
                "type": "string"
            }
        ],
        "name": "Swapped",
        "type": "event"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "key",
                "type": "bytes32"
            }
        ],
        "name": "getData",
        "outputs": [
            {
                "internalType": "bytes",
                "name": "",
                "type": "bytes"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getTokenTransferProxy",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "key",
                "type": "bytes32"
            }
        ],
        "name": "isInitialized",
        "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": "renounceOwnership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "newOwner",
                "type": "address"
            }
        ],
        "name": "transferOwnership",
        "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"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "whitelist",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "reduxToken",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "partnerRegistry",
                "type": "address"
            },
            {
                "internalType": "address payable",
                "name": "feeWallet",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "uniswapProxy",
                "type": "address"
            }
        ],
        "name": "initialize",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "adapter",
                "type": "address"
            },
            {
                "internalType": "bytes",
                "name": "data",
                "type": "bytes"
            }
        ],
        "name": "initializeAdapter",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getUniswapProxy",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getVersion",
        "outputs": [
            {
                "internalType": "string",
                "name": "",
                "type": "string"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getPartnerRegistry",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getWhitelistAddress",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getFeeWallet",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "uniswapProxy",
                "type": "address"
            }
        ],
        "name": "changeUniswapProxy",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address payable",
                "name": "feeWallet",
                "type": "address"
            }
        ],
        "name": "setFeeWallet",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "partnerRegistry",
                "type": "address"
            }
        ],
        "name": "setPartnerRegistry",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "whitelisted",
                "type": "address"
            }
        ],
        "name": "setWhitelistAddress",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOutMin",
                "type": "uint256"
            },
            {
                "internalType": "address[]",
                "name": "path",
                "type": "address[]"
            },
            {
                "internalType": "uint8",
                "name": "referrer",
                "type": "uint8"
            }
        ],
        "name": "swapOnUniswap",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "amountInMax",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            },
            {
                "internalType": "address[]",
                "name": "path",
                "type": "address[]"
            },
            {
                "internalType": "uint8",
                "name": "referrer",
                "type": "uint8"
            }
        ],
        "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[]"
            },
            {
                "internalType": "uint8",
                "name": "referrer",
                "type": "uint8"
            }
        ],
        "name": "buyOnUniswapFork",
        "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[]"
            },
            {
                "internalType": "uint8",
                "name": "referrer",
                "type": "uint8"
            }
        ],
        "name": "swapOnUniswapFork",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "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": "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": "string",
                "name": "referrer",
                "type": "string"
            },
            {
                "internalType": "bool",
                "name": "useReduxToken",
                "type": "bool"
            }
        ],
        "name": "simplBuy",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "token",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "to",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amount",
                "type": "uint256"
            }
        ],
        "name": "approve",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "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": "string",
                "name": "referrer",
                "type": "string"
            },
            {
                "internalType": "bool",
                "name": "useReduxToken",
                "type": "bool"
            }
        ],
        "name": "simpleSwap",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "receivedAmount",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IWETH",
                "name": "token",
                "type": "address"
            }
        ],
        "name": "withdrawAllWETH",
        "outputs": [],
        "stateMutability": "nonpayable",
        "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"
                    },
                    {
                        "internalType": "string",
                        "name": "referrer",
                        "type": "string"
                    },
                    {
                        "internalType": "bool",
                        "name": "useReduxToken",
                        "type": "bool"
                    },
                    {
                        "components": [
                            {
                                "internalType": "address",
                                "name": "to",
                                "type": "address"
                            },
                            {
                                "internalType": "uint256",
                                "name": "totalNetworkFee",
                                "type": "uint256"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "address payable",
                                        "name": "exchange",
                                        "type": "address"
                                    },
                                    {
                                        "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": "routes",
                                "type": "tuple[]"
                            }
                        ],
                        "internalType": "struct Utils.Path[]",
                        "name": "path",
                        "type": "tuple[]"
                    }
                ],
                "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"
                    },
                    {
                        "internalType": "string",
                        "name": "referrer",
                        "type": "string"
                    },
                    {
                        "internalType": "bool",
                        "name": "useReduxToken",
                        "type": "bool"
                    },
                    {
                        "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": "exchange",
                                                "type": "address"
                                            },
                                            {
                                                "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": "routes",
                                        "type": "tuple[]"
                                    }
                                ],
                                "internalType": "struct Utils.Path[]",
                                "name": "path",
                                "type": "tuple[]"
                            }
                        ],
                        "internalType": "struct Utils.MegaSwapPath[]",
                        "name": "path",
                        "type": "tuple[]"
                    }
                ],
                "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": "address",
                        "name": "toToken",
                        "type": "address"
                    },
                    {
                        "internalType": "uint256",
                        "name": "fromAmount",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "toAmount",
                        "type": "uint256"
                    },
                    {
                        "internalType": "address payable",
                        "name": "beneficiary",
                        "type": "address"
                    },
                    {
                        "internalType": "string",
                        "name": "referrer",
                        "type": "string"
                    },
                    {
                        "internalType": "bool",
                        "name": "useReduxToken",
                        "type": "bool"
                    },
                    {
                        "components": [
                            {
                                "internalType": "address payable",
                                "name": "exchange",
                                "type": "address"
                            },
                            {
                                "internalType": "address",
                                "name": "targetExchange",
                                "type": "address"
                            },
                            {
                                "internalType": "uint256",
                                "name": "fromAmount",
                                "type": "uint256"
                            },
                            {
                                "internalType": "uint256",
                                "name": "toAmount",
                                "type": "uint256"
                            },
                            {
                                "internalType": "bytes",
                                "name": "payload",
                                "type": "bytes"
                            },
                            {
                                "internalType": "uint256",
                                "name": "networkFee",
                                "type": "uint256"
                            }
                        ],
                        "internalType": "struct Utils.BuyRoute[]",
                        "name": "route",
                        "type": "tuple[]"
                    }
                ],
                "internalType": "struct Utils.BuyData",
                "name": "data",
                "type": "tuple"
            }
        ],
        "name": "buy",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    }
]
