@imtbl/sdk 1.51.2 → 1.51.3-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.
Files changed (54) hide show
  1. package/dist/{blockchain_data-BXc2pT0f.js → blockchain_data-2DcNo2y5.js} +2 -2
  2. package/dist/blockchain_data.js +3 -3
  3. package/dist/browser/checkout/{AddFundsWidget-gUJVDYv_.js → AddFundsWidget-B6lxg3-d.js} +2 -2
  4. package/dist/browser/checkout/{BridgeWidget-3UbIwU6n.js → BridgeWidget-BsJMfbMd.js} +5 -5
  5. package/dist/browser/checkout/{CheckoutWidget-C4tOrk2y.js → CheckoutWidget-DFkDATHf.js} +36 -18
  6. package/dist/browser/checkout/{OnRampWidget-DqPejNhx.js → OnRampWidget-QHUxzsNL.js} +3 -3
  7. package/dist/browser/checkout/{SaleWidget-rgseW9MM.js → SaleWidget-6XVHHx78.js} +9 -9
  8. package/dist/browser/checkout/{SpendingCapHero-DAidHDcm.js → SpendingCapHero-BOGiq2Br.js} +1 -1
  9. package/dist/browser/checkout/{SwapWidget-DzyLBVHX.js → SwapWidget-CRLt7sOf.js} +6 -6
  10. package/dist/browser/checkout/{TextInputForm-BEa_pzDA.js → TextInputForm-DTMMP9L1.js} +1 -1
  11. package/dist/browser/checkout/{TopUpView-EQSatEo0.js → TopUpView-CMKjjqCh.js} +1 -1
  12. package/dist/browser/checkout/{WalletWidget-BiYTgNC6.js → WalletWidget-CL4wDvCI.js} +3 -3
  13. package/dist/browser/checkout/{auto-track-BHfKaUsi.js → auto-track-CtPV_Uwy.js} +1 -1
  14. package/dist/browser/checkout/{balance-BcyJcnyd.js → balance-6n0VLt18.js} +2 -2
  15. package/dist/browser/checkout/{index-CaE5DRoW.js → index-C4G5HCXv.js} +1 -1
  16. package/dist/browser/checkout/{index-w6D6lSI5.js → index-CW0LGbJg.js} +1 -1
  17. package/dist/browser/checkout/{index-BycofDTk.js → index-CjshWKlm.js} +23 -23
  18. package/dist/browser/checkout/{index-BK2rKCsb.js → index-D0vPA5zH.js} +1 -1
  19. package/dist/browser/checkout/{index-DvkRiiMH.js → index-DEnK71D8.js} +2 -2
  20. package/dist/browser/checkout/{index-BjZmc98C.js → index-DJD5AByC.js} +1 -1
  21. package/dist/browser/checkout/{index-BfgGTx6o.js → index-DNulskt6.js} +1 -1
  22. package/dist/browser/checkout/{index-DqvoKQhG.js → index-U6OI_-oo.js} +1 -1
  23. package/dist/browser/checkout/{index.umd-DsaaRFps.js → index.umd-CfvJk2bO.js} +1 -1
  24. package/dist/browser/checkout/{retry-JTDsH41g.js → retry-CVrWwmTg.js} +1 -1
  25. package/dist/browser/checkout/sdk.js +4 -4
  26. package/dist/browser/checkout/widgets-esm.js +1 -1
  27. package/dist/browser/checkout/widgets.js +39 -21
  28. package/dist/{checkout-C-9cJevS.js → checkout-BLd1hYpc.js} +11 -5
  29. package/dist/checkout.d.ts +6 -0
  30. package/dist/checkout.js +5 -5
  31. package/dist/{config-Bigxrl15.js → config-vZT3HTsY.js} +1 -1
  32. package/dist/config.js +1 -1
  33. package/dist/{index-C9ouUZ56.js → index--9knUR2X.js} +1 -1
  34. package/dist/{index-Bsq7qQUh.js → index-BabAcsIh.js} +1 -1
  35. package/dist/{index-Ca9_tRKa.js → index-BaiNQ_ac.js} +4 -4
  36. package/dist/{index-Drimuu53.js → index-CAPYTUos.js} +1 -1
  37. package/dist/{index-CXBbqZZE.js → index-Dm2RvRVy.js} +1 -1
  38. package/dist/{index-DKJEKIyJ.js → index-z0WncQ2k.js} +3 -3
  39. package/dist/index.browser.js +5 -5
  40. package/dist/index.browser.js.map +1 -1
  41. package/dist/index.cjs +48 -17
  42. package/dist/index.d.ts +6 -0
  43. package/dist/index.js +14 -14
  44. package/dist/{minting_backend-C9a24z4a.js → minting_backend-CzZ-jcZl.js} +3 -3
  45. package/dist/minting_backend.js +5 -5
  46. package/dist/{orderbook-COKz-AFm.js → orderbook-BD0Jx9aq.js} +1 -1
  47. package/dist/orderbook.js +2 -2
  48. package/dist/{passport-BN89YTHh.js → passport-CR2LMlk5.js} +38 -13
  49. package/dist/passport.js +4 -4
  50. package/dist/{webhook-C09Blfff.js → webhook-Dpzvc0oK.js} +1 -1
  51. package/dist/webhook.js +2 -2
  52. package/dist/{x-ME92JJO2.js → x-XOP6aYHy.js} +3 -3
  53. package/dist/x.js +4 -4
  54. package/package.json +1 -1
@@ -1 +1 @@
1
- export { dj as WidgetsFactory } from './index-BycofDTk.js';
1
+ export { dk as WidgetsFactory } from './index-CjshWKlm.js';
@@ -177445,7 +177445,7 @@
177445
177445
  body1: "サポートが必要ですか?",
177446
177446
  body2: " お問い合わせは ",
177447
177447
  body3: "サポートへ",
177448
- supportLink: "https://support.immutable.com/hc/en-us",
177448
+ supportLink: "https://support.immutable.com/hc",
177449
177449
  passport: {
177450
177450
  body1: "または、完了した取引をご覧になるには ",
177451
177451
  body2: "パスポート"
@@ -178232,7 +178232,7 @@
178232
178232
  body1: "도움이 필요하신가요?",
178233
178233
  body2: " 문의하기 ",
178234
178234
  body3: "지원팀",
178235
- supportLink: "https://support.immutable.com/hc/en-us",
178235
+ supportLink: "https://support.immutable.com/hc",
178236
178236
  passport: {
178237
178237
  body1: "또는 귀하의 ",
178238
178238
  body2: "패스포트"
@@ -179019,7 +179019,7 @@
179019
179019
  body1: "需要帮助吗?",
179020
179020
  body2: " 联系 ",
179021
179021
  body3: "支持",
179022
- supportLink: "https://support.immutable.com/hc/en-us",
179022
+ supportLink: "https://support.immutable.com/hc",
179023
179023
  passport: {
179024
179024
  body1: "或在您的 ",
179025
179025
  body2: "护照"
@@ -179894,7 +179894,7 @@
179894
179894
  if (typeof errorEventAction === 'function')
179895
179895
  errorEventAction();
179896
179896
  const onErrorActionClick = () => typeof onActionClick === 'function' && onActionClick();
179897
- return (jsx$1(SimpleLayout, { header: (jsx$1(HeaderNavigation, { transparent: true, onCloseButtonClick: onCloseClick })), footer: (jsx$1(FooterButton, { loading: errorEventActionLoading, actionText: actionText, onActionClick: onErrorActionClick })), heroContent: jsx$1(SatelliteHero, {}), floatHeader: true, testId: "error-view", children: jsxs(SimpleTextBody, { heading: t('views.ERROR_VIEW.heading'), children: [t('views.ERROR_VIEW.body', { returnObjects: true })[0], ' ', jsx$1(Link, { size: "small", rc: jsx$1("a", { href: "https://support.immutable.com/hc/en-us" }), children: t('views.ERROR_VIEW.body', { returnObjects: true })[1] }), ' ', t('views.ERROR_VIEW.body', { returnObjects: true })[2]] }) }));
179897
+ return (jsx$1(SimpleLayout, { header: (jsx$1(HeaderNavigation, { transparent: true, onCloseButtonClick: onCloseClick })), footer: (jsx$1(FooterButton, { loading: errorEventActionLoading, actionText: actionText, onActionClick: onErrorActionClick })), heroContent: jsx$1(SatelliteHero, {}), floatHeader: true, testId: "error-view", children: jsxs(SimpleTextBody, { heading: t('views.ERROR_VIEW.heading'), children: [t('views.ERROR_VIEW.body', { returnObjects: true })[0], ' ', jsx$1(Link, { size: "small", rc: jsx$1("a", { href: "https://support.immutable.com/hc" }), children: t('views.ERROR_VIEW.body', { returnObjects: true })[1] }), ' ', t('views.ERROR_VIEW.body', { returnObjects: true })[2]] }) }));
179898
179898
  }
179899
179899
 
179900
179900
  var ConnectionStatus;
@@ -215627,6 +215627,9 @@ function print() { __p += __j.call(arguments, '') }
215627
215627
  } }))] }));
