[{"inputs":[{"internalType":"address","name":"adapter","type":"address"},{"internalType":"address","name":"treasure","type":"address"},{"internalType":"uint256","name":"delta","type":"uint256"},{"internalType":"address","name":"implementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"bytes","name":"error","type":"bytes"}],"name":"SwapDexError","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"error","type":"bytes"}],"name":"DCAError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"error","type":"bytes"}],"name":"InitOrderDCAError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign1","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"error","type":"bytes"}],"name":"LimitOrderDEXError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign1","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"sign2","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"error","type":"bytes"}],"name":"LimitOrderP2PError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign","type":"bytes"}],"name":"RemoveLimitOrderP2P","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":false,"internalType":"enum Storage.TypeFee","name":"TypeFee","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"SetFee","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DCA","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DCA_TM","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INIT_TIME_MULTIPLIER","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT_ORDER_P2P","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORDER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORDER_DCA","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER_DATA","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_DEX","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_DEX_ETH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIME_MULTIPLIER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"sign","type":"bytes[]"}],"name":"dca","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"sign","type":"bytes[]"}],"name":"dcaTM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDCA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeLMDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeLMP2P","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256[]","name":"amountsIn","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amountsOut","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"getOrder","outputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"deadline","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Storage.SignerData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"getOrderDCA","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint128","name":"volume","type":"uint128"},{"internalType":"uint64","name":"levels","type":"uint64"},{"internalType":"uint64","name":"period","type":"uint64"},{"internalType":"uint96","name":"slippage","type":"uint96"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"scale","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct Storage.OrderDCA","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"getProcessingDCA","outputs":[{"components":[{"internalType":"uint256","name":"lastLevel","type":"uint256"},{"internalType":"uint256","name":"scaleAmount","type":"uint256"},{"internalType":"uint256","name":"done","type":"uint256"},{"internalType":"uint256","name":"doneTM","type":"uint256"}],"internalType":"struct Storage.ProcessingDCA","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":"bytes","name":"sign","type":"bytes"}],"name":"getTimeMultiplier","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"interval","type":"uint256"}],"internalType":"struct Storage.TimeMultiplier","name":"","type":"tuple"}],"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":[{"components":[{"internalType":"bytes","name":"sign","type":"bytes"},{"components":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint128","name":"volume","type":"uint128"},{"internalType":"uint64","name":"levels","type":"uint64"},{"internalType":"uint64","name":"period","type":"uint64"},{"internalType":"uint96","name":"slippage","type":"uint96"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"scale","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct Storage.OrderDCA","name":"dca","type":"tuple"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"interval","type":"uint256"}],"internalType":"struct Storage.TimeMultiplier","name":"tm","type":"tuple"}],"internalType":"struct Storage.Order","name":"order","type":"tuple"}],"internalType":"struct ParalaxExchangeProxy.InitOrderDCA[]","name":"dataInitOrderDCA","type":"tuple[]"}],"name":"initOrderDCA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"sign","type":"bytes"},{"components":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint128","name":"volume","type":"uint128"},{"internalType":"uint64","name":"levels","type":"uint64"},{"internalType":"uint64","name":"period","type":"uint64"},{"internalType":"uint96","name":"slippage","type":"uint96"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"scale","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct Storage.OrderDCA","name":"dca","type":"tuple"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"interval","type":"uint256"}],"internalType":"struct Storage.TimeMultiplier","name":"tm","type":"tuple"}],"internalType":"struct Storage.Order","name":"order","type":"tuple"}],"internalType":"struct ParalaxExchangeProxy.InitOrderDCA[]","name":"dataInitOrderDCA","type":"tuple[]"}],"name":"initTimeMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"sign","type":"bytes"},{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"deadline","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Storage.SignerData","name":"signerData","type":"tuple"},{"internalType":"address[]","name":"path","type":"address[]"}],"internalType":"struct ParalaxExchangeProxy.LimitOrderDEX[]","name":"limitOrdersDEX","type":"tuple[]"}],"name":"limitOrderDEX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"sign1","type":"bytes"},{"internalType":"bytes","name":"sign2","type":"bytes"},{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"deadline","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Storage.SignerData","name":"signerData1","type":"tuple"},{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"deadline","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Storage.SignerData","name":"signerData2","type":"tuple"}],"internalType":"struct ParalaxExchangeProxy.OrderLMP2P[]","name":"orders","type":"tuple[]"}],"name":"limitOrderP2P","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"removeLimitOrderP2P","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":"uint256","name":"fee","type":"uint256"}],"name":"setFeeDCA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFeeDEX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFeeLMDEX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFeeLMP2P","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapDex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapDexETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"test","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]