@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/checkout.js
CHANGED
|
@@ -15442,9 +15442,12 @@ function buildSinglePoolSwap(tokenIn, tokenOut, recipient, trade, route, amountI
|
|
|
15442
15442
|
},
|
|
15443
15443
|
]));
|
|
15444
15444
|
}
|
|
15445
|
-
const shouldRefundNativeTokens =
|
|
15445
|
+
const shouldRefundNativeTokens = isNative(tokenIn);
|
|
15446
15446
|
if (shouldRefundNativeTokens) {
|
|
15447
|
-
// Refund ETH if the input token is native
|
|
15447
|
+
// Refund ETH if the input token is native.
|
|
15448
|
+
// In some cases, the user may have specified an input amount that is greater than what
|
|
15449
|
+
// the liqudiity of the pool can provide.
|
|
15450
|
+
// To account for this case, always call `refundETH` to refund any excess native tokens.
|
|
15448
15451
|
calldatas.push(paymentsContract.encodeFunctionData('refundETH'));
|
|
15449
15452
|
}
|
|
15450
15453
|
const shouldUnwrapTokens = isNative(tokenOut);
|
|
@@ -15518,9 +15521,12 @@ function buildMultiPoolSwap(tokenIn, tokenOut, recipient, trade, route, amountIn
|
|
|
15518
15521
|
},
|
|
15519
15522
|
]));
|
|
15520
15523
|
}
|
|
15521
|
-
const shouldRefundNativeTokens =
|
|
15524
|
+
const shouldRefundNativeTokens = isNative(tokenIn);
|
|
15522
15525
|
if (shouldRefundNativeTokens) {
|
|
15523
|
-
// Refund ETH if the input token is native
|
|
15526
|
+
// Refund ETH if the input token is native.
|
|
15527
|
+
// In some cases, the user may have specified an input amount that is greater than what
|
|
15528
|
+
// the liqudiity of the pool can provide.
|
|
15529
|
+
// To account for this case, always call `refundETH` to refund any excess native tokens.
|
|
15524
15530
|
calldatas.push(paymentsContract.encodeFunctionData('refundETH'));
|
|
15525
15531
|
}
|
|
15526
15532
|
const shouldUnwrapTokens = isNative(tokenOut);
|
|
@@ -20986,7 +20992,7 @@ class APIError extends Error {
|
|
|
20986
20992
|
|
|
20987
20993
|
/* eslint-disable implicit-arrow-linebreak */
|
|
20988
20994
|
const defaultHeaders = {
|
|
20989
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.
|
|
20995
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.7-alpha',
|
|
20990
20996
|
};
|
|
20991
20997
|
/**
|
|
20992
20998
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -22263,7 +22269,7 @@ const GAS_OVERRIDES = {
|
|
|
22263
22269
|
maxPriorityFeePerGas: BigNumber$1.from(101e9),
|
|
22264
22270
|
};
|
|
22265
22271
|
|
|
22266
|
-
const SDK_VERSION_MARKER = '0.35.
|
|
22272
|
+
const SDK_VERSION_MARKER = '0.35.7-alpha';
|
|
22267
22273
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
22268
22274
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
22269
22275
|
|
|
@@ -17,7 +17,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
17
17
|
chainID,
|
|
18
18
|
coreContractAddress,
|
|
19
19
|
registrationContractAddress,
|
|
20
|
-
sdkVersion: 'ts-immutable-sdk-0.35.
|
|
20
|
+
sdkVersion: 'ts-immutable-sdk-0.35.7-alpha',
|
|
21
21
|
});
|
|
22
22
|
/**
|
|
23
23
|
* Sets `sdkVersion` at the time of build
|