@imtbl/sdk 1.26.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/index.cjs CHANGED
@@ -23,6 +23,7 @@ var providers = require('@ethersproject/providers');
23
23
  var events = require('events');
24
24
  var abi = require('@0xsequence/abi');
25
25
  var core = require('@0xsequence/core');
26
+ var uuid = require('uuid');
26
27
  var FormData$2 = require('form-data');
27
28
  var seaportJs = require('@opensea/seaport-js');
28
29
  var ethersV6 = require('ethers-v6');
@@ -181,7 +182,7 @@ const flattenProperties$1 = (properties) => {
181
182
  };
182
183
 
183
184
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
184
- const SDK_VERSION$1 = '1.26.1';
185
+ const SDK_VERSION$1 = '1.26.2-alpha.1';
185
186
  const getReferrer$1 = () => {
186
187
  if (isNode$1()) {
187
188
  return '';
@@ -13732,7 +13733,7 @@ class MultiRollupApiClients {
13732
13733
  }
13733
13734
 
13734
13735
  // eslint-disable-next-line @typescript-eslint/naming-convention
13735
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1' };
13736
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.1' };
13736
13737
  const createConfig$1 = ({ basePath, headers, }) => {
13737
13738
  if (!basePath.trim()) {
13738
13739
  throw Error('basePath can not be empty');
@@ -13804,7 +13805,7 @@ class APIError extends Error {
13804
13805
 
13805
13806
  /* eslint-disable implicit-arrow-linebreak */
13806
13807
  const defaultHeaders$1 = {
13807
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.1',
13808
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.2-alpha.1',
13808
13809
  };
13809
13810
  /**
13810
13811
  * createAPIConfiguration to create a custom Configuration
@@ -14278,7 +14279,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14278
14279
  /* eslint-disable @typescript-eslint/naming-convention */
14279
14280
  class ApiConfiguration extends index$2.Configuration {
14280
14281
  }
14281
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1' };
14282
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.1' };
14282
14283
  /**
14283
14284
  * @dev use createImmutableXConfiguration instead
14284
14285
  */
@@ -14317,7 +14318,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14317
14318
  chainID,
14318
14319
  coreContractAddress,
14319
14320
  registrationContractAddress,
14320
- sdkVersion: 'ts-immutable-sdk-1.26.1',
14321
+ sdkVersion: 'ts-immutable-sdk-1.26.2-alpha.1',
14321
14322
  baseConfig,
14322
14323
  });
14323
14324
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -26652,6 +26653,23 @@ class ZkEvmProvider {
26652
26653
  }
26653
26654
  }
26654
26655
 
26656
+ const passportProviderInfo = {
26657
+ // eslint-disable-next-line max-len
26658
+ icon: 'data:image/svg+xml,<svg viewBox="0 0 48 48" class="SvgIcon undefined Logo Logo--PassportSymbolOutlined css-1dn9atd" xmlns="http://www.w3.org/2000/svg"><g data-testid="undefined__g"><circle cx="24" cy="24" r="22.5" fill="url(%23paint0_radial_6324_83922)"></circle><circle cx="24" cy="24" r="22.5" fill="url(%23paint1_radial_6324_83922)"></circle><path d="M24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0ZM23.0718 9.16608C23.7383 8.83951 24.4406 8.86188 25.087 9.2287C27.3282 10.5059 29.5627 11.7942 31.786 13.096C32.5018 13.5165 32.8686 14.1897 32.8708 15.0173C32.8843 17.9184 32.8798 20.8171 32.8708 23.7182C32.8708 23.8255 32.8015 23.9821 32.7143 24.0335C31.8531 24.548 30.9808 25.0423 30.0347 25.5881V25.1318C30.0347 22.148 30.0257 19.1664 30.0414 16.1827C30.0436 15.6101 29.8468 15.241 29.339 14.9525C26.7377 13.474 24.1499 11.9687 21.5575 10.4723C21.4457 10.4075 21.3361 10.3381 21.1661 10.2352C21.8326 9.85722 22.4321 9.47698 23.0673 9.16608H23.0718ZM22.5953 38.8451C22.45 38.7713 22.3426 38.7198 22.2375 38.6595C18.8041 36.68 15.3752 34.687 11.9307 32.7232C10.9644 32.173 10.5238 31.3879 10.5349 30.2852C10.5551 27.9411 10.5484 25.597 10.5372 23.2507C10.5327 22.1927 10.9622 21.4255 11.8926 20.8977C14.3105 19.5221 16.715 18.1264 19.1195 16.7284C19.3275 16.6076 19.4796 16.5875 19.6965 16.7172C20.5264 17.216 21.3719 17.6924 22.2554 18.2024C22.0876 18.3031 21.9601 18.3791 21.8304 18.4552C19.2268 19.9582 16.6278 21.4658 14.0175 22.9599C13.5903 23.2037 13.3912 23.5213 13.3957 24.0179C13.4091 25.8654 13.4114 27.713 13.3957 29.5605C13.3912 30.0705 13.5948 30.3948 14.0332 30.6453C16.7866 32.2199 19.5288 33.8125 22.28 35.3916C22.5126 35.5258 22.611 35.6645 22.6065 35.9418C22.5864 36.888 22.5998 37.8363 22.5998 38.8473L22.5953 38.8451ZM22.5953 33.553C22.356 33.4166 22.1838 33.3204 22.0116 33.2198C19.8285 31.9605 17.6477 30.6967 15.4602 29.4464C15.2231 29.3122 15.1359 29.1668 15.1381 28.8917C15.1538 27.4714 15.1471 26.0511 15.1426 24.6308C15.1426 24.4384 15.1717 24.3064 15.3618 24.1991C16.167 23.7495 16.9633 23.2798 17.7618 22.8212C17.8199 22.7877 17.8826 22.7631 17.9877 22.7116V24.3064C17.9877 25.1698 18.0011 26.0354 17.9832 26.8988C17.972 27.3909 18.1622 27.7241 18.5916 27.9657C19.8285 28.6636 21.0498 29.3883 22.2867 30.0839C22.5305 30.2203 22.6043 30.3724 22.5998 30.6408C22.5842 31.5847 22.5931 32.5308 22.5931 33.5508L22.5953 33.553ZM20.0746 14.91C19.6116 14.6371 19.2157 14.6393 18.7527 14.91C16.1581 16.4265 13.5523 17.9228 10.9487 19.4259C10.8391 19.4908 10.7251 19.5489 10.5305 19.6541C10.5998 18.6654 10.3873 17.7327 10.7251 16.8291C10.9085 16.3348 11.2529 15.9635 11.7092 15.6995C13.8811 14.4447 16.0507 13.1877 18.227 11.9396C19.0211 11.4833 19.8308 11.4945 20.6248 11.953C23.0964 13.3756 25.5657 14.8026 28.0306 16.2341C28.1357 16.2945 28.2677 16.4309 28.2677 16.5338C28.2856 17.5493 28.2788 18.567 28.2788 19.6563C27.3819 19.1396 26.5543 18.6609 25.7267 18.1823C23.8412 17.093 21.9512 16.0149 20.0746 14.91ZM37.4427 30.8779C37.3778 31.6764 36.9103 32.2423 36.2192 32.6404C33.5732 34.1614 30.9294 35.6913 28.2856 37.2168C27.4557 37.6954 26.6259 38.1741 25.7938 38.6527C25.6932 38.7109 25.5903 38.7601 25.4539 38.8317C25.4449 38.693 25.4337 38.5924 25.4337 38.4917C25.4337 37.6149 25.4382 36.7404 25.4293 35.8636C25.4293 35.6645 25.4762 35.5437 25.6596 35.4386C29.5157 33.2198 33.3696 30.9942 37.2212 28.7709C37.2794 28.7374 37.3443 28.7105 37.4539 28.6591C37.4539 29.4375 37.4986 30.1622 37.4427 30.8779ZM37.4628 25.3577C37.4561 26.2658 36.9663 26.9033 36.1901 27.3506C33.175 29.0841 30.1622 30.8265 27.1493 32.5666C26.5991 32.8842 26.0466 33.1996 25.4561 33.5396C25.4472 33.3897 25.436 33.2913 25.436 33.1907C25.436 32.3273 25.4449 31.4617 25.4293 30.5983C25.4248 30.3523 25.5075 30.2226 25.72 30.0995C28.46 28.5271 31.1911 26.9368 33.9355 25.3733C34.4231 25.096 34.6378 24.7538 34.6334 24.1812C34.6132 21.1974 34.6244 18.2136 34.6244 15.2298V14.7087C35.3402 15.1404 36.0112 15.496 36.624 15.9299C37.1832 16.3258 37.465 16.9253 37.4673 17.6164C37.4762 20.1976 37.4829 22.7788 37.465 25.3599L37.4628 25.3577Z" fill="%230D0D0D"></path><path fill-rule="evenodd" d="M24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0ZM24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2Z" fill="url(%23paint2_radial_6324_83922)"></path><path fill-rule="evenodd" d="M24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0ZM24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2Z" fill="url(%23paint3_radial_6324_83922)"></path><defs><radialGradient id="paint0_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(13.4442 13.3899) rotate(44.9817) scale(46.7487 99.1435)"><stop stop-color="%23A3EEF8"></stop><stop offset="0.177083" stop-color="%23A4DCF5"></stop><stop offset="0.380208" stop-color="%23A6AEEC"></stop><stop offset="1" stop-color="%23ECBEE1"></stop></radialGradient><radialGradient id="paint1_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(25.9515 43.7068) rotate(84.265) scale(24.2138 46.3215)"><stop stop-color="%23FCF5EE"></stop><stop offset="0.715135" stop-color="%23ECBEE1" stop-opacity="0"></stop></radialGradient><radialGradient id="paint2_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(12.7405 12.6825) rotate(44.9817) scale(49.8653 105.753)"><stop stop-color="%23A3EEF8"></stop><stop offset="0.177083" stop-color="%23A4DCF5"></stop><stop offset="0.380208" stop-color="%23A6AEEC"></stop><stop offset="1" stop-color="%23ECBEE1"></stop></radialGradient><radialGradient id="paint3_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(26.0816 45.0206) rotate(84.265) scale(25.828 49.4096)"><stop stop-color="%23FCF5EE"></stop><stop offset="0.715135" stop-color="%23ECBEE1" stop-opacity="0"></stop></radialGradient></defs></g></svg>',
26659
+ name: 'Immutable Passport',
26660
+ rdns: 'com.immutable.passport',
26661
+ uuid: uuid.v4(),
26662
+ };
26663
+ function announceProvider(detail) {
26664
+ if (!window)
26665
+ return () => { };
26666
+ const event = new CustomEvent('eip6963:announceProvider', { detail: Object.freeze(detail) });
26667
+ window.dispatchEvent(event);
26668
+ const handler = () => window.dispatchEvent(event);
26669
+ window.addEventListener('eip6963:requestProvider', handler);
26670
+ return () => window.removeEventListener('eip6963:requestProvider', handler);
26671
+ }
26672
+
26655
26673
  const buildImxClientConfig = (passportModuleConfiguration) => {
26656
26674
  if (passportModuleConfiguration.overrides) {
26657
26675
  return createConfig$1({ basePath: passportModuleConfiguration.overrides.imxPublicApiDomain });
@@ -26737,8 +26755,10 @@ class Passport {
26737
26755
  async connectImx() {
26738
26756
  return this.passportImxProviderFactory.getProvider();
26739
26757
  }
26740
- connectEvm() {
26741
- return new ZkEvmProvider({
26758
+ connectEvm(options = {
26759
+ announceProvider: true,
26760
+ }) {
26761
+ const provider = new ZkEvmProvider({
26742
26762
  passportEventEmitter: this.passportEventEmitter,
26743
26763
  authManager: this.authManager,
26744
26764
  magicAdapter: this.magicAdapter,
@@ -26746,6 +26766,13 @@ class Passport {
26746
26766
  multiRollupApiClients: this.multiRollupApiClients,
26747
26767
  guardianClient: this.guardianClient,
26748
26768
  });
26769
+ if (options?.announceProvider) {
26770
+ announceProvider({
26771
+ info: passportProviderInfo,
26772
+ provider,
26773
+ });
26774
+ }
26775
+ return provider;
26749
26776
  }
26750
26777
  /**
26751
26778
  *
@@ -45676,7 +45703,7 @@ const flattenProperties = (properties) => {
45676
45703
  };
45677
45704
 
45678
45705
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45679
- const SDK_VERSION = '1.26.1';
45706
+ const SDK_VERSION = '1.26.2-alpha.1';
45680
45707
  const getReferrer = () => {
45681
45708
  if (isNode()) {
45682
45709
  return '';
@@ -50871,7 +50898,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50871
50898
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
50872
50899
  };
50873
50900
 
50874
- const SDK_VERSION_MARKER = '1.26.1';
50901
+ const SDK_VERSION_MARKER = '1.26.2-alpha.1';
50875
50902
  // This SDK version is replaced by the `yarn build` command ran on the root level
50876
50903
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50877
50904
 
@@ -54417,7 +54444,7 @@ class FiatRampService {
54417
54444
  return config[OnRampProvider.TRANSAK]?.fees;
54418
54445
  }
54419
54446
  async createWidgetUrl(params) {
54420
- return await this.getTransakWidgetUrl(params);
54447
+ return (await this.getTransakWidgetUrl(params));
54421
54448
  }
54422
54449
  async getTransakWidgetUrl(params) {
54423
54450
  const onRampConfig = (await this.config.remote.getConfig('onramp'));
@@ -54431,6 +54458,8 @@ class FiatRampService {
54431
54458
  productsAvailed: 'buy',
54432
54459
  exchangeScreenTitle: 'Buy',
54433
54460
  themeColor: '0D0D0D',
54461
+ defaultFiatCurrency: 'usd',
54462
+ defaultFiatAmount: '50',
54434
54463
  defaultCryptoCurrency: params.tokenSymbol || 'IMX',
54435
54464
  };
54436
54465
  if (params.isPassport && params.email) {
@@ -54441,9 +54470,6 @@ class FiatRampService {
54441
54470
  disableWalletAddressForm: true,
54442
54471
  };
54443
54472
  }
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
54447
54473
  if (params.tokenAmount && params.tokenSymbol) {
54448
54474
  widgetParams = {
54449
54475
  ...widgetParams,
@@ -54451,13 +54477,6 @@ class FiatRampService {
54451
54477
  cryptoCurrencyCode: params.tokenSymbol,
54452
54478
  };
54453
54479
  }
54454
- else {
54455
- widgetParams = {
54456
- ...widgetParams,
54457
- defaultFiatAmount: 50,
54458
- defaultFiatCurrency: 'usd',
54459
- };
54460
- }
54461
54480
  if (params.walletAddress) {
54462
54481
  widgetParams = {
54463
54482
  ...widgetParams,
package/dist/index.d.ts CHANGED
@@ -24201,7 +24201,9 @@ declare class Passport {
24201
24201
  */
24202
24202
  connectImxSilent(): Promise<IMXProvider | null>;
24203
24203
  connectImx(): Promise<IMXProvider>;
24204
- connectEvm(): Provider;
24204
+ connectEvm(options?: {
24205
+ announceProvider: boolean;
24206
+ }): Provider;
24205
24207
  /**
24206
24208
  *
24207
24209
  * Initiates the authorisation flow.
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ import { StaticJsonRpcProvider, Web3Provider, JsonRpcProvider as JsonRpcProvider
21
21
  import { EventEmitter } from 'events';
22
22
  import { walletContracts } from '@0xsequence/abi';
23
23
  import { v1 } from '@0xsequence/core';
24
+ import { v4 } from 'uuid';
24
25
  import FormData$2 from 'form-data';
25
26
  import { Seaport as Seaport$1 } from '@opensea/seaport-js';
26
27
  import { JsonRpcProvider, JsonRpcSigner } from 'ethers-v6';
@@ -159,7 +160,7 @@ const flattenProperties$1 = (properties) => {
159
160
  };
160
161
 
161
162
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
162
- const SDK_VERSION$1 = '1.26.1';
163
+ const SDK_VERSION$1 = '1.26.2-alpha.1';
163
164
  const getReferrer$1 = () => {
164
165
  if (isNode$1()) {
165
166
  return '';
@@ -13710,7 +13711,7 @@ class MultiRollupApiClients {
13710
13711
  }
13711
13712
 
13712
13713
  // eslint-disable-next-line @typescript-eslint/naming-convention
13713
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1' };
13714
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.1' };
13714
13715
  const createConfig$1 = ({ basePath, headers, }) => {
13715
13716
  if (!basePath.trim()) {
13716
13717
  throw Error('basePath can not be empty');
@@ -13782,7 +13783,7 @@ class APIError extends Error {
13782
13783
 
13783
13784
  /* eslint-disable implicit-arrow-linebreak */
13784
13785
  const defaultHeaders$1 = {
13785
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.1',
13786
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.2-alpha.1',
13786
13787
  };
13787
13788
  /**
13788
13789
  * createAPIConfiguration to create a custom Configuration
@@ -14256,7 +14257,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14256
14257
  /* eslint-disable @typescript-eslint/naming-convention */
14257
14258
  class ApiConfiguration extends index$2.Configuration {
14258
14259
  }
14259
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1' };
14260
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.1' };
14260
14261
  /**
14261
14262
  * @dev use createImmutableXConfiguration instead
14262
14263
  */
@@ -14295,7 +14296,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14295
14296
  chainID,
14296
14297
  coreContractAddress,
14297
14298
  registrationContractAddress,
14298
- sdkVersion: 'ts-immutable-sdk-1.26.1',
14299
+ sdkVersion: 'ts-immutable-sdk-1.26.2-alpha.1',
14299
14300
  baseConfig,
14300
14301
  });
14301
14302
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -26630,6 +26631,23 @@ class ZkEvmProvider {
26630
26631
  }
26631
26632
  }
26632
26633
 
26634
+ const passportProviderInfo = {
26635
+ // eslint-disable-next-line max-len
26636
+ icon: 'data:image/svg+xml,<svg viewBox="0 0 48 48" class="SvgIcon undefined Logo Logo--PassportSymbolOutlined css-1dn9atd" xmlns="http://www.w3.org/2000/svg"><g data-testid="undefined__g"><circle cx="24" cy="24" r="22.5" fill="url(%23paint0_radial_6324_83922)"></circle><circle cx="24" cy="24" r="22.5" fill="url(%23paint1_radial_6324_83922)"></circle><path d="M24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0ZM23.0718 9.16608C23.7383 8.83951 24.4406 8.86188 25.087 9.2287C27.3282 10.5059 29.5627 11.7942 31.786 13.096C32.5018 13.5165 32.8686 14.1897 32.8708 15.0173C32.8843 17.9184 32.8798 20.8171 32.8708 23.7182C32.8708 23.8255 32.8015 23.9821 32.7143 24.0335C31.8531 24.548 30.9808 25.0423 30.0347 25.5881V25.1318C30.0347 22.148 30.0257 19.1664 30.0414 16.1827C30.0436 15.6101 29.8468 15.241 29.339 14.9525C26.7377 13.474 24.1499 11.9687 21.5575 10.4723C21.4457 10.4075 21.3361 10.3381 21.1661 10.2352C21.8326 9.85722 22.4321 9.47698 23.0673 9.16608H23.0718ZM22.5953 38.8451C22.45 38.7713 22.3426 38.7198 22.2375 38.6595C18.8041 36.68 15.3752 34.687 11.9307 32.7232C10.9644 32.173 10.5238 31.3879 10.5349 30.2852C10.5551 27.9411 10.5484 25.597 10.5372 23.2507C10.5327 22.1927 10.9622 21.4255 11.8926 20.8977C14.3105 19.5221 16.715 18.1264 19.1195 16.7284C19.3275 16.6076 19.4796 16.5875 19.6965 16.7172C20.5264 17.216 21.3719 17.6924 22.2554 18.2024C22.0876 18.3031 21.9601 18.3791 21.8304 18.4552C19.2268 19.9582 16.6278 21.4658 14.0175 22.9599C13.5903 23.2037 13.3912 23.5213 13.3957 24.0179C13.4091 25.8654 13.4114 27.713 13.3957 29.5605C13.3912 30.0705 13.5948 30.3948 14.0332 30.6453C16.7866 32.2199 19.5288 33.8125 22.28 35.3916C22.5126 35.5258 22.611 35.6645 22.6065 35.9418C22.5864 36.888 22.5998 37.8363 22.5998 38.8473L22.5953 38.8451ZM22.5953 33.553C22.356 33.4166 22.1838 33.3204 22.0116 33.2198C19.8285 31.9605 17.6477 30.6967 15.4602 29.4464C15.2231 29.3122 15.1359 29.1668 15.1381 28.8917C15.1538 27.4714 15.1471 26.0511 15.1426 24.6308C15.1426 24.4384 15.1717 24.3064 15.3618 24.1991C16.167 23.7495 16.9633 23.2798 17.7618 22.8212C17.8199 22.7877 17.8826 22.7631 17.9877 22.7116V24.3064C17.9877 25.1698 18.0011 26.0354 17.9832 26.8988C17.972 27.3909 18.1622 27.7241 18.5916 27.9657C19.8285 28.6636 21.0498 29.3883 22.2867 30.0839C22.5305 30.2203 22.6043 30.3724 22.5998 30.6408C22.5842 31.5847 22.5931 32.5308 22.5931 33.5508L22.5953 33.553ZM20.0746 14.91C19.6116 14.6371 19.2157 14.6393 18.7527 14.91C16.1581 16.4265 13.5523 17.9228 10.9487 19.4259C10.8391 19.4908 10.7251 19.5489 10.5305 19.6541C10.5998 18.6654 10.3873 17.7327 10.7251 16.8291C10.9085 16.3348 11.2529 15.9635 11.7092 15.6995C13.8811 14.4447 16.0507 13.1877 18.227 11.9396C19.0211 11.4833 19.8308 11.4945 20.6248 11.953C23.0964 13.3756 25.5657 14.8026 28.0306 16.2341C28.1357 16.2945 28.2677 16.4309 28.2677 16.5338C28.2856 17.5493 28.2788 18.567 28.2788 19.6563C27.3819 19.1396 26.5543 18.6609 25.7267 18.1823C23.8412 17.093 21.9512 16.0149 20.0746 14.91ZM37.4427 30.8779C37.3778 31.6764 36.9103 32.2423 36.2192 32.6404C33.5732 34.1614 30.9294 35.6913 28.2856 37.2168C27.4557 37.6954 26.6259 38.1741 25.7938 38.6527C25.6932 38.7109 25.5903 38.7601 25.4539 38.8317C25.4449 38.693 25.4337 38.5924 25.4337 38.4917C25.4337 37.6149 25.4382 36.7404 25.4293 35.8636C25.4293 35.6645 25.4762 35.5437 25.6596 35.4386C29.5157 33.2198 33.3696 30.9942 37.2212 28.7709C37.2794 28.7374 37.3443 28.7105 37.4539 28.6591C37.4539 29.4375 37.4986 30.1622 37.4427 30.8779ZM37.4628 25.3577C37.4561 26.2658 36.9663 26.9033 36.1901 27.3506C33.175 29.0841 30.1622 30.8265 27.1493 32.5666C26.5991 32.8842 26.0466 33.1996 25.4561 33.5396C25.4472 33.3897 25.436 33.2913 25.436 33.1907C25.436 32.3273 25.4449 31.4617 25.4293 30.5983C25.4248 30.3523 25.5075 30.2226 25.72 30.0995C28.46 28.5271 31.1911 26.9368 33.9355 25.3733C34.4231 25.096 34.6378 24.7538 34.6334 24.1812C34.6132 21.1974 34.6244 18.2136 34.6244 15.2298V14.7087C35.3402 15.1404 36.0112 15.496 36.624 15.9299C37.1832 16.3258 37.465 16.9253 37.4673 17.6164C37.4762 20.1976 37.4829 22.7788 37.465 25.3599L37.4628 25.3577Z" fill="%230D0D0D"></path><path fill-rule="evenodd" d="M24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0ZM24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2Z" fill="url(%23paint2_radial_6324_83922)"></path><path fill-rule="evenodd" d="M24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0ZM24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2Z" fill="url(%23paint3_radial_6324_83922)"></path><defs><radialGradient id="paint0_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(13.4442 13.3899) rotate(44.9817) scale(46.7487 99.1435)"><stop stop-color="%23A3EEF8"></stop><stop offset="0.177083" stop-color="%23A4DCF5"></stop><stop offset="0.380208" stop-color="%23A6AEEC"></stop><stop offset="1" stop-color="%23ECBEE1"></stop></radialGradient><radialGradient id="paint1_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(25.9515 43.7068) rotate(84.265) scale(24.2138 46.3215)"><stop stop-color="%23FCF5EE"></stop><stop offset="0.715135" stop-color="%23ECBEE1" stop-opacity="0"></stop></radialGradient><radialGradient id="paint2_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(12.7405 12.6825) rotate(44.9817) scale(49.8653 105.753)"><stop stop-color="%23A3EEF8"></stop><stop offset="0.177083" stop-color="%23A4DCF5"></stop><stop offset="0.380208" stop-color="%23A6AEEC"></stop><stop offset="1" stop-color="%23ECBEE1"></stop></radialGradient><radialGradient id="paint3_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(26.0816 45.0206) rotate(84.265) scale(25.828 49.4096)"><stop stop-color="%23FCF5EE"></stop><stop offset="0.715135" stop-color="%23ECBEE1" stop-opacity="0"></stop></radialGradient></defs></g></svg>',
26637
+ name: 'Immutable Passport',
26638
+ rdns: 'com.immutable.passport',
26639
+ uuid: v4(),
26640
+ };
26641
+ function announceProvider(detail) {
26642
+ if (!window)
26643
+ return () => { };
26644
+ const event = new CustomEvent('eip6963:announceProvider', { detail: Object.freeze(detail) });
26645
+ window.dispatchEvent(event);
26646
+ const handler = () => window.dispatchEvent(event);
26647
+ window.addEventListener('eip6963:requestProvider', handler);
26648
+ return () => window.removeEventListener('eip6963:requestProvider', handler);
26649
+ }
26650
+
26633
26651
  const buildImxClientConfig = (passportModuleConfiguration) => {
26634
26652
  if (passportModuleConfiguration.overrides) {
26635
26653
  return createConfig$1({ basePath: passportModuleConfiguration.overrides.imxPublicApiDomain });
@@ -26715,8 +26733,10 @@ class Passport {
26715
26733
  async connectImx() {
26716
26734
  return this.passportImxProviderFactory.getProvider();
26717
26735
  }
26718
- connectEvm() {
26719
- return new ZkEvmProvider({
26736
+ connectEvm(options = {
26737
+ announceProvider: true,
26738
+ }) {
26739
+ const provider = new ZkEvmProvider({
26720
26740
  passportEventEmitter: this.passportEventEmitter,
26721
26741
  authManager: this.authManager,
26722
26742
  magicAdapter: this.magicAdapter,
@@ -26724,6 +26744,13 @@ class Passport {
26724
26744
  multiRollupApiClients: this.multiRollupApiClients,
26725
26745
  guardianClient: this.guardianClient,
26726
26746
  });
26747
+ if (options?.announceProvider) {
26748
+ announceProvider({
26749
+ info: passportProviderInfo,
26750
+ provider,
26751
+ });
26752
+ }
26753
+ return provider;
26727
26754
  }
26728
26755
  /**
26729
26756
  *
@@ -45654,7 +45681,7 @@ const flattenProperties = (properties) => {
45654
45681
  };
45655
45682
 
45656
45683
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45657
- const SDK_VERSION = '1.26.1';
45684
+ const SDK_VERSION = '1.26.2-alpha.1';
45658
45685
  const getReferrer = () => {
45659
45686
  if (isNode()) {
45660
45687
  return '';
@@ -50849,7 +50876,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50849
50876
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
50850
50877
  };
50851
50878
 
50852
- const SDK_VERSION_MARKER = '1.26.1';
50879
+ const SDK_VERSION_MARKER = '1.26.2-alpha.1';
50853
50880
  // This SDK version is replaced by the `yarn build` command ran on the root level
50854
50881
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50855
50882
 
@@ -54395,7 +54422,7 @@ class FiatRampService {
54395
54422
  return config[OnRampProvider.TRANSAK]?.fees;
54396
54423
  }
54397
54424
  async createWidgetUrl(params) {
54398
- return await this.getTransakWidgetUrl(params);
54425
+ return (await this.getTransakWidgetUrl(params));
54399
54426
  }
54400
54427
  async getTransakWidgetUrl(params) {
54401
54428
  const onRampConfig = (await this.config.remote.getConfig('onramp'));
@@ -54409,6 +54436,8 @@ class FiatRampService {
54409
54436
  productsAvailed: 'buy',
54410
54437
  exchangeScreenTitle: 'Buy',
54411
54438
  themeColor: '0D0D0D',
54439
+ defaultFiatCurrency: 'usd',
54440
+ defaultFiatAmount: '50',
54412
54441
  defaultCryptoCurrency: params.tokenSymbol || 'IMX',
54413
54442
  };
54414
54443
  if (params.isPassport && params.email) {
@@ -54419,9 +54448,6 @@ class FiatRampService {
54419
54448
  disableWalletAddressForm: true,
54420
54449
  };
54421
54450
  }
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
54425
54451
  if (params.tokenAmount && params.tokenSymbol) {
54426
54452
  widgetParams = {
54427
54453
  ...widgetParams,
@@ -54429,13 +54455,6 @@ class FiatRampService {
54429
54455
  cryptoCurrencyCode: params.tokenSymbol,
54430
54456
  };
54431
54457
  }
54432
- else {
54433
- widgetParams = {
54434
- ...widgetParams,
54435
- defaultFiatAmount: 50,
54436
- defaultFiatCurrency: 'usd',
54437
- };
54438
- }
54439
54458
  if (params.walletAddress) {
54440
54459
  widgetParams = {
54441
54460
  ...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.26.1';
135
+ const SDK_VERSION = '1.26.2-alpha.1';
136
136
  const getReferrer = () => {
137
137
  if (isNode()) {
138
138
  return '';
@@ -13625,7 +13625,9 @@ declare class Passport {
13625
13625
  */
13626
13626
  connectImxSilent(): Promise<IMXProvider | null>;
13627
13627
  connectImx(): Promise<IMXProvider>;
13628
- connectEvm(): Provider;
13628
+ connectEvm(options?: {
13629
+ announceProvider: boolean;
13630
+ }): Provider;
13629
13631
  /**
13630
13632
  *
13631
13633
  * Initiates the authorisation flow.
package/dist/passport.js CHANGED
@@ -21,6 +21,7 @@ import { StaticJsonRpcProvider, Web3Provider } from '@ethersproject/providers';
21
21
  import { EventEmitter } from 'events';
22
22
  import { walletContracts } from '@0xsequence/abi';
23
23
  import { v1 } from '@0xsequence/core';
24
+ import { v4 } from 'uuid';
24
25
 
25
26
  /* tslint:disable */
26
27
  /* eslint-disable */
@@ -11446,7 +11447,7 @@ class MultiRollupApiClients {
11446
11447
  }
11447
11448
 
11448
11449
  // eslint-disable-next-line @typescript-eslint/naming-convention
11449
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1' };
11450
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.1' };
11450
11451
  const createConfig$1 = ({ basePath, headers, }) => {
11451
11452
  if (!basePath.trim()) {
11452
11453
  throw Error('basePath can not be empty');
@@ -11625,7 +11626,7 @@ const flattenProperties = (properties) => {
11625
11626
  };
11626
11627
 
11627
11628
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11628
- const SDK_VERSION = '1.26.1';
11629
+ const SDK_VERSION = '1.26.2-alpha.1';
11629
11630
  const getReferrer = () => {
11630
11631
  if (isNode()) {
11631
11632
  return '';
@@ -11875,7 +11876,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
11875
11876
  /* eslint-disable @typescript-eslint/naming-convention */
11876
11877
  class ApiConfiguration extends index$2.Configuration {
11877
11878
  }
11878
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.1' };
11879
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.1' };
11879
11880
  /**
11880
11881
  * @dev use createImmutableXConfiguration instead
11881
11882
  */
@@ -11914,7 +11915,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11914
11915
  chainID,
11915
11916
  coreContractAddress,
11916
11917
  registrationContractAddress,
11917
- sdkVersion: 'ts-immutable-sdk-1.26.1',
11918
+ sdkVersion: 'ts-immutable-sdk-1.26.2-alpha.1',
11918
11919
  baseConfig,
11919
11920
  });
11920
11921
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -21813,6 +21814,23 @@ class ZkEvmProvider {
21813
21814
  }
21814
21815
  }
21815
21816
 
21817
+ const passportProviderInfo = {
21818
+ // eslint-disable-next-line max-len
21819
+ icon: 'data:image/svg+xml,<svg viewBox="0 0 48 48" class="SvgIcon undefined Logo Logo--PassportSymbolOutlined css-1dn9atd" xmlns="http://www.w3.org/2000/svg"><g data-testid="undefined__g"><circle cx="24" cy="24" r="22.5" fill="url(%23paint0_radial_6324_83922)"></circle><circle cx="24" cy="24" r="22.5" fill="url(%23paint1_radial_6324_83922)"></circle><path d="M24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0ZM23.0718 9.16608C23.7383 8.83951 24.4406 8.86188 25.087 9.2287C27.3282 10.5059 29.5627 11.7942 31.786 13.096C32.5018 13.5165 32.8686 14.1897 32.8708 15.0173C32.8843 17.9184 32.8798 20.8171 32.8708 23.7182C32.8708 23.8255 32.8015 23.9821 32.7143 24.0335C31.8531 24.548 30.9808 25.0423 30.0347 25.5881V25.1318C30.0347 22.148 30.0257 19.1664 30.0414 16.1827C30.0436 15.6101 29.8468 15.241 29.339 14.9525C26.7377 13.474 24.1499 11.9687 21.5575 10.4723C21.4457 10.4075 21.3361 10.3381 21.1661 10.2352C21.8326 9.85722 22.4321 9.47698 23.0673 9.16608H23.0718ZM22.5953 38.8451C22.45 38.7713 22.3426 38.7198 22.2375 38.6595C18.8041 36.68 15.3752 34.687 11.9307 32.7232C10.9644 32.173 10.5238 31.3879 10.5349 30.2852C10.5551 27.9411 10.5484 25.597 10.5372 23.2507C10.5327 22.1927 10.9622 21.4255 11.8926 20.8977C14.3105 19.5221 16.715 18.1264 19.1195 16.7284C19.3275 16.6076 19.4796 16.5875 19.6965 16.7172C20.5264 17.216 21.3719 17.6924 22.2554 18.2024C22.0876 18.3031 21.9601 18.3791 21.8304 18.4552C19.2268 19.9582 16.6278 21.4658 14.0175 22.9599C13.5903 23.2037 13.3912 23.5213 13.3957 24.0179C13.4091 25.8654 13.4114 27.713 13.3957 29.5605C13.3912 30.0705 13.5948 30.3948 14.0332 30.6453C16.7866 32.2199 19.5288 33.8125 22.28 35.3916C22.5126 35.5258 22.611 35.6645 22.6065 35.9418C22.5864 36.888 22.5998 37.8363 22.5998 38.8473L22.5953 38.8451ZM22.5953 33.553C22.356 33.4166 22.1838 33.3204 22.0116 33.2198C19.8285 31.9605 17.6477 30.6967 15.4602 29.4464C15.2231 29.3122 15.1359 29.1668 15.1381 28.8917C15.1538 27.4714 15.1471 26.0511 15.1426 24.6308C15.1426 24.4384 15.1717 24.3064 15.3618 24.1991C16.167 23.7495 16.9633 23.2798 17.7618 22.8212C17.8199 22.7877 17.8826 22.7631 17.9877 22.7116V24.3064C17.9877 25.1698 18.0011 26.0354 17.9832 26.8988C17.972 27.3909 18.1622 27.7241 18.5916 27.9657C19.8285 28.6636 21.0498 29.3883 22.2867 30.0839C22.5305 30.2203 22.6043 30.3724 22.5998 30.6408C22.5842 31.5847 22.5931 32.5308 22.5931 33.5508L22.5953 33.553ZM20.0746 14.91C19.6116 14.6371 19.2157 14.6393 18.7527 14.91C16.1581 16.4265 13.5523 17.9228 10.9487 19.4259C10.8391 19.4908 10.7251 19.5489 10.5305 19.6541C10.5998 18.6654 10.3873 17.7327 10.7251 16.8291C10.9085 16.3348 11.2529 15.9635 11.7092 15.6995C13.8811 14.4447 16.0507 13.1877 18.227 11.9396C19.0211 11.4833 19.8308 11.4945 20.6248 11.953C23.0964 13.3756 25.5657 14.8026 28.0306 16.2341C28.1357 16.2945 28.2677 16.4309 28.2677 16.5338C28.2856 17.5493 28.2788 18.567 28.2788 19.6563C27.3819 19.1396 26.5543 18.6609 25.7267 18.1823C23.8412 17.093 21.9512 16.0149 20.0746 14.91ZM37.4427 30.8779C37.3778 31.6764 36.9103 32.2423 36.2192 32.6404C33.5732 34.1614 30.9294 35.6913 28.2856 37.2168C27.4557 37.6954 26.6259 38.1741 25.7938 38.6527C25.6932 38.7109 25.5903 38.7601 25.4539 38.8317C25.4449 38.693 25.4337 38.5924 25.4337 38.4917C25.4337 37.6149 25.4382 36.7404 25.4293 35.8636C25.4293 35.6645 25.4762 35.5437 25.6596 35.4386C29.5157 33.2198 33.3696 30.9942 37.2212 28.7709C37.2794 28.7374 37.3443 28.7105 37.4539 28.6591C37.4539 29.4375 37.4986 30.1622 37.4427 30.8779ZM37.4628 25.3577C37.4561 26.2658 36.9663 26.9033 36.1901 27.3506C33.175 29.0841 30.1622 30.8265 27.1493 32.5666C26.5991 32.8842 26.0466 33.1996 25.4561 33.5396C25.4472 33.3897 25.436 33.2913 25.436 33.1907C25.436 32.3273 25.4449 31.4617 25.4293 30.5983C25.4248 30.3523 25.5075 30.2226 25.72 30.0995C28.46 28.5271 31.1911 26.9368 33.9355 25.3733C34.4231 25.096 34.6378 24.7538 34.6334 24.1812C34.6132 21.1974 34.6244 18.2136 34.6244 15.2298V14.7087C35.3402 15.1404 36.0112 15.496 36.624 15.9299C37.1832 16.3258 37.465 16.9253 37.4673 17.6164C37.4762 20.1976 37.4829 22.7788 37.465 25.3599L37.4628 25.3577Z" fill="%230D0D0D"></path><path fill-rule="evenodd" d="M24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0ZM24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2Z" fill="url(%23paint2_radial_6324_83922)"></path><path fill-rule="evenodd" d="M24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0ZM24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2Z" fill="url(%23paint3_radial_6324_83922)"></path><defs><radialGradient id="paint0_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(13.4442 13.3899) rotate(44.9817) scale(46.7487 99.1435)"><stop stop-color="%23A3EEF8"></stop><stop offset="0.177083" stop-color="%23A4DCF5"></stop><stop offset="0.380208" stop-color="%23A6AEEC"></stop><stop offset="1" stop-color="%23ECBEE1"></stop></radialGradient><radialGradient id="paint1_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(25.9515 43.7068) rotate(84.265) scale(24.2138 46.3215)"><stop stop-color="%23FCF5EE"></stop><stop offset="0.715135" stop-color="%23ECBEE1" stop-opacity="0"></stop></radialGradient><radialGradient id="paint2_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(12.7405 12.6825) rotate(44.9817) scale(49.8653 105.753)"><stop stop-color="%23A3EEF8"></stop><stop offset="0.177083" stop-color="%23A4DCF5"></stop><stop offset="0.380208" stop-color="%23A6AEEC"></stop><stop offset="1" stop-color="%23ECBEE1"></stop></radialGradient><radialGradient id="paint3_radial_6324_83922" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(26.0816 45.0206) rotate(84.265) scale(25.828 49.4096)"><stop stop-color="%23FCF5EE"></stop><stop offset="0.715135" stop-color="%23ECBEE1" stop-opacity="0"></stop></radialGradient></defs></g></svg>',
21820
+ name: 'Immutable Passport',
21821
+ rdns: 'com.immutable.passport',
21822
+ uuid: v4(),
21823
+ };
21824
+ function announceProvider(detail) {
21825
+ if (!window)
21826
+ return () => { };
21827
+ const event = new CustomEvent('eip6963:announceProvider', { detail: Object.freeze(detail) });
21828
+ window.dispatchEvent(event);
21829
+ const handler = () => window.dispatchEvent(event);
21830
+ window.addEventListener('eip6963:requestProvider', handler);
21831
+ return () => window.removeEventListener('eip6963:requestProvider', handler);
21832
+ }
21833
+
21816
21834
  const buildImxClientConfig = (passportModuleConfiguration) => {
21817
21835
  if (passportModuleConfiguration.overrides) {
21818
21836
  return createConfig$1({ basePath: passportModuleConfiguration.overrides.imxPublicApiDomain });
@@ -21898,8 +21916,10 @@ class Passport {
21898
21916
  async connectImx() {
21899
21917
  return this.passportImxProviderFactory.getProvider();
21900
21918
  }
21901
- connectEvm() {
21902
- return new ZkEvmProvider({
21919
+ connectEvm(options = {
21920
+ announceProvider: true,
21921
+ }) {
21922
+ const provider = new ZkEvmProvider({
21903
21923
  passportEventEmitter: this.passportEventEmitter,
21904
21924
  authManager: this.authManager,
21905
21925
  magicAdapter: this.magicAdapter,
@@ -21907,6 +21927,13 @@ class Passport {
21907
21927
  multiRollupApiClients: this.multiRollupApiClients,
21908
21928
  guardianClient: this.guardianClient,
21909
21929
  });
21930
+ if (options?.announceProvider) {
21931
+ announceProvider({
21932
+ info: passportProviderInfo,
21933
+ provider,
21934
+ });
21935
+ }
21936
+ return provider;
21910
21937
  }
21911
21938
  /**
21912
21939
  *
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.26.1';
8957
+ const SDK_VERSION = '1.26.2-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.26.1' };
9200
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-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.26.1',
9239
+ sdkVersion: 'ts-immutable-sdk-1.26.2-alpha.1',
9240
9240
  baseConfig,
9241
9241
  });
9242
9242
  const production = ({ baseConfig }) => createImmutableXConfiguration({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "1.26.1",
4
+ "version": "1.26.2-alpha.1",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
@@ -50,7 +50,8 @@
50
50
  "react-i18next": "^13.5.0",
51
51
  "stream-browserify": "^3.0.0",
52
52
  "stream-http": "^3.2.0",
53
- "url": "^0.11.0"
53
+ "url": "^0.11.0",
54
+ "uuid": "^8.3.2"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@babel/core": "^7.21.0",