@imtbl/sdk 0.39.3 → 0.39.4
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/dist/blockchain_data.js +1 -1
- package/dist/browser/checkout/sdk.js +3 -3
- package/dist/browser/checkout/widgets.js +1 -1
- package/dist/checkout.d.ts +2 -2
- package/dist/checkout.js +8 -8
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +12 -12
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -10
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/checkout.d.ts
CHANGED
|
@@ -11447,8 +11447,8 @@ interface CancelParams {
|
|
|
11447
11447
|
type ExchangeContracts = {
|
|
11448
11448
|
multicall: string;
|
|
11449
11449
|
coreFactory: string;
|
|
11450
|
-
|
|
11451
|
-
|
|
11450
|
+
quoter: string;
|
|
11451
|
+
swapRouter: string;
|
|
11452
11452
|
immutableSwapProxy: string;
|
|
11453
11453
|
};
|
|
11454
11454
|
/**
|
package/dist/checkout.js
CHANGED
|
@@ -19402,7 +19402,7 @@ class Router {
|
|
|
19402
19402
|
return await this.getBestQuoteFromRoutes(routes, amountSpecified, tradeType);
|
|
19403
19403
|
}
|
|
19404
19404
|
async getBestQuoteFromRoutes(routes, amountSpecified, tradeType) {
|
|
19405
|
-
const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.
|
|
19405
|
+
const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.quoter, routes, amountSpecified, tradeType);
|
|
19406
19406
|
if (quotes.length === 0) {
|
|
19407
19407
|
throw new NoRoutesAvailableError();
|
|
19408
19408
|
}
|
|
@@ -20043,10 +20043,10 @@ function adjustQuoteWithFees(ourQuote, amountSpecified, fees, nativeTokenService
|
|
|
20043
20043
|
|
|
20044
20044
|
const CONTRACTS_FOR_CHAIN_ID = {
|
|
20045
20045
|
[IMMUTABLE_TESTNET_CHAIN_ID]: {
|
|
20046
|
-
multicall: '
|
|
20047
|
-
coreFactory: '
|
|
20048
|
-
|
|
20049
|
-
|
|
20046
|
+
multicall: '0x4857Dfd11c712e862eC362cEee29F7974B70EfcD',
|
|
20047
|
+
coreFactory: '0x56c2162254b0E4417288786eE402c2B41d4e181e',
|
|
20048
|
+
quoter: '0xF6Ad3CcF71Abb3E12beCf6b3D2a74C963859ADCd',
|
|
20049
|
+
swapRouter: '0x0b012055F770AE7BB7a8303968A7Fb6088A2296e',
|
|
20050
20050
|
immutableSwapProxy: '0xDdBDa144cEbe1cCd68E746CDff8a6e4Be51A9e98',
|
|
20051
20051
|
},
|
|
20052
20052
|
};
|
|
@@ -20155,7 +20155,7 @@ class Exchange {
|
|
|
20155
20155
|
this.wrappedNativeToken = config.chain.wrappedNativeToken;
|
|
20156
20156
|
this.nativeTokenService = new NativeTokenService(this.nativeToken, this.wrappedNativeToken);
|
|
20157
20157
|
this.secondaryFees = config.secondaryFees;
|
|
20158
|
-
this.routerContractAddress = config.chain.contracts.
|
|
20158
|
+
this.routerContractAddress = config.chain.contracts.swapRouter;
|
|
20159
20159
|
this.swapProxyContractAddress = config.chain.contracts.immutableSwapProxy;
|
|
20160
20160
|
this.provider = new ethers.providers.StaticJsonRpcProvider({
|
|
20161
20161
|
url: config.chain.rpcUrl,
|
|
@@ -25801,7 +25801,7 @@ class APIError extends Error {
|
|
|
25801
25801
|
|
|
25802
25802
|
/* eslint-disable implicit-arrow-linebreak */
|
|
25803
25803
|
const defaultHeaders = {
|
|
25804
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.
|
|
25804
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.4',
|
|
25805
25805
|
};
|
|
25806
25806
|
/**
|
|
25807
25807
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -27150,7 +27150,7 @@ const GAS_OVERRIDES = {
|
|
|
27150
27150
|
maxPriorityFeePerGas: BigNumber$1.from(101e9),
|
|
27151
27151
|
};
|
|
27152
27152
|
|
|
27153
|
-
const SDK_VERSION_MARKER = '0.39.
|
|
27153
|
+
const SDK_VERSION_MARKER = '0.39.4';
|
|
27154
27154
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
27155
27155
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
27156
27156
|
|
|
@@ -17,7 +17,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
17
17
|
chainID,
|
|
18
18
|
coreContractAddress,
|
|
19
19
|
registrationContractAddress,
|
|
20
|
-
sdkVersion: 'ts-immutable-sdk-0.39.
|
|
20
|
+
sdkVersion: 'ts-immutable-sdk-0.39.4',
|
|
21
21
|
});
|
|
22
22
|
/**
|
|
23
23
|
* Sets `sdkVersion` at the time of build
|