@imtbl/sdk 1.65.0 → 1.66.0-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 (59) hide show
  1. package/dist/{blockchain_data-Dp0DKwKY.js → blockchain_data-Brp-FxdS.js} +2 -2
  2. package/dist/blockchain_data.js +3 -3
  3. package/dist/browser/checkout/{AddTokensWidget-CzLj_kbJ.js → AddTokensWidget-DdZHY_JS.js} +40 -7
  4. package/dist/browser/checkout/{BridgeWidget-BD2arVjv.js → BridgeWidget-CzoLGKzK.js} +9 -9
  5. package/dist/browser/checkout/{CommerceWidget-B0rI7mqO.js → CommerceWidget-BGemG9RB.js} +46 -17
  6. package/dist/browser/checkout/{CryptoFiatProvider-GIG1QRoo.js → CryptoFiatProvider-BwfapqZO.js} +1 -1
  7. package/dist/browser/checkout/{EllipsizedText-DbCAqh7Y.js → EllipsizedText-ngVXQGn_.js} +1 -1
  8. package/dist/browser/checkout/{FeesBreakdown-DJsus8QD.js → FeesBreakdown-BpgS4Cf3.js} +1 -1
  9. package/dist/browser/checkout/{HandoverContent-BgWR4m27.js → HandoverContent-C0qfeRAh.js} +1 -1
  10. package/dist/browser/checkout/{OnRampWidget-mDBP43Vd.js → OnRampWidget-Dx2XkuTt.js} +3 -3
  11. package/dist/browser/checkout/{SaleWidget-D9I4_Y1V.js → SaleWidget-N4DUeD2I.js} +14 -14
  12. package/dist/browser/checkout/{SpendingCapHero-aRrdLYqJ.js → SpendingCapHero-BeqEPpR_.js} +1 -1
  13. package/dist/browser/checkout/{SwapWidget-fHXX-Hf-.js → SwapWidget-DiA9c6Zu.js} +9 -9
  14. package/dist/browser/checkout/{TopUpView-BLRvkTp5.js → TopUpView-BBUB2cpE.js} +3 -3
  15. package/dist/browser/checkout/{WalletApproveHero-D7vrJyr0.js → WalletApproveHero-DiwEKXIx.js} +3 -3
  16. package/dist/browser/checkout/{WalletWidget-DiNzzHMW.js → WalletWidget-BNCipG33.js} +4 -4
  17. package/dist/browser/checkout/{auto-track-DK4gsk5m.js → auto-track-CwlqwwA6.js} +1 -1
  18. package/dist/browser/checkout/{index-Cbyd34U6.js → index-BdohR2SR.js} +1 -1
  19. package/dist/browser/checkout/{index-DHBxX6fE.js → index-DS1USgQr.js} +2 -2
  20. package/dist/browser/checkout/{index-D1QHaKvq.js → index-DVVgTW38.js} +20 -19
  21. package/dist/browser/checkout/{index-DNtUrKbu.js → index-HL3njUMr.js} +1 -1
  22. package/dist/browser/checkout/{index-N6bH7obe.js → index-PJGxH105.js} +1 -1
  23. package/dist/browser/checkout/{index-CkkTi5Rn.js → index-R3d13MqX.js} +1 -1
  24. package/dist/browser/checkout/{index-BbANArQU.js → index-Ze29sipG.js} +1 -1
  25. package/dist/browser/checkout/{index-BQ0p7X6B.js → index-bA3tzuB3.js} +1 -1
  26. package/dist/browser/checkout/{index-Ct1L-gy-.js → index-lFfbeyAV.js} +1 -1
  27. package/dist/browser/checkout/{index.umd-CM-rtgTq.js → index.umd-_yYKRbcT.js} +1 -1
  28. package/dist/browser/checkout/{retry-ByGtTHBD.js → retry-aLeSin3J.js} +1 -1
  29. package/dist/browser/checkout/sdk.js +5 -5
  30. package/dist/browser/checkout/{useInterval-y1UbVfF8.js → useInterval-D0l_aPl9.js} +1 -1
  31. package/dist/browser/checkout/widgets-esm.js +1 -1
  32. package/dist/browser/checkout/widgets.js +859 -851
  33. package/dist/{checkout-BFPBookq.js → checkout-CrFSqC7Y.js} +6 -5
  34. package/dist/checkout.d.ts +5 -4
  35. package/dist/checkout.js +5 -5
  36. package/dist/{config-V18XBR3x.js → config-CYUs8cqo.js} +1 -1
  37. package/dist/config.js +1 -1
  38. package/dist/{index-ChXdl1w-.js → index-BvmrvK8C.js} +3 -3
  39. package/dist/{index-gXJeNIGk.js → index-CdLWafTP.js} +1 -1
  40. package/dist/{index-Bp8cN2wo.js → index-D-ppDfn2.js} +1 -1
  41. package/dist/{index-CTcEmIj1.js → index-DNRqkG3I.js} +4 -4
  42. package/dist/{index-CP3zHUjx.js → index-euVQudoW.js} +1 -1
  43. package/dist/{index-C80azzXH.js → index-mOuZ0Bp_.js} +1 -1
  44. package/dist/index.browser.js +4 -4
  45. package/dist/index.browser.js.map +1 -1
  46. package/dist/index.cjs +8 -7
  47. package/dist/index.d.ts +5 -4
  48. package/dist/index.js +14 -14
  49. package/dist/{minting_backend-BRZXKNZH.js → minting_backend-BRq8f9--.js} +3 -3
  50. package/dist/minting_backend.js +5 -5
  51. package/dist/{orderbook-DV4Fw1tL.js → orderbook-Bnkp84hd.js} +1 -1
  52. package/dist/orderbook.js +2 -2
  53. package/dist/{passport-DDebGWwi.js → passport-CufbEMfF.js} +3 -3
  54. package/dist/passport.js +4 -4
  55. package/dist/{webhook-B4jwsgjm.js → webhook-Cjadp-of.js} +1 -1
  56. package/dist/webhook.js +2 -2
  57. package/dist/{x-DmIbrceD.js → x-owSy5f2h.js} +3 -3
  58. package/dist/x.js +4 -4
  59. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-Bp8cN2wo.js';