215628
215628
  }
215629
215629
 
215630
+ /**
215631
+ * Converts a record of parameters to a query string.
215632
+ */
215630
215633
  const toQueryString = (params) => {
215631
215634
  const sanitizedParams = Object.entries(params)
215632
215635
  .filter(([, value]) => value !== undefined)
@@ -215639,17 +215642,22 @@ function print() { __p += __j.call(arguments, '') }
215639
215642
  .map(([key, value]) => [key, value]);
215640
215643
  return new URLSearchParams(sanitizedParams).toString();
215641
215644
  };
215642
- // TODO: Can be removed after updating params across widgets
215643
- const getIframeParams = (params, config) => {
215645
+ /**
215646
+ * Maps the flow configuration and params to the corresponding query parameters.
215647
+ */
215648
+ const getIframeParams = (params, widgetConfig, checkoutConfig) => {
215644
215649
  const { flow } = params;
215645
215650
  const commonConfig = {
215646
- theme: config.theme,
215651
+ theme: widgetConfig.theme,
215652
+ language: widgetConfig.language,
215653
+ publishableKey: checkoutConfig.publishableKey,
215654
+ sdkVersion: checkoutConfig.sdkVersion,
215647
215655
  };
215648
215656
  switch (flow) {
215649
215657
  case CheckoutFlowType.CONNECT:
215650
215658
  return toQueryString({
215651
215659
  ...commonConfig,
215652
- ...(config.connect || {}),
215660
+ ...(widgetConfig.connect || {}),
215653
215661
  chainId: params.targetChainId,
215654
215662
  walletRdns: params.targetWalletRdns,
215655
215663
  blocklistWalletRdns: params.blocklistWalletRdns,
@@ -215657,7 +215665,7 @@ function print() { __p += __j.call(arguments, '') }
215657
215665
  case CheckoutFlowType.WALLET:
215658
215666
  return toQueryString({
215659
215667
  ...commonConfig,
215660
- ...(config.wallet || {}),
215668
+ ...(widgetConfig.wallet || {}),
215661
215669
  // FIMXE: Add connection params
215662
215670
  // chainId:
215663
215671
  // walletRdns:
@@ -215668,7 +215676,7 @@ function print() { __p += __j.call(arguments, '') }
215668
215676
  case CheckoutFlowType.SWAP:
215669
215677
  return toQueryString({
215670
215678
  ...commonConfig,
215671
- ...(config.swap || {}),
215679
+ ...(widgetConfig.swap || {}),
215672
215680
  // FIMXE: Add connection params
215673
215681
  // chainId:
215674
215682
  // walletRdns:
@@ -215682,7 +215690,7 @@ function print() { __p += __j.call(arguments, '') }
215682
215690
  case CheckoutFlowType.BRIDGE:
215683
215691
  return toQueryString({
215684
215692
  ...commonConfig,
215685
- ...(config.bridge || {}),
215693
+ ...(widgetConfig.bridge || {}),
215686
215694
  // FIMXE: Add bridge params
215687
215695
  // fromChainId:
215688
215696
  // toChainId:
@@ -215696,7 +215704,7 @@ function print() { __p += __j.call(arguments, '') }
215696
215704
  case CheckoutFlowType.ONRAMP:
215697
215705
  return toQueryString({
215698
215706
  ...commonConfig,
215699
- ...(config.onRamp || {}),
215707
+ ...(widgetConfig.onRamp || {}),
215700
215708
  // FIMXE: Add connection params
215701
215709
  // chainId:
215702
215710
  // walletRdns:
@@ -215709,7 +215717,7 @@ function print() { __p += __j.call(arguments, '') }
215709
215717
  case CheckoutFlowType.SALE:
215710
215718
  return toQueryString({
215711
215719
  ...commonConfig,
215712
- ...(config.sale || {}),
215720
+ ...(widgetConfig.sale || {}),
215713
215721
  // FIMXE: Add connection params
215714
215722
  // chainId:
215715
215723
  // walletRdns:
@@ -215728,23 +215736,33 @@ function print() { __p += __j.call(arguments, '') }
215728
215736
  return '';
215729
215737
  }
215730
215738
  };
215731
- const getIframeURL = (params, config, environment, publishableKey) => {
215739
+ /**
215740
+ * Returns the iframe URL for the Checkout App based on the environment.
215741
+ */
215742
+ const getIframeURL = (params, widgetConfig, checkoutConfig) => {
215732
215743
  const { flow } = params;
215733
- const language = params.language || config.language;
215734
- const baseURL = CHECKOUT_APP_URL[environment];
215735
- const queryParams = getIframeParams(params, config);
215744
+ const { publishableKey } = checkoutConfig;
215745
+ const language = params.language || widgetConfig.language;
215746
+ let environment = checkoutConfig.environment || Environment$1.SANDBOX;
215747
+ if (checkoutConfig.isDevelopment) {
215748
+ environment = ENV_DEVELOPMENT;
215749
+ }
215750
+ if (checkoutConfig.overrides?.environment) {
215751
+ environment = checkoutConfig.overrides.environment;
215752
+ }
215753
+ const baseURL = checkoutConfig.overrides?.checkoutAppUrl ?? CHECKOUT_APP_URL[environment];
215754
+ const queryParams = getIframeParams(params, widgetConfig, checkoutConfig);
215736
215755
  const iframeURL = `${baseURL}/${publishableKey}/${language}/${flow}?${queryParams}`;
215737
215756
  return [baseURL, iframeURL];
215738
215757
  };
215739
215758
 
215740
215759
  function CheckoutWidget(props) {
215741
215760
  const { config, checkout, params, provider, } = props;
215742
- const { environment, publishableKey } = checkout.config;
215743
215761
  const [, iframeURL] = reactExports.useMemo(() => {
215744
- if (!publishableKey)
215762
+ if (!checkout.config.publishableKey)
215745
215763
  return ['', ''];
215746
- return getIframeURL(params, config, environment, publishableKey);
215747
- }, [params, config, environment, publishableKey]);
215764
+ return getIframeURL(params, config, checkout.config);
215765
+ }, [params, config, checkout.config]);
215748
215766
  const [checkoutState, checkoutDispatch] = reactExports.useReducer(checkoutReducer, initialCheckoutState);
215749
215767
  const checkoutReducerValues = reactExports.useMemo(() => ({
215750
215768
  checkoutState: {
@@ -1,4 +1,4 @@
1
- import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-CXBbqZZE.js';
1
+ import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-Dm2RvRVy.js';
2
2
  import { ethers, BigNumber as BigNumber$1, ContractFactory, utils as utils$2, Contract as Contract$1 } from 'ethers';
3
3
  import globalAxios, { HttpStatusCode as HttpStatusCode$1 } from 'axios';
4
4
  import { Web3Provider, JsonRpcProvider } from '@ethersproject/providers';
@@ -9,8 +9,8 @@ import assert from 'assert';
9
9
  import { FeeAmount, Route, SwapQuoter, Pool, Trade, toHex as toHex$1, encodeRouteToPath } from '@uniswap/v3-sdk';
10
10
  import { keccak256 as keccak256$1 } from '@ethersproject/solidity';
11
11
  import { SwapRouter, PaymentsExtended } from '@uniswap/router-sdk';
12
- import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-Drimuu53.js';
13
- import { B as BlockchainData } from './index-DKJEKIyJ.js';
12
+ import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-CAPYTUos.js';
13
+ import { B as BlockchainData } from './index-z0WncQ2k.js';
14
14
 
15
15
  function bind(fn, thisArg) {
16
16
  return function wrap() {
@@ -19206,7 +19206,7 @@ const flattenProperties = (properties) => {
19206
19206
  };
19207
19207
 
19208
19208
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
19209
- const SDK_VERSION = '1.51.2';
19209
+ const SDK_VERSION = '1.51.3-alpha.1';
19210
19210
  const getFrameParentDomain = () => {
19211
19211
  if (isNode()) {
19212
19212
  return '';
@@ -24600,7 +24600,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
24600
24600
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
24601
24601
  };
24602
24602
 
24603
- const SDK_VERSION_MARKER = '1.51.2';
24603
+ const SDK_VERSION_MARKER = '1.51.3-alpha.1';
24604
24604
  // This SDK version is replaced by the `yarn build` command ran on the root level
24605
24605
  const globalPackageVersion = () => SDK_VERSION_MARKER;
24606
24606
 
@@ -24826,6 +24826,7 @@ class CheckoutConfiguration {
24826
24826
  environment;
24827
24827
  networkMap;
24828
24828
  publishableKey;
24829
+ overrides;
24829
24830
  constructor(config, httpClient) {
24830
24831
  if (!Object.values(Environment$1).includes(config.baseConfig.environment)) {
24831
24832
  throw new CheckoutConfigurationError('Invalid checkout configuration of environment');
@@ -24846,6 +24847,11 @@ class CheckoutConfiguration {
24846
24847
  isDevelopment: this.isDevelopment,
24847
24848
  isProduction: this.isProduction,
24848
24849
  });
24850
+ this.overrides = config.overrides ?? {};
24851
+ }
24852
+ // eslint-disable-next-line class-methods-use-this
24853
+ get sdkVersion() {
24854
+ return globalPackageVersion();
24849
24855
  }
24850
24856
  }
24851
24857
 
@@ -15142,6 +15142,8 @@ type ExchangeOverrides = {
15142
15142
  };
15143
15143
 
15144
15144
  interface CheckoutOverrides {
15145
+ environment?: Environment;
15146
+ [key: string]: unknown;
15145
15147
  }
15146
15148
  interface CheckoutFeatureConfiguration {
15147
15149
  enable: boolean;
@@ -15178,6 +15180,8 @@ interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverri
15178
15180
  bridge?: CheckoutBridgeConfiguration;
15179
15181
  passport?: Passport;
15180
15182
  publishableKey?: string;
15183
+ environment?: Environment;
15184
+ overrides?: CheckoutOverrides;
15181
15185
  }
15182
15186
  /**
15183
15187
  * A type representing various remotely defined configurations which are
@@ -15855,7 +15859,9 @@ declare class CheckoutConfiguration {
15855
15859
  readonly environment: Environment;
15856
15860
  readonly networkMap: NetworkMap;
15857
15861
  readonly publishableKey: string;
15862
+ readonly overrides: CheckoutModuleConfiguration['overrides'];
15858
15863
  constructor(config: CheckoutModuleConfiguration, httpClient: HttpClient);
15864
+ get sdkVersion(): string;
15859
15865
  }
15860
15866
 
15861
15867
  interface FiatRampWidgetParams {
package/dist/checkout.js CHANGED
@@ -1,5 +1,5 @@
1
- export { A as AddFundsEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutErrorType, h as CheckoutEventType, i as CheckoutFailureEventType, j as CheckoutFlowType, k as CheckoutStatus, l as CheckoutSuccessEventType, m as CheckoutUserActionEventType, n as ConnectEventType, o as ConnectTargetLayer, E as ExchangeType, F as FeeType, p as FundingStepType, G as GasEstimateType, q as GasTokenType, I as IMMUTABLE_API_BASE_URL, r as IMTBLWidgetEvents, s as ItemType, N as NetworkFilterTypes, O as OnRampEventType, t as OrchestrationEventType, P as PostMessageHandler, u as PostMessageHandlerEventType, v as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, w as SalePaymentTypes, x as SwapDirection, y as SwapEventType, T as TokenFilterTypes, z as TransactionOrGasType, W as WalletEventType, D as WalletFilterTypes, H as WalletProviderName, J as WalletProviderRdns, K as WidgetTheme, L as WidgetType, M as getMetaMaskProviderDetail, Q as getPassportProviderDetail, U as isAddressSanctioned, V as validateProvider } from './checkout-C-9cJevS.js';
2
- import './index-CXBbqZZE.js';
1
+ export { A as AddFundsEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutErrorType, h as CheckoutEventType, i as CheckoutFailureEventType, j as CheckoutFlowType, k as CheckoutStatus, l as CheckoutSuccessEventType, m as CheckoutUserActionEventType, n as ConnectEventType, o as ConnectTargetLayer, E as ExchangeType, F as FeeType, p as FundingStepType, G as GasEstimateType, q as GasTokenType, I as IMMUTABLE_API_BASE_URL, r as IMTBLWidgetEvents, s as ItemType, N as NetworkFilterTypes, O as OnRampEventType, t as OrchestrationEventType, P as PostMessageHandler, u as PostMessageHandlerEventType, v as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, w as SalePaymentTypes, x as SwapDirection, y as SwapEventType, T as TokenFilterTypes, z as TransactionOrGasType, W as WalletEventType, D as WalletFilterTypes, H as WalletProviderName, J as WalletProviderRdns, K as WidgetTheme, L as WidgetType, M as getMetaMaskProviderDetail, Q as getPassportProviderDetail, U as isAddressSanctioned, V as validateProvider } from './checkout-BLd1hYpc.js';
2
+ import './index-Dm2RvRVy.js';
3
3
  import 'axios';
4
4
  import 'lru-memorise';
5
5
  import 'global-const';
@@ -11,10 +11,10 @@ import 'assert';
11
11
  import '@uniswap/v3-sdk';
12
12
  import '@ethersproject/solidity';
13
13
  import '@uniswap/router-sdk';
14
- import './index-Drimuu53.js';
14
+ import './index-CAPYTUos.js';
15
15
  import 'form-data';
16
16
  import 'ethers-v6';
17
17
  import 'merkletreejs';
18
18
  import '@opensea/seaport-js';
19
- import './index-DKJEKIyJ.js';
20
- import './index-C9ouUZ56.js';
19
+ import './index-z0WncQ2k.js';
20
+ import './index--9knUR2X.js';
@@ -1,4 +1,4 @@
1
- import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-CXBbqZZE.js';
1
+ import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-Dm2RvRVy.js';
2
2
 
3
3
  var config = /*#__PURE__*/Object.freeze({
4
4
  __proto__: null,
package/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
- export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-CXBbqZZE.js';
1
+ export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-Dm2RvRVy.js';
2
2
  import 'axios';
3
3
  import 'lru-memorise';
4
4
  import 'global-const';
@@ -13838,7 +13838,7 @@ class MultiRollupApiClients {
13838
13838
  }
13839
13839
 
13840
13840
  // eslint-disable-next-line @typescript-eslint/naming-convention
13841
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.51.2' };
13841
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.51.3-alpha.1' };
13842
13842
  const createConfig = ({ basePath, headers, }) => {
13843
13843
  if (!basePath.trim()) {
13844
13844
  throw Error('basePath can not be empty');
@@ -1,5 +1,5 @@
1
1
  import MessageValidator from 'sns-validator';
2
- import { E as Environment } from './index-CXBbqZZE.js';
2
+ import { E as Environment } from './index-Dm2RvRVy.js';
3
3
 
4
4
  const validator = new MessageValidator();
5
5
  const allowedTopicArnPrefix = {
@@ -1,5 +1,5 @@
1
- import { b as index$2, I as ImxApiClients } from './index-C9ouUZ56.js';
2
- import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-CXBbqZZE.js';
1
+ import { b as index$2, I as ImxApiClients } from './index--9knUR2X.js';
2
+ import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-Dm2RvRVy.js';
3
3
  import globalAxios from 'axios';
4
4
  import { keccak256 } from '@ethersproject/keccak256';
5
5
  import { toUtf8Bytes } from '@ethersproject/strings';
@@ -16,7 +16,7 @@ import '@ethersproject/abstract-signer';
16
16
  /* eslint-disable @typescript-eslint/naming-convention */
17
17
  class ApiConfiguration extends index$2.Configuration {
18
18
  }
19
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.51.2' };
19
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.51.3-alpha.1' };
20
20
  /**
21
21
  * @dev use createImmutableXConfiguration instead
22
22
  */
@@ -57,7 +57,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
57
57
  coreContractAddress,
58
58
  registrationContractAddress,
59
59
  registrationV4ContractAddress,
60
- sdkVersion: 'ts-immutable-sdk-1.51.2',
60
+ sdkVersion: 'ts-immutable-sdk-1.51.3-alpha.1',
61
61
  baseConfig,
62
62
  });
63
63
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -1,4 +1,4 @@
1
- import { t as track, E as Environment } from './index-CXBbqZZE.js';
1
+ import { t as track, E as Environment } from './index-Dm2RvRVy.js';
2
2
  import globalAxios from 'axios';
3
3
  import FormData from 'form-data';
4
4
  import { providers, BigNumber, constants as constants$1 } from 'ethers';
@@ -158,7 +158,7 @@ const flattenProperties = (properties) => {
158
158
  };
159
159
 
160
160
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
161
- const SDK_VERSION = '1.51.2';
161
+ const SDK_VERSION = '1.51.3-alpha.1';
162
162
  const getFrameParentDomain = () => {
163
163
  if (isNode()) {
164
164
  return '';
@@ -1,5 +1,5 @@
1
- import { a as index$1 } from './index-C9ouUZ56.js';
2
- import { E as Environment, a as addKeysToHeadersOverride } from './index-CXBbqZZE.js';
1
+ import { a as index$1 } from './index--9knUR2X.js';
2
+ import { E as Environment, a as addKeysToHeadersOverride } from './index-Dm2RvRVy.js';
3
3
  import globalAxios from 'axios';
4
4
 
5
5
  /**
@@ -21,7 +21,7 @@ class APIError extends Error {
21
21
 
22
22
  /* eslint-disable implicit-arrow-linebreak */
23
23
  const defaultHeaders = {
24
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.51.2',
24
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.51.3-alpha.1',
25
25
  };
26
26
  /**
27
27
  * createAPIConfiguration to create a custom Configuration