@imtbl/sdk 1.47.10-alpha.5 → 1.48.0-alpha

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 (53) hide show
  1. package/dist/{blockchain_data-cWzsr5wl.js → blockchain_data-DmBo09Ub.js} +2 -2
  2. package/dist/blockchain_data.js +3 -3
  3. package/dist/browser/checkout/{AddFundsWidget-CRB4FIQA.js → AddFundsWidget-B76vjzLe.js} +2 -2
  4. package/dist/browser/checkout/{BridgeWidget-DQWytFMq.js → BridgeWidget-26FpSkDM.js} +892 -5
  5. package/dist/browser/checkout/{CheckoutWidget-2YWKTPOw.js → CheckoutWidget-A0lpxQW5.js} +1 -1
  6. package/dist/browser/checkout/{OnRampWidget-Gp9PjJdg.js → OnRampWidget-BpHfHW9m.js} +19 -3
  7. package/dist/browser/checkout/{SaleWidget-KTxWf98O.js → SaleWidget-2NLt4vHC.js} +8 -8
  8. package/dist/browser/checkout/{SpendingCapHero-D5yi8Bqy.js → SpendingCapHero-CFYmjAC9.js} +1 -1
  9. package/dist/browser/checkout/{SwapWidget-DRFyJjEa.js → SwapWidget-jOf_i-tX.js} +191 -226
  10. package/dist/browser/checkout/{TopUpView-CKizPnH0.js → TopUpView-CCWR_Ywt.js} +1 -1
  11. package/dist/browser/checkout/{WalletWidget-BenJO1Gt.js → WalletWidget-DX6XyHRZ.js} +3 -3
  12. package/dist/browser/checkout/{auto-track-yKpxFpit.js → auto-track-HlFDs4AF.js} +1 -1
  13. package/dist/browser/checkout/{balance-Dpnr5wqM.js → balance-CxYIjdr3.js} +2 -2
  14. package/dist/browser/checkout/{index-B4PflMJG.js → index-B98fdYSj.js} +1150 -7300
  15. package/dist/browser/checkout/{index-CwvAErsc.js → index-C8MSufU0.js} +2 -2
  16. package/dist/browser/checkout/{index-COqbxbY_.js → index-CDckawJL.js} +1 -1
  17. package/dist/browser/checkout/{index-DlDjB9wn.js → index-DA2uO4yr.js} +1 -1
  18. package/dist/browser/checkout/{index-ZniBNFXw.js → index-DArhMjiX.js} +1 -1
  19. package/dist/browser/checkout/{index-D5C65gfz.js → index-Gzx2b9iM.js} +1 -1
  20. package/dist/browser/checkout/{index-CtXbWWJf.js → index-SW1XTDNB.js} +1 -1
  21. package/dist/browser/checkout/{index-PQUGtdAp.js → index-b14pM-Uq.js} +1 -1
  22. package/dist/browser/checkout/{index.umd-Bs9q0s4U.js → index.umd-YT5yUs2O.js} +1 -1
  23. package/dist/browser/checkout/{retry-C8XS-Xeo.js → retry-B5JRrQBT.js} +1 -1
  24. package/dist/browser/checkout/sdk.js +22 -22
  25. package/dist/browser/checkout/widgets-esm.js +1 -1
  26. package/dist/browser/checkout/widgets.js +1640 -6927
  27. package/dist/{checkout-CXpTQLRS.js → checkout-BFNKSC1p.js} +23 -7
  28. package/dist/checkout.d.ts +27 -2
  29. package/dist/checkout.js +5 -5
  30. package/dist/{config-B9pm_o2B.js → config-DdiXqLnW.js} +1 -1
  31. package/dist/config.js +1 -1
  32. package/dist/{index-Cd1_4hIm.js → index-CRCX_kjh.js} +1 -1
  33. package/dist/{index-E33r6dfY.js → index-CV4zecZ4.js} +3 -3
  34. package/dist/{index-PfNmrnl8.js → index-DZ3iNNYG.js} +4 -4
  35. package/dist/{index-BFR3TJ6T.js → index-I5hCRizU.js} +1 -1
  36. package/dist/{index-B73Nr-3V.js → index-YU2e3sgJ.js} +1 -1
  37. package/dist/{index-OqfbhlAB.js → index-n1s55SSO.js} +1 -1
  38. package/dist/index.browser.js +4 -4
  39. package/dist/index.browser.js.map +1 -1
  40. package/dist/index.cjs +24 -8
  41. package/dist/index.d.ts +29 -2
  42. package/dist/index.js +14 -14
  43. package/dist/{minting_backend-BoiGA7Ww.js → minting_backend-D0xUp3hC.js} +3 -3
  44. package/dist/minting_backend.js +5 -5
  45. package/dist/{orderbook-CcN997JC.js → orderbook-C3Fya1eb.js} +1 -1
  46. package/dist/orderbook.js +2 -2
  47. package/dist/{passport-DpdFVU6c.js → passport-DnEOV22D.js} +3 -3
  48. package/dist/passport.js +4 -4
  49. package/dist/{webhook-CHM4Pnle.js → webhook-CLXVoP8g.js} +1 -1
  50. package/dist/webhook.js +2 -2
  51. package/dist/{x-CxXemjdw.js → x-BNrl5-72.js} +3 -3
  52. package/dist/x.js +4 -4
  53. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-OqfbhlAB.js';
1
+ import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-n1s55SSO.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-BFR3TJ6T.js';
13
- import { B as BlockchainData } from './index-E33r6dfY.js';
12
+ import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-I5hCRizU.js';
13
+ import { B as BlockchainData } from './index-CV4zecZ4.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.47.10-alpha.5';
19209
+ const SDK_VERSION = '1.48.0-alpha';
19210
19210
  const getFrameParentDomain = () => {
19211
19211
  if (isNode()) {
19212
19212
  return '';
@@ -23646,6 +23646,12 @@ var ConnectTargetLayer;
23646
23646
  ConnectTargetLayer["LAYER2"] = "LAYER2";
23647
23647
  })(ConnectTargetLayer || (ConnectTargetLayer = {}));
23648
23648
 
23649
+ var SwapDirection;
23650
+ (function (SwapDirection) {
23651
+ SwapDirection["FROM"] = "FROM";
23652
+ SwapDirection["TO"] = "TO";
23653
+ })(SwapDirection || (SwapDirection = {}));
23654
+
23649
23655
  var CheckoutFlowType;
23650
23656
  (function (CheckoutFlowType) {
23651
23657
  CheckoutFlowType["CONNECT"] = "connect";
@@ -24587,7 +24593,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
24587
24593
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
24588
24594
  };
24589
24595
 
24590
- const SDK_VERSION_MARKER = '1.47.10-alpha.5';
24596
+ const SDK_VERSION_MARKER = '1.48.0-alpha';
24591
24597
  // This SDK version is replaced by the `yarn build` command ran on the root level
24592
24598
  const globalPackageVersion = () => SDK_VERSION_MARKER;
24593
24599
 
@@ -29194,7 +29200,7 @@ class Checkout {
29194
29200
  return this.availability.checkDexAvailability();
29195
29201
  }
29196
29202
  /**
29197
- * Fetches the approval and swap transaction details including the quote for the swap.
29203
+ * Fetches a quote and then performs the approval and swap transaction.
29198
29204
  * @param {SwapParams} params - The parameters for the swap.
29199
29205
  * @returns {Promise<SwapResult>} - A promise that resolves to the swap result (swap tx, swap tx receipt, quote used in the swap).
29200
29206
  */
@@ -29202,6 +29208,15 @@ class Checkout {
29202
29208
  const web3Provider = await validateProvider(this.config, params.provider);
29203
29209
  return swap(this.config, web3Provider, params.fromToken, params.toToken, params.fromAmount, params.toAmount, params.slippagePercent, params.maxHops, params.deadline);
29204
29210
  }
29211
+ /**
29212
+ * Fetches a quote for the swap.
29213
+ * @param {SwapParams} params - The parameters for the swap.
29214
+ * @returns {Promise<SwapQuoteResult>} - A promise that resolves to the swap quote result.
29215
+ */
29216
+ async swapQuote(params) {
29217
+ const web3Provider = await validateProvider(this.config, params.provider);
29218
+ return swapQuote(this.config, web3Provider, params.fromToken, params.toToken, params.fromAmount, params.toAmount, params.slippagePercent, params.maxHops, params.deadline);
29219
+ }
29205
29220
  }
29206
29221
 
29207
29222
  var PostMessageHandlerEventType;
@@ -29378,6 +29393,7 @@ var checkout = /*#__PURE__*/Object.freeze({
29378
29393
  get RoutingOutcomeType () { return RoutingOutcomeType; },
29379
29394
  get SaleEventType () { return SaleEventType; },
29380
29395
  get SalePaymentTypes () { return SalePaymentTypes; },
29396
+ get SwapDirection () { return SwapDirection; },
29381
29397
  get SwapEventType () { return SwapEventType; },
29382
29398
  get TokenFilterTypes () { return TokenFilterTypes; },
29383
29399
  get TransactionOrGasType () { return TransactionOrGasType; },
@@ -29393,4 +29409,4 @@ var checkout = /*#__PURE__*/Object.freeze({
29393
29409
  validateProvider: validateProvider
29394
29410
  });
29395
29411
 
29396
- export { AddFundsEventType as A, BlockExplorerService as B, ChainId as C, WalletProviderName as D, ExchangeType as E, FeeType as F, GasEstimateType as G, WalletProviderRdns as H, IMMUTABLE_API_BASE_URL as I, WidgetTheme as J, WidgetType as K, getMetaMaskProviderDetail as L, getPassportProviderDetail as M, NetworkFilterTypes as N, OnRampEventType as O, PostMessageHandler as P, isAddressSanctioned as Q, RoutingOutcomeType as R, SaleEventType as S, TokenFilterTypes as T, validateProvider as U, WalletEventType as W, BridgeEventType as a, ChainName as b, checkout as c, ChainSlug as d, Checkout as e, CheckoutConfiguration as f, CheckoutErrorType as g, CheckoutEventType as h, CheckoutFailureEventType as i, CheckoutFlowType as j, CheckoutStatus as k, CheckoutSuccessEventType as l, CheckoutUserActionEventType as m, ConnectEventType as n, ConnectTargetLayer as o, FundingStepType as p, GasTokenType as q, IMTBLWidgetEvents as r, ItemType as s, OrchestrationEventType as t, PostMessageHandlerEventType as u, ProviderEventType as v, SalePaymentTypes as w, SwapEventType as x, TransactionOrGasType as y, WalletFilterTypes as z };
29412
+ export { AddFundsEventType as A, BlockExplorerService as B, ChainId as C, WalletFilterTypes as D, ExchangeType as E, FeeType as F, GasEstimateType as G, WalletProviderName as H, IMMUTABLE_API_BASE_URL as I, WalletProviderRdns as J, WidgetTheme as K, WidgetType as L, getMetaMaskProviderDetail as M, NetworkFilterTypes as N, OnRampEventType as O, PostMessageHandler as P, getPassportProviderDetail as Q, RoutingOutcomeType as R, SaleEventType as S, TokenFilterTypes as T, isAddressSanctioned as U, validateProvider as V, WalletEventType as W, BridgeEventType as a, ChainName as b, checkout as c, ChainSlug as d, Checkout as e, CheckoutConfiguration as f, CheckoutErrorType as g, CheckoutEventType as h, CheckoutFailureEventType as i, CheckoutFlowType as j, CheckoutStatus as k, CheckoutSuccessEventType as l, CheckoutUserActionEventType as m, ConnectEventType as n, ConnectTargetLayer as o, FundingStepType as p, GasTokenType as q, IMTBLWidgetEvents as r, ItemType as s, OrchestrationEventType as t, PostMessageHandlerEventType as u, ProviderEventType as v, SalePaymentTypes as w, SwapDirection as x, SwapEventType as y, TransactionOrGasType as z };
@@ -16394,6 +16394,10 @@ type WalletWidgetParams = {
16394
16394
  language?: WidgetLanguage;
16395
16395
  };
16396
16396
 
16397
+ declare enum SwapDirection {
16398
+ FROM = "FROM",
16399
+ TO = "TO"
16400
+ }
16397
16401
  /**
16398
16402
  * Swap Widget parameters
16399
16403
  * @property {string | undefined} amount
@@ -16412,6 +16416,10 @@ type SwapWidgetParams = {
16412
16416
  walletProviderName?: WalletProviderName;
16413
16417
  /** The language to use for the swap widget */
16414
16418
  language?: WidgetLanguage;
16419
+ /** Whether the swap widget should display the form or automatically proceed with the swap */
16420
+ autoProceed?: boolean;
16421
+ /** The direction of the swap */
16422
+ direction?: SwapDirection;
16415
16423
  };
16416
16424
 
16417
16425
  /**
@@ -16948,6 +16956,17 @@ interface SwapParams {
16948
16956
  maxHops?: number;
16949
16957
  deadline?: number;
16950
16958
  }
16959
+ /**
16960
+ * Interface representing the result of {@link Checkout.swapQuote}.
16961
+ * @property {TransactionDetails} approval - The approval transaction details.
16962
+ * @property {TransactionDetails} swap - The swap transaction details.
16963
+ * @property {Quote} quote - The quote for the swap.
16964
+ */
16965
+ interface SwapQuoteResult {
16966
+ approval: TransactionDetails | null;
16967
+ swap: TransactionDetails;
16968
+ quote: Quote;
16969
+ }
16951
16970
  /**
16952
16971
  * Interface representing the result of {@link Checkout.swap}.
16953
16972
  * @property {TransactionDetails} swap - The swap transaction details.
@@ -17139,11 +17158,17 @@ declare class Checkout {
17139
17158
  */
17140
17159
  isSwapAvailable(): Promise<boolean>;
17141
17160
  /**
17142
- * Fetches the approval and swap transaction details including the quote for the swap.
17161
+ * Fetches a quote and then performs the approval and swap transaction.
17143
17162
  * @param {SwapParams} params - The parameters for the swap.
17144
17163
  * @returns {Promise<SwapResult>} - A promise that resolves to the swap result (swap tx, swap tx receipt, quote used in the swap).
17145
17164
  */
17146
17165
  swap(params: SwapParams): Promise<SwapResult>;
17166
+ /**
17167
+ * Fetches a quote for the swap.
17168
+ * @param {SwapParams} params - The parameters for the swap.
17169
+ * @returns {Promise<SwapQuoteResult>} - A promise that resolves to the swap quote result.
17170
+ */
17171
+ swapQuote(params: SwapParams): Promise<SwapQuoteResult>;
17147
17172
  }
17148
17173
 
17149
17174
  /**
@@ -17344,4 +17369,4 @@ declare class BlockExplorerService {
17344
17369
  static getTransactionLink(chainId: ChainId, hash: string): string | undefined;
17345
17370
  }
17346
17371
 
17347
- export { AddFundsEventType, type AddFundsWidgetParams, type AllowedNetworkConfig, type AvailableRoutingOptions, type BalanceDelta, BlockExplorerService, type BridgeClaimWithdrawalFailed, type BridgeClaimWithdrawalSuccess, BridgeEventType, type BridgeFailed, type BridgeFundingStep, type BridgeTransactionSent, type BridgeWidgetConfiguration, type BridgeWidgetParams, type BuyOrder, type BuyOverrides, type BuyParams, type BuyResult, type BuyResultFailed, type BuyResultFulfillmentsUnsettled, type BuyResultInsufficientFunds, type BuyResultSuccess, type BuyToken, type CancelOverrides, type CancelParams, type CancelResult, type CancelResultFailed, type CancelResultFulfillmentsUnsettled, type CancelResultGasless, type CancelResultSuccess, ChainId, ChainName, ChainSlug, type CheckConnectionParams, type CheckConnectionResult, type CheckouWidgetBridgeFlowParams, type CheckouWidgetOnRampFlowParams, type CheckouWidgetSaleFlowParams, type CheckouWidgetSwapFlowParams, Checkout, type CheckoutBridgeClaimWithdrawalFailedEvent, type CheckoutBridgeClaimWithdrawalSuccessEvent, type CheckoutBridgeConfiguration, type CheckoutBridgeFailureEvent, type CheckoutBridgeSuccessEvent, CheckoutConfiguration, type CheckoutConnectFailureEvent, type CheckoutConnectSuccessEvent, CheckoutErrorType, CheckoutEventType, type CheckoutFailureEvent, CheckoutFailureEventType, CheckoutFlowType, type CheckoutModuleConfiguration, type CheckoutNetworkSwitchEvent, type CheckoutOnRampConfiguration, type CheckoutOnRampFailureEvent, type CheckoutOnRampSuccessEvent, type CheckoutPaymentMethodSelectedEvent, type CheckoutPaymentTokenSelectedEvent, type CheckoutProviderUpdatedEvent, type CheckoutSaleFailureEvent, type CheckoutSaleSuccessEvent, type CheckoutSaleSuccessfulTransactionEvent, CheckoutStatus, type CheckoutSuccessEvent, CheckoutSuccessEventType, type CheckoutSwapConfiguration, type CheckoutSwapFailureEvent, type CheckoutSwapRejectedEvent, type CheckoutSwapSuccessEvent, type CheckoutUserActionEvent, CheckoutUserActionEventType, type CheckoutWidgetConfiguration, type CheckoutWidgetConnectFlowParams, type CheckoutWidgetFlowParams, type CheckoutWidgetParams, type CheckoutWidgetWalletFlowParams, type CheckoutWidgetsConfig, ConnectEventType, type ConnectParams, type ConnectResult, ConnectTargetLayer, type ConnectWidgetConfiguration, type ConnectWidgetParams, type ConnectionFailed, type ConnectionSuccess, type CreateProviderParams, type CreateProviderResult, type DexConfig, type EIP1193Provider, type EIP6963ProviderDetail, type EIP6963ProviderInfo, type ERC20ItemRequirement, type ERC721Balance, type ERC721ItemRequirement, type ErrorType, ExchangeType, type FailedGaslessCancellation, type Fee$1 as Fee, type FeePercentage, type FeeToken, FeeType, type FiatRampParams, type FulfillmentTransaction, type FundingItem, type FundingRoute, type FundingStep, FundingStepType, type GasAmount, type GasEstimateBridgeToL2Result, type GasEstimateParams, type GasEstimateSwapResult, type GasEstimateTokenConfig, GasEstimateType, type GasToken, GasTokenType, type GetAllBalancesParams, type GetAllBalancesResult, type GetBalanceParams, type GetBalanceResult, type GetNetworkAllowListParams, type GetNetworkAllowListResult, type GetNetworkParams, type GetTokenAllowListParams, type GetTokenAllowListResult, type GetTokenInfoParams, type GetWalletAllowListParams, type GetWalletAllowListResult, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, type IWidgetsFactory, type ItemBalance, ItemType, type LanguageChanged, type NativeItemRequirement, type NetworkFilter, NetworkFilterTypes, type NetworkInfo, type NoRouteOptions, type NoRoutesFound, OnRampEventType, type OnRampFailed, type OnRampFundingStep, type OnRampProviderFees, type OnRampSuccess, type OnRampWidgetParams, type OnrampWidgetConfiguration, type OrchestrationEvent, type OrchestrationEventData, OrchestrationEventType, type OrderFee, type PendingGaslessCancellation, type PostMessageData, PostMessageHandler, type PostMessageHandlerConfiguration, PostMessageHandlerEventType, type ProviderEvent, ProviderEventType, type ProviderUpdated, type RemoteConfiguration, type RequestAddFundsEvent, type RequestBridgeEvent, type RequestConnectEvent, type RequestOnrampEvent, type RequestSwapEvent, type RequestWalletEvent, type RoutesFound, type RoutingOutcome, RoutingOutcomeType, SaleEventType, type SaleFailed, type SaleItem, type SalePaymentMethod, type SalePaymentToken, SalePaymentTypes, type SaleSuccess, type SaleTransactionSuccess, type SaleWidgetConfiguration, type SaleWidgetParams, type SellOrder, type SellParams, type SellResult, type SellResultFailed, type SellResultInsufficientFunds, type SellResultSuccess, type SellToken, type SemanticVersion, type SendTransactionParams, type SendTransactionResult, type SmartCheckoutInsufficient, type SmartCheckoutParams, type SmartCheckoutResult, type SmartCheckoutRouter, type SmartCheckoutSufficient, type SuccessfulGaslessCancellation, SwapEventType, type SwapFailed, type SwapFees, type SwapFundingStep, type SwapRejected, type SwapSuccess, type SwapWidgetConfiguration, type SwapWidgetParams, type SwitchNetworkParams, type SwitchNetworkResult, type TelemetryConfig, type TokenAmountEstimate, type TokenBalance, type TokenFilter, TokenFilterTypes, type TokenInfo, TransactionOrGasType, type TransactionRequirement, type WalletConnectConfig, type WalletConnectManager, type WalletConnectProviderChanged, type WalletDisconnect, WalletEventType, type WalletFilter, WalletFilterTypes, type WalletInfo, type WalletNetworkSwitch, WalletProviderName, WalletProviderRdns, type WalletWidgetConfiguration, type WalletWidgetParams, type Widget, type WidgetConfiguration, type WidgetConfigurations, type WidgetEvent, type WidgetEventData, type WidgetEventTypes, type WidgetLanguage, type WidgetParameters, type WidgetProperties, WidgetTheme, WidgetType, getMetaMaskProviderDetail, getPassportProviderDetail, isAddressSanctioned, validateProvider };
17372
+ export { AddFundsEventType, type AddFundsWidgetParams, type AllowedNetworkConfig, type AvailableRoutingOptions, type BalanceDelta, BlockExplorerService, type BridgeClaimWithdrawalFailed, type BridgeClaimWithdrawalSuccess, BridgeEventType, type BridgeFailed, type BridgeFundingStep, type BridgeTransactionSent, type BridgeWidgetConfiguration, type BridgeWidgetParams, type BuyOrder, type BuyOverrides, type BuyParams, type BuyResult, type BuyResultFailed, type BuyResultFulfillmentsUnsettled, type BuyResultInsufficientFunds, type BuyResultSuccess, type BuyToken, type CancelOverrides, type CancelParams, type CancelResult, type CancelResultFailed, type CancelResultFulfillmentsUnsettled, type CancelResultGasless, type CancelResultSuccess, ChainId, ChainName, ChainSlug, type CheckConnectionParams, type CheckConnectionResult, type CheckouWidgetBridgeFlowParams, type CheckouWidgetOnRampFlowParams, type CheckouWidgetSaleFlowParams, type CheckouWidgetSwapFlowParams, Checkout, type CheckoutBridgeClaimWithdrawalFailedEvent, type CheckoutBridgeClaimWithdrawalSuccessEvent, type CheckoutBridgeConfiguration, type CheckoutBridgeFailureEvent, type CheckoutBridgeSuccessEvent, CheckoutConfiguration, type CheckoutConnectFailureEvent, type CheckoutConnectSuccessEvent, CheckoutErrorType, CheckoutEventType, type CheckoutFailureEvent, CheckoutFailureEventType, CheckoutFlowType, type CheckoutModuleConfiguration, type CheckoutNetworkSwitchEvent, type CheckoutOnRampConfiguration, type CheckoutOnRampFailureEvent, type CheckoutOnRampSuccessEvent, type CheckoutPaymentMethodSelectedEvent, type CheckoutPaymentTokenSelectedEvent, type CheckoutProviderUpdatedEvent, type CheckoutSaleFailureEvent, type CheckoutSaleSuccessEvent, type CheckoutSaleSuccessfulTransactionEvent, CheckoutStatus, type CheckoutSuccessEvent, CheckoutSuccessEventType, type CheckoutSwapConfiguration, type CheckoutSwapFailureEvent, type CheckoutSwapRejectedEvent, type CheckoutSwapSuccessEvent, type CheckoutUserActionEvent, CheckoutUserActionEventType, type CheckoutWidgetConfiguration, type CheckoutWidgetConnectFlowParams, type CheckoutWidgetFlowParams, type CheckoutWidgetParams, type CheckoutWidgetWalletFlowParams, type CheckoutWidgetsConfig, ConnectEventType, type ConnectParams, type ConnectResult, ConnectTargetLayer, type ConnectWidgetConfiguration, type ConnectWidgetParams, type ConnectionFailed, type ConnectionSuccess, type CreateProviderParams, type CreateProviderResult, type DexConfig, type EIP1193Provider, type EIP6963ProviderDetail, type EIP6963ProviderInfo, type ERC20ItemRequirement, type ERC721Balance, type ERC721ItemRequirement, type ErrorType, ExchangeType, type FailedGaslessCancellation, type Fee$1 as Fee, type FeePercentage, type FeeToken, FeeType, type FiatRampParams, type FulfillmentTransaction, type FundingItem, type FundingRoute, type FundingStep, FundingStepType, type GasAmount, type GasEstimateBridgeToL2Result, type GasEstimateParams, type GasEstimateSwapResult, type GasEstimateTokenConfig, GasEstimateType, type GasToken, GasTokenType, type GetAllBalancesParams, type GetAllBalancesResult, type GetBalanceParams, type GetBalanceResult, type GetNetworkAllowListParams, type GetNetworkAllowListResult, type GetNetworkParams, type GetTokenAllowListParams, type GetTokenAllowListResult, type GetTokenInfoParams, type GetWalletAllowListParams, type GetWalletAllowListResult, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, type IWidgetsFactory, type ItemBalance, ItemType, type LanguageChanged, type NativeItemRequirement, type NetworkFilter, NetworkFilterTypes, type NetworkInfo, type NoRouteOptions, type NoRoutesFound, OnRampEventType, type OnRampFailed, type OnRampFundingStep, type OnRampProviderFees, type OnRampSuccess, type OnRampWidgetParams, type OnrampWidgetConfiguration, type OrchestrationEvent, type OrchestrationEventData, OrchestrationEventType, type OrderFee, type PendingGaslessCancellation, type PostMessageData, PostMessageHandler, type PostMessageHandlerConfiguration, PostMessageHandlerEventType, type ProviderEvent, ProviderEventType, type ProviderUpdated, type RemoteConfiguration, type RequestAddFundsEvent, type RequestBridgeEvent, type RequestConnectEvent, type RequestOnrampEvent, type RequestSwapEvent, type RequestWalletEvent, type RoutesFound, type RoutingOutcome, RoutingOutcomeType, SaleEventType, type SaleFailed, type SaleItem, type SalePaymentMethod, type SalePaymentToken, SalePaymentTypes, type SaleSuccess, type SaleTransactionSuccess, type SaleWidgetConfiguration, type SaleWidgetParams, type SellOrder, type SellParams, type SellResult, type SellResultFailed, type SellResultInsufficientFunds, type SellResultSuccess, type SellToken, type SemanticVersion, type SendTransactionParams, type SendTransactionResult, type SmartCheckoutInsufficient, type SmartCheckoutParams, type SmartCheckoutResult, type SmartCheckoutRouter, type SmartCheckoutSufficient, type SuccessfulGaslessCancellation, SwapDirection, SwapEventType, type SwapFailed, type SwapFees, type SwapFundingStep, type SwapRejected, type SwapSuccess, type SwapWidgetConfiguration, type SwapWidgetParams, type SwitchNetworkParams, type SwitchNetworkResult, type TelemetryConfig, type TokenAmountEstimate, type TokenBalance, type TokenFilter, TokenFilterTypes, type TokenInfo, TransactionOrGasType, type TransactionRequirement, type WalletConnectConfig, type WalletConnectManager, type WalletConnectProviderChanged, type WalletDisconnect, WalletEventType, type WalletFilter, WalletFilterTypes, type WalletInfo, type WalletNetworkSwitch, WalletProviderName, WalletProviderRdns, type WalletWidgetConfiguration, type WalletWidgetParams, type Widget, type WidgetConfiguration, type WidgetConfigurations, type WidgetEvent, type WidgetEventData, type WidgetEventTypes, type WidgetLanguage, type WidgetParameters, type WidgetProperties, WidgetTheme, WidgetType, getMetaMaskProviderDetail, getPassportProviderDetail, isAddressSanctioned, validateProvider };
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 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-CXpTQLRS.js';
2
- import './index-OqfbhlAB.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-BFNKSC1p.js';
2
+ import './index-n1s55SSO.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-BFR3TJ6T.js';
14
+ import './index-I5hCRizU.js';
15
15
  import 'form-data';
16
16
  import 'ethers-v6';
17
17
  import 'merkletreejs';
18
18
  import '@opensea/seaport-js';
19
- import './index-E33r6dfY.js';
20
- import './index-Cd1_4hIm.js';
19
+ import './index-CV4zecZ4.js';
20
+ import './index-CRCX_kjh.js';
@@ -1,4 +1,4 @@
1
- import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-OqfbhlAB.js';
1
+ import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-n1s55SSO.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-OqfbhlAB.js';
1
+ export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-n1s55SSO.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.47.10-alpha.5' };
13841
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.48.0-alpha' };
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
- import { a as index$1 } from './index-Cd1_4hIm.js';
2
- import { E as Environment, a as addKeysToHeadersOverride } from './index-OqfbhlAB.js';
1
+ import { a as index$1 } from './index-CRCX_kjh.js';
2
+ import { E as Environment, a as addKeysToHeadersOverride } from './index-n1s55SSO.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.47.10-alpha.5',
24
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.48.0-alpha',
25
25
  };
26
26
  /**
27
27
  * createAPIConfiguration to create a custom Configuration
@@ -1,5 +1,5 @@
1
- import { b as index$2, I as ImxApiClients } from './index-Cd1_4hIm.js';
2
- import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-OqfbhlAB.js';
1
+ import { b as index$2, I as ImxApiClients } from './index-CRCX_kjh.js';
2
+ import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-n1s55SSO.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.47.10-alpha.5' };
19
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.48.0-alpha' };
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.47.10-alpha.5',
60
+ sdkVersion: 'ts-immutable-sdk-1.48.0-alpha',
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-OqfbhlAB.js';
1
+ import { t as track, E as Environment } from './index-n1s55SSO.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-OqfbhlAB.js';
2
+ import { E as Environment } from './index-n1s55SSO.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.47.10-alpha.5';
161
+ const SDK_VERSION = '1.48.0-alpha';
162
162
  const getFrameParentDomain = () => {
163
163
  if (isNode()) {
164
164
  return '';