@paraswap/dex-lib 4.1.12 → 4.1.13
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/integral/oracle.json +501 -0
- 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/abi/{inception/inception-ineth.json → sdai/PSM3.abi.json} +354 -242
- package/build/abi/{angle-transmuter/ChainlinkEACAggregatorProxy.json → sdai/SSRAuthOracle.abi.json} +233 -220
- package/build/abi/uniswap-v4/pool-manager.abi.json +1366 -0
- package/build/abi/uniswap-v4/quoter.abi.json +461 -0
- package/build/abi/uniswap-v4/router.abi.json +230 -0
- package/build/abi/uniswap-v4/state-view.abi.json +365 -0
- 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/index.js +2 -0
- package/build/dex/index.js.map +1 -1
- 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/m-token/config.d.ts +3 -0
- package/build/dex/m-token/config.js +19 -0
- package/build/dex/m-token/config.js.map +1 -0
- package/build/dex/m-token/m-token.d.ts +29 -0
- package/build/dex/m-token/m-token.js +145 -0
- package/build/dex/m-token/m-token.js.map +1 -0
- package/build/dex/m-token/m-wrapped-m.d.ts +17 -0
- package/build/dex/m-token/m-wrapped-m.js +50 -0
- package/build/dex/m-token/m-wrapped-m.js.map +1 -0
- package/build/dex/m-token/types.d.ts +12 -0
- package/build/dex/{inception → m-token}/types.js.map +1 -1
- 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/spark/config.js.map +1 -1
- package/build/dex/spark/spark-psm.d.ts +51 -0
- package/build/dex/spark/spark-psm.js +276 -0
- package/build/dex/spark/spark-psm.js.map +1 -0
- package/build/dex/spark/spark-sdai-pool.d.ts +1 -1
- package/build/dex/spark/spark-sdai-pool.js.map +1 -1
- package/build/dex/spark/spark.d.ts +4 -3
- package/build/dex/spark/spark.js +4 -2
- package/build/dex/spark/spark.js.map +1 -1
- package/build/dex/spark/susds-psm.d.ts +49 -0
- package/build/dex/spark/susds-psm.js +245 -0
- package/build/dex/spark/susds-psm.js.map +1 -0
- package/build/dex/spark/types.d.ts +13 -2
- package/build/dex/spark/types.js +8 -1
- package/build/dex/spark/types.js.map +1 -1
- package/build/dex/spark/utils.d.ts +2 -1
- package/build/dex/spark/utils.js +23 -0
- package/build/dex/spark/utils.js.map +1 -1
- 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/uniswap-v4/config.d.ts +3 -0
- package/build/dex/uniswap-v4/config.js +58 -0
- package/build/dex/uniswap-v4/config.js.map +1 -0
- package/build/dex/uniswap-v4/constants.d.ts +7 -0
- package/build/dex/uniswap-v4/constants.js +18 -0
- package/build/dex/uniswap-v4/constants.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/BitMath.d.ts +4 -0
- package/build/dex/uniswap-v4/contract-math/BitMath.js +93 -0
- package/build/dex/uniswap-v4/contract-math/BitMath.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/FixedPoint128.d.ts +3 -0
- package/build/dex/uniswap-v4/contract-math/FixedPoint128.js +8 -0
- package/build/dex/uniswap-v4/contract-math/FixedPoint128.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/FixedPoint96.d.ts +4 -0
- package/build/dex/uniswap-v4/contract-math/FixedPoint96.js +9 -0
- package/build/dex/uniswap-v4/contract-math/FixedPoint96.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/FullMath.d.ts +4 -0
- package/build/dex/uniswap-v4/contract-math/FullMath.js +19 -0
- package/build/dex/uniswap-v4/contract-math/FullMath.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/LiquidityMath.d.ts +3 -0
- package/build/dex/uniswap-v4/contract-math/LiquidityMath.js +22 -0
- package/build/dex/uniswap-v4/contract-math/LiquidityMath.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/SqrtPriceMath.d.ts +10 -0
- package/build/dex/uniswap-v4/contract-math/SqrtPriceMath.js +91 -0
- package/build/dex/uniswap-v4/contract-math/SqrtPriceMath.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/SwapMath.d.ts +8 -0
- package/build/dex/uniswap-v4/contract-math/SwapMath.js +70 -0
- package/build/dex/uniswap-v4/contract-math/SwapMath.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/TickBitMap.d.ts +7 -0
- package/build/dex/uniswap-v4/contract-math/TickBitMap.js +86 -0
- package/build/dex/uniswap-v4/contract-math/TickBitMap.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/TickMath.d.ts +8 -0
- package/build/dex/uniswap-v4/contract-math/TickMath.js +162 -0
- package/build/dex/uniswap-v4/contract-math/TickMath.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/UnsafeMath.d.ts +3 -0
- package/build/dex/uniswap-v4/contract-math/UnsafeMath.js +10 -0
- package/build/dex/uniswap-v4/contract-math/UnsafeMath.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/uniswap-v4-math.d.ts +8 -0
- package/build/dex/uniswap-v4/contract-math/uniswap-v4-math.js +11 -0
- package/build/dex/uniswap-v4/contract-math/uniswap-v4-math.js.map +1 -0
- package/build/dex/uniswap-v4/encoder.d.ts +16 -0
- package/build/dex/uniswap-v4/encoder.js +104 -0
- package/build/dex/uniswap-v4/encoder.js.map +1 -0
- package/build/dex/uniswap-v4/subgraph.d.ts +5 -0
- package/build/dex/uniswap-v4/subgraph.js +80 -0
- package/build/dex/uniswap-v4/subgraph.js.map +1 -0
- package/build/dex/uniswap-v4/types.d.ts +64 -0
- package/build/dex/uniswap-v4/types.js +3 -0
- package/build/dex/uniswap-v4/types.js.map +1 -0
- package/build/dex/uniswap-v4/uniswap-v4-pool-manager.d.ts +33 -0
- package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js +152 -0
- package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js.map +1 -0
- package/build/dex/uniswap-v4/uniswap-v4.d.ts +38 -0
- package/build/dex/uniswap-v4/uniswap-v4.js +169 -0
- package/build/dex/uniswap-v4/uniswap-v4.js.map +1 -0
- package/build/dex/uniswap-v4/utils.d.ts +2 -0
- package/build/dex/uniswap-v4/utils.js +15 -0
- package/build/dex/uniswap-v4/utils.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/abi/sdai/PSM3.abi.json +721 -0
- package/src/abi/sdai/SSRAuthOracle.abi.json +522 -0
- package/src/dex/index.ts +2 -0
- package/src/dex/spark/config.ts +15 -2
- package/src/dex/spark/spark-e2e.test.ts +130 -13
- package/src/dex/spark/spark-events.test.ts +97 -0
- package/src/dex/spark/spark-integration.test.ts +256 -0
- package/src/dex/spark/spark-psm.ts +361 -0
- package/src/dex/spark/spark-sdai-pool.ts +1 -2
- package/src/dex/spark/spark.ts +4 -3
- package/src/dex/spark/types.ts +17 -2
- package/src/dex/spark/utils.ts +41 -1
- package/tests/constants-e2e.ts +18 -3
- 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-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/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
- /package/build/dex/{inception → m-token}/types.js +0 -0
|
@@ -1,66 +1,32 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"indexed": true,
|
|
7
|
-
"name": "buyer",
|
|
8
|
-
"type": "address"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"indexed": false,
|
|
12
|
-
"name": "sold_id",
|
|
13
|
-
"type": "int128"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"indexed": false,
|
|
17
|
-
"name": "tokens_sold",
|
|
18
|
-
"type": "uint256"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"indexed": false,
|
|
22
|
-
"name": "bought_id",
|
|
23
|
-
"type": "int128"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"indexed": false,
|
|
27
|
-
"name": "tokens_bought",
|
|
28
|
-
"type": "uint256"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"name": "TokenExchange",
|
|
32
|
-
"type": "event"
|
|
3
|
+
"inputs": [],
|
|
4
|
+
"stateMutability": "nonpayable",
|
|
5
|
+
"type": "constructor"
|
|
33
6
|
},
|
|
34
7
|
{
|
|
35
8
|
"anonymous": false,
|
|
36
9
|
"inputs": [
|
|
37
10
|
{
|
|
38
11
|
"indexed": true,
|
|
39
|
-
"
|
|
12
|
+
"internalType": "address",
|
|
13
|
+
"name": "owner",
|
|
40
14
|
"type": "address"
|
|
41
15
|
},
|
|
42
16
|
{
|
|
43
|
-
"indexed":
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
{
|
|
48
|
-
"indexed": false,
|
|
49
|
-
"name": "tokens_sold",
|
|
50
|
-
"type": "uint256"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"indexed": false,
|
|
54
|
-
"name": "bought_id",
|
|
55
|
-
"type": "int128"
|
|
17
|
+
"indexed": true,
|
|
18
|
+
"internalType": "address",
|
|
19
|
+
"name": "spender",
|
|
20
|
+
"type": "address"
|
|
56
21
|
},
|
|
57
22
|
{
|
|
58
23
|
"indexed": false,
|
|
59
|
-
"
|
|
24
|
+
"internalType": "uint256",
|
|
25
|
+
"name": "value",
|
|
60
26
|
"type": "uint256"
|
|
61
27
|
}
|
|
62
28
|
],
|
|
63
|
-
"name": "
|
|
29
|
+
"name": "Approval",
|
|
64
30
|
"type": "event"
|
|
65
31
|
},
|
|
66
32
|
{
|
|
@@ -68,58 +34,36 @@
|
|
|
68
34
|
"inputs": [
|
|
69
35
|
{
|
|
70
36
|
"indexed": true,
|
|
71
|
-
"
|
|
37
|
+
"internalType": "address",
|
|
38
|
+
"name": "sender",
|
|
72
39
|
"type": "address"
|
|
73
40
|
},
|
|
74
41
|
{
|
|
75
42
|
"indexed": false,
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
{
|
|
80
|
-
"indexed": false,
|
|
81
|
-
"name": "fees",
|
|
82
|
-
"type": "uint256[2]"
|
|
43
|
+
"internalType": "uint256",
|
|
44
|
+
"name": "amount0Out",
|
|
45
|
+
"type": "uint256"
|
|
83
46
|
},
|
|
84
47
|
{
|
|
85
48
|
"indexed": false,
|
|
86
|
-
"
|
|
49
|
+
"internalType": "uint256",
|
|
50
|
+
"name": "amount1Out",
|
|
87
51
|
"type": "uint256"
|
|
88
52
|
},
|
|
89
53
|
{
|
|
90
54
|
"indexed": false,
|
|
91
|
-
"
|
|
55
|
+
"internalType": "uint256",
|
|
56
|
+
"name": "liquidityIn",
|
|
92
57
|
"type": "uint256"
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"name": "AddLiquidity",
|
|
96
|
-
"type": "event"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"anonymous": false,
|
|
100
|
-
"inputs": [
|
|
58
|
+
},
|
|
101
59
|
{
|
|
102
60
|
"indexed": true,
|
|
103
|
-
"
|
|
61
|
+
"internalType": "address",
|
|
62
|
+
"name": "to",
|
|
104
63
|
"type": "address"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"indexed": false,
|
|
108
|
-
"name": "token_amounts",
|
|
109
|
-
"type": "uint256[2]"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"indexed": false,
|
|
113
|
-
"name": "fees",
|
|
114
|
-
"type": "uint256[2]"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"indexed": false,
|
|
118
|
-
"name": "token_supply",
|
|
119
|
-
"type": "uint256"
|
|
120
64
|
}
|
|
121
65
|
],
|
|
122
|
-
"name": "
|
|
66
|
+
"name": "Burn",
|
|
123
67
|
"type": "event"
|
|
124
68
|
},
|
|
125
69
|
{
|
|
@@ -127,109 +71,88 @@
|
|
|
127
71
|
"inputs": [
|
|
128
72
|
{
|
|
129
73
|
"indexed": true,
|
|
130
|
-
"
|
|
74
|
+
"internalType": "address",
|
|
75
|
+
"name": "sender",
|
|
131
76
|
"type": "address"
|
|
132
77
|
},
|
|
133
78
|
{
|
|
134
79
|
"indexed": false,
|
|
135
|
-
"
|
|
80
|
+
"internalType": "uint256",
|
|
81
|
+
"name": "amount0In",
|
|
136
82
|
"type": "uint256"
|
|
137
83
|
},
|
|
138
84
|
{
|
|
139
85
|
"indexed": false,
|
|
140
|
-
"
|
|
86
|
+
"internalType": "uint256",
|
|
87
|
+
"name": "amount1In",
|
|
141
88
|
"type": "uint256"
|
|
142
89
|
},
|
|
143
90
|
{
|
|
144
91
|
"indexed": false,
|
|
145
|
-
"
|
|
92
|
+
"internalType": "uint256",
|
|
93
|
+
"name": "liquidityOut",
|
|
146
94
|
"type": "uint256"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"indexed": true,
|
|
98
|
+
"internalType": "address",
|
|
99
|
+
"name": "to",
|
|
100
|
+
"type": "address"
|
|
147
101
|
}
|
|
148
102
|
],
|
|
149
|
-
"name": "
|
|
103
|
+
"name": "Mint",
|
|
150
104
|
"type": "event"
|
|
151
105
|
},
|
|
152
106
|
{
|
|
153
107
|
"anonymous": false,
|
|
154
108
|
"inputs": [
|
|
155
|
-
{
|
|
156
|
-
"indexed": true,
|
|
157
|
-
"name": "provider",
|
|
158
|
-
"type": "address"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"indexed": false,
|
|
162
|
-
"name": "token_amounts",
|
|
163
|
-
"type": "uint256[2]"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"indexed": false,
|
|
167
|
-
"name": "fees",
|
|
168
|
-
"type": "uint256[2]"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"indexed": false,
|
|
172
|
-
"name": "invariant",
|
|
173
|
-
"type": "uint256"
|
|
174
|
-
},
|
|
175
109
|
{
|
|
176
110
|
"indexed": false,
|
|
177
|
-
"
|
|
111
|
+
"internalType": "uint256",
|
|
112
|
+
"name": "fee",
|
|
178
113
|
"type": "uint256"
|
|
179
114
|
}
|
|
180
115
|
],
|
|
181
|
-
"name": "
|
|
116
|
+
"name": "SetBurnFee",
|
|
182
117
|
"type": "event"
|
|
183
118
|
},
|
|
184
119
|
{
|
|
185
120
|
"anonymous": false,
|
|
186
121
|
"inputs": [
|
|
187
122
|
{
|
|
188
|
-
"indexed":
|
|
189
|
-
"
|
|
123
|
+
"indexed": false,
|
|
124
|
+
"internalType": "uint256",
|
|
125
|
+
"name": "fee",
|
|
190
126
|
"type": "uint256"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"indexed": true,
|
|
194
|
-
"name": "admin",
|
|
195
|
-
"type": "address"
|
|
196
127
|
}
|
|
197
128
|
],
|
|
198
|
-
"name": "
|
|
129
|
+
"name": "SetMintFee",
|
|
199
130
|
"type": "event"
|
|
200
131
|
},
|
|
201
132
|
{
|
|
202
133
|
"anonymous": false,
|
|
203
134
|
"inputs": [
|
|
204
135
|
{
|
|
205
|
-
"indexed":
|
|
206
|
-
"
|
|
136
|
+
"indexed": false,
|
|
137
|
+
"internalType": "address",
|
|
138
|
+
"name": "account",
|
|
207
139
|
"type": "address"
|
|
208
140
|
}
|
|
209
141
|
],
|
|
210
|
-
"name": "
|
|
142
|
+
"name": "SetOracle",
|
|
211
143
|
"type": "event"
|
|
212
144
|
},
|
|
213
145
|
{
|
|
214
146
|
"anonymous": false,
|
|
215
147
|
"inputs": [
|
|
216
|
-
{
|
|
217
|
-
"indexed": true,
|
|
218
|
-
"name": "deadline",
|
|
219
|
-
"type": "uint256"
|
|
220
|
-
},
|
|
221
148
|
{
|
|
222
149
|
"indexed": false,
|
|
150
|
+
"internalType": "uint256",
|
|
223
151
|
"name": "fee",
|
|
224
152
|
"type": "uint256"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"indexed": false,
|
|
228
|
-
"name": "admin_fee",
|
|
229
|
-
"type": "uint256"
|
|
230
153
|
}
|
|
231
154
|
],
|
|
232
|
-
"name": "
|
|
155
|
+
"name": "SetSwapFee",
|
|
233
156
|
"type": "event"
|
|
234
157
|
},
|
|
235
158
|
{
|
|
@@ -237,116 +160,101 @@
|
|
|
237
160
|
"inputs": [
|
|
238
161
|
{
|
|
239
162
|
"indexed": false,
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
|
|
243
|
-
{
|
|
244
|
-
"indexed": false,
|
|
245
|
-
"name": "admin_fee",
|
|
246
|
-
"type": "uint256"
|
|
163
|
+
"internalType": "address",
|
|
164
|
+
"name": "trader",
|
|
165
|
+
"type": "address"
|
|
247
166
|
}
|
|
248
167
|
],
|
|
249
|
-
"name": "
|
|
168
|
+
"name": "SetTrader",
|
|
250
169
|
"type": "event"
|
|
251
170
|
},
|
|
252
171
|
{
|
|
253
172
|
"anonymous": false,
|
|
254
173
|
"inputs": [
|
|
255
174
|
{
|
|
256
|
-
"indexed":
|
|
257
|
-
"
|
|
258
|
-
"
|
|
175
|
+
"indexed": true,
|
|
176
|
+
"internalType": "address",
|
|
177
|
+
"name": "sender",
|
|
178
|
+
"type": "address"
|
|
259
179
|
},
|
|
260
180
|
{
|
|
261
181
|
"indexed": false,
|
|
262
|
-
"
|
|
182
|
+
"internalType": "uint256",
|
|
183
|
+
"name": "amount0In",
|
|
263
184
|
"type": "uint256"
|
|
264
185
|
},
|
|
265
186
|
{
|
|
266
187
|
"indexed": false,
|
|
267
|
-
"
|
|
188
|
+
"internalType": "uint256",
|
|
189
|
+
"name": "amount1In",
|
|
268
190
|
"type": "uint256"
|
|
269
191
|
},
|
|
270
192
|
{
|
|
271
193
|
"indexed": false,
|
|
272
|
-
"
|
|
194
|
+
"internalType": "uint256",
|
|
195
|
+
"name": "amount0Out",
|
|
273
196
|
"type": "uint256"
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
"name": "RampA",
|
|
277
|
-
"type": "event"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"anonymous": false,
|
|
281
|
-
"inputs": [
|
|
197
|
+
},
|
|
282
198
|
{
|
|
283
199
|
"indexed": false,
|
|
284
|
-
"
|
|
200
|
+
"internalType": "uint256",
|
|
201
|
+
"name": "amount1Out",
|
|
285
202
|
"type": "uint256"
|
|
286
203
|
},
|
|
287
204
|
{
|
|
288
|
-
"indexed":
|
|
289
|
-
"
|
|
290
|
-
"
|
|
205
|
+
"indexed": true,
|
|
206
|
+
"internalType": "address",
|
|
207
|
+
"name": "to",
|
|
208
|
+
"type": "address"
|
|
291
209
|
}
|
|
292
210
|
],
|
|
293
|
-
"name": "
|
|
211
|
+
"name": "Swap",
|
|
294
212
|
"type": "event"
|
|
295
213
|
},
|
|
296
214
|
{
|
|
215
|
+
"anonymous": false,
|
|
297
216
|
"inputs": [
|
|
298
217
|
{
|
|
299
|
-
"
|
|
300
|
-
"
|
|
301
|
-
|
|
302
|
-
{
|
|
303
|
-
"name": "_coins",
|
|
304
|
-
"type": "address[2]"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"name": "_pool_token",
|
|
218
|
+
"indexed": true,
|
|
219
|
+
"internalType": "address",
|
|
220
|
+
"name": "from",
|
|
308
221
|
"type": "address"
|
|
309
222
|
},
|
|
310
223
|
{
|
|
311
|
-
"
|
|
224
|
+
"indexed": true,
|
|
225
|
+
"internalType": "address",
|
|
226
|
+
"name": "to",
|
|
312
227
|
"type": "address"
|
|
313
228
|
},
|
|
314
229
|
{
|
|
315
|
-
"
|
|
316
|
-
"
|
|
317
|
-
|
|
318
|
-
{
|
|
319
|
-
"name": "_fee",
|
|
320
|
-
"type": "uint256"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"name": "_admin_fee",
|
|
230
|
+
"indexed": false,
|
|
231
|
+
"internalType": "uint256",
|
|
232
|
+
"name": "value",
|
|
324
233
|
"type": "uint256"
|
|
325
234
|
}
|
|
326
235
|
],
|
|
327
|
-
"
|
|
328
|
-
"
|
|
329
|
-
"type": "constructor"
|
|
236
|
+
"name": "Transfer",
|
|
237
|
+
"type": "event"
|
|
330
238
|
},
|
|
331
239
|
{
|
|
332
|
-
"gas": 5205,
|
|
333
240
|
"inputs": [],
|
|
334
|
-
"name": "
|
|
241
|
+
"name": "DOMAIN_TYPEHASH",
|
|
335
242
|
"outputs": [
|
|
336
243
|
{
|
|
244
|
+
"internalType": "bytes32",
|
|
337
245
|
"name": "",
|
|
338
|
-
"type": "
|
|
246
|
+
"type": "bytes32"
|
|
339
247
|
}
|
|
340
248
|
],
|
|
341
249
|
"stateMutability": "view",
|
|
342
250
|
"type": "function"
|
|
343
251
|
},
|
|
344
252
|
{
|
|
345
|
-
"gas": 5167,
|
|
346
253
|
"inputs": [],
|
|
347
|
-
"name": "
|
|
254
|
+
"name": "MINIMUM_LIQUIDITY",
|
|
348
255
|
"outputs": [
|
|
349
256
|
{
|
|
257
|
+
"internalType": "uint256",
|
|
350
258
|
"name": "",
|
|
351
259
|
"type": "uint256"
|
|
352
260
|
}
|
|
@@ -355,33 +263,35 @@
|
|
|
355
263
|
"type": "function"
|
|
356
264
|
},
|
|
357
265
|
{
|
|
358
|
-
"gas": 992854,
|
|
359
266
|
"inputs": [],
|
|
360
|
-
"name": "
|
|
267
|
+
"name": "PERMIT_TYPEHASH",
|
|
361
268
|
"outputs": [
|
|
362
269
|
{
|
|
270
|
+
"internalType": "bytes32",
|
|
363
271
|
"name": "",
|
|
364
|
-
"type": "
|
|
272
|
+
"type": "bytes32"
|
|
365
273
|
}
|
|
366
274
|
],
|
|
367
275
|
"stateMutability": "view",
|
|
368
276
|
"type": "function"
|
|
369
277
|
},
|
|
370
278
|
{
|
|
371
|
-
"gas": 3939870,
|
|
372
279
|
"inputs": [
|
|
373
280
|
{
|
|
374
|
-
"
|
|
375
|
-
"
|
|
281
|
+
"internalType": "address",
|
|
282
|
+
"name": "",
|
|
283
|
+
"type": "address"
|
|
376
284
|
},
|
|
377
285
|
{
|
|
378
|
-
"
|
|
379
|
-
"
|
|
286
|
+
"internalType": "address",
|
|
287
|
+
"name": "",
|
|
288
|
+
"type": "address"
|
|
380
289
|
}
|
|
381
290
|
],
|
|
382
|
-
"name": "
|
|
291
|
+
"name": "allowance",
|
|
383
292
|
"outputs": [
|
|
384
293
|
{
|
|
294
|
+
"internalType": "uint256",
|
|
385
295
|
"name": "",
|
|
386
296
|
"type": "uint256"
|
|
387
297
|
}
|
|
@@ -390,46 +300,41 @@
|
|
|
390
300
|
"type": "function"
|
|
391
301
|
},
|
|
392
302
|
{
|
|
393
|
-
"gas": 6138492,
|
|
394
303
|
"inputs": [
|
|
395
304
|
{
|
|
396
|
-
"
|
|
397
|
-
"
|
|
305
|
+
"internalType": "address",
|
|
306
|
+
"name": "spender",
|
|
307
|
+
"type": "address"
|
|
398
308
|
},
|
|
399
309
|
{
|
|
400
|
-
"
|
|
310
|
+
"internalType": "uint256",
|
|
311
|
+
"name": "value",
|
|
401
312
|
"type": "uint256"
|
|
402
313
|
}
|
|
403
314
|
],
|
|
404
|
-
"name": "
|
|
315
|
+
"name": "approve",
|
|
405
316
|
"outputs": [
|
|
406
317
|
{
|
|
318
|
+
"internalType": "bool",
|
|
407
319
|
"name": "",
|
|
408
|
-
"type": "
|
|
320
|
+
"type": "bool"
|
|
409
321
|
}
|
|
410
322
|
],
|
|
411
323
|
"stateMutability": "nonpayable",
|
|
412
324
|
"type": "function"
|
|
413
325
|
},
|
|
414
326
|
{
|
|
415
|
-
"gas": 2390368,
|
|
416
327
|
"inputs": [
|
|
417
328
|
{
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
|
|
421
|
-
{
|
|
422
|
-
"name": "j",
|
|
423
|
-
"type": "int128"
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"name": "dx",
|
|
427
|
-
"type": "uint256"
|
|
329
|
+
"internalType": "address",
|
|
330
|
+
"name": "",
|
|
331
|
+
"type": "address"
|
|
428
332
|
}
|
|
429
333
|
],
|
|
430
|
-
"name": "
|
|
334
|
+
"name": "balanceOf",
|
|
431
335
|
"outputs": [
|
|
432
336
|
{
|
|
337
|
+
"internalType": "uint256",
|
|
433
338
|
"name": "",
|
|
434
339
|
"type": "uint256"
|
|
435
340
|
}
|
|
@@ -438,24 +343,35 @@
|
|
|
438
343
|
"type": "function"
|
|
439
344
|
},
|
|
440
345
|
{
|
|
441
|
-
"gas": 2393485,
|
|
442
346
|
"inputs": [
|
|
443
347
|
{
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
|
|
348
|
+
"internalType": "address",
|
|
349
|
+
"name": "to",
|
|
350
|
+
"type": "address"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"name": "burn",
|
|
354
|
+
"outputs": [
|
|
447
355
|
{
|
|
448
|
-
"
|
|
449
|
-
"
|
|
356
|
+
"internalType": "uint256",
|
|
357
|
+
"name": "amount0Out",
|
|
358
|
+
"type": "uint256"
|
|
450
359
|
},
|
|
451
360
|
{
|
|
452
|
-
"
|
|
361
|
+
"internalType": "uint256",
|
|
362
|
+
"name": "amount1Out",
|
|
453
363
|
"type": "uint256"
|
|
454
364
|
}
|
|
455
365
|
],
|
|
456
|
-
"
|
|
366
|
+
"stateMutability": "nonpayable",
|
|
367
|
+
"type": "function"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"inputs": [],
|
|
371
|
+
"name": "burnFee",
|
|
457
372
|
"outputs": [
|
|
458
373
|
{
|
|
374
|
+
"internalType": "uint256",
|
|
459
375
|
"name": "",
|
|
460
376
|
"type": "uint256"
|
|
461
377
|
}
|
|
@@ -464,125 +380,183 @@
|
|
|
464
380
|
"type": "function"
|
|
465
381
|
},
|
|
466
382
|
{
|
|
467
|
-
"gas": 2617568,
|
|
468
383
|
"inputs": [
|
|
469
384
|
{
|
|
470
|
-
"
|
|
471
|
-
"
|
|
472
|
-
|
|
385
|
+
"internalType": "address",
|
|
386
|
+
"name": "to",
|
|
387
|
+
"type": "address"
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"name": "collect",
|
|
391
|
+
"outputs": [],
|
|
392
|
+
"stateMutability": "nonpayable",
|
|
393
|
+
"type": "function"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"inputs": [],
|
|
397
|
+
"name": "decimals",
|
|
398
|
+
"outputs": [
|
|
473
399
|
{
|
|
474
|
-
"
|
|
475
|
-
"
|
|
476
|
-
|
|
400
|
+
"internalType": "uint8",
|
|
401
|
+
"name": "",
|
|
402
|
+
"type": "uint8"
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"stateMutability": "view",
|
|
406
|
+
"type": "function"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"inputs": [
|
|
477
410
|
{
|
|
478
|
-
"
|
|
479
|
-
"
|
|
411
|
+
"internalType": "address",
|
|
412
|
+
"name": "spender",
|
|
413
|
+
"type": "address"
|
|
480
414
|
},
|
|
481
415
|
{
|
|
482
|
-
"
|
|
416
|
+
"internalType": "uint256",
|
|
417
|
+
"name": "subtractedValue",
|
|
483
418
|
"type": "uint256"
|
|
484
419
|
}
|
|
485
420
|
],
|
|
486
|
-
"name": "
|
|
421
|
+
"name": "decreaseAllowance",
|
|
487
422
|
"outputs": [
|
|
488
423
|
{
|
|
424
|
+
"internalType": "bool",
|
|
489
425
|
"name": "",
|
|
490
|
-
"type": "
|
|
426
|
+
"type": "bool"
|
|
491
427
|
}
|
|
492
428
|
],
|
|
493
429
|
"stateMutability": "nonpayable",
|
|
494
430
|
"type": "function"
|
|
495
431
|
},
|
|
496
432
|
{
|
|
497
|
-
"
|
|
498
|
-
"
|
|
499
|
-
|
|
500
|
-
"name": "i",
|
|
501
|
-
"type": "int128"
|
|
502
|
-
},
|
|
433
|
+
"inputs": [],
|
|
434
|
+
"name": "factory",
|
|
435
|
+
"outputs": [
|
|
503
436
|
{
|
|
504
|
-
"
|
|
505
|
-
"
|
|
506
|
-
|
|
437
|
+
"internalType": "address",
|
|
438
|
+
"name": "",
|
|
439
|
+
"type": "address"
|
|
440
|
+
}
|
|
441
|
+
],
|
|
442
|
+
"stateMutability": "view",
|
|
443
|
+
"type": "function"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"inputs": [
|
|
507
447
|
{
|
|
508
|
-
"
|
|
448
|
+
"internalType": "uint256",
|
|
449
|
+
"name": "amount0",
|
|
509
450
|
"type": "uint256"
|
|
510
451
|
},
|
|
511
452
|
{
|
|
512
|
-
"
|
|
513
|
-
"
|
|
453
|
+
"internalType": "bytes",
|
|
454
|
+
"name": "data",
|
|
455
|
+
"type": "bytes"
|
|
514
456
|
}
|
|
515
457
|
],
|
|
516
|
-
"name": "
|
|
458
|
+
"name": "getDepositAmount0In",
|
|
517
459
|
"outputs": [
|
|
518
460
|
{
|
|
461
|
+
"internalType": "uint256",
|
|
519
462
|
"name": "",
|
|
520
463
|
"type": "uint256"
|
|
521
464
|
}
|
|
522
465
|
],
|
|
523
|
-
"stateMutability": "
|
|
466
|
+
"stateMutability": "view",
|
|
524
467
|
"type": "function"
|
|
525
468
|
},
|
|
526
469
|
{
|
|
527
|
-
"gas": 163289,
|
|
528
470
|
"inputs": [
|
|
529
471
|
{
|
|
530
|
-
"
|
|
472
|
+
"internalType": "uint256",
|
|
473
|
+
"name": "amount1",
|
|
531
474
|
"type": "uint256"
|
|
532
475
|
},
|
|
533
476
|
{
|
|
534
|
-
"
|
|
535
|
-
"
|
|
477
|
+
"internalType": "bytes",
|
|
478
|
+
"name": "data",
|
|
479
|
+
"type": "bytes"
|
|
536
480
|
}
|
|
537
481
|
],
|
|
538
|
-
"name": "
|
|
482
|
+
"name": "getDepositAmount1In",
|
|
539
483
|
"outputs": [
|
|
540
484
|
{
|
|
485
|
+
"internalType": "uint256",
|
|
541
486
|
"name": "",
|
|
542
|
-
"type": "uint256
|
|
487
|
+
"type": "uint256"
|
|
543
488
|
}
|
|
544
489
|
],
|
|
545
|
-
"stateMutability": "
|
|
490
|
+
"stateMutability": "view",
|
|
546
491
|
"type": "function"
|
|
547
492
|
},
|
|
548
493
|
{
|
|
549
|
-
"
|
|
550
|
-
"
|
|
494
|
+
"inputs": [],
|
|
495
|
+
"name": "getDomainSeparator",
|
|
496
|
+
"outputs": [
|
|
551
497
|
{
|
|
552
|
-
"
|
|
553
|
-
"
|
|
498
|
+
"internalType": "bytes32",
|
|
499
|
+
"name": "",
|
|
500
|
+
"type": "bytes32"
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
"stateMutability": "view",
|
|
504
|
+
"type": "function"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"inputs": [],
|
|
508
|
+
"name": "getFees",
|
|
509
|
+
"outputs": [
|
|
510
|
+
{
|
|
511
|
+
"internalType": "uint256",
|
|
512
|
+
"name": "",
|
|
513
|
+
"type": "uint256"
|
|
554
514
|
},
|
|
555
515
|
{
|
|
556
|
-
"
|
|
516
|
+
"internalType": "uint256",
|
|
517
|
+
"name": "",
|
|
557
518
|
"type": "uint256"
|
|
558
519
|
}
|
|
559
520
|
],
|
|
560
|
-
"
|
|
521
|
+
"stateMutability": "view",
|
|
522
|
+
"type": "function"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"inputs": [],
|
|
526
|
+
"name": "getReserves",
|
|
561
527
|
"outputs": [
|
|
562
528
|
{
|
|
529
|
+
"internalType": "uint112",
|
|
563
530
|
"name": "",
|
|
564
|
-
"type": "
|
|
531
|
+
"type": "uint112"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"internalType": "uint112",
|
|
535
|
+
"name": "",
|
|
536
|
+
"type": "uint112"
|
|
565
537
|
}
|
|
566
538
|
],
|
|
567
|
-
"stateMutability": "
|
|
539
|
+
"stateMutability": "view",
|
|
568
540
|
"type": "function"
|
|
569
541
|
},
|
|
570
542
|
{
|
|
571
|
-
"gas": 4335,
|
|
572
543
|
"inputs": [
|
|
573
544
|
{
|
|
574
|
-
"
|
|
545
|
+
"internalType": "uint256",
|
|
546
|
+
"name": "amount1Out",
|
|
575
547
|
"type": "uint256"
|
|
576
548
|
},
|
|
577
549
|
{
|
|
578
|
-
"
|
|
579
|
-
"
|
|
550
|
+
"internalType": "bytes",
|
|
551
|
+
"name": "data",
|
|
552
|
+
"type": "bytes"
|
|
580
553
|
}
|
|
581
554
|
],
|
|
582
|
-
"name": "
|
|
555
|
+
"name": "getSwapAmount0In",
|
|
583
556
|
"outputs": [
|
|
584
557
|
{
|
|
585
|
-
"
|
|
558
|
+
"internalType": "uint256",
|
|
559
|
+
"name": "swapAmount0In",
|
|
586
560
|
"type": "uint256"
|
|
587
561
|
}
|
|
588
562
|
],
|
|
@@ -590,197 +564,154 @@
|
|
|
590
564
|
"type": "function"
|
|
591
565
|
},
|
|
592
566
|
{
|
|
593
|
-
"gas": 3827137,
|
|
594
567
|
"inputs": [
|
|
595
568
|
{
|
|
596
|
-
"
|
|
569
|
+
"internalType": "uint256",
|
|
570
|
+
"name": "amount1In",
|
|
597
571
|
"type": "uint256"
|
|
598
572
|
},
|
|
599
573
|
{
|
|
600
|
-
"
|
|
601
|
-
"
|
|
602
|
-
|
|
603
|
-
{
|
|
604
|
-
"name": "_min_amount",
|
|
605
|
-
"type": "uint256"
|
|
574
|
+
"internalType": "bytes",
|
|
575
|
+
"name": "data",
|
|
576
|
+
"type": "bytes"
|
|
606
577
|
}
|
|
607
578
|
],
|
|
608
|
-
"name": "
|
|
579
|
+
"name": "getSwapAmount0Out",
|
|
609
580
|
"outputs": [
|
|
610
581
|
{
|
|
611
|
-
"
|
|
582
|
+
"internalType": "uint256",
|
|
583
|
+
"name": "swapAmount0Out",
|
|
612
584
|
"type": "uint256"
|
|
613
585
|
}
|
|
614
586
|
],
|
|
615
|
-
"stateMutability": "
|
|
587
|
+
"stateMutability": "view",
|
|
616
588
|
"type": "function"
|
|
617
589
|
},
|
|
618
590
|
{
|
|
619
|
-
"gas": 151906,
|
|
620
591
|
"inputs": [
|
|
621
592
|
{
|
|
622
|
-
"
|
|
593
|
+
"internalType": "uint256",
|
|
594
|
+
"name": "amount0Out",
|
|
623
595
|
"type": "uint256"
|
|
624
596
|
},
|
|
625
597
|
{
|
|
626
|
-
"
|
|
598
|
+
"internalType": "bytes",
|
|
599
|
+
"name": "data",
|
|
600
|
+
"type": "bytes"
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
"name": "getSwapAmount1In",
|
|
604
|
+
"outputs": [
|
|
605
|
+
{
|
|
606
|
+
"internalType": "uint256",
|
|
607
|
+
"name": "swapAmount1In",
|
|
627
608
|
"type": "uint256"
|
|
628
609
|
}
|
|
629
610
|
],
|
|
630
|
-
"
|
|
631
|
-
"outputs": [],
|
|
632
|
-
"stateMutability": "nonpayable",
|
|
633
|
-
"type": "function"
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
"gas": 148667,
|
|
637
|
-
"inputs": [],
|
|
638
|
-
"name": "stop_ramp_A",
|
|
639
|
-
"outputs": [],
|
|
640
|
-
"stateMutability": "nonpayable",
|
|
611
|
+
"stateMutability": "view",
|
|
641
612
|
"type": "function"
|
|
642
613
|
},
|
|
643
614
|
{
|
|
644
|
-
"gas": 110491,
|
|
645
615
|
"inputs": [
|
|
646
616
|
{
|
|
647
|
-
"
|
|
617
|
+
"internalType": "uint256",
|
|
618
|
+
"name": "amount0In",
|
|
648
619
|
"type": "uint256"
|
|
649
620
|
},
|
|
650
621
|
{
|
|
651
|
-
"
|
|
652
|
-
"
|
|
622
|
+
"internalType": "bytes",
|
|
623
|
+
"name": "data",
|
|
624
|
+
"type": "bytes"
|
|
653
625
|
}
|
|
654
626
|
],
|
|
655
|
-
"name": "
|
|
656
|
-
"outputs": [
|
|
657
|
-
"stateMutability": "nonpayable",
|
|
658
|
-
"type": "function"
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
"gas": 97272,
|
|
662
|
-
"inputs": [],
|
|
663
|
-
"name": "apply_new_fee",
|
|
664
|
-
"outputs": [],
|
|
665
|
-
"stateMutability": "nonpayable",
|
|
666
|
-
"type": "function"
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
"gas": 21925,
|
|
670
|
-
"inputs": [],
|
|
671
|
-
"name": "revert_new_parameters",
|
|
672
|
-
"outputs": [],
|
|
673
|
-
"stateMutability": "nonpayable",
|
|
674
|
-
"type": "function"
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
"gas": 74663,
|
|
678
|
-
"inputs": [
|
|
627
|
+
"name": "getSwapAmount1Out",
|
|
628
|
+
"outputs": [
|
|
679
629
|
{
|
|
680
|
-
"
|
|
681
|
-
"
|
|
630
|
+
"internalType": "uint256",
|
|
631
|
+
"name": "swapAmount1Out",
|
|
632
|
+
"type": "uint256"
|
|
682
633
|
}
|
|
683
634
|
],
|
|
684
|
-
"
|
|
685
|
-
"outputs": [],
|
|
686
|
-
"stateMutability": "nonpayable",
|
|
687
|
-
"type": "function"
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
"gas": 60740,
|
|
691
|
-
"inputs": [],
|
|
692
|
-
"name": "apply_transfer_ownership",
|
|
693
|
-
"outputs": [],
|
|
694
|
-
"stateMutability": "nonpayable",
|
|
695
|
-
"type": "function"
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
"gas": 22015,
|
|
699
|
-
"inputs": [],
|
|
700
|
-
"name": "revert_transfer_ownership",
|
|
701
|
-
"outputs": [],
|
|
702
|
-
"stateMutability": "nonpayable",
|
|
635
|
+
"stateMutability": "view",
|
|
703
636
|
"type": "function"
|
|
704
637
|
},
|
|
705
638
|
{
|
|
706
|
-
"gas": 3511,
|
|
707
639
|
"inputs": [
|
|
708
640
|
{
|
|
709
|
-
"
|
|
641
|
+
"internalType": "address",
|
|
642
|
+
"name": "spender",
|
|
643
|
+
"type": "address"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"internalType": "uint256",
|
|
647
|
+
"name": "addedValue",
|
|
710
648
|
"type": "uint256"
|
|
711
649
|
}
|
|
712
650
|
],
|
|
713
|
-
"name": "
|
|
651
|
+
"name": "increaseAllowance",
|
|
714
652
|
"outputs": [
|
|
715
653
|
{
|
|
654
|
+
"internalType": "bool",
|
|
716
655
|
"name": "",
|
|
717
|
-
"type": "
|
|
656
|
+
"type": "bool"
|
|
718
657
|
}
|
|
719
658
|
],
|
|
720
|
-
"stateMutability": "view",
|
|
721
|
-
"type": "function"
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
"gas": 9248,
|
|
725
|
-
"inputs": [],
|
|
726
|
-
"name": "withdraw_admin_fees",
|
|
727
|
-
"outputs": [],
|
|
728
|
-
"stateMutability": "nonpayable",
|
|
729
|
-
"type": "function"
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
"gas": 74995,
|
|
733
|
-
"inputs": [],
|
|
734
|
-
"name": "donate_admin_fees",
|
|
735
|
-
"outputs": [],
|
|
736
|
-
"stateMutability": "nonpayable",
|
|
737
|
-
"type": "function"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"gas": 38028,
|
|
741
|
-
"inputs": [],
|
|
742
|
-
"name": "kill_me",
|
|
743
|
-
"outputs": [],
|
|
744
659
|
"stateMutability": "nonpayable",
|
|
745
660
|
"type": "function"
|
|
746
661
|
},
|
|
747
662
|
{
|
|
748
|
-
"
|
|
749
|
-
|
|
750
|
-
|
|
663
|
+
"inputs": [
|
|
664
|
+
{
|
|
665
|
+
"internalType": "address",
|
|
666
|
+
"name": "_token0",
|
|
667
|
+
"type": "address"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"internalType": "address",
|
|
671
|
+
"name": "_token1",
|
|
672
|
+
"type": "address"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"internalType": "address",
|
|
676
|
+
"name": "_oracle",
|
|
677
|
+
"type": "address"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"internalType": "address",
|
|
681
|
+
"name": "_trader",
|
|
682
|
+
"type": "address"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"name": "initialize",
|
|
751
686
|
"outputs": [],
|
|
752
687
|
"stateMutability": "nonpayable",
|
|
753
688
|
"type": "function"
|
|
754
689
|
},
|
|
755
690
|
{
|
|
756
|
-
"gas": 2250,
|
|
757
691
|
"inputs": [
|
|
758
692
|
{
|
|
759
|
-
"
|
|
760
|
-
"
|
|
693
|
+
"internalType": "address",
|
|
694
|
+
"name": "to",
|
|
695
|
+
"type": "address"
|
|
761
696
|
}
|
|
762
697
|
],
|
|
763
|
-
"name": "
|
|
698
|
+
"name": "mint",
|
|
764
699
|
"outputs": [
|
|
765
700
|
{
|
|
766
|
-
"
|
|
767
|
-
"
|
|
701
|
+
"internalType": "uint256",
|
|
702
|
+
"name": "liquidityOut",
|
|
703
|
+
"type": "uint256"
|
|
768
704
|
}
|
|
769
705
|
],
|
|
770
|
-
"stateMutability": "
|
|
706
|
+
"stateMutability": "nonpayable",
|
|
771
707
|
"type": "function"
|
|
772
708
|
},
|
|
773
709
|
{
|
|
774
|
-
"
|
|
775
|
-
"
|
|
776
|
-
{
|
|
777
|
-
"name": "arg0",
|
|
778
|
-
"type": "uint256"
|
|
779
|
-
}
|
|
780
|
-
],
|
|
781
|
-
"name": "balances",
|
|
710
|
+
"inputs": [],
|
|
711
|
+
"name": "mintFee",
|
|
782
712
|
"outputs": [
|
|
783
713
|
{
|
|
714
|
+
"internalType": "uint256",
|
|
784
715
|
"name": "",
|
|
785
716
|
"type": "uint256"
|
|
786
717
|
}
|
|
@@ -789,24 +720,30 @@
|
|
|
789
720
|
"type": "function"
|
|
790
721
|
},
|
|
791
722
|
{
|
|
792
|
-
"gas": 2201,
|
|
793
723
|
"inputs": [],
|
|
794
|
-
"name": "
|
|
724
|
+
"name": "name",
|
|
795
725
|
"outputs": [
|
|
796
726
|
{
|
|
727
|
+
"internalType": "string",
|
|
797
728
|
"name": "",
|
|
798
|
-
"type": "
|
|
729
|
+
"type": "string"
|
|
799
730
|
}
|
|
800
731
|
],
|
|
801
732
|
"stateMutability": "view",
|
|
802
733
|
"type": "function"
|
|
803
734
|
},
|
|
804
735
|
{
|
|
805
|
-
"
|
|
806
|
-
|
|
807
|
-
|
|
736
|
+
"inputs": [
|
|
737
|
+
{
|
|
738
|
+
"internalType": "address",
|
|
739
|
+
"name": "",
|
|
740
|
+
"type": "address"
|
|
741
|
+
}
|
|
742
|
+
],
|
|
743
|
+
"name": "nonces",
|
|
808
744
|
"outputs": [
|
|
809
745
|
{
|
|
746
|
+
"internalType": "uint256",
|
|
810
747
|
"name": "",
|
|
811
748
|
"type": "uint256"
|
|
812
749
|
}
|
|
@@ -815,11 +752,11 @@
|
|
|
815
752
|
"type": "function"
|
|
816
753
|
},
|
|
817
754
|
{
|
|
818
|
-
"gas": 2261,
|
|
819
755
|
"inputs": [],
|
|
820
|
-
"name": "
|
|
756
|
+
"name": "oracle",
|
|
821
757
|
"outputs": [
|
|
822
758
|
{
|
|
759
|
+
"internalType": "address",
|
|
823
760
|
"name": "",
|
|
824
761
|
"type": "address"
|
|
825
762
|
}
|
|
@@ -828,81 +765,147 @@
|
|
|
828
765
|
"type": "function"
|
|
829
766
|
},
|
|
830
767
|
{
|
|
831
|
-
"
|
|
832
|
-
"inputs": [],
|
|
833
|
-
"name": "base_pool",
|
|
834
|
-
"outputs": [
|
|
768
|
+
"inputs": [
|
|
835
769
|
{
|
|
836
|
-
"
|
|
770
|
+
"internalType": "address",
|
|
771
|
+
"name": "owner",
|
|
772
|
+
"type": "address"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"internalType": "address",
|
|
776
|
+
"name": "spender",
|
|
837
777
|
"type": "address"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"internalType": "uint256",
|
|
781
|
+
"name": "value",
|
|
782
|
+
"type": "uint256"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"internalType": "uint256",
|
|
786
|
+
"name": "deadline",
|
|
787
|
+
"type": "uint256"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"internalType": "uint8",
|
|
791
|
+
"name": "v",
|
|
792
|
+
"type": "uint8"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"internalType": "bytes32",
|
|
796
|
+
"name": "r",
|
|
797
|
+
"type": "bytes32"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"internalType": "bytes32",
|
|
801
|
+
"name": "s",
|
|
802
|
+
"type": "bytes32"
|
|
838
803
|
}
|
|
839
804
|
],
|
|
840
|
-
"
|
|
805
|
+
"name": "permit",
|
|
806
|
+
"outputs": [],
|
|
807
|
+
"stateMutability": "nonpayable",
|
|
841
808
|
"type": "function"
|
|
842
809
|
},
|
|
843
810
|
{
|
|
844
|
-
"
|
|
845
|
-
"inputs": [],
|
|
846
|
-
"name": "base_virtual_price",
|
|
847
|
-
"outputs": [
|
|
811
|
+
"inputs": [
|
|
848
812
|
{
|
|
849
|
-
"
|
|
813
|
+
"internalType": "uint256",
|
|
814
|
+
"name": "fee",
|
|
850
815
|
"type": "uint256"
|
|
851
816
|
}
|
|
852
817
|
],
|
|
853
|
-
"
|
|
818
|
+
"name": "setBurnFee",
|
|
819
|
+
"outputs": [],
|
|
820
|
+
"stateMutability": "nonpayable",
|
|
854
821
|
"type": "function"
|
|
855
822
|
},
|
|
856
823
|
{
|
|
857
|
-
"
|
|
858
|
-
"inputs": [],
|
|
859
|
-
"name": "base_cache_updated",
|
|
860
|
-
"outputs": [
|
|
824
|
+
"inputs": [
|
|
861
825
|
{
|
|
862
|
-
"
|
|
826
|
+
"internalType": "uint256",
|
|
827
|
+
"name": "fee",
|
|
863
828
|
"type": "uint256"
|
|
864
829
|
}
|
|
865
830
|
],
|
|
866
|
-
"
|
|
831
|
+
"name": "setMintFee",
|
|
832
|
+
"outputs": [],
|
|
833
|
+
"stateMutability": "nonpayable",
|
|
867
834
|
"type": "function"
|
|
868
835
|
},
|
|
869
836
|
{
|
|
870
|
-
"gas": 2490,
|
|
871
837
|
"inputs": [
|
|
872
838
|
{
|
|
873
|
-
"
|
|
839
|
+
"internalType": "address",
|
|
840
|
+
"name": "_oracle",
|
|
841
|
+
"type": "address"
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
"name": "setOracle",
|
|
845
|
+
"outputs": [],
|
|
846
|
+
"stateMutability": "nonpayable",
|
|
847
|
+
"type": "function"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"inputs": [
|
|
851
|
+
{
|
|
852
|
+
"internalType": "uint256",
|
|
853
|
+
"name": "fee",
|
|
874
854
|
"type": "uint256"
|
|
875
855
|
}
|
|
876
856
|
],
|
|
877
|
-
"name": "
|
|
878
|
-
"outputs": [
|
|
857
|
+
"name": "setSwapFee",
|
|
858
|
+
"outputs": [],
|
|
859
|
+
"stateMutability": "nonpayable",
|
|
860
|
+
"type": "function"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"inputs": [
|
|
879
864
|
{
|
|
880
|
-
"
|
|
865
|
+
"internalType": "address",
|
|
866
|
+
"name": "_trader",
|
|
881
867
|
"type": "address"
|
|
882
868
|
}
|
|
883
869
|
],
|
|
884
|
-
"
|
|
870
|
+
"name": "setTrader",
|
|
871
|
+
"outputs": [],
|
|
872
|
+
"stateMutability": "nonpayable",
|
|
885
873
|
"type": "function"
|
|
886
874
|
},
|
|
887
875
|
{
|
|
888
|
-
"
|
|
889
|
-
"inputs": [],
|
|
890
|
-
"name": "initial_A",
|
|
891
|
-
"outputs": [
|
|
876
|
+
"inputs": [
|
|
892
877
|
{
|
|
893
|
-
"
|
|
878
|
+
"internalType": "uint256",
|
|
879
|
+
"name": "amount0Out",
|
|
880
|
+
"type": "uint256"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"internalType": "uint256",
|
|
884
|
+
"name": "amount1Out",
|
|
894
885
|
"type": "uint256"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"internalType": "address",
|
|
889
|
+
"name": "to",
|
|
890
|
+
"type": "address"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"internalType": "bytes",
|
|
894
|
+
"name": "data",
|
|
895
|
+
"type": "bytes"
|
|
895
896
|
}
|
|
896
897
|
],
|
|
897
|
-
"
|
|
898
|
+
"name": "swap",
|
|
899
|
+
"outputs": [],
|
|
900
|
+
"stateMutability": "nonpayable",
|
|
898
901
|
"type": "function"
|
|
899
902
|
},
|
|
900
903
|
{
|
|
901
|
-
"gas": 2441,
|
|
902
904
|
"inputs": [],
|
|
903
|
-
"name": "
|
|
905
|
+
"name": "swapFee",
|
|
904
906
|
"outputs": [
|
|
905
907
|
{
|
|
908
|
+
"internalType": "uint256",
|
|
906
909
|
"name": "",
|
|
907
910
|
"type": "uint256"
|
|
908
911
|
}
|
|
@@ -911,50 +914,57 @@
|
|
|
911
914
|
"type": "function"
|
|
912
915
|
},
|
|
913
916
|
{
|
|
914
|
-
"gas": 2471,
|
|
915
917
|
"inputs": [],
|
|
916
|
-
"name": "
|
|
918
|
+
"name": "symbol",
|
|
917
919
|
"outputs": [
|
|
918
920
|
{
|
|
921
|
+
"internalType": "string",
|
|
919
922
|
"name": "",
|
|
920
|
-
"type": "
|
|
923
|
+
"type": "string"
|
|
921
924
|
}
|
|
922
925
|
],
|
|
923
926
|
"stateMutability": "view",
|
|
924
927
|
"type": "function"
|
|
925
928
|
},
|
|
926
929
|
{
|
|
927
|
-
"gas": 2501,
|
|
928
930
|
"inputs": [],
|
|
929
|
-
"name": "
|
|
931
|
+
"name": "sync",
|
|
932
|
+
"outputs": [],
|
|
933
|
+
"stateMutability": "nonpayable",
|
|
934
|
+
"type": "function"
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"inputs": [],
|
|
938
|
+
"name": "token0",
|
|
930
939
|
"outputs": [
|
|
931
940
|
{
|
|
941
|
+
"internalType": "address",
|
|
932
942
|
"name": "",
|
|
933
|
-
"type": "
|
|
943
|
+
"type": "address"
|
|
934
944
|
}
|
|
935
945
|
],
|
|
936
946
|
"stateMutability": "view",
|
|
937
947
|
"type": "function"
|
|
938
948
|
},
|
|
939
949
|
{
|
|
940
|
-
"gas": 2531,
|
|
941
950
|
"inputs": [],
|
|
942
|
-
"name": "
|
|
951
|
+
"name": "token1",
|
|
943
952
|
"outputs": [
|
|
944
953
|
{
|
|
954
|
+
"internalType": "address",
|
|
945
955
|
"name": "",
|
|
946
|
-
"type": "
|
|
956
|
+
"type": "address"
|
|
947
957
|
}
|
|
948
958
|
],
|
|
949
959
|
"stateMutability": "view",
|
|
950
960
|
"type": "function"
|
|
951
961
|
},
|
|
952
962
|
{
|
|
953
|
-
"gas": 2561,
|
|
954
963
|
"inputs": [],
|
|
955
|
-
"name": "
|
|
964
|
+
"name": "totalSupply",
|
|
956
965
|
"outputs": [
|
|
957
966
|
{
|
|
967
|
+
"internalType": "uint256",
|
|
958
968
|
"name": "",
|
|
959
969
|
"type": "uint256"
|
|
960
970
|
}
|
|
@@ -963,42 +973,69 @@
|
|
|
963
973
|
"type": "function"
|
|
964
974
|
},
|
|
965
975
|
{
|
|
966
|
-
"gas": 2591,
|
|
967
976
|
"inputs": [],
|
|
968
|
-
"name": "
|
|
977
|
+
"name": "trader",
|
|
969
978
|
"outputs": [
|
|
970
979
|
{
|
|
980
|
+
"internalType": "address",
|
|
971
981
|
"name": "",
|
|
972
|
-
"type": "
|
|
982
|
+
"type": "address"
|
|
973
983
|
}
|
|
974
984
|
],
|
|
975
985
|
"stateMutability": "view",
|
|
976
986
|
"type": "function"
|
|
977
987
|
},
|
|
978
988
|
{
|
|
979
|
-
"
|
|
980
|
-
|
|
981
|
-
|
|
989
|
+
"inputs": [
|
|
990
|
+
{
|
|
991
|
+
"internalType": "address",
|
|
992
|
+
"name": "to",
|
|
993
|
+
"type": "address"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"internalType": "uint256",
|
|
997
|
+
"name": "value",
|
|
998
|
+
"type": "uint256"
|
|
999
|
+
}
|
|
1000
|
+
],
|
|
1001
|
+
"name": "transfer",
|
|
982
1002
|
"outputs": [
|
|
983
1003
|
{
|
|
1004
|
+
"internalType": "bool",
|
|
984
1005
|
"name": "",
|
|
985
|
-
"type": "
|
|
1006
|
+
"type": "bool"
|
|
986
1007
|
}
|
|
987
1008
|
],
|
|
988
|
-
"stateMutability": "
|
|
1009
|
+
"stateMutability": "nonpayable",
|
|
989
1010
|
"type": "function"
|
|
990
1011
|
},
|
|
991
1012
|
{
|
|
992
|
-
"
|
|
993
|
-
|
|
994
|
-
|
|
1013
|
+
"inputs": [
|
|
1014
|
+
{
|
|
1015
|
+
"internalType": "address",
|
|
1016
|
+
"name": "from",
|
|
1017
|
+
"type": "address"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"internalType": "address",
|
|
1021
|
+
"name": "to",
|
|
1022
|
+
"type": "address"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"internalType": "uint256",
|
|
1026
|
+
"name": "value",
|
|
1027
|
+
"type": "uint256"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
"name": "transferFrom",
|
|
995
1031
|
"outputs": [
|
|
996
1032
|
{
|
|
1033
|
+
"internalType": "bool",
|
|
997
1034
|
"name": "",
|
|
998
|
-
"type": "
|
|
1035
|
+
"type": "bool"
|
|
999
1036
|
}
|
|
1000
1037
|
],
|
|
1001
|
-
"stateMutability": "
|
|
1038
|
+
"stateMutability": "nonpayable",
|
|
1002
1039
|
"type": "function"
|
|
1003
1040
|
}
|
|
1004
1041
|
]
|