@imtbl/sdk 1.78.2 → 1.78.3

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
@@ -217,7 +217,7 @@ const flattenProperties$1 = (properties) => {
217
217
  };
218
218
 
219
219
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
220
- const SDK_VERSION$1 = '1.78.2';
220
+ const SDK_VERSION$1 = '1.78.3';
221
221
  const getFrameParentDomain$1 = () => {
222
222
  if (isNode$1()) {
223
223
  return '';
@@ -15003,7 +15003,7 @@ class MultiRollupApiClients {
15003
15003
  }
15004
15004
 
15005
15005
  // eslint-disable-next-line @typescript-eslint/naming-convention
15006
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.78.2' };
15006
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.78.3' };
15007
15007
  const createConfig$1 = ({ basePath, headers, }) => {
15008
15008
  if (!basePath.trim()) {
15009
15009
  throw Error('basePath can not be empty');
@@ -15075,7 +15075,7 @@ class APIError extends Error {
15075
15075
 
15076
15076
  /* eslint-disable implicit-arrow-linebreak */
15077
15077
  const defaultHeaders$1 = {
15078
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.78.2',
15078
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.78.3',
15079
15079
  };
15080
15080
  /**
15081
15081
  * createAPIConfiguration to create a custom Configuration
@@ -15665,7 +15665,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
15665
15665
  /* eslint-disable @typescript-eslint/naming-convention */
15666
15666
  class ApiConfiguration extends index$2.Configuration {
15667
15667
  }
15668
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.78.2' };
15668
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.78.3' };
15669
15669
  /**
15670
15670
  * @dev use createImmutableXConfiguration instead
15671
15671
  */
@@ -15706,7 +15706,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
15706
15706
  coreContractAddress,
15707
15707
  registrationContractAddress,
15708
15708
  registrationV4ContractAddress,
15709
- sdkVersion: 'ts-immutable-sdk-1.78.2',
15709
+ sdkVersion: 'ts-immutable-sdk-1.78.3',
15710
15710
  baseConfig,
15711
15711
  });
15712
15712
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -25422,9 +25422,11 @@ const withMetricsAsync = async (fn, flowName, trackStartEvent = true, trackEndEv
25422
25422
  const MAINNET = 'mainnet';
25423
25423
  class MagicAdapter {
25424
25424
  config;
25425
+ magicProviderProxyFactory;
25425
25426
  lazyMagicClient;
25426
- constructor(config) {
25427
+ constructor(config, magicProviderProxyFactory) {
25427
25428
  this.config = config;
25429
+ this.magicProviderProxyFactory = magicProviderProxyFactory;
25428
25430
  if (typeof window !== 'undefined') {
25429
25431
  this.lazyMagicClient = lazyDocumentReady(() => {
25430
25432
  const client = new magicSdk.Magic(this.config.magicPublishableApiKey, {
@@ -25452,7 +25454,7 @@ class MagicAdapter {
25452
25454
  });
25453
25455
  flow.addEvent('endLoginWithOIDC');
25454
25456
  trackDuration('passport', flow.details.flowName, Math.round(performance.now() - startTime));
25455
- return magicClient.rpcProvider;
25457
+ return this.magicProviderProxyFactory.createProxy(magicClient);
25456
25458
  }, 'magicLogin')), PassportErrorType.WALLET_CONNECTION_ERROR);
25457
25459
  }
25458
25460
  async logout() {
@@ -28027,6 +28029,63 @@ function announceProvider(detail) {
28027
28029
  window.addEventListener('eip6963:requestProvider', handler);
28028
28030
  }
28029
28031
 
28032
+ const shouldCheckMagicSession = (args) => (args?.length > 0
28033
+ && typeof args[0] === 'object'
28034
+ && 'method' in args[0]
28035
+ && typeof args[0].method === 'string'
28036
+ && ['personal_sign', 'eth_accounts'].includes(args[0].method));
28037
+ /**
28038
+ * Factory class for creating a Magic provider that automatically handles re-authentication.
28039
+ * This proxy wraps the Magic RPC provider to intercept certain RPC methods (`personal_sign`, `eth_accounts`)
28040
+ * and ensures the user is properly authenticated before executing them.
28041
+ */
28042
+ class MagicProviderProxyFactory {
28043
+ authManager;
28044
+ config;
28045
+ constructor(authManager, config) {
28046
+ this.authManager = authManager;
28047
+ this.config = config;
28048
+ }
28049
+ createProxy(magicClient) {
28050
+ const magicRpcProvider = magicClient.rpcProvider;
28051
+ const proxyHandler = {
28052
+ get: (target, property, receiver) => {
28053
+ if (property === 'request') {
28054
+ return async (...args) => {
28055
+ try {
28056
+ if (shouldCheckMagicSession(args)) {
28057
+ const isUserLoggedIn = await magicClient.user.isLoggedIn();
28058
+ if (!isUserLoggedIn) {
28059
+ const user = await this.authManager.getUser();
28060
+ const idToken = user?.idToken;
28061
+ if (!idToken) {
28062
+ throw new Error('failed to obtain ID token');
28063
+ }
28064
+ await magicClient.openid.loginWithOIDC({
28065
+ jwt: idToken,
28066
+ providerId: this.config.magicProviderId,
28067
+ });
28068
+ }
28069
+ }
28070
+ // @ts-ignore - Invoke the request method with the provided arguments
28071
+ return target.request(...args);
28072
+ }
28073
+ catch (error) {
28074
+ if (error instanceof Error) {
28075
+ throw new Error(`ProviderProxy: ${error.message}`);
28076
+ }
28077
+ throw new Error(`ProviderProxy: ${error}`);
28078
+ }
28079
+ };
28080
+ }
28081
+ // Return the property from the target
28082
+ return Reflect.get(target, property, receiver);
28083
+ },
28084
+ };
28085
+ return new Proxy(magicRpcProvider, proxyHandler);
28086
+ }
28087
+ }
28088
+
28030
28089
  const buildImxClientConfig = (passportModuleConfiguration) => {
28031
28090
  if (passportModuleConfiguration.overrides) {
28032
28091
  return createConfig$1({ basePath: passportModuleConfiguration.overrides.imxPublicApiDomain });
@@ -28045,7 +28104,8 @@ const buildImxApiClients = (passportModuleConfiguration) => {
28045
28104
  const buildPrivateVars = (passportModuleConfiguration) => {
28046
28105
  const config = new PassportConfiguration(passportModuleConfiguration);
28047
28106
  const authManager = new AuthManager(config);
28048
- const magicAdapter = new MagicAdapter(config);
28107
+ const magicProviderProxyFactory = new MagicProviderProxyFactory(authManager, config);
28108
+ const magicAdapter = new MagicAdapter(config, magicProviderProxyFactory);
28049
28109
  const confirmationScreen = new ConfirmationScreen(config);
28050
28110
  const multiRollupApiClients = new MultiRollupApiClients(config.multiRollupConfig);
28051
28111
  const passportEventEmitter = new TypedEventEmitter();
@@ -50539,7 +50599,7 @@ const flattenProperties = (properties) => {
50539
50599
  };
50540
50600
 
50541
50601
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
50542
- const SDK_VERSION = '1.78.2';
50602
+ const SDK_VERSION = '1.78.3';
50543
50603
  const getFrameParentDomain = () => {
50544
50604
  if (isNode()) {
50545
50605
  return '';
@@ -55660,7 +55720,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
55660
55720
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
55661
55721
  };
55662
55722
 
55663
- const SDK_VERSION_MARKER = '1.78.2';
55723
+ const SDK_VERSION_MARKER = '1.78.3';
55664
55724
  // This SDK version is replaced by the `yarn build` command ran on the root level
55665
55725
  const globalPackageVersion = () => SDK_VERSION_MARKER;
55666
55726
 
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- export { c as config } from './config-AmjUeqX0.js';
2
- export { b as blockchainData } from './blockchain_data-DXU4U01i.js';
3
- export { p as passport } from './passport-CxcuwLFF.js';
4
- export { o as orderbook } from './orderbook-730LCA9X.js';
5
- export { c as checkout } from './checkout-BcLZx2nl.js';
6
- export { x } from './x-Ca_Tzy97.js';
7
- export { w as webhook } from './webhook-DGMGtPc_.js';
8
- export { m as mintingBackend } from './minting_backend-Bfjb4y_D.js';
9
- import './index-DONwAU5q.js';
1
+ export { c as config } from './config-DRAyKVu-.js';
2
+ export { b as blockchainData } from './blockchain_data-DZwc2fu2.js';
3
+ export { p as passport } from './passport-KAsDtSFi.js';
4
+ export { o as orderbook } from './orderbook-DeNPn-Ds.js';
5
+ export { c as checkout } from './checkout-D85H2UOr.js';
6
+ export { x } from './x-DYmEE5xd.js';
7
+ export { w as webhook } from './webhook-BMfjDENm.js';
8
+ export { m as mintingBackend } from './minting_backend-DeDeOgv8.js';
9
+ import './index-CCDv6Cyl.js';
10
10
  import 'axios';
11
11
  import 'lru-memorise';
12
12
  import 'global-const';
13
- import './index-Bgucm0s0.js';
14
- import './index-B7K98OVK.js';
15
- import './index-UkqN57JB.js';
13
+ import './index-BNliR-wj.js';
14
+ import './index-DcwsoYMg.js';
15
+ import './index-CylHn7jn.js';
16
16
  import '@ethersproject/keccak256';
17
17
  import '@ethersproject/strings';
18
18
  import 'bn.js';
@@ -35,7 +35,7 @@ import 'events';
35
35
  import '@0xsequence/abi';
36
36
  import '@0xsequence/core';
37
37
  import 'uuid';
38
- import './index-DW7yzuKO.js';
38
+ import './index-0O2fcy0v.js';
39
39
  import 'form-data';
40
40
  import 'ethers-v6';
41
41
  import 'merkletreejs';
@@ -48,5 +48,5 @@ import '@metamask/detect-provider';
48
48
  import 'semver';
49
49
  import '@ethersproject/units';
50
50
  import '@ethersproject/bignumber';
51
- import './index-CT3wTyhk.js';
51
+ import './index-CyF8Dbrm.js';
52
52
  import 'sns-validator';
@@ -1,6 +1,6 @@
1
- import { B as BlockchainData } from './index-Bgucm0s0.js';
2
- import { h as handle } from './index-CT3wTyhk.js';
3
- import { t as track, e as setEnvironment, f as setPublishableApiKey } from './index-DONwAU5q.js';
1
+ import { B as BlockchainData } from './index-BNliR-wj.js';
2
+ import { h as handle } from './index-CyF8Dbrm.js';
3
+ import { t as track, e as setEnvironment, f as setPublishableApiKey } from './index-CCDv6Cyl.js';
4
4
 
5
5
  const moduleName = 'minting_backend_sdk';
6
6
  const trackInitializePersistencePG = () => {
@@ -1,9 +1,9 @@
1
- export { M as MintingBackendModule, a as mintingPersistencePg, b as mintingPersistencePrismaSqlite, p as processMint, r as recordMint, s as submitMintingRequests } from './minting_backend-Bfjb4y_D.js';
2
- import './index-Bgucm0s0.js';
3
- import './index-B7K98OVK.js';
1
+ export { M as MintingBackendModule, a as mintingPersistencePg, b as mintingPersistencePrismaSqlite, p as processMint, r as recordMint, s as submitMintingRequests } from './minting_backend-DeDeOgv8.js';
2
+ import './index-BNliR-wj.js';
3
+ import './index-DcwsoYMg.js';
4
4
  import 'axios';
5
- import './index-DONwAU5q.js';
5
+ import './index-CCDv6Cyl.js';
6
6
  import 'lru-memorise';
7
7
  import 'global-const';
8
- import './index-CT3wTyhk.js';
8
+ import './index-CyF8Dbrm.js';
9
9
  import 'sns-validator';
@@ -1,4 +1,4 @@
1
- import { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-DW7yzuKO.js';
1
+ import { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-0O2fcy0v.js';
2
2
 
3
3
  var orderbook = /*#__PURE__*/Object.freeze({
4
4
  __proto__: null,
package/dist/orderbook.js CHANGED
@@ -1,5 +1,5 @@
1
- export { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-DW7yzuKO.js';
2
- import './index-DONwAU5q.js';
1
+ export { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-0O2fcy0v.js';
2
+ import './index-CCDv6Cyl.js';
3
3
  import 'axios';
4
4
  import 'lru-memorise';
5
5
  import 'global-const';
@@ -1,7 +1,7 @@
1
1
  import globalAxios, { isAxiosError } from 'axios';
2
- import { M as MultiRollupApiClients, c as createConfig, m as multiRollupConfig, a as index$1, I as ImxApiClients, b as imxApiConfig } from './index-B7K98OVK.js';
3
- import { I as IMXClient, s as signRaw, c as convertToSignableToken, g as generateLegacyStarkPrivateKey, a as createStarkSigner } from './index-UkqN57JB.js';
4
- import { s as setPassportClientId, t as track, b as trackFlow, c as trackError, u as utils, i as identify, g as getDetail, D as Detail, d as trackDuration, E as Environment } from './index-DONwAU5q.js';
2
+ import { M as MultiRollupApiClients, c as createConfig, m as multiRollupConfig, a as index$1, I as ImxApiClients, b as imxApiConfig } from './index-DcwsoYMg.js';
3
+ import { I as IMXClient, s as signRaw, c as convertToSignableToken, g as generateLegacyStarkPrivateKey, a as createStarkSigner } from './index-CylHn7jn.js';
4
+ import { s as setPassportClientId, t as track, b as trackFlow, c as trackError, u as utils, i as identify, g as getDetail, D as Detail, d as trackDuration, E as Environment } from './index-CCDv6Cyl.js';
5
5
  import { UserManager, User, ErrorTimeout, ErrorResponse, InMemoryWebStorage, WebStorageStateStore } from 'oidc-client-ts';
6
6
  import * as crypto from 'crypto';
7
7
  import jwt_decode from 'jwt-decode';
@@ -1111,9 +1111,11 @@ const withMetricsAsync = async (fn, flowName, trackStartEvent = true, trackEndEv
1111
1111
  const MAINNET = 'mainnet';
1112
1112
  class MagicAdapter {
1113
1113
  config;
1114
+ magicProviderProxyFactory;
1114
1115
  lazyMagicClient;
1115
- constructor(config) {
1116
+ constructor(config, magicProviderProxyFactory) {
1116
1117
  this.config = config;
1118
+ this.magicProviderProxyFactory = magicProviderProxyFactory;
1117
1119
  if (typeof window !== 'undefined') {
1118
1120
  this.lazyMagicClient = lazyDocumentReady(() => {
1119
1121
  const client = new Magic(this.config.magicPublishableApiKey, {
@@ -1141,7 +1143,7 @@ class MagicAdapter {
1141
1143
  });
1142
1144
  flow.addEvent('endLoginWithOIDC');
1143
1145
  trackDuration('passport', flow.details.flowName, Math.round(performance.now() - startTime));
1144
- return magicClient.rpcProvider;
1146
+ return this.magicProviderProxyFactory.createProxy(magicClient);
1145
1147
  }, 'magicLogin')), PassportErrorType.WALLET_CONNECTION_ERROR);
1146
1148
  }
1147
1149
  async logout() {
@@ -3716,6 +3718,63 @@ function announceProvider(detail) {
3716
3718
  window.addEventListener('eip6963:requestProvider', handler);
3717
3719
  }
3718
3720
 
3721
+ const shouldCheckMagicSession = (args) => (args?.length > 0
3722
+ && typeof args[0] === 'object'
3723
+ && 'method' in args[0]
3724
+ && typeof args[0].method === 'string'
3725
+ && ['personal_sign', 'eth_accounts'].includes(args[0].method));
3726
+ /**
3727
+ * Factory class for creating a Magic provider that automatically handles re-authentication.
3728
+ * This proxy wraps the Magic RPC provider to intercept certain RPC methods (`personal_sign`, `eth_accounts`)
3729
+ * and ensures the user is properly authenticated before executing them.
3730
+ */
3731
+ class MagicProviderProxyFactory {
3732
+ authManager;
3733
+ config;
3734
+ constructor(authManager, config) {
3735
+ this.authManager = authManager;
3736
+ this.config = config;
3737
+ }
3738
+ createProxy(magicClient) {
3739
+ const magicRpcProvider = magicClient.rpcProvider;
3740
+ const proxyHandler = {
3741
+ get: (target, property, receiver) => {
3742
+ if (property === 'request') {
3743
+ return async (...args) => {
3744
+ try {
3745
+ if (shouldCheckMagicSession(args)) {
3746
+ const isUserLoggedIn = await magicClient.user.isLoggedIn();
3747
+ if (!isUserLoggedIn) {
3748
+ const user = await this.authManager.getUser();
3749
+ const idToken = user?.idToken;
3750
+ if (!idToken) {
3751
+ throw new Error('failed to obtain ID token');
3752
+ }
3753
+ await magicClient.openid.loginWithOIDC({
3754
+ jwt: idToken,
3755
+ providerId: this.config.magicProviderId,
3756
+ });
3757
+ }
3758
+ }
3759
+ // @ts-ignore - Invoke the request method with the provided arguments
3760
+ return target.request(...args);
3761
+ }
3762
+ catch (error) {
3763
+ if (error instanceof Error) {
3764
+ throw new Error(`ProviderProxy: ${error.message}`);
3765
+ }
3766
+ throw new Error(`ProviderProxy: ${error}`);
3767
+ }
3768
+ };
3769
+ }
3770
+ // Return the property from the target
3771
+ return Reflect.get(target, property, receiver);
3772
+ },
3773
+ };
3774
+ return new Proxy(magicRpcProvider, proxyHandler);
3775
+ }
3776
+ }
3777
+
3719
3778
  const buildImxClientConfig = (passportModuleConfiguration) => {
3720
3779
  if (passportModuleConfiguration.overrides) {
3721
3780
  return createConfig({ basePath: passportModuleConfiguration.overrides.imxPublicApiDomain });
@@ -3734,7 +3793,8 @@ const buildImxApiClients = (passportModuleConfiguration) => {
3734
3793
  const buildPrivateVars = (passportModuleConfiguration) => {
3735
3794
  const config = new PassportConfiguration(passportModuleConfiguration);
3736
3795
  const authManager = new AuthManager(config);
3737
- const magicAdapter = new MagicAdapter(config);
3796
+ const magicProviderProxyFactory = new MagicProviderProxyFactory(authManager, config);
3797
+ const magicAdapter = new MagicAdapter(config, magicProviderProxyFactory);
3738
3798
  const confirmationScreen = new ConfirmationScreen(config);
3739
3799
  const multiRollupApiClients = new MultiRollupApiClients(config.multiRollupConfig);
3740
3800
  const passportEventEmitter = new TypedEventEmitter();
package/dist/passport.js CHANGED
@@ -1,8 +1,8 @@
1
- export { J as JsonRpcError, P as Passport, a as PassportError, b as ProviderErrorCode, c as ProviderEvent, R as RpcErrorCode } from './passport-CxcuwLFF.js';
1
+ export { J as JsonRpcError, P as Passport, a as PassportError, b as ProviderErrorCode, c as ProviderEvent, R as RpcErrorCode } from './passport-KAsDtSFi.js';
2
2
  import 'axios';
3
- import './index-B7K98OVK.js';
4
- import './index-UkqN57JB.js';
5
- import './index-DONwAU5q.js';
3
+ import './index-DcwsoYMg.js';
4
+ import './index-CylHn7jn.js';
5
+ import './index-CCDv6Cyl.js';
6
6
  import 'lru-memorise';
7
7
  import 'global-const';
8
8
  import '@ethersproject/keccak256';
package/dist/version.json CHANGED
@@ -1 +1 @@
1
- { "version": "1.78.2" }
1
+ { "version": "1.78.3" }
@@ -1,4 +1,4 @@
1
- import { h as handle } from './index-CT3wTyhk.js';
1
+ import { h as handle } from './index-CyF8Dbrm.js';
2
2
 
3
3
  var webhook = /*#__PURE__*/Object.freeze({
4
4
  __proto__: null,
package/dist/webhook.js CHANGED
@@ -1,6 +1,6 @@
1
- export { h as handle } from './index-CT3wTyhk.js';
1
+ export { h as handle } from './index-CyF8Dbrm.js';
2
2
  import 'sns-validator';
3
- import './index-DONwAU5q.js';
3
+ import './index-CCDv6Cyl.js';
4
4
  import 'axios';
5
5
  import 'lru-memorise';
6
6
  import 'global-const';
@@ -1,12 +1,12 @@
1
- import { b as ImxConfiguration, c as convertToSignableToken, s as signRaw, e as exportContracts, d as signMessage, E as EncodingApi, M as MintsApi, f as signRegisterEthAddress, A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, D as DepositsApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, v as production, w as sandbox, x as serializePackedSignature, y as starkEcOrder } from './index-UkqN57JB.js';
2
- import { d as index$2 } from './index-B7K98OVK.js';
1
+ import { b as ImxConfiguration, c as convertToSignableToken, s as signRaw, e as exportContracts, d as signMessage, E as EncodingApi, M as MintsApi, f as signRegisterEthAddress, A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, D as DepositsApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, v as production, w as sandbox, x as serializePackedSignature, y as starkEcOrder } from './index-CylHn7jn.js';
2
+ import { d as index$2 } from './index-DcwsoYMg.js';
3
3
  import { isAxiosError } from 'axios';
4
4
  import * as encUtils from 'enc-utils';
5
5
  import { parseUnits } from '@ethersproject/units';
6
6
  import { BigNumber } from '@ethersproject/bignumber';
7
7
  import { ethers } from 'ethers';
8
8
  import detectEthereumProvider from '@metamask/detect-provider';
9
- import { E as Environment, I as ImmutableConfiguration } from './index-DONwAU5q.js';
9
+ import { E as Environment, I as ImmutableConfiguration } from './index-CCDv6Cyl.js';
10
10
  import { Signer } from '@ethersproject/abstract-signer';
11
11
 
12
12
  function isChainValid(chainID, config) {
package/dist/x.js CHANGED
@@ -1,8 +1,8 @@
1
- export { A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, e as Contracts, D as DepositsApi, E as EncodingApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, b as ImxConfiguration, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, M as MintsApi, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, a as imxClientCreateStarkSigner, g as imxClientGenerateLegacyStarkPrivateKey, v as production, w as sandbox, x as serializePackedSignature, f as signRegisterEthAddress, y as starkEcOrder } from './index-UkqN57JB.js';
2
- export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-Ca_Tzy97.js';
3
- export { E as Environment, I as ImmutableConfiguration } from './index-DONwAU5q.js';
1
+ export { A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, e as Contracts, D as DepositsApi, E as EncodingApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, b as ImxConfiguration, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, M as MintsApi, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, a as imxClientCreateStarkSigner, g as imxClientGenerateLegacyStarkPrivateKey, v as production, w as sandbox, x as serializePackedSignature, f as signRegisterEthAddress, y as starkEcOrder } from './index-CylHn7jn.js';
2
+ export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-DYmEE5xd.js';
3
+ export { E as Environment, I as ImmutableConfiguration } from './index-CCDv6Cyl.js';
4
4
  export { Signer as EthSigner } from '@ethersproject/abstract-signer';
5
- import './index-B7K98OVK.js';
5
+ import './index-DcwsoYMg.js';
6
6
  import 'axios';
7
7
  import '@ethersproject/keccak256';
8
8
  import '@ethersproject/strings';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Typescript SDK",
4
- "version": "1.78.2",
4
+ "version": "1.78.3",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",