@imtbl/sdk 1.2.0 → 1.4.0-alpha.2

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 (47) hide show
  1. package/dist/blockchain_data.d.ts +4413 -1793
  2. package/dist/blockchain_data.js +398 -78
  3. package/dist/browser/checkout/BridgeWidget-52ba2210.js +2753 -0
  4. package/dist/browser/checkout/BridgeWidget-fffec54f.js +1 -0
  5. package/dist/browser/checkout/OnRampWidget-04677711.js +288 -0
  6. package/dist/browser/checkout/OnRampWidget-b1c1cc52.js +1 -0
  7. package/dist/browser/checkout/SaleWidget-8b73504f.js +1610 -0
  8. package/dist/browser/checkout/SaleWidget-e9cc4cb2.js +2 -0
  9. package/dist/browser/checkout/SpendingCapHero-43c9cf8c.js +9 -0
  10. package/dist/browser/checkout/SpendingCapHero-af71a6f5.js +1 -0
  11. package/dist/browser/checkout/SwapWidget-45ff8dfa.js +1 -0
  12. package/dist/browser/checkout/SwapWidget-e52876ac.js +1461 -0
  13. package/dist/browser/checkout/TopUpView-590c2c4c.js +365 -0
  14. package/dist/browser/checkout/TopUpView-ff09517a.js +1 -0
  15. package/dist/browser/checkout/WalletWidget-9c4c62e4.js +760 -0
  16. package/dist/browser/checkout/WalletWidget-ed0bd774.js +1 -0
  17. package/dist/browser/checkout/auto-track-1bf3a0ee.js +1 -0
  18. package/dist/browser/checkout/balance-e5a26a9d.js +1 -0
  19. package/dist/browser/checkout/balance-e5d785aa.js +182 -0
  20. package/dist/browser/checkout/index-1405c4f4.js +1 -0
  21. package/dist/browser/checkout/index-3272becd.js +1 -0
  22. package/dist/browser/checkout/index-4511315b.js +5638 -0
  23. package/dist/browser/checkout/index-6ee5fac7.js +1 -0
  24. package/dist/browser/checkout/index-8562ab3b.js +1 -0
  25. package/dist/browser/checkout/index-942c822d.js +1 -0
  26. package/dist/browser/checkout/index-9a5fbaa1.js +90 -0
  27. package/dist/browser/checkout/index-d9cfe478.js +773 -0
  28. package/dist/browser/checkout/index.umd-956dbfb2.js +1 -0
  29. package/dist/browser/checkout/is-plan-event-enabled-80f76ce6.js +1 -0
  30. package/dist/browser/checkout/retry-254e3478.js +58 -0
  31. package/dist/browser/checkout/retry-81ddd897.js +1 -0
  32. package/dist/browser/checkout/sdk.js +4 -4
  33. package/dist/browser/checkout/useTransakEvents-54a554e5.js +150 -0
  34. package/dist/browser/checkout/useTransakEvents-8580b8ed.js +2 -0
  35. package/dist/browser/checkout/widgets.js +1 -872
  36. package/dist/checkout.d.ts +28 -2
  37. package/dist/checkout.js +471 -57
  38. package/dist/config.js +1 -1
  39. package/dist/index.browser.js +12 -12
  40. package/dist/index.browser.js.map +1 -1
  41. package/dist/index.cjs +404 -88
  42. package/dist/index.d.ts +4472 -1842
  43. package/dist/index.js +404 -88
  44. package/dist/orderbook.js +1 -1
  45. package/dist/passport.js +415 -3
  46. package/dist/x.js +2 -2
  47. package/package.json +1 -1
@@ -23199,7 +23199,9 @@ declare enum BridgeEventType {
23199
23199
  CLOSE_WIDGET = "close-widget",
23200
23200
  FAILURE = "failure",
23201
23201
  TRANSACTION_SENT = "transaction-sent",
23202
- LANGUAGE_CHANGED = "language-changed"
23202
+ LANGUAGE_CHANGED = "language-changed",
23203
+ CLAIM_WITHDRAWAL_SUCCESS = "claim-withdrawal-success",
23204
+ CLAIM_WITHDRAWAL_FAILURE = "claim-withdrawal-failure"
23203
23205
  }
23204
23206
  /**
23205
23207
  * Represents a successful bridge transaction.
@@ -23220,6 +23222,28 @@ type BridgeFailed = {
23220
23222
  /** The timestamp of the failed transaction. */
23221
23223
  timestamp: number;
23222
23224
  };
23225
+ /**
23226
+ * Represents a successful bridge claim withdrawal.
23227
+ * @property {string} transactionHash
23228
+ */
23229
+ type BridgeClaimWithdrawalSuccess = {
23230
+ /** The hash of the successful transaction. */
23231
+ transactionHash: string;
23232
+ };
23233
+ /**
23234
+ * Represents a failed bridge claim withdrawal.
23235
+ * @property {string} transactionHash
23236
+ * @property {string} reason
23237
+ * @property {number} timestamp
23238
+ */
23239
+ type BridgeClaimWithdrawalFailed = {
23240
+ /** The hash of the failed transaction. */
23241
+ transactionHash: string;
23242
+ /** The reason for the failed transaction. */
23243
+ reason: string;
23244
+ /** The timestamp of the failed transaction. */
23245
+ timestamp: number;
23246
+ };
23223
23247
 
23224
23248
  /**
23225
23249
  * Enum representing different types of orchestration events.
@@ -23514,6 +23538,8 @@ type WidgetEventData = {
23514
23538
  [BridgeEventType.TRANSACTION_SENT]: BridgeTransactionSent;
23515
23539
  [BridgeEventType.FAILURE]: BridgeFailed;
23516
23540
  [BridgeEventType.CLOSE_WIDGET]: {};
23541
+ [BridgeEventType.CLAIM_WITHDRAWAL_SUCCESS]: BridgeClaimWithdrawalSuccess;
23542
+ [BridgeEventType.CLAIM_WITHDRAWAL_FAILURE]: BridgeClaimWithdrawalFailed;
23517
23543
  } & OrchestrationMapping & ProviderEventMapping;
23518
23544
  [WidgetType.ONRAMP]: {
23519
23545
  [OnRampEventType.SUCCESS]: OnRampSuccess;
@@ -23959,4 +23985,4 @@ declare class BlockExplorerService {
23959
23985
  static getTransactionLink(chainId: ChainId, hash: string): string | undefined;
23960
23986
  }
23961
23987
 
23962
- export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BlockExplorerService, BridgeEventType, BridgeFailed, BridgeFundingStep, BridgeTransactionSent, BridgeWidgetConfiguration, BridgeWidgetParams, BuyOrder, BuyOverrides, BuyParams, BuyResult, BuyResultFailed, BuyResultFulfillmentsUnsettled, BuyResultInsufficientFunds, BuyResultSuccess, BuyToken, CancelOverrides, CancelParams, CancelResult, CancelResultFailed, CancelResultFulfillmentsUnsettled, CancelResultSuccess, ChainId, ChainName, ChainSlug, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutBridgeConfiguration, CheckoutConfiguration, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutOnRampConfiguration, CheckoutStatus, CheckoutSwapConfiguration, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectResult, ConnectTargetLayer, ConnectWidgetConfiguration, ConnectWidgetParams, ConnectionFailed, ConnectionSuccess, CreateProviderParams, CreateProviderResult, DexConfig, ERC20ItemRequirement, ERC721Balance, ERC721ItemRequirement, ErrorType, ExchangeType, Fee, FeePercentage, FeeToken, FeeType, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetTokenInfoParams, GetWalletAllowListParams, GetWalletAllowListResult, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, IWidgetsFactory, ItemBalance, ItemType, LanguageChanged, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, NoRouteOptions, NoRoutesFound, OnRampEventType, OnRampFailed, OnRampFundingStep, OnRampProviderFees, OnRampSuccess, OnRampWidgetParams, OnrampWidgetConfiguration, OrchestrationEvent, OrchestrationEventData, OrchestrationEventType, OrderFee, ProviderEvent, ProviderEventType, ProviderUpdated, RemoteConfiguration, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, RoutesFound, RoutingOutcome, RoutingOutcomeType, SaleEventType, SaleFailed, SaleItem, SalePaymentMethod, SalePaymentTypes, SaleSuccess, SaleTransactionSuccess, SaleWidgetConfiguration, SaleWidgetParams, SellOrder, SellParams, SellResult, SellResultFailed, SellResultInsufficientFunds, SellResultSuccess, SellToken, SemanticVersion, SendTransactionParams, SendTransactionResult, SmartCheckoutInsufficient, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SmartCheckoutSufficient, SwapEventType, SwapFailed, SwapFundingStep, SwapRejected, SwapSuccess, SwapWidgetConfiguration, SwapWidgetParams, SwitchNetworkParams, SwitchNetworkResult, TokenAmountEstimate, TokenBalance, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletDisconnect, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitch, WalletProviderName, WalletWidgetConfiguration, WalletWidgetParams, Widget, WidgetConfiguration, WidgetConfigurations, WidgetEvent, WidgetEventData, WidgetEventTypes, WidgetLanguage, WidgetParameters, WidgetProperties, WidgetTheme, WidgetType };
23988
+ export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BlockExplorerService, BridgeClaimWithdrawalFailed, BridgeClaimWithdrawalSuccess, BridgeEventType, BridgeFailed, BridgeFundingStep, BridgeTransactionSent, BridgeWidgetConfiguration, BridgeWidgetParams, BuyOrder, BuyOverrides, BuyParams, BuyResult, BuyResultFailed, BuyResultFulfillmentsUnsettled, BuyResultInsufficientFunds, BuyResultSuccess, BuyToken, CancelOverrides, CancelParams, CancelResult, CancelResultFailed, CancelResultFulfillmentsUnsettled, CancelResultSuccess, ChainId, ChainName, ChainSlug, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutBridgeConfiguration, CheckoutConfiguration, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutOnRampConfiguration, CheckoutStatus, CheckoutSwapConfiguration, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectResult, ConnectTargetLayer, ConnectWidgetConfiguration, ConnectWidgetParams, ConnectionFailed, ConnectionSuccess, CreateProviderParams, CreateProviderResult, DexConfig, ERC20ItemRequirement, ERC721Balance, ERC721ItemRequirement, ErrorType, ExchangeType, Fee, FeePercentage, FeeToken, FeeType, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetTokenInfoParams, GetWalletAllowListParams, GetWalletAllowListResult, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, IWidgetsFactory, ItemBalance, ItemType, LanguageChanged, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, NoRouteOptions, NoRoutesFound, OnRampEventType, OnRampFailed, OnRampFundingStep, OnRampProviderFees, OnRampSuccess, OnRampWidgetParams, OnrampWidgetConfiguration, OrchestrationEvent, OrchestrationEventData, OrchestrationEventType, OrderFee, ProviderEvent, ProviderEventType, ProviderUpdated, RemoteConfiguration, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, RoutesFound, RoutingOutcome, RoutingOutcomeType, SaleEventType, SaleFailed, SaleItem, SalePaymentMethod, SalePaymentTypes, SaleSuccess, SaleTransactionSuccess, SaleWidgetConfiguration, SaleWidgetParams, SellOrder, SellParams, SellResult, SellResultFailed, SellResultInsufficientFunds, SellResultSuccess, SellToken, SemanticVersion, SendTransactionParams, SendTransactionResult, SmartCheckoutInsufficient, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SmartCheckoutSufficient, SwapEventType, SwapFailed, SwapFundingStep, SwapRejected, SwapSuccess, SwapWidgetConfiguration, SwapWidgetParams, SwitchNetworkParams, SwitchNetworkResult, TokenAmountEstimate, TokenBalance, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletDisconnect, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitch, WalletProviderName, WalletWidgetConfiguration, WalletWidgetParams, Widget, WidgetConfiguration, WidgetConfigurations, WidgetEvent, WidgetEventData, WidgetEventTypes, WidgetLanguage, WidgetParameters, WidgetProperties, WidgetTheme, WidgetType };