@imtbl/sdk 1.25.1 → 1.26.1-alpha.1
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/sdk.js +4 -4
- package/dist/checkout.js +15 -7
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +19 -10
- package/dist/index.js +19 -10
- 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/index.cjs
CHANGED
|
@@ -181,7 +181,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
184
|
-
const SDK_VERSION$1 = '1.
|
|
184
|
+
const SDK_VERSION$1 = '1.26.1-alpha.1';
|
|
185
185
|
const getReferrer$1 = () => {
|
|
186
186
|
if (isNode$1()) {
|
|
187
187
|
return '';
|
|
@@ -13732,7 +13732,7 @@ class MultiRollupApiClients {
|
|
|
13732
13732
|
}
|
|
13733
13733
|
|
|
13734
13734
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13735
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
13735
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1-alpha.1' };
|
|
13736
13736
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13737
13737
|
if (!basePath.trim()) {
|
|
13738
13738
|
throw Error('basePath can not be empty');
|
|
@@ -13804,7 +13804,7 @@ class APIError extends Error {
|
|
|
13804
13804
|
|
|
13805
13805
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13806
13806
|
const defaultHeaders$1 = {
|
|
13807
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
13807
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.1-alpha.1',
|
|
13808
13808
|
};
|
|
13809
13809
|
/**
|
|
13810
13810
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14278,7 +14278,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14278
14278
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14279
14279
|
class ApiConfiguration extends index$2.Configuration {
|
|
14280
14280
|
}
|
|
14281
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
14281
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1-alpha.1' };
|
|
14282
14282
|
/**
|
|
14283
14283
|
* @dev use createImmutableXConfiguration instead
|
|
14284
14284
|
*/
|
|
@@ -14317,7 +14317,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14317
14317
|
chainID,
|
|
14318
14318
|
coreContractAddress,
|
|
14319
14319
|
registrationContractAddress,
|
|
14320
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
14320
|
+
sdkVersion: 'ts-immutable-sdk-1.26.1-alpha.1',
|
|
14321
14321
|
baseConfig,
|
|
14322
14322
|
});
|
|
14323
14323
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -25778,6 +25778,7 @@ var RelayerTransactionStatus;
|
|
|
25778
25778
|
RelayerTransactionStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
25779
25779
|
RelayerTransactionStatus["REVERTED"] = "REVERTED";
|
|
25780
25780
|
RelayerTransactionStatus["FAILED"] = "FAILED";
|
|
25781
|
+
RelayerTransactionStatus["CANCELLED"] = "CANCELLED";
|
|
25781
25782
|
})(RelayerTransactionStatus || (RelayerTransactionStatus = {}));
|
|
25782
25783
|
var ProviderEvent;
|
|
25783
25784
|
(function (ProviderEvent) {
|
|
@@ -45675,7 +45676,7 @@ const flattenProperties = (properties) => {
|
|
|
45675
45676
|
};
|
|
45676
45677
|
|
|
45677
45678
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45678
|
-
const SDK_VERSION = '1.
|
|
45679
|
+
const SDK_VERSION = '1.26.1-alpha.1';
|
|
45679
45680
|
const getReferrer = () => {
|
|
45680
45681
|
if (isNode()) {
|
|
45681
45682
|
return '';
|
|
@@ -50870,7 +50871,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50870
50871
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
50871
50872
|
};
|
|
50872
50873
|
|
|
50873
|
-
const SDK_VERSION_MARKER = '1.
|
|
50874
|
+
const SDK_VERSION_MARKER = '1.26.1-alpha.1';
|
|
50874
50875
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50875
50876
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50876
50877
|
|
|
@@ -54416,7 +54417,7 @@ class FiatRampService {
|
|
|
54416
54417
|
return config[OnRampProvider.TRANSAK]?.fees;
|
|
54417
54418
|
}
|
|
54418
54419
|
async createWidgetUrl(params) {
|
|
54419
|
-
return
|
|
54420
|
+
return await this.getTransakWidgetUrl(params);
|
|
54420
54421
|
}
|
|
54421
54422
|
async getTransakWidgetUrl(params) {
|
|
54422
54423
|
const onRampConfig = (await this.config.remote.getConfig('onramp'));
|
|
@@ -54430,8 +54431,6 @@ class FiatRampService {
|
|
|
54430
54431
|
productsAvailed: 'buy',
|
|
54431
54432
|
exchangeScreenTitle: 'Buy',
|
|
54432
54433
|
themeColor: '0D0D0D',
|
|
54433
|
-
defaultFiatCurrency: 'usd',
|
|
54434
|
-
defaultFiatAmount: '50',
|
|
54435
54434
|
defaultCryptoCurrency: params.tokenSymbol || 'IMX',
|
|
54436
54435
|
};
|
|
54437
54436
|
if (params.isPassport && params.email) {
|
|
@@ -54442,6 +54441,9 @@ class FiatRampService {
|
|
|
54442
54441
|
disableWalletAddressForm: true,
|
|
54443
54442
|
};
|
|
54444
54443
|
}
|
|
54444
|
+
// NOTE: only set tokenAmount and tokenSymbol if you want a fixed pre-selected token with no currency selector
|
|
54445
|
+
// setting cryptoCurrencyCode code will force the user to buy that token, defaultCryptoAmount will not work without cryptoCurrencyCode
|
|
54446
|
+
// setting defaultFiatAmount/fiatAmount + defaultFiatCurrency will take a higher priority over defaultCryptoAmount + cryptoCurrencyCode
|
|
54445
54447
|
if (params.tokenAmount && params.tokenSymbol) {
|
|
54446
54448
|
widgetParams = {
|
|
54447
54449
|
...widgetParams,
|
|
@@ -54449,6 +54451,13 @@ class FiatRampService {
|
|
|
54449
54451
|
cryptoCurrencyCode: params.tokenSymbol,
|
|
54450
54452
|
};
|
|
54451
54453
|
}
|
|
54454
|
+
else {
|
|
54455
|
+
widgetParams = {
|
|
54456
|
+
...widgetParams,
|
|
54457
|
+
defaultFiatAmount: 50,
|
|
54458
|
+
defaultFiatCurrency: 'usd',
|
|
54459
|
+
};
|
|
54460
|
+
}
|
|
54452
54461
|
if (params.walletAddress) {
|
|
54453
54462
|
widgetParams = {
|
|
54454
54463
|
...widgetParams,
|
package/dist/index.js
CHANGED
|
@@ -159,7 +159,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
162
|
-
const SDK_VERSION$1 = '1.
|
|
162
|
+
const SDK_VERSION$1 = '1.26.1-alpha.1';
|
|
163
163
|
const getReferrer$1 = () => {
|
|
164
164
|
if (isNode$1()) {
|
|
165
165
|
return '';
|
|
@@ -13710,7 +13710,7 @@ class MultiRollupApiClients {
|
|
|
13710
13710
|
}
|
|
13711
13711
|
|
|
13712
13712
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13713
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
13713
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1-alpha.1' };
|
|
13714
13714
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13715
13715
|
if (!basePath.trim()) {
|
|
13716
13716
|
throw Error('basePath can not be empty');
|
|
@@ -13782,7 +13782,7 @@ class APIError extends Error {
|
|
|
13782
13782
|
|
|
13783
13783
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13784
13784
|
const defaultHeaders$1 = {
|
|
13785
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
13785
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.1-alpha.1',
|
|
13786
13786
|
};
|
|
13787
13787
|
/**
|
|
13788
13788
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14256,7 +14256,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14256
14256
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14257
14257
|
class ApiConfiguration extends index$2.Configuration {
|
|
14258
14258
|
}
|
|
14259
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
14259
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1-alpha.1' };
|
|
14260
14260
|
/**
|
|
14261
14261
|
* @dev use createImmutableXConfiguration instead
|
|
14262
14262
|
*/
|
|
@@ -14295,7 +14295,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14295
14295
|
chainID,
|
|
14296
14296
|
coreContractAddress,
|
|
14297
14297
|
registrationContractAddress,
|
|
14298
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
14298
|
+
sdkVersion: 'ts-immutable-sdk-1.26.1-alpha.1',
|
|
14299
14299
|
baseConfig,
|
|
14300
14300
|
});
|
|
14301
14301
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -25756,6 +25756,7 @@ var RelayerTransactionStatus;
|
|
|
25756
25756
|
RelayerTransactionStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
25757
25757
|
RelayerTransactionStatus["REVERTED"] = "REVERTED";
|
|
25758
25758
|
RelayerTransactionStatus["FAILED"] = "FAILED";
|
|
25759
|
+
RelayerTransactionStatus["CANCELLED"] = "CANCELLED";
|
|
25759
25760
|
})(RelayerTransactionStatus || (RelayerTransactionStatus = {}));
|
|
25760
25761
|
var ProviderEvent;
|
|
25761
25762
|
(function (ProviderEvent) {
|
|
@@ -45653,7 +45654,7 @@ const flattenProperties = (properties) => {
|
|
|
45653
45654
|
};
|
|
45654
45655
|
|
|
45655
45656
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45656
|
-
const SDK_VERSION = '1.
|
|
45657
|
+
const SDK_VERSION = '1.26.1-alpha.1';
|
|
45657
45658
|
const getReferrer = () => {
|
|
45658
45659
|
if (isNode()) {
|
|
45659
45660
|
return '';
|
|
@@ -50848,7 +50849,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50848
50849
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
50849
50850
|
};
|
|
50850
50851
|
|
|
50851
|
-
const SDK_VERSION_MARKER = '1.
|
|
50852
|
+
const SDK_VERSION_MARKER = '1.26.1-alpha.1';
|
|
50852
50853
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50853
50854
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50854
50855
|
|
|
@@ -54394,7 +54395,7 @@ class FiatRampService {
|
|
|
54394
54395
|
return config[OnRampProvider.TRANSAK]?.fees;
|
|
54395
54396
|
}
|
|
54396
54397
|
async createWidgetUrl(params) {
|
|
54397
|
-
return
|
|
54398
|
+
return await this.getTransakWidgetUrl(params);
|
|
54398
54399
|
}
|
|
54399
54400
|
async getTransakWidgetUrl(params) {
|
|
54400
54401
|
const onRampConfig = (await this.config.remote.getConfig('onramp'));
|
|
@@ -54408,8 +54409,6 @@ class FiatRampService {
|
|
|
54408
54409
|
productsAvailed: 'buy',
|
|
54409
54410
|
exchangeScreenTitle: 'Buy',
|
|
54410
54411
|
themeColor: '0D0D0D',
|
|
54411
|
-
defaultFiatCurrency: 'usd',
|
|
54412
|
-
defaultFiatAmount: '50',
|
|
54413
54412
|
defaultCryptoCurrency: params.tokenSymbol || 'IMX',
|
|
54414
54413
|
};
|
|
54415
54414
|
if (params.isPassport && params.email) {
|
|
@@ -54420,6 +54419,9 @@ class FiatRampService {
|
|
|
54420
54419
|
disableWalletAddressForm: true,
|
|
54421
54420
|
};
|
|
54422
54421
|
}
|
|
54422
|
+
// NOTE: only set tokenAmount and tokenSymbol if you want a fixed pre-selected token with no currency selector
|
|
54423
|
+
// setting cryptoCurrencyCode code will force the user to buy that token, defaultCryptoAmount will not work without cryptoCurrencyCode
|
|
54424
|
+
// setting defaultFiatAmount/fiatAmount + defaultFiatCurrency will take a higher priority over defaultCryptoAmount + cryptoCurrencyCode
|
|
54423
54425
|
if (params.tokenAmount && params.tokenSymbol) {
|
|
54424
54426
|
widgetParams = {
|
|
54425
54427
|
...widgetParams,
|
|
@@ -54427,6 +54429,13 @@ class FiatRampService {
|
|
|
54427
54429
|
cryptoCurrencyCode: params.tokenSymbol,
|
|
54428
54430
|
};
|
|
54429
54431
|
}
|
|
54432
|
+
else {
|
|
54433
|
+
widgetParams = {
|
|
54434
|
+
...widgetParams,
|
|
54435
|
+
defaultFiatAmount: 50,
|
|
54436
|
+
defaultFiatCurrency: 'usd',
|
|
54437
|
+
};
|
|
54438
|
+
}
|
|
54430
54439
|
if (params.walletAddress) {
|
|
54431
54440
|
widgetParams = {
|
|
54432
54441
|
...widgetParams,
|
package/dist/orderbook.js
CHANGED
|
@@ -132,7 +132,7 @@ const flattenProperties = (properties) => {
|
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
135
|
-
const SDK_VERSION = '1.
|
|
135
|
+
const SDK_VERSION = '1.26.1-alpha.1';
|
|
136
136
|
const getReferrer = () => {
|
|
137
137
|
if (isNode()) {
|
|
138
138
|
return '';
|
package/dist/passport.js
CHANGED
|
@@ -11446,7 +11446,7 @@ class MultiRollupApiClients {
|
|
|
11446
11446
|
}
|
|
11447
11447
|
|
|
11448
11448
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11449
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
11449
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1-alpha.1' };
|
|
11450
11450
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
11451
11451
|
if (!basePath.trim()) {
|
|
11452
11452
|
throw Error('basePath can not be empty');
|
|
@@ -11625,7 +11625,7 @@ const flattenProperties = (properties) => {
|
|
|
11625
11625
|
};
|
|
11626
11626
|
|
|
11627
11627
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
11628
|
-
const SDK_VERSION = '1.
|
|
11628
|
+
const SDK_VERSION = '1.26.1-alpha.1';
|
|
11629
11629
|
const getReferrer = () => {
|
|
11630
11630
|
if (isNode()) {
|
|
11631
11631
|
return '';
|
|
@@ -11875,7 +11875,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
|
|
|
11875
11875
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
11876
11876
|
class ApiConfiguration extends index$2.Configuration {
|
|
11877
11877
|
}
|
|
11878
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
11878
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1-alpha.1' };
|
|
11879
11879
|
/**
|
|
11880
11880
|
* @dev use createImmutableXConfiguration instead
|
|
11881
11881
|
*/
|
|
@@ -11914,7 +11914,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11914
11914
|
chainID,
|
|
11915
11915
|
coreContractAddress,
|
|
11916
11916
|
registrationContractAddress,
|
|
11917
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
11917
|
+
sdkVersion: 'ts-immutable-sdk-1.26.1-alpha.1',
|
|
11918
11918
|
baseConfig,
|
|
11919
11919
|
});
|
|
11920
11920
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -20939,6 +20939,7 @@ var RelayerTransactionStatus;
|
|
|
20939
20939
|
RelayerTransactionStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
20940
20940
|
RelayerTransactionStatus["REVERTED"] = "REVERTED";
|
|
20941
20941
|
RelayerTransactionStatus["FAILED"] = "FAILED";
|
|
20942
|
+
RelayerTransactionStatus["CANCELLED"] = "CANCELLED";
|
|
20942
20943
|
})(RelayerTransactionStatus || (RelayerTransactionStatus = {}));
|
|
20943
20944
|
var ProviderEvent;
|
|
20944
20945
|
(function (ProviderEvent) {
|
package/dist/x.js
CHANGED
|
@@ -8954,7 +8954,7 @@ const flattenProperties = (properties) => {
|
|
|
8954
8954
|
};
|
|
8955
8955
|
|
|
8956
8956
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
8957
|
-
const SDK_VERSION = '1.
|
|
8957
|
+
const SDK_VERSION = '1.26.1-alpha.1';
|
|
8958
8958
|
const getReferrer = () => {
|
|
8959
8959
|
if (isNode()) {
|
|
8960
8960
|
return '';
|
|
@@ -9197,7 +9197,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
|
|
|
9197
9197
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
9198
9198
|
class ApiConfiguration extends index$2.Configuration {
|
|
9199
9199
|
}
|
|
9200
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
9200
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1-alpha.1' };
|
|
9201
9201
|
/**
|
|
9202
9202
|
* @dev use createImmutableXConfiguration instead
|
|
9203
9203
|
*/
|
|
@@ -9236,7 +9236,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
9236
9236
|
chainID,
|
|
9237
9237
|
coreContractAddress,
|
|
9238
9238
|
registrationContractAddress,
|
|
9239
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
9239
|
+
sdkVersion: 'ts-immutable-sdk-1.26.1-alpha.1',
|
|
9240
9240
|
baseConfig,
|
|
9241
9241
|
});
|
|
9242
9242
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
package/package.json
CHANGED