@imtbl/sdk 0.39.3 → 0.39.5
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 +57 -57
- 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/index.cjs
CHANGED
|
@@ -4256,7 +4256,7 @@ class MultiRollupApiClients {
|
|
|
4256
4256
|
}
|
|
4257
4257
|
|
|
4258
4258
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
4259
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.
|
|
4259
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.5' };
|
|
4260
4260
|
const createConfig = ({ basePath, headers, }) => {
|
|
4261
4261
|
if (!basePath.trim()) {
|
|
4262
4262
|
throw Error('basePath can not be empty');
|
|
@@ -4316,7 +4316,7 @@ class APIError extends Error {
|
|
|
4316
4316
|
|
|
4317
4317
|
/* eslint-disable implicit-arrow-linebreak */
|
|
4318
4318
|
const defaultHeaders = {
|
|
4319
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.
|
|
4319
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.5',
|
|
4320
4320
|
};
|
|
4321
4321
|
/**
|
|
4322
4322
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4755,7 +4755,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4755
4755
|
chainID,
|
|
4756
4756
|
coreContractAddress,
|
|
4757
4757
|
registrationContractAddress,
|
|
4758
|
-
sdkVersion: 'ts-immutable-sdk-0.39.
|
|
4758
|
+
sdkVersion: 'ts-immutable-sdk-0.39.5',
|
|
4759
4759
|
});
|
|
4760
4760
|
/**
|
|
4761
4761
|
* Sets `sdkVersion` at the time of build
|
|
@@ -33685,7 +33685,7 @@ class Router {
|
|
|
33685
33685
|
return await this.getBestQuoteFromRoutes(routes, amountSpecified, tradeType);
|
|
33686
33686
|
}
|
|
33687
33687
|
async getBestQuoteFromRoutes(routes, amountSpecified, tradeType) {
|
|
33688
|
-
const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.
|
|
33688
|
+
const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.quoter, routes, amountSpecified, tradeType);
|
|
33689
33689
|
if (quotes.length === 0) {
|
|
33690
33690
|
throw new NoRoutesAvailableError();
|
|
33691
33691
|
}
|
|
@@ -34326,10 +34326,10 @@ function adjustQuoteWithFees(ourQuote, amountSpecified, fees, nativeTokenService
|
|
|
34326
34326
|
|
|
34327
34327
|
const CONTRACTS_FOR_CHAIN_ID = {
|
|
34328
34328
|
[IMMUTABLE_TESTNET_CHAIN_ID]: {
|
|
34329
|
-
multicall: '
|
|
34330
|
-
coreFactory: '
|
|
34331
|
-
|
|
34332
|
-
|
|
34329
|
+
multicall: '0x4857Dfd11c712e862eC362cEee29F7974B70EfcD',
|
|
34330
|
+
coreFactory: '0x56c2162254b0E4417288786eE402c2B41d4e181e',
|
|
34331
|
+
quoter: '0xF6Ad3CcF71Abb3E12beCf6b3D2a74C963859ADCd',
|
|
34332
|
+
swapRouter: '0x0b012055F770AE7BB7a8303968A7Fb6088A2296e',
|
|
34333
34333
|
immutableSwapProxy: '0xDdBDa144cEbe1cCd68E746CDff8a6e4Be51A9e98',
|
|
34334
34334
|
},
|
|
34335
34335
|
};
|
|
@@ -34438,7 +34438,7 @@ class Exchange {
|
|
|
34438
34438
|
this.wrappedNativeToken = config.chain.wrappedNativeToken;
|
|
34439
34439
|
this.nativeTokenService = new NativeTokenService(this.nativeToken, this.wrappedNativeToken);
|
|
34440
34440
|
this.secondaryFees = config.secondaryFees;
|
|
34441
|
-
this.routerContractAddress = config.chain.contracts.
|
|
34441
|
+
this.routerContractAddress = config.chain.contracts.swapRouter;
|
|
34442
34442
|
this.swapProxyContractAddress = config.chain.contracts.immutableSwapProxy;
|
|
34443
34443
|
this.provider = new ethers.ethers.providers.StaticJsonRpcProvider({
|
|
34444
34444
|
url: config.chain.rpcUrl,
|
|
@@ -35482,7 +35482,7 @@ const GAS_OVERRIDES = {
|
|
|
35482
35482
|
maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
|
|
35483
35483
|
};
|
|
35484
35484
|
|
|
35485
|
-
const SDK_VERSION_MARKER = '0.39.
|
|
35485
|
+
const SDK_VERSION_MARKER = '0.39.5';
|
|
35486
35486
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
35487
35487
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
35488
35488
|
|
package/dist/index.d.ts
CHANGED
|
@@ -17759,8 +17759,8 @@ interface CancelParams {
|
|
|
17759
17759
|
type ExchangeContracts = {
|
|
17760
17760
|
multicall: string;
|
|
17761
17761
|
coreFactory: string;
|
|
17762
|
-
|
|
17763
|
-
|
|
17762
|
+
quoter: string;
|
|
17763
|
+
swapRouter: string;
|
|
17764
17764
|
immutableSwapProxy: string;
|
|
17765
17765
|
};
|
|
17766
17766
|
/**
|
package/dist/index.js
CHANGED
|
@@ -4234,7 +4234,7 @@ class MultiRollupApiClients {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
|
|
4236
4236
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
4237
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.
|
|
4237
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.5' };
|
|
4238
4238
|
const createConfig = ({ basePath, headers, }) => {
|
|
4239
4239
|
if (!basePath.trim()) {
|
|
4240
4240
|
throw Error('basePath can not be empty');
|
|
@@ -4294,7 +4294,7 @@ class APIError extends Error {
|
|
|
4294
4294
|
|
|
4295
4295
|
/* eslint-disable implicit-arrow-linebreak */
|
|
4296
4296
|
const defaultHeaders = {
|
|
4297
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.
|
|
4297
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.5',
|
|
4298
4298
|
};
|
|
4299
4299
|
/**
|
|
4300
4300
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4733,7 +4733,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4733
4733
|
chainID,
|
|
4734
4734
|
coreContractAddress,
|
|
4735
4735
|
registrationContractAddress,
|
|
4736
|
-
sdkVersion: 'ts-immutable-sdk-0.39.
|
|
4736
|
+
sdkVersion: 'ts-immutable-sdk-0.39.5',
|
|
4737
4737
|
});
|
|
4738
4738
|
/**
|
|
4739
4739
|
* Sets `sdkVersion` at the time of build
|
|
@@ -33663,7 +33663,7 @@ class Router {
|
|
|
33663
33663
|
return await this.getBestQuoteFromRoutes(routes, amountSpecified, tradeType);
|
|
33664
33664
|
}
|
|
33665
33665
|
async getBestQuoteFromRoutes(routes, amountSpecified, tradeType) {
|
|
33666
|
-
const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.
|
|
33666
|
+
const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.quoter, routes, amountSpecified, tradeType);
|
|
33667
33667
|
if (quotes.length === 0) {
|
|
33668
33668
|
throw new NoRoutesAvailableError();
|
|
33669
33669
|
}
|
|
@@ -34304,10 +34304,10 @@ function adjustQuoteWithFees(ourQuote, amountSpecified, fees, nativeTokenService
|
|
|
34304
34304
|
|
|
34305
34305
|
const CONTRACTS_FOR_CHAIN_ID = {
|
|
34306
34306
|
[IMMUTABLE_TESTNET_CHAIN_ID]: {
|
|
34307
|
-
multicall: '
|
|
34308
|
-
coreFactory: '
|
|
34309
|
-
|
|
34310
|
-
|
|
34307
|
+
multicall: '0x4857Dfd11c712e862eC362cEee29F7974B70EfcD',
|
|
34308
|
+
coreFactory: '0x56c2162254b0E4417288786eE402c2B41d4e181e',
|
|
34309
|
+
quoter: '0xF6Ad3CcF71Abb3E12beCf6b3D2a74C963859ADCd',
|
|
34310
|
+
swapRouter: '0x0b012055F770AE7BB7a8303968A7Fb6088A2296e',
|
|
34311
34311
|
immutableSwapProxy: '0xDdBDa144cEbe1cCd68E746CDff8a6e4Be51A9e98',
|
|
34312
34312
|
},
|
|
34313
34313
|
};
|
|
@@ -34416,7 +34416,7 @@ class Exchange {
|
|
|
34416
34416
|
this.wrappedNativeToken = config.chain.wrappedNativeToken;
|
|
34417
34417
|
this.nativeTokenService = new NativeTokenService(this.nativeToken, this.wrappedNativeToken);
|
|
34418
34418
|
this.secondaryFees = config.secondaryFees;
|
|
34419
|
-
this.routerContractAddress = config.chain.contracts.
|
|
34419
|
+
this.routerContractAddress = config.chain.contracts.swapRouter;
|
|
34420
34420
|
this.swapProxyContractAddress = config.chain.contracts.immutableSwapProxy;
|
|
34421
34421
|
this.provider = new ethers.providers.StaticJsonRpcProvider({
|
|
34422
34422
|
url: config.chain.rpcUrl,
|
|
@@ -35460,7 +35460,7 @@ const GAS_OVERRIDES = {
|
|
|
35460
35460
|
maxPriorityFeePerGas: BigNumber$1.from(101e9),
|
|
35461
35461
|
};
|
|
35462
35462
|
|
|
35463
|
-
const SDK_VERSION_MARKER = '0.39.
|
|
35463
|
+
const SDK_VERSION_MARKER = '0.39.5';
|
|
35464
35464
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
35465
35465
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
35466
35466
|
|
package/dist/passport.js
CHANGED
|
@@ -2349,7 +2349,7 @@ class MultiRollupApiClients {
|
|
|
2349
2349
|
}
|
|
2350
2350
|
|
|
2351
2351
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2352
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.39.
|
|
2352
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.39.5' };
|
|
2353
2353
|
const createConfig = ({ basePath, headers, }) => {
|
|
2354
2354
|
if (!basePath.trim()) {
|
|
2355
2355
|
throw Error('basePath can not be empty');
|
|
@@ -2405,7 +2405,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
2405
2405
|
chainID,
|
|
2406
2406
|
coreContractAddress,
|
|
2407
2407
|
registrationContractAddress,
|
|
2408
|
-
sdkVersion: 'ts-immutable-sdk-0.39.
|
|
2408
|
+
sdkVersion: 'ts-immutable-sdk-0.39.5',
|
|
2409
2409
|
});
|
|
2410
2410
|
/**
|
|
2411
2411
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED