@imtbl/sdk 1.15.6 → 1.15.7
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 +2 -2
- package/dist/browser/checkout/BridgeWidget-2efbd9ad.js +1 -0
- package/dist/browser/checkout/{OnRampWidget-8e8b8819.js → OnRampWidget-a66e7fa3.js} +1 -1
- package/dist/browser/checkout/SaleWidget-3c62a591.js +2 -0
- package/dist/browser/checkout/{SpendingCapHero-800633cb.js → SpendingCapHero-f79df11e.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-4214431b.js → SwapWidget-c978d4a4.js} +1 -1
- package/dist/browser/checkout/{TopUpView-c90cfc04.js → TopUpView-16db081a.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-c00d8723.js → WalletWidget-a5c469ba.js} +1 -1
- package/dist/browser/checkout/{auto-track-6525038f.js → auto-track-639217b4.js} +1 -1
- package/dist/browser/checkout/balance-123191fd.js +1 -0
- package/dist/browser/checkout/index-0246bdc8.js +1 -0
- package/dist/browser/checkout/{index-41e34266.js → index-0e73c11a.js} +1 -1
- package/dist/browser/checkout/{index-32df522a.js → index-2141407f.js} +1 -1
- package/dist/browser/checkout/{index-89152f0a.js → index-4b1d2f64.js} +12 -12
- package/dist/browser/checkout/{index-6817e91e.js → index-4c08daa5.js} +17 -17
- package/dist/browser/checkout/{index-b0776e1e.js → index-7c3b9755.js} +1 -1
- package/dist/browser/checkout/{index-ac189cb1.js → index-92d189dd.js} +1 -1
- package/dist/browser/checkout/{index-3e347faa.js → index-9c24e104.js} +1 -1
- package/dist/browser/checkout/{index.umd-fc914ede.js → index.umd-ccd06a86.js} +1 -1
- package/dist/browser/checkout/{retry-06ea349a.js → retry-428bd9ee.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useTransakEvents-2b588362.js → useTransakEvents-c01d9b36.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +61 -61
- package/dist/checkout.d.ts +2 -0
- package/dist/checkout.js +18 -11
- package/dist/config.js +1 -1
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +22 -14
- package/dist/index.d.ts +2 -0
- package/dist/index.js +22 -14
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +5 -4
- package/dist/x.js +3 -3
- package/package.json +1 -1
- package/dist/browser/checkout/BridgeWidget-6e7e7a05.js +0 -1
- package/dist/browser/checkout/SaleWidget-7d3e4b1b.js +0 -2
- package/dist/browser/checkout/balance-c7e1bedb.js +0 -1
- package/dist/browser/checkout/index-e0bf7c42.js +0 -1
package/dist/checkout.d.ts
CHANGED
|
@@ -16326,6 +16326,8 @@ declare enum ConnectTargetLayer {
|
|
|
16326
16326
|
type ConnectWidgetParams = {
|
|
16327
16327
|
/** The language to use for the connect widget */
|
|
16328
16328
|
language?: WidgetLanguage;
|
|
16329
|
+
/** The target chain to connect to as part of the connection process (defaults to Immutable zkEVM / Immutable zkEVM Testnet) */
|
|
16330
|
+
targetChainId?: ChainId;
|
|
16329
16331
|
};
|
|
16330
16332
|
|
|
16331
16333
|
/**
|
package/dist/checkout.js
CHANGED
|
@@ -139,7 +139,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
142
|
-
const SDK_VERSION$1 = '1.15.
|
|
142
|
+
const SDK_VERSION$1 = '1.15.7';
|
|
143
143
|
const getReferrer$1 = () => {
|
|
144
144
|
if (isNode$1()) {
|
|
145
145
|
return '';
|
|
@@ -17550,7 +17550,7 @@ const flattenProperties = (properties) => {
|
|
|
17550
17550
|
};
|
|
17551
17551
|
|
|
17552
17552
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
17553
|
-
const SDK_VERSION = '1.15.
|
|
17553
|
+
const SDK_VERSION = '1.15.7';
|
|
17554
17554
|
const getReferrer = () => {
|
|
17555
17555
|
if (isNode()) {
|
|
17556
17556
|
return '';
|
|
@@ -28036,7 +28036,7 @@ class APIError extends Error {
|
|
|
28036
28036
|
|
|
28037
28037
|
/* eslint-disable implicit-arrow-linebreak */
|
|
28038
28038
|
const defaultHeaders = {
|
|
28039
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.
|
|
28039
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.7',
|
|
28040
28040
|
};
|
|
28041
28041
|
/**
|
|
28042
28042
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -29455,7 +29455,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
29455
29455
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
29456
29456
|
};
|
|
29457
29457
|
|
|
29458
|
-
const SDK_VERSION_MARKER = '1.15.
|
|
29458
|
+
const SDK_VERSION_MARKER = '1.15.7';
|
|
29459
29459
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
29460
29460
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
29461
29461
|
|
|
@@ -32877,13 +32877,20 @@ const sell = async (config, provider, orders) => {
|
|
|
32877
32877
|
const itemRequirements = [
|
|
32878
32878
|
getERC721Requirement(sellToken.id, sellToken.collectionAddress, spenderAddress),
|
|
32879
32879
|
];
|
|
32880
|
-
|
|
32881
|
-
|
|
32882
|
-
|
|
32883
|
-
|
|
32884
|
-
|
|
32885
|
-
|
|
32886
|
-
|
|
32880
|
+
let smartCheckoutResult;
|
|
32881
|
+
const isPassport = provider.provider?.isPassport;
|
|
32882
|
+
if (!isPassport) {
|
|
32883
|
+
smartCheckoutResult = await measureAsyncExecution(config, 'Total time running smart checkout', smartCheckout(config, provider, itemRequirements, {
|
|
32884
|
+
type: TransactionOrGasType.GAS,
|
|
32885
|
+
gasToken: {
|
|
32886
|
+
type: GasTokenType.NATIVE,
|
|
32887
|
+
limit: BigNumber$1.from(constants.estimatedFulfillmentGasGwei),
|
|
32888
|
+
},
|
|
32889
|
+
}));
|
|
32890
|
+
}
|
|
32891
|
+
else {
|
|
32892
|
+
smartCheckoutResult = { sufficient: true, transactionRequirements: [] };
|
|
32893
|
+
}
|
|
32887
32894
|
if (smartCheckoutResult.sufficient) {
|
|
32888
32895
|
const unsignedTransactions = await getUnsignedERC721Transactions(listing.actions);
|
|
32889
32896
|
const approvalResult = await signApprovalTransactions(provider, unsignedTransactions.approvalTransactions);
|
package/dist/config.js
CHANGED
|
@@ -128,7 +128,7 @@ const flattenProperties = (properties) => {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
131
|
-
const SDK_VERSION = '1.15.
|
|
131
|
+
const SDK_VERSION = '1.15.7';
|
|
132
132
|
const getReferrer = () => {
|
|
133
133
|
if (isNode()) {
|
|
134
134
|
return '';
|