@imtbl/sdk 1.65.0 → 1.66.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.
- package/dist/{blockchain_data-Dp0DKwKY.js → blockchain_data-BUlEtrpM.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-CzLj_kbJ.js → AddTokensWidget-DdZHY_JS.js} +40 -7
- package/dist/browser/checkout/{BridgeWidget-BD2arVjv.js → BridgeWidget-CzoLGKzK.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-B0rI7mqO.js → CommerceWidget-BGemG9RB.js} +46 -17
- package/dist/browser/checkout/{CryptoFiatProvider-GIG1QRoo.js → CryptoFiatProvider-BwfapqZO.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-DbCAqh7Y.js → EllipsizedText-ngVXQGn_.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-DJsus8QD.js → FeesBreakdown-BpgS4Cf3.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-BgWR4m27.js → HandoverContent-C0qfeRAh.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-mDBP43Vd.js → OnRampWidget-Dx2XkuTt.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-D9I4_Y1V.js → SaleWidget-N4DUeD2I.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-aRrdLYqJ.js → SpendingCapHero-BeqEPpR_.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-fHXX-Hf-.js → SwapWidget-DiA9c6Zu.js} +9 -9
- package/dist/browser/checkout/{TopUpView-BLRvkTp5.js → TopUpView-BBUB2cpE.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-D7vrJyr0.js → WalletApproveHero-DiwEKXIx.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-DiNzzHMW.js → WalletWidget-BNCipG33.js} +4 -4
- package/dist/browser/checkout/{auto-track-DK4gsk5m.js → auto-track-CwlqwwA6.js} +1 -1
- package/dist/browser/checkout/{index-Cbyd34U6.js → index-BdohR2SR.js} +1 -1
- package/dist/browser/checkout/{index-DHBxX6fE.js → index-DS1USgQr.js} +2 -2
- package/dist/browser/checkout/{index-D1QHaKvq.js → index-DVVgTW38.js} +20 -19
- package/dist/browser/checkout/{index-DNtUrKbu.js → index-HL3njUMr.js} +1 -1
- package/dist/browser/checkout/{index-N6bH7obe.js → index-PJGxH105.js} +1 -1
- package/dist/browser/checkout/{index-CkkTi5Rn.js → index-R3d13MqX.js} +1 -1
- package/dist/browser/checkout/{index-BbANArQU.js → index-Ze29sipG.js} +1 -1
- package/dist/browser/checkout/{index-BQ0p7X6B.js → index-bA3tzuB3.js} +1 -1
- package/dist/browser/checkout/{index-Ct1L-gy-.js → index-lFfbeyAV.js} +1 -1
- package/dist/browser/checkout/{index.umd-CM-rtgTq.js → index.umd-_yYKRbcT.js} +1 -1
- package/dist/browser/checkout/{retry-ByGtTHBD.js → retry-aLeSin3J.js} +1 -1
- package/dist/browser/checkout/sdk.js +5 -5
- package/dist/browser/checkout/{useInterval-y1UbVfF8.js → useInterval-D0l_aPl9.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +64 -1
- package/dist/{checkout-BFPBookq.js → checkout-BUdgmfZb.js} +6 -5
- package/dist/checkout.d.ts +5 -4
- package/dist/checkout.js +5 -5
- package/dist/{config-V18XBR3x.js → config-BubPqng9.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-Bp8cN2wo.js → index-16O3IPqB.js} +1 -1
- package/dist/{index-CTcEmIj1.js → index-BSc_kDtG.js} +4 -4
- package/dist/{index-C80azzXH.js → index-C7Hv1Nni.js} +1 -1
- package/dist/{index-CP3zHUjx.js → index-C9qVLigh.js} +1 -1
- package/dist/{index-gXJeNIGk.js → index-CObYv9x3.js} +1 -1
- package/dist/{index-ChXdl1w-.js → index-LC2w9vjG.js} +3 -3
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +9 -8
- package/dist/index.d.ts +5 -4
- package/dist/index.js +14 -14
- package/dist/{minting_backend-BRZXKNZH.js → minting_backend-DaIEpdcw.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-DV4Fw1tL.js → orderbook-DK3mSslt.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-DDebGWwi.js → passport-DujXJEaj.js} +4 -4
- package/dist/passport.js +4 -4
- package/dist/{webhook-B4jwsgjm.js → webhook-BwMYHAcT.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-DmIbrceD.js → x-1BppZfWN.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, dH as useBrowserLayoutEffect } from './index-
|
|
1
|
+
import { r as reactExports, dH as useBrowserLayoutEffect } from './index-DVVgTW38.js';
|
|
2
2
|
|
|
3
3
|
// Inspired by https://usehooks-ts.com/react-hook/use-interval
|
|
4
4
|
function useInterval(callback, delay) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { eb as WidgetsFactory } from './index-
|
|
1
|
+
export { eb as WidgetsFactory } from './index-DVVgTW38.js';
|
|
@@ -129234,6 +129234,7 @@
|
|
|
129234
129234
|
CommerceSuccessEventType["BRIDGE_SUCCESS"] = "BRIDGE_SUCCESS";
|
|
129235
129235
|
CommerceSuccessEventType["BRIDGE_CLAIM_WITHDRAWAL_SUCCESS"] = "BRIDGE_CLAIM_WITHDRAWAL_SUCCESS";
|
|
129236
129236
|
CommerceSuccessEventType["ADD_TOKENS_SUCCESS"] = "ADD_TOKENS_SUCCESS";
|
|
129237
|
+
CommerceSuccessEventType["ADD_TOKENS_CONNECT_SUCCESS"] = "ADD_TOKENS_CONNECT_SUCCESS";
|
|
129237
129238
|
})(CommerceSuccessEventType || (CommerceSuccessEventType = {}));
|
|
129238
129239
|
var CommerceFailureEventType;
|
|
129239
129240
|
(function (CommerceFailureEventType) {
|
|
@@ -239117,6 +239118,35 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
239117
239118
|
if (eventTarget !== undefined)
|
|
239118
239119
|
eventTarget.dispatchEvent(successEvent);
|
|
239119
239120
|
}
|
|
239121
|
+
const sendAddTokensSuccessEvent = (eventTarget, transactionHash) => {
|
|
239122
|
+
const successEvent = new CustomEvent(IMTBLWidgetEvents.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
|
|
239123
|
+
detail: {
|
|
239124
|
+
type: AddTokensEventType.SUCCESS,
|
|
239125
|
+
data: {
|
|
239126
|
+
transactionHash,
|
|
239127
|
+
},
|
|
239128
|
+
},
|
|
239129
|
+
});
|
|
239130
|
+
// eslint-disable-next-line no-console
|
|
239131
|
+
console.log('add tokens success event:', eventTarget, successEvent);
|
|
239132
|
+
if (eventTarget !== undefined)
|
|
239133
|
+
eventTarget.dispatchEvent(successEvent);
|
|
239134
|
+
};
|
|
239135
|
+
const sendAddTokensFailedEvent = (eventTarget, reason) => {
|
|
239136
|
+
const failedEvent = new CustomEvent(IMTBLWidgetEvents.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
|
|
239137
|
+
detail: {
|
|
239138
|
+
type: AddTokensEventType.FAILURE,
|
|
239139
|
+
data: {
|
|
239140
|
+
reason,
|
|
239141
|
+
timestamp: new Date().getTime(),
|
|
239142
|
+
},
|
|
239143
|
+
},
|
|
239144
|
+
});
|
|
239145
|
+
// eslint-disable-next-line no-console
|
|
239146
|
+
console.log('add tokens failed event:', eventTarget, failedEvent);
|
|
239147
|
+
if (eventTarget !== undefined)
|
|
239148
|
+
eventTarget.dispatchEvent(failedEvent);
|
|
239149
|
+
};
|
|
239120
239150
|
|
|
239121
239151
|
const initialAddTokensState = {
|
|
239122
239152
|
allowedTokens: null,
|
|
@@ -411471,7 +411501,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411471
411501
|
const data = await response.json();
|
|
411472
411502
|
return data.chains.map((chain) => ({
|
|
411473
411503
|
id: chain.chainId.toString(),
|
|
411474
|
-
name: chain.
|
|
411504
|
+
name: chain.networkName,
|
|
411475
411505
|
iconUrl: chain.chainIconURI,
|
|
411476
411506
|
type: chain.chainType,
|
|
411477
411507
|
nativeCurrency: {
|
|
@@ -411487,6 +411517,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411487
411517
|
|
|
411488
411518
|
const useExecute = (environment) => {
|
|
411489
411519
|
const { showErrorHandover } = useError(environment);
|
|
411520
|
+
const { eventTargetState: { eventTarget }, } = reactExports.useContext(EventTargetContext);
|
|
411490
411521
|
const handleTransactionError = (err) => {
|
|
411491
411522
|
const reason = `${err?.reason || err?.message || ''}`.toLowerCase();
|
|
411492
411523
|
let errorType = AddTokensErrorTypes.WALLET_FAILED;
|
|
@@ -411503,6 +411534,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411503
411534
|
if (reason.includes('status failed')
|
|
411504
411535
|
|| reason.includes('transaction failed')) {
|
|
411505
411536
|
errorType = AddTokensErrorTypes.TRANSACTION_FAILED;
|
|
411537
|
+
sendAddTokensFailedEvent(eventTarget, errorType);
|
|
411506
411538
|
}
|
|
411507
411539
|
if (reason.includes('unrecognized chain')
|
|
411508
411540
|
|| reason.includes('unrecognized chain')) {
|
|
@@ -411752,6 +411784,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411752
411784
|
const { track, page } = useAnalytics();
|
|
411753
411785
|
const { addTokensState: { squid, chains, tokens }, } = reactExports.useContext(AddTokensContext);
|
|
411754
411786
|
const { providersState: { checkout, fromProvider, fromAddress, toAddress, }, } = useProvidersContext();
|
|
411787
|
+
const { eventTargetState: { eventTarget } } = reactExports.useContext(EventTargetContext);
|
|
411755
411788
|
const [route, setRoute] = reactExports.useState();
|
|
411756
411789
|
const [proceedDisabled, setProceedDisabled] = reactExports.useState(true);
|
|
411757
411790
|
const [showFeeBreakdown, setShowFeeBreakdown] = reactExports.useState(false);
|
|
@@ -411861,6 +411894,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411861
411894
|
txHash: executeTxnReceipt.transactionHash,
|
|
411862
411895
|
},
|
|
411863
411896
|
});
|
|
411897
|
+
sendAddTokensSuccessEvent(eventTarget, executeTxnReceipt.transactionHash);
|
|
411864
411898
|
showHandover(EXECUTE_TXN_ANIMATION, RiveStateMachineInput.PROCESSING, 'Processing', '', FIXED_HANDOVER_DURATION);
|
|
411865
411899
|
showHandover(EXECUTE_TXN_ANIMATION, RiveStateMachineInput.COMPLETED, 'Funds added successfully', jsxs(Fragment$1, { children: ["Go to", ' ', jsx$1(Link, { size: "small", rc: (jsx$1("a", { target: "_blank", href: `https://axelarscan.io/gmp/${executeTxnReceipt?.transactionHash}`, rel: "noreferrer" })), children: "Axelarscan" }), ' ', "for transaction details"] }));
|
|
411866
411900
|
}
|
|
@@ -423104,6 +423138,35 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
423104
423138
|
function mapAddTokensWidgetEvent(event) {
|
|
423105
423139
|
const { type } = event.detail;
|
|
423106
423140
|
switch (type) {
|
|
423141
|
+
case AddTokensEventType.SUCCESS:
|
|
423142
|
+
return {
|
|
423143
|
+
type: CommerceEventType.SUCCESS,
|
|
423144
|
+
data: {
|
|
423145
|
+
type: CommerceSuccessEventType.ADD_TOKENS_SUCCESS,
|
|
423146
|
+
data: event.detail.data,
|
|
423147
|
+
},
|
|
423148
|
+
};
|
|
423149
|
+
case AddTokensEventType.CONNECT_SUCCESS:
|
|
423150
|
+
return {
|
|
423151
|
+
type: CommerceEventType.SUCCESS,
|
|
423152
|
+
data: {
|
|
423153
|
+
type: CommerceSuccessEventType.ADD_TOKENS_CONNECT_SUCCESS,
|
|
423154
|
+
data: event.detail.data,
|
|
423155
|
+
},
|
|
423156
|
+
};
|
|
423157
|
+
case AddTokensEventType.FAILURE:
|
|
423158
|
+
return {
|
|
423159
|
+
type: CommerceEventType.FAILURE,
|
|
423160
|
+
data: {
|
|
423161
|
+
type: CommerceFailureEventType.ADD_TOKENS_FAILED,
|
|
423162
|
+
data: event.detail.data,
|
|
423163
|
+
},
|
|
423164
|
+
};
|
|
423165
|
+
case AddTokensEventType.CLOSE_WIDGET:
|
|
423166
|
+
return {
|
|
423167
|
+
type: CommerceEventType.CLOSE,
|
|
423168
|
+
data: {},
|
|
423169
|
+
};
|
|
423107
423170
|
default:
|
|
423108
423171
|
throw new Error(`Unknown add tokens event type "${event.detail.type}"`);
|
|
423109
423172
|
}
|
|
@@ -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-16O3IPqB.js';
|
|
2
2
|
import globalAxios, { HttpStatusCode as HttpStatusCode$1 } from 'axios';
|
|
3
3
|
import { ethers, BigNumber as BigNumber$1, ContractFactory, utils as utils$2, Contract as Contract$1 } from 'ethers';
|
|
4
4
|
import { Web3Provider, JsonRpcProvider } from '@ethersproject/providers';
|
|
@@ -8,8 +8,8 @@ import assert from 'assert';
|
|
|
8
8
|
import { FeeAmount, Route, SwapQuoter, Pool, Trade, toHex as toHex$1, encodeRouteToPath } from '@uniswap/v3-sdk';
|
|
9
9
|
import { keccak256 as keccak256$1 } from '@ethersproject/solidity';
|
|
10
10
|
import { SwapRouter, PaymentsExtended } from '@uniswap/router-sdk';
|
|
11
|
-
import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-
|
|
12
|
-
import { B as BlockchainData } from './index-
|
|
11
|
+
import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-C9qVLigh.js';
|
|
12
|
+
import { B as BlockchainData } from './index-LC2w9vjG.js';
|
|
13
13
|
import detectEthereumProvider from '@metamask/detect-provider';
|
|
14
14
|
import semver from 'semver';
|
|
15
15
|
|
|
@@ -19207,7 +19207,7 @@ const flattenProperties = (properties) => {
|
|
|
19207
19207
|
};
|
|
19208
19208
|
|
|
19209
19209
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
19210
|
-
const SDK_VERSION = '1.
|
|
19210
|
+
const SDK_VERSION = '1.66.0-alpha.2';
|
|
19211
19211
|
const getFrameParentDomain = () => {
|
|
19212
19212
|
if (isNode()) {
|
|
19213
19213
|
return '';
|
|
@@ -23604,6 +23604,7 @@ var CommerceSuccessEventType;
|
|
|
23604
23604
|
CommerceSuccessEventType["BRIDGE_SUCCESS"] = "BRIDGE_SUCCESS";
|
|
23605
23605
|
CommerceSuccessEventType["BRIDGE_CLAIM_WITHDRAWAL_SUCCESS"] = "BRIDGE_CLAIM_WITHDRAWAL_SUCCESS";
|
|
23606
23606
|
CommerceSuccessEventType["ADD_TOKENS_SUCCESS"] = "ADD_TOKENS_SUCCESS";
|
|
23607
|
+
CommerceSuccessEventType["ADD_TOKENS_CONNECT_SUCCESS"] = "ADD_TOKENS_CONNECT_SUCCESS";
|
|
23607
23608
|
})(CommerceSuccessEventType || (CommerceSuccessEventType = {}));
|
|
23608
23609
|
var CommerceFailureEventType;
|
|
23609
23610
|
(function (CommerceFailureEventType) {
|
|
@@ -24315,7 +24316,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
24315
24316
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
24316
24317
|
};
|
|
24317
24318
|
|
|
24318
|
-
const SDK_VERSION_MARKER = '1.
|
|
24319
|
+
const SDK_VERSION_MARKER = '1.66.0-alpha.2';
|
|
24319
24320
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
24320
24321
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
24321
24322
|
|
package/dist/checkout.d.ts
CHANGED
|
@@ -13984,7 +13984,7 @@ type AddTokensSuccess = {
|
|
|
13984
13984
|
transactionHash: string;
|
|
13985
13985
|
};
|
|
13986
13986
|
/**
|
|
13987
|
-
* Type representing
|
|
13987
|
+
* Type representing add tokens failure
|
|
13988
13988
|
* @property {string} reason
|
|
13989
13989
|
* @property {number} timestamp
|
|
13990
13990
|
*/
|
|
@@ -13995,7 +13995,7 @@ type AddTokensFailed = {
|
|
|
13995
13995
|
timestamp: number;
|
|
13996
13996
|
};
|
|
13997
13997
|
/**
|
|
13998
|
-
* Type representing a
|
|
13998
|
+
* Type representing a successful provider connection
|
|
13999
13999
|
* @property {Web3Provider} provider
|
|
14000
14000
|
* @property {EIP6963ProviderInfo} providerInfo
|
|
14001
14001
|
* @property {'from' | 'to'} providerType
|
|
@@ -14023,7 +14023,8 @@ declare enum CommerceSuccessEventType {
|
|
|
14023
14023
|
SALE_TRANSACTION_SUCCESS = "SALE_TRANSACTION_SUCCESS",
|
|
14024
14024
|
BRIDGE_SUCCESS = "BRIDGE_SUCCESS",
|
|
14025
14025
|
BRIDGE_CLAIM_WITHDRAWAL_SUCCESS = "BRIDGE_CLAIM_WITHDRAWAL_SUCCESS",
|
|
14026
|
-
ADD_TOKENS_SUCCESS = "ADD_TOKENS_SUCCESS"
|
|
14026
|
+
ADD_TOKENS_SUCCESS = "ADD_TOKENS_SUCCESS",
|
|
14027
|
+
ADD_TOKENS_CONNECT_SUCCESS = "ADD_TOKENS_CONNECT_SUCCESS"
|
|
14027
14028
|
}
|
|
14028
14029
|
declare enum CommerceFailureEventType {
|
|
14029
14030
|
BRIDGE_FAILED = "BRIDGE_FAILED",
|
|
@@ -14081,7 +14082,7 @@ type CommerceAddTokensSuccessEvent = {
|
|
|
14081
14082
|
data: AddTokensSuccess;
|
|
14082
14083
|
};
|
|
14083
14084
|
type CommerceAddTokensConnectSuccessEvent = {
|
|
14084
|
-
type: CommerceSuccessEventType.
|
|
14085
|
+
type: CommerceSuccessEventType.ADD_TOKENS_CONNECT_SUCCESS;
|
|
14085
14086
|
data: AddTokensConnectSuccess;
|
|
14086
14087
|
};
|
|
14087
14088
|
type CommerceSuccessEvent = CommerceAddTokensSuccessEvent | CommerceAddTokensConnectSuccessEvent | CommerceConnectSuccessEvent | CommerceBridgeSuccessEvent | CommerceBridgeClaimWithdrawalSuccessEvent | CommerceOnRampSuccessEvent | CommerceSwapSuccessEvent | CommerceSaleSuccessEvent | CommerceSaleSuccessfulTransactionEvent;
|
package/dist/checkout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AddTokensEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutError, h as CheckoutErrorType, i as CheckoutStatus, j as CommerceEventType, k as CommerceFailureEventType, l as CommerceFlowType, m as CommerceSuccessEventType, n as CommerceUserActionEventType, o as ConnectEventType, p as ConnectTargetLayer, E as ExchangeType, F as FeeType, q as FundingStepType, G as GasEstimateType, r as GasTokenType, I as IMMUTABLE_API_BASE_URL, s as IMTBLWidgetEvents, t as ItemType, N as NetworkFilterTypes, O as OnRampEventType, u as OrchestrationEventType, P as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, v as SalePaymentTypes, w as SwapDirection, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, D as WalletProviderName, H as WalletProviderRdns, J as WidgetTheme, K as WidgetType, L as getMetaMaskProviderDetail, M as getPassportProviderDetail, Q as isAddressSanctioned, U as validateProvider } from './checkout-
|
|
2
|
-
import './index-
|
|
1
|
+
export { A as AddTokensEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutError, h as CheckoutErrorType, i as CheckoutStatus, j as CommerceEventType, k as CommerceFailureEventType, l as CommerceFlowType, m as CommerceSuccessEventType, n as CommerceUserActionEventType, o as ConnectEventType, p as ConnectTargetLayer, E as ExchangeType, F as FeeType, q as FundingStepType, G as GasEstimateType, r as GasTokenType, I as IMMUTABLE_API_BASE_URL, s as IMTBLWidgetEvents, t as ItemType, N as NetworkFilterTypes, O as OnRampEventType, u as OrchestrationEventType, P as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, v as SalePaymentTypes, w as SwapDirection, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, D as WalletProviderName, H as WalletProviderRdns, J as WidgetTheme, K as WidgetType, L as getMetaMaskProviderDetail, M as getPassportProviderDetail, Q as isAddressSanctioned, U as validateProvider } from './checkout-BUdgmfZb.js';
|
|
2
|
+
import './index-16O3IPqB.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import 'lru-memorise';
|
|
5
5
|
import 'global-const';
|
|
@@ -10,13 +10,13 @@ import 'assert';
|
|
|
10
10
|
import '@uniswap/v3-sdk';
|
|
11
11
|
import '@ethersproject/solidity';
|
|
12
12
|
import '@uniswap/router-sdk';
|
|
13
|
-
import './index-
|
|
13
|
+
import './index-C9qVLigh.js';
|
|
14
14
|
import 'form-data';
|
|
15
15
|
import '@opensea/seaport-js/lib/constants';
|
|
16
16
|
import 'ethers-v6';
|
|
17
17
|
import 'merkletreejs';
|
|
18
18
|
import '@opensea/seaport-js';
|
|
19
|
-
import './index-
|
|
20
|
-
import './index-
|
|
19
|
+
import './index-LC2w9vjG.js';
|
|
20
|
+
import './index-C7Hv1Nni.js';
|
|
21
21
|
import '@metamask/detect-provider';
|
|
22
22
|
import 'semver';
|
|
@@ -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-16O3IPqB.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-16O3IPqB.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.
|
|
161
|
+
const SDK_VERSION = '1.66.0-alpha.2';
|
|
162
162
|
const getFrameParentDomain = () => {
|
|
163
163
|
if (isNode()) {
|
|
164
164
|
return '';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as index$2, I as ImxApiClients } from './index-
|
|
2
|
-
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-
|
|
1
|
+
import { d as index$2, I as ImxApiClients } from './index-C7Hv1Nni.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-16O3IPqB.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.
|
|
19
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.66.0-alpha.2' };
|
|
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.
|
|
60
|
+
sdkVersion: 'ts-immutable-sdk-1.66.0-alpha.2',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -13527,7 +13527,7 @@ class MultiRollupApiClients {
|
|
|
13527
13527
|
}
|
|
13528
13528
|
|
|
13529
13529
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13530
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
13530
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.66.0-alpha.2' };
|
|
13531
13531
|
const createConfig = ({ basePath, headers, }) => {
|
|
13532
13532
|
if (!basePath.trim()) {
|
|
13533
13533
|
throw Error('basePath can not be empty');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as track, E as Environment } from './index-
|
|
1
|
+
import { t as track, E as Environment } from './index-16O3IPqB.js';
|
|
2
2
|
import globalAxios from 'axios';
|
|
3
3
|
import FormData from 'form-data';
|
|
4
4
|
import { OrderType as OrderType$1, ItemType as ItemType$1 } from '@opensea/seaport-js/lib/constants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as index$1 } from './index-
|
|
2
|
-
import { E as Environment, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
import { a as index$1 } from './index-C7Hv1Nni.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-16O3IPqB.js';
|
|
3
3
|
import globalAxios from 'axios';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -21,7 +21,7 @@ class APIError extends Error {
|
|
|
21
21
|
|
|
22
22
|
/* eslint-disable implicit-arrow-linebreak */
|
|
23
23
|
const defaultHeaders = {
|
|
24
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
24
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.66.0-alpha.2',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|