@imtbl/sdk 0.26.0 → 0.27.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.
- package/dist/blockchain_data.d.ts +6 -0
- package/dist/blockchain_data.js +136 -17
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +12 -32
- package/dist/checkout_sdk.js +161 -58
- package/dist/checkout_widgets.d.ts +14 -14
- package/dist/checkout_widgets.js +13 -13
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +170 -67
- package/dist/index.d.ts +75 -55
- package/dist/index.js +170 -67
- package/dist/passport.js +13 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2302,6 +2302,12 @@ interface CollectionsApiListCollectionsRequest$1 {
|
|
|
2302
2302
|
* @memberof CollectionsApiListCollections
|
|
2303
2303
|
*/
|
|
2304
2304
|
readonly chainName: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* List of contract addresses to filter by
|
|
2307
|
+
* @type {Array<string>}
|
|
2308
|
+
* @memberof CollectionsApiListCollections
|
|
2309
|
+
*/
|
|
2310
|
+
readonly contractAddress?: Array<string>;
|
|
2305
2311
|
/**
|
|
2306
2312
|
* Datetime to use as the oldest updated timestamp
|
|
2307
2313
|
* @type {string}
|
|
@@ -15282,11 +15288,11 @@ type BuyResult = BuyResultSuccess | BuyResultFailed | BuyResultInsufficientFunds
|
|
|
15282
15288
|
/**
|
|
15283
15289
|
* Represents the result of {@link Checkout.buy}
|
|
15284
15290
|
* @property {CheckoutStatus.SUCCESS} status - The status to indicate success
|
|
15285
|
-
* @property {SmartCheckoutSufficient
|
|
15291
|
+
* @property {SmartCheckoutSufficient} smartCheckoutResult - The sufficient result of smart checkout
|
|
15286
15292
|
*/
|
|
15287
15293
|
type BuyResultSuccess = {
|
|
15288
15294
|
status: CheckoutStatus.SUCCESS;
|
|
15289
|
-
smartCheckoutResult: SmartCheckoutSufficient
|
|
15295
|
+
smartCheckoutResult: SmartCheckoutSufficient;
|
|
15290
15296
|
};
|
|
15291
15297
|
/**
|
|
15292
15298
|
* Represents the result of {@link Checkout.buy}
|
|
@@ -15299,49 +15305,49 @@ type BuyResultFailed = {
|
|
|
15299
15305
|
status: CheckoutStatus.FAILED;
|
|
15300
15306
|
transactionHash: string;
|
|
15301
15307
|
reason: string;
|
|
15302
|
-
smartCheckoutResult: SmartCheckoutSufficient
|
|
15308
|
+
smartCheckoutResult: SmartCheckoutSufficient;
|
|
15303
15309
|
};
|
|
15304
15310
|
/**
|
|
15305
15311
|
* Represents the result of {@link Checkout.buy}
|
|
15306
15312
|
* @property {CheckoutStatus.INSUFFICIENT_FUNDS} status - The status to indicate insufficient funds
|
|
15307
|
-
* @property {SmartCheckoutInsufficient
|
|
15313
|
+
* @property {SmartCheckoutInsufficient} smartCheckoutResult - The insufficient result of smart checkout
|
|
15308
15314
|
*/
|
|
15309
15315
|
type BuyResultInsufficientFunds = {
|
|
15310
15316
|
status: CheckoutStatus.INSUFFICIENT_FUNDS;
|
|
15311
|
-
smartCheckoutResult: SmartCheckoutInsufficient
|
|
15317
|
+
smartCheckoutResult: SmartCheckoutInsufficient;
|
|
15312
15318
|
};
|
|
15313
15319
|
type SellResult = SellResultSuccess | SellResultFailed | SellResultInsufficientFunds;
|
|
15314
15320
|
/**
|
|
15315
15321
|
* Represents the result of {@link Checkout.sell}
|
|
15316
15322
|
* @property {CheckoutStatus.SUCCESS} status - The status to indicate success
|
|
15317
|
-
* @property {SmartCheckoutSufficient
|
|
15323
|
+
* @property {SmartCheckoutSufficient} smartCheckoutResult - The sufficient result of smart checkout
|
|
15318
15324
|
*/
|
|
15319
15325
|
type SellResultSuccess = {
|
|
15320
15326
|
status: CheckoutStatus.SUCCESS;
|
|
15321
15327
|
orderIds: string[];
|
|
15322
|
-
smartCheckoutResult: SmartCheckoutSufficient
|
|
15328
|
+
smartCheckoutResult: SmartCheckoutSufficient;
|
|
15323
15329
|
};
|
|
15324
15330
|
/**
|
|
15325
15331
|
* Represents the result of {@link Checkout.sell}
|
|
15326
15332
|
* @property {CheckoutStatus.FAILED} status - The status to indicate failure
|
|
15327
15333
|
* @property {string} transactionHash - The transaction hash of the failed transaction
|
|
15328
15334
|
* @property {string} reason - The reason for the failure
|
|
15329
|
-
* @property {SmartCheckoutSufficient
|
|
15335
|
+
* @property {SmartCheckoutSufficient} smartCheckoutResult - The sufficient result of smart checkout
|
|
15330
15336
|
*/
|
|
15331
15337
|
type SellResultFailed = {
|
|
15332
15338
|
status: CheckoutStatus.FAILED;
|
|
15333
15339
|
transactionHash: string;
|
|
15334
15340
|
reason: string;
|
|
15335
|
-
smartCheckoutResult: SmartCheckoutSufficient
|
|
15341
|
+
smartCheckoutResult: SmartCheckoutSufficient;
|
|
15336
15342
|
};
|
|
15337
15343
|
/**
|
|
15338
15344
|
* Represents the result of {@link Checkout.sell}
|
|
15339
15345
|
* @property {CheckoutStatus.INSUFFICIENT_FUNDS} status - The status to indicate insufficient funds
|
|
15340
|
-
* @property {SmartCheckoutInsufficient
|
|
15346
|
+
* @property {SmartCheckoutInsufficient} smartCheckoutResult - The insufficient result of smart checkout
|
|
15341
15347
|
*/
|
|
15342
15348
|
type SellResultInsufficientFunds = {
|
|
15343
15349
|
status: CheckoutStatus.INSUFFICIENT_FUNDS;
|
|
15344
|
-
smartCheckoutResult: SmartCheckoutInsufficient
|
|
15350
|
+
smartCheckoutResult: SmartCheckoutInsufficient;
|
|
15345
15351
|
};
|
|
15346
15352
|
type CancelResult = CancelResultSuccess | CancelResultFailed;
|
|
15347
15353
|
/**
|
|
@@ -15576,13 +15582,11 @@ type SmartCheckoutInsufficient = {
|
|
|
15576
15582
|
};
|
|
15577
15583
|
/**
|
|
15578
15584
|
* Represents the routing outcome for a transaction.
|
|
15579
|
-
* @property {boolean} isPassport - Indicates if the provider used was a passport provider.
|
|
15580
15585
|
* @property {AvailableRoutingOptions} availableRoutingOptions - The routing options available to the user
|
|
15581
15586
|
* @property {RoutingOutcome} routingOutcome - The routing outcome for the transaction which
|
|
15582
15587
|
* includes the funding routes if routes were found
|
|
15583
15588
|
*/
|
|
15584
15589
|
type SmartCheckoutRouter = {
|
|
15585
|
-
isPassport: boolean;
|
|
15586
15590
|
availableRoutingOptions: AvailableRoutingOptions;
|
|
15587
15591
|
routingOutcome: RoutingOutcome;
|
|
15588
15592
|
};
|
|
@@ -15811,24 +15815,6 @@ type AvailableRoutingOptions = {
|
|
|
15811
15815
|
swap?: boolean;
|
|
15812
15816
|
bridge?: boolean;
|
|
15813
15817
|
};
|
|
15814
|
-
type FundingRouteFeeEstimate = SwapRouteFeeEstimate | BridgeRouteFeeEstimate;
|
|
15815
|
-
type SwapRouteFeeEstimate = {
|
|
15816
|
-
type: FundingStepType.SWAP;
|
|
15817
|
-
estimatedAmount: BigNumber;
|
|
15818
|
-
token: TokenInfo;
|
|
15819
|
-
};
|
|
15820
|
-
type BridgeRouteFeeEstimate = {
|
|
15821
|
-
type: FundingStepType.BRIDGE;
|
|
15822
|
-
gasFee: {
|
|
15823
|
-
estimatedAmount: BigNumber;
|
|
15824
|
-
token?: TokenInfo;
|
|
15825
|
-
};
|
|
15826
|
-
bridgeFee: {
|
|
15827
|
-
estimatedAmount: BigNumber;
|
|
15828
|
-
token?: TokenInfo;
|
|
15829
|
-
};
|
|
15830
|
-
totalFees: BigNumber;
|
|
15831
|
-
};
|
|
15832
15818
|
/**
|
|
15833
15819
|
* Interface representing the parameters for {@link Checkout.buy}
|
|
15834
15820
|
* @property {Web3Provider} provider - The provider to use for the buy.
|
|
@@ -16523,13 +16509,19 @@ declare class Checkout {
|
|
|
16523
16509
|
type checkout_sdk_d_AllowedNetworkConfig = AllowedNetworkConfig;
|
|
16524
16510
|
type checkout_sdk_d_AvailableRoutingOptions = AvailableRoutingOptions;
|
|
16525
16511
|
type checkout_sdk_d_BalanceDelta = BalanceDelta;
|
|
16512
|
+
type checkout_sdk_d_BridgeFundingStep = BridgeFundingStep;
|
|
16526
16513
|
type checkout_sdk_d_BuyOrder = BuyOrder;
|
|
16527
16514
|
type checkout_sdk_d_BuyParams = BuyParams;
|
|
16528
16515
|
type checkout_sdk_d_BuyResult = BuyResult;
|
|
16516
|
+
type checkout_sdk_d_BuyResultFailed = BuyResultFailed;
|
|
16517
|
+
type checkout_sdk_d_BuyResultInsufficientFunds = BuyResultInsufficientFunds;
|
|
16518
|
+
type checkout_sdk_d_BuyResultSuccess = BuyResultSuccess;
|
|
16529
16519
|
type checkout_sdk_d_BuyToken = BuyToken;
|
|
16530
16520
|
declare const checkout_sdk_d_CHECKOUT_API_BASE_URL: typeof CHECKOUT_API_BASE_URL;
|
|
16531
16521
|
type checkout_sdk_d_CancelParams = CancelParams;
|
|
16532
16522
|
type checkout_sdk_d_CancelResult = CancelResult;
|
|
16523
|
+
type checkout_sdk_d_CancelResultFailed = CancelResultFailed;
|
|
16524
|
+
type checkout_sdk_d_CancelResultSuccess = CancelResultSuccess;
|
|
16533
16525
|
type checkout_sdk_d_ChainId = ChainId;
|
|
16534
16526
|
declare const checkout_sdk_d_ChainId: typeof ChainId;
|
|
16535
16527
|
type checkout_sdk_d_ChainName = ChainName;
|
|
@@ -16547,6 +16539,7 @@ type checkout_sdk_d_ConnectParams = ConnectParams;
|
|
|
16547
16539
|
type checkout_sdk_d_ConnectResult = ConnectResult;
|
|
16548
16540
|
type checkout_sdk_d_DexConfig = DexConfig;
|
|
16549
16541
|
type checkout_sdk_d_ERC20ItemRequirement = ERC20ItemRequirement;
|
|
16542
|
+
type checkout_sdk_d_ERC721Balance = ERC721Balance;
|
|
16550
16543
|
type checkout_sdk_d_ERC721ItemRequirement = ERC721ItemRequirement;
|
|
16551
16544
|
type checkout_sdk_d_ErrorType = ErrorType;
|
|
16552
16545
|
type checkout_sdk_d_ExchangeType = ExchangeType;
|
|
@@ -16557,7 +16550,6 @@ type checkout_sdk_d_FiatRampParams = FiatRampParams;
|
|
|
16557
16550
|
type checkout_sdk_d_FulfillmentTransaction = FulfillmentTransaction;
|
|
16558
16551
|
type checkout_sdk_d_FundingItem = FundingItem;
|
|
16559
16552
|
type checkout_sdk_d_FundingRoute = FundingRoute;
|
|
16560
|
-
type checkout_sdk_d_FundingRouteFeeEstimate = FundingRouteFeeEstimate;
|
|
16561
16553
|
type checkout_sdk_d_FundingStep = FundingStep;
|
|
16562
16554
|
type checkout_sdk_d_FundingStepType = FundingStepType;
|
|
16563
16555
|
declare const checkout_sdk_d_FundingStepType: typeof FundingStepType;
|
|
@@ -16590,22 +16582,33 @@ type checkout_sdk_d_NetworkFilter = NetworkFilter;
|
|
|
16590
16582
|
type checkout_sdk_d_NetworkFilterTypes = NetworkFilterTypes;
|
|
16591
16583
|
declare const checkout_sdk_d_NetworkFilterTypes: typeof NetworkFilterTypes;
|
|
16592
16584
|
type checkout_sdk_d_NetworkInfo = NetworkInfo;
|
|
16585
|
+
type checkout_sdk_d_NoRouteOptions = NoRouteOptions;
|
|
16586
|
+
type checkout_sdk_d_NoRoutesFound = NoRoutesFound;
|
|
16587
|
+
type checkout_sdk_d_OnRampFundingStep = OnRampFundingStep;
|
|
16593
16588
|
type checkout_sdk_d_OrderFee = OrderFee;
|
|
16594
16589
|
type checkout_sdk_d_RemoteConfiguration = RemoteConfiguration;
|
|
16590
|
+
type checkout_sdk_d_RoutesFound = RoutesFound;
|
|
16595
16591
|
type checkout_sdk_d_RoutingOutcome = RoutingOutcome;
|
|
16596
16592
|
type checkout_sdk_d_RoutingOutcomeType = RoutingOutcomeType;
|
|
16597
16593
|
declare const checkout_sdk_d_RoutingOutcomeType: typeof RoutingOutcomeType;
|
|
16598
16594
|
type checkout_sdk_d_SellOrder = SellOrder;
|
|
16599
16595
|
type checkout_sdk_d_SellParams = SellParams;
|
|
16600
16596
|
type checkout_sdk_d_SellResult = SellResult;
|
|
16597
|
+
type checkout_sdk_d_SellResultFailed = SellResultFailed;
|
|
16598
|
+
type checkout_sdk_d_SellResultInsufficientFunds = SellResultInsufficientFunds;
|
|
16599
|
+
type checkout_sdk_d_SellResultSuccess = SellResultSuccess;
|
|
16601
16600
|
type checkout_sdk_d_SellToken = SellToken;
|
|
16602
16601
|
type checkout_sdk_d_SendTransactionParams = SendTransactionParams;
|
|
16603
16602
|
type checkout_sdk_d_SendTransactionResult = SendTransactionResult;
|
|
16603
|
+
type checkout_sdk_d_SmartCheckoutInsufficient = SmartCheckoutInsufficient;
|
|
16604
16604
|
type checkout_sdk_d_SmartCheckoutParams = SmartCheckoutParams;
|
|
16605
16605
|
type checkout_sdk_d_SmartCheckoutResult = SmartCheckoutResult;
|
|
16606
16606
|
type checkout_sdk_d_SmartCheckoutRouter = SmartCheckoutRouter;
|
|
16607
|
+
type checkout_sdk_d_SmartCheckoutSufficient = SmartCheckoutSufficient;
|
|
16608
|
+
type checkout_sdk_d_SwapFundingStep = SwapFundingStep;
|
|
16607
16609
|
type checkout_sdk_d_SwitchNetworkParams = SwitchNetworkParams;
|
|
16608
16610
|
type checkout_sdk_d_SwitchNetworkResult = SwitchNetworkResult;
|
|
16611
|
+
type checkout_sdk_d_TokenBalance = TokenBalance;
|
|
16609
16612
|
type checkout_sdk_d_TokenFilter = TokenFilter;
|
|
16610
16613
|
type checkout_sdk_d_TokenFilterTypes = TokenFilterTypes;
|
|
16611
16614
|
declare const checkout_sdk_d_TokenFilterTypes: typeof TokenFilterTypes;
|
|
@@ -16624,13 +16627,19 @@ declare namespace checkout_sdk_d {
|
|
|
16624
16627
|
checkout_sdk_d_AllowedNetworkConfig as AllowedNetworkConfig,
|
|
16625
16628
|
checkout_sdk_d_AvailableRoutingOptions as AvailableRoutingOptions,
|
|
16626
16629
|
checkout_sdk_d_BalanceDelta as BalanceDelta,
|
|
16630
|
+
checkout_sdk_d_BridgeFundingStep as BridgeFundingStep,
|
|
16627
16631
|
checkout_sdk_d_BuyOrder as BuyOrder,
|
|
16628
16632
|
checkout_sdk_d_BuyParams as BuyParams,
|
|
16629
16633
|
checkout_sdk_d_BuyResult as BuyResult,
|
|
16634
|
+
checkout_sdk_d_BuyResultFailed as BuyResultFailed,
|
|
16635
|
+
checkout_sdk_d_BuyResultInsufficientFunds as BuyResultInsufficientFunds,
|
|
16636
|
+
checkout_sdk_d_BuyResultSuccess as BuyResultSuccess,
|
|
16630
16637
|
checkout_sdk_d_BuyToken as BuyToken,
|
|
16631
16638
|
checkout_sdk_d_CHECKOUT_API_BASE_URL as CHECKOUT_API_BASE_URL,
|
|
16632
16639
|
checkout_sdk_d_CancelParams as CancelParams,
|
|
16633
16640
|
checkout_sdk_d_CancelResult as CancelResult,
|
|
16641
|
+
checkout_sdk_d_CancelResultFailed as CancelResultFailed,
|
|
16642
|
+
checkout_sdk_d_CancelResultSuccess as CancelResultSuccess,
|
|
16634
16643
|
checkout_sdk_d_ChainId as ChainId,
|
|
16635
16644
|
checkout_sdk_d_ChainName as ChainName,
|
|
16636
16645
|
checkout_sdk_d_CheckConnectionParams as CheckConnectionParams,
|
|
@@ -16643,6 +16652,7 @@ declare namespace checkout_sdk_d {
|
|
|
16643
16652
|
checkout_sdk_d_ConnectResult as ConnectResult,
|
|
16644
16653
|
checkout_sdk_d_DexConfig as DexConfig,
|
|
16645
16654
|
checkout_sdk_d_ERC20ItemRequirement as ERC20ItemRequirement,
|
|
16655
|
+
checkout_sdk_d_ERC721Balance as ERC721Balance,
|
|
16646
16656
|
checkout_sdk_d_ERC721ItemRequirement as ERC721ItemRequirement,
|
|
16647
16657
|
checkout_sdk_d_ErrorType as ErrorType,
|
|
16648
16658
|
checkout_sdk_d_ExchangeType as ExchangeType,
|
|
@@ -16652,7 +16662,6 @@ declare namespace checkout_sdk_d {
|
|
|
16652
16662
|
checkout_sdk_d_FulfillmentTransaction as FulfillmentTransaction,
|
|
16653
16663
|
checkout_sdk_d_FundingItem as FundingItem,
|
|
16654
16664
|
checkout_sdk_d_FundingRoute as FundingRoute,
|
|
16655
|
-
checkout_sdk_d_FundingRouteFeeEstimate as FundingRouteFeeEstimate,
|
|
16656
16665
|
checkout_sdk_d_FundingStep as FundingStep,
|
|
16657
16666
|
checkout_sdk_d_FundingStepType as FundingStepType,
|
|
16658
16667
|
checkout_sdk_d_GasAmount as GasAmount,
|
|
@@ -16680,21 +16689,32 @@ declare namespace checkout_sdk_d {
|
|
|
16680
16689
|
checkout_sdk_d_NetworkFilter as NetworkFilter,
|
|
16681
16690
|
checkout_sdk_d_NetworkFilterTypes as NetworkFilterTypes,
|
|
16682
16691
|
checkout_sdk_d_NetworkInfo as NetworkInfo,
|
|
16692
|
+
checkout_sdk_d_NoRouteOptions as NoRouteOptions,
|
|
16693
|
+
checkout_sdk_d_NoRoutesFound as NoRoutesFound,
|
|
16694
|
+
checkout_sdk_d_OnRampFundingStep as OnRampFundingStep,
|
|
16683
16695
|
checkout_sdk_d_OrderFee as OrderFee,
|
|
16684
16696
|
checkout_sdk_d_RemoteConfiguration as RemoteConfiguration,
|
|
16697
|
+
checkout_sdk_d_RoutesFound as RoutesFound,
|
|
16685
16698
|
checkout_sdk_d_RoutingOutcome as RoutingOutcome,
|
|
16686
16699
|
checkout_sdk_d_RoutingOutcomeType as RoutingOutcomeType,
|
|
16687
16700
|
checkout_sdk_d_SellOrder as SellOrder,
|
|
16688
16701
|
checkout_sdk_d_SellParams as SellParams,
|
|
16689
16702
|
checkout_sdk_d_SellResult as SellResult,
|
|
16703
|
+
checkout_sdk_d_SellResultFailed as SellResultFailed,
|
|
16704
|
+
checkout_sdk_d_SellResultInsufficientFunds as SellResultInsufficientFunds,
|
|
16705
|
+
checkout_sdk_d_SellResultSuccess as SellResultSuccess,
|
|
16690
16706
|
checkout_sdk_d_SellToken as SellToken,
|
|
16691
16707
|
checkout_sdk_d_SendTransactionParams as SendTransactionParams,
|
|
16692
16708
|
checkout_sdk_d_SendTransactionResult as SendTransactionResult,
|
|
16709
|
+
checkout_sdk_d_SmartCheckoutInsufficient as SmartCheckoutInsufficient,
|
|
16693
16710
|
checkout_sdk_d_SmartCheckoutParams as SmartCheckoutParams,
|
|
16694
16711
|
checkout_sdk_d_SmartCheckoutResult as SmartCheckoutResult,
|
|
16695
16712
|
checkout_sdk_d_SmartCheckoutRouter as SmartCheckoutRouter,
|
|
16713
|
+
checkout_sdk_d_SmartCheckoutSufficient as SmartCheckoutSufficient,
|
|
16714
|
+
checkout_sdk_d_SwapFundingStep as SwapFundingStep,
|
|
16696
16715
|
checkout_sdk_d_SwitchNetworkParams as SwitchNetworkParams,
|
|
16697
16716
|
checkout_sdk_d_SwitchNetworkResult as SwitchNetworkResult,
|
|
16717
|
+
checkout_sdk_d_TokenBalance as TokenBalance,
|
|
16698
16718
|
checkout_sdk_d_TokenFilter as TokenFilter,
|
|
16699
16719
|
checkout_sdk_d_TokenFilterTypes as TokenFilterTypes,
|
|
16700
16720
|
checkout_sdk_d_TokenInfo as TokenInfo,
|
|
@@ -31384,27 +31404,27 @@ type WalletNetworkSwitchEvent = {
|
|
|
31384
31404
|
*/
|
|
31385
31405
|
type WalletDisconnectWalletEvent = {};
|
|
31386
31406
|
/**
|
|
31387
|
-
* Enum representing possible
|
|
31407
|
+
* Enum representing possible Sale Widget event types.
|
|
31388
31408
|
*/
|
|
31389
|
-
declare enum
|
|
31409
|
+
declare enum SaleEventType {
|
|
31390
31410
|
CLOSE_WIDGET = "close-widget",
|
|
31391
31411
|
SUCCESS = "success",
|
|
31392
31412
|
FAILURE = "failure",
|
|
31393
31413
|
REJECTED = "rejected"
|
|
31394
31414
|
}
|
|
31395
31415
|
/**
|
|
31396
|
-
* Represents a successful
|
|
31416
|
+
* Represents a successful Sale transaction.
|
|
31397
31417
|
* @property {string} transactionHash - The hash of the successful transaction.
|
|
31398
31418
|
*/
|
|
31399
|
-
type
|
|
31419
|
+
type SaleSuccess = {
|
|
31400
31420
|
[key: string]: string;
|
|
31401
31421
|
};
|
|
31402
31422
|
/**
|
|
31403
|
-
* Type representing a
|
|
31423
|
+
* Type representing a Sale Widget with type FAILURE.
|
|
31404
31424
|
* @property {string} reason - The reason why the swap failed.
|
|
31405
31425
|
* @property {number} timestamp - The timestamp of the failed swap.
|
|
31406
31426
|
*/
|
|
31407
|
-
type
|
|
31427
|
+
type SaleFailed = {
|
|
31408
31428
|
reason: string;
|
|
31409
31429
|
timestamp: number;
|
|
31410
31430
|
};
|
|
@@ -31417,16 +31437,16 @@ declare enum IMTBLWidgetEvents {
|
|
|
31417
31437
|
IMTBL_SWAP_WIDGET_EVENT = "imtbl-swap-widget",
|
|
31418
31438
|
IMTBL_BRIDGE_WIDGET_EVENT = "imtbl-bridge-widget",
|
|
31419
31439
|
IMTBL_ONRAMP_WIDGET_EVENT = "imtbl-onramp-widget",
|
|
31420
|
-
IMTBL_PRIMARY_REVENUE_WIDGET_EVENT = "imtbl-
|
|
31440
|
+
IMTBL_PRIMARY_REVENUE_WIDGET_EVENT = "imtbl-sale-widget"
|
|
31421
31441
|
}
|
|
31422
31442
|
/**
|
|
31423
31443
|
* Represents an event emitted by a widget.
|
|
31424
31444
|
* @template T - The type of data associated with the event.
|
|
31425
|
-
* @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType |
|
|
31445
|
+
* @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | SaleEventType} type - The type of the event.
|
|
31426
31446
|
* @property {T} data - The data associated with the event.
|
|
31427
31447
|
*/
|
|
31428
31448
|
type WidgetEvent<T> = {
|
|
31429
|
-
type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType |
|
|
31449
|
+
type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | SaleEventType;
|
|
31430
31450
|
data: T;
|
|
31431
31451
|
};
|
|
31432
31452
|
/**
|
|
@@ -31455,7 +31475,7 @@ declare global {
|
|
|
31455
31475
|
'imtbl-swap': ImtblSwapProps;
|
|
31456
31476
|
'imtbl-bridge': ImtblBridgeProps;
|
|
31457
31477
|
'imtbl-onramp': ImtblOnRampProps;
|
|
31458
|
-
'imtbl-
|
|
31478
|
+
'imtbl-sale': ImtblSaleProps;
|
|
31459
31479
|
}
|
|
31460
31480
|
}
|
|
31461
31481
|
interface ImmutableWebComponent {
|
|
@@ -31537,9 +31557,9 @@ interface ImtblOnRampProps extends React.DetailedHTMLProps<React.HTMLAttributes<
|
|
|
31537
31557
|
contractAddress?: string;
|
|
31538
31558
|
}
|
|
31539
31559
|
/**
|
|
31540
|
-
* Interface for the properties of the
|
|
31560
|
+
* Interface for the properties of the Sale web component.
|
|
31541
31561
|
* Extends the React.DetailedHTMLProps interface to inherit HTML attributes for an HTMLElement.
|
|
31542
|
-
* @interface
|
|
31562
|
+
* @interface ImtblSaleProps
|
|
31543
31563
|
* @extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>
|
|
31544
31564
|
* @property {string | undefined} widgetConfig - Optional string representing the widget configuration.
|
|
31545
31565
|
* @property {string | undefined} amount - The amount to be paid.
|
|
@@ -31548,7 +31568,7 @@ interface ImtblOnRampProps extends React.DetailedHTMLProps<React.HTMLAttributes<
|
|
|
31548
31568
|
* @property {string | undefined} env - The environment to use: SANDBOX, DEV, PRODUCTION, ...
|
|
31549
31569
|
* @property {string | undefined} environmentId - The environment id from Immutable Hub.
|
|
31550
31570
|
*/
|
|
31551
|
-
interface
|
|
31571
|
+
interface ImtblSaleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
31552
31572
|
widgetConfig?: string;
|
|
31553
31573
|
amount: string;
|
|
31554
31574
|
products: string;
|
|
@@ -31677,7 +31697,7 @@ declare const checkout_widgets_d_IMTBLWidgetEvents: typeof IMTBLWidgetEvents;
|
|
|
31677
31697
|
type checkout_widgets_d_ImtblBridgeProps = ImtblBridgeProps;
|
|
31678
31698
|
type checkout_widgets_d_ImtblConnectProps = ImtblConnectProps;
|
|
31679
31699
|
type checkout_widgets_d_ImtblOnRampProps = ImtblOnRampProps;
|
|
31680
|
-
type
|
|
31700
|
+
type checkout_widgets_d_ImtblSaleProps = ImtblSaleProps;
|
|
31681
31701
|
type checkout_widgets_d_ImtblSwapProps = ImtblSwapProps;
|
|
31682
31702
|
type checkout_widgets_d_ImtblWalletProps = ImtblWalletProps;
|
|
31683
31703
|
type checkout_widgets_d_OnRampEventType = OnRampEventType;
|
|
@@ -31688,15 +31708,15 @@ type checkout_widgets_d_OnRampReactProps = OnRampReactProps;
|
|
|
31688
31708
|
type checkout_widgets_d_OnRampSuccess = OnRampSuccess;
|
|
31689
31709
|
type checkout_widgets_d_OrchestrationEventType = OrchestrationEventType;
|
|
31690
31710
|
declare const checkout_widgets_d_OrchestrationEventType: typeof OrchestrationEventType;
|
|
31691
|
-
type checkout_widgets_d_PrimaryRevenueEventType = PrimaryRevenueEventType;
|
|
31692
|
-
declare const checkout_widgets_d_PrimaryRevenueEventType: typeof PrimaryRevenueEventType;
|
|
31693
|
-
type checkout_widgets_d_PrimaryRevenueFailed = PrimaryRevenueFailed;
|
|
31694
|
-
type checkout_widgets_d_PrimaryRevenueSuccess = PrimaryRevenueSuccess;
|
|
31695
31711
|
type checkout_widgets_d_RequestBridgeEvent = RequestBridgeEvent;
|
|
31696
31712
|
type checkout_widgets_d_RequestConnectEvent = RequestConnectEvent;
|
|
31697
31713
|
type checkout_widgets_d_RequestOnrampEvent = RequestOnrampEvent;
|
|
31698
31714
|
type checkout_widgets_d_RequestSwapEvent = RequestSwapEvent;
|
|
31699
31715
|
type checkout_widgets_d_RequestWalletEvent = RequestWalletEvent;
|
|
31716
|
+
type checkout_widgets_d_SaleEventType = SaleEventType;
|
|
31717
|
+
declare const checkout_widgets_d_SaleEventType: typeof SaleEventType;
|
|
31718
|
+
type checkout_widgets_d_SaleFailed = SaleFailed;
|
|
31719
|
+
type checkout_widgets_d_SaleSuccess = SaleSuccess;
|
|
31700
31720
|
type checkout_widgets_d_SemanticVersion = SemanticVersion;
|
|
31701
31721
|
type checkout_widgets_d_SwapEventType = SwapEventType;
|
|
31702
31722
|
declare const checkout_widgets_d_SwapEventType: typeof SwapEventType;
|
|
@@ -31734,7 +31754,7 @@ declare namespace checkout_widgets_d {
|
|
|
31734
31754
|
checkout_widgets_d_ImtblBridgeProps as ImtblBridgeProps,
|
|
31735
31755
|
checkout_widgets_d_ImtblConnectProps as ImtblConnectProps,
|
|
31736
31756
|
checkout_widgets_d_ImtblOnRampProps as ImtblOnRampProps,
|
|
31737
|
-
|
|
31757
|
+
checkout_widgets_d_ImtblSaleProps as ImtblSaleProps,
|
|
31738
31758
|
checkout_widgets_d_ImtblSwapProps as ImtblSwapProps,
|
|
31739
31759
|
checkout_widgets_d_ImtblWalletProps as ImtblWalletProps,
|
|
31740
31760
|
checkout_widgets_d_OnRampEventType as OnRampEventType,
|
|
@@ -31743,14 +31763,14 @@ declare namespace checkout_widgets_d {
|
|
|
31743
31763
|
checkout_widgets_d_OnRampReactProps as OnRampReactProps,
|
|
31744
31764
|
checkout_widgets_d_OnRampSuccess as OnRampSuccess,
|
|
31745
31765
|
checkout_widgets_d_OrchestrationEventType as OrchestrationEventType,
|
|
31746
|
-
checkout_widgets_d_PrimaryRevenueEventType as PrimaryRevenueEventType,
|
|
31747
|
-
checkout_widgets_d_PrimaryRevenueFailed as PrimaryRevenueFailed,
|
|
31748
|
-
checkout_widgets_d_PrimaryRevenueSuccess as PrimaryRevenueSuccess,
|
|
31749
31766
|
checkout_widgets_d_RequestBridgeEvent as RequestBridgeEvent,
|
|
31750
31767
|
checkout_widgets_d_RequestConnectEvent as RequestConnectEvent,
|
|
31751
31768
|
checkout_widgets_d_RequestOnrampEvent as RequestOnrampEvent,
|
|
31752
31769
|
checkout_widgets_d_RequestSwapEvent as RequestSwapEvent,
|
|
31753
31770
|
checkout_widgets_d_RequestWalletEvent as RequestWalletEvent,
|
|
31771
|
+
checkout_widgets_d_SaleEventType as SaleEventType,
|
|
31772
|
+
checkout_widgets_d_SaleFailed as SaleFailed,
|
|
31773
|
+
checkout_widgets_d_SaleSuccess as SaleSuccess,
|
|
31754
31774
|
checkout_widgets_d_SemanticVersion as SemanticVersion,
|
|
31755
31775
|
checkout_widgets_d_SwapEventType as SwapEventType,
|
|
31756
31776
|
checkout_widgets_d_SwapFailed as SwapFailed,
|