1
+ import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-D-ppDfn2.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-CP3zHUjx.js';
12
- import { B as BlockchainData } from './index-ChXdl1w-.js';
11
+ import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-euVQudoW.js';
12
+ import { B as BlockchainData } from './index-BvmrvK8C.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.65.0';
19210
+ const SDK_VERSION = '1.66.0-alpha.1';
19211
19211
  const getFrameParentDomain = () => {
19212
19212
  if (isNode()) {
19213
19213
  return '';
@@ -23604,6 +23604,7 @@ var CommerceSuccessEventType;
23604
23604
  CommerceSuccessEventType["BRIDGE_SUCCESS"] = "BRIDGE_SUCCESS";
23605
23605
  CommerceSuccessEventType["BRIDGE_CLAIM_WITHDRAWAL_SUCCESS"] = "BRIDGE_CLAIM_WITHDRAWAL_SUCCESS";
23606
23606
  CommerceSuccessEventType["ADD_TOKENS_SUCCESS"] = "ADD_TOKENS_SUCCESS";
23607
+ CommerceSuccessEventType["ADD_TOKENS_CONNECT_SUCCESS"] = "ADD_TOKENS_CONNECT_SUCCESS";
23607
23608
  })(CommerceSuccessEventType || (CommerceSuccessEventType = {}));
23608
23609
  var CommerceFailureEventType;
23609
23610
  (function (CommerceFailureEventType) {
@@ -24315,7 +24316,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
24315
24316
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
24316
24317
  };
24317
24318
 
24318
- const SDK_VERSION_MARKER = '1.65.0';
24319
+ const SDK_VERSION_MARKER = '1.66.0-alpha.1';
24319
24320
  // This SDK version is replaced by the `yarn build` command ran on the root level
24320
24321
  const globalPackageVersion = () => SDK_VERSION_MARKER;
24321
24322
 
@@ -13984,7 +13984,7 @@ type AddTokensSuccess = {
13984
13984
  transactionHash: string;
13985
13985
  };
13986
13986
  /**
13987
- * Type representing a add tokens failure
13987
+ * Type representing add tokens failure
13988
13988
  * @property {string} reason
13989
13989
  * @property {number} timestamp
13990
13990
  */
@@ -13995,7 +13995,7 @@ type AddTokensFailed = {
13995
13995
  timestamp: number;
13996
13996
  };
13997
13997
  /**
13998
- * Type representing a successfull provider connection
13998
+ * Type representing a successful provider connection
13999
13999
  * @property {Web3Provider} provider
14000
14000
  * @property {EIP6963ProviderInfo} providerInfo
14001
14001
  * @property {'from' | 'to'} providerType
@@ -14023,7 +14023,8 @@ declare enum CommerceSuccessEventType {
14023
14023
  SALE_TRANSACTION_SUCCESS = "SALE_TRANSACTION_SUCCESS",
14024
14024
  BRIDGE_SUCCESS = "BRIDGE_SUCCESS",
14025
14025
  BRIDGE_CLAIM_WITHDRAWAL_SUCCESS = "BRIDGE_CLAIM_WITHDRAWAL_SUCCESS",
14026
- ADD_TOKENS_SUCCESS = "ADD_TOKENS_SUCCESS"
14026
+ ADD_TOKENS_SUCCESS = "ADD_TOKENS_SUCCESS",
14027
+ ADD_TOKENS_CONNECT_SUCCESS = "ADD_TOKENS_CONNECT_SUCCESS"
14027
14028
  }
14028
14029
  declare enum CommerceFailureEventType {
14029
14030
  BRIDGE_FAILED = "BRIDGE_FAILED",
@@ -14081,7 +14082,7 @@ type CommerceAddTokensSuccessEvent = {
14081
14082
  data: AddTokensSuccess;
14082
14083
  };
14083
14084
  type CommerceAddTokensConnectSuccessEvent = {
14084
- type: CommerceSuccessEventType.CONNECT_SUCCESS;
14085
+ type: CommerceSuccessEventType.ADD_TOKENS_CONNECT_SUCCESS;
14085
14086
  data: AddTokensConnectSuccess;
14086
14087
  };
14087
14088
  type CommerceSuccessEvent = CommerceAddTokensSuccessEvent | CommerceAddTokensConnectSuccessEvent | CommerceConnectSuccessEvent | CommerceBridgeSuccessEvent | CommerceBridgeClaimWithdrawalSuccessEvent | CommerceOnRampSuccessEvent | CommerceSwapSuccessEvent | CommerceSaleSuccessEvent | CommerceSaleSuccessfulTransactionEvent;
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, R as RoutingOutcomeType, S as SaleEventType, v as SalePaymentTypes, w as SwapDirection, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, D as WalletProviderName, H as WalletProviderRdns, J as WidgetTheme, K as WidgetType, L as getMetaMaskProviderDetail, M as getPassportProviderDetail, Q as isAddressSanctioned, U as validateProvider } from './checkout-BFPBookq.js';
2
- import './index-Bp8cN2wo.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, R as RoutingOutcomeType, S as SaleEventType, v as SalePaymentTypes, w as SwapDirection, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, D as WalletProviderName, H as WalletProviderRdns, J as WidgetTheme, K as WidgetType, L as getMetaMaskProviderDetail, M as getPassportProviderDetail, Q as isAddressSanctioned, U as validateProvider } from './checkout-CrFSqC7Y.js';
2
+ import './index-D-ppDfn2.js';
3
3
  import 'axios';
4
4
  import 'lru-memorise';
5
5
  import 'global-const';
@@ -10,13 +10,13 @@ import 'assert';
10
10
  import '@uniswap/v3-sdk';
11
11
  import '@ethersproject/solidity';
12
12
  import '@uniswap/router-sdk';
13
- import './index-CP3zHUjx.js';
13
+ import './index-euVQudoW.js';
14
14
  import 'form-data';
15
15
  import '@opensea/seaport-js/lib/constants';
16
16
  import 'ethers-v6';
17
17
  import 'merkletreejs';
18
18
  import '@opensea/seaport-js';
19
- import './index-ChXdl1w-.js';
20
- import './index-C80azzXH.js';
19
+ import './index-BvmrvK8C.js';
20
+ import './index-mOuZ0Bp_.js';
21
21
  import '@metamask/detect-provider';
22
22
  import 'semver';
@@ -1,4 +1,4 @@
1
- import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-Bp8cN2wo.js';
1
+ import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-D-ppDfn2.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-Bp8cN2wo.js';
1
+ export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-D-ppDfn2.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-C80azzXH.js';
2
- import { E as Environment, a as addKeysToHeadersOverride } from './index-Bp8cN2wo.js';
1
+ import { a as index$1 } from './index-mOuZ0Bp_.js';
2
+ import { E as Environment, a as addKeysToHeadersOverride } from './index-D-ppDfn2.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.65.0',
24
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.66.0-alpha.1',
25
25
  };
26
26
  /**
27
27
  * createAPIConfiguration to create a custom Configuration
@@ -1,5 +1,5 @@
1
1
  import MessageValidator from 'sns-validator';
2
- import { E as Environment } from './index-Bp8cN2wo.js';
2
+ import { E as Environment } from './index-D-ppDfn2.js';
3
3
 
4
4
  const validator = new MessageValidator();
5
5
  const allowedTopicArnPrefix = {
@@ -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.65.0';
161
+ const SDK_VERSION = '1.66.0-alpha.1';
162
162
  const getFrameParentDomain = () => {
163
163
  if (isNode()) {
164
164
  return '';
@@ -1,5 +1,5 @@
1
- import { d as index$2, I as ImxApiClients } from './index-C80azzXH.js';
2
- import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-Bp8cN2wo.js';
1
+ import { d as index$2, I as ImxApiClients } from './index-mOuZ0Bp_.js';
2
+ import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-D-ppDfn2.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.65.0' };
19
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.66.0-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.65.0',
60
+ sdkVersion: 'ts-immutable-sdk-1.66.0-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-Bp8cN2wo.js';
1
+ import { t as track, E as Environment } from './index-D-ppDfn2.js';
2
2
  import globalAxios from 'axios';
3
3
  import FormData from 'form-data';
4
4
  import { OrderType as OrderType$1, ItemType as ItemType$1 } from '@opensea/seaport-js/lib/constants';
@@ -13527,7 +13527,7 @@ class MultiRollupApiClients {
13527
13527
  }
13528
13528
 
13529
13529
  // eslint-disable-next-line @typescript-eslint/naming-convention
13530
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.65.0' };
13530
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.66.0-alpha.1' };
13531
13531
  const createConfig = ({ basePath, headers, }) => {
13532
13532
  if (!basePath.trim()) {
13533
13533
  throw Error('basePath can not be empty');