@imtbl/sdk 0.26.0 → 0.27.0

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.
@@ -11030,11 +11030,11 @@ type BuyResult = BuyResultSuccess | BuyResultFailed | BuyResultInsufficientFunds
11030
11030
  /**
11031
11031
  * Represents the result of {@link Checkout.buy}
11032
11032
  * @property {CheckoutStatus.SUCCESS} status - The status to indicate success
11033
- * @property {SmartCheckoutSufficient[]} smartCheckoutResult - The sufficient result of smart checkout
11033
+ * @property {SmartCheckoutSufficient} smartCheckoutResult - The sufficient result of smart checkout
11034
11034
  */
11035
11035
  type BuyResultSuccess = {
11036
11036
  status: CheckoutStatus.SUCCESS;
11037
- smartCheckoutResult: SmartCheckoutSufficient[];
11037
+ smartCheckoutResult: SmartCheckoutSufficient;
11038
11038
  };
11039
11039
  /**
11040
11040
  * Represents the result of {@link Checkout.buy}
@@ -11047,49 +11047,49 @@ type BuyResultFailed = {
11047
11047
  status: CheckoutStatus.FAILED;
11048
11048
  transactionHash: string;
11049
11049
  reason: string;
11050
- smartCheckoutResult: SmartCheckoutSufficient[];
11050
+ smartCheckoutResult: SmartCheckoutSufficient;
11051
11051
  };
11052
11052
  /**
11053
11053
  * Represents the result of {@link Checkout.buy}
11054
11054
  * @property {CheckoutStatus.INSUFFICIENT_FUNDS} status - The status to indicate insufficient funds
11055
- * @property {SmartCheckoutInsufficient[]} smartCheckoutResult - The insufficient result of smart checkout
11055
+ * @property {SmartCheckoutInsufficient} smartCheckoutResult - The insufficient result of smart checkout
11056
11056
  */
11057
11057
  type BuyResultInsufficientFunds = {
11058
11058
  status: CheckoutStatus.INSUFFICIENT_FUNDS;
11059
- smartCheckoutResult: SmartCheckoutInsufficient[];
11059
+ smartCheckoutResult: SmartCheckoutInsufficient;
11060
11060
  };
11061
11061
  type SellResult = SellResultSuccess | SellResultFailed | SellResultInsufficientFunds;
11062
11062
  /**
11063
11063
  * Represents the result of {@link Checkout.sell}
11064
11064
  * @property {CheckoutStatus.SUCCESS} status - The status to indicate success
11065
- * @property {SmartCheckoutSufficient[]} smartCheckoutResult - The sufficient result of smart checkout
11065
+ * @property {SmartCheckoutSufficient} smartCheckoutResult - The sufficient result of smart checkout
11066
11066
  */
11067
11067
  type SellResultSuccess = {
11068
11068
  status: CheckoutStatus.SUCCESS;
11069
11069
  orderIds: string[];
11070
- smartCheckoutResult: SmartCheckoutSufficient[];
11070
+ smartCheckoutResult: SmartCheckoutSufficient;
11071
11071
  };
11072
11072
  /**
11073
11073
  * Represents the result of {@link Checkout.sell}
11074
11074
  * @property {CheckoutStatus.FAILED} status - The status to indicate failure
11075
11075
  * @property {string} transactionHash - The transaction hash of the failed transaction
11076
11076
  * @property {string} reason - The reason for the failure
11077
- * @property {SmartCheckoutSufficient[]} smartCheckoutResult - The sufficient result of smart checkout
11077
+ * @property {SmartCheckoutSufficient} smartCheckoutResult - The sufficient result of smart checkout
11078
11078
  */
11079
11079
  type SellResultFailed = {
11080
11080
  status: CheckoutStatus.FAILED;
11081
11081
  transactionHash: string;
11082
11082
  reason: string;
11083
- smartCheckoutResult: SmartCheckoutSufficient[];
11083
+ smartCheckoutResult: SmartCheckoutSufficient;
11084
11084
  };
11085
11085
  /**
11086
11086
  * Represents the result of {@link Checkout.sell}
11087
11087
  * @property {CheckoutStatus.INSUFFICIENT_FUNDS} status - The status to indicate insufficient funds
11088
- * @property {SmartCheckoutInsufficient[]} smartCheckoutResult - The insufficient result of smart checkout
11088
+ * @property {SmartCheckoutInsufficient} smartCheckoutResult - The insufficient result of smart checkout
11089
11089
  */
11090
11090
  type SellResultInsufficientFunds = {
11091
11091
  status: CheckoutStatus.INSUFFICIENT_FUNDS;
11092
- smartCheckoutResult: SmartCheckoutInsufficient[];
11092
+ smartCheckoutResult: SmartCheckoutInsufficient;
11093
11093
  };
11094
11094
  type CancelResult = CancelResultSuccess | CancelResultFailed;
11095
11095
  /**
@@ -11324,13 +11324,11 @@ type SmartCheckoutInsufficient = {
11324
11324
  };
11325
11325
  /**
11326
11326
  * Represents the routing outcome for a transaction.
11327
- * @property {boolean} isPassport - Indicates if the provider used was a passport provider.
11328
11327
  * @property {AvailableRoutingOptions} availableRoutingOptions - The routing options available to the user
11329
11328
  * @property {RoutingOutcome} routingOutcome - The routing outcome for the transaction which
11330
11329
  * includes the funding routes if routes were found
11331
11330
  */
11332
11331
  type SmartCheckoutRouter = {
11333
- isPassport: boolean;
11334
11332
  availableRoutingOptions: AvailableRoutingOptions;
11335
11333
  routingOutcome: RoutingOutcome;
11336
11334
  };
@@ -11559,24 +11557,6 @@ type AvailableRoutingOptions = {
11559
11557
  swap?: boolean;
11560
11558
  bridge?: boolean;
11561
11559
  };
11562
- type FundingRouteFeeEstimate = SwapRouteFeeEstimate | BridgeRouteFeeEstimate;
11563
- type SwapRouteFeeEstimate = {
11564
- type: FundingStepType.SWAP;
11565
- estimatedAmount: BigNumber;
11566
- token: TokenInfo;
11567
- };
11568
- type BridgeRouteFeeEstimate = {
11569
- type: FundingStepType.BRIDGE;
11570
- gasFee: {
11571
- estimatedAmount: BigNumber;
11572
- token?: TokenInfo;
11573
- };
11574
- bridgeFee: {
11575
- estimatedAmount: BigNumber;
11576
- token?: TokenInfo;
11577
- };
11578
- totalFees: BigNumber;
11579
- };
11580
11560
  /**
11581
11561
  * Interface representing the parameters for {@link Checkout.buy}
11582
11562
  * @property {Web3Provider} provider - The provider to use for the buy.
@@ -12268,4 +12248,4 @@ declare class Checkout {
12268
12248
  getExchangeFeeEstimate(): Promise<OnRampProviderFees>;
12269
12249
  }
12270
12250
 
12271
- export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BuyOrder, BuyParams, BuyResult, BuyToken, CHECKOUT_API_BASE_URL, CancelParams, CancelResult, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutStatus, ConnectParams, ConnectResult, DexConfig, ERC20ItemRequirement, ERC721ItemRequirement, ErrorType, ExchangeType, FeePercentage, FeeToken, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingRouteFeeEstimate, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, ItemBalance, ItemType, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, OrderFee, RemoteConfiguration, RoutingOutcome, RoutingOutcomeType, SellOrder, SellParams, SellResult, SellToken, SendTransactionParams, SendTransactionResult, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletFilter, WalletFilterTypes, WalletInfo, WalletProviderName };
12251
+ export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BridgeFundingStep, BuyOrder, BuyParams, BuyResult, BuyResultFailed, BuyResultInsufficientFunds, BuyResultSuccess, BuyToken, CHECKOUT_API_BASE_URL, CancelParams, CancelResult, CancelResultFailed, CancelResultSuccess, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutStatus, ConnectParams, ConnectResult, DexConfig, ERC20ItemRequirement, ERC721Balance, ERC721ItemRequirement, ErrorType, ExchangeType, FeePercentage, FeeToken, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, ItemBalance, ItemType, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, NoRouteOptions, NoRoutesFound, OnRampFundingStep, OrderFee, RemoteConfiguration, RoutesFound, RoutingOutcome, RoutingOutcomeType, SellOrder, SellParams, SellResult, SellResultFailed, SellResultInsufficientFunds, SellResultSuccess, SellToken, SendTransactionParams, SendTransactionResult, SmartCheckoutInsufficient, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SmartCheckoutSufficient, SwapFundingStep, SwitchNetworkParams, SwitchNetworkResult, TokenBalance, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletFilter, WalletFilterTypes, WalletInfo, WalletProviderName };
@@ -20461,7 +20461,7 @@ class APIError extends Error {
20461
20461
 
20462
20462
  /* eslint-disable implicit-arrow-linebreak */
20463
20463
  const defaultHeaders = {
20464
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.26.0',
20464
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.0',
20465
20465
  };
20466
20466
  /**
20467
20467
  * createAPIConfiguration to create a custom Configuration
@@ -24069,15 +24069,6 @@ const $c16168a9c28ae4fd$export$92606e71d0a264ff = async (config, ownerAddress, b
24069
24069
  fundingRoutes: []
24070
24070
  };
24071
24071
  let priority = 0;
24072
- if (bridgeFundingStep) {
24073
- priority++;
24074
- response.fundingRoutes.push({
24075
- priority: priority,
24076
- steps: [
24077
- bridgeFundingStep
24078
- ]
24079
- });
24080
- }
24081
24072
  if (swapFundingSteps.length > 0) {
24082
24073
  priority++;
24083
24074
  swapFundingSteps.forEach((swapFundingStep)=>{
@@ -24089,6 +24080,15 @@ const $c16168a9c28ae4fd$export$92606e71d0a264ff = async (config, ownerAddress, b
24089
24080
  });
24090
24081
  });
24091
24082
  }
24083
+ if (bridgeFundingStep) {
24084
+ priority++;
24085
+ response.fundingRoutes.push({
24086
+ priority: priority,
24087
+ steps: [
24088
+ bridgeFundingStep
24089
+ ]
24090
+ });
24091
+ }
24092
24092
  if (onRampFundingStep) {
24093
24093
  priority++;
24094
24094
  response.fundingRoutes.push({
@@ -24136,12 +24136,10 @@ const $0e7419077c373b24$export$9e073f9ada8c81e6 = async (config, provider, itemR
24136
24136
  };
24137
24137
  const availableRoutingOptions = await ($7f2e17f026d4fc8d$export$86d9f998ddda013e)(config, provider);
24138
24138
  const routingOutcome = await ($c16168a9c28ae4fd$export$92606e71d0a264ff)(config, ownerAddress, balanceCheckResult, availableRoutingOptions);
24139
- const isPassport = provider.provider?.isPassport || false;
24140
24139
  return {
24141
24140
  sufficient: sufficient,
24142
24141
  transactionRequirements: transactionRequirements,
24143
24142
  router: {
24144
- isPassport: isPassport,
24145
24143
  availableRoutingOptions: availableRoutingOptions,
24146
24144
  routingOutcome: routingOutcome
24147
24145
  }
@@ -24355,7 +24353,7 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
24355
24353
  let order;
24356
24354
  let spenderAddress = "";
24357
24355
  const gasLimit = (constants).estimatedFulfillmentGasGwei;
24358
- if (orders.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orders were passed in, must pass at least one order", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).FULFILL_ORDER_LISTING_ERROR);
24356
+ if (orders.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orders were provided to the orders array. Please provide at least one order.", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).FULFILL_ORDER_LISTING_ERROR);
24359
24357
  const { id: id, takerFees: takerFees } = orders[0];
24360
24358
  try {
24361
24359
  orderbook = await $67fc622a2b913d5f$export$c60ce6c6a92bc2ff(config);
@@ -24431,9 +24429,7 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
24431
24429
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).FAILED,
24432
24430
  transactionHash: approvalResult.transactionHash,
24433
24431
  reason: approvalResult.reason,
24434
- smartCheckoutResult: [
24435
- smartCheckoutResult
24436
- ]
24432
+ smartCheckoutResult: smartCheckoutResult
24437
24433
  };
24438
24434
  try {
24439
24435
  if (unsignedFulfillmentTransactions.length === 0) unsignedFulfillmentTransactions = await (0, $a7367d01c6e76b1c$export$396bd6ce7d3ab533)(orderActions);
@@ -24447,22 +24443,16 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
24447
24443
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).FAILED,
24448
24444
  transactionHash: fulfillmentResult.transactionHash,
24449
24445
  reason: fulfillmentResult.reason,
24450
- smartCheckoutResult: [
24451
- smartCheckoutResult
24452
- ]
24446
+ smartCheckoutResult: smartCheckoutResult
24453
24447
  };
24454
24448
  return {
24455
24449
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).SUCCESS,
24456
- smartCheckoutResult: [
24457
- smartCheckoutResult
24458
- ]
24450
+ smartCheckoutResult: smartCheckoutResult
24459
24451
  };
24460
24452
  }
24461
24453
  return {
24462
24454
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).INSUFFICIENT_FUNDS,
24463
- smartCheckoutResult: [
24464
- smartCheckoutResult
24465
- ]
24455
+ smartCheckoutResult: smartCheckoutResult
24466
24456
  };
24467
24457
  };
24468
24458
 
@@ -24476,7 +24466,7 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
24476
24466
 
24477
24467
  const $9c3db1bb9c8b69d3$export$70b61ad426ddbe54 = async (config, provider, orderIds)=>{
24478
24468
  let unsignedCancelOrderTransaction;
24479
- if (orderIds.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orderIds were passed in, must pass at least one orderId to cancel", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).CANCEL_ORDER_LISTING_ERROR);
24469
+ if (orderIds.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orderIds were provided to the orderIds array. Please provide at least one orderId.", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).CANCEL_ORDER_LISTING_ERROR);
24480
24470
  // Update this when bulk cancel is supported
24481
24471
  const orderId = orderIds[0];
24482
24472
  try {
@@ -24537,7 +24527,7 @@ const $9085b221b72ac69e$export$e761f9e0703de895 = async (config, provider, order
24537
24527
  let orderbook;
24538
24528
  let listing;
24539
24529
  let spenderAddress = "";
24540
- if (orders.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orders were parsed, must parse at least one order", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PREPARE_ORDER_LISTING_ERROR);
24530
+ if (orders.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orders were provided to the orders array. Please provide at least one order.", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PREPARE_ORDER_LISTING_ERROR);
24541
24531
  const { buyToken: buyToken, sellToken: sellToken, makerFees: makerFees } = orders[0];
24542
24532
  let decimals = 18;
24543
24533
  if (buyToken.type === ($4b58188d47aafe8d$export$1fc8f52ad1810e52).ERC20) {
@@ -24584,9 +24574,7 @@ const $9085b221b72ac69e$export$e761f9e0703de895 = async (config, provider, order
24584
24574
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).FAILED,
24585
24575
  transactionHash: approvalResult.transactionHash,
24586
24576
  reason: approvalResult.reason,
24587
- smartCheckoutResult: [
24588
- smartCheckoutResult
24589
- ]
24577
+ smartCheckoutResult: smartCheckoutResult
24590
24578
  };
24591
24579
  const unsignedMessage = ($a7367d01c6e76b1c$export$d62081fac18000c2)(listing.orderHash, listing.orderComponents, listing.actions);
24592
24580
  if (!unsignedMessage) // For sell it is expected the orderbook will always return an unsigned message
@@ -24623,16 +24611,12 @@ const $9085b221b72ac69e$export$e761f9e0703de895 = async (config, provider, order
24623
24611
  orderIds: [
24624
24612
  orderId
24625
24613
  ],
24626
- smartCheckoutResult: [
24627
- smartCheckoutResult
24628
- ]
24614
+ smartCheckoutResult: smartCheckoutResult
24629
24615
  };
24630
24616
  }
24631
24617
  return {
24632
24618
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).INSUFFICIENT_FUNDS,
24633
- smartCheckoutResult: [
24634
- smartCheckoutResult
24635
- ]
24619
+ smartCheckoutResult: smartCheckoutResult
24636
24620
  };
24637
24621
  };
24638
24622
 
@@ -25581,27 +25581,27 @@ type WalletNetworkSwitchEvent = {
25581
25581
  */
25582
25582
  type WalletDisconnectWalletEvent = {};
25583
25583
  /**
25584
- * Enum representing possible Primary Revenue Widget event types.
25584
+ * Enum representing possible Sale Widget event types.
25585
25585
  */
25586
- declare enum PrimaryRevenueEventType {
25586
+ declare enum SaleEventType {
25587
25587
  CLOSE_WIDGET = "close-widget",
25588
25588
  SUCCESS = "success",
25589
25589
  FAILURE = "failure",
25590
25590
  REJECTED = "rejected"
25591
25591
  }
25592
25592
  /**
25593
- * Represents a successful primary revenue transaction.
25593
+ * Represents a successful Sale transaction.
25594
25594
  * @property {string} transactionHash - The hash of the successful transaction.
25595
25595
  */
25596
- type PrimaryRevenueSuccess = {
25596
+ type SaleSuccess = {
25597
25597
  [key: string]: string;
25598
25598
  };
25599
25599
  /**
25600
- * Type representing a PrimaryRevenue Widget with type FAILURE.
25600
+ * Type representing a Sale Widget with type FAILURE.
25601
25601
  * @property {string} reason - The reason why the swap failed.
25602
25602
  * @property {number} timestamp - The timestamp of the failed swap.
25603
25603
  */
25604
- type PrimaryRevenueFailed = {
25604
+ type SaleFailed = {
25605
25605
  reason: string;
25606
25606
  timestamp: number;
25607
25607
  };
@@ -25614,16 +25614,16 @@ declare enum IMTBLWidgetEvents {
25614
25614
  IMTBL_SWAP_WIDGET_EVENT = "imtbl-swap-widget",
25615
25615
  IMTBL_BRIDGE_WIDGET_EVENT = "imtbl-bridge-widget",
25616
25616
  IMTBL_ONRAMP_WIDGET_EVENT = "imtbl-onramp-widget",
25617
- IMTBL_PRIMARY_REVENUE_WIDGET_EVENT = "imtbl-primary-revenue-widget"
25617
+ IMTBL_PRIMARY_REVENUE_WIDGET_EVENT = "imtbl-sale-widget"
25618
25618
  }
25619
25619
  /**
25620
25620
  * Represents an event emitted by a widget.
25621
25621
  * @template T - The type of data associated with the event.
25622
- * @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | PrimaryRevenueEventType} type - The type of the event.
25622
+ * @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | SaleEventType} type - The type of the event.
25623
25623
  * @property {T} data - The data associated with the event.
25624
25624
  */
25625
25625
  type WidgetEvent<T> = {
25626
- type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | PrimaryRevenueEventType;
25626
+ type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | SaleEventType;
25627
25627
  data: T;
25628
25628
  };
25629
25629
  /**
@@ -25652,7 +25652,7 @@ declare global {
25652
25652
  'imtbl-swap': ImtblSwapProps;
25653
25653
  'imtbl-bridge': ImtblBridgeProps;
25654
25654
  'imtbl-onramp': ImtblOnRampProps;
25655
- 'imtbl-primary-revenue': ImtblPrimaryRevenueProps;
25655
+ 'imtbl-sale': ImtblSaleProps;
25656
25656
  }
25657
25657
  }
25658
25658
  interface ImmutableWebComponent {
@@ -25734,9 +25734,9 @@ interface ImtblOnRampProps extends React.DetailedHTMLProps<React.HTMLAttributes<
25734
25734
  contractAddress?: string;
25735
25735
  }
25736
25736
  /**
25737
- * Interface for the properties of the primary revenue web component.
25737
+ * Interface for the properties of the Sale web component.
25738
25738
  * Extends the React.DetailedHTMLProps interface to inherit HTML attributes for an HTMLElement.
25739
- * @interface ImtblPrimaryRevenueProps
25739
+ * @interface ImtblSaleProps
25740
25740
  * @extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>
25741
25741
  * @property {string | undefined} widgetConfig - Optional string representing the widget configuration.
25742
25742
  * @property {string | undefined} amount - The amount to be paid.
@@ -25745,7 +25745,7 @@ interface ImtblOnRampProps extends React.DetailedHTMLProps<React.HTMLAttributes<
25745
25745
  * @property {string | undefined} env - The environment to use: SANDBOX, DEV, PRODUCTION, ...
25746
25746
  * @property {string | undefined} environmentId - The environment id from Immutable Hub.
25747
25747
  */
25748
- interface ImtblPrimaryRevenueProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
25748
+ interface ImtblSaleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
25749
25749
  widgetConfig?: string;
25750
25750
  amount: string;
25751
25751
  products: string;
@@ -25853,4 +25853,4 @@ interface OnRampReactProps {
25853
25853
  */
25854
25854
  declare function OnRampReact(props: OnRampReactProps): JSX.Element;
25855
25855
 
25856
- export { BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectReact, ConnectReactProps, ConnectionFailed, ConnectionSuccess, IMTBLWidgetEvents, ImtblBridgeProps, ImtblConnectProps, ImtblOnRampProps, ImtblPrimaryRevenueProps, ImtblSwapProps, ImtblWalletProps, OnRampEventType, OnRampFailed, OnRampReact, OnRampReactProps, OnRampSuccess, OrchestrationEventType, PrimaryRevenueEventType, PrimaryRevenueFailed, PrimaryRevenueSuccess, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SemanticVersion, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletNetworkSwitchEvent, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme };
25856
+ export { BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectReact, ConnectReactProps, ConnectionFailed, ConnectionSuccess, IMTBLWidgetEvents, ImtblBridgeProps, ImtblConnectProps, ImtblOnRampProps, ImtblSaleProps, ImtblSwapProps, ImtblWalletProps, OnRampEventType, OnRampFailed, OnRampReact, OnRampReactProps, OnRampSuccess, OrchestrationEventType, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SaleEventType, SaleFailed, SaleSuccess, SemanticVersion, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletNetworkSwitchEvent, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme };
@@ -25,7 +25,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
25
25
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
26
26
 
27
27
 
28
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.26.0";
28
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.0";
29
29
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
30
30
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
31
31
 
@@ -159,7 +159,7 @@ var $207ed853f11d19d5$export$5a0ace85cae72d45;
159
159
  IMTBLWidgetEvents["IMTBL_SWAP_WIDGET_EVENT"] = "imtbl-swap-widget";
160
160
  IMTBLWidgetEvents["IMTBL_BRIDGE_WIDGET_EVENT"] = "imtbl-bridge-widget";
161
161
  IMTBLWidgetEvents["IMTBL_ONRAMP_WIDGET_EVENT"] = "imtbl-onramp-widget";
162
- IMTBLWidgetEvents["IMTBL_PRIMARY_REVENUE_WIDGET_EVENT"] = "imtbl-primary-revenue-widget";
162
+ IMTBLWidgetEvents["IMTBL_PRIMARY_REVENUE_WIDGET_EVENT"] = "imtbl-sale-widget";
163
163
  })($207ed853f11d19d5$export$5a0ace85cae72d45 || ($207ed853f11d19d5$export$5a0ace85cae72d45 = {}));
164
164
 
165
165
 
@@ -199,18 +199,18 @@ $parcel$export($53d219e7f6bf0cd6$exports, "SwapEventType", () => $53d219e7f6bf0c
199
199
  })($53d219e7f6bf0cd6$export$140a49745ab55563 || ($53d219e7f6bf0cd6$export$140a49745ab55563 = {}));
200
200
 
201
201
 
202
- var $8c83f59522c4ca40$exports = {};
202
+ var $9b3189b6b155842e$exports = {};
203
203
 
204
- $parcel$export($8c83f59522c4ca40$exports, "PrimaryRevenueEventType", () => $8c83f59522c4ca40$export$b33478ffb988bd5e);
204
+ $parcel$export($9b3189b6b155842e$exports, "SaleEventType", () => $9b3189b6b155842e$export$881881ffb3bd733e);
205
205
  /**
206
- * Enum representing possible Primary Revenue Widget event types.
207
- */ var $8c83f59522c4ca40$export$b33478ffb988bd5e;
208
- (function(PrimaryRevenueEventType) {
209
- PrimaryRevenueEventType["CLOSE_WIDGET"] = "close-widget";
210
- PrimaryRevenueEventType["SUCCESS"] = "success";
211
- PrimaryRevenueEventType["FAILURE"] = "failure";
212
- PrimaryRevenueEventType["REJECTED"] = "rejected";
213
- })($8c83f59522c4ca40$export$b33478ffb988bd5e || ($8c83f59522c4ca40$export$b33478ffb988bd5e = {}));
206
+ * Enum representing possible Sale Widget event types.
207
+ */ var $9b3189b6b155842e$export$881881ffb3bd733e;
208
+ (function(SaleEventType) {
209
+ SaleEventType["CLOSE_WIDGET"] = "close-widget";
210
+ SaleEventType["SUCCESS"] = "success";
211
+ SaleEventType["FAILURE"] = "failure";
212
+ SaleEventType["REJECTED"] = "rejected";
213
+ })($9b3189b6b155842e$export$881881ffb3bd733e || ($9b3189b6b155842e$export$881881ffb3bd733e = {}));
214
214
 
215
215
 
216
216
  var $15cc9e120aa6f3bf$exports = {};
@@ -446,4 +446,4 @@ function $f94f63f2c041a04c$export$9e363c61ea99bbb4(props) {
446
446
  });
447
447
  }
448
448
 
449
- export { $15cc9e120aa6f3bf$export$d1bfa21f7c76447a as BridgeEventType, $1f969328e5988c99$export$30f61ebf204c69f6 as BridgeReact, $045213b18e9f1f94$export$75be0f6af9650f2c as CheckoutWidgetTagNames, $430e3eda76fa4d5f$export$af210a0808087845 as CheckoutWidgets, $a85ecdbd885c58ad$export$e72e7f9969a47dd3 as ConnectEventType, $f2083cd30e2f5c56$export$49d62957f420a1e2 as ConnectReact, $207ed853f11d19d5$export$5a0ace85cae72d45 as IMTBLWidgetEvents, $d882ddc5600b1284$export$66ec39c0924078d8 as OnRampEventType, $f94f63f2c041a04c$export$9e363c61ea99bbb4 as OnRampReact, $ad06b030b1a3ba34$export$b80d2daf830437b9 as OrchestrationEventType, $8c83f59522c4ca40$export$b33478ffb988bd5e as PrimaryRevenueEventType, $53d219e7f6bf0cd6$export$140a49745ab55563 as SwapEventType, $a4fbb8e3a6aeff58$export$971e031379577f4 as SwapReact, $430e3eda76fa4d5f$export$bf1548ba7e61c17f as UpdateConfig, $77b6aac5c353d4a9$export$d9be06b70b28c742 as WalletEventType, $89d55ace0f8f1c07$export$ceaac94f34dba154 as WalletReact, $045213b18e9f1f94$export$c88931fdc51854eb as WidgetTheme };
449
+ export { $15cc9e120aa6f3bf$export$d1bfa21f7c76447a as BridgeEventType, $1f969328e5988c99$export$30f61ebf204c69f6 as BridgeReact, $045213b18e9f1f94$export$75be0f6af9650f2c as CheckoutWidgetTagNames, $430e3eda76fa4d5f$export$af210a0808087845 as CheckoutWidgets, $a85ecdbd885c58ad$export$e72e7f9969a47dd3 as ConnectEventType, $f2083cd30e2f5c56$export$49d62957f420a1e2 as ConnectReact, $207ed853f11d19d5$export$5a0ace85cae72d45 as IMTBLWidgetEvents, $d882ddc5600b1284$export$66ec39c0924078d8 as OnRampEventType, $f94f63f2c041a04c$export$9e363c61ea99bbb4 as OnRampReact, $ad06b030b1a3ba34$export$b80d2daf830437b9 as OrchestrationEventType, $9b3189b6b155842e$export$881881ffb3bd733e as SaleEventType, $53d219e7f6bf0cd6$export$140a49745ab55563 as SwapEventType, $a4fbb8e3a6aeff58$export$971e031379577f4 as SwapReact, $430e3eda76fa4d5f$export$bf1548ba7e61c17f as UpdateConfig, $77b6aac5c353d4a9$export$d9be06b70b28c742 as WalletEventType, $89d55ace0f8f1c07$export$ceaac94f34dba154 as WalletReact, $045213b18e9f1f94$export$c88931fdc51854eb as WidgetTheme };
@@ -16,7 +16,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
16
16
  chainID,
17
17
  coreContractAddress,
18
18
  registrationContractAddress,
19
- sdkVersion: 'ts-immutable-sdk-0.26.0',
19
+ sdkVersion: 'ts-immutable-sdk-0.27.0',
20
20
  });
21
21
  /**
22
22
  * Sets `sdkVersion` at the time of build