@imtbl/sdk 1.26.1-alpha.1 → 1.26.2-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.d.ts +3 -1
- package/dist/checkout.js +7 -15
- package/dist/config.js +1 -1
- package/dist/index.browser.js +23 -23
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +39 -20
- package/dist/index.d.ts +3 -1
- package/dist/index.js +39 -20
- package/dist/orderbook.js +1 -1
- package/dist/passport.d.ts +3 -1
- package/dist/passport.js +33 -6
- package/dist/x.js +3 -3
- package/package.json +3 -2
package/dist/checkout.d.ts
CHANGED
|
@@ -13878,7 +13878,9 @@ declare class Passport {
|
|
|
13878
13878
|
*/
|
|
13879
13879
|
connectImxSilent(): Promise<IMXProvider | null>;
|
|
13880
13880
|
connectImx(): Promise<IMXProvider>;
|
|
13881
|
-
connectEvm(
|
|
13881
|
+
connectEvm(options?: {
|
|
13882
|
+
announceProvider: boolean;
|
|
13883
|
+
}): Provider;
|
|
13882
13884
|
/**
|
|
13883
13885
|
*
|
|
13884
13886
|
* Initiates the authorisation flow.
|
package/dist/checkout.js
CHANGED
|
@@ -140,7 +140,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
143
|
-
const SDK_VERSION$1 = '1.26.
|
|
143
|
+
const SDK_VERSION$1 = '1.26.2-alpha.1';
|
|
144
144
|
const getReferrer$1 = () => {
|
|
145
145
|
if (isNode$1()) {
|
|
146
146
|
return '';
|
|
@@ -17551,7 +17551,7 @@ const flattenProperties = (properties) => {
|
|
|
17551
17551
|
};
|
|
17552
17552
|
|
|
17553
17553
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
17554
|
-
const SDK_VERSION = '1.26.
|
|
17554
|
+
const SDK_VERSION = '1.26.2-alpha.1';
|
|
17555
17555
|
const getReferrer = () => {
|
|
17556
17556
|
if (isNode()) {
|
|
17557
17557
|
return '';
|
|
@@ -28254,7 +28254,7 @@ class APIError extends Error {
|
|
|
28254
28254
|
|
|
28255
28255
|
/* eslint-disable implicit-arrow-linebreak */
|
|
28256
28256
|
const defaultHeaders = {
|
|
28257
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.
|
|
28257
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.2-alpha.1',
|
|
28258
28258
|
};
|
|
28259
28259
|
/**
|
|
28260
28260
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -29685,7 +29685,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
29685
29685
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
29686
29686
|
};
|
|
29687
29687
|
|
|
29688
|
-
const SDK_VERSION_MARKER = '1.26.
|
|
29688
|
+
const SDK_VERSION_MARKER = '1.26.2-alpha.1';
|
|
29689
29689
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
29690
29690
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
29691
29691
|
|
|
@@ -33231,7 +33231,7 @@ class FiatRampService {
|
|
|
33231
33231
|
return config[OnRampProvider.TRANSAK]?.fees;
|
|
33232
33232
|
}
|
|
33233
33233
|
async createWidgetUrl(params) {
|
|
33234
|
-
return await this.getTransakWidgetUrl(params);
|
|
33234
|
+
return (await this.getTransakWidgetUrl(params));
|
|
33235
33235
|
}
|
|
33236
33236
|
async getTransakWidgetUrl(params) {
|
|
33237
33237
|
const onRampConfig = (await this.config.remote.getConfig('onramp'));
|
|
@@ -33245,6 +33245,8 @@ class FiatRampService {
|
|
|
33245
33245
|
productsAvailed: 'buy',
|
|
33246
33246
|
exchangeScreenTitle: 'Buy',
|
|
33247
33247
|
themeColor: '0D0D0D',
|
|
33248
|
+
defaultFiatCurrency: 'usd',
|
|
33249
|
+
defaultFiatAmount: '50',
|
|
33248
33250
|
defaultCryptoCurrency: params.tokenSymbol || 'IMX',
|
|
33249
33251
|
};
|
|
33250
33252
|
if (params.isPassport && params.email) {
|
|
@@ -33255,9 +33257,6 @@ class FiatRampService {
|
|
|
33255
33257
|
disableWalletAddressForm: true,
|
|
33256
33258
|
};
|
|
33257
33259
|
}
|
|
33258
|
-
// NOTE: only set tokenAmount and tokenSymbol if you want a fixed pre-selected token with no currency selector
|
|
33259
|
-
// setting cryptoCurrencyCode code will force the user to buy that token, defaultCryptoAmount will not work without cryptoCurrencyCode
|
|
33260
|
-
// setting defaultFiatAmount/fiatAmount + defaultFiatCurrency will take a higher priority over defaultCryptoAmount + cryptoCurrencyCode
|
|
33261
33260
|
if (params.tokenAmount && params.tokenSymbol) {
|
|
33262
33261
|
widgetParams = {
|
|
33263
33262
|
...widgetParams,
|
|
@@ -33265,13 +33264,6 @@ class FiatRampService {
|
|
|
33265
33264
|
cryptoCurrencyCode: params.tokenSymbol,
|
|
33266
33265
|
};
|
|
33267
33266
|
}
|
|
33268
|
-
else {
|
|
33269
|
-
widgetParams = {
|
|
33270
|
-
...widgetParams,
|
|
33271
|
-
defaultFiatAmount: 50,
|
|
33272
|
-
defaultFiatCurrency: 'usd',
|
|
33273
|
-
};
|
|
33274
|
-
}
|
|
33275
33267
|
if (params.walletAddress) {
|
|
33276
33268
|
widgetParams = {
|
|
33277
33269
|
...widgetParams,
|
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.26.
|
|
131
|
+
const SDK_VERSION = '1.26.2-alpha.1';
|
|
132
132
|
const getReferrer = () => {
|
|
133
133
|
if (isNode()) {
|
|
134
134
|
return '';
|