@imtbl/sdk 0.35.6 → 0.35.7-alpha
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 +2 -2
- package/dist/checkout.js +12 -6
- 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 +14 -8
- package/dist/index.js +14 -8
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3791,7 +3791,7 @@ class MultiRollupApiClients {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
|
|
3793
3793
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3794
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.35.
|
|
3794
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.35.7-alpha' };
|
|
3795
3795
|
const createConfig = ({ basePath, headers, }) => {
|
|
3796
3796
|
if (!basePath.trim()) {
|
|
3797
3797
|
throw Error('basePath can not be empty');
|
|
@@ -3851,7 +3851,7 @@ class APIError extends Error {
|
|
|
3851
3851
|
|
|
3852
3852
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3853
3853
|
const defaultHeaders = {
|
|
3854
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.
|
|
3854
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.7-alpha',
|
|
3855
3855
|
};
|
|
3856
3856
|
/**
|
|
3857
3857
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4262,7 +4262,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4262
4262
|
chainID,
|
|
4263
4263
|
coreContractAddress,
|
|
4264
4264
|
registrationContractAddress,
|
|
4265
|
-
sdkVersion: 'ts-immutable-sdk-0.35.
|
|
4265
|
+
sdkVersion: 'ts-immutable-sdk-0.35.7-alpha',
|
|
4266
4266
|
});
|
|
4267
4267
|
/**
|
|
4268
4268
|
* Sets `sdkVersion` at the time of build
|
|
@@ -29205,9 +29205,12 @@ function buildSinglePoolSwap(tokenIn, tokenOut, recipient, trade, route, amountI
|
|
|
29205
29205
|
},
|
|
29206
29206
|
]));
|
|
29207
29207
|
}
|
|
29208
|
-
const shouldRefundNativeTokens =
|
|
29208
|
+
const shouldRefundNativeTokens = isNative(tokenIn);
|
|
29209
29209
|
if (shouldRefundNativeTokens) {
|
|
29210
|
-
// Refund ETH if the input token is native
|
|
29210
|
+
// Refund ETH if the input token is native.
|
|
29211
|
+
// In some cases, the user may have specified an input amount that is greater than what
|
|
29212
|
+
// the liqudiity of the pool can provide.
|
|
29213
|
+
// To account for this case, always call `refundETH` to refund any excess native tokens.
|
|
29211
29214
|
calldatas.push(paymentsContract.encodeFunctionData('refundETH'));
|
|
29212
29215
|
}
|
|
29213
29216
|
const shouldUnwrapTokens = isNative(tokenOut);
|
|
@@ -29281,9 +29284,12 @@ function buildMultiPoolSwap(tokenIn, tokenOut, recipient, trade, route, amountIn
|
|
|
29281
29284
|
},
|
|
29282
29285
|
]));
|
|
29283
29286
|
}
|
|
29284
|
-
const shouldRefundNativeTokens =
|
|
29287
|
+
const shouldRefundNativeTokens = isNative(tokenIn);
|
|
29285
29288
|
if (shouldRefundNativeTokens) {
|
|
29286
|
-
// Refund ETH if the input token is native
|
|
29289
|
+
// Refund ETH if the input token is native.
|
|
29290
|
+
// In some cases, the user may have specified an input amount that is greater than what
|
|
29291
|
+
// the liqudiity of the pool can provide.
|
|
29292
|
+
// To account for this case, always call `refundETH` to refund any excess native tokens.
|
|
29287
29293
|
calldatas.push(paymentsContract.encodeFunctionData('refundETH'));
|
|
29288
29294
|
}
|
|
29289
29295
|
const shouldUnwrapTokens = isNative(tokenOut);
|
|
@@ -30568,7 +30574,7 @@ const GAS_OVERRIDES = {
|
|
|
30568
30574
|
maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
|
|
30569
30575
|
};
|
|
30570
30576
|
|
|
30571
|
-
const SDK_VERSION_MARKER = '0.35.
|
|
30577
|
+
const SDK_VERSION_MARKER = '0.35.7-alpha';
|
|
30572
30578
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
30573
30579
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
30574
30580
|
|
package/dist/index.js
CHANGED
|
@@ -3769,7 +3769,7 @@ class MultiRollupApiClients {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
|
|
3771
3771
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3772
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.35.
|
|
3772
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.35.7-alpha' };
|
|
3773
3773
|
const createConfig = ({ basePath, headers, }) => {
|
|
3774
3774
|
if (!basePath.trim()) {
|
|
3775
3775
|
throw Error('basePath can not be empty');
|
|
@@ -3829,7 +3829,7 @@ class APIError extends Error {
|
|
|
3829
3829
|
|
|
3830
3830
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3831
3831
|
const defaultHeaders = {
|
|
3832
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.
|
|
3832
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.7-alpha',
|
|
3833
3833
|
};
|
|
3834
3834
|
/**
|
|
3835
3835
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4240,7 +4240,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4240
4240
|
chainID,
|
|
4241
4241
|
coreContractAddress,
|
|
4242
4242
|
registrationContractAddress,
|
|
4243
|
-
sdkVersion: 'ts-immutable-sdk-0.35.
|
|
4243
|
+
sdkVersion: 'ts-immutable-sdk-0.35.7-alpha',
|
|
4244
4244
|
});
|
|
4245
4245
|
/**
|
|
4246
4246
|
* Sets `sdkVersion` at the time of build
|
|
@@ -29183,9 +29183,12 @@ function buildSinglePoolSwap(tokenIn, tokenOut, recipient, trade, route, amountI
|
|
|
29183
29183
|
},
|
|
29184
29184
|
]));
|
|
29185
29185
|
}
|
|
29186
|
-
const shouldRefundNativeTokens =
|
|
29186
|
+
const shouldRefundNativeTokens = isNative(tokenIn);
|
|
29187
29187
|
if (shouldRefundNativeTokens) {
|
|
29188
|
-
// Refund ETH if the input token is native
|
|
29188
|
+
// Refund ETH if the input token is native.
|
|
29189
|
+
// In some cases, the user may have specified an input amount that is greater than what
|
|
29190
|
+
// the liqudiity of the pool can provide.
|
|
29191
|
+
// To account for this case, always call `refundETH` to refund any excess native tokens.
|
|
29189
29192
|
calldatas.push(paymentsContract.encodeFunctionData('refundETH'));
|
|
29190
29193
|
}
|
|
29191
29194
|
const shouldUnwrapTokens = isNative(tokenOut);
|
|
@@ -29259,9 +29262,12 @@ function buildMultiPoolSwap(tokenIn, tokenOut, recipient, trade, route, amountIn
|
|
|
29259
29262
|
},
|
|
29260
29263
|
]));
|
|
29261
29264
|
}
|
|
29262
|
-
const shouldRefundNativeTokens =
|
|
29265
|
+
const shouldRefundNativeTokens = isNative(tokenIn);
|
|
29263
29266
|
if (shouldRefundNativeTokens) {
|
|
29264
|
-
// Refund ETH if the input token is native
|
|
29267
|
+
// Refund ETH if the input token is native.
|
|
29268
|
+
// In some cases, the user may have specified an input amount that is greater than what
|
|
29269
|
+
// the liqudiity of the pool can provide.
|
|
29270
|
+
// To account for this case, always call `refundETH` to refund any excess native tokens.
|
|
29265
29271
|
calldatas.push(paymentsContract.encodeFunctionData('refundETH'));
|
|
29266
29272
|
}
|
|
29267
29273
|
const shouldUnwrapTokens = isNative(tokenOut);
|
|
@@ -30546,7 +30552,7 @@ const GAS_OVERRIDES = {
|
|
|
30546
30552
|
maxPriorityFeePerGas: BigNumber$1.from(101e9),
|
|
30547
30553
|
};
|
|
30548
30554
|
|
|
30549
|
-
const SDK_VERSION_MARKER = '0.35.
|
|
30555
|
+
const SDK_VERSION_MARKER = '0.35.7-alpha';
|
|
30550
30556
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
30551
30557
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
30552
30558
|
|
package/dist/passport.js
CHANGED
|
@@ -2191,7 +2191,7 @@ class MultiRollupApiClients {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
|
|
2193
2193
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2194
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.35.
|
|
2194
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.35.7-alpha' };
|
|
2195
2195
|
const createConfig = ({ basePath, headers, }) => {
|
|
2196
2196
|
if (!basePath.trim()) {
|
|
2197
2197
|
throw Error('basePath can not be empty');
|
|
@@ -2247,7 +2247,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
2247
2247
|
chainID,
|
|
2248
2248
|
coreContractAddress,
|
|
2249
2249
|
registrationContractAddress,
|
|
2250
|
-
sdkVersion: 'ts-immutable-sdk-0.35.
|
|
2250
|
+
sdkVersion: 'ts-immutable-sdk-0.35.7-alpha',
|
|
2251
2251
|
});
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED