@imtbl/sdk 1.52.0 → 1.52.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{blockchain_data-T7u5Hp0U.js → blockchain_data-DBBTvmmb.js} +2 -2
- package/dist/blockchain_data.d.ts +34 -3202
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-DuG1OWEM.js → AddFundsWidget-SdKqlUUr.js} +124 -49
- package/dist/browser/checkout/{BridgeWidget-2D-8F1Vq.js → BridgeWidget-Bx1DFMXg.js} +11 -9
- package/dist/browser/checkout/{CheckoutWidget-Bvnur5WZ.js → CheckoutWidget-B1pE8Gc2.js} +81 -35
- package/dist/browser/checkout/{OnRampWidget-B4UV_TYW.js → OnRampWidget-bmvseWX-.js} +20 -12
- package/dist/browser/checkout/{SaleWidget-BQMUaWlZ.js → SaleWidget-Ddos1DHm.js} +9 -9
- package/dist/browser/checkout/{SpendingCapHero-BsQQYO_D.js → SpendingCapHero-BKdEyvIl.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-BK7sTJ6u.js → SwapWidget-CrEzJos9.js} +12 -10
- package/dist/browser/checkout/{TextInputForm-Cy6sTMjr.js → TextInputForm-BvZsFFRK.js} +1 -1
- package/dist/browser/checkout/{TopUpView-Dw-JH0Q5.js → TopUpView-CojeMjuL.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-t6i1V-G5.js → WalletWidget-DcoX5T7s.js} +7 -6
- package/dist/browser/checkout/{auto-track-CMv29U8a.js → auto-track-CPy9e41Q.js} +1 -1
- package/dist/browser/checkout/{balance-Dt4oB1G1.js → balance-_0wiNzA1.js} +2 -2
- package/dist/browser/checkout/{index-D2zks65E.js → index-2yp2sttp.js} +2 -2
- package/dist/browser/checkout/{index-BRzBLTux.js → index-4LGmzy2P.js} +1 -1
- package/dist/browser/checkout/{index-Zraoakam.js → index-BjnD8v8p.js} +1 -1
- package/dist/browser/checkout/{index-DmXFGYTM.js → index-BpduNNVl.js} +1 -1
- package/dist/browser/checkout/{index-D4zR0DRy.js → index-CPLIXtyA.js} +1 -1
- package/dist/browser/checkout/{index-CMBbtkDe.js → index-CcR4tO_g.js} +1 -1
- package/dist/browser/checkout/{index-5qc7Vsg4.js → index-DnQfQojQ.js} +63 -46
- package/dist/browser/checkout/{index-DwTyassh.js → index-Dv7_L5sJ.js} +1 -1
- package/dist/browser/checkout/{index.umd-CCwq6cRd.js → index.umd-LRNZ8nMO.js} +1 -1
- package/dist/browser/checkout/{retry-C_l6vh-l.js → retry-TNKwGgHJ.js} +1 -1
- package/dist/browser/checkout/sdk.js +5 -5
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +279 -128
- package/dist/{checkout-DxDRj3k-.js → checkout-BoEdWIoM.js} +7 -6
- package/dist/checkout.d.ts +38 -10
- package/dist/checkout.js +5 -5
- package/dist/{config-Dj7PQqL4.js → config-4V88kddG.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-8m8-bJcZ.js → index-5q3Doq32.js} +1 -1
- package/dist/{index-1bjDCdo5.js → index-CAL1gWlu.js} +4 -4
- package/dist/{index-XxjQ6oVx.js → index-D0T-P8dM.js} +53 -53
- package/dist/{index-D4eU2e1C.js → index-DDE1ZfXv.js} +1 -1
- package/dist/{index-BxF866Mh.js → index-Dg5cqGBu.js} +1 -1
- package/dist/{index-snMwBaY-.js → index-Dqva106f.js} +1 -1
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +66 -61
- package/dist/index.d.ts +266 -3404
- package/dist/index.js +14 -14
- package/dist/{minting_backend-DfBB5ptf.js → minting_backend-x7gO9bio.js} +3 -3
- package/dist/minting_backend.d.ts +312 -228
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-CnmzmGtG.js → orderbook-BUiL0rqz.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-B8WhzCZf.js → passport-DGaas7w4.js} +10 -6
- package/dist/passport.d.ts +3 -1
- package/dist/passport.js +4 -4
- package/dist/{webhook-DzAoMhRT.js → webhook-Be5S01dB.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-DbbHwlbW.js → x-7ExOXsHk.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-
|
|
1
|
+
import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-5q3Doq32.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-
|
|
13
|
-
import { B as BlockchainData } from './index-
|
|
12
|
+
import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-Dg5cqGBu.js';
|
|
13
|
+
import { B as BlockchainData } from './index-D0T-P8dM.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.52.
|
|
19209
|
+
const SDK_VERSION = '1.52.1-alpha.1';
|
|
19210
19210
|
const getFrameParentDomain = () => {
|
|
19211
19211
|
if (isNode()) {
|
|
19212
19212
|
return '';
|
|
@@ -23569,6 +23569,7 @@ var OrchestrationEventType;
|
|
|
23569
23569
|
OrchestrationEventType["REQUEST_BRIDGE"] = "request-bridge";
|
|
23570
23570
|
OrchestrationEventType["REQUEST_ONRAMP"] = "request-onramp";
|
|
23571
23571
|
OrchestrationEventType["REQUEST_ADD_FUNDS"] = "request-add-funds";
|
|
23572
|
+
OrchestrationEventType["REQUEST_GO_BACK"] = "request-go-back";
|
|
23572
23573
|
})(OrchestrationEventType || (OrchestrationEventType = {}));
|
|
23573
23574
|
|
|
23574
23575
|
/**
|
|
@@ -23629,7 +23630,6 @@ var AddFundsEventType;
|
|
|
23629
23630
|
AddFundsEventType["REQUEST_BRIDGE"] = "request-bridge";
|
|
23630
23631
|
AddFundsEventType["REQUEST_ONRAMP"] = "request-onramp";
|
|
23631
23632
|
AddFundsEventType["REQUEST_SWAP"] = "request-swap";
|
|
23632
|
-
AddFundsEventType["GO_BACK"] = "go-back";
|
|
23633
23633
|
})(AddFundsEventType || (AddFundsEventType = {}));
|
|
23634
23634
|
|
|
23635
23635
|
/**
|
|
@@ -24600,7 +24600,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
24600
24600
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
24601
24601
|
};
|
|
24602
24602
|
|
|
24603
|
-
const SDK_VERSION_MARKER = '1.52.
|
|
24603
|
+
const SDK_VERSION_MARKER = '1.52.1-alpha.1';
|
|
24604
24604
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
24605
24605
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
24606
24606
|
|
|
@@ -29355,6 +29355,7 @@ var PostMessageHandlerEventType;
|
|
|
29355
29355
|
PostMessageHandlerEventType["PROVIDER_UPDATED"] = "IMTBL_PROVIDER_UPDATED";
|
|
29356
29356
|
PostMessageHandlerEventType["EIP_6963_EVENT"] = "IMTBL_EIP_6963_EVENT";
|
|
29357
29357
|
PostMessageHandlerEventType["WIDGET_EVENT"] = "IMTBL_CHECKOUT_WIDGET_EVENT";
|
|
29358
|
+
PostMessageHandlerEventType["WIDGET_PROVIDER_EVENT"] = "IMTBL_WIDGET_PROVIDER_EVENT";
|
|
29358
29359
|
})(PostMessageHandlerEventType || (PostMessageHandlerEventType = {}));
|
|
29359
29360
|
|
|
29360
29361
|
class PostMessageHandler {
|
package/dist/checkout.d.ts
CHANGED
|
@@ -14018,11 +14018,13 @@ declare class Passport {
|
|
|
14018
14018
|
* @param options.useCachedSession = false - If true, and no active session exists, then the user will not be
|
|
14019
14019
|
* prompted to log in and the Promise will resolve with a null value.
|
|
14020
14020
|
* @param options.anonymousId - If provided, Passport internal metrics will be enriched with this value.
|
|
14021
|
+
* @param options.useSilentLogin - If true, and no active session exists, then the user will not be prompted to log in. Instead, we will attempt to authenticate the user silently. This approach will fail if the user does not have an active session with the authentication server, or if user input is required (for example, consent is required).
|
|
14021
14022
|
* @returns {Promise<UserProfile | null>} the user profile if the user is logged in, otherwise null
|
|
14022
14023
|
*/
|
|
14023
14024
|
login(options?: {
|
|
14024
|
-
useCachedSession
|
|
14025
|
+
useCachedSession?: boolean;
|
|
14025
14026
|
anonymousId?: string;
|
|
14027
|
+
useSilentLogin?: boolean;
|
|
14026
14028
|
}): Promise<UserProfile | null>;
|
|
14027
14029
|
loginCallback(): Promise<void>;
|
|
14028
14030
|
loginWithDeviceFlow(options?: {
|
|
@@ -15203,6 +15205,7 @@ interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverri
|
|
|
15203
15205
|
* @property {GasEstimateTokenConfig | undefined} gasEstimateTokens
|
|
15204
15206
|
* @property {ImxAddressConfig | undefined} imxAddressMapping
|
|
15205
15207
|
* @property {TelemetryConfig | undefined} telemetry
|
|
15208
|
+
* @property {SquidConfig | undefined} squid
|
|
15206
15209
|
*/
|
|
15207
15210
|
type RemoteConfiguration = {
|
|
15208
15211
|
/** The config used for the Connect. */
|
|
@@ -15221,6 +15224,8 @@ type RemoteConfiguration = {
|
|
|
15221
15224
|
imxAddressMapping?: ImxAddressConfig;
|
|
15222
15225
|
/** Telemetry config. */
|
|
15223
15226
|
telemetry?: TelemetryConfig;
|
|
15227
|
+
/** Squid config. */
|
|
15228
|
+
squid?: SquidConfig;
|
|
15224
15229
|
};
|
|
15225
15230
|
/**
|
|
15226
15231
|
* A type representing the fee structure for an OnRamp provider
|
|
@@ -15332,6 +15337,13 @@ type ImxAddressConfig = {
|
|
|
15332
15337
|
type TelemetryConfig = {
|
|
15333
15338
|
segmentPublishableKey: string;
|
|
15334
15339
|
};
|
|
15340
|
+
/**
|
|
15341
|
+
* A type representing the squid integrator id.
|
|
15342
|
+
* @property {string} integratorId
|
|
15343
|
+
*/
|
|
15344
|
+
type SquidConfig = {
|
|
15345
|
+
integratorId: string;
|
|
15346
|
+
};
|
|
15335
15347
|
/**
|
|
15336
15348
|
* A type representing the required information to estimate gas for a transaction.
|
|
15337
15349
|
* @type {{ [key: string]: { bridgeToL2Addresses?: GasEstimateBridgeToL2TokenConfig, swapAddresses?: GasEstimateSwapTokenConfig } }}
|
|
@@ -16300,7 +16312,8 @@ declare enum OrchestrationEventType {
|
|
|
16300
16312
|
REQUEST_SWAP = "request-swap",
|
|
16301
16313
|
REQUEST_BRIDGE = "request-bridge",
|
|
16302
16314
|
REQUEST_ONRAMP = "request-onramp",
|
|
16303
|
-
REQUEST_ADD_FUNDS = "request-add-funds"
|
|
16315
|
+
REQUEST_ADD_FUNDS = "request-add-funds",
|
|
16316
|
+
REQUEST_GO_BACK = "request-go-back"
|
|
16304
16317
|
}
|
|
16305
16318
|
/**
|
|
16306
16319
|
* Represents the connect event object when the connect widget is requested.
|
|
@@ -16358,7 +16371,11 @@ type RequestOnrampEvent = {
|
|
|
16358
16371
|
* Represents the add funds event object when the add funds widget is requested.
|
|
16359
16372
|
*/
|
|
16360
16373
|
type RequestAddFundsEvent = {};
|
|
16361
|
-
|
|
16374
|
+
/**
|
|
16375
|
+
* Represents the object provide after go back event is requested
|
|
16376
|
+
*/
|
|
16377
|
+
type RequestGoBackEvent = {};
|
|
16378
|
+
type OrchestrationEventData = RequestConnectEvent | RequestWalletEvent | RequestSwapEvent | RequestBridgeEvent | RequestOnrampEvent | RequestGoBackEvent;
|
|
16362
16379
|
|
|
16363
16380
|
/**
|
|
16364
16381
|
* Enum of possible OnRamp Widget event types.
|
|
@@ -16509,8 +16526,7 @@ declare enum AddFundsEventType {
|
|
|
16509
16526
|
LANGUAGE_CHANGED = "language-changed",
|
|
16510
16527
|
REQUEST_BRIDGE = "request-bridge",
|
|
16511
16528
|
REQUEST_ONRAMP = "request-onramp",
|
|
16512
|
-
REQUEST_SWAP = "request-swap"
|
|
16513
|
-
GO_BACK = "go-back"
|
|
16529
|
+
REQUEST_SWAP = "request-swap"
|
|
16514
16530
|
}
|
|
16515
16531
|
|
|
16516
16532
|
type AddFundsWidgetParams = {
|
|
@@ -16523,9 +16539,11 @@ type AddFundsWidgetParams = {
|
|
|
16523
16539
|
/** Configure to show on bridge option */
|
|
16524
16540
|
showBridgeOption?: boolean;
|
|
16525
16541
|
/** Token address of the fund to be added */
|
|
16526
|
-
|
|
16542
|
+
toTokenAddress?: string;
|
|
16527
16543
|
/** Amount of the fund to be added */
|
|
16528
|
-
|
|
16544
|
+
toAmount?: string;
|
|
16545
|
+
/** Whether to show a back button on the first screen, on click triggers REQUEST_GO_BACK event */
|
|
16546
|
+
showBackButton?: boolean;
|
|
16529
16547
|
};
|
|
16530
16548
|
|
|
16531
16549
|
declare enum ConnectTargetLayer {
|
|
@@ -16558,6 +16576,8 @@ type BridgeWidgetParams = {
|
|
|
16558
16576
|
walletProviderName?: WalletProviderName;
|
|
16559
16577
|
/** The language to use for the bridge widget */
|
|
16560
16578
|
language?: WidgetLanguage;
|
|
16579
|
+
/** Whether to show a back button on the first screen, on click triggers REQUEST_GO_BACK event */
|
|
16580
|
+
showBackButton?: boolean;
|
|
16561
16581
|
};
|
|
16562
16582
|
|
|
16563
16583
|
/**
|
|
@@ -16597,6 +16617,8 @@ type SwapWidgetParams = {
|
|
|
16597
16617
|
autoProceed?: boolean;
|
|
16598
16618
|
/** The direction of the swap */
|
|
16599
16619
|
direction?: SwapDirection;
|
|
16620
|
+
/** Whether to show a back button on the first screen, on click triggers REQUEST_GO_BACK event */
|
|
16621
|
+
showBackButton?: boolean;
|
|
16600
16622
|
};
|
|
16601
16623
|
|
|
16602
16624
|
/**
|
|
@@ -16614,6 +16636,8 @@ type OnRampWidgetParams = {
|
|
|
16614
16636
|
walletProviderName?: WalletProviderName;
|
|
16615
16637
|
/** The language to use for the onramp widget */
|
|
16616
16638
|
language?: WidgetLanguage;
|
|
16639
|
+
/** Whether to show a back button on the first screen, on click triggers REQUEST_GO_BACK event */
|
|
16640
|
+
showBackButton?: boolean;
|
|
16617
16641
|
};
|
|
16618
16642
|
|
|
16619
16643
|
/**
|
|
@@ -16760,6 +16784,7 @@ type OrchestrationMapping = {
|
|
|
16760
16784
|
[OrchestrationEventType.REQUEST_BRIDGE]: RequestBridgeEvent;
|
|
16761
16785
|
[OrchestrationEventType.REQUEST_ONRAMP]: RequestOnrampEvent;
|
|
16762
16786
|
[OrchestrationEventType.REQUEST_ADD_FUNDS]: RequestAddFundsEvent;
|
|
16787
|
+
[OrchestrationEventType.REQUEST_GO_BACK]: RequestGoBackEvent;
|
|
16763
16788
|
};
|
|
16764
16789
|
type ProviderEventMapping = {
|
|
16765
16790
|
[ProviderEventType.PROVIDER_UPDATED]: ProviderUpdated;
|
|
@@ -16822,7 +16847,6 @@ type WidgetEventData = {
|
|
|
16822
16847
|
};
|
|
16823
16848
|
[WidgetType.ADD_FUNDS]: {
|
|
16824
16849
|
[AddFundsEventType.CLOSE_WIDGET]: {};
|
|
16825
|
-
[AddFundsEventType.GO_BACK]: {};
|
|
16826
16850
|
[AddFundsEventType.REQUEST_BRIDGE]: {};
|
|
16827
16851
|
[AddFundsEventType.REQUEST_SWAP]: {};
|
|
16828
16852
|
[AddFundsEventType.REQUEST_ONRAMP]: {};
|
|
@@ -17293,7 +17317,8 @@ declare enum PostMessageHandlerEventType {
|
|
|
17293
17317
|
PROVIDER_RELAY = "IMTBL_PROVIDER_RELAY",
|
|
17294
17318
|
PROVIDER_UPDATED = "IMTBL_PROVIDER_UPDATED",
|
|
17295
17319
|
EIP_6963_EVENT = "IMTBL_EIP_6963_EVENT",
|
|
17296
|
-
WIDGET_EVENT = "IMTBL_CHECKOUT_WIDGET_EVENT"
|
|
17320
|
+
WIDGET_EVENT = "IMTBL_CHECKOUT_WIDGET_EVENT",
|
|
17321
|
+
WIDGET_PROVIDER_EVENT = "IMTBL_WIDGET_PROVIDER_EVENT"
|
|
17297
17322
|
}
|
|
17298
17323
|
type WidgetEventDetail<T extends WidgetType> = {
|
|
17299
17324
|
[K in keyof WidgetEventData[T]]: {
|
|
@@ -17325,6 +17350,9 @@ type PostMessageData = {
|
|
|
17325
17350
|
} | {
|
|
17326
17351
|
type: PostMessageHandlerEventType.WIDGET_EVENT;
|
|
17327
17352
|
payload: PostMessageWidgetEventData;
|
|
17353
|
+
} | {
|
|
17354
|
+
type: PostMessageHandlerEventType.WIDGET_PROVIDER_EVENT;
|
|
17355
|
+
payload: any;
|
|
17328
17356
|
};
|
|
17329
17357
|
|
|
17330
17358
|
type PostMessageHandlerConfiguration = {
|
|
@@ -17429,4 +17457,4 @@ declare class BlockExplorerService {
|
|
|
17429
17457
|
static getTransactionLink(chainId: ChainId, hash: string): string | undefined;
|
|
17430
17458
|
}
|
|
17431
17459
|
|
|
17432
|
-
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 };
|
|
17460
|
+
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 RequestGoBackEvent, 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 SquidConfig, 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 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-
|
|
2
|
-
import './index-
|
|
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-BoEdWIoM.js';
|
|
2
|
+
import './index-5q3Doq32.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-
|
|
14
|
+
import './index-Dg5cqGBu.js';
|
|
15
15
|
import 'form-data';
|
|
16
16
|
import 'ethers-v6';
|
|
17
17
|
import 'merkletreejs';
|
|
18
18
|
import '@opensea/seaport-js';
|
|
19
|
-
import './index-
|
|
20
|
-
import './index-
|
|
19
|
+
import './index-D0T-P8dM.js';
|
|
20
|
+
import './index-Dqva106f.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-5q3Doq32.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-
|
|
1
|
+
export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-5q3Doq32.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'lru-memorise';
|
|
4
4
|
import 'global-const';
|
|
@@ -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.52.
|
|
161
|
+
const SDK_VERSION = '1.52.1-alpha.1';
|
|
162
162
|
const getFrameParentDomain = () => {
|
|
163
163
|
if (isNode()) {
|
|
164
164
|
return '';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as index$2, I as ImxApiClients } from './index-
|
|
2
|
-
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-
|
|
1
|
+
import { b as index$2, I as ImxApiClients } from './index-Dqva106f.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-5q3Doq32.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.52.
|
|
19
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.52.1-alpha.1' };
|
|
20
20
|
/**
|
|
21
21
|
* @dev use createImmutableXConfiguration instead
|
|
22
22
|
*/
|
|
@@ -57,7 +57,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
57
57
|
coreContractAddress,
|
|
58
58
|
registrationContractAddress,
|
|
59
59
|
registrationV4ContractAddress,
|
|
60
|
-
sdkVersion: 'ts-immutable-sdk-1.52.
|
|
60
|
+
sdkVersion: 'ts-immutable-sdk-1.52.1-alpha.1',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|