@fanx-protocol/smart-order-router 0.0.1 → 1.0.0
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/build/main/providers/caching-subgraph-provider.d.ts +1 -1
- package/build/main/providers/eip-1559-gas-price-provider.d.ts +2 -2
- package/build/main/providers/eth-estimate-gas-provider.js +2 -2
- package/build/main/providers/eth-gas-station-info-gas-price-provider.d.ts +1 -1
- package/build/main/providers/gas-price-provider.d.ts +1 -1
- package/build/main/providers/multicall-provider.d.ts +6 -6
- package/build/main/providers/multicall-uniswap-provider.d.ts +1 -1
- package/build/main/providers/on-chain-quote-provider.d.ts +17 -17
- package/build/main/providers/pool-provider.d.ts +4 -4
- package/build/main/providers/provider.d.ts +2 -2
- package/build/main/providers/simulation-provider.d.ts +1 -1
- package/build/main/providers/subgraph-provider.d.ts +2 -2
- package/build/main/providers/swap-router-provider.d.ts +1 -1
- package/build/main/providers/token-fee-fetcher.d.ts +3 -3
- package/build/main/providers/token-properties-provider.d.ts +3 -3
- package/build/main/providers/token-provider.d.ts +1 -1
- package/build/main/providers/v2/pool-provider.d.ts +2 -2
- package/build/main/providers/v2/quote-provider.d.ts +2 -2
- package/build/main/providers/v3/gas-data-provider.d.ts +1 -1
- package/build/main/providers/v3/pool-provider.d.ts +5 -5
- package/build/main/providers/v3/subgraph-provider.d.ts +1 -1
- package/build/main/routers/alpha-router/alpha-router.d.ts +3 -3
- package/build/main/routers/alpha-router/entities/route-with-valid-quote.d.ts +7 -7
- package/build/main/routers/alpha-router/entities/route-with-valid-quote.js +10 -10
- package/build/main/routers/alpha-router/functions/best-swap-route.d.ts +1 -1
- package/build/main/routers/alpha-router/functions/get-candidate-pools.d.ts +12 -12
- package/build/main/routers/alpha-router/gas-models/gas-model.d.ts +7 -7
- package/build/main/routers/router.d.ts +14 -14
- package/build/main/tsconfig.tsbuildinfo +1 -1
- package/build/main/types/other/factories/GasPriceOracle__factory.d.ts +46 -0
- package/build/main/types/other/factories/GasPriceOracle__factory.js +316 -0
- package/build/main/types/other/factories/IApproveAndCall__factory.d.ts +41 -0
- package/build/main/types/other/factories/IApproveAndCall__factory.js +222 -0
- package/build/main/types/other/factories/IImmutableState__factory.d.ts +18 -0
- package/build/main/types/other/factories/IImmutableState__factory.js +46 -0
- package/build/main/types/other/factories/IMulticallExtended__factory.d.ts +22 -0
- package/build/main/types/other/factories/IMulticallExtended__factory.js +87 -0
- package/build/main/types/other/factories/IOracleSlippage__factory.d.ts +18 -0
- package/build/main/types/other/factories/IOracleSlippage__factory.js +71 -0
- package/build/main/types/other/factories/IPeripheryPaymentsExtended__factory.d.ts +18 -0
- package/build/main/types/other/factories/IPeripheryPaymentsExtended__factory.js +130 -0
- package/build/main/types/other/factories/IPeripheryPaymentsWithFeeExtended__factory.d.ts +18 -0
- package/build/main/types/other/factories/IPeripheryPaymentsWithFeeExtended__factory.js +242 -0
- package/build/main/types/other/factories/IQuoterV2__factory.d.ts +41 -0
- package/build/main/types/other/factories/IQuoterV2__factory.js +220 -0
- package/build/main/types/other/factories/IQuoter__factory.d.ts +22 -0
- package/build/main/types/other/factories/IQuoter__factory.js +146 -0
- package/build/main/types/other/factories/ISwapRouter02__factory.d.ts +41 -0
- package/build/main/types/other/factories/ISwapRouter02__factory.js +726 -0
- package/build/main/types/other/factories/IV2SwapRouter__factory.d.ts +22 -0
- package/build/main/types/other/factories/IV2SwapRouter__factory.js +88 -0
- package/build/main/types/other/factories/IV3SwapRouter__factory.d.ts +37 -0
- package/build/main/types/other/factories/IV3SwapRouter__factory.js +237 -0
- package/build/main/types/other/factories/IWETH__factory.d.ts +22 -0
- package/build/main/types/other/factories/IWETH__factory.js +64 -0
- package/build/main/types/other/factories/MixedRouteQuoterV1__factory.d.ts +61 -0
- package/build/main/types/other/factories/MixedRouteQuoterV1__factory.js +261 -0
- package/build/main/types/other/factories/Multicall2__factory.d.ts +42 -0
- package/build/main/types/other/factories/Multicall2__factory.js +331 -0
- package/build/main/types/other/factories/Permit2__factory.d.ts +1 -1
- package/build/main/types/other/factories/Permit2__factory.js +8 -3
- package/build/main/types/other/factories/QuoterV2__factory.d.ts +61 -0
- package/build/main/types/other/factories/QuoterV2__factory.js +307 -0
- package/build/main/types/other/factories/Quoter__factory.d.ts +42 -0
- package/build/main/types/other/factories/Quoter__factory.js +233 -0
- package/build/main/types/other/factories/StateView__factory.d.ts +32 -0
- package/build/main/types/other/factories/StateView__factory.js +383 -0
- package/build/main/types/other/factories/SwapRouter02__factory.d.ts +1 -1
- package/build/main/types/other/factories/SwapRouter02__factory.js +8 -3
- package/build/main/types/other/factories/TokenValidator__factory.d.ts +42 -0
- package/build/main/types/other/factories/TokenValidator__factory.js +170 -0
- package/build/main/types/other/factories/V2SwapRouter__factory.d.ts +28 -0
- package/build/main/types/other/factories/V2SwapRouter__factory.js +366 -0
- package/build/main/types/other/factories/V3SwapRouter__factory.d.ts +43 -0
- package/build/main/types/other/factories/V3SwapRouter__factory.js +540 -0
- package/build/main/types/other/factories/V4Quoter__factory.d.ts +37 -0
- package/build/main/types/other/factories/V4Quoter__factory.js +312 -0
- package/build/main/types/other/index.d.ts +42 -0
- package/build/main/types/other/index.js +46 -0
- package/build/main/types/token-lists/index.d.ts +40 -0
- package/build/main/types/token-lists/index.js +3 -0
- package/build/main/types/v2/factories/IUniswapV2Callee__factory.d.ts +18 -0
- package/build/main/types/v2/factories/IUniswapV2Callee__factory.js +48 -0
- package/build/main/types/v2/factories/IUniswapV2ERC20__factory.d.ts +39 -0
- package/build/main/types/v2/factories/IUniswapV2ERC20__factory.js +356 -0
- package/build/main/types/v2/factories/IUniswapV2Factory__factory.d.ts +35 -0
- package/build/main/types/v2/factories/IUniswapV2Factory__factory.js +183 -0
- package/build/main/types/v2/factories/IUniswapV2Migrator__factory.d.ts +18 -0
- package/build/main/types/v2/factories/IUniswapV2Migrator__factory.js +53 -0
- package/build/main/types/v2/factories/IUniswapV2Router01__factory.d.ts +22 -0
- package/build/main/types/v2/factories/IUniswapV2Router01__factory.js +769 -0
- package/build/main/types/v2/factories/IUniswapV2Router02__factory.d.ts +22 -0
- package/build/main/types/v2/factories/IUniswapV2Router02__factory.js +971 -0
- package/build/main/types/v2/factories/UniswapV2ERC20__factory.d.ts +58 -0
- package/build/main/types/v2/factories/UniswapV2ERC20__factory.js +384 -0
- package/build/main/types/v2/factories/UniswapV2Factory__factory.d.ts +62 -0
- package/build/main/types/v2/factories/UniswapV2Factory__factory.js +233 -0
- package/build/main/types/v2/factories/UniswapV2Migrator__factory.d.ts +44 -0
- package/build/main/types/v2/factories/UniswapV2Migrator__factory.js +95 -0
- package/build/main/types/v2/factories/UniswapV2Pair__factory.d.ts +58 -0
- package/build/main/types/v2/factories/UniswapV2Pair__factory.js +753 -0
- package/build/main/types/v2/factories/UniswapV2Router01__factory.d.ts +48 -0
- package/build/main/types/v2/factories/UniswapV2Router01__factory.js +811 -0
- package/build/main/types/v2/factories/UniswapV2Router02__factory.d.ts +48 -0
- package/build/main/types/v2/factories/UniswapV2Router02__factory.js +1013 -0
- package/build/main/types/v2/index.d.ts +26 -0
- package/build/main/types/v2/index.js +30 -0
- package/build/main/types/v3/factories/IERC1271__factory.d.ts +22 -0
- package/build/main/types/v3/factories/IERC1271__factory.js +44 -0
- package/build/main/types/v3/factories/IERC20Minimal__factory.d.ts +35 -0
- package/build/main/types/v3/factories/IERC20Minimal__factory.js +190 -0
- package/build/main/types/v3/factories/IERC20PermitAllowed__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IERC20PermitAllowed__factory.js +68 -0
- package/build/main/types/v3/factories/IERC721Permit__factory.d.ts +35 -0
- package/build/main/types/v3/factories/IERC721Permit__factory.js +369 -0
- package/build/main/types/v3/factories/IMulticall__factory.d.ts +22 -0
- package/build/main/types/v3/factories/IMulticall__factory.js +39 -0
- package/build/main/types/v3/factories/INonfungiblePositionManager__factory.d.ts +55 -0
- package/build/main/types/v3/factories/INonfungiblePositionManager__factory.js +1007 -0
- package/build/main/types/v3/factories/INonfungibleTokenPositionDescriptor__factory.d.ts +22 -0
- package/build/main/types/v3/factories/INonfungibleTokenPositionDescriptor__factory.js +44 -0
- package/build/main/types/v3/factories/IPeripheryImmutableState__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IPeripheryImmutableState__factory.js +46 -0
- package/build/main/types/v3/factories/IPeripheryPaymentsWithFee__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IPeripheryPaymentsWithFee__factory.js +129 -0
- package/build/main/types/v3/factories/IPeripheryPayments__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IPeripheryPayments__factory.js +68 -0
- package/build/main/types/v3/factories/IPoolInitializer__factory.d.ts +22 -0
- package/build/main/types/v3/factories/IPoolInitializer__factory.js +54 -0
- package/build/main/types/v3/factories/IQuoter__factory.d.ts +22 -0
- package/build/main/types/v3/factories/IQuoter__factory.js +146 -0
- package/build/main/types/v3/factories/ISelfPermit__factory.d.ts +18 -0
- package/build/main/types/v3/factories/ISelfPermit__factory.js +172 -0
- package/build/main/types/v3/factories/ISwapRouter__factory.d.ts +37 -0
- package/build/main/types/v3/factories/ISwapRouter__factory.js +257 -0
- package/build/main/types/v3/factories/ITickLens__factory.d.ts +27 -0
- package/build/main/types/v3/factories/ITickLens__factory.js +61 -0
- package/build/main/types/v3/factories/IUniswapV3Factory__factory.d.ts +35 -0
- package/build/main/types/v3/factories/IUniswapV3Factory__factory.js +216 -0
- package/build/main/types/v3/factories/IUniswapV3FlashCallback__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IUniswapV3FlashCallback__factory.js +43 -0
- package/build/main/types/v3/factories/IUniswapV3MintCallback__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IUniswapV3MintCallback__factory.js +43 -0
- package/build/main/types/v3/factories/IUniswapV3PoolActions__factory.d.ts +22 -0
- package/build/main/types/v3/factories/IUniswapV3PoolActions__factory.js +240 -0
- package/build/main/types/v3/factories/IUniswapV3PoolDeployer__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IUniswapV3PoolDeployer__factory.js +53 -0
- package/build/main/types/v3/factories/IUniswapV3PoolDerivedState__factory.d.ts +22 -0
- package/build/main/types/v3/factories/IUniswapV3PoolDerivedState__factory.js +78 -0
- package/build/main/types/v3/factories/IUniswapV3PoolEvents__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IUniswapV3PoolEvents__factory.js +347 -0
- package/build/main/types/v3/factories/IUniswapV3PoolImmutables__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IUniswapV3PoolImmutables__factory.js +98 -0
- package/build/main/types/v3/factories/IUniswapV3PoolOwnerActions__factory.d.ts +22 -0
- package/build/main/types/v3/factories/IUniswapV3PoolOwnerActions__factory.js +72 -0
- package/build/main/types/v3/factories/IUniswapV3Pool__factory.d.ts +35 -0
- package/build/main/types/v3/factories/IUniswapV3Pool__factory.js +1001 -0
- package/build/main/types/v3/factories/IUniswapV3SwapCallback__factory.d.ts +18 -0
- package/build/main/types/v3/factories/IUniswapV3SwapCallback__factory.js +43 -0
- package/build/main/types/v3/factories/IV3Migrator__factory.d.ts +37 -0
- package/build/main/types/v3/factories/IV3Migrator__factory.js +305 -0
- package/build/main/types/v3/factories/IWETH9__factory.d.ts +35 -0
- package/build/main/types/v3/factories/IWETH9__factory.js +223 -0
- package/build/main/types/v3/factories/NFTDescriptor__factory.d.ts +37 -0
- package/build/main/types/v3/factories/NFTDescriptor__factory.js +133 -0
- package/build/main/types/v3/factories/NonfungiblePositionManager__factory.d.ts +83 -0
- package/build/main/types/v3/factories/NonfungiblePositionManager__factory.js +1261 -0
- package/build/main/types/v3/factories/NonfungibleTokenPositionDescriptor__factory.d.ts +51 -0
- package/build/main/types/v3/factories/NonfungibleTokenPositionDescriptor__factory.js +187 -0
- package/build/main/types/v3/factories/PairFlash__factory.d.ts +69 -0
- package/build/main/types/v3/factories/PairFlash__factory.js +227 -0
- package/build/main/types/v3/factories/QuoterV2__factory.d.ts +61 -0
- package/build/main/types/v3/factories/QuoterV2__factory.js +307 -0
- package/build/main/types/v3/factories/Quoter__factory.d.ts +42 -0
- package/build/main/types/v3/factories/Quoter__factory.js +233 -0
- package/build/main/types/v3/factories/SwapRouter__factory.d.ts +67 -0
- package/build/main/types/v3/factories/SwapRouter__factory.js +605 -0
- package/build/main/types/v3/factories/TickLens__factory.d.ts +37 -0
- package/build/main/types/v3/factories/TickLens__factory.js +83 -0
- package/build/main/types/v3/factories/UniswapInterfaceMulticall__factory.d.ts +1 -1
- package/build/main/types/v3/factories/UniswapInterfaceMulticall__factory.js +8 -3
- package/build/main/types/v3/factories/UniswapV3Factory__factory.d.ts +52 -0
- package/build/main/types/v3/factories/UniswapV3Factory__factory.js +276 -0
- package/build/main/types/v3/factories/UniswapV3Pool__factory.d.ts +52 -0
- package/build/main/types/v3/factories/UniswapV3Pool__factory.js +1028 -0
- package/build/main/types/v3/factories/V3Migrator__factory.d.ts +63 -0
- package/build/main/types/v3/factories/V3Migrator__factory.js +391 -0
- package/build/main/types/v3/index.d.ts +86 -0
- package/build/main/types/v3/index.js +90 -0
- package/build/main/util/addresses.d.ts +1 -1
- package/build/main/util/chains.js +3 -3
- package/build/main/util/onchainQuoteProviderConfigs.d.ts +1 -1
- package/build/module/providers/caching-subgraph-provider.d.ts +1 -1
- package/build/module/providers/eip-1559-gas-price-provider.d.ts +2 -2
- package/build/module/providers/eth-estimate-gas-provider.js +2 -2
- package/build/module/providers/eth-gas-station-info-gas-price-provider.d.ts +1 -1
- package/build/module/providers/gas-price-provider.d.ts +1 -1
- package/build/module/providers/multicall-provider.d.ts +6 -6
- package/build/module/providers/multicall-uniswap-provider.d.ts +1 -1
- package/build/module/providers/on-chain-quote-provider.d.ts +17 -17
- package/build/module/providers/pool-provider.d.ts +4 -4
- package/build/module/providers/provider.d.ts +2 -2
- package/build/module/providers/simulation-provider.d.ts +1 -1
- package/build/module/providers/subgraph-provider.d.ts +2 -2
- package/build/module/providers/swap-router-provider.d.ts +1 -1
- package/build/module/providers/token-fee-fetcher.d.ts +3 -3
- package/build/module/providers/token-properties-provider.d.ts +3 -3
- package/build/module/providers/token-provider.d.ts +1 -1
- package/build/module/providers/v2/pool-provider.d.ts +2 -2
- package/build/module/providers/v2/quote-provider.d.ts +2 -2
- package/build/module/providers/v3/gas-data-provider.d.ts +1 -1
- package/build/module/providers/v3/pool-provider.d.ts +5 -5
- package/build/module/providers/v3/subgraph-provider.d.ts +1 -1
- package/build/module/routers/alpha-router/alpha-router.d.ts +3 -3
- package/build/module/routers/alpha-router/entities/route-with-valid-quote.d.ts +7 -7
- package/build/module/routers/alpha-router/entities/route-with-valid-quote.js +10 -10
- package/build/module/routers/alpha-router/functions/best-swap-route.d.ts +1 -1
- package/build/module/routers/alpha-router/functions/get-candidate-pools.d.ts +12 -12
- package/build/module/routers/alpha-router/gas-models/gas-model.d.ts +7 -7
- package/build/module/routers/router.d.ts +14 -14
- package/build/module/tsconfig.module.tsbuildinfo +1 -1
- package/build/module/types/other/factories/GasPriceOracle__factory.d.ts +46 -0
- package/build/module/types/other/factories/GasPriceOracle__factory.js +312 -0
- package/build/module/types/other/factories/IApproveAndCall__factory.d.ts +41 -0
- package/build/module/types/other/factories/IApproveAndCall__factory.js +218 -0
- package/build/module/types/other/factories/IImmutableState__factory.d.ts +18 -0
- package/build/module/types/other/factories/IImmutableState__factory.js +42 -0
- package/build/module/types/other/factories/IMulticallExtended__factory.d.ts +22 -0
- package/build/module/types/other/factories/IMulticallExtended__factory.js +83 -0
- package/build/module/types/other/factories/IOracleSlippage__factory.d.ts +18 -0
- package/build/module/types/other/factories/IOracleSlippage__factory.js +67 -0
- package/build/module/types/other/factories/IPeripheryPaymentsExtended__factory.d.ts +18 -0
- package/build/module/types/other/factories/IPeripheryPaymentsExtended__factory.js +126 -0
- package/build/module/types/other/factories/IPeripheryPaymentsWithFeeExtended__factory.d.ts +18 -0
- package/build/module/types/other/factories/IPeripheryPaymentsWithFeeExtended__factory.js +238 -0
- package/build/module/types/other/factories/IQuoterV2__factory.d.ts +41 -0
- package/build/module/types/other/factories/IQuoterV2__factory.js +216 -0
- package/build/module/types/other/factories/IQuoter__factory.d.ts +22 -0
- package/build/module/types/other/factories/IQuoter__factory.js +142 -0
- package/build/module/types/other/factories/ISwapRouter02__factory.d.ts +41 -0
- package/build/module/types/other/factories/ISwapRouter02__factory.js +722 -0
- package/build/module/types/other/factories/IV2SwapRouter__factory.d.ts +22 -0
- package/build/module/types/other/factories/IV2SwapRouter__factory.js +84 -0
- package/build/module/types/other/factories/IV3SwapRouter__factory.d.ts +37 -0
- package/build/module/types/other/factories/IV3SwapRouter__factory.js +233 -0
- package/build/module/types/other/factories/IWETH__factory.d.ts +22 -0
- package/build/module/types/other/factories/IWETH__factory.js +60 -0
- package/build/module/types/other/factories/MixedRouteQuoterV1__factory.d.ts +61 -0
- package/build/module/types/other/factories/MixedRouteQuoterV1__factory.js +257 -0
- package/build/module/types/other/factories/Multicall2__factory.d.ts +42 -0
- package/build/module/types/other/factories/Multicall2__factory.js +327 -0
- package/build/module/types/other/factories/Permit2__factory.d.ts +1 -1
- package/build/module/types/other/factories/Permit2__factory.js +8 -3
- package/build/module/types/other/factories/QuoterV2__factory.d.ts +61 -0
- package/build/module/types/other/factories/QuoterV2__factory.js +303 -0
- package/build/module/types/other/factories/Quoter__factory.d.ts +42 -0
- package/build/module/types/other/factories/Quoter__factory.js +229 -0
- package/build/module/types/other/factories/StateView__factory.d.ts +32 -0
- package/build/module/types/other/factories/StateView__factory.js +379 -0
- package/build/module/types/other/factories/SwapRouter02__factory.d.ts +1 -1
- package/build/module/types/other/factories/SwapRouter02__factory.js +8 -3
- package/build/module/types/other/factories/TokenValidator__factory.d.ts +42 -0
- package/build/module/types/other/factories/TokenValidator__factory.js +166 -0
- package/build/module/types/other/factories/V2SwapRouter__factory.d.ts +28 -0
- package/build/module/types/other/factories/V2SwapRouter__factory.js +362 -0
- package/build/module/types/other/factories/V3SwapRouter__factory.d.ts +43 -0
- package/build/module/types/other/factories/V3SwapRouter__factory.js +536 -0
- package/build/module/types/other/factories/V4Quoter__factory.d.ts +37 -0
- package/build/module/types/other/factories/V4Quoter__factory.js +308 -0
- package/build/module/types/other/index.d.ts +42 -0
- package/build/module/types/other/index.js +22 -0
- package/build/module/types/token-lists/index.d.ts +40 -0
- package/build/module/types/token-lists/index.js +2 -0
- package/build/module/types/v2/factories/IUniswapV2Callee__factory.d.ts +18 -0
- package/build/module/types/v2/factories/IUniswapV2Callee__factory.js +44 -0
- package/build/module/types/v2/factories/IUniswapV2ERC20__factory.d.ts +39 -0
- package/build/module/types/v2/factories/IUniswapV2ERC20__factory.js +352 -0
- package/build/module/types/v2/factories/IUniswapV2Factory__factory.d.ts +35 -0
- package/build/module/types/v2/factories/IUniswapV2Factory__factory.js +179 -0
- package/build/module/types/v2/factories/IUniswapV2Migrator__factory.d.ts +18 -0
- package/build/module/types/v2/factories/IUniswapV2Migrator__factory.js +49 -0
- package/build/module/types/v2/factories/IUniswapV2Router01__factory.d.ts +22 -0
- package/build/module/types/v2/factories/IUniswapV2Router01__factory.js +765 -0
- package/build/module/types/v2/factories/IUniswapV2Router02__factory.d.ts +22 -0
- package/build/module/types/v2/factories/IUniswapV2Router02__factory.js +967 -0
- package/build/module/types/v2/factories/UniswapV2ERC20__factory.d.ts +58 -0
- package/build/module/types/v2/factories/UniswapV2ERC20__factory.js +380 -0
- package/build/module/types/v2/factories/UniswapV2Factory__factory.d.ts +62 -0
- package/build/module/types/v2/factories/UniswapV2Factory__factory.js +229 -0
- package/build/module/types/v2/factories/UniswapV2Migrator__factory.d.ts +44 -0
- package/build/module/types/v2/factories/UniswapV2Migrator__factory.js +91 -0
- package/build/module/types/v2/factories/UniswapV2Pair__factory.d.ts +58 -0
- package/build/module/types/v2/factories/UniswapV2Pair__factory.js +749 -0
- package/build/module/types/v2/factories/UniswapV2Router01__factory.d.ts +48 -0
- package/build/module/types/v2/factories/UniswapV2Router01__factory.js +807 -0
- package/build/module/types/v2/factories/UniswapV2Router02__factory.d.ts +48 -0
- package/build/module/types/v2/factories/UniswapV2Router02__factory.js +1009 -0
- package/build/module/types/v2/index.d.ts +26 -0
- package/build/module/types/v2/index.js +14 -0
- package/build/module/types/v3/factories/IERC1271__factory.d.ts +22 -0
- package/build/module/types/v3/factories/IERC1271__factory.js +40 -0
- package/build/module/types/v3/factories/IERC20Minimal__factory.d.ts +35 -0
- package/build/module/types/v3/factories/IERC20Minimal__factory.js +186 -0
- package/build/module/types/v3/factories/IERC20PermitAllowed__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IERC20PermitAllowed__factory.js +64 -0
- package/build/module/types/v3/factories/IERC721Permit__factory.d.ts +35 -0
- package/build/module/types/v3/factories/IERC721Permit__factory.js +365 -0
- package/build/module/types/v3/factories/IMulticall__factory.d.ts +22 -0
- package/build/module/types/v3/factories/IMulticall__factory.js +35 -0
- package/build/module/types/v3/factories/INonfungiblePositionManager__factory.d.ts +55 -0
- package/build/module/types/v3/factories/INonfungiblePositionManager__factory.js +1003 -0
- package/build/module/types/v3/factories/INonfungibleTokenPositionDescriptor__factory.d.ts +22 -0
- package/build/module/types/v3/factories/INonfungibleTokenPositionDescriptor__factory.js +40 -0
- package/build/module/types/v3/factories/IPeripheryImmutableState__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IPeripheryImmutableState__factory.js +42 -0
- package/build/module/types/v3/factories/IPeripheryPaymentsWithFee__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IPeripheryPaymentsWithFee__factory.js +125 -0
- package/build/module/types/v3/factories/IPeripheryPayments__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IPeripheryPayments__factory.js +64 -0
- package/build/module/types/v3/factories/IPoolInitializer__factory.d.ts +22 -0
- package/build/module/types/v3/factories/IPoolInitializer__factory.js +50 -0
- package/build/module/types/v3/factories/IQuoter__factory.d.ts +22 -0
- package/build/module/types/v3/factories/IQuoter__factory.js +142 -0
- package/build/module/types/v3/factories/ISelfPermit__factory.d.ts +18 -0
- package/build/module/types/v3/factories/ISelfPermit__factory.js +168 -0
- package/build/module/types/v3/factories/ISwapRouter__factory.d.ts +37 -0
- package/build/module/types/v3/factories/ISwapRouter__factory.js +253 -0
- package/build/module/types/v3/factories/ITickLens__factory.d.ts +27 -0
- package/build/module/types/v3/factories/ITickLens__factory.js +57 -0
- package/build/module/types/v3/factories/IUniswapV3Factory__factory.d.ts +35 -0
- package/build/module/types/v3/factories/IUniswapV3Factory__factory.js +212 -0
- package/build/module/types/v3/factories/IUniswapV3FlashCallback__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IUniswapV3FlashCallback__factory.js +39 -0
- package/build/module/types/v3/factories/IUniswapV3MintCallback__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IUniswapV3MintCallback__factory.js +39 -0
- package/build/module/types/v3/factories/IUniswapV3PoolActions__factory.d.ts +22 -0
- package/build/module/types/v3/factories/IUniswapV3PoolActions__factory.js +236 -0
- package/build/module/types/v3/factories/IUniswapV3PoolDeployer__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IUniswapV3PoolDeployer__factory.js +49 -0
- package/build/module/types/v3/factories/IUniswapV3PoolDerivedState__factory.d.ts +22 -0
- package/build/module/types/v3/factories/IUniswapV3PoolDerivedState__factory.js +74 -0
- package/build/module/types/v3/factories/IUniswapV3PoolEvents__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IUniswapV3PoolEvents__factory.js +343 -0
- package/build/module/types/v3/factories/IUniswapV3PoolImmutables__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IUniswapV3PoolImmutables__factory.js +94 -0
- package/build/module/types/v3/factories/IUniswapV3PoolOwnerActions__factory.d.ts +22 -0
- package/build/module/types/v3/factories/IUniswapV3PoolOwnerActions__factory.js +68 -0
- package/build/module/types/v3/factories/IUniswapV3Pool__factory.d.ts +35 -0
- package/build/module/types/v3/factories/IUniswapV3Pool__factory.js +997 -0
- package/build/module/types/v3/factories/IUniswapV3SwapCallback__factory.d.ts +18 -0
- package/build/module/types/v3/factories/IUniswapV3SwapCallback__factory.js +39 -0
- package/build/module/types/v3/factories/IV3Migrator__factory.d.ts +37 -0
- package/build/module/types/v3/factories/IV3Migrator__factory.js +301 -0
- package/build/module/types/v3/factories/IWETH9__factory.d.ts +35 -0
- package/build/module/types/v3/factories/IWETH9__factory.js +219 -0
- package/build/module/types/v3/factories/NFTDescriptor__factory.d.ts +37 -0
- package/build/module/types/v3/factories/NFTDescriptor__factory.js +129 -0
- package/build/module/types/v3/factories/NonfungiblePositionManager__factory.d.ts +83 -0
- package/build/module/types/v3/factories/NonfungiblePositionManager__factory.js +1257 -0
- package/build/module/types/v3/factories/NonfungibleTokenPositionDescriptor__factory.d.ts +51 -0
- package/build/module/types/v3/factories/NonfungibleTokenPositionDescriptor__factory.js +183 -0
- package/build/module/types/v3/factories/PairFlash__factory.d.ts +69 -0
- package/build/module/types/v3/factories/PairFlash__factory.js +223 -0
- package/build/module/types/v3/factories/QuoterV2__factory.d.ts +61 -0
- package/build/module/types/v3/factories/QuoterV2__factory.js +303 -0
- package/build/module/types/v3/factories/Quoter__factory.d.ts +42 -0
- package/build/module/types/v3/factories/Quoter__factory.js +229 -0
- package/build/module/types/v3/factories/SwapRouter__factory.d.ts +67 -0
- package/build/module/types/v3/factories/SwapRouter__factory.js +601 -0
- package/build/module/types/v3/factories/TickLens__factory.d.ts +37 -0
- package/build/module/types/v3/factories/TickLens__factory.js +79 -0
- package/build/module/types/v3/factories/UniswapInterfaceMulticall__factory.d.ts +1 -1
- package/build/module/types/v3/factories/UniswapInterfaceMulticall__factory.js +8 -3
- package/build/module/types/v3/factories/UniswapV3Factory__factory.d.ts +52 -0
- package/build/module/types/v3/factories/UniswapV3Factory__factory.js +272 -0
- package/build/module/types/v3/factories/UniswapV3Pool__factory.d.ts +52 -0
- package/build/module/types/v3/factories/UniswapV3Pool__factory.js +1024 -0
- package/build/module/types/v3/factories/V3Migrator__factory.d.ts +63 -0
- package/build/module/types/v3/factories/V3Migrator__factory.js +387 -0
- package/build/module/types/v3/index.d.ts +86 -0
- package/build/module/types/v3/index.js +44 -0
- package/build/module/util/addresses.d.ts +1 -1
- package/build/module/util/chains.js +3 -3
- package/build/module/util/onchainQuoteProviderConfigs.d.ts +1 -1
- package/package.json +23 -18
- package/build/main/types/other/commons.d.ts +0 -16
- package/build/main/types/other/commons.js +0 -6
- package/build/main/types/v2/commons.d.ts +0 -16
- package/build/main/types/v2/commons.js +0 -6
- package/build/main/types/v3/commons.d.ts +0 -16
- package/build/main/types/v3/commons.js +0 -6
- package/build/module/types/other/commons.d.ts +0 -16
- package/build/module/types/other/commons.js +0 -5
- package/build/module/types/v2/commons.d.ts +0 -16
- package/build/module/types/v2/commons.js +0 -5
- package/build/module/types/v3/commons.d.ts +0 -16
- package/build/module/types/v3/commons.js +0 -5
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V3Migrator__factory = exports.SwapRouter__factory = exports.NonfungibleTokenPositionDescriptor__factory = exports.NonfungiblePositionManager__factory = exports.NFTDescriptor__factory = exports.UniswapInterfaceMulticall__factory = exports.TickLens__factory = exports.QuoterV2__factory = exports.Quoter__factory = exports.IV3Migrator__factory = exports.ITickLens__factory = exports.ISwapRouter__factory = exports.ISelfPermit__factory = exports.IQuoterV2__factory = exports.IQuoter__factory = exports.IPoolInitializer__factory = exports.IPeripheryPaymentsWithFee__factory = exports.IPeripheryPayments__factory = exports.IPeripheryImmutableState__factory = exports.INonfungibleTokenPositionDescriptor__factory = exports.INonfungiblePositionManager__factory = exports.IMulticall__factory = exports.IERC721Permit__factory = exports.IERC20Metadata__factory = exports.IWETH9__factory = exports.IERC20PermitAllowed__factory = exports.IERC1271__factory = exports.PairFlash__factory = exports.UniswapV3Pool__factory = exports.UniswapV3Factory__factory = exports.IUniswapV3PoolState__factory = exports.IUniswapV3PoolOwnerActions__factory = exports.IUniswapV3PoolImmutables__factory = exports.IUniswapV3PoolEvents__factory = exports.IUniswapV3PoolDerivedState__factory = exports.IUniswapV3PoolActions__factory = exports.IUniswapV3PoolDeployer__factory = exports.IUniswapV3Pool__factory = exports.IUniswapV3Factory__factory = exports.IERC20Minimal__factory = exports.IUniswapV3SwapCallback__factory = exports.IUniswapV3MintCallback__factory = exports.IUniswapV3FlashCallback__factory = void 0;
|
|
4
|
+
var IUniswapV3FlashCallback__factory_1 = require("./factories/IUniswapV3FlashCallback__factory");
|
|
5
|
+
Object.defineProperty(exports, "IUniswapV3FlashCallback__factory", { enumerable: true, get: function () { return IUniswapV3FlashCallback__factory_1.IUniswapV3FlashCallback__factory; } });
|
|
6
|
+
var IUniswapV3MintCallback__factory_1 = require("./factories/IUniswapV3MintCallback__factory");
|
|
7
|
+
Object.defineProperty(exports, "IUniswapV3MintCallback__factory", { enumerable: true, get: function () { return IUniswapV3MintCallback__factory_1.IUniswapV3MintCallback__factory; } });
|
|
8
|
+
var IUniswapV3SwapCallback__factory_1 = require("./factories/IUniswapV3SwapCallback__factory");
|
|
9
|
+
Object.defineProperty(exports, "IUniswapV3SwapCallback__factory", { enumerable: true, get: function () { return IUniswapV3SwapCallback__factory_1.IUniswapV3SwapCallback__factory; } });
|
|
10
|
+
var IERC20Minimal__factory_1 = require("./factories/IERC20Minimal__factory");
|
|
11
|
+
Object.defineProperty(exports, "IERC20Minimal__factory", { enumerable: true, get: function () { return IERC20Minimal__factory_1.IERC20Minimal__factory; } });
|
|
12
|
+
var IUniswapV3Factory__factory_1 = require("./factories/IUniswapV3Factory__factory");
|
|
13
|
+
Object.defineProperty(exports, "IUniswapV3Factory__factory", { enumerable: true, get: function () { return IUniswapV3Factory__factory_1.IUniswapV3Factory__factory; } });
|
|
14
|
+
var IUniswapV3Pool__factory_1 = require("./factories/IUniswapV3Pool__factory");
|
|
15
|
+
Object.defineProperty(exports, "IUniswapV3Pool__factory", { enumerable: true, get: function () { return IUniswapV3Pool__factory_1.IUniswapV3Pool__factory; } });
|
|
16
|
+
var IUniswapV3PoolDeployer__factory_1 = require("./factories/IUniswapV3PoolDeployer__factory");
|
|
17
|
+
Object.defineProperty(exports, "IUniswapV3PoolDeployer__factory", { enumerable: true, get: function () { return IUniswapV3PoolDeployer__factory_1.IUniswapV3PoolDeployer__factory; } });
|
|
18
|
+
var IUniswapV3PoolActions__factory_1 = require("./factories/IUniswapV3PoolActions__factory");
|
|
19
|
+
Object.defineProperty(exports, "IUniswapV3PoolActions__factory", { enumerable: true, get: function () { return IUniswapV3PoolActions__factory_1.IUniswapV3PoolActions__factory; } });
|
|
20
|
+
var IUniswapV3PoolDerivedState__factory_1 = require("./factories/IUniswapV3PoolDerivedState__factory");
|
|
21
|
+
Object.defineProperty(exports, "IUniswapV3PoolDerivedState__factory", { enumerable: true, get: function () { return IUniswapV3PoolDerivedState__factory_1.IUniswapV3PoolDerivedState__factory; } });
|
|
22
|
+
var IUniswapV3PoolEvents__factory_1 = require("./factories/IUniswapV3PoolEvents__factory");
|
|
23
|
+
Object.defineProperty(exports, "IUniswapV3PoolEvents__factory", { enumerable: true, get: function () { return IUniswapV3PoolEvents__factory_1.IUniswapV3PoolEvents__factory; } });
|
|
24
|
+
var IUniswapV3PoolImmutables__factory_1 = require("./factories/IUniswapV3PoolImmutables__factory");
|
|
25
|
+
Object.defineProperty(exports, "IUniswapV3PoolImmutables__factory", { enumerable: true, get: function () { return IUniswapV3PoolImmutables__factory_1.IUniswapV3PoolImmutables__factory; } });
|
|
26
|
+
var IUniswapV3PoolOwnerActions__factory_1 = require("./factories/IUniswapV3PoolOwnerActions__factory");
|
|
27
|
+
Object.defineProperty(exports, "IUniswapV3PoolOwnerActions__factory", { enumerable: true, get: function () { return IUniswapV3PoolOwnerActions__factory_1.IUniswapV3PoolOwnerActions__factory; } });
|
|
28
|
+
var IUniswapV3PoolState__factory_1 = require("./factories/IUniswapV3PoolState__factory");
|
|
29
|
+
Object.defineProperty(exports, "IUniswapV3PoolState__factory", { enumerable: true, get: function () { return IUniswapV3PoolState__factory_1.IUniswapV3PoolState__factory; } });
|
|
30
|
+
var UniswapV3Factory__factory_1 = require("./factories/UniswapV3Factory__factory");
|
|
31
|
+
Object.defineProperty(exports, "UniswapV3Factory__factory", { enumerable: true, get: function () { return UniswapV3Factory__factory_1.UniswapV3Factory__factory; } });
|
|
32
|
+
var UniswapV3Pool__factory_1 = require("./factories/UniswapV3Pool__factory");
|
|
33
|
+
Object.defineProperty(exports, "UniswapV3Pool__factory", { enumerable: true, get: function () { return UniswapV3Pool__factory_1.UniswapV3Pool__factory; } });
|
|
34
|
+
var PairFlash__factory_1 = require("./factories/PairFlash__factory");
|
|
35
|
+
Object.defineProperty(exports, "PairFlash__factory", { enumerable: true, get: function () { return PairFlash__factory_1.PairFlash__factory; } });
|
|
36
|
+
var IERC1271__factory_1 = require("./factories/IERC1271__factory");
|
|
37
|
+
Object.defineProperty(exports, "IERC1271__factory", { enumerable: true, get: function () { return IERC1271__factory_1.IERC1271__factory; } });
|
|
38
|
+
var IERC20PermitAllowed__factory_1 = require("./factories/IERC20PermitAllowed__factory");
|
|
39
|
+
Object.defineProperty(exports, "IERC20PermitAllowed__factory", { enumerable: true, get: function () { return IERC20PermitAllowed__factory_1.IERC20PermitAllowed__factory; } });
|
|
40
|
+
var IWETH9__factory_1 = require("./factories/IWETH9__factory");
|
|
41
|
+
Object.defineProperty(exports, "IWETH9__factory", { enumerable: true, get: function () { return IWETH9__factory_1.IWETH9__factory; } });
|
|
42
|
+
var IERC20Metadata__factory_1 = require("./factories/IERC20Metadata__factory");
|
|
43
|
+
Object.defineProperty(exports, "IERC20Metadata__factory", { enumerable: true, get: function () { return IERC20Metadata__factory_1.IERC20Metadata__factory; } });
|
|
44
|
+
var IERC721Permit__factory_1 = require("./factories/IERC721Permit__factory");
|
|
45
|
+
Object.defineProperty(exports, "IERC721Permit__factory", { enumerable: true, get: function () { return IERC721Permit__factory_1.IERC721Permit__factory; } });
|
|
46
|
+
var IMulticall__factory_1 = require("./factories/IMulticall__factory");
|
|
47
|
+
Object.defineProperty(exports, "IMulticall__factory", { enumerable: true, get: function () { return IMulticall__factory_1.IMulticall__factory; } });
|
|
48
|
+
var INonfungiblePositionManager__factory_1 = require("./factories/INonfungiblePositionManager__factory");
|
|
49
|
+
Object.defineProperty(exports, "INonfungiblePositionManager__factory", { enumerable: true, get: function () { return INonfungiblePositionManager__factory_1.INonfungiblePositionManager__factory; } });
|
|
50
|
+
var INonfungibleTokenPositionDescriptor__factory_1 = require("./factories/INonfungibleTokenPositionDescriptor__factory");
|
|
51
|
+
Object.defineProperty(exports, "INonfungibleTokenPositionDescriptor__factory", { enumerable: true, get: function () { return INonfungibleTokenPositionDescriptor__factory_1.INonfungibleTokenPositionDescriptor__factory; } });
|
|
52
|
+
var IPeripheryImmutableState__factory_1 = require("./factories/IPeripheryImmutableState__factory");
|
|
53
|
+
Object.defineProperty(exports, "IPeripheryImmutableState__factory", { enumerable: true, get: function () { return IPeripheryImmutableState__factory_1.IPeripheryImmutableState__factory; } });
|
|
54
|
+
var IPeripheryPayments__factory_1 = require("./factories/IPeripheryPayments__factory");
|
|
55
|
+
Object.defineProperty(exports, "IPeripheryPayments__factory", { enumerable: true, get: function () { return IPeripheryPayments__factory_1.IPeripheryPayments__factory; } });
|
|
56
|
+
var IPeripheryPaymentsWithFee__factory_1 = require("./factories/IPeripheryPaymentsWithFee__factory");
|
|
57
|
+
Object.defineProperty(exports, "IPeripheryPaymentsWithFee__factory", { enumerable: true, get: function () { return IPeripheryPaymentsWithFee__factory_1.IPeripheryPaymentsWithFee__factory; } });
|
|
58
|
+
var IPoolInitializer__factory_1 = require("./factories/IPoolInitializer__factory");
|
|
59
|
+
Object.defineProperty(exports, "IPoolInitializer__factory", { enumerable: true, get: function () { return IPoolInitializer__factory_1.IPoolInitializer__factory; } });
|
|
60
|
+
var IQuoter__factory_1 = require("./factories/IQuoter__factory");
|
|
61
|
+
Object.defineProperty(exports, "IQuoter__factory", { enumerable: true, get: function () { return IQuoter__factory_1.IQuoter__factory; } });
|
|
62
|
+
var IQuoterV2__factory_1 = require("./factories/IQuoterV2__factory");
|
|
63
|
+
Object.defineProperty(exports, "IQuoterV2__factory", { enumerable: true, get: function () { return IQuoterV2__factory_1.IQuoterV2__factory; } });
|
|
64
|
+
var ISelfPermit__factory_1 = require("./factories/ISelfPermit__factory");
|
|
65
|
+
Object.defineProperty(exports, "ISelfPermit__factory", { enumerable: true, get: function () { return ISelfPermit__factory_1.ISelfPermit__factory; } });
|
|
66
|
+
var ISwapRouter__factory_1 = require("./factories/ISwapRouter__factory");
|
|
67
|
+
Object.defineProperty(exports, "ISwapRouter__factory", { enumerable: true, get: function () { return ISwapRouter__factory_1.ISwapRouter__factory; } });
|
|
68
|
+
var ITickLens__factory_1 = require("./factories/ITickLens__factory");
|
|
69
|
+
Object.defineProperty(exports, "ITickLens__factory", { enumerable: true, get: function () { return ITickLens__factory_1.ITickLens__factory; } });
|
|
70
|
+
var IV3Migrator__factory_1 = require("./factories/IV3Migrator__factory");
|
|
71
|
+
Object.defineProperty(exports, "IV3Migrator__factory", { enumerable: true, get: function () { return IV3Migrator__factory_1.IV3Migrator__factory; } });
|
|
72
|
+
var Quoter__factory_1 = require("./factories/Quoter__factory");
|
|
73
|
+
Object.defineProperty(exports, "Quoter__factory", { enumerable: true, get: function () { return Quoter__factory_1.Quoter__factory; } });
|
|
74
|
+
var QuoterV2__factory_1 = require("./factories/QuoterV2__factory");
|
|
75
|
+
Object.defineProperty(exports, "QuoterV2__factory", { enumerable: true, get: function () { return QuoterV2__factory_1.QuoterV2__factory; } });
|
|
76
|
+
var TickLens__factory_1 = require("./factories/TickLens__factory");
|
|
77
|
+
Object.defineProperty(exports, "TickLens__factory", { enumerable: true, get: function () { return TickLens__factory_1.TickLens__factory; } });
|
|
78
|
+
var UniswapInterfaceMulticall__factory_1 = require("./factories/UniswapInterfaceMulticall__factory");
|
|
79
|
+
Object.defineProperty(exports, "UniswapInterfaceMulticall__factory", { enumerable: true, get: function () { return UniswapInterfaceMulticall__factory_1.UniswapInterfaceMulticall__factory; } });
|
|
80
|
+
var NFTDescriptor__factory_1 = require("./factories/NFTDescriptor__factory");
|
|
81
|
+
Object.defineProperty(exports, "NFTDescriptor__factory", { enumerable: true, get: function () { return NFTDescriptor__factory_1.NFTDescriptor__factory; } });
|
|
82
|
+
var NonfungiblePositionManager__factory_1 = require("./factories/NonfungiblePositionManager__factory");
|
|
83
|
+
Object.defineProperty(exports, "NonfungiblePositionManager__factory", { enumerable: true, get: function () { return NonfungiblePositionManager__factory_1.NonfungiblePositionManager__factory; } });
|
|
84
|
+
var NonfungibleTokenPositionDescriptor__factory_1 = require("./factories/NonfungibleTokenPositionDescriptor__factory");
|
|
85
|
+
Object.defineProperty(exports, "NonfungibleTokenPositionDescriptor__factory", { enumerable: true, get: function () { return NonfungibleTokenPositionDescriptor__factory_1.NonfungibleTokenPositionDescriptor__factory; } });
|
|
86
|
+
var SwapRouter__factory_1 = require("./factories/SwapRouter__factory");
|
|
87
|
+
Object.defineProperty(exports, "SwapRouter__factory", { enumerable: true, get: function () { return SwapRouter__factory_1.SwapRouter__factory; } });
|
|
88
|
+
var V3Migrator__factory_1 = require("./factories/V3Migrator__factory");
|
|
89
|
+
Object.defineProperty(exports, "V3Migrator__factory", { enumerable: true, get: function () { return V3Migrator__factory_1.V3Migrator__factory; } });
|
|
90
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdHlwZXMvdjMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBK0NBLGlHQUFnRztBQUF2RixvSkFBQSxnQ0FBZ0MsT0FBQTtBQUN6QywrRkFBOEY7QUFBckYsa0pBQUEsK0JBQStCLE9BQUE7QUFDeEMsK0ZBQThGO0FBQXJGLGtKQUFBLCtCQUErQixPQUFBO0FBQ3hDLDZFQUE0RTtBQUFuRSxnSUFBQSxzQkFBc0IsT0FBQTtBQUMvQixxRkFBb0Y7QUF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TdFLDBJQUFBLDJCQUEyQixPQUFBO0FBQ3BDLHFHQUFvRztBQUEzRix3SkFBQSxrQ0FBa0MsT0FBQTtBQUMzQyxtRkFBa0Y7QUFBekUsc0lBQUEseUJBQXlCLE9BQUE7QUFDbEMsaUVBQWdFO0FBQXZELG9IQUFBLGdCQUFnQixPQUFBO0FBQ3pCLHFFQUFvRTtBQUEzRCx3SEFBQSxrQkFBa0IsT0FBQTtBQUMzQix5RUFBd0U7QUFBL0QsNEhBQUEsb0JBQW9CLE9BQUE7QUFDN0IseUVBQXdFO0FBQS9ELDRIQUFBLG9CQUFvQixPQUFBO0FBQzdCLHFFQUFvRTtBQUEzRCx3SEFBQSxrQkFBa0IsT0FBQTtBQUMzQix5RUFBd0U7QUFBL0QsNEhBQUEsb0JBQW9CLE9BQUE7QUFDN0IsK0RBQThEO0FBQXJELGtIQUFBLGVBQWUsT0FBQTtBQUN4QixtRUFBa0U7QUFBekQsc0hBQUEsaUJBQWlCLE9BQUE7QUFDMUIsbUVBQWtFO0FBQXpELHNIQUFBLGlCQUFpQixPQUFBO0FBQzFCLHFHQUFvRztBQUEzRix3SkFBQSxrQ0FBa0MsT0FBQTtBQUMzQyw2RUFBNEU7QUFBbkUsZ0lBQUEsc0JBQXNCLE9BQUE7QUFDL0IsdUdBQXNHO0FBQTdGLDBKQUFBLG1DQUFtQyxPQUFBO0FBQzVDLHVIQUFzSDtBQUE3RywwS0FBQSwyQ0FBMkMsT0FBQTtBQUNwRCx1RUFBc0U7QUFBN0QsMEhBQUEsbUJBQW1CLE9BQUE7QUFDNUIsdUVBQXNFO0FBQTdELDBIQUFBLG1CQUFtQixPQUFBIn0=
|
|
@@ -10,7 +10,7 @@ export declare const STATE_VIEW_ADDRESSES: AddressMap;
|
|
|
10
10
|
export declare const OVM_GASPRICE_ADDRESS = "0x420000000000000000000000000000000000000F";
|
|
11
11
|
export declare const ARB_GASINFO_ADDRESS = "0x000000000000000000000000000000000000006C";
|
|
12
12
|
export declare const MULTICALL2_ADDRESS = "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696";
|
|
13
|
-
export
|
|
13
|
+
export type AddressMap = {
|
|
14
14
|
[chainId: number]: string | undefined;
|
|
15
15
|
};
|
|
16
16
|
export declare function constructSameAddressMap<T extends string>(address: T, additionalNetworks?: ChainId[]): {
|
|
@@ -59,9 +59,9 @@ exports.CHAIN_IDS_LIST = Object.values(sdk_core_1.ChainId).map((c) => c.toString
|
|
|
59
59
|
const ID_TO_PROVIDER = (id) => {
|
|
60
60
|
switch (id) {
|
|
61
61
|
case sdk_core_1.ChainId.CHILIZ:
|
|
62
|
-
return
|
|
62
|
+
return 'https://rpc.chiliz.com';
|
|
63
63
|
case sdk_core_1.ChainId.SPICY:
|
|
64
|
-
return
|
|
64
|
+
return 'https://spicy-rpc.chiliz.com';
|
|
65
65
|
default:
|
|
66
66
|
throw new Error(`Chain id: ${id} not supported`);
|
|
67
67
|
}
|
|
@@ -94,4 +94,4 @@ function nativeOnChain(chainId) {
|
|
|
94
94
|
return cachedNativeCurrency[chainId];
|
|
95
95
|
}
|
|
96
96
|
exports.nativeOnChain = nativeOnChain;
|
|
97
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
97
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWwvY2hhaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHNEQUFnRjtBQUVuRSxRQUFBLGdCQUFnQixHQUFjLENBQUMsa0JBQU8sQ0FBQyxNQUFNLEVBQUUsa0JBQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUU5RCxRQUFBLFlBQVksR0FBRyxDQUFDLGtCQUFPLENBQUMsTUFBTSxFQUFFLGtCQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7QUFFNUQsaURBQWlEO0FBR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T0FBTyxDQUFFLENBQUM7S0FDdkM7SUFDRCxvQkFBb0IsQ0FBQyxPQUFPLENBQUMsR0FBRyxhQUFhLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQy9ELE9BQU8sb0JBQW9CLENBQUMsT0FBTyxDQUFFLENBQUM7QUFDeEMsQ0FBQztBQU5ELHNDQU1DIn0=
|
|
@@ -6,7 +6,7 @@ export declare function constructSameRetryOptionsMap<T extends QuoteRetryOptions
|
|
|
6
6
|
};
|
|
7
7
|
export declare const DEFAULT_RETRY_OPTIONS: QuoteRetryOptions;
|
|
8
8
|
export declare const RETRY_OPTIONS: {
|
|
9
|
-
[x: number]:
|
|
9
|
+
[x: number]: QuoteRetryOptions;
|
|
10
10
|
};
|
|
11
11
|
export declare const NETWORKS_WITH_SAME_BATCH_PARAMS: ChainId[];
|
|
12
12
|
export declare function constructSameBatchParamsMap<T extends BatchParams>(batchParams: T, additionalNetworks?: ChainId[]): {
|
|
@@ -4,7 +4,7 @@ import { SubgraphPool } from '../routers/alpha-router/functions/get-candidate-po
|
|
|
4
4
|
import { ICache } from './cache';
|
|
5
5
|
import { ProviderConfig } from './provider';
|
|
6
6
|
import { V3SubgraphPool } from './v3/subgraph-provider';
|
|
7
|
-
|
|
7
|
+
type ChainTokenList = {
|
|
8
8
|
readonly [chainId in ChainId]: Token[];
|
|
9
9
|
};
|
|
10
10
|
export declare const BASES_TO_CHECK_TRADES_AGAINST: ChainTokenList;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BigNumber } from '@ethersproject/bignumber';
|
|
2
2
|
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
3
|
import { GasPrice, IGasPriceProvider } from './gas-price-provider';
|
|
4
|
-
export
|
|
4
|
+
export type RawFeeHistoryResponse = {
|
|
5
5
|
baseFeePerGas: string[];
|
|
6
6
|
gasUsedRatio: number[];
|
|
7
7
|
oldestBlock: string;
|
|
8
8
|
reward: string[];
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type FeeHistoryResponse = {
|
|
11
11
|
baseFeePerGas: BigNumber[];
|
|
12
12
|
gasUsedRatio: number[];
|
|
13
13
|
oldestBlock: BigNumber;
|
|
@@ -23,7 +23,7 @@ export class EthEstimateGasSimulator extends Simulator {
|
|
|
23
23
|
// if (currencyIn.isNative && this.chainId == ChainId.MAINNET) {
|
|
24
24
|
// // w/o this gas estimate differs by a lot depending on if user holds enough native balance
|
|
25
25
|
// // always estimate gas as if user holds enough balance
|
|
26
|
-
// // so that gas estimate is consistent for
|
|
26
|
+
// // so that gas estimate is consistent for FanX
|
|
27
27
|
// fromAddress = BEACON_CHAIN_DEPOSIT_ADDRESS;
|
|
28
28
|
// }
|
|
29
29
|
log.info({ addr: fromAddress, methodParameters: route.methodParameters }, 'Simulating using eth_estimateGas on Universal Router');
|
|
@@ -99,4 +99,4 @@ export class EthEstimateGasSimulator extends Simulator {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXRoLWVzdGltYXRlLWdhcy1wcm92aWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wcm92aWRlcnMvZXRoLWVzdGltYXRlLWdhcy1wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFJckQsT0FBTyxFQUlMLFFBQVEsR0FDVCxNQUFNLFlBQVksQ0FBQztBQUNwQixPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQzlCLE9BQU8sRUFDTCxnQkFBZ0IsRUFDaEIseUJBQXlCLEdBQzFCLE1BQU0sNkJBQTZCLENBQUM7QUFJckMsT0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QUFNLElBQUksQ0FBQyxjQUFjLENBQzlCLFdBQVcsRUFDWCxXQUFXLEVBQ1gsU0FBUyxFQUNULGVBQWUsQ0FDaEIsQ0FBQztTQUNIO2FBQU07WUFDTCxHQUFHLENBQUMsSUFBSSxDQUFDLHlDQUF5QyxDQUFDLENBQUM7WUFDcEQsT0FBTztnQkFDTCxHQUFHLFNBQVM7Z0JBQ1osZ0JBQWdCLEVBQUUsZ0JBQWdCLENBQUMsV0FBVzthQUMvQyxDQUFDO1NBQ0g7SUFDSCxDQUFDO0NBQ0YifQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Interface } from '@ethersproject/abi';
|
|
2
2
|
import { BigNumber } from '@ethersproject/bignumber';
|
|
3
3
|
import { ProviderConfig } from './provider';
|
|
4
|
-
export
|
|
4
|
+
export type CallSameFunctionOnMultipleContractsParams<TFunctionParams, TAdditionalConfig = any> = {
|
|
5
5
|
addresses: string[];
|
|
6
6
|
contractInterface: Interface;
|
|
7
7
|
functionName: string;
|
|
@@ -9,7 +9,7 @@ export declare type CallSameFunctionOnMultipleContractsParams<TFunctionParams, T
|
|
|
9
9
|
providerConfig?: ProviderConfig;
|
|
10
10
|
additionalConfig?: TAdditionalConfig;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type CallSameFunctionOnContractWithMultipleParams<TFunctionParams, TAdditionalConfig = any> = {
|
|
13
13
|
address: string;
|
|
14
14
|
contractInterface: Interface;
|
|
15
15
|
functionName: string;
|
|
@@ -17,7 +17,7 @@ export declare type CallSameFunctionOnContractWithMultipleParams<TFunctionParams
|
|
|
17
17
|
providerConfig?: ProviderConfig;
|
|
18
18
|
additionalConfig?: TAdditionalConfig;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type CallMultipleFunctionsOnSameContractParams<TFunctionParams, TAdditionalConfig = any> = {
|
|
21
21
|
address: string;
|
|
22
22
|
contractInterface: Interface;
|
|
23
23
|
functionNames: string[];
|
|
@@ -25,16 +25,16 @@ export declare type CallMultipleFunctionsOnSameContractParams<TFunctionParams, T
|
|
|
25
25
|
providerConfig?: ProviderConfig;
|
|
26
26
|
additionalConfig?: TAdditionalConfig;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type SuccessResult<TReturn> = {
|
|
29
29
|
success: true;
|
|
30
30
|
result: TReturn;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type FailResult = {
|
|
33
33
|
success: false;
|
|
34
34
|
returnData: string;
|
|
35
35
|
gasUsed?: BigNumber;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type Result<TReturn> = SuccessResult<TReturn> | FailResult;
|
|
38
38
|
/**
|
|
39
39
|
* Provider for fetching data on chain using multicall contracts.
|
|
40
40
|
*
|
|
@@ -2,7 +2,7 @@ import { BigNumber } from '@ethersproject/bignumber';
|
|
|
2
2
|
import { BaseProvider } from '@ethersproject/providers';
|
|
3
3
|
import { ChainId } from '@fanx-protocol/sdk-core';
|
|
4
4
|
import { CallMultipleFunctionsOnSameContractParams, CallSameFunctionOnContractWithMultipleParams, CallSameFunctionOnMultipleContractsParams, IMulticallProvider, Result } from './multicall-provider';
|
|
5
|
-
export
|
|
5
|
+
export type UniswapMulticallConfig = {
|
|
6
6
|
gasLimitPerCallOverride?: number;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
@@ -12,18 +12,18 @@ import { ProviderConfig } from './provider';
|
|
|
12
12
|
/**
|
|
13
13
|
* Emulate on-chain [PathKey](https://github.com/Uniswap/v4-periphery/blob/main/src/libraries/PathKey.sol#L8) struct
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type PathKey = {
|
|
16
16
|
intermediateCurrency: string;
|
|
17
17
|
fee: BigNumberish;
|
|
18
18
|
tickSpacing: BigNumberish;
|
|
19
19
|
hooks: string;
|
|
20
20
|
hookData: BytesLike;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type SupportedPath = string | PathKey[];
|
|
23
23
|
/**
|
|
24
24
|
* Emulate on-chain [QuoteExactParams](https://github.com/Uniswap/v4-periphery/blob/main/src/interfaces/IQuoter.sol#L34) struct
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type QuoteExactParams = {
|
|
27
27
|
exactCurrency: string;
|
|
28
28
|
path: PathKey[];
|
|
29
29
|
exactAmount: BigNumberish;
|
|
@@ -31,17 +31,17 @@ export declare type QuoteExactParams = {
|
|
|
31
31
|
/**
|
|
32
32
|
* Emulate on-chain [ExtraQuoteExactInputParams](https://github.com/Uniswap/mixed-quoter/blob/main/src/interfaces/IMixedRouteQuoterV2.sol#L44C12-L44C38) struct
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
type NonEncodableData = {
|
|
35
35
|
hookData: BytesLike;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type ExtraQuoteExactInputParams = {
|
|
38
38
|
nonEncodableData: NonEncodableData[];
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type QuoteInputType = QuoteExactParams[] | [string, string] | [string, ExtraQuoteExactInputParams, string];
|
|
41
41
|
/**
|
|
42
42
|
* An on chain quote for a swap.
|
|
43
43
|
*/
|
|
44
|
-
export
|
|
44
|
+
export type AmountQuote = {
|
|
45
45
|
amount: CurrencyAmount;
|
|
46
46
|
/**
|
|
47
47
|
* Quotes can be null (e.g. pool did not have enough liquidity).
|
|
@@ -91,22 +91,22 @@ export declare class ProviderTimeoutError extends Error {
|
|
|
91
91
|
export declare class ProviderGasError extends Error {
|
|
92
92
|
name: string;
|
|
93
93
|
}
|
|
94
|
-
export
|
|
94
|
+
export type QuoteRetryOptions = RetryOptions;
|
|
95
95
|
/**
|
|
96
96
|
* The V3 route and a list of quotes for that route.
|
|
97
97
|
*/
|
|
98
|
-
export
|
|
98
|
+
export type RouteWithQuotes<TRoute extends SupportedRoutes> = [
|
|
99
99
|
TRoute,
|
|
100
100
|
AmountQuote[]
|
|
101
101
|
];
|
|
102
102
|
/**
|
|
103
103
|
* Final consolidated return type of all on-chain quotes.
|
|
104
104
|
*/
|
|
105
|
-
export
|
|
105
|
+
export type OnChainQuotes<TRoute extends SupportedRoutes> = {
|
|
106
106
|
routesWithQuotes: RouteWithQuotes<TRoute>[];
|
|
107
107
|
blockNumber: BigNumber;
|
|
108
108
|
};
|
|
109
|
-
export
|
|
109
|
+
export type SupportedExactOutRoutes = V3Route;
|
|
110
110
|
/**
|
|
111
111
|
* Provider for getting on chain quotes using routes containing V3 pools or V2 pools.
|
|
112
112
|
*
|
|
@@ -145,7 +145,7 @@ export interface IOnChainQuoteProvider {
|
|
|
145
145
|
* On chain quotes can consume a lot of gas (if the swap is so large that it swaps through a large
|
|
146
146
|
* number of ticks), so there is a risk of exceeded gas limits in these multicalls.
|
|
147
147
|
*/
|
|
148
|
-
export
|
|
148
|
+
export type BatchParams = {
|
|
149
149
|
/**
|
|
150
150
|
* The number of quotes to fetch in each multicall.
|
|
151
151
|
*/
|
|
@@ -166,23 +166,23 @@ export declare type BatchParams = {
|
|
|
166
166
|
* The fallback values for gasLimit and multicallChunk if any failures occur.
|
|
167
167
|
*
|
|
168
168
|
*/
|
|
169
|
-
export
|
|
169
|
+
export type FailureOverrides = {
|
|
170
170
|
multicallChunk: number;
|
|
171
171
|
gasLimitOverride: number;
|
|
172
172
|
};
|
|
173
|
-
export
|
|
173
|
+
export type BlockHeaderFailureOverridesDisabled = {
|
|
174
174
|
enabled: false;
|
|
175
175
|
};
|
|
176
|
-
export
|
|
176
|
+
export type BlockHeaderFailureOverridesEnabled = {
|
|
177
177
|
enabled: true;
|
|
178
178
|
rollbackBlockOffset: number;
|
|
179
179
|
attemptsBeforeRollback: number;
|
|
180
180
|
};
|
|
181
|
-
export
|
|
181
|
+
export type BlockHeaderFailureOverrides = BlockHeaderFailureOverridesDisabled | BlockHeaderFailureOverridesEnabled;
|
|
182
182
|
/**
|
|
183
183
|
* Config around what block number to query and how to handle failures due to block header errors.
|
|
184
184
|
*/
|
|
185
|
-
export
|
|
185
|
+
export type BlockNumberConfig = {
|
|
186
186
|
baseBlockOffset: number;
|
|
187
187
|
rollback: BlockHeaderFailureOverrides;
|
|
188
188
|
};
|
|
@@ -4,17 +4,17 @@ import { Pool as V3Pool } from '@fanx-protocol/v3-sdk';
|
|
|
4
4
|
import { Options as RetryOptions } from 'async-retry';
|
|
5
5
|
import { IMulticallProvider, Result } from './multicall-provider';
|
|
6
6
|
import { ProviderConfig } from './provider';
|
|
7
|
-
export
|
|
7
|
+
export type PoolConstruct<TCurrency extends Currency> = [
|
|
8
8
|
TCurrency,
|
|
9
9
|
TCurrency,
|
|
10
10
|
...Array<string | number>
|
|
11
11
|
];
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type Pool = V3Pool;
|
|
13
|
+
export type ISlot0 = {
|
|
14
14
|
sqrtPriceX96: BigNumber;
|
|
15
15
|
tick: number;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ILiquidity = {
|
|
18
18
|
liquidity: BigNumber;
|
|
19
19
|
};
|
|
20
20
|
export declare abstract class PoolProvider<TCurrency extends Currency, TPoolConstruct extends PoolConstruct<TCurrency>, TISlot0 extends ISlot0, TILiquidity extends ILiquidity, TPoolAccessor> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UniversalRouterVersion } from '@fanx-protocol/universal-router-sdk';
|
|
2
|
-
export
|
|
2
|
+
export type ProviderConfig = {
|
|
3
3
|
/**
|
|
4
4
|
* The block number to use when getting data on-chain.
|
|
5
5
|
*/
|
|
@@ -32,7 +32,7 @@ export declare type ProviderConfig = {
|
|
|
32
32
|
*/
|
|
33
33
|
universalRouterVersion?: UniversalRouterVersion;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type LocalCacheEntry<T> = {
|
|
36
36
|
entry: T;
|
|
37
37
|
blockNumber: number;
|
|
38
38
|
};
|
|
@@ -3,7 +3,7 @@ import { ChainId, TradeType } from '@fanx-protocol/sdk-core';
|
|
|
3
3
|
import { GasModelProviderConfig, SwapOptions, SwapRoute } from '../routers';
|
|
4
4
|
import { CurrencyAmount } from '../util';
|
|
5
5
|
import { IPortionProvider } from './portion-provider';
|
|
6
|
-
export
|
|
6
|
+
export type SimulationResult = {
|
|
7
7
|
transaction: {
|
|
8
8
|
hash: string;
|
|
9
9
|
gas_used: number;
|
|
@@ -5,7 +5,7 @@ import { ProviderConfig } from './provider';
|
|
|
5
5
|
export interface ISubgraphProvider<TSubgraphPool extends SubgraphPool> {
|
|
6
6
|
getPools(tokenIn?: Token, tokenOut?: Token, providerConfig?: ProviderConfig): Promise<TSubgraphPool[]>;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type V3V4SubgraphPool = {
|
|
9
9
|
id: string;
|
|
10
10
|
feeTier: string;
|
|
11
11
|
liquidity: string;
|
|
@@ -18,7 +18,7 @@ export declare type V3V4SubgraphPool = {
|
|
|
18
18
|
tvlETH: number;
|
|
19
19
|
tvlUSD: number;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type V3V4RawSubgraphPool = {
|
|
22
22
|
id: string;
|
|
23
23
|
feeTier: string;
|
|
24
24
|
liquidity: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApprovalTypes } from '@fanx-protocol/router-sdk';
|
|
2
2
|
import { ChainId, Currency, CurrencyAmount } from '@fanx-protocol/sdk-core';
|
|
3
3
|
import { IMulticallProvider } from './multicall-provider';
|
|
4
|
-
|
|
4
|
+
type TokenApprovalTypes = {
|
|
5
5
|
approvalTokenIn: ApprovalTypes;
|
|
6
6
|
approvalTokenOut: ApprovalTypes;
|
|
7
7
|
};
|
|
@@ -6,15 +6,15 @@ export declare const DEFAULT_TOKEN_FEE_RESULT: {
|
|
|
6
6
|
buyFeeBps: BigNumber;
|
|
7
7
|
sellFeeBps: BigNumber;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
export
|
|
9
|
+
type Address = string;
|
|
10
|
+
export type TokenFeeResult = {
|
|
11
11
|
buyFeeBps?: BigNumber;
|
|
12
12
|
sellFeeBps?: BigNumber;
|
|
13
13
|
feeTakenOnTransfer?: boolean;
|
|
14
14
|
externalTransferFailed?: boolean;
|
|
15
15
|
sellReverted?: boolean;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type TokenFeeMap = Record<Address, TokenFeeResult>;
|
|
18
18
|
export interface ITokenFeeFetcher {
|
|
19
19
|
fetchFees(addresses: Address[], providerConfig?: ProviderConfig): Promise<TokenFeeMap>;
|
|
20
20
|
}
|
|
@@ -6,12 +6,12 @@ import { TokenValidationResult } from './token-validator-provider';
|
|
|
6
6
|
export declare const DEFAULT_TOKEN_PROPERTIES_RESULT: TokenPropertiesResult;
|
|
7
7
|
export declare const POSITIVE_CACHE_ENTRY_TTL = 1200;
|
|
8
8
|
export declare const NEGATIVE_CACHE_ENTRY_TTL = 1200;
|
|
9
|
-
|
|
10
|
-
export
|
|
9
|
+
type Address = string;
|
|
10
|
+
export type TokenPropertiesResult = {
|
|
11
11
|
tokenFeeResult?: TokenFeeResult;
|
|
12
12
|
tokenValidationResult?: TokenValidationResult;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type TokenPropertiesMap = Record<Address, TokenPropertiesResult>;
|
|
15
15
|
export interface ITokenPropertiesProvider {
|
|
16
16
|
getTokensProperties(currencies: Currency[], providerConfig?: ProviderConfig): Promise<TokenPropertiesMap>;
|
|
17
17
|
}
|
|
@@ -17,7 +17,7 @@ export interface ITokenProvider {
|
|
|
17
17
|
*/
|
|
18
18
|
getTokens(addresses: string[], providerConfig?: ProviderConfig): Promise<TokenAccessor>;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type TokenAccessor = {
|
|
21
21
|
getTokenByAddress(address: string): Token | undefined;
|
|
22
22
|
getTokenBySymbol(symbol: string): Token | undefined;
|
|
23
23
|
getAllTokens: () => Token[];
|
|
@@ -32,12 +32,12 @@ export interface IV2PoolProvider {
|
|
|
32
32
|
token1: Token;
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
export
|
|
35
|
+
export type V2PoolAccessor = {
|
|
36
36
|
getPool: (tokenA: Token, tokenB: Token) => Pair | undefined;
|
|
37
37
|
getPoolByAddress: (address: string) => Pair | undefined;
|
|
38
38
|
getAllPools: () => Pair[];
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type V2PoolRetryOptions = RetryOptions;
|
|
41
41
|
export declare class V2PoolProvider implements IV2PoolProvider {
|
|
42
42
|
protected chainId: ChainId;
|
|
43
43
|
protected multicall2Provider: IMulticallProvider;
|
|
@@ -2,11 +2,11 @@ import { BigNumber } from '@ethersproject/bignumber';
|
|
|
2
2
|
import { V2Route } from '../../routers/router';
|
|
3
3
|
import { CurrencyAmount } from '../../util/amounts';
|
|
4
4
|
import { ProviderConfig } from '../provider';
|
|
5
|
-
export
|
|
5
|
+
export type V2AmountQuote = {
|
|
6
6
|
amount: CurrencyAmount;
|
|
7
7
|
quote: BigNumber | null;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type V2RouteWithQuotes = [V2Route, V2AmountQuote[]];
|
|
10
10
|
export interface IV2QuoteProvider {
|
|
11
11
|
getQuotesManyExactIn(amountIns: CurrencyAmount[], routes: V2Route[], providerConfig: ProviderConfig): Promise<{
|
|
12
12
|
routesWithQuotes: V2RouteWithQuotes[];
|
|
@@ -20,7 +20,7 @@ export interface IL2GasDataProvider<T> {
|
|
|
20
20
|
* perL2CalldataFee is the fee in wei per byte of calldata the swap uses. Multiply by the total bytes of the calldata.
|
|
21
21
|
* perArbGasTotal is the fee in wei per unit of arbgas. Multiply this by the estimate we calculate based on ticks/hops in the gasModel.
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type ArbitrumGasData = {
|
|
24
24
|
perL2TxFee: BigNumber;
|
|
25
25
|
perL1CalldataFee: BigNumber;
|
|
26
26
|
perArbGasTotal: BigNumber;
|
|
@@ -5,11 +5,11 @@ import { Options as RetryOptions } from 'async-retry';
|
|
|
5
5
|
import { IMulticallProvider, Result } from '../multicall-provider';
|
|
6
6
|
import { ILiquidity, ISlot0, PoolProvider } from '../pool-provider';
|
|
7
7
|
import { ProviderConfig } from '../provider';
|
|
8
|
-
|
|
8
|
+
type V3ISlot0 = ISlot0 & {
|
|
9
9
|
sqrtPriceX96: BigNumber;
|
|
10
10
|
tick: number;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type V3ILiquidity = ILiquidity;
|
|
13
13
|
/**
|
|
14
14
|
* Provider or getting V3 pools.
|
|
15
15
|
*
|
|
@@ -39,13 +39,13 @@ export interface IV3PoolProvider {
|
|
|
39
39
|
token1: Token;
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
export
|
|
42
|
+
export type V3PoolAccessor = {
|
|
43
43
|
getPool: (tokenA: Token, tokenB: Token, feeAmount: FeeAmount) => Pool | undefined;
|
|
44
44
|
getPoolByAddress: (address: string) => Pool | undefined;
|
|
45
45
|
getAllPools: () => Pool[];
|
|
46
46
|
};
|
|
47
|
-
export
|
|
48
|
-
export
|
|
47
|
+
export type V3PoolRetryOptions = RetryOptions;
|
|
48
|
+
export type V3PoolConstruct = [Token, Token, FeeAmount];
|
|
49
49
|
export declare class V3PoolProvider extends PoolProvider<Token, V3PoolConstruct, V3ISlot0, V3ILiquidity, V3PoolAccessor> implements IV3PoolProvider {
|
|
50
50
|
private POOL_ADDRESS_CACHE;
|
|
51
51
|
/**
|