@imtbl/sdk 0.17.3 → 0.17.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.js +2 -2
- package/dist/checkout_sdk.js +28 -9
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +31 -12
- package/dist/index.js +31 -12
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2724,7 +2724,7 @@ class MultiRollupApiClients {
|
|
|
2724
2724
|
}
|
|
2725
2725
|
|
|
2726
2726
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2727
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.17.
|
|
2727
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.17.4' };
|
|
2728
2728
|
const createConfig = ({ basePath, headers, }) => {
|
|
2729
2729
|
if (!basePath.trim()) {
|
|
2730
2730
|
throw Error('basePath can not be empty');
|
|
@@ -2784,7 +2784,7 @@ class APIError extends Error {
|
|
|
2784
2784
|
|
|
2785
2785
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2786
2786
|
const defaultHeaders = {
|
|
2787
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.17.
|
|
2787
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.17.4',
|
|
2788
2788
|
};
|
|
2789
2789
|
/**
|
|
2790
2790
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -3070,7 +3070,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
3070
3070
|
chainID,
|
|
3071
3071
|
coreContractAddress,
|
|
3072
3072
|
registrationContractAddress,
|
|
3073
|
-
sdkVersion: 'ts-immutable-sdk-0.17.
|
|
3073
|
+
sdkVersion: 'ts-immutable-sdk-0.17.4',
|
|
3074
3074
|
});
|
|
3075
3075
|
/**
|
|
3076
3076
|
* Sets `sdkVersion` at the time of build
|
|
@@ -27334,6 +27334,7 @@ class Exchange {
|
|
|
27334
27334
|
|
|
27335
27335
|
|
|
27336
27336
|
|
|
27337
|
+
|
|
27337
27338
|
var $aa144554f9ef124b$export$226b052ecb8ca80;
|
|
27338
27339
|
(function(BuyStatusType) {
|
|
27339
27340
|
BuyStatusType["SUCCESS"] = "SUCCESS";
|
|
@@ -27469,12 +27470,6 @@ const $d85ad1457a3f1a83$export$161d4a74df65fc08 = {
|
|
|
27469
27470
|
const $d85ad1457a3f1a83$export$72176e2233d7d5d = true;
|
|
27470
27471
|
const $d85ad1457a3f1a83$export$566b5975cc83d6b4 = true;
|
|
27471
27472
|
const $d85ad1457a3f1a83$export$261cde2078dba35b = true;
|
|
27472
|
-
const $d85ad1457a3f1a83$export$fc55ed5a42b458ba = {
|
|
27473
|
-
[($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_TESTNET]: {
|
|
27474
|
-
url: "https://explorer.testnet.immutable.com",
|
|
27475
|
-
nativeToken: $d85ad1457a3f1a83$var$ZKEVM_NATIVE_TOKEN
|
|
27476
|
-
}
|
|
27477
|
-
};
|
|
27478
27473
|
const $d85ad1457a3f1a83$export$f6043d7fce62d71b = {
|
|
27479
27474
|
[(Environment$1).SANDBOX]: "https://global-stg.transak.com",
|
|
27480
27475
|
[(Environment$1).PRODUCTION]: "https://global.transak.com/"
|
|
@@ -27572,6 +27567,16 @@ const $d85ad1457a3f1a83$export$3a9ebede6a150274 = new Map([
|
|
|
27572
27567
|
}
|
|
27573
27568
|
]
|
|
27574
27569
|
]);
|
|
27570
|
+
const $d85ad1457a3f1a83$export$fc55ed5a42b458ba = {
|
|
27571
|
+
[($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_TESTNET]: {
|
|
27572
|
+
url: "https://explorer.testnet.immutable.com",
|
|
27573
|
+
nativeToken: $d85ad1457a3f1a83$export$3e81fc0987227f10.get(($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_TESTNET).nativeCurrency
|
|
27574
|
+
},
|
|
27575
|
+
[($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_MAINNET]: {
|
|
27576
|
+
url: "https://explorer.mainnet.immutable.com",
|
|
27577
|
+
nativeToken: $d85ad1457a3f1a83$export$6f24f3cef7d501c4.get(($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_MAINNET).nativeCurrency
|
|
27578
|
+
}
|
|
27579
|
+
};
|
|
27575
27580
|
const $d85ad1457a3f1a83$export$db5daa1b5156ccfe = [
|
|
27576
27581
|
{
|
|
27577
27582
|
constant: true,
|
|
@@ -28346,7 +28351,14 @@ const $1564e43dde50bb61$export$8c978679845804d4 = async (walletAddress, chainId,
|
|
|
28346
28351
|
items.push(...resp.items);
|
|
28347
28352
|
}while (resp.next_page_params);
|
|
28348
28353
|
} catch (err) {
|
|
28349
|
-
|
|
28354
|
+
// In case of a 404, the wallet is a new wallet that hasn't been indexed by
|
|
28355
|
+
// the Blockscout just yet. This happens when a wallet hasn't had any
|
|
28356
|
+
// activity on the chain. In this case, simply ignore the error and return
|
|
28357
|
+
// no currencies.
|
|
28358
|
+
// In case of a malformed wallet address, Blockscout returns a 422, which
|
|
28359
|
+
// means we are safe to assume that a 404 is a missing wallet due to inactivity
|
|
28360
|
+
// or simply an incorrect wallet address was provided.
|
|
28361
|
+
if (err?.code !== (globalAxios$1.HttpStatusCode).NotFound) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(err.message || "InternalServerError | getTokensByWalletAddress", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).GET_INDEXER_BALANCE_ERROR, err);
|
|
28350
28362
|
}
|
|
28351
28363
|
try {
|
|
28352
28364
|
const respNative = await $1564e43dde50bb61$var$blockscoutClient.getNativeTokenByWalletAddress({
|
|
@@ -28354,7 +28366,14 @@ const $1564e43dde50bb61$export$8c978679845804d4 = async (walletAddress, chainId,
|
|
|
28354
28366
|
});
|
|
28355
28367
|
items.push(respNative);
|
|
28356
28368
|
} catch (err) {
|
|
28357
|
-
|
|
28369
|
+
// In case of a 404, the wallet is a new wallet that hasn't been indexed by
|
|
28370
|
+
// the Blockscout just yet. This happens when a wallet hasn't had any
|
|
28371
|
+
// activity on the chain. In this case, simply ignore the error and return
|
|
28372
|
+
// no currencies.
|
|
28373
|
+
// In case of a malformed wallet address, Blockscout returns a 422, which
|
|
28374
|
+
// means we are safe to assume that a 404 is a missing wallet due to inactivity
|
|
28375
|
+
// or simply an incorrect wallet address was provided.
|
|
28376
|
+
if (err?.code !== (globalAxios$1.HttpStatusCode).NotFound) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(err.message || "InternalServerError | getNativeTokenByWalletAddress", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).GET_INDEXER_BALANCE_ERROR, err);
|
|
28358
28377
|
}
|
|
28359
28378
|
return {
|
|
28360
28379
|
balances: items.map((item)=>{
|
|
@@ -30275,7 +30294,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
|
|
|
30275
30294
|
function $parcel$export(e, n, v, s) {
|
|
30276
30295
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
30277
30296
|
}
|
|
30278
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.17.
|
|
30297
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.17.4";
|
|
30279
30298
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
30280
30299
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
30281
30300
|
|
package/dist/index.js
CHANGED
|
@@ -2702,7 +2702,7 @@ class MultiRollupApiClients {
|
|
|
2702
2702
|
}
|
|
2703
2703
|
|
|
2704
2704
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2705
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.17.
|
|
2705
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.17.4' };
|
|
2706
2706
|
const createConfig = ({ basePath, headers, }) => {
|
|
2707
2707
|
if (!basePath.trim()) {
|
|
2708
2708
|
throw Error('basePath can not be empty');
|
|
@@ -2762,7 +2762,7 @@ class APIError extends Error {
|
|
|
2762
2762
|
|
|
2763
2763
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2764
2764
|
const defaultHeaders = {
|
|
2765
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.17.
|
|
2765
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.17.4',
|
|
2766
2766
|
};
|
|
2767
2767
|
/**
|
|
2768
2768
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -3048,7 +3048,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
3048
3048
|
chainID,
|
|
3049
3049
|
coreContractAddress,
|
|
3050
3050
|
registrationContractAddress,
|
|
3051
|
-
sdkVersion: 'ts-immutable-sdk-0.17.
|
|
3051
|
+
sdkVersion: 'ts-immutable-sdk-0.17.4',
|
|
3052
3052
|
});
|
|
3053
3053
|
/**
|
|
3054
3054
|
* Sets `sdkVersion` at the time of build
|
|
@@ -27312,6 +27312,7 @@ class Exchange {
|
|
|
27312
27312
|
|
|
27313
27313
|
|
|
27314
27314
|
|
|
27315
|
+
|
|
27315
27316
|
var $aa144554f9ef124b$export$226b052ecb8ca80;
|
|
27316
27317
|
(function(BuyStatusType) {
|
|
27317
27318
|
BuyStatusType["SUCCESS"] = "SUCCESS";
|
|
@@ -27447,12 +27448,6 @@ const $d85ad1457a3f1a83$export$161d4a74df65fc08 = {
|
|
|
27447
27448
|
const $d85ad1457a3f1a83$export$72176e2233d7d5d = true;
|
|
27448
27449
|
const $d85ad1457a3f1a83$export$566b5975cc83d6b4 = true;
|
|
27449
27450
|
const $d85ad1457a3f1a83$export$261cde2078dba35b = true;
|
|
27450
|
-
const $d85ad1457a3f1a83$export$fc55ed5a42b458ba = {
|
|
27451
|
-
[($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_TESTNET]: {
|
|
27452
|
-
url: "https://explorer.testnet.immutable.com",
|
|
27453
|
-
nativeToken: $d85ad1457a3f1a83$var$ZKEVM_NATIVE_TOKEN
|
|
27454
|
-
}
|
|
27455
|
-
};
|
|
27456
27451
|
const $d85ad1457a3f1a83$export$f6043d7fce62d71b = {
|
|
27457
27452
|
[(Environment$1).SANDBOX]: "https://global-stg.transak.com",
|
|
27458
27453
|
[(Environment$1).PRODUCTION]: "https://global.transak.com/"
|
|
@@ -27550,6 +27545,16 @@ const $d85ad1457a3f1a83$export$3a9ebede6a150274 = new Map([
|
|
|
27550
27545
|
}
|
|
27551
27546
|
]
|
|
27552
27547
|
]);
|
|
27548
|
+
const $d85ad1457a3f1a83$export$fc55ed5a42b458ba = {
|
|
27549
|
+
[($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_TESTNET]: {
|
|
27550
|
+
url: "https://explorer.testnet.immutable.com",
|
|
27551
|
+
nativeToken: $d85ad1457a3f1a83$export$3e81fc0987227f10.get(($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_TESTNET).nativeCurrency
|
|
27552
|
+
},
|
|
27553
|
+
[($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_MAINNET]: {
|
|
27554
|
+
url: "https://explorer.mainnet.immutable.com",
|
|
27555
|
+
nativeToken: $d85ad1457a3f1a83$export$6f24f3cef7d501c4.get(($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_MAINNET).nativeCurrency
|
|
27556
|
+
}
|
|
27557
|
+
};
|
|
27553
27558
|
const $d85ad1457a3f1a83$export$db5daa1b5156ccfe = [
|
|
27554
27559
|
{
|
|
27555
27560
|
constant: true,
|
|
@@ -28324,7 +28329,14 @@ const $1564e43dde50bb61$export$8c978679845804d4 = async (walletAddress, chainId,
|
|
|
28324
28329
|
items.push(...resp.items);
|
|
28325
28330
|
}while (resp.next_page_params);
|
|
28326
28331
|
} catch (err) {
|
|
28327
|
-
|
|
28332
|
+
// In case of a 404, the wallet is a new wallet that hasn't been indexed by
|
|
28333
|
+
// the Blockscout just yet. This happens when a wallet hasn't had any
|
|
28334
|
+
// activity on the chain. In this case, simply ignore the error and return
|
|
28335
|
+
// no currencies.
|
|
28336
|
+
// In case of a malformed wallet address, Blockscout returns a 422, which
|
|
28337
|
+
// means we are safe to assume that a 404 is a missing wallet due to inactivity
|
|
28338
|
+
// or simply an incorrect wallet address was provided.
|
|
28339
|
+
if (err?.code !== (HttpStatusCode$2).NotFound) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(err.message || "InternalServerError | getTokensByWalletAddress", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).GET_INDEXER_BALANCE_ERROR, err);
|
|
28328
28340
|
}
|
|
28329
28341
|
try {
|
|
28330
28342
|
const respNative = await $1564e43dde50bb61$var$blockscoutClient.getNativeTokenByWalletAddress({
|
|
@@ -28332,7 +28344,14 @@ const $1564e43dde50bb61$export$8c978679845804d4 = async (walletAddress, chainId,
|
|
|
28332
28344
|
});
|
|
28333
28345
|
items.push(respNative);
|
|
28334
28346
|
} catch (err) {
|
|
28335
|
-
|
|
28347
|
+
// In case of a 404, the wallet is a new wallet that hasn't been indexed by
|
|
28348
|
+
// the Blockscout just yet. This happens when a wallet hasn't had any
|
|
28349
|
+
// activity on the chain. In this case, simply ignore the error and return
|
|
28350
|
+
// no currencies.
|
|
28351
|
+
// In case of a malformed wallet address, Blockscout returns a 422, which
|
|
28352
|
+
// means we are safe to assume that a 404 is a missing wallet due to inactivity
|
|
28353
|
+
// or simply an incorrect wallet address was provided.
|
|
28354
|
+
if (err?.code !== (HttpStatusCode$2).NotFound) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(err.message || "InternalServerError | getNativeTokenByWalletAddress", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).GET_INDEXER_BALANCE_ERROR, err);
|
|
28336
28355
|
}
|
|
28337
28356
|
return {
|
|
28338
28357
|
balances: items.map((item)=>{
|
|
@@ -30253,7 +30272,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
|
|
|
30253
30272
|
function $parcel$export(e, n, v, s) {
|
|
30254
30273
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
30255
30274
|
}
|
|
30256
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.17.
|
|
30275
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.17.4";
|
|
30257
30276
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
30258
30277
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
30259
30278
|
|
package/dist/passport.js
CHANGED
|
@@ -1709,7 +1709,7 @@ class MultiRollupApiClients {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
|
|
1711
1711
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1712
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.17.
|
|
1712
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.17.4' };
|
|
1713
1713
|
const createConfig = ({ basePath, headers, }) => {
|
|
1714
1714
|
if (!basePath.trim()) {
|
|
1715
1715
|
throw Error('basePath can not be empty');
|
|
@@ -1765,7 +1765,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
1765
1765
|
chainID,
|
|
1766
1766
|
coreContractAddress,
|
|
1767
1767
|
registrationContractAddress,
|
|
1768
|
-
sdkVersion: 'ts-immutable-sdk-0.17.
|
|
1768
|
+
sdkVersion: 'ts-immutable-sdk-0.17.4',
|
|
1769
1769
|
});
|
|
1770
1770
|
/**
|
|
1771
1771
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED