@imtbl/sdk 1.6.1 → 1.7.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.
@@ -21340,6 +21340,7 @@ declare class Passport {
21340
21340
  private readonly multiRollupApiClients;
21341
21341
  private readonly passportImxProviderFactory;
21342
21342
  private readonly passportEventEmitter;
21343
+ private readonly guardianClient;
21343
21344
  constructor(passportModuleConfiguration: PassportModuleConfiguration);
21344
21345
  /**
21345
21346
  * @deprecated The method `login` with an argument of `{ useCachedSession: true }` should be used in conjunction with
@@ -22959,6 +22960,7 @@ interface FiatRampWidgetParams {
22959
22960
  tokenAmount?: string;
22960
22961
  tokenSymbol?: string;
22961
22962
  email?: string;
22963
+ allowedTokens?: string[];
22962
22964
  }
22963
22965
  declare class FiatRampService {
22964
22966
  readonly config: CheckoutConfiguration;
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.6.1';
142
+ const SDK_VERSION$1 = '1.7.1';
143
143
  const getReferrer$1 = () => {
144
144
  if (isNode$1()) {
145
145
  return '';
@@ -17478,7 +17478,7 @@ const flattenProperties = (properties) => {
17478
17478
  };
17479
17479
 
17480
17480
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
17481
- const SDK_VERSION = '1.6.1';
17481
+ const SDK_VERSION = '1.7.1';
17482
17482
  const getReferrer = () => {
17483
17483
  if (isNode()) {
17484
17484
  return '';
@@ -27723,7 +27723,7 @@ class APIError extends Error {
27723
27723
 
27724
27724
  /* eslint-disable implicit-arrow-linebreak */
27725
27725
  const defaultHeaders = {
27726
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.6.1',
27726
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.1',
27727
27727
  };
27728
27728
  /**
27729
27729
  * createAPIConfiguration to create a custom Configuration
@@ -29090,7 +29090,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
29090
29090
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
29091
29091
  };
29092
29092
 
29093
- const SDK_VERSION_MARKER = '1.6.1';
29093
+ const SDK_VERSION_MARKER = '1.7.1';
29094
29094
  // This SDK version is replaced by the `yarn build` command ran on the root level
29095
29095
  const globalPackageVersion = () => SDK_VERSION_MARKER;
29096
29096
 
@@ -32604,13 +32604,15 @@ class FiatRampService {
32604
32604
  const productsAvailed = 'productsAvailed=buy';
32605
32605
  const exchangeScreenTitle = 'exchangeScreenTitle=Buy';
32606
32606
  const themeColor = 'themeColor=0D0D0D';
32607
+ const defaultFiat = 'defaultFiatAmount=50&defaultFiatCurrency=usd';
32607
32608
  widgetUrl += `${transakPublishableKey}&`
32608
32609
  + `${zkevmNetwork}&`
32609
32610
  + `${defaultPaymentMethod}&`
32610
32611
  + `${disableBankTransfer}&`
32611
32612
  + `${productsAvailed}&`
32612
32613
  + `${exchangeScreenTitle}&`
32613
- + `${themeColor}`;
32614
+ + `${themeColor}&`
32615
+ + `${defaultFiat}`;
32614
32616
  if (params.isPassport && params.email) {
32615
32617
  const encodedEmail = encodeURIComponent(params.email);
32616
32618
  widgetUrl += `&email=${encodedEmail}&isAutoFillUserData=true&disableWalletAddressForm=true`;
@@ -32624,6 +32626,9 @@ class FiatRampService {
32624
32626
  if (params.walletAddress) {
32625
32627
  widgetUrl += `&walletAddress=${params.walletAddress}`;
32626
32628
  }
32629
+ if (params.allowedTokens) {
32630
+ widgetUrl += `&cryptoCurrencyList=${params.allowedTokens?.join(',').toLowerCase()}`;
32631
+ }
32627
32632
  return widgetUrl;
32628
32633
  }
32629
32634
  }
@@ -33070,6 +33075,7 @@ class Checkout {
33070
33075
  tokenAmount = params.tokenAmount;
33071
33076
  tokenSymbol = token.symbol;
33072
33077
  }
33078
+ const allowedTokens = tokenList?.tokens?.filter((t) => t.symbol).map((t) => t.symbol);
33073
33079
  return await this.fiatRampService.createWidgetUrl({
33074
33080
  exchangeType: params.exchangeType,
33075
33081
  isPassport,
@@ -33077,6 +33083,7 @@ class Checkout {
33077
33083
  tokenAmount,
33078
33084
  tokenSymbol,
33079
33085
  email,
33086
+ allowedTokens,
33080
33087
  });
33081
33088
  }
33082
33089
  /**
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.6.1';
131
+ const SDK_VERSION = '1.7.1';
132
132
  const getReferrer = () => {
133
133
  if (isNode()) {
134
134
  return '';