@paraswap/dex-lib 3.11.2 → 3.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/aws.xml +17 -0
- package/.idea/codeStyles/Project.xml +19 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/paraswap-dex-lib.iml +9 -0
- package/.idea/prettier.xml +7 -0
- package/.idea/vcs.xml +6 -0
- package/build/abi/integral/factory.json +333 -0
- package/build/abi/{angle-transmuter/ChainlinkEACAggregatorProxy.json → integral/oracle.json} +239 -247
- package/build/abi/{curve-v1/StableSwapUSDN.json → integral/pool.json} +487 -450
- package/build/abi/{RamsesV2Pool.abi.json → integral/relayer.json} +833 -851
- package/build/dex/aave-v1/aave-v1.d.ts +1 -2
- package/build/dex/aave-v1/aave-v1.js +0 -22
- package/build/dex/aave-v1/aave-v1.js.map +1 -1
- package/build/dex/bProtocol.d.ts +18 -0
- package/build/dex/bProtocol.js +39 -0
- package/build/dex/bProtocol.js.map +1 -0
- package/build/dex/bancor.d.ts +26 -0
- package/build/dex/bancor.js +58 -0
- package/build/dex/bancor.js.map +1 -0
- package/build/dex/compound.d.ts +18 -0
- package/build/dex/compound.js +46 -0
- package/build/dex/compound.js.map +1 -0
- package/build/dex/curve-v2.d.ts +58 -0
- package/build/dex/curve-v2.js +180 -0
- package/build/dex/curve-v2.js.map +1 -0
- package/build/dex/dodo-v1.d.ts +33 -0
- package/build/dex/dodo-v1.js +63 -0
- package/build/dex/dodo-v1.js.map +1 -0
- package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +49 -0
- package/build/dex/fluid-dex/fluid-dex-generate-pool.js +104 -0
- package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +1 -0
- package/build/dex/fluid-dex/fluid-dex-pool.d.ts +47 -0
- package/build/dex/fluid-dex/fluid-dex-pool.js +119 -0
- package/build/dex/fluid-dex/fluid-dex-pool.js.map +1 -0
- package/build/dex/fluid-dex/fluid-dex.d.ts +1 -1
- package/build/dex/fluid-dex/fluid-dex.js +7 -11
- package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
- package/build/dex/fluid-dex/types.d.ts +1 -5
- package/build/dex/integral/config.d.ts +4 -0
- package/build/dex/integral/config.js +20 -0
- package/build/dex/integral/config.js.map +1 -0
- package/build/dex/integral/context.d.ts +40 -0
- package/build/dex/integral/context.js +158 -0
- package/build/dex/integral/context.js.map +1 -0
- package/build/dex/integral/integral-factory.d.ts +24 -0
- package/build/dex/integral/integral-factory.js +95 -0
- package/build/dex/integral/integral-factory.js.map +1 -0
- package/build/dex/integral/integral-pool.d.ts +50 -0
- package/build/dex/integral/integral-pool.js +149 -0
- package/build/dex/integral/integral-pool.js.map +1 -0
- package/build/dex/integral/integral-pricing.d.ts +18 -0
- package/build/dex/integral/integral-pricing.js +114 -0
- package/build/dex/integral/integral-pricing.js.map +1 -0
- package/build/dex/integral/integral-relayer.d.ts +42 -0
- package/build/dex/integral/integral-relayer.js +192 -0
- package/build/dex/integral/integral-relayer.js.map +1 -0
- package/build/dex/integral/integral-token.d.ts +27 -0
- package/build/dex/integral/integral-token.js +59 -0
- package/build/dex/integral/integral-token.js.map +1 -0
- package/build/dex/{inception/inception-native.d.ts → integral/integral.d.ts} +19 -21
- package/build/dex/integral/integral.js +376 -0
- package/build/dex/integral/integral.js.map +1 -0
- package/build/dex/integral/types.d.ts +85 -0
- package/build/dex/integral/types.js +9 -0
- package/build/dex/integral/types.js.map +1 -0
- package/build/dex/integral/utils-e2e.d.ts +9 -0
- package/build/dex/integral/utils-e2e.js +131 -0
- package/build/dex/integral/utils-e2e.js.map +1 -0
- package/build/dex/integral/utils.d.ts +17 -0
- package/build/dex/integral/utils.js +94 -0
- package/build/dex/integral/utils.js.map +1 -0
- package/build/dex/jarvis.d.ts +1 -2
- package/build/dex/jarvis.js +0 -58
- package/build/dex/jarvis.js.map +1 -1
- package/build/dex/lido.d.ts +19 -0
- package/build/dex/lido.js +42 -0
- package/build/dex/lido.js.map +1 -0
- package/build/dex/onebit.d.ts +25 -0
- package/build/dex/onebit.js +42 -0
- package/build/dex/onebit.js.map +1 -0
- package/build/dex/platypus/platypus.d.ts +1 -2
- package/build/dex/platypus/platypus.js +0 -31
- package/build/dex/platypus/platypus.js.map +1 -1
- package/build/dex/smoothy.d.ts +26 -0
- package/build/dex/smoothy.js +48 -0
- package/build/dex/smoothy.js.map +1 -0
- package/build/dex/stable-pool.d.ts +28 -0
- package/build/dex/stable-pool.js +62 -0
- package/build/dex/stable-pool.js.map +1 -0
- package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
- package/build/dex/swaap-v1/swaap-v1.js +0 -10
- package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
- package/build/dex/trader-joe-v2.1/optimizer.d.ts +2 -0
- package/build/dex/trader-joe-v2.1/optimizer.js +47 -0
- package/build/dex/trader-joe-v2.1/optimizer.js.map +1 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
- package/build/dex/trader-joe-v2.1.d.ts +43 -0
- package/build/dex/trader-joe-v2.1.js +79 -0
- package/build/dex/trader-joe-v2.1.js.map +1 -0
- package/build/dex/zerox/index.d.ts +26 -4
- package/build/dex/zerox/index.js +42 -50
- package/build/dex/zerox/index.js.map +1 -1
- package/build/dex/zerox/types.d.ts +0 -29
- package/build/dex/zerox/types.js +1 -8
- package/build/dex/zerox/types.js.map +1 -1
- package/package.json +1 -1
- package/src/dex/fluid-dex/fluid-dex.ts +8 -18
- package/src/dex/fluid-dex/types.ts +1 -5
- package/build/abi/Aave_GSM.json +0 -751
- package/build/abi/Balancer.json +0 -257
- package/build/abi/BalancerV2.json +0 -1179
- package/build/abi/RamsesV2Quoter.abi.json +0 -274
- package/build/abi/USDM.json +0 -807
- package/build/abi/UniswapV2Router.json +0 -397
- package/build/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +0 -1246
- package/build/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
- package/build/abi/curve-v1/CurveTokenV1.json +0 -305
- package/build/abi/curve-v1/CurveTokenV2.json +0 -318
- package/build/abi/curve-v1/CurveV1StableNg.json +0 -1452
- package/build/abi/curve-v1/CurveV2Swap.json +0 -700
- package/build/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
- package/build/abi/curve-v1/FactoryRegistry.json +0 -508
- package/build/abi/curve-v1/StableSwapAave.json +0 -1152
- package/build/abi/curve-v1/StableSwapBUSD.json +0 -814
- package/build/abi/curve-v1/StableSwapCompound.json +0 -814
- package/build/abi/curve-v1/StableSwapIDLE.json +0 -1253
- package/build/abi/curve-v1/StableSwapPax.json +0 -865
- package/build/abi/curve-v1/StableSwapSnow.json +0 -900
- package/build/abi/curve-v1/StableSwapUSDT.json +0 -814
- package/build/abi/curve-v1/StableSwapY.json +0 -814
- package/build/abi/inception/inception-ineth-pool.json +0 -1062
- package/build/abi/inception/inception-ineth.json +0 -609
- package/build/abi/inception/inception-ratio-feed.json +0 -329
- package/build/abi/inception/inception-vault.json +0 -991
- package/build/abi/kyberdmm/kyber-storage.abi.json +0 -824
- package/build/abi/kyberdmm.abi.json +0 -1148
- package/build/abi/maverick-v2/MaverickV2Quoter.json +0 -278
- package/build/abi/nerve/nerve-metapool.json +0 -790
- package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
- package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
- package/build/dex/balancer-v1/balancer-pools.json +0 -33333
- package/build/dex/bebop/websocket-fetcher.d.ts +0 -35
- package/build/dex/bebop/websocket-fetcher.js +0 -87
- package/build/dex/bebop/websocket-fetcher.js.map +0 -1
- package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
- package/build/dex/idle-dao/idle-dao-pool.js +0 -176
- package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
- package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
- package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
- package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
- package/build/dex/idle-dao/scripts.d.ts +0 -9
- package/build/dex/idle-dao/scripts.js +0 -552
- package/build/dex/idle-dao/scripts.js.map +0 -1
- package/build/dex/inception/config.d.ts +0 -4
- package/build/dex/inception/config.js +0 -109
- package/build/dex/inception/config.js.map +0 -1
- package/build/dex/inception/inception-event-pool.d.ts +0 -16
- package/build/dex/inception/inception-event-pool.js +0 -51
- package/build/dex/inception/inception-event-pool.js.map +0 -1
- package/build/dex/inception/inception-native.js +0 -131
- package/build/dex/inception/inception-native.js.map +0 -1
- package/build/dex/inception/inception-pool.d.ts +0 -18
- package/build/dex/inception/inception-pool.js +0 -32
- package/build/dex/inception/inception-pool.js.map +0 -1
- package/build/dex/inception/inception-price-feed.d.ts +0 -19
- package/build/dex/inception/inception-price-feed.js +0 -51
- package/build/dex/inception/inception-price-feed.js.map +0 -1
- package/build/dex/inception/inception.d.ts +0 -43
- package/build/dex/inception/inception.js +0 -204
- package/build/dex/inception/inception.js.map +0 -1
- package/build/dex/inception/tokens.d.ts +0 -9
- package/build/dex/inception/tokens.js +0 -28
- package/build/dex/inception/tokens.js.map +0 -1
- package/build/dex/inception/types.d.ts +0 -22
- package/build/dex/inception/types.js +0 -3
- package/build/dex/inception/types.js.map +0 -1
- package/build/dex/inception/utils.d.ts +0 -6
- package/build/dex/inception/utils.js +0 -37
- package/build/dex/inception/utils.js.map +0 -1
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
- package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
- package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
- package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
- package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
- package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
- package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
|
@@ -8,43 +8,25 @@
|
|
|
8
8
|
"anonymous": false,
|
|
9
9
|
"inputs": [
|
|
10
10
|
{
|
|
11
|
-
"indexed":
|
|
11
|
+
"indexed": false,
|
|
12
12
|
"internalType": "address",
|
|
13
|
-
"name": "
|
|
13
|
+
"name": "token",
|
|
14
14
|
"type": "address"
|
|
15
15
|
},
|
|
16
|
-
{
|
|
17
|
-
"indexed": true,
|
|
18
|
-
"internalType": "int24",
|
|
19
|
-
"name": "tickLower",
|
|
20
|
-
"type": "int24"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"indexed": true,
|
|
24
|
-
"internalType": "int24",
|
|
25
|
-
"name": "tickUpper",
|
|
26
|
-
"type": "int24"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"indexed": false,
|
|
30
|
-
"internalType": "uint128",
|
|
31
|
-
"name": "amount",
|
|
32
|
-
"type": "uint128"
|
|
33
|
-
},
|
|
34
16
|
{
|
|
35
17
|
"indexed": false,
|
|
36
|
-
"internalType": "
|
|
37
|
-
"name": "
|
|
38
|
-
"type": "
|
|
18
|
+
"internalType": "address",
|
|
19
|
+
"name": "to",
|
|
20
|
+
"type": "address"
|
|
39
21
|
},
|
|
40
22
|
{
|
|
41
23
|
"indexed": false,
|
|
42
24
|
"internalType": "uint256",
|
|
43
|
-
"name": "
|
|
25
|
+
"name": "amount",
|
|
44
26
|
"type": "uint256"
|
|
45
27
|
}
|
|
46
28
|
],
|
|
47
|
-
"name": "
|
|
29
|
+
"name": "Approve",
|
|
48
30
|
"type": "event"
|
|
49
31
|
},
|
|
50
32
|
{
|
|
@@ -53,134 +35,154 @@
|
|
|
53
35
|
{
|
|
54
36
|
"indexed": true,
|
|
55
37
|
"internalType": "address",
|
|
56
|
-
"name": "
|
|
38
|
+
"name": "sender",
|
|
57
39
|
"type": "address"
|
|
58
40
|
},
|
|
59
41
|
{
|
|
60
42
|
"indexed": false,
|
|
61
43
|
"internalType": "address",
|
|
62
|
-
"name": "
|
|
44
|
+
"name": "tokenIn",
|
|
63
45
|
"type": "address"
|
|
64
46
|
},
|
|
65
47
|
{
|
|
66
|
-
"indexed":
|
|
67
|
-
"internalType": "
|
|
68
|
-
"name": "
|
|
69
|
-
"type": "
|
|
48
|
+
"indexed": false,
|
|
49
|
+
"internalType": "address",
|
|
50
|
+
"name": "tokenOut",
|
|
51
|
+
"type": "address"
|
|
70
52
|
},
|
|
71
53
|
{
|
|
72
|
-
"indexed":
|
|
73
|
-
"internalType": "
|
|
74
|
-
"name": "
|
|
75
|
-
"type": "
|
|
54
|
+
"indexed": false,
|
|
55
|
+
"internalType": "uint256",
|
|
56
|
+
"name": "amountIn",
|
|
57
|
+
"type": "uint256"
|
|
76
58
|
},
|
|
77
59
|
{
|
|
78
60
|
"indexed": false,
|
|
79
|
-
"internalType": "
|
|
80
|
-
"name": "
|
|
81
|
-
"type": "
|
|
61
|
+
"internalType": "uint256",
|
|
62
|
+
"name": "amountInMax",
|
|
63
|
+
"type": "uint256"
|
|
82
64
|
},
|
|
83
65
|
{
|
|
84
66
|
"indexed": false,
|
|
85
|
-
"internalType": "
|
|
86
|
-
"name": "
|
|
87
|
-
"type": "
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"name": "Collect",
|
|
91
|
-
"type": "event"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"anonymous": false,
|
|
95
|
-
"inputs": [
|
|
67
|
+
"internalType": "uint256",
|
|
68
|
+
"name": "amountOut",
|
|
69
|
+
"type": "uint256"
|
|
70
|
+
},
|
|
96
71
|
{
|
|
97
|
-
"indexed":
|
|
98
|
-
"internalType": "
|
|
99
|
-
"name": "
|
|
100
|
-
"type": "
|
|
72
|
+
"indexed": false,
|
|
73
|
+
"internalType": "bool",
|
|
74
|
+
"name": "wrapUnwrap",
|
|
75
|
+
"type": "bool"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"indexed": false,
|
|
79
|
+
"internalType": "uint256",
|
|
80
|
+
"name": "fee",
|
|
81
|
+
"type": "uint256"
|
|
101
82
|
},
|
|
102
83
|
{
|
|
103
84
|
"indexed": true,
|
|
104
85
|
"internalType": "address",
|
|
105
|
-
"name": "
|
|
86
|
+
"name": "to",
|
|
106
87
|
"type": "address"
|
|
107
88
|
},
|
|
108
89
|
{
|
|
109
90
|
"indexed": false,
|
|
110
|
-
"internalType": "
|
|
111
|
-
"name": "
|
|
112
|
-
"type": "
|
|
91
|
+
"internalType": "address",
|
|
92
|
+
"name": "orderContract",
|
|
93
|
+
"type": "address"
|
|
113
94
|
},
|
|
114
95
|
{
|
|
115
|
-
"indexed":
|
|
116
|
-
"internalType": "
|
|
117
|
-
"name": "
|
|
118
|
-
"type": "
|
|
96
|
+
"indexed": true,
|
|
97
|
+
"internalType": "uint256",
|
|
98
|
+
"name": "orderId",
|
|
99
|
+
"type": "uint256"
|
|
119
100
|
}
|
|
120
101
|
],
|
|
121
|
-
"name": "
|
|
102
|
+
"name": "Buy",
|
|
122
103
|
"type": "event"
|
|
123
104
|
},
|
|
124
105
|
{
|
|
125
106
|
"anonymous": false,
|
|
126
107
|
"inputs": [
|
|
127
108
|
{
|
|
128
|
-
"indexed":
|
|
129
|
-
"internalType": "address",
|
|
130
|
-
"name": "sender",
|
|
131
|
-
"type": "address"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"indexed": true,
|
|
109
|
+
"indexed": false,
|
|
135
110
|
"internalType": "address",
|
|
136
|
-
"name": "
|
|
111
|
+
"name": "delay",
|
|
137
112
|
"type": "address"
|
|
138
|
-
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"name": "DelaySet",
|
|
116
|
+
"type": "event"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"anonymous": false,
|
|
120
|
+
"inputs": [
|
|
139
121
|
{
|
|
140
122
|
"indexed": false,
|
|
141
123
|
"internalType": "uint256",
|
|
142
|
-
"name": "
|
|
124
|
+
"name": "gasCost",
|
|
143
125
|
"type": "uint256"
|
|
144
|
-
}
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"name": "EthTransferGasCostSet",
|
|
129
|
+
"type": "event"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"anonymous": false,
|
|
133
|
+
"inputs": [
|
|
145
134
|
{
|
|
146
135
|
"indexed": false,
|
|
147
136
|
"internalType": "uint256",
|
|
148
|
-
"name": "
|
|
137
|
+
"name": "limit",
|
|
149
138
|
"type": "uint256"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"name": "ExecutionGasLimitSet",
|
|
142
|
+
"type": "event"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"anonymous": false,
|
|
146
|
+
"inputs": [
|
|
147
|
+
{
|
|
148
|
+
"indexed": false,
|
|
149
|
+
"internalType": "address",
|
|
150
|
+
"name": "_factory",
|
|
151
|
+
"type": "address"
|
|
150
152
|
},
|
|
151
153
|
{
|
|
152
154
|
"indexed": false,
|
|
153
|
-
"internalType": "
|
|
154
|
-
"name": "
|
|
155
|
-
"type": "
|
|
155
|
+
"internalType": "address",
|
|
156
|
+
"name": "_delay",
|
|
157
|
+
"type": "address"
|
|
156
158
|
},
|
|
157
159
|
{
|
|
158
160
|
"indexed": false,
|
|
159
|
-
"internalType": "
|
|
160
|
-
"name": "
|
|
161
|
-
"type": "
|
|
161
|
+
"internalType": "address",
|
|
162
|
+
"name": "_weth",
|
|
163
|
+
"type": "address"
|
|
162
164
|
}
|
|
163
165
|
],
|
|
164
|
-
"name": "
|
|
166
|
+
"name": "Initialized",
|
|
165
167
|
"type": "event"
|
|
166
168
|
},
|
|
167
169
|
{
|
|
168
170
|
"anonymous": false,
|
|
169
171
|
"inputs": [
|
|
170
172
|
{
|
|
171
|
-
"indexed":
|
|
172
|
-
"internalType": "
|
|
173
|
-
"name": "
|
|
174
|
-
"type": "
|
|
173
|
+
"indexed": true,
|
|
174
|
+
"internalType": "address",
|
|
175
|
+
"name": "oneInchRouter",
|
|
176
|
+
"type": "address"
|
|
175
177
|
},
|
|
176
178
|
{
|
|
177
179
|
"indexed": false,
|
|
178
|
-
"internalType": "
|
|
179
|
-
"name": "
|
|
180
|
-
"type": "
|
|
180
|
+
"internalType": "bool",
|
|
181
|
+
"name": "whitelisted",
|
|
182
|
+
"type": "bool"
|
|
181
183
|
}
|
|
182
184
|
],
|
|
183
|
-
"name": "
|
|
185
|
+
"name": "OneInchRouterWhitelisted",
|
|
184
186
|
"type": "event"
|
|
185
187
|
},
|
|
186
188
|
{
|
|
@@ -188,18 +190,12 @@
|
|
|
188
190
|
"inputs": [
|
|
189
191
|
{
|
|
190
192
|
"indexed": false,
|
|
191
|
-
"internalType": "
|
|
192
|
-
"name": "
|
|
193
|
-
"type": "
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"indexed": false,
|
|
197
|
-
"internalType": "int24",
|
|
198
|
-
"name": "tick",
|
|
199
|
-
"type": "int24"
|
|
193
|
+
"internalType": "address",
|
|
194
|
+
"name": "owner",
|
|
195
|
+
"type": "address"
|
|
200
196
|
}
|
|
201
197
|
],
|
|
202
|
-
"name": "
|
|
198
|
+
"name": "OwnerSet",
|
|
203
199
|
"type": "event"
|
|
204
200
|
},
|
|
205
201
|
{
|
|
@@ -208,78 +204,92 @@
|
|
|
208
204
|
{
|
|
209
205
|
"indexed": false,
|
|
210
206
|
"internalType": "address",
|
|
211
|
-
"name": "
|
|
207
|
+
"name": "pair",
|
|
212
208
|
"type": "address"
|
|
213
209
|
},
|
|
210
|
+
{
|
|
211
|
+
"indexed": false,
|
|
212
|
+
"internalType": "bool",
|
|
213
|
+
"name": "enabled",
|
|
214
|
+
"type": "bool"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"name": "PairEnabledSet",
|
|
218
|
+
"type": "event"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"anonymous": false,
|
|
222
|
+
"inputs": [
|
|
214
223
|
{
|
|
215
224
|
"indexed": true,
|
|
216
225
|
"internalType": "address",
|
|
217
|
-
"name": "
|
|
226
|
+
"name": "sender",
|
|
218
227
|
"type": "address"
|
|
219
228
|
},
|
|
220
229
|
{
|
|
221
|
-
"indexed":
|
|
222
|
-
"internalType": "
|
|
223
|
-
"name": "
|
|
224
|
-
"type": "
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"indexed": true,
|
|
228
|
-
"internalType": "int24",
|
|
229
|
-
"name": "tickUpper",
|
|
230
|
-
"type": "int24"
|
|
230
|
+
"indexed": false,
|
|
231
|
+
"internalType": "address",
|
|
232
|
+
"name": "tokenIn",
|
|
233
|
+
"type": "address"
|
|
231
234
|
},
|
|
232
235
|
{
|
|
233
236
|
"indexed": false,
|
|
234
|
-
"internalType": "
|
|
235
|
-
"name": "
|
|
236
|
-
"type": "
|
|
237
|
+
"internalType": "address",
|
|
238
|
+
"name": "tokenOut",
|
|
239
|
+
"type": "address"
|
|
237
240
|
},
|
|
238
241
|
{
|
|
239
242
|
"indexed": false,
|
|
240
243
|
"internalType": "uint256",
|
|
241
|
-
"name": "
|
|
244
|
+
"name": "amountIn",
|
|
242
245
|
"type": "uint256"
|
|
243
246
|
},
|
|
244
247
|
{
|
|
245
|
-
"indexed":
|
|
248
|
+
"indexed": true,
|
|
246
249
|
"internalType": "uint256",
|
|
247
|
-
"name": "
|
|
250
|
+
"name": "delayOrderId",
|
|
248
251
|
"type": "uint256"
|
|
249
252
|
}
|
|
250
253
|
],
|
|
251
|
-
"name": "
|
|
254
|
+
"name": "RebalanceSellWithDelay",
|
|
252
255
|
"type": "event"
|
|
253
256
|
},
|
|
254
257
|
{
|
|
255
258
|
"anonymous": false,
|
|
256
259
|
"inputs": [
|
|
257
260
|
{
|
|
258
|
-
"indexed":
|
|
259
|
-
"internalType": "
|
|
260
|
-
"name": "
|
|
261
|
-
"type": "
|
|
261
|
+
"indexed": true,
|
|
262
|
+
"internalType": "address",
|
|
263
|
+
"name": "oneInchRouter",
|
|
264
|
+
"type": "address"
|
|
262
265
|
},
|
|
263
266
|
{
|
|
264
267
|
"indexed": false,
|
|
265
|
-
"internalType": "
|
|
266
|
-
"name": "
|
|
267
|
-
"type": "
|
|
268
|
+
"internalType": "uint256",
|
|
269
|
+
"name": "gas",
|
|
270
|
+
"type": "uint256"
|
|
268
271
|
},
|
|
269
272
|
{
|
|
270
273
|
"indexed": false,
|
|
271
|
-
"internalType": "
|
|
272
|
-
"name": "
|
|
273
|
-
"type": "
|
|
274
|
-
}
|
|
274
|
+
"internalType": "bytes",
|
|
275
|
+
"name": "data",
|
|
276
|
+
"type": "bytes"
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"name": "RebalanceSellWithOneInch",
|
|
280
|
+
"type": "event"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"anonymous": false,
|
|
284
|
+
"inputs": [
|
|
275
285
|
{
|
|
276
286
|
"indexed": false,
|
|
277
|
-
"internalType": "
|
|
278
|
-
"name": "
|
|
279
|
-
"type": "
|
|
287
|
+
"internalType": "address",
|
|
288
|
+
"name": "rebalancer",
|
|
289
|
+
"type": "address"
|
|
280
290
|
}
|
|
281
291
|
],
|
|
282
|
-
"name": "
|
|
292
|
+
"name": "RebalancerSet",
|
|
283
293
|
"type": "event"
|
|
284
294
|
},
|
|
285
295
|
{
|
|
@@ -292,368 +302,270 @@
|
|
|
292
302
|
"type": "address"
|
|
293
303
|
},
|
|
294
304
|
{
|
|
295
|
-
"indexed":
|
|
305
|
+
"indexed": false,
|
|
306
|
+
"internalType": "address",
|
|
307
|
+
"name": "tokenIn",
|
|
308
|
+
"type": "address"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"indexed": false,
|
|
296
312
|
"internalType": "address",
|
|
297
|
-
"name": "
|
|
313
|
+
"name": "tokenOut",
|
|
298
314
|
"type": "address"
|
|
299
315
|
},
|
|
300
316
|
{
|
|
301
317
|
"indexed": false,
|
|
302
|
-
"internalType": "
|
|
303
|
-
"name": "
|
|
304
|
-
"type": "
|
|
318
|
+
"internalType": "uint256",
|
|
319
|
+
"name": "amountIn",
|
|
320
|
+
"type": "uint256"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"indexed": false,
|
|
324
|
+
"internalType": "uint256",
|
|
325
|
+
"name": "amountOut",
|
|
326
|
+
"type": "uint256"
|
|
305
327
|
},
|
|
306
328
|
{
|
|
307
329
|
"indexed": false,
|
|
308
|
-
"internalType": "
|
|
309
|
-
"name": "
|
|
310
|
-
"type": "
|
|
330
|
+
"internalType": "uint256",
|
|
331
|
+
"name": "amountOutMin",
|
|
332
|
+
"type": "uint256"
|
|
311
333
|
},
|
|
312
334
|
{
|
|
313
335
|
"indexed": false,
|
|
314
|
-
"internalType": "
|
|
315
|
-
"name": "
|
|
316
|
-
"type": "
|
|
336
|
+
"internalType": "bool",
|
|
337
|
+
"name": "wrapUnwrap",
|
|
338
|
+
"type": "bool"
|
|
317
339
|
},
|
|
318
340
|
{
|
|
319
341
|
"indexed": false,
|
|
320
|
-
"internalType": "
|
|
321
|
-
"name": "
|
|
322
|
-
"type": "
|
|
342
|
+
"internalType": "uint256",
|
|
343
|
+
"name": "fee",
|
|
344
|
+
"type": "uint256"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"indexed": true,
|
|
348
|
+
"internalType": "address",
|
|
349
|
+
"name": "to",
|
|
350
|
+
"type": "address"
|
|
323
351
|
},
|
|
324
352
|
{
|
|
325
353
|
"indexed": false,
|
|
326
|
-
"internalType": "
|
|
327
|
-
"name": "
|
|
328
|
-
"type": "
|
|
354
|
+
"internalType": "address",
|
|
355
|
+
"name": "orderContract",
|
|
356
|
+
"type": "address"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"indexed": true,
|
|
360
|
+
"internalType": "uint256",
|
|
361
|
+
"name": "orderId",
|
|
362
|
+
"type": "uint256"
|
|
329
363
|
}
|
|
330
364
|
],
|
|
331
|
-
"name": "
|
|
365
|
+
"name": "Sell",
|
|
332
366
|
"type": "event"
|
|
333
367
|
},
|
|
334
368
|
{
|
|
369
|
+
"anonymous": false,
|
|
335
370
|
"inputs": [
|
|
336
371
|
{
|
|
372
|
+
"indexed": false,
|
|
373
|
+
"internalType": "address",
|
|
374
|
+
"name": "pair",
|
|
375
|
+
"type": "address"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"indexed": false,
|
|
337
379
|
"internalType": "uint256",
|
|
338
|
-
"name": "
|
|
380
|
+
"name": "fee",
|
|
339
381
|
"type": "uint256"
|
|
340
382
|
}
|
|
341
383
|
],
|
|
342
|
-
"name": "
|
|
343
|
-
"
|
|
384
|
+
"name": "SwapFeeSet",
|
|
385
|
+
"type": "event"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"anonymous": false,
|
|
389
|
+
"inputs": [
|
|
344
390
|
{
|
|
345
|
-
"
|
|
346
|
-
"
|
|
347
|
-
"
|
|
391
|
+
"indexed": false,
|
|
392
|
+
"internalType": "address",
|
|
393
|
+
"name": "token",
|
|
394
|
+
"type": "address"
|
|
348
395
|
},
|
|
349
396
|
{
|
|
350
|
-
"
|
|
351
|
-
"
|
|
352
|
-
"
|
|
397
|
+
"indexed": false,
|
|
398
|
+
"internalType": "uint256",
|
|
399
|
+
"name": "limit",
|
|
400
|
+
"type": "uint256"
|
|
353
401
|
}
|
|
354
402
|
],
|
|
355
|
-
"
|
|
356
|
-
"type": "
|
|
403
|
+
"name": "TokenLimitMaxMultiplierSet",
|
|
404
|
+
"type": "event"
|
|
357
405
|
},
|
|
358
406
|
{
|
|
407
|
+
"anonymous": false,
|
|
359
408
|
"inputs": [
|
|
360
409
|
{
|
|
361
|
-
"
|
|
362
|
-
"
|
|
363
|
-
"
|
|
410
|
+
"indexed": false,
|
|
411
|
+
"internalType": "address",
|
|
412
|
+
"name": "token",
|
|
413
|
+
"type": "address"
|
|
364
414
|
},
|
|
365
415
|
{
|
|
366
|
-
"
|
|
367
|
-
"
|
|
368
|
-
"
|
|
416
|
+
"indexed": false,
|
|
417
|
+
"internalType": "uint256",
|
|
418
|
+
"name": "limit",
|
|
419
|
+
"type": "uint256"
|
|
369
420
|
}
|
|
370
421
|
],
|
|
371
|
-
"name": "
|
|
372
|
-
"
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
"internalType": "int128",
|
|
380
|
-
"name": "veRamAmount",
|
|
381
|
-
"type": "int128"
|
|
382
|
-
},
|
|
422
|
+
"name": "TokenLimitMinSet",
|
|
423
|
+
"type": "event"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"anonymous": false,
|
|
427
|
+
"inputs": [
|
|
383
428
|
{
|
|
384
|
-
"
|
|
385
|
-
"
|
|
386
|
-
"
|
|
429
|
+
"indexed": false,
|
|
430
|
+
"internalType": "address",
|
|
431
|
+
"name": "pair",
|
|
432
|
+
"type": "address"
|
|
387
433
|
},
|
|
388
434
|
{
|
|
389
|
-
"
|
|
390
|
-
"
|
|
391
|
-
"
|
|
435
|
+
"indexed": false,
|
|
436
|
+
"internalType": "uint16",
|
|
437
|
+
"name": "tolerance",
|
|
438
|
+
"type": "uint16"
|
|
392
439
|
}
|
|
393
440
|
],
|
|
394
|
-
"
|
|
395
|
-
"type": "
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
"inputs": [],
|
|
399
|
-
"name": "boostedLiquidity",
|
|
400
|
-
"outputs": [
|
|
401
|
-
{
|
|
402
|
-
"internalType": "uint128",
|
|
403
|
-
"name": "",
|
|
404
|
-
"type": "uint128"
|
|
405
|
-
}
|
|
406
|
-
],
|
|
407
|
-
"stateMutability": "view",
|
|
408
|
-
"type": "function"
|
|
441
|
+
"name": "ToleranceSet",
|
|
442
|
+
"type": "event"
|
|
409
443
|
},
|
|
410
444
|
{
|
|
445
|
+
"anonymous": false,
|
|
411
446
|
"inputs": [
|
|
412
447
|
{
|
|
413
|
-
"
|
|
414
|
-
"
|
|
415
|
-
"
|
|
416
|
-
|
|
417
|
-
{
|
|
418
|
-
"internalType": "int24",
|
|
419
|
-
"name": "tickLower",
|
|
420
|
-
"type": "int24"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
"internalType": "int24",
|
|
424
|
-
"name": "tickUpper",
|
|
425
|
-
"type": "int24"
|
|
448
|
+
"indexed": false,
|
|
449
|
+
"internalType": "address",
|
|
450
|
+
"name": "pair",
|
|
451
|
+
"type": "address"
|
|
426
452
|
},
|
|
427
453
|
{
|
|
428
|
-
"
|
|
429
|
-
"
|
|
430
|
-
"
|
|
454
|
+
"indexed": false,
|
|
455
|
+
"internalType": "uint32",
|
|
456
|
+
"name": "interval",
|
|
457
|
+
"type": "uint32"
|
|
431
458
|
}
|
|
432
459
|
],
|
|
433
|
-
"name": "
|
|
434
|
-
"
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
},
|
|
460
|
+
"name": "TwapIntervalSet",
|
|
461
|
+
"type": "event"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"anonymous": false,
|
|
465
|
+
"inputs": [
|
|
440
466
|
{
|
|
467
|
+
"indexed": false,
|
|
441
468
|
"internalType": "uint256",
|
|
442
|
-
"name": "
|
|
469
|
+
"name": "amount",
|
|
443
470
|
"type": "uint256"
|
|
444
471
|
}
|
|
445
472
|
],
|
|
446
|
-
"
|
|
447
|
-
"type": "
|
|
473
|
+
"name": "UnwrapWeth",
|
|
474
|
+
"type": "event"
|
|
448
475
|
},
|
|
449
476
|
{
|
|
477
|
+
"anonymous": false,
|
|
450
478
|
"inputs": [
|
|
451
479
|
{
|
|
452
|
-
"
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
|
|
456
|
-
{
|
|
457
|
-
"internalType": "int24",
|
|
458
|
-
"name": "tickUpper",
|
|
459
|
-
"type": "int24"
|
|
480
|
+
"indexed": false,
|
|
481
|
+
"internalType": "address",
|
|
482
|
+
"name": "token",
|
|
483
|
+
"type": "address"
|
|
460
484
|
},
|
|
461
485
|
{
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
|
|
466
|
-
],
|
|
467
|
-
"name": "burn",
|
|
468
|
-
"outputs": [
|
|
469
|
-
{
|
|
470
|
-
"internalType": "uint256",
|
|
471
|
-
"name": "amount0",
|
|
472
|
-
"type": "uint256"
|
|
486
|
+
"indexed": false,
|
|
487
|
+
"internalType": "address",
|
|
488
|
+
"name": "to",
|
|
489
|
+
"type": "address"
|
|
473
490
|
},
|
|
474
491
|
{
|
|
492
|
+
"indexed": false,
|
|
475
493
|
"internalType": "uint256",
|
|
476
|
-
"name": "
|
|
494
|
+
"name": "amount",
|
|
477
495
|
"type": "uint256"
|
|
478
496
|
}
|
|
479
497
|
],
|
|
480
|
-
"
|
|
481
|
-
"type": "
|
|
498
|
+
"name": "Withdraw",
|
|
499
|
+
"type": "event"
|
|
482
500
|
},
|
|
483
501
|
{
|
|
502
|
+
"anonymous": false,
|
|
484
503
|
"inputs": [
|
|
485
504
|
{
|
|
505
|
+
"indexed": false,
|
|
486
506
|
"internalType": "uint256",
|
|
487
|
-
"name": "index",
|
|
488
|
-
"type": "uint256"
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
"internalType": "int24",
|
|
492
|
-
"name": "tickLower",
|
|
493
|
-
"type": "int24"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
"internalType": "int24",
|
|
497
|
-
"name": "tickUpper",
|
|
498
|
-
"type": "int24"
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
"internalType": "uint128",
|
|
502
507
|
"name": "amount",
|
|
503
|
-
"type": "uint128"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"internalType": "uint256",
|
|
507
|
-
"name": "veRamTokenId",
|
|
508
|
-
"type": "uint256"
|
|
509
|
-
}
|
|
510
|
-
],
|
|
511
|
-
"name": "burn",
|
|
512
|
-
"outputs": [
|
|
513
|
-
{
|
|
514
|
-
"internalType": "uint256",
|
|
515
|
-
"name": "amount0",
|
|
516
|
-
"type": "uint256"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"internalType": "uint256",
|
|
520
|
-
"name": "amount1",
|
|
521
508
|
"type": "uint256"
|
|
522
509
|
}
|
|
523
510
|
],
|
|
524
|
-
"
|
|
525
|
-
"type": "
|
|
511
|
+
"name": "WrapEth",
|
|
512
|
+
"type": "event"
|
|
526
513
|
},
|
|
527
514
|
{
|
|
528
|
-
"inputs": [
|
|
515
|
+
"inputs": [],
|
|
516
|
+
"name": "DELAY_ADDRESS",
|
|
517
|
+
"outputs": [
|
|
529
518
|
{
|
|
530
519
|
"internalType": "address",
|
|
531
|
-
"name": "
|
|
520
|
+
"name": "",
|
|
532
521
|
"type": "address"
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"internalType": "int24",
|
|
536
|
-
"name": "tickLower",
|
|
537
|
-
"type": "int24"
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"internalType": "int24",
|
|
541
|
-
"name": "tickUpper",
|
|
542
|
-
"type": "int24"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"internalType": "uint128",
|
|
546
|
-
"name": "amount0Requested",
|
|
547
|
-
"type": "uint128"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"internalType": "uint128",
|
|
551
|
-
"name": "amount1Requested",
|
|
552
|
-
"type": "uint128"
|
|
553
|
-
}
|
|
554
|
-
],
|
|
555
|
-
"name": "collect",
|
|
556
|
-
"outputs": [
|
|
557
|
-
{
|
|
558
|
-
"internalType": "uint128",
|
|
559
|
-
"name": "amount0",
|
|
560
|
-
"type": "uint128"
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
"internalType": "uint128",
|
|
564
|
-
"name": "amount1",
|
|
565
|
-
"type": "uint128"
|
|
566
522
|
}
|
|
567
523
|
],
|
|
568
|
-
"stateMutability": "
|
|
524
|
+
"stateMutability": "view",
|
|
569
525
|
"type": "function"
|
|
570
526
|
},
|
|
571
527
|
{
|
|
572
|
-
"inputs": [
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
"name": "recipient",
|
|
576
|
-
"type": "address"
|
|
577
|
-
},
|
|
528
|
+
"inputs": [],
|
|
529
|
+
"name": "EXECUTION_GAS_LIMIT",
|
|
530
|
+
"outputs": [
|
|
578
531
|
{
|
|
579
532
|
"internalType": "uint256",
|
|
580
|
-
"name": "
|
|
533
|
+
"name": "",
|
|
581
534
|
"type": "uint256"
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
"internalType": "int24",
|
|
585
|
-
"name": "tickLower",
|
|
586
|
-
"type": "int24"
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"internalType": "int24",
|
|
590
|
-
"name": "tickUpper",
|
|
591
|
-
"type": "int24"
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"internalType": "uint128",
|
|
595
|
-
"name": "amount0Requested",
|
|
596
|
-
"type": "uint128"
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
"internalType": "uint128",
|
|
600
|
-
"name": "amount1Requested",
|
|
601
|
-
"type": "uint128"
|
|
602
|
-
}
|
|
603
|
-
],
|
|
604
|
-
"name": "collect",
|
|
605
|
-
"outputs": [
|
|
606
|
-
{
|
|
607
|
-
"internalType": "uint128",
|
|
608
|
-
"name": "amount0",
|
|
609
|
-
"type": "uint128"
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
"internalType": "uint128",
|
|
613
|
-
"name": "amount1",
|
|
614
|
-
"type": "uint128"
|
|
615
535
|
}
|
|
616
536
|
],
|
|
617
|
-
"stateMutability": "
|
|
537
|
+
"stateMutability": "view",
|
|
618
538
|
"type": "function"
|
|
619
539
|
},
|
|
620
540
|
{
|
|
621
|
-
"inputs": [
|
|
541
|
+
"inputs": [],
|
|
542
|
+
"name": "FACTORY_ADDRESS",
|
|
543
|
+
"outputs": [
|
|
622
544
|
{
|
|
623
545
|
"internalType": "address",
|
|
624
|
-
"name": "
|
|
546
|
+
"name": "",
|
|
625
547
|
"type": "address"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"internalType": "uint128",
|
|
629
|
-
"name": "amount0Requested",
|
|
630
|
-
"type": "uint128"
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
"internalType": "uint128",
|
|
634
|
-
"name": "amount1Requested",
|
|
635
|
-
"type": "uint128"
|
|
636
548
|
}
|
|
637
549
|
],
|
|
638
|
-
"
|
|
550
|
+
"stateMutability": "view",
|
|
551
|
+
"type": "function"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"inputs": [],
|
|
555
|
+
"name": "WETH_ADDRESS",
|
|
639
556
|
"outputs": [
|
|
640
557
|
{
|
|
641
|
-
"internalType": "
|
|
642
|
-
"name": "
|
|
643
|
-
"type": "
|
|
644
|
-
},
|
|
645
|
-
{
|
|
646
|
-
"internalType": "uint128",
|
|
647
|
-
"name": "amount1",
|
|
648
|
-
"type": "uint128"
|
|
558
|
+
"internalType": "address",
|
|
559
|
+
"name": "",
|
|
560
|
+
"type": "address"
|
|
649
561
|
}
|
|
650
562
|
],
|
|
651
|
-
"stateMutability": "
|
|
563
|
+
"stateMutability": "view",
|
|
652
564
|
"type": "function"
|
|
653
565
|
},
|
|
654
566
|
{
|
|
655
567
|
"inputs": [],
|
|
656
|
-
"name": "
|
|
568
|
+
"name": "__RESERVED__OLD_DELAY",
|
|
657
569
|
"outputs": [
|
|
658
570
|
{
|
|
659
571
|
"internalType": "address",
|
|
@@ -666,12 +578,12 @@
|
|
|
666
578
|
},
|
|
667
579
|
{
|
|
668
580
|
"inputs": [],
|
|
669
|
-
"name": "
|
|
581
|
+
"name": "__RESERVED__OLD_ETH_TRANSFER_GAS_COST",
|
|
670
582
|
"outputs": [
|
|
671
583
|
{
|
|
672
|
-
"internalType": "
|
|
584
|
+
"internalType": "uint256",
|
|
673
585
|
"name": "",
|
|
674
|
-
"type": "
|
|
586
|
+
"type": "uint256"
|
|
675
587
|
}
|
|
676
588
|
],
|
|
677
589
|
"stateMutability": "view",
|
|
@@ -679,7 +591,7 @@
|
|
|
679
591
|
},
|
|
680
592
|
{
|
|
681
593
|
"inputs": [],
|
|
682
|
-
"name": "
|
|
594
|
+
"name": "__RESERVED__OLD_EXECUTION_GAS_LIMIT",
|
|
683
595
|
"outputs": [
|
|
684
596
|
{
|
|
685
597
|
"internalType": "uint256",
|
|
@@ -692,12 +604,12 @@
|
|
|
692
604
|
},
|
|
693
605
|
{
|
|
694
606
|
"inputs": [],
|
|
695
|
-
"name": "
|
|
607
|
+
"name": "__RESERVED__OLD_FACTORY",
|
|
696
608
|
"outputs": [
|
|
697
609
|
{
|
|
698
|
-
"internalType": "
|
|
610
|
+
"internalType": "address",
|
|
699
611
|
"name": "",
|
|
700
|
-
"type": "
|
|
612
|
+
"type": "address"
|
|
701
613
|
}
|
|
702
614
|
],
|
|
703
615
|
"stateMutability": "view",
|
|
@@ -707,87 +619,123 @@
|
|
|
707
619
|
"inputs": [
|
|
708
620
|
{
|
|
709
621
|
"internalType": "address",
|
|
710
|
-
"name": "
|
|
622
|
+
"name": "",
|
|
711
623
|
"type": "address"
|
|
712
|
-
}
|
|
624
|
+
}
|
|
625
|
+
],
|
|
626
|
+
"name": "__RESERVED__OLD_TOKEN_LIMIT_MAX_MULTIPLIER",
|
|
627
|
+
"outputs": [
|
|
713
628
|
{
|
|
714
629
|
"internalType": "uint256",
|
|
715
|
-
"name": "
|
|
630
|
+
"name": "",
|
|
716
631
|
"type": "uint256"
|
|
717
|
-
}
|
|
632
|
+
}
|
|
633
|
+
],
|
|
634
|
+
"stateMutability": "view",
|
|
635
|
+
"type": "function"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"inputs": [
|
|
639
|
+
{
|
|
640
|
+
"internalType": "address",
|
|
641
|
+
"name": "",
|
|
642
|
+
"type": "address"
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
"name": "__RESERVED__OLD_TOKEN_LIMIT_MIN",
|
|
646
|
+
"outputs": [
|
|
718
647
|
{
|
|
719
648
|
"internalType": "uint256",
|
|
720
|
-
"name": "
|
|
649
|
+
"name": "",
|
|
721
650
|
"type": "uint256"
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
"internalType": "bytes",
|
|
725
|
-
"name": "data",
|
|
726
|
-
"type": "bytes"
|
|
727
651
|
}
|
|
728
652
|
],
|
|
729
|
-
"
|
|
730
|
-
"outputs": [],
|
|
731
|
-
"stateMutability": "nonpayable",
|
|
653
|
+
"stateMutability": "view",
|
|
732
654
|
"type": "function"
|
|
733
655
|
},
|
|
734
656
|
{
|
|
735
657
|
"inputs": [
|
|
658
|
+
{
|
|
659
|
+
"internalType": "address",
|
|
660
|
+
"name": "",
|
|
661
|
+
"type": "address"
|
|
662
|
+
}
|
|
663
|
+
],
|
|
664
|
+
"name": "__RESERVED__OLD_TOLERANCE",
|
|
665
|
+
"outputs": [
|
|
736
666
|
{
|
|
737
667
|
"internalType": "uint16",
|
|
738
|
-
"name": "
|
|
668
|
+
"name": "",
|
|
739
669
|
"type": "uint16"
|
|
740
670
|
}
|
|
741
671
|
],
|
|
742
|
-
"
|
|
743
|
-
"outputs": [],
|
|
744
|
-
"stateMutability": "nonpayable",
|
|
672
|
+
"stateMutability": "view",
|
|
745
673
|
"type": "function"
|
|
746
674
|
},
|
|
747
675
|
{
|
|
748
676
|
"inputs": [
|
|
749
677
|
{
|
|
750
678
|
"internalType": "address",
|
|
751
|
-
"name": "
|
|
679
|
+
"name": "",
|
|
752
680
|
"type": "address"
|
|
753
|
-
}
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"name": "__RESERVED__OLD_TWAP_INTERVAL",
|
|
684
|
+
"outputs": [
|
|
754
685
|
{
|
|
755
|
-
"internalType": "
|
|
756
|
-
"name": "
|
|
757
|
-
"type": "
|
|
758
|
-
}
|
|
686
|
+
"internalType": "uint32",
|
|
687
|
+
"name": "",
|
|
688
|
+
"type": "uint32"
|
|
689
|
+
}
|
|
690
|
+
],
|
|
691
|
+
"stateMutability": "view",
|
|
692
|
+
"type": "function"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"inputs": [],
|
|
696
|
+
"name": "__RESERVED__OLD_WETH",
|
|
697
|
+
"outputs": [
|
|
759
698
|
{
|
|
760
699
|
"internalType": "address",
|
|
761
|
-
"name": "
|
|
700
|
+
"name": "",
|
|
762
701
|
"type": "address"
|
|
763
|
-
}
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"stateMutability": "view",
|
|
705
|
+
"type": "function"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"inputs": [],
|
|
709
|
+
"name": "__RESERVED__SLOT_6_USED_IN_PREVIOUS_VERSIONS",
|
|
710
|
+
"outputs": [
|
|
711
|
+
{
|
|
712
|
+
"internalType": "uint256",
|
|
713
|
+
"name": "",
|
|
714
|
+
"type": "uint256"
|
|
715
|
+
}
|
|
716
|
+
],
|
|
717
|
+
"stateMutability": "view",
|
|
718
|
+
"type": "function"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"inputs": [
|
|
764
722
|
{
|
|
765
723
|
"internalType": "address",
|
|
766
|
-
"name": "
|
|
724
|
+
"name": "token",
|
|
767
725
|
"type": "address"
|
|
768
726
|
},
|
|
769
727
|
{
|
|
770
|
-
"internalType": "
|
|
771
|
-
"name": "
|
|
772
|
-
"type": "
|
|
728
|
+
"internalType": "uint256",
|
|
729
|
+
"name": "amount",
|
|
730
|
+
"type": "uint256"
|
|
773
731
|
},
|
|
774
732
|
{
|
|
775
733
|
"internalType": "address",
|
|
776
|
-
"name": "
|
|
734
|
+
"name": "to",
|
|
777
735
|
"type": "address"
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
"internalType": "uint24",
|
|
781
|
-
"name": "_fee",
|
|
782
|
-
"type": "uint24"
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
"internalType": "int24",
|
|
786
|
-
"name": "_tickSpacing",
|
|
787
|
-
"type": "int24"
|
|
788
736
|
}
|
|
789
737
|
],
|
|
790
|
-
"name": "
|
|
738
|
+
"name": "approve",
|
|
791
739
|
"outputs": [],
|
|
792
740
|
"stateMutability": "nonpayable",
|
|
793
741
|
"type": "function"
|
|
@@ -795,19 +743,75 @@
|
|
|
795
743
|
{
|
|
796
744
|
"inputs": [
|
|
797
745
|
{
|
|
798
|
-
"
|
|
799
|
-
|
|
800
|
-
|
|
746
|
+
"components": [
|
|
747
|
+
{
|
|
748
|
+
"internalType": "address",
|
|
749
|
+
"name": "tokenIn",
|
|
750
|
+
"type": "address"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"internalType": "address",
|
|
754
|
+
"name": "tokenOut",
|
|
755
|
+
"type": "address"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"internalType": "uint256",
|
|
759
|
+
"name": "amountInMax",
|
|
760
|
+
"type": "uint256"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"internalType": "uint256",
|
|
764
|
+
"name": "amountOut",
|
|
765
|
+
"type": "uint256"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"internalType": "bool",
|
|
769
|
+
"name": "wrapUnwrap",
|
|
770
|
+
"type": "bool"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"internalType": "address",
|
|
774
|
+
"name": "to",
|
|
775
|
+
"type": "address"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"internalType": "uint32",
|
|
779
|
+
"name": "submitDeadline",
|
|
780
|
+
"type": "uint32"
|
|
781
|
+
}
|
|
782
|
+
],
|
|
783
|
+
"internalType": "struct ITwapRelayer.BuyParams",
|
|
784
|
+
"name": "buyParams",
|
|
785
|
+
"type": "tuple"
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
"name": "buy",
|
|
789
|
+
"outputs": [
|
|
790
|
+
{
|
|
791
|
+
"internalType": "uint256",
|
|
792
|
+
"name": "orderId",
|
|
793
|
+
"type": "uint256"
|
|
801
794
|
}
|
|
802
795
|
],
|
|
803
|
-
"
|
|
804
|
-
"
|
|
805
|
-
|
|
796
|
+
"stateMutability": "payable",
|
|
797
|
+
"type": "function"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"inputs": [],
|
|
801
|
+
"name": "delay",
|
|
802
|
+
"outputs": [
|
|
803
|
+
{
|
|
804
|
+
"internalType": "address",
|
|
805
|
+
"name": "",
|
|
806
|
+
"type": "address"
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
"stateMutability": "pure",
|
|
806
810
|
"type": "function"
|
|
807
811
|
},
|
|
808
812
|
{
|
|
809
813
|
"inputs": [],
|
|
810
|
-
"name": "
|
|
814
|
+
"name": "ethTransferGasCost",
|
|
811
815
|
"outputs": [
|
|
812
816
|
{
|
|
813
817
|
"internalType": "uint256",
|
|
@@ -815,243 +819,240 @@
|
|
|
815
819
|
"type": "uint256"
|
|
816
820
|
}
|
|
817
821
|
],
|
|
818
|
-
"stateMutability": "
|
|
822
|
+
"stateMutability": "pure",
|
|
819
823
|
"type": "function"
|
|
820
824
|
},
|
|
821
825
|
{
|
|
822
826
|
"inputs": [],
|
|
823
|
-
"name": "
|
|
827
|
+
"name": "executionGasLimit",
|
|
824
828
|
"outputs": [
|
|
825
829
|
{
|
|
826
|
-
"internalType": "
|
|
830
|
+
"internalType": "uint256",
|
|
827
831
|
"name": "",
|
|
828
|
-
"type": "
|
|
832
|
+
"type": "uint256"
|
|
829
833
|
}
|
|
830
834
|
],
|
|
831
|
-
"stateMutability": "
|
|
835
|
+
"stateMutability": "pure",
|
|
832
836
|
"type": "function"
|
|
833
837
|
},
|
|
834
838
|
{
|
|
835
839
|
"inputs": [],
|
|
836
|
-
"name": "
|
|
840
|
+
"name": "factory",
|
|
837
841
|
"outputs": [
|
|
838
842
|
{
|
|
839
|
-
"internalType": "
|
|
843
|
+
"internalType": "address",
|
|
840
844
|
"name": "",
|
|
841
|
-
"type": "
|
|
845
|
+
"type": "address"
|
|
842
846
|
}
|
|
843
847
|
],
|
|
844
|
-
"stateMutability": "
|
|
848
|
+
"stateMutability": "pure",
|
|
845
849
|
"type": "function"
|
|
846
850
|
},
|
|
847
851
|
{
|
|
848
852
|
"inputs": [
|
|
849
853
|
{
|
|
850
854
|
"internalType": "address",
|
|
851
|
-
"name": "
|
|
855
|
+
"name": "token0",
|
|
852
856
|
"type": "address"
|
|
853
857
|
},
|
|
854
858
|
{
|
|
855
|
-
"internalType": "
|
|
856
|
-
"name": "
|
|
857
|
-
"type": "
|
|
859
|
+
"internalType": "address",
|
|
860
|
+
"name": "token1",
|
|
861
|
+
"type": "address"
|
|
862
|
+
}
|
|
863
|
+
],
|
|
864
|
+
"name": "getPoolState",
|
|
865
|
+
"outputs": [
|
|
866
|
+
{
|
|
867
|
+
"internalType": "uint256",
|
|
868
|
+
"name": "price",
|
|
869
|
+
"type": "uint256"
|
|
858
870
|
},
|
|
859
871
|
{
|
|
860
|
-
"internalType": "
|
|
861
|
-
"name": "
|
|
862
|
-
"type": "
|
|
872
|
+
"internalType": "uint256",
|
|
873
|
+
"name": "fee",
|
|
874
|
+
"type": "uint256"
|
|
863
875
|
},
|
|
864
876
|
{
|
|
865
|
-
"internalType": "
|
|
866
|
-
"name": "
|
|
867
|
-
"type": "
|
|
877
|
+
"internalType": "uint256",
|
|
878
|
+
"name": "limitMin0",
|
|
879
|
+
"type": "uint256"
|
|
868
880
|
},
|
|
869
881
|
{
|
|
870
|
-
"internalType": "
|
|
871
|
-
"name": "
|
|
872
|
-
"type": "
|
|
873
|
-
}
|
|
874
|
-
],
|
|
875
|
-
"name": "mint",
|
|
876
|
-
"outputs": [
|
|
882
|
+
"internalType": "uint256",
|
|
883
|
+
"name": "limitMax0",
|
|
884
|
+
"type": "uint256"
|
|
885
|
+
},
|
|
877
886
|
{
|
|
878
887
|
"internalType": "uint256",
|
|
879
|
-
"name": "
|
|
888
|
+
"name": "limitMin1",
|
|
880
889
|
"type": "uint256"
|
|
881
890
|
},
|
|
882
891
|
{
|
|
883
892
|
"internalType": "uint256",
|
|
884
|
-
"name": "
|
|
893
|
+
"name": "limitMax1",
|
|
885
894
|
"type": "uint256"
|
|
886
895
|
}
|
|
887
896
|
],
|
|
888
|
-
"stateMutability": "
|
|
897
|
+
"stateMutability": "view",
|
|
889
898
|
"type": "function"
|
|
890
899
|
},
|
|
891
900
|
{
|
|
892
901
|
"inputs": [
|
|
893
902
|
{
|
|
894
903
|
"internalType": "address",
|
|
895
|
-
"name": "
|
|
904
|
+
"name": "pair",
|
|
896
905
|
"type": "address"
|
|
897
906
|
},
|
|
898
907
|
{
|
|
899
|
-
"internalType": "
|
|
900
|
-
"name": "
|
|
901
|
-
"type": "
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
"type": "int24"
|
|
907
|
-
},
|
|
908
|
+
"internalType": "bool",
|
|
909
|
+
"name": "inverted",
|
|
910
|
+
"type": "bool"
|
|
911
|
+
}
|
|
912
|
+
],
|
|
913
|
+
"name": "getPriceByPairAddress",
|
|
914
|
+
"outputs": [
|
|
908
915
|
{
|
|
909
|
-
"internalType": "
|
|
910
|
-
"name": "
|
|
911
|
-
"type": "
|
|
916
|
+
"internalType": "uint8",
|
|
917
|
+
"name": "xDecimals",
|
|
918
|
+
"type": "uint8"
|
|
912
919
|
},
|
|
913
920
|
{
|
|
914
|
-
"internalType": "
|
|
915
|
-
"name": "
|
|
916
|
-
"type": "
|
|
921
|
+
"internalType": "uint8",
|
|
922
|
+
"name": "yDecimals",
|
|
923
|
+
"type": "uint8"
|
|
917
924
|
},
|
|
918
925
|
{
|
|
919
926
|
"internalType": "uint256",
|
|
920
|
-
"name": "
|
|
927
|
+
"name": "price",
|
|
921
928
|
"type": "uint256"
|
|
929
|
+
}
|
|
930
|
+
],
|
|
931
|
+
"stateMutability": "view",
|
|
932
|
+
"type": "function"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"inputs": [
|
|
936
|
+
{
|
|
937
|
+
"internalType": "address",
|
|
938
|
+
"name": "tokenIn",
|
|
939
|
+
"type": "address"
|
|
922
940
|
},
|
|
923
941
|
{
|
|
924
|
-
"internalType": "
|
|
925
|
-
"name": "
|
|
926
|
-
"type": "
|
|
942
|
+
"internalType": "address",
|
|
943
|
+
"name": "tokenOut",
|
|
944
|
+
"type": "address"
|
|
927
945
|
}
|
|
928
946
|
],
|
|
929
|
-
"name": "
|
|
947
|
+
"name": "getPriceByTokenAddresses",
|
|
930
948
|
"outputs": [
|
|
931
949
|
{
|
|
932
950
|
"internalType": "uint256",
|
|
933
|
-
"name": "
|
|
934
|
-
"type": "uint256"
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
"internalType": "uint256",
|
|
938
|
-
"name": "amount1",
|
|
951
|
+
"name": "price",
|
|
939
952
|
"type": "uint256"
|
|
940
953
|
}
|
|
941
954
|
],
|
|
942
|
-
"stateMutability": "
|
|
955
|
+
"stateMutability": "view",
|
|
943
956
|
"type": "function"
|
|
944
957
|
},
|
|
945
958
|
{
|
|
946
|
-
"inputs": [
|
|
947
|
-
"name": "nfpManager",
|
|
948
|
-
"outputs": [
|
|
959
|
+
"inputs": [
|
|
949
960
|
{
|
|
950
961
|
"internalType": "address",
|
|
951
962
|
"name": "",
|
|
952
963
|
"type": "address"
|
|
953
964
|
}
|
|
954
965
|
],
|
|
955
|
-
"
|
|
966
|
+
"name": "getTokenLimitMaxMultiplier",
|
|
967
|
+
"outputs": [
|
|
968
|
+
{
|
|
969
|
+
"internalType": "uint256",
|
|
970
|
+
"name": "",
|
|
971
|
+
"type": "uint256"
|
|
972
|
+
}
|
|
973
|
+
],
|
|
974
|
+
"stateMutability": "pure",
|
|
956
975
|
"type": "function"
|
|
957
976
|
},
|
|
958
977
|
{
|
|
959
978
|
"inputs": [
|
|
960
979
|
{
|
|
961
|
-
"internalType": "
|
|
962
|
-
"name": "
|
|
963
|
-
"type": "
|
|
980
|
+
"internalType": "address",
|
|
981
|
+
"name": "token",
|
|
982
|
+
"type": "address"
|
|
964
983
|
}
|
|
965
984
|
],
|
|
966
|
-
"name": "
|
|
985
|
+
"name": "getTokenLimitMin",
|
|
967
986
|
"outputs": [
|
|
968
987
|
{
|
|
969
|
-
"internalType": "
|
|
970
|
-
"name": "
|
|
971
|
-
"type": "
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
"internalType": "int56",
|
|
975
|
-
"name": "tickCumulative",
|
|
976
|
-
"type": "int56"
|
|
977
|
-
},
|
|
978
|
-
{
|
|
979
|
-
"internalType": "uint160",
|
|
980
|
-
"name": "secondsPerLiquidityCumulativeX128",
|
|
981
|
-
"type": "uint160"
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
"internalType": "bool",
|
|
985
|
-
"name": "initialized",
|
|
986
|
-
"type": "bool"
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
"internalType": "uint160",
|
|
990
|
-
"name": "secondsPerBoostedLiquidityPeriodX128",
|
|
991
|
-
"type": "uint160"
|
|
988
|
+
"internalType": "uint256",
|
|
989
|
+
"name": "",
|
|
990
|
+
"type": "uint256"
|
|
992
991
|
}
|
|
993
992
|
],
|
|
994
|
-
"stateMutability": "
|
|
993
|
+
"stateMutability": "pure",
|
|
995
994
|
"type": "function"
|
|
996
995
|
},
|
|
997
996
|
{
|
|
998
997
|
"inputs": [
|
|
999
998
|
{
|
|
1000
|
-
"internalType": "
|
|
1001
|
-
"name": "
|
|
1002
|
-
"type": "
|
|
999
|
+
"internalType": "address",
|
|
1000
|
+
"name": "",
|
|
1001
|
+
"type": "address"
|
|
1003
1002
|
}
|
|
1004
1003
|
],
|
|
1005
|
-
"name": "
|
|
1004
|
+
"name": "getTolerance",
|
|
1006
1005
|
"outputs": [
|
|
1007
1006
|
{
|
|
1008
|
-
"internalType": "
|
|
1009
|
-
"name": "
|
|
1010
|
-
"type": "
|
|
1011
|
-
},
|
|
1012
|
-
{
|
|
1013
|
-
"internalType": "uint160[]",
|
|
1014
|
-
"name": "secondsPerLiquidityCumulativeX128s",
|
|
1015
|
-
"type": "uint160[]"
|
|
1016
|
-
},
|
|
1017
|
-
{
|
|
1018
|
-
"internalType": "uint160[]",
|
|
1019
|
-
"name": "secondsPerBoostedLiquidityPeriodX128s",
|
|
1020
|
-
"type": "uint160[]"
|
|
1007
|
+
"internalType": "uint16",
|
|
1008
|
+
"name": "",
|
|
1009
|
+
"type": "uint16"
|
|
1021
1010
|
}
|
|
1022
1011
|
],
|
|
1023
|
-
"stateMutability": "
|
|
1012
|
+
"stateMutability": "pure",
|
|
1024
1013
|
"type": "function"
|
|
1025
1014
|
},
|
|
1026
1015
|
{
|
|
1027
1016
|
"inputs": [
|
|
1017
|
+
{
|
|
1018
|
+
"internalType": "address",
|
|
1019
|
+
"name": "",
|
|
1020
|
+
"type": "address"
|
|
1021
|
+
}
|
|
1022
|
+
],
|
|
1023
|
+
"name": "getTwapInterval",
|
|
1024
|
+
"outputs": [
|
|
1028
1025
|
{
|
|
1029
1026
|
"internalType": "uint32",
|
|
1030
|
-
"name": "
|
|
1027
|
+
"name": "",
|
|
1031
1028
|
"type": "uint32"
|
|
1032
|
-
},
|
|
1033
|
-
{
|
|
1034
|
-
"internalType": "int24",
|
|
1035
|
-
"name": "tickLower",
|
|
1036
|
-
"type": "int24"
|
|
1037
|
-
},
|
|
1038
|
-
{
|
|
1039
|
-
"internalType": "int24",
|
|
1040
|
-
"name": "tickUpper",
|
|
1041
|
-
"type": "int24"
|
|
1042
1029
|
}
|
|
1043
1030
|
],
|
|
1044
|
-
"
|
|
1031
|
+
"stateMutability": "pure",
|
|
1032
|
+
"type": "function"
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"inputs": [],
|
|
1036
|
+
"name": "initialize",
|
|
1037
|
+
"outputs": [],
|
|
1038
|
+
"stateMutability": "nonpayable",
|
|
1039
|
+
"type": "function"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"inputs": [],
|
|
1043
|
+
"name": "initializeLock",
|
|
1044
|
+
"outputs": [],
|
|
1045
|
+
"stateMutability": "nonpayable",
|
|
1046
|
+
"type": "function"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"inputs": [],
|
|
1050
|
+
"name": "initialized",
|
|
1045
1051
|
"outputs": [
|
|
1046
1052
|
{
|
|
1047
|
-
"internalType": "
|
|
1048
|
-
"name": "
|
|
1049
|
-
"type": "
|
|
1050
|
-
},
|
|
1051
|
-
{
|
|
1052
|
-
"internalType": "uint160",
|
|
1053
|
-
"name": "secondsPerBoostedLiquidityInsideX128",
|
|
1054
|
-
"type": "uint160"
|
|
1053
|
+
"internalType": "uint8",
|
|
1054
|
+
"name": "",
|
|
1055
|
+
"type": "uint8"
|
|
1055
1056
|
}
|
|
1056
1057
|
],
|
|
1057
1058
|
"stateMutability": "view",
|
|
@@ -1060,42 +1061,49 @@
|
|
|
1060
1061
|
{
|
|
1061
1062
|
"inputs": [
|
|
1062
1063
|
{
|
|
1063
|
-
"internalType": "
|
|
1064
|
-
"name": "
|
|
1065
|
-
"type": "
|
|
1064
|
+
"internalType": "address",
|
|
1065
|
+
"name": "",
|
|
1066
|
+
"type": "address"
|
|
1066
1067
|
}
|
|
1067
1068
|
],
|
|
1068
|
-
"name": "
|
|
1069
|
+
"name": "isOneInchRouterWhitelisted",
|
|
1069
1070
|
"outputs": [
|
|
1070
1071
|
{
|
|
1071
|
-
"internalType": "
|
|
1072
|
-
"name": "
|
|
1073
|
-
"type": "
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
"internalType": "int24",
|
|
1082
|
-
"name": "lastTick",
|
|
1083
|
-
"type": "int24"
|
|
1084
|
-
},
|
|
1072
|
+
"internalType": "bool",
|
|
1073
|
+
"name": "",
|
|
1074
|
+
"type": "bool"
|
|
1075
|
+
}
|
|
1076
|
+
],
|
|
1077
|
+
"stateMutability": "view",
|
|
1078
|
+
"type": "function"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"inputs": [
|
|
1085
1082
|
{
|
|
1086
|
-
"internalType": "
|
|
1087
|
-
"name": "
|
|
1088
|
-
"type": "
|
|
1089
|
-
}
|
|
1083
|
+
"internalType": "address",
|
|
1084
|
+
"name": "",
|
|
1085
|
+
"type": "address"
|
|
1086
|
+
}
|
|
1087
|
+
],
|
|
1088
|
+
"name": "isPairEnabled",
|
|
1089
|
+
"outputs": [
|
|
1090
1090
|
{
|
|
1091
|
-
"internalType": "
|
|
1092
|
-
"name": "
|
|
1093
|
-
"type": "
|
|
1094
|
-
}
|
|
1091
|
+
"internalType": "bool",
|
|
1092
|
+
"name": "",
|
|
1093
|
+
"type": "bool"
|
|
1094
|
+
}
|
|
1095
|
+
],
|
|
1096
|
+
"stateMutability": "view",
|
|
1097
|
+
"type": "function"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"inputs": [],
|
|
1101
|
+
"name": "owner",
|
|
1102
|
+
"outputs": [
|
|
1095
1103
|
{
|
|
1096
|
-
"internalType": "
|
|
1097
|
-
"name": "
|
|
1098
|
-
"type": "
|
|
1104
|
+
"internalType": "address",
|
|
1105
|
+
"name": "",
|
|
1106
|
+
"type": "address"
|
|
1099
1107
|
}
|
|
1100
1108
|
],
|
|
1101
1109
|
"stateMutability": "view",
|
|
@@ -1104,42 +1112,27 @@
|
|
|
1104
1112
|
{
|
|
1105
1113
|
"inputs": [
|
|
1106
1114
|
{
|
|
1107
|
-
"internalType": "
|
|
1108
|
-
"name": "
|
|
1109
|
-
"type": "
|
|
1115
|
+
"internalType": "address",
|
|
1116
|
+
"name": "tokenIn",
|
|
1117
|
+
"type": "address"
|
|
1110
1118
|
},
|
|
1111
1119
|
{
|
|
1112
1120
|
"internalType": "address",
|
|
1113
|
-
"name": "
|
|
1121
|
+
"name": "tokenOut",
|
|
1114
1122
|
"type": "address"
|
|
1115
1123
|
},
|
|
1116
1124
|
{
|
|
1117
1125
|
"internalType": "uint256",
|
|
1118
|
-
"name": "
|
|
1126
|
+
"name": "amountOut",
|
|
1119
1127
|
"type": "uint256"
|
|
1120
|
-
},
|
|
1121
|
-
{
|
|
1122
|
-
"internalType": "int24",
|
|
1123
|
-
"name": "tickLower",
|
|
1124
|
-
"type": "int24"
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
"internalType": "int24",
|
|
1128
|
-
"name": "tickUpper",
|
|
1129
|
-
"type": "int24"
|
|
1130
1128
|
}
|
|
1131
1129
|
],
|
|
1132
|
-
"name": "
|
|
1130
|
+
"name": "quoteBuy",
|
|
1133
1131
|
"outputs": [
|
|
1134
1132
|
{
|
|
1135
|
-
"internalType": "
|
|
1136
|
-
"name": "
|
|
1137
|
-
"type": "
|
|
1138
|
-
},
|
|
1139
|
-
{
|
|
1140
|
-
"internalType": "int256",
|
|
1141
|
-
"name": "boostedSecondsDebtX96",
|
|
1142
|
-
"type": "int256"
|
|
1133
|
+
"internalType": "uint256",
|
|
1134
|
+
"name": "amountIn",
|
|
1135
|
+
"type": "uint256"
|
|
1143
1136
|
}
|
|
1144
1137
|
],
|
|
1145
1138
|
"stateMutability": "view",
|
|
@@ -1148,41 +1141,26 @@
|
|
|
1148
1141
|
{
|
|
1149
1142
|
"inputs": [
|
|
1150
1143
|
{
|
|
1151
|
-
"internalType": "
|
|
1152
|
-
"name": "
|
|
1153
|
-
"type": "
|
|
1144
|
+
"internalType": "address",
|
|
1145
|
+
"name": "tokenIn",
|
|
1146
|
+
"type": "address"
|
|
1154
1147
|
},
|
|
1155
1148
|
{
|
|
1156
1149
|
"internalType": "address",
|
|
1157
|
-
"name": "
|
|
1150
|
+
"name": "tokenOut",
|
|
1158
1151
|
"type": "address"
|
|
1159
1152
|
},
|
|
1160
1153
|
{
|
|
1161
1154
|
"internalType": "uint256",
|
|
1162
|
-
"name": "
|
|
1155
|
+
"name": "amountIn",
|
|
1163
1156
|
"type": "uint256"
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
"internalType": "int24",
|
|
1167
|
-
"name": "tickLower",
|
|
1168
|
-
"type": "int24"
|
|
1169
|
-
},
|
|
1170
|
-
{
|
|
1171
|
-
"internalType": "int24",
|
|
1172
|
-
"name": "tickUpper",
|
|
1173
|
-
"type": "int24"
|
|
1174
1157
|
}
|
|
1175
1158
|
],
|
|
1176
|
-
"name": "
|
|
1159
|
+
"name": "quoteSell",
|
|
1177
1160
|
"outputs": [
|
|
1178
1161
|
{
|
|
1179
1162
|
"internalType": "uint256",
|
|
1180
|
-
"name": "
|
|
1181
|
-
"type": "uint256"
|
|
1182
|
-
},
|
|
1183
|
-
{
|
|
1184
|
-
"internalType": "uint256",
|
|
1185
|
-
"name": "periodBoostedSecondsInsideX96",
|
|
1163
|
+
"name": "amountOut",
|
|
1186
1164
|
"type": "uint256"
|
|
1187
1165
|
}
|
|
1188
1166
|
],
|
|
@@ -1192,60 +1170,67 @@
|
|
|
1192
1170
|
{
|
|
1193
1171
|
"inputs": [
|
|
1194
1172
|
{
|
|
1195
|
-
"internalType": "
|
|
1196
|
-
"name": "
|
|
1197
|
-
"type": "
|
|
1198
|
-
}
|
|
1199
|
-
],
|
|
1200
|
-
"name": "positions",
|
|
1201
|
-
"outputs": [
|
|
1173
|
+
"internalType": "address",
|
|
1174
|
+
"name": "tokenIn",
|
|
1175
|
+
"type": "address"
|
|
1176
|
+
},
|
|
1202
1177
|
{
|
|
1203
|
-
"internalType": "
|
|
1204
|
-
"name": "
|
|
1205
|
-
"type": "
|
|
1178
|
+
"internalType": "address",
|
|
1179
|
+
"name": "tokenOut",
|
|
1180
|
+
"type": "address"
|
|
1206
1181
|
},
|
|
1207
1182
|
{
|
|
1208
1183
|
"internalType": "uint256",
|
|
1209
|
-
"name": "
|
|
1184
|
+
"name": "amountIn",
|
|
1210
1185
|
"type": "uint256"
|
|
1186
|
+
}
|
|
1187
|
+
],
|
|
1188
|
+
"name": "rebalanceSellWithDelay",
|
|
1189
|
+
"outputs": [],
|
|
1190
|
+
"stateMutability": "nonpayable",
|
|
1191
|
+
"type": "function"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"inputs": [
|
|
1195
|
+
{
|
|
1196
|
+
"internalType": "address",
|
|
1197
|
+
"name": "tokenIn",
|
|
1198
|
+
"type": "address"
|
|
1211
1199
|
},
|
|
1212
1200
|
{
|
|
1213
1201
|
"internalType": "uint256",
|
|
1214
|
-
"name": "
|
|
1202
|
+
"name": "amountIn",
|
|
1215
1203
|
"type": "uint256"
|
|
1216
1204
|
},
|
|
1217
1205
|
{
|
|
1218
|
-
"internalType": "
|
|
1219
|
-
"name": "
|
|
1220
|
-
"type": "
|
|
1221
|
-
},
|
|
1222
|
-
{
|
|
1223
|
-
"internalType": "uint128",
|
|
1224
|
-
"name": "tokensOwed1",
|
|
1225
|
-
"type": "uint128"
|
|
1206
|
+
"internalType": "address",
|
|
1207
|
+
"name": "oneInchRouter",
|
|
1208
|
+
"type": "address"
|
|
1226
1209
|
},
|
|
1227
1210
|
{
|
|
1228
1211
|
"internalType": "uint256",
|
|
1229
|
-
"name": "
|
|
1212
|
+
"name": "_gas",
|
|
1230
1213
|
"type": "uint256"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"internalType": "bytes",
|
|
1217
|
+
"name": "data",
|
|
1218
|
+
"type": "bytes"
|
|
1231
1219
|
}
|
|
1232
1220
|
],
|
|
1233
|
-
"
|
|
1221
|
+
"name": "rebalanceSellWithOneInch",
|
|
1222
|
+
"outputs": [],
|
|
1223
|
+
"stateMutability": "nonpayable",
|
|
1234
1224
|
"type": "function"
|
|
1235
1225
|
},
|
|
1236
1226
|
{
|
|
1237
1227
|
"inputs": [],
|
|
1238
|
-
"name": "
|
|
1228
|
+
"name": "rebalancer",
|
|
1239
1229
|
"outputs": [
|
|
1240
1230
|
{
|
|
1241
|
-
"internalType": "
|
|
1242
|
-
"name": "
|
|
1243
|
-
"type": "
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
"internalType": "uint128",
|
|
1247
|
-
"name": "token1",
|
|
1248
|
-
"type": "uint128"
|
|
1231
|
+
"internalType": "address",
|
|
1232
|
+
"name": "",
|
|
1233
|
+
"type": "address"
|
|
1249
1234
|
}
|
|
1250
1235
|
],
|
|
1251
1236
|
"stateMutability": "view",
|
|
@@ -1254,106 +1239,135 @@
|
|
|
1254
1239
|
{
|
|
1255
1240
|
"inputs": [
|
|
1256
1241
|
{
|
|
1257
|
-
"
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1242
|
+
"components": [
|
|
1243
|
+
{
|
|
1244
|
+
"internalType": "address",
|
|
1245
|
+
"name": "tokenIn",
|
|
1246
|
+
"type": "address"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"internalType": "address",
|
|
1250
|
+
"name": "tokenOut",
|
|
1251
|
+
"type": "address"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"internalType": "uint256",
|
|
1255
|
+
"name": "amountIn",
|
|
1256
|
+
"type": "uint256"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"internalType": "uint256",
|
|
1260
|
+
"name": "amountOutMin",
|
|
1261
|
+
"type": "uint256"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"internalType": "bool",
|
|
1265
|
+
"name": "wrapUnwrap",
|
|
1266
|
+
"type": "bool"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"internalType": "address",
|
|
1270
|
+
"name": "to",
|
|
1271
|
+
"type": "address"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"internalType": "uint32",
|
|
1275
|
+
"name": "submitDeadline",
|
|
1276
|
+
"type": "uint32"
|
|
1277
|
+
}
|
|
1278
|
+
],
|
|
1279
|
+
"internalType": "struct ITwapRelayer.SellParams",
|
|
1280
|
+
"name": "sellParams",
|
|
1281
|
+
"type": "tuple"
|
|
1282
|
+
}
|
|
1283
|
+
],
|
|
1284
|
+
"name": "sell",
|
|
1263
1285
|
"outputs": [
|
|
1264
1286
|
{
|
|
1265
|
-
"internalType": "
|
|
1266
|
-
"name": "
|
|
1267
|
-
"type": "
|
|
1287
|
+
"internalType": "uint256",
|
|
1288
|
+
"name": "orderId",
|
|
1289
|
+
"type": "uint256"
|
|
1268
1290
|
}
|
|
1269
1291
|
],
|
|
1270
|
-
"stateMutability": "
|
|
1292
|
+
"stateMutability": "payable",
|
|
1271
1293
|
"type": "function"
|
|
1272
1294
|
},
|
|
1273
1295
|
{
|
|
1274
|
-
"inputs": [
|
|
1275
|
-
|
|
1296
|
+
"inputs": [
|
|
1297
|
+
{
|
|
1298
|
+
"internalType": "address",
|
|
1299
|
+
"name": "_owner",
|
|
1300
|
+
"type": "address"
|
|
1301
|
+
}
|
|
1302
|
+
],
|
|
1303
|
+
"name": "setOwner",
|
|
1276
1304
|
"outputs": [],
|
|
1277
1305
|
"stateMutability": "nonpayable",
|
|
1278
1306
|
"type": "function"
|
|
1279
1307
|
},
|
|
1280
1308
|
{
|
|
1281
|
-
"inputs": [
|
|
1282
|
-
"name": "slot0",
|
|
1283
|
-
"outputs": [
|
|
1284
|
-
{
|
|
1285
|
-
"internalType": "uint160",
|
|
1286
|
-
"name": "sqrtPriceX96",
|
|
1287
|
-
"type": "uint160"
|
|
1288
|
-
},
|
|
1289
|
-
{
|
|
1290
|
-
"internalType": "int24",
|
|
1291
|
-
"name": "tick",
|
|
1292
|
-
"type": "int24"
|
|
1293
|
-
},
|
|
1294
|
-
{
|
|
1295
|
-
"internalType": "uint16",
|
|
1296
|
-
"name": "observationIndex",
|
|
1297
|
-
"type": "uint16"
|
|
1298
|
-
},
|
|
1299
|
-
{
|
|
1300
|
-
"internalType": "uint16",
|
|
1301
|
-
"name": "observationCardinality",
|
|
1302
|
-
"type": "uint16"
|
|
1303
|
-
},
|
|
1304
|
-
{
|
|
1305
|
-
"internalType": "uint16",
|
|
1306
|
-
"name": "observationCardinalityNext",
|
|
1307
|
-
"type": "uint16"
|
|
1308
|
-
},
|
|
1309
|
+
"inputs": [
|
|
1309
1310
|
{
|
|
1310
|
-
"internalType": "
|
|
1311
|
-
"name": "
|
|
1312
|
-
"type": "
|
|
1311
|
+
"internalType": "address",
|
|
1312
|
+
"name": "pair",
|
|
1313
|
+
"type": "address"
|
|
1313
1314
|
},
|
|
1314
1315
|
{
|
|
1315
1316
|
"internalType": "bool",
|
|
1316
|
-
"name": "
|
|
1317
|
+
"name": "enabled",
|
|
1317
1318
|
"type": "bool"
|
|
1318
1319
|
}
|
|
1319
1320
|
],
|
|
1320
|
-
"
|
|
1321
|
+
"name": "setPairEnabled",
|
|
1322
|
+
"outputs": [],
|
|
1323
|
+
"stateMutability": "nonpayable",
|
|
1321
1324
|
"type": "function"
|
|
1322
1325
|
},
|
|
1323
1326
|
{
|
|
1324
1327
|
"inputs": [
|
|
1325
1328
|
{
|
|
1326
|
-
"internalType": "
|
|
1327
|
-
"name": "
|
|
1328
|
-
"type": "
|
|
1329
|
-
},
|
|
1330
|
-
{
|
|
1331
|
-
"internalType": "int24",
|
|
1332
|
-
"name": "tickUpper",
|
|
1333
|
-
"type": "int24"
|
|
1329
|
+
"internalType": "address",
|
|
1330
|
+
"name": "_rebalancer",
|
|
1331
|
+
"type": "address"
|
|
1334
1332
|
}
|
|
1335
1333
|
],
|
|
1336
|
-
"name": "
|
|
1337
|
-
"outputs": [
|
|
1334
|
+
"name": "setRebalancer",
|
|
1335
|
+
"outputs": [],
|
|
1336
|
+
"stateMutability": "nonpayable",
|
|
1337
|
+
"type": "function"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"inputs": [
|
|
1338
1341
|
{
|
|
1339
|
-
"internalType": "
|
|
1340
|
-
"name": "
|
|
1341
|
-
"type": "
|
|
1342
|
+
"internalType": "address",
|
|
1343
|
+
"name": "pair",
|
|
1344
|
+
"type": "address"
|
|
1342
1345
|
},
|
|
1343
1346
|
{
|
|
1344
|
-
"internalType": "
|
|
1345
|
-
"name": "
|
|
1346
|
-
"type": "
|
|
1347
|
-
}
|
|
1347
|
+
"internalType": "uint256",
|
|
1348
|
+
"name": "fee",
|
|
1349
|
+
"type": "uint256"
|
|
1350
|
+
}
|
|
1351
|
+
],
|
|
1352
|
+
"name": "setSwapFee",
|
|
1353
|
+
"outputs": [],
|
|
1354
|
+
"stateMutability": "nonpayable",
|
|
1355
|
+
"type": "function"
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"inputs": [
|
|
1348
1359
|
{
|
|
1349
|
-
"internalType": "
|
|
1350
|
-
"name": "
|
|
1351
|
-
"type": "
|
|
1352
|
-
}
|
|
1360
|
+
"internalType": "address",
|
|
1361
|
+
"name": "",
|
|
1362
|
+
"type": "address"
|
|
1363
|
+
}
|
|
1364
|
+
],
|
|
1365
|
+
"name": "swapFee",
|
|
1366
|
+
"outputs": [
|
|
1353
1367
|
{
|
|
1354
|
-
"internalType": "
|
|
1355
|
-
"name": "
|
|
1356
|
-
"type": "
|
|
1368
|
+
"internalType": "uint256",
|
|
1369
|
+
"name": "",
|
|
1370
|
+
"type": "uint256"
|
|
1357
1371
|
}
|
|
1358
1372
|
],
|
|
1359
1373
|
"stateMutability": "view",
|
|
@@ -1363,55 +1377,30 @@
|
|
|
1363
1377
|
"inputs": [
|
|
1364
1378
|
{
|
|
1365
1379
|
"internalType": "address",
|
|
1366
|
-
"name": "
|
|
1380
|
+
"name": "token",
|
|
1367
1381
|
"type": "address"
|
|
1368
|
-
},
|
|
1369
|
-
{
|
|
1370
|
-
"internalType": "bool",
|
|
1371
|
-
"name": "zeroForOne",
|
|
1372
|
-
"type": "bool"
|
|
1373
|
-
},
|
|
1374
|
-
{
|
|
1375
|
-
"internalType": "int256",
|
|
1376
|
-
"name": "amountSpecified",
|
|
1377
|
-
"type": "int256"
|
|
1378
|
-
},
|
|
1379
|
-
{
|
|
1380
|
-
"internalType": "uint160",
|
|
1381
|
-
"name": "sqrtPriceLimitX96",
|
|
1382
|
-
"type": "uint160"
|
|
1383
|
-
},
|
|
1384
|
-
{
|
|
1385
|
-
"internalType": "bytes",
|
|
1386
|
-
"name": "data",
|
|
1387
|
-
"type": "bytes"
|
|
1388
1382
|
}
|
|
1389
1383
|
],
|
|
1390
|
-
"name": "
|
|
1384
|
+
"name": "tokenLimitMaxMultiplier",
|
|
1391
1385
|
"outputs": [
|
|
1392
1386
|
{
|
|
1393
|
-
"internalType": "
|
|
1394
|
-
"name": "
|
|
1395
|
-
"type": "
|
|
1396
|
-
},
|
|
1397
|
-
{
|
|
1398
|
-
"internalType": "int256",
|
|
1399
|
-
"name": "amount1",
|
|
1400
|
-
"type": "int256"
|
|
1387
|
+
"internalType": "uint256",
|
|
1388
|
+
"name": "",
|
|
1389
|
+
"type": "uint256"
|
|
1401
1390
|
}
|
|
1402
1391
|
],
|
|
1403
|
-
"stateMutability": "
|
|
1392
|
+
"stateMutability": "pure",
|
|
1404
1393
|
"type": "function"
|
|
1405
1394
|
},
|
|
1406
1395
|
{
|
|
1407
1396
|
"inputs": [
|
|
1408
1397
|
{
|
|
1409
|
-
"internalType": "
|
|
1410
|
-
"name": "
|
|
1411
|
-
"type": "
|
|
1398
|
+
"internalType": "address",
|
|
1399
|
+
"name": "token",
|
|
1400
|
+
"type": "address"
|
|
1412
1401
|
}
|
|
1413
1402
|
],
|
|
1414
|
-
"name": "
|
|
1403
|
+
"name": "tokenLimitMin",
|
|
1415
1404
|
"outputs": [
|
|
1416
1405
|
{
|
|
1417
1406
|
"internalType": "uint256",
|
|
@@ -1419,89 +1408,63 @@
|
|
|
1419
1408
|
"type": "uint256"
|
|
1420
1409
|
}
|
|
1421
1410
|
],
|
|
1422
|
-
"stateMutability": "
|
|
1411
|
+
"stateMutability": "pure",
|
|
1423
1412
|
"type": "function"
|
|
1424
1413
|
},
|
|
1425
1414
|
{
|
|
1426
|
-
"inputs": [
|
|
1427
|
-
|
|
1415
|
+
"inputs": [
|
|
1416
|
+
{
|
|
1417
|
+
"internalType": "address",
|
|
1418
|
+
"name": "pair",
|
|
1419
|
+
"type": "address"
|
|
1420
|
+
}
|
|
1421
|
+
],
|
|
1422
|
+
"name": "tolerance",
|
|
1428
1423
|
"outputs": [
|
|
1429
1424
|
{
|
|
1430
|
-
"internalType": "
|
|
1425
|
+
"internalType": "uint16",
|
|
1431
1426
|
"name": "",
|
|
1432
|
-
"type": "
|
|
1427
|
+
"type": "uint16"
|
|
1433
1428
|
}
|
|
1434
1429
|
],
|
|
1435
|
-
"stateMutability": "
|
|
1430
|
+
"stateMutability": "pure",
|
|
1436
1431
|
"type": "function"
|
|
1437
1432
|
},
|
|
1438
1433
|
{
|
|
1439
1434
|
"inputs": [
|
|
1440
1435
|
{
|
|
1441
|
-
"internalType": "
|
|
1442
|
-
"name": "
|
|
1443
|
-
"type": "
|
|
1436
|
+
"internalType": "address",
|
|
1437
|
+
"name": "pair",
|
|
1438
|
+
"type": "address"
|
|
1444
1439
|
}
|
|
1445
1440
|
],
|
|
1446
|
-
"name": "
|
|
1441
|
+
"name": "twapInterval",
|
|
1447
1442
|
"outputs": [
|
|
1448
|
-
{
|
|
1449
|
-
"internalType": "uint128",
|
|
1450
|
-
"name": "liquidityGross",
|
|
1451
|
-
"type": "uint128"
|
|
1452
|
-
},
|
|
1453
|
-
{
|
|
1454
|
-
"internalType": "int128",
|
|
1455
|
-
"name": "liquidityNet",
|
|
1456
|
-
"type": "int128"
|
|
1457
|
-
},
|
|
1458
|
-
{
|
|
1459
|
-
"internalType": "uint128",
|
|
1460
|
-
"name": "boostedLiquidityGross",
|
|
1461
|
-
"type": "uint128"
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
"internalType": "int128",
|
|
1465
|
-
"name": "boostedLiquidityNet",
|
|
1466
|
-
"type": "int128"
|
|
1467
|
-
},
|
|
1468
|
-
{
|
|
1469
|
-
"internalType": "uint256",
|
|
1470
|
-
"name": "feeGrowthOutside0X128",
|
|
1471
|
-
"type": "uint256"
|
|
1472
|
-
},
|
|
1473
|
-
{
|
|
1474
|
-
"internalType": "uint256",
|
|
1475
|
-
"name": "feeGrowthOutside1X128",
|
|
1476
|
-
"type": "uint256"
|
|
1477
|
-
},
|
|
1478
|
-
{
|
|
1479
|
-
"internalType": "int56",
|
|
1480
|
-
"name": "tickCumulativeOutside",
|
|
1481
|
-
"type": "int56"
|
|
1482
|
-
},
|
|
1483
|
-
{
|
|
1484
|
-
"internalType": "uint160",
|
|
1485
|
-
"name": "secondsPerLiquidityOutsideX128",
|
|
1486
|
-
"type": "uint160"
|
|
1487
|
-
},
|
|
1488
1443
|
{
|
|
1489
1444
|
"internalType": "uint32",
|
|
1490
|
-
"name": "
|
|
1445
|
+
"name": "",
|
|
1491
1446
|
"type": "uint32"
|
|
1492
|
-
}
|
|
1447
|
+
}
|
|
1448
|
+
],
|
|
1449
|
+
"stateMutability": "pure",
|
|
1450
|
+
"type": "function"
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
"inputs": [
|
|
1493
1454
|
{
|
|
1494
|
-
"internalType": "
|
|
1495
|
-
"name": "
|
|
1496
|
-
"type": "
|
|
1455
|
+
"internalType": "uint256",
|
|
1456
|
+
"name": "amount",
|
|
1457
|
+
"type": "uint256"
|
|
1497
1458
|
}
|
|
1498
1459
|
],
|
|
1499
|
-
"
|
|
1460
|
+
"name": "unwrapWeth",
|
|
1461
|
+
"outputs": [],
|
|
1462
|
+
"stateMutability": "nonpayable",
|
|
1500
1463
|
"type": "function"
|
|
1501
1464
|
},
|
|
1502
1465
|
{
|
|
1503
1466
|
"inputs": [],
|
|
1504
|
-
"name": "
|
|
1467
|
+
"name": "weth",
|
|
1505
1468
|
"outputs": [
|
|
1506
1469
|
{
|
|
1507
1470
|
"internalType": "address",
|
|
@@ -1509,46 +1472,65 @@
|
|
|
1509
1472
|
"type": "address"
|
|
1510
1473
|
}
|
|
1511
1474
|
],
|
|
1512
|
-
"stateMutability": "
|
|
1475
|
+
"stateMutability": "pure",
|
|
1513
1476
|
"type": "function"
|
|
1514
1477
|
},
|
|
1515
1478
|
{
|
|
1516
|
-
"inputs": [
|
|
1517
|
-
"name": "token1",
|
|
1518
|
-
"outputs": [
|
|
1479
|
+
"inputs": [
|
|
1519
1480
|
{
|
|
1520
1481
|
"internalType": "address",
|
|
1521
|
-
"name": "",
|
|
1482
|
+
"name": "oneInchRouter",
|
|
1522
1483
|
"type": "address"
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"internalType": "bool",
|
|
1487
|
+
"name": "whitelisted",
|
|
1488
|
+
"type": "bool"
|
|
1523
1489
|
}
|
|
1524
1490
|
],
|
|
1525
|
-
"
|
|
1491
|
+
"name": "whitelistOneInchRouter",
|
|
1492
|
+
"outputs": [],
|
|
1493
|
+
"stateMutability": "nonpayable",
|
|
1526
1494
|
"type": "function"
|
|
1527
1495
|
},
|
|
1528
1496
|
{
|
|
1529
|
-
"inputs": [
|
|
1530
|
-
"name": "veRam",
|
|
1531
|
-
"outputs": [
|
|
1497
|
+
"inputs": [
|
|
1532
1498
|
{
|
|
1533
1499
|
"internalType": "address",
|
|
1534
|
-
"name": "",
|
|
1500
|
+
"name": "token",
|
|
1501
|
+
"type": "address"
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"internalType": "uint256",
|
|
1505
|
+
"name": "amount",
|
|
1506
|
+
"type": "uint256"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
"internalType": "address",
|
|
1510
|
+
"name": "to",
|
|
1535
1511
|
"type": "address"
|
|
1536
1512
|
}
|
|
1537
1513
|
],
|
|
1538
|
-
"
|
|
1514
|
+
"name": "withdraw",
|
|
1515
|
+
"outputs": [],
|
|
1516
|
+
"stateMutability": "nonpayable",
|
|
1539
1517
|
"type": "function"
|
|
1540
1518
|
},
|
|
1541
1519
|
{
|
|
1542
|
-
"inputs": [
|
|
1543
|
-
"name": "voter",
|
|
1544
|
-
"outputs": [
|
|
1520
|
+
"inputs": [
|
|
1545
1521
|
{
|
|
1546
|
-
"internalType": "
|
|
1547
|
-
"name": "",
|
|
1548
|
-
"type": "
|
|
1522
|
+
"internalType": "uint256",
|
|
1523
|
+
"name": "amount",
|
|
1524
|
+
"type": "uint256"
|
|
1549
1525
|
}
|
|
1550
1526
|
],
|
|
1551
|
-
"
|
|
1527
|
+
"name": "wrapEth",
|
|
1528
|
+
"outputs": [],
|
|
1529
|
+
"stateMutability": "nonpayable",
|
|
1552
1530
|
"type": "function"
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"stateMutability": "payable",
|
|
1534
|
+
"type": "receive"
|
|
1553
1535
|
}
|
|
1554
1536
|
]
|