rubic-sdk 4.26.0-alpha-symb-sdk-upd.1 → 4.27.0-alpha-fusionx.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/rubic-sdk.min.js +645 -0
- package/dist/rubic-sdk.min.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/changenow-provider/changenow-cross-chain-trade.d.ts +1 -1
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/uniswap-v3-trade-providers.d.ts +2 -1
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/uniswap-v3-trade-providers.js +2 -0
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/uniswap-v3-trade-providers.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/models/on-chain-trade-type.d.ts +1 -0
- package/lib/features/on-chain/calculation-manager/providers/common/models/on-chain-trade-type.js +1 -0
- package/lib/features/on-chain/calculation-manager/providers/common/models/on-chain-trade-type.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller.d.ts +41 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller.js +139 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/models/liquidity-pool.d.ts +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-algebra-abstract/models/unwrapWethMethodName.d.ts +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/provider-configuration.d.ts +2 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/provider-configuration.js +10 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/provider-configuration.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration.d.ts +12 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration.js +301 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-provider.d.ts +10 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-provider.js +21 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-trade.d.ts +7 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-trade.js +18 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-trade.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/utils/quoter-controller/constants/quoter-contract-data.d.ts +3 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/utils/quoter-controller/constants/quoter-contract-data.js +87 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/utils/quoter-controller/constants/quoter-contract-data.js.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/rubic-sdk.min.js
CHANGED
@@ -227694,6 +227694,7 @@ const uni_swap_v3_arbitrum_provider_1 = __webpack_require__(/*! ../../providers/
|
|
227694
227694
|
const uni_swap_v3_ethereum_provider_1 = __webpack_require__(/*! ../../providers/dexes/ethereum/uni-swap-v3-ethereum/uni-swap-v3-ethereum-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/ethereum/uni-swap-v3-ethereum/uni-swap-v3-ethereum-provider.ts");
|
227695
227695
|
const uni_swap_v3_ethereum_pow_provider_1 = __webpack_require__(/*! ../../providers/dexes/ethereum-pow/uni-swap-v3-ethereum-pow/uni-swap-v3-ethereum-pow-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/ethereum-pow/uni-swap-v3-ethereum-pow/uni-swap-v3-ethereum-pow-provider.ts");
|
227696
227696
|
const horizondex_provider_1 = __webpack_require__(/*! ../../providers/dexes/linea/horizondex/horizondex-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/linea/horizondex/horizondex-provider.ts");
|
227697
|
+
const fusionx_provider_1 = __webpack_require__(/*! ../../providers/dexes/mantle/fusionx/fusionx-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-provider.ts");
|
227697
227698
|
const uni_swap_v3_polygon_provider_1 = __webpack_require__(/*! ../../providers/dexes/polygon/uni-swap-v3-polygon/uni-swap-v3-polygon-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/polygon/uni-swap-v3-polygon/uni-swap-v3-polygon-provider.ts");
|
227698
227699
|
const uni_swap_v3_ethereum_provider_2 = __webpack_require__(/*! ../../providers/dexes/pulsechain/uni-swap-v3-pulsechain/uni-swap-v3-ethereum-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/pulsechain/uni-swap-v3-pulsechain/uni-swap-v3-ethereum-provider.ts");
|
227699
227700
|
const uni_swap_v3_scroll_sepolia_provider_1 = __webpack_require__(/*! ../../providers/dexes/scroll-sepolia/uni-swap-v3-scroll-sepolia/uni-swap-v3-scroll-sepolia-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/scroll-sepolia/uni-swap-v3-scroll-sepolia/uni-swap-v3-scroll-sepolia-provider.ts");
|
@@ -227704,6 +227705,7 @@ exports.UniswapV3TradeProviders = [
|
|
227704
227705
|
uni_swap_v3_ethereum_pow_provider_1.UniSwapV3EthereumPowProvider,
|
227705
227706
|
uni_swap_v3_ethereum_provider_2.UniSwapV3PulsechainProvider,
|
227706
227707
|
horizondex_provider_1.HorizondexProvider,
|
227708
|
+
fusionx_provider_1.FusionXProvider,
|
227707
227709
|
uni_swap_v3_scroll_sepolia_provider_1.UniSwapV3ScrollSepoliaProvider
|
227708
227710
|
];
|
227709
227711
|
|
@@ -228165,6 +228167,7 @@ exports.ON_CHAIN_TRADE_TYPE = {
|
|
228165
228167
|
DODO: 'DODO',
|
228166
228168
|
DYSTOPIA: 'DYSTOPIA',
|
228167
228169
|
ELK: 'ELK',
|
228170
|
+
FUSIONX: 'FUSIONX',
|
228168
228171
|
HONEY_SWAP: 'HONEY_SWAP',
|
228169
228172
|
HORIZONDEX: 'HORIZONDEX',
|
228170
228173
|
JET_SWAP: 'JET_SWAP',
|
@@ -235735,6 +235738,155 @@ exports.UNISWAP_V3_QUOTER_CONTRACT_ABI = [
|
|
235735
235738
|
];
|
235736
235739
|
|
235737
235740
|
|
235741
|
+
/***/ }),
|
235742
|
+
|
235743
|
+
/***/ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller.ts":
|
235744
|
+
/*!**************************************************************************************************************************************************************!*\
|
235745
|
+
!*** ./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller.ts ***!
|
235746
|
+
\**************************************************************************************************************************************************************/
|
235747
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
235748
|
+
|
235749
|
+
"use strict";
|
235750
|
+
|
235751
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
235752
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
235753
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
235754
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
235755
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
235756
|
+
};
|
235757
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
235758
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
235759
|
+
};
|
235760
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
235761
|
+
exports.FusionXUniswapV3QuoterController = void 0;
|
235762
|
+
const bignumber_js_1 = __importDefault(__webpack_require__(/*! bignumber.js */ "./node_modules/bignumber.js/bignumber.js"));
|
235763
|
+
const errors_1 = __webpack_require__(/*! ../../../../../../../../../common/errors */ "./src/common/errors/index.ts");
|
235764
|
+
const blockchain_1 = __webpack_require__(/*! ../../../../../../../../../common/utils/blockchain */ "./src/common/utils/blockchain.ts");
|
235765
|
+
const decorators_1 = __webpack_require__(/*! ../../../../../../../../../common/utils/decorators */ "./src/common/utils/decorators/index.ts");
|
235766
|
+
const object_1 = __webpack_require__(/*! ../../../../../../../../../common/utils/object */ "./src/common/utils/object.ts");
|
235767
|
+
const uniswap_v3_quoter_controller_1 = __webpack_require__(/*! ./uniswap-v3-quoter-controller */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/uniswap-v3-quoter-controller.ts");
|
235768
|
+
const router_configuration_1 = __webpack_require__(/*! ../../../../mantle/fusionx/constants/router-configuration */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration.ts");
|
235769
|
+
const quoter_contract_data_1 = __webpack_require__(/*! ../../../../mantle/fusionx/utils/quoter-controller/constants/quoter-contract-data */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/utils/quoter-controller/constants/quoter-contract-data.ts");
|
235770
|
+
class FusionXUniswapV3QuoterController extends uniswap_v3_quoter_controller_1.UniswapV3QuoterController {
|
235771
|
+
constructor(blockchain, routerConfiguration) {
|
235772
|
+
super(blockchain, routerConfiguration, quoter_contract_data_1.FUSIONX_QUOTER_CONTRACT_ADDRESS, quoter_contract_data_1.FUSIONX_QUOTER_CONTRACT_ABI, router_configuration_1.FUSIONX_UNISWAP_V3_FACTORY_CONTRACT_ADDRESS);
|
235773
|
+
this.feeAmounts = [100, 500, 10000];
|
235774
|
+
}
|
235775
|
+
/**
|
235776
|
+
* Returns swap method's name and arguments to pass it to Quoter contract.
|
235777
|
+
* @param poolsPath Pools, included in the route.
|
235778
|
+
* @param from From token.
|
235779
|
+
* @param to To token.
|
235780
|
+
* @param exact Is exact input or output trade.
|
235781
|
+
* @param weiAmount Amount of tokens to trade.
|
235782
|
+
*/
|
235783
|
+
static getQuoterMethodData(poolsPath, from, to, exact, weiAmount) {
|
235784
|
+
if (poolsPath.length === 1 && poolsPath?.[0]) {
|
235785
|
+
const methodName = exact === 'input' ? 'quoteExactInputSingle' : 'quoteExactOutputSingle';
|
235786
|
+
const sqrtPriceLimitX96 = 0;
|
235787
|
+
return {
|
235788
|
+
poolsPath,
|
235789
|
+
methodData: {
|
235790
|
+
methodName,
|
235791
|
+
methodArguments: [
|
235792
|
+
from.address,
|
235793
|
+
to.address,
|
235794
|
+
weiAmount,
|
235795
|
+
poolsPath[0].fee,
|
235796
|
+
sqrtPriceLimitX96
|
235797
|
+
]
|
235798
|
+
}
|
235799
|
+
};
|
235800
|
+
}
|
235801
|
+
const methodName = exact === 'input' ? 'quoteExactInput' : 'quoteExactOutput';
|
235802
|
+
const tokensPath = exact === 'input' ? poolsPath : poolsPath.reverse();
|
235803
|
+
const initialTokenAddress = exact === 'input' ? from.address : to.address;
|
235804
|
+
return {
|
235805
|
+
poolsPath,
|
235806
|
+
methodData: {
|
235807
|
+
methodName,
|
235808
|
+
methodArguments: [
|
235809
|
+
uniswap_v3_quoter_controller_1.UniswapV3QuoterController.getEncodedPoolsPath(tokensPath, initialTokenAddress),
|
235810
|
+
weiAmount
|
235811
|
+
]
|
235812
|
+
}
|
235813
|
+
};
|
235814
|
+
}
|
235815
|
+
async getAllRoutes(from, to, exact, weiAmount, routeMaxTransitTokens) {
|
235816
|
+
const routesLiquidityPools = await this.getAllLiquidityPools(from, to);
|
235817
|
+
const options = {
|
235818
|
+
routesLiquidityPools,
|
235819
|
+
from,
|
235820
|
+
to,
|
235821
|
+
exact,
|
235822
|
+
weiAmount
|
235823
|
+
};
|
235824
|
+
const quoterMethodsData = [...Array(routeMaxTransitTokens + 1)]
|
235825
|
+
.map((_, maxTransitTokens) => this.getQuoterMethodsData({
|
235826
|
+
...options,
|
235827
|
+
maxTransitTokens
|
235828
|
+
}, [], from.address))
|
235829
|
+
.flat();
|
235830
|
+
const results = await this.web3Public.multicallContractMethods(this.quoterContractAddress, this.quoterContractABI, quoterMethodsData.map(quoterMethodData => {
|
235831
|
+
if (quoterMethodData.methodData.methodName.toLowerCase().includes('single')) {
|
235832
|
+
return {
|
235833
|
+
methodName: quoterMethodData.methodData.methodName,
|
235834
|
+
methodArguments: [quoterMethodData.methodData.methodArguments]
|
235835
|
+
};
|
235836
|
+
}
|
235837
|
+
return quoterMethodData.methodData;
|
235838
|
+
}));
|
235839
|
+
return results
|
235840
|
+
.map((result, index) => {
|
235841
|
+
const pool = quoterMethodsData?.[index];
|
235842
|
+
if (!pool) {
|
235843
|
+
throw new errors_1.RubicSdkError('Pool has to be defined');
|
235844
|
+
}
|
235845
|
+
if (result.success) {
|
235846
|
+
return {
|
235847
|
+
outputAbsoluteAmount: new bignumber_js_1.default(result?.output instanceof Object
|
235848
|
+
? result?.output?.returnedAmount
|
235849
|
+
: result.output),
|
235850
|
+
poolsPath: pool.poolsPath,
|
235851
|
+
initialTokenAddress: from.address
|
235852
|
+
};
|
235853
|
+
}
|
235854
|
+
return null;
|
235855
|
+
})
|
235856
|
+
.filter(object_1.notNull);
|
235857
|
+
}
|
235858
|
+
/**
|
235859
|
+
* Returns swap methods' names and arguments, built with passed pools' addresses, to use it in Quoter contract.
|
235860
|
+
*/
|
235861
|
+
getQuoterMethodsData(options, path, lastTokenAddress) {
|
235862
|
+
const { routesLiquidityPools, from, to, exact, weiAmount, maxTransitTokens } = options;
|
235863
|
+
if (path.length === maxTransitTokens) {
|
235864
|
+
const pools = routesLiquidityPools.filter(pool => pool.isPoolWithTokens(lastTokenAddress, to.address));
|
235865
|
+
return pools.map(pool => FusionXUniswapV3QuoterController.getQuoterMethodData(path.concat(pool), from, to, exact, weiAmount));
|
235866
|
+
}
|
235867
|
+
return routesLiquidityPools
|
235868
|
+
.filter(pool => !path.includes(pool))
|
235869
|
+
.map(pool => {
|
235870
|
+
const methodsData = [];
|
235871
|
+
if ((0, blockchain_1.compareAddresses)(pool.token0.address, lastTokenAddress)) {
|
235872
|
+
const extendedPath = path.concat(pool);
|
235873
|
+
methodsData.push(...this.getQuoterMethodsData(options, extendedPath, pool.token1.address));
|
235874
|
+
}
|
235875
|
+
if ((0, blockchain_1.compareAddresses)(pool.token1.address, lastTokenAddress)) {
|
235876
|
+
const extendedPath = path.concat(pool);
|
235877
|
+
methodsData.push(...this.getQuoterMethodsData(options, extendedPath, pool.token0.address));
|
235878
|
+
}
|
235879
|
+
return methodsData;
|
235880
|
+
})
|
235881
|
+
.flat();
|
235882
|
+
}
|
235883
|
+
}
|
235884
|
+
exports.FusionXUniswapV3QuoterController = FusionXUniswapV3QuoterController;
|
235885
|
+
__decorate([
|
235886
|
+
decorators_1.Cache
|
235887
|
+
], FusionXUniswapV3QuoterController, "getQuoterMethodData", null);
|
235888
|
+
|
235889
|
+
|
235738
235890
|
/***/ }),
|
235739
235891
|
|
235740
235892
|
/***/ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/horizondex-uniswap-v3-quoter-controller.ts":
|
@@ -240844,6 +240996,493 @@ class XyDexLineaProvider extends xy_dex_abstract_provider_1.XyDexAbstractProvide
|
|
240844
240996
|
exports.XyDexLineaProvider = XyDexLineaProvider;
|
240845
240997
|
|
240846
240998
|
|
240999
|
+
/***/ }),
|
241000
|
+
|
241001
|
+
/***/ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/provider-configuration.ts":
|
241002
|
+
/*!**********************************************************************************************************************!*\
|
241003
|
+
!*** ./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/provider-configuration.ts ***!
|
241004
|
+
\**********************************************************************************************************************/
|
241005
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
241006
|
+
|
241007
|
+
"use strict";
|
241008
|
+
|
241009
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
241010
|
+
exports.FUSIONX_PROVIDER_CONFIGURATION = void 0;
|
241011
|
+
const tokens_1 = __webpack_require__(/*! ../../../../../../../../common/tokens */ "./src/common/tokens/index.ts");
|
241012
|
+
const blockchain_name_1 = __webpack_require__(/*! ../../../../../../../../core/blockchain/models/blockchain-name */ "./src/core/blockchain/models/blockchain-name.ts");
|
241013
|
+
exports.FUSIONX_PROVIDER_CONFIGURATION = {
|
241014
|
+
wethAddress: tokens_1.wrappedNativeTokensList[blockchain_name_1.BLOCKCHAIN_NAME.MANTLE].address,
|
241015
|
+
maxTransitTokens: 1
|
241016
|
+
};
|
241017
|
+
|
241018
|
+
|
241019
|
+
/***/ }),
|
241020
|
+
|
241021
|
+
/***/ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration.ts":
|
241022
|
+
/*!********************************************************************************************************************!*\
|
241023
|
+
!*** ./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration.ts ***!
|
241024
|
+
\********************************************************************************************************************/
|
241025
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
241026
|
+
|
241027
|
+
"use strict";
|
241028
|
+
|
241029
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
241030
|
+
exports.FUSIONX_UNISWAP_V3_SWAP_ROUTER_CONTRACT_ABI = exports.FUSIONX_UNISWAP_V3_FACTORY_CONTRACT_ADDRESS = exports.FUSIONX_UNISWAP_V3_SWAP_ROUTER_CONTRACT_ADDRESS = exports.FUSIONX_ROUTER_CONFIGURATION = void 0;
|
241031
|
+
const tokens_1 = __webpack_require__(/*! ../../../../../../../../common/tokens */ "./src/common/tokens/index.ts");
|
241032
|
+
const blockchain_name_1 = __webpack_require__(/*! ../../../../../../../../core/blockchain/models/blockchain-name */ "./src/core/blockchain/models/blockchain-name.ts");
|
241033
|
+
/**
|
241034
|
+
* Most popular tokens in uni v3 to use in a route.
|
241035
|
+
*/
|
241036
|
+
const tokensSymbols = ['WETH', 'WMNT', 'USDT', 'USDC', 'WBTC', 'MINU'];
|
241037
|
+
const routerTokens = {
|
241038
|
+
WMNT: tokens_1.wrappedNativeTokensList[blockchain_name_1.BLOCKCHAIN_NAME.MANTLE].address,
|
241039
|
+
WETH: '0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111',
|
241040
|
+
USDT: '0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE',
|
241041
|
+
USDC: '0x09bc4e0d864854c6afb6eb9a9cdf58ac190d0df9',
|
241042
|
+
WBTC: '0xcabae6f6ea1ecab08ad02fe02ce9a44f09aebfa2',
|
241043
|
+
MINU: '0x51cfe5b1e764dc253f4c8c1f19a081ff4c3517ed'
|
241044
|
+
};
|
241045
|
+
const routerLiquidityPools = [
|
241046
|
+
{
|
241047
|
+
poolAddress: '0xa125af1a4704044501fe12ca9567ef1550e430e8',
|
241048
|
+
tokenSymbolA: 'USDT',
|
241049
|
+
tokenSymbolB: 'WETH',
|
241050
|
+
fee: 500
|
241051
|
+
},
|
241052
|
+
{
|
241053
|
+
poolAddress: '0x262255f4770aebe2d0c8b97a46287dcecc2a0aff',
|
241054
|
+
tokenSymbolA: 'USDT',
|
241055
|
+
tokenSymbolB: 'WMNT',
|
241056
|
+
fee: 500
|
241057
|
+
},
|
241058
|
+
{
|
241059
|
+
poolAddress: '0x16867d00d45347a2ded25b8cdb7022b3171d4ae0',
|
241060
|
+
tokenSymbolA: 'USDC',
|
241061
|
+
tokenSymbolB: 'USDT',
|
241062
|
+
fee: 100
|
241063
|
+
},
|
241064
|
+
{
|
241065
|
+
poolAddress: '0xb11d56e78076df5b4fea0f3f9f1febdb043fabf3',
|
241066
|
+
tokenSymbolA: 'USDT',
|
241067
|
+
tokenSymbolB: 'WBTC',
|
241068
|
+
fee: 500
|
241069
|
+
},
|
241070
|
+
{
|
241071
|
+
poolAddress: '0x3bfb98c0af1aca0e66d96624c7e545eb131f285e',
|
241072
|
+
tokenSymbolA: 'MINU',
|
241073
|
+
tokenSymbolB: 'WMNT',
|
241074
|
+
fee: 10000
|
241075
|
+
},
|
241076
|
+
{
|
241077
|
+
poolAddress: '0xb1d9358e08391e93593c6a1899dc77931912bb16',
|
241078
|
+
tokenSymbolA: 'USDT',
|
241079
|
+
tokenSymbolB: 'MINU',
|
241080
|
+
fee: 10000
|
241081
|
+
}
|
241082
|
+
];
|
241083
|
+
exports.FUSIONX_ROUTER_CONFIGURATION = {
|
241084
|
+
tokens: routerTokens,
|
241085
|
+
liquidityPools: routerLiquidityPools
|
241086
|
+
};
|
241087
|
+
exports.FUSIONX_UNISWAP_V3_SWAP_ROUTER_CONTRACT_ADDRESS = '0x5989FB161568b9F133eDf5Cf6787f5597762797F';
|
241088
|
+
exports.FUSIONX_UNISWAP_V3_FACTORY_CONTRACT_ADDRESS = '0x530d2766D1988CC1c000C8b7d00334c14B69AD71';
|
241089
|
+
exports.FUSIONX_UNISWAP_V3_SWAP_ROUTER_CONTRACT_ABI = [
|
241090
|
+
{
|
241091
|
+
type: 'constructor',
|
241092
|
+
inputs: [
|
241093
|
+
{ type: 'address', name: '_deployer', internalType: 'address' },
|
241094
|
+
{ type: 'address', name: '_factory', internalType: 'address' },
|
241095
|
+
{ type: 'address', name: '_WETH9', internalType: 'address' }
|
241096
|
+
]
|
241097
|
+
},
|
241098
|
+
{
|
241099
|
+
type: 'function',
|
241100
|
+
stateMutability: 'view',
|
241101
|
+
outputs: [{ type: 'address', name: '', internalType: 'address' }],
|
241102
|
+
name: 'WETH9',
|
241103
|
+
inputs: []
|
241104
|
+
},
|
241105
|
+
{
|
241106
|
+
type: 'function',
|
241107
|
+
stateMutability: 'view',
|
241108
|
+
outputs: [{ type: 'address', name: '', internalType: 'address' }],
|
241109
|
+
name: 'deployer',
|
241110
|
+
inputs: []
|
241111
|
+
},
|
241112
|
+
{
|
241113
|
+
type: 'function',
|
241114
|
+
stateMutability: 'payable',
|
241115
|
+
outputs: [{ type: 'uint256', name: 'amountOut', internalType: 'uint256' }],
|
241116
|
+
name: 'exactInput',
|
241117
|
+
inputs: [
|
241118
|
+
{
|
241119
|
+
type: 'tuple',
|
241120
|
+
name: 'params',
|
241121
|
+
internalType: 'struct ISwapRouter.ExactInputParams',
|
241122
|
+
components: [
|
241123
|
+
{ type: 'bytes' },
|
241124
|
+
{ type: 'address' },
|
241125
|
+
{ type: 'uint256' },
|
241126
|
+
{ type: 'uint256' },
|
241127
|
+
{ type: 'uint256' }
|
241128
|
+
]
|
241129
|
+
}
|
241130
|
+
]
|
241131
|
+
},
|
241132
|
+
{
|
241133
|
+
type: 'function',
|
241134
|
+
stateMutability: 'payable',
|
241135
|
+
outputs: [{ type: 'uint256', name: 'amountOut', internalType: 'uint256' }],
|
241136
|
+
name: 'exactInputSingle',
|
241137
|
+
inputs: [
|
241138
|
+
{
|
241139
|
+
type: 'tuple',
|
241140
|
+
name: 'params',
|
241141
|
+
internalType: 'struct ISwapRouter.ExactInputSingleParams',
|
241142
|
+
components: [
|
241143
|
+
{ type: 'address' },
|
241144
|
+
{ type: 'address' },
|
241145
|
+
{ type: 'uint24' },
|
241146
|
+
{ type: 'address' },
|
241147
|
+
{ type: 'uint256' },
|
241148
|
+
{ type: 'uint256' },
|
241149
|
+
{ type: 'uint256' },
|
241150
|
+
{ type: 'uint160' }
|
241151
|
+
]
|
241152
|
+
}
|
241153
|
+
]
|
241154
|
+
},
|
241155
|
+
{
|
241156
|
+
type: 'function',
|
241157
|
+
stateMutability: 'payable',
|
241158
|
+
outputs: [{ type: 'uint256', name: 'amountIn', internalType: 'uint256' }],
|
241159
|
+
name: 'exactOutput',
|
241160
|
+
inputs: [
|
241161
|
+
{
|
241162
|
+
type: 'tuple',
|
241163
|
+
name: 'params',
|
241164
|
+
internalType: 'struct ISwapRouter.ExactOutputParams',
|
241165
|
+
components: [
|
241166
|
+
{ type: 'bytes' },
|
241167
|
+
{ type: 'address' },
|
241168
|
+
{ type: 'uint256' },
|
241169
|
+
{ type: 'uint256' },
|
241170
|
+
{ type: 'uint256' }
|
241171
|
+
]
|
241172
|
+
}
|
241173
|
+
]
|
241174
|
+
},
|
241175
|
+
{
|
241176
|
+
type: 'function',
|
241177
|
+
stateMutability: 'payable',
|
241178
|
+
outputs: [{ type: 'uint256', name: 'amountIn', internalType: 'uint256' }],
|
241179
|
+
name: 'exactOutputSingle',
|
241180
|
+
inputs: [
|
241181
|
+
{
|
241182
|
+
type: 'tuple',
|
241183
|
+
name: 'params',
|
241184
|
+
internalType: 'struct ISwapRouter.ExactOutputSingleParams',
|
241185
|
+
components: [
|
241186
|
+
{ type: 'address' },
|
241187
|
+
{ type: 'address' },
|
241188
|
+
{ type: 'uint24' },
|
241189
|
+
{ type: 'address' },
|
241190
|
+
{ type: 'uint256' },
|
241191
|
+
{ type: 'uint256' },
|
241192
|
+
{ type: 'uint256' },
|
241193
|
+
{ type: 'uint160' }
|
241194
|
+
]
|
241195
|
+
}
|
241196
|
+
]
|
241197
|
+
},
|
241198
|
+
{
|
241199
|
+
type: 'function',
|
241200
|
+
stateMutability: 'view',
|
241201
|
+
outputs: [{ type: 'address', name: '', internalType: 'address' }],
|
241202
|
+
name: 'factory',
|
241203
|
+
inputs: []
|
241204
|
+
},
|
241205
|
+
{
|
241206
|
+
type: 'function',
|
241207
|
+
stateMutability: 'nonpayable',
|
241208
|
+
outputs: [],
|
241209
|
+
name: 'fusionXV3SwapCallback',
|
241210
|
+
inputs: [
|
241211
|
+
{ type: 'int256', name: 'amount0Delta', internalType: 'int256' },
|
241212
|
+
{ type: 'int256', name: 'amount1Delta', internalType: 'int256' },
|
241213
|
+
{ type: 'bytes', name: '_data', internalType: 'bytes' }
|
241214
|
+
]
|
241215
|
+
},
|
241216
|
+
{
|
241217
|
+
type: 'function',
|
241218
|
+
stateMutability: 'payable',
|
241219
|
+
outputs: [{ type: 'bytes[]', name: 'results', internalType: 'bytes[]' }],
|
241220
|
+
name: 'multicall',
|
241221
|
+
inputs: [{ type: 'bytes[]', name: 'data', internalType: 'bytes[]' }]
|
241222
|
+
},
|
241223
|
+
{ type: 'function', stateMutability: 'payable', outputs: [], name: 'refundETH', inputs: [] },
|
241224
|
+
{
|
241225
|
+
type: 'function',
|
241226
|
+
stateMutability: 'payable',
|
241227
|
+
outputs: [],
|
241228
|
+
name: 'selfPermit',
|
241229
|
+
inputs: [
|
241230
|
+
{ type: 'address', name: 'token', internalType: 'address' },
|
241231
|
+
{ type: 'uint256', name: 'value', internalType: 'uint256' },
|
241232
|
+
{ type: 'uint256', name: 'deadline', internalType: 'uint256' },
|
241233
|
+
{ type: 'uint8', name: 'v', internalType: 'uint8' },
|
241234
|
+
{ type: 'bytes32', name: 'r', internalType: 'bytes32' },
|
241235
|
+
{ type: 'bytes32', name: 's', internalType: 'bytes32' }
|
241236
|
+
]
|
241237
|
+
},
|
241238
|
+
{
|
241239
|
+
type: 'function',
|
241240
|
+
stateMutability: 'payable',
|
241241
|
+
outputs: [],
|
241242
|
+
name: 'selfPermitAllowed',
|
241243
|
+
inputs: [
|
241244
|
+
{ type: 'address', name: 'token', internalType: 'address' },
|
241245
|
+
{ type: 'uint256', name: 'nonce', internalType: 'uint256' },
|
241246
|
+
{ type: 'uint256', name: 'expiry', internalType: 'uint256' },
|
241247
|
+
{ type: 'uint8', name: 'v', internalType: 'uint8' },
|
241248
|
+
{ type: 'bytes32', name: 'r', internalType: 'bytes32' },
|
241249
|
+
{ type: 'bytes32', name: 's', internalType: 'bytes32' }
|
241250
|
+
]
|
241251
|
+
},
|
241252
|
+
{
|
241253
|
+
type: 'function',
|
241254
|
+
stateMutability: 'payable',
|
241255
|
+
outputs: [],
|
241256
|
+
name: 'selfPermitAllowedIfNecessary',
|
241257
|
+
inputs: [
|
241258
|
+
{ type: 'address', name: 'token', internalType: 'address' },
|
241259
|
+
{ type: 'uint256', name: 'nonce', internalType: 'uint256' },
|
241260
|
+
{ type: 'uint256', name: 'expiry', internalType: 'uint256' },
|
241261
|
+
{ type: 'uint8', name: 'v', internalType: 'uint8' },
|
241262
|
+
{ type: 'bytes32', name: 'r', internalType: 'bytes32' },
|
241263
|
+
{ type: 'bytes32', name: 's', internalType: 'bytes32' }
|
241264
|
+
]
|
241265
|
+
},
|
241266
|
+
{
|
241267
|
+
type: 'function',
|
241268
|
+
stateMutability: 'payable',
|
241269
|
+
outputs: [],
|
241270
|
+
name: 'selfPermitIfNecessary',
|
241271
|
+
inputs: [
|
241272
|
+
{ type: 'address', name: 'token', internalType: 'address' },
|
241273
|
+
{ type: 'uint256', name: 'value', internalType: 'uint256' },
|
241274
|
+
{ type: 'uint256', name: 'deadline', internalType: 'uint256' },
|
241275
|
+
{ type: 'uint8', name: 'v', internalType: 'uint8' },
|
241276
|
+
{ type: 'bytes32', name: 'r', internalType: 'bytes32' },
|
241277
|
+
{ type: 'bytes32', name: 's', internalType: 'bytes32' }
|
241278
|
+
]
|
241279
|
+
},
|
241280
|
+
{
|
241281
|
+
type: 'function',
|
241282
|
+
stateMutability: 'payable',
|
241283
|
+
outputs: [],
|
241284
|
+
name: 'sweepToken',
|
241285
|
+
inputs: [
|
241286
|
+
{ type: 'address', name: 'token', internalType: 'address' },
|
241287
|
+
{ type: 'uint256', name: 'amountMinimum', internalType: 'uint256' },
|
241288
|
+
{ type: 'address', name: 'recipient', internalType: 'address' }
|
241289
|
+
]
|
241290
|
+
},
|
241291
|
+
{
|
241292
|
+
type: 'function',
|
241293
|
+
stateMutability: 'payable',
|
241294
|
+
outputs: [],
|
241295
|
+
name: 'sweepTokenWithFee',
|
241296
|
+
inputs: [
|
241297
|
+
{ type: 'address', name: 'token', internalType: 'address' },
|
241298
|
+
{ type: 'uint256', name: 'amountMinimum', internalType: 'uint256' },
|
241299
|
+
{ type: 'address', name: 'recipient', internalType: 'address' },
|
241300
|
+
{ type: 'uint256', name: 'feeBips', internalType: 'uint256' },
|
241301
|
+
{ type: 'address', name: 'feeRecipient', internalType: 'address' }
|
241302
|
+
]
|
241303
|
+
},
|
241304
|
+
{
|
241305
|
+
type: 'function',
|
241306
|
+
stateMutability: 'payable',
|
241307
|
+
outputs: [],
|
241308
|
+
name: 'unwrapWETH9',
|
241309
|
+
inputs: [
|
241310
|
+
{ type: 'uint256', name: 'amountMinimum', internalType: 'uint256' },
|
241311
|
+
{ type: 'address', name: 'recipient', internalType: 'address' }
|
241312
|
+
]
|
241313
|
+
},
|
241314
|
+
{
|
241315
|
+
type: 'function',
|
241316
|
+
stateMutability: 'payable',
|
241317
|
+
outputs: [],
|
241318
|
+
name: 'unwrapWETH9WithFee',
|
241319
|
+
inputs: [
|
241320
|
+
{ type: 'uint256', name: 'amountMinimum', internalType: 'uint256' },
|
241321
|
+
{ type: 'address', name: 'recipient', internalType: 'address' },
|
241322
|
+
{ type: 'uint256', name: 'feeBips', internalType: 'uint256' },
|
241323
|
+
{ type: 'address', name: 'feeRecipient', internalType: 'address' }
|
241324
|
+
]
|
241325
|
+
},
|
241326
|
+
{ type: 'receive' }
|
241327
|
+
];
|
241328
|
+
|
241329
|
+
|
241330
|
+
/***/ }),
|
241331
|
+
|
241332
|
+
/***/ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-provider.ts":
|
241333
|
+
/*!******************************************************************************************************!*\
|
241334
|
+
!*** ./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-provider.ts ***!
|
241335
|
+
\******************************************************************************************************/
|
241336
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
241337
|
+
|
241338
|
+
"use strict";
|
241339
|
+
|
241340
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
241341
|
+
exports.FusionXProvider = void 0;
|
241342
|
+
const blockchain_name_1 = __webpack_require__(/*! ../../../../../../../core/blockchain/models/blockchain-name */ "./src/core/blockchain/models/blockchain-name.ts");
|
241343
|
+
const uniswap_v3_abstract_provider_1 = __webpack_require__(/*! ../../common/uniswap-v3-abstract/uniswap-v3-abstract-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/uniswap-v3-abstract-provider.ts");
|
241344
|
+
const fusionx_uniswap_v3_quoter_controller_1 = __webpack_require__(/*! ../../common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller.ts");
|
241345
|
+
const provider_configuration_1 = __webpack_require__(/*! ./constants/provider-configuration */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/provider-configuration.ts");
|
241346
|
+
const router_configuration_1 = __webpack_require__(/*! ./constants/router-configuration */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration.ts");
|
241347
|
+
const fusionx_trade_1 = __webpack_require__(/*! ./fusionx-trade */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-trade.ts");
|
241348
|
+
class FusionXProvider extends uniswap_v3_abstract_provider_1.UniswapV3AbstractProvider {
|
241349
|
+
constructor() {
|
241350
|
+
super(...arguments);
|
241351
|
+
this.blockchain = blockchain_name_1.BLOCKCHAIN_NAME.MANTLE;
|
241352
|
+
this.OnChainTradeClass = fusionx_trade_1.FusionXTrade;
|
241353
|
+
this.providerConfiguration = provider_configuration_1.FUSIONX_PROVIDER_CONFIGURATION;
|
241354
|
+
this.routerConfiguration = router_configuration_1.FUSIONX_ROUTER_CONFIGURATION;
|
241355
|
+
this.quoterController = new fusionx_uniswap_v3_quoter_controller_1.FusionXUniswapV3QuoterController(this.blockchain, this.routerConfiguration);
|
241356
|
+
}
|
241357
|
+
}
|
241358
|
+
exports.FusionXProvider = FusionXProvider;
|
241359
|
+
|
241360
|
+
|
241361
|
+
/***/ }),
|
241362
|
+
|
241363
|
+
/***/ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-trade.ts":
|
241364
|
+
/*!***************************************************************************************************!*\
|
241365
|
+
!*** ./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-trade.ts ***!
|
241366
|
+
\***************************************************************************************************/
|
241367
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
241368
|
+
|
241369
|
+
"use strict";
|
241370
|
+
|
241371
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
241372
|
+
exports.FusionXTrade = void 0;
|
241373
|
+
const on_chain_trade_type_1 = __webpack_require__(/*! ../../../common/models/on-chain-trade-type */ "./src/features/on-chain/calculation-manager/providers/common/models/on-chain-trade-type.ts");
|
241374
|
+
const uniswap_v3_abstract_trade_1 = __webpack_require__(/*! ../../common/uniswap-v3-abstract/uniswap-v3-abstract-trade */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/uniswap-v3-abstract-trade.ts");
|
241375
|
+
const router_configuration_1 = __webpack_require__(/*! ./constants/router-configuration */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration.ts");
|
241376
|
+
class FusionXTrade extends uniswap_v3_abstract_trade_1.UniswapV3AbstractTrade {
|
241377
|
+
constructor() {
|
241378
|
+
super(...arguments);
|
241379
|
+
this.dexContractAddress = router_configuration_1.FUSIONX_UNISWAP_V3_SWAP_ROUTER_CONTRACT_ADDRESS;
|
241380
|
+
this.contractAbi = router_configuration_1.FUSIONX_UNISWAP_V3_SWAP_ROUTER_CONTRACT_ABI;
|
241381
|
+
}
|
241382
|
+
get type() {
|
241383
|
+
return on_chain_trade_type_1.ON_CHAIN_TRADE_TYPE.FUSIONX;
|
241384
|
+
}
|
241385
|
+
}
|
241386
|
+
exports.FusionXTrade = FusionXTrade;
|
241387
|
+
|
241388
|
+
|
241389
|
+
/***/ }),
|
241390
|
+
|
241391
|
+
/***/ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/utils/quoter-controller/constants/quoter-contract-data.ts":
|
241392
|
+
/*!********************************************************************************************************************************************!*\
|
241393
|
+
!*** ./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/utils/quoter-controller/constants/quoter-contract-data.ts ***!
|
241394
|
+
\********************************************************************************************************************************************/
|
241395
|
+
/***/ ((__unused_webpack_module, exports) => {
|
241396
|
+
|
241397
|
+
"use strict";
|
241398
|
+
|
241399
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
241400
|
+
exports.FUSIONX_QUOTER_CONTRACT_ABI = exports.FUSIONX_QUOTER_CONTRACT_ADDRESS = void 0;
|
241401
|
+
exports.FUSIONX_QUOTER_CONTRACT_ADDRESS = '0x90f72244294E7c5028aFd6a96E18CC2c1E913995';
|
241402
|
+
exports.FUSIONX_QUOTER_CONTRACT_ABI = [
|
241403
|
+
{
|
241404
|
+
type: 'function',
|
241405
|
+
stateMutability: 'nonpayable',
|
241406
|
+
outputs: [
|
241407
|
+
{ type: 'uint256', name: 'amountOut', internalType: 'uint256' },
|
241408
|
+
{ type: 'uint160[]', name: 'sqrtPriceX96AfterList', internalType: 'uint160[]' },
|
241409
|
+
{ type: 'uint32[]', name: 'initializedTicksCrossedList', internalType: 'uint32[]' },
|
241410
|
+
{ type: 'uint256', name: 'gasEstimate', internalType: 'uint256' }
|
241411
|
+
],
|
241412
|
+
name: 'quoteExactInput',
|
241413
|
+
inputs: [
|
241414
|
+
{ type: 'bytes', name: 'path', internalType: 'bytes' },
|
241415
|
+
{ type: 'uint256', name: 'amountIn', internalType: 'uint256' }
|
241416
|
+
]
|
241417
|
+
},
|
241418
|
+
{
|
241419
|
+
type: 'function',
|
241420
|
+
stateMutability: 'nonpayable',
|
241421
|
+
outputs: [
|
241422
|
+
{ type: 'uint256', name: 'amountOut', internalType: 'uint256' },
|
241423
|
+
{ type: 'uint160', name: 'sqrtPriceX96After', internalType: 'uint160' },
|
241424
|
+
{ type: 'uint32', name: 'initializedTicksCrossed', internalType: 'uint32' },
|
241425
|
+
{ type: 'uint256', name: 'gasEstimate', internalType: 'uint256' }
|
241426
|
+
],
|
241427
|
+
name: 'quoteExactInputSingle',
|
241428
|
+
inputs: [
|
241429
|
+
{
|
241430
|
+
type: 'tuple',
|
241431
|
+
name: 'params',
|
241432
|
+
internalType: 'struct IQuoterV2.QuoteExactInputSingleParams',
|
241433
|
+
components: [
|
241434
|
+
{ type: 'address' },
|
241435
|
+
{ type: 'address' },
|
241436
|
+
{ type: 'uint256' },
|
241437
|
+
{ type: 'uint24' },
|
241438
|
+
{ type: 'uint160' }
|
241439
|
+
]
|
241440
|
+
}
|
241441
|
+
]
|
241442
|
+
},
|
241443
|
+
{
|
241444
|
+
type: 'function',
|
241445
|
+
stateMutability: 'nonpayable',
|
241446
|
+
outputs: [
|
241447
|
+
{ type: 'uint256', name: 'amountIn', internalType: 'uint256' },
|
241448
|
+
{ type: 'uint160[]', name: 'sqrtPriceX96AfterList', internalType: 'uint160[]' },
|
241449
|
+
{ type: 'uint32[]', name: 'initializedTicksCrossedList', internalType: 'uint32[]' },
|
241450
|
+
{ type: 'uint256', name: 'gasEstimate', internalType: 'uint256' }
|
241451
|
+
],
|
241452
|
+
name: 'quoteExactOutput',
|
241453
|
+
inputs: [
|
241454
|
+
{ type: 'bytes', name: 'path', internalType: 'bytes' },
|
241455
|
+
{ type: 'uint256', name: 'amountOut', internalType: 'uint256' }
|
241456
|
+
]
|
241457
|
+
},
|
241458
|
+
{
|
241459
|
+
type: 'function',
|
241460
|
+
stateMutability: 'nonpayable',
|
241461
|
+
outputs: [
|
241462
|
+
{ type: 'uint256', name: 'amountIn', internalType: 'uint256' },
|
241463
|
+
{ type: 'uint160', name: 'sqrtPriceX96After', internalType: 'uint160' },
|
241464
|
+
{ type: 'uint32', name: 'initializedTicksCrossed', internalType: 'uint32' },
|
241465
|
+
{ type: 'uint256', name: 'gasEstimate', internalType: 'uint256' }
|
241466
|
+
],
|
241467
|
+
name: 'quoteExactOutputSingle',
|
241468
|
+
inputs: [
|
241469
|
+
{
|
241470
|
+
type: 'tuple',
|
241471
|
+
name: 'params',
|
241472
|
+
internalType: 'struct IQuoterV2.QuoteExactOutputSingleParams',
|
241473
|
+
components: [
|
241474
|
+
{ type: 'address' },
|
241475
|
+
{ type: 'address' },
|
241476
|
+
{ type: 'uint256' },
|
241477
|
+
{ type: 'uint24' },
|
241478
|
+
{ type: 'uint160' }
|
241479
|
+
]
|
241480
|
+
}
|
241481
|
+
]
|
241482
|
+
}
|
241483
|
+
];
|
241484
|
+
|
241485
|
+
|
240847
241486
|
/***/ }),
|
240848
241487
|
|
240849
241488
|
/***/ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/izumi-mantle/izumi-mantle-provider.ts":
|
@@ -248497,6 +249136,7 @@ __exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/pro
|
|
248497
249136
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/uniswap-v3-abstract-trade */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/uniswap-v3-abstract-trade.ts"), exports);
|
248498
249137
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/constants/factory-contract-data */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/constants/factory-contract-data.ts"), exports);
|
248499
249138
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/constants/quoter-contract-data */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/constants/quoter-contract-data.ts"), exports);
|
249139
|
+
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller.ts"), exports);
|
248500
249140
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/horizondex-uniswap-v3-quoter-controller */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/horizondex-uniswap-v3-quoter-controller.ts"), exports);
|
248501
249141
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/models/liquidity-pool */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/models/liquidity-pool.ts"), exports);
|
248502
249142
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/uniswap-v3-quoter-controller */ "./src/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/uniswap-v3-quoter-controller.ts"), exports);
|
@@ -248647,6 +249287,11 @@ __exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/pro
|
|
248647
249287
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/linea/vooi/vooi-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/linea/vooi/vooi-provider.ts"), exports);
|
248648
249288
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/linea/vooi/vooi-trade */ "./src/features/on-chain/calculation-manager/providers/dexes/linea/vooi/vooi-trade.ts"), exports);
|
248649
249289
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/linea/xy-dex-linea/xy-dex-linea-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/linea/xy-dex-linea/xy-dex-linea-provider.ts"), exports);
|
249290
|
+
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/provider-configuration */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/provider-configuration.ts"), exports);
|
249291
|
+
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/constants/router-configuration.ts"), exports);
|
249292
|
+
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-provider.ts"), exports);
|
249293
|
+
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-trade */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/fusionx-trade.ts"), exports);
|
249294
|
+
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/utils/quoter-controller/constants/quoter-contract-data */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/fusionx/utils/quoter-controller/constants/quoter-contract-data.ts"), exports);
|
248650
249295
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/mantle/izumi-mantle/izumi-mantle-provider */ "./src/features/on-chain/calculation-manager/providers/dexes/mantle/izumi-mantle/izumi-mantle-provider.ts"), exports);
|
248651
249296
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/metis/default-constants */ "./src/features/on-chain/calculation-manager/providers/dexes/metis/default-constants.ts"), exports);
|
248652
249297
|
__exportStar(__webpack_require__(/*! ./features/on-chain/calculation-manager/providers/dexes/metis/metis-abi */ "./src/features/on-chain/calculation-manager/providers/dexes/metis/metis-abi.ts"), exports);
|