@imtbl/sdk 1.78.5-alpha.1 → 1.78.5

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-DU2jApyT.js → blockchain_data-DH3YxI99.js} +2 -2
  2. package/dist/blockchain_data.js +3 -3
  3. package/dist/browser/checkout/{AddTokensWidget-C3kqVME6.js → AddTokensWidget-B9bjgGFL.js} +3 -3
  4. package/dist/browser/checkout/{BridgeWidget-ldf8GVK1.js → BridgeWidget-1JpgUJ9B.js} +6 -6
  5. package/dist/browser/checkout/{CommerceWidget-CpNuNSLZ.js → CommerceWidget-DGTwB2pR.js} +13 -13
  6. package/dist/browser/checkout/{FeesBreakdown-DRqS0j1J.js → FeesBreakdown-CSf772jM.js} +1 -1
  7. package/dist/browser/checkout/{OnRampWidget-Bo47SO1S.js → OnRampWidget-DD2u_4kS.js} +3 -3
  8. package/dist/browser/checkout/{SaleWidget-aR03gcO3.js → SaleWidget-BKXRdb-F.js} +10 -10
  9. package/dist/browser/checkout/{SpendingCapHero-Cgd0f5w2.js → SpendingCapHero-Dfpj4gVQ.js} +1 -1
  10. package/dist/browser/checkout/{SwapWidget-DWKQizGD.js → SwapWidget-CapNhDxH.js} +7 -7
  11. package/dist/browser/checkout/{TokenImage-DYu6oYEk.js → TokenImage-cuy99Q3z.js} +1 -1
  12. package/dist/browser/checkout/{TopUpView-B6LnmkMl.js → TopUpView-DSHHu1bC.js} +1 -1
  13. package/dist/browser/checkout/{WalletApproveHero-BD3u-SZe.js → WalletApproveHero-DNP71VT8.js} +3 -3
  14. package/dist/browser/checkout/{WalletWidget-CaiMctYA.js → WalletWidget-D5CQtFOw.js} +3 -3
  15. package/dist/browser/checkout/{auto-track-Xad5nNBA.js → auto-track-ZSD3meU5.js} +1 -1
  16. package/dist/browser/checkout/{index-CplOCn4t.js → index-B3PdDan9.js} +1 -1
  17. package/dist/browser/checkout/{index-CaBWYj8M.js → index-BUjxwhbn.js} +1 -1
  18. package/dist/browser/checkout/{index-jnPfRh8-.js → index-DwoF2xE9.js} +1 -1
  19. package/dist/browser/checkout/{index-BnoWrF8c.js → index-UWwEBJUL.js} +1 -1
  20. package/dist/browser/checkout/{index-BDjP2QB6.js → index-a9WCTqrO.js} +1 -1
  21. package/dist/browser/checkout/{index-B-VC8wJ2.js → index-gx60kT98.js} +1 -1
  22. package/dist/browser/checkout/{index-BowCuend.js → index-riGT8jUx.js} +2 -2
  23. package/dist/browser/checkout/{index-DfzeATeY.js → index-zhSt3pns.js} +18 -36
  24. package/dist/browser/checkout/{index.umd-Dh2fxaWi.js → index.umd-CR1xvgEn.js} +1 -1
  25. package/dist/browser/checkout/sdk.js +5 -5
  26. package/dist/browser/checkout/{useInterval-Bu667YO5.js → useInterval-0yXsNl1l.js} +1 -1
  27. package/dist/browser/checkout/widgets-esm.js +1 -1
  28. package/dist/browser/checkout/widgets.js +0 -18
  29. package/dist/{checkout-C3jvO3Xj.js → checkout-DDv7cCeh.js} +5 -23
  30. package/dist/checkout.js +5 -5
  31. package/dist/{config-DgYUcHn3.js → config-_tDl5QA7.js} +1 -1
  32. package/dist/config.js +1 -1
  33. package/dist/{index-CeTTzYWk.js → index-Bb3srLxU.js} +3 -3
  34. package/dist/{index-AGRTkJ0z.js → index-Cm-wC9qE.js} +1 -1
  35. package/dist/{index-B2cbbT7r.js → index-DQOYlVeh.js} +1 -1
  36. package/dist/{index-CUn2QOoC.js → index-DrCJYZyU.js} +4 -4
  37. package/dist/{index-uC41Uocr.js → index-DuoPXzr_.js} +1 -1
  38. package/dist/{index-CE2bUD0B.js → index-DyKio2cl.js} +1 -1
  39. package/dist/index.browser.js +4 -4
  40. package/dist/index.browser.js.map +1 -1
  41. package/dist/index.cjs +7 -25
  42. package/dist/index.js +14 -14
  43. package/dist/{minting_backend-DV4UIdAJ.js → minting_backend-DZlOizvc.js} +3 -3
  44. package/dist/minting_backend.js +5 -5
  45. package/dist/{orderbook-BpPQhPz8.js → orderbook-B1nvMYZP.js} +1 -1
  46. package/dist/orderbook.js +2 -2
  47. package/dist/{passport-Br8EKTOA.js → passport-DOihlwSE.js} +3 -3
  48. package/dist/passport.js +4 -4
  49. package/dist/version.json +1 -1
  50. package/dist/{webhook-dQfMZat1.js → webhook-C3qqSJiB.js} +1 -1
  51. package/dist/webhook.js +2 -2
  52. package/dist/{x-YhFnmZKl.js → x-nSvSG1i6.js} +3 -3
  53. package/dist/x.js +4 -4
  54. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { r as reactExports, dp as useBrowserLayoutEffect } from './index-DfzeATeY.js';
1
+ import { r as reactExports, dp as useBrowserLayoutEffect } from './index-zhSt3pns.js';
2
2
 
3
3
  // Inspired by https://usehooks-ts.com/react-hook/use-interval
4
4
  function useInterval(callback, delay) {
@@ -1 +1 @@
1
- export { dW as WidgetsFactory } from './index-DfzeATeY.js';
1
+ export { dW as WidgetsFactory } from './index-zhSt3pns.js';
@@ -60239,27 +60239,9 @@
60239
60239
  name: 'Ethereum',
60240
60240
  type: 'erc20',
60241
60241
  };
60242
- const USDC_IMMUTABLE_MAINNET = {
60243
- chainId: IMMUTABLE_MAINNET_CHAIN_ID,
60244
- address: '0x6de8aCC0D406837030CE4dd28e7c08C5a96a30d2',
60245
- decimals: 6,
60246
- symbol: 'USDC',
60247
- name: 'USDC',
60248
- type: 'erc20',
60249
- };
60250
- const USDT_IMMUTABLE_MAINNET = {
60251
- chainId: IMMUTABLE_MAINNET_CHAIN_ID,
60252
- address: '0x68bcc7F1190AF20e7b572BCfb431c3Ac10A936Ab',
60253
- decimals: 6,
60254
- symbol: 'USDT',
60255
- name: 'USDT',
60256
- type: 'erc20',
60257
- };
60258
60242
  const IMMUTABLE_MAINNET_COMMON_ROUTING_TOKENS = [
60259
60243
  WIMX_IMMUTABLE_MAINNET,
60260
60244
  ETH_IMMUTABLE_MAINNET,
60261
- USDC_IMMUTABLE_MAINNET,
60262
- USDT_IMMUTABLE_MAINNET,
60263
60245
  ];
60264
60246
 
60265
60247
  [
@@ -1,4 +1,4 @@
1
- import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-CE2bUD0B.js';
1
+ import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-DyKio2cl.js';
2
2
  import globalAxios, { HttpStatusCode as HttpStatusCode$1 } from 'axios';
3
3
  import { ethers, BigNumber as BigNumber$1, ContractFactory, utils as utils$2, Contract as Contract$1 } from 'ethers';
4
4
  import { Web3Provider, JsonRpcProvider } from '@ethersproject/providers';
@@ -8,8 +8,8 @@ import assert from 'assert';
8
8
  import { FeeAmount, Route, SwapQuoter, Pool, Trade, toHex as toHex$1, encodeRouteToPath } from '@uniswap/v3-sdk';
9
9
  import { keccak256 as keccak256$1 } from '@ethersproject/solidity';
10
10
  import { SwapRouter, PaymentsExtended } from '@uniswap/router-sdk';
11
- import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-AGRTkJ0z.js';
12
- import { B as BlockchainData } from './index-CeTTzYWk.js';
11
+ import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-Cm-wC9qE.js';
12
+ import { B as BlockchainData } from './index-Bb3srLxU.js';
13
13
  import detectEthereumProvider from '@metamask/detect-provider';
14
14
  import semver from 'semver';
15
15
 
@@ -19207,7 +19207,7 @@ const flattenProperties = (properties) => {
19207
19207
  };
19208
19208
 
19209
19209
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
19210
- const SDK_VERSION = '1.78.5-alpha.1';
19210
+ const SDK_VERSION = '1.78.5';
19211
19211
  const getFrameParentDomain = () => {
19212
19212
  if (isNode()) {
19213
19213
  return '';
@@ -19795,27 +19795,9 @@ const ETH_IMMUTABLE_MAINNET = {
19795
19795
  name: 'Ethereum',
19796
19796
  type: 'erc20',
19797
19797
  };
19798
- const USDC_IMMUTABLE_MAINNET = {
19799
- chainId: IMMUTABLE_MAINNET_CHAIN_ID,
19800
- address: '0x6de8aCC0D406837030CE4dd28e7c08C5a96a30d2',
19801
- decimals: 6,
19802
- symbol: 'USDC',
19803
- name: 'USDC',
19804
- type: 'erc20',
19805
- };
19806
- const USDT_IMMUTABLE_MAINNET = {
19807
- chainId: IMMUTABLE_MAINNET_CHAIN_ID,
19808
- address: '0x68bcc7F1190AF20e7b572BCfb431c3Ac10A936Ab',
19809
- decimals: 6,
19810
- symbol: 'USDT',
19811
- name: 'USDT',
19812
- type: 'erc20',
19813
- };
19814
19798
  const IMMUTABLE_MAINNET_COMMON_ROUTING_TOKENS = [
19815
19799
  WIMX_IMMUTABLE_MAINNET,
19816
19800
  ETH_IMMUTABLE_MAINNET,
19817
- USDC_IMMUTABLE_MAINNET,
19818
- USDT_IMMUTABLE_MAINNET,
19819
19801
  ];
19820
19802
 
19821
19803
  const getFeeData = async (provider) => {
@@ -24346,7 +24328,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
24346
24328
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
24347
24329
  };
24348
24330
 
24349
- const SDK_VERSION_MARKER = '1.78.5-alpha.1';
24331
+ const SDK_VERSION_MARKER = '1.78.5';
24350
24332
  // This SDK version is replaced by the `yarn build` command ran on the root level
24351
24333
  const globalPackageVersion = () => SDK_VERSION_MARKER;
24352
24334
 
package/dist/checkout.js CHANGED
@@ -1,5 +1,5 @@
1
- export { A as AddTokensEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutError, h as CheckoutErrorType, i as CheckoutStatus, j as CommerceEventType, k as CommerceFailureEventType, l as CommerceFlowType, m as CommerceSuccessEventType, n as CommerceUserActionEventType, o as ConnectEventType, p as ConnectTargetLayer, E as ExchangeType, F as FeeType, q as FundingStepType, G as GasEstimateType, r as GasTokenType, I as IMMUTABLE_API_BASE_URL, s as IMTBLWidgetEvents, t as ItemType, N as NetworkFilterTypes, O as OnRampEventType, u as OrchestrationEventType, P as ProviderEventType, v as PurchaseEventType, 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 fetchRiskAssessment, Q as getMetaMaskProviderDetail, U as getPassportProviderDetail, V as isAddressSanctioned, X as validateProvider } from './checkout-C3jvO3Xj.js';
2
- import './index-CE2bUD0B.js';
1
+ export { A as AddTokensEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutError, h as CheckoutErrorType, i as CheckoutStatus, j as CommerceEventType, k as CommerceFailureEventType, l as CommerceFlowType, m as CommerceSuccessEventType, n as CommerceUserActionEventType, o as ConnectEventType, p as ConnectTargetLayer, E as ExchangeType, F as FeeType, q as FundingStepType, G as GasEstimateType, r as GasTokenType, I as IMMUTABLE_API_BASE_URL, s as IMTBLWidgetEvents, t as ItemType, N as NetworkFilterTypes, O as OnRampEventType, u as OrchestrationEventType, P as ProviderEventType, v as PurchaseEventType, 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 fetchRiskAssessment, Q as getMetaMaskProviderDetail, U as getPassportProviderDetail, V as isAddressSanctioned, X as validateProvider } from './checkout-DDv7cCeh.js';
2
+ import './index-DyKio2cl.js';
3
3
  import 'axios';
4
4
  import 'lru-memorise';
5
5
  import 'global-const';
@@ -10,12 +10,12 @@ import 'assert';
10
10
  import '@uniswap/v3-sdk';
11
11
  import '@ethersproject/solidity';
12
12
  import '@uniswap/router-sdk';
13
- import './index-AGRTkJ0z.js';
13
+ import './index-Cm-wC9qE.js';
14
14
  import 'form-data';
15
15
  import 'ethers-v6';
16
16
  import 'merkletreejs';
17
17
  import '@opensea/seaport-js';
18
- import './index-CeTTzYWk.js';
19
- import './index-uC41Uocr.js';
18
+ import './index-Bb3srLxU.js';
19
+ import './index-DuoPXzr_.js';
20
20
  import '@metamask/detect-provider';
21
21
  import 'semver';
@@ -1,4 +1,4 @@
1
- import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-CE2bUD0B.js';
1
+ import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-DyKio2cl.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-CE2bUD0B.js';
1
+ export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-DyKio2cl.js';
2
2
  import 'axios';
3
3
  import 'lru-memorise';
4
4
  import 'global-const';
@@ -1,5 +1,5 @@
1
- import { a as index$1 } from './index-uC41Uocr.js';
2
- import { E as Environment, a as addKeysToHeadersOverride } from './index-CE2bUD0B.js';
1
+ import { a as index$1 } from './index-DuoPXzr_.js';
2
+ import { E as Environment, a as addKeysToHeadersOverride } from './index-DyKio2cl.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.78.5-alpha.1',
24
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.78.5',
25
25
  };
26
26
  /**
27
27
  * createAPIConfiguration to create a custom Configuration
@@ -1,4 +1,4 @@
1
- import { t as track, E as Environment } from './index-CE2bUD0B.js';
1
+ import { t as track, E as Environment } from './index-DyKio2cl.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';
@@ -1,5 +1,5 @@
1
1
  import MessageValidator from 'sns-validator';
2
- import { E as Environment } from './index-CE2bUD0B.js';
2
+ import { E as Environment } from './index-DyKio2cl.js';
3
3
 
4
4
  const validator = new MessageValidator();
5
5
  const allowedTopicArnPrefix = {
@@ -1,5 +1,5 @@
1
- import { d as index$2, I as ImxApiClients } from './index-uC41Uocr.js';
2
- import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-CE2bUD0B.js';
1
+ import { d as index$2, I as ImxApiClients } from './index-DuoPXzr_.js';
2
+ import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-DyKio2cl.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.78.5-alpha.1' };
19
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.78.5' };
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.78.5-alpha.1',
60
+ sdkVersion: 'ts-immutable-sdk-1.78.5',
61
61
  baseConfig,
62
62
  });
63
63
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -14417,7 +14417,7 @@ class MultiRollupApiClients {
14417
14417
  }
14418
14418
 
14419
14419
  // eslint-disable-next-line @typescript-eslint/naming-convention
14420
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.78.5-alpha.1' };
14420
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.78.5' };
14421
14421
  const createConfig = ({ basePath, headers, }) => {
14422
14422
  if (!basePath.trim()) {
14423
14423
  throw Error('basePath can not be empty');
@@ -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.78.5-alpha.1';
161
+ const SDK_VERSION = '1.78.5';
162
162
  const getFrameParentDomain = () => {
163
163
  if (isNode()) {
164
164
  return '';