@imtbl/sdk 1.71.0 → 1.71.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-CnGfF1pn.js → blockchain_data-CNyFnM2c.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-DX862M-E.js → AddTokensWidget-DKzImmC-.js} +10 -41
- package/dist/browser/checkout/{BridgeWidget-DHE3rYyu.js → BridgeWidget-CzVsQchC.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-CRVvSMfa.js → CommerceWidget-CUasC3oE.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-DyvfZL2q.js → CryptoFiatProvider-DKXCDDGn.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-v-F1yYpO.js → EllipsizedText-UC6tKNEL.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-BnRplLqw.js → FeesBreakdown-BfPztUaH.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-CBWYW572.js → HandoverContent-B3LLoEOB.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-CNZ5m-5T.js → OnRampWidget-ByivbO-g.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-v_Wv4cHZ.js → SaleWidget-Dk7eHdEM.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-DBJD34W4.js → SpendingCapHero-LcUg19at.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-Bf5rLshq.js → SwapWidget-B5I4qbQ2.js} +9 -9
- package/dist/browser/checkout/{TokenImage-CdIIGg76.js → TokenImage-BV7fW6TT.js} +1 -1
- package/dist/browser/checkout/{TopUpView-DRQulCu5.js → TopUpView--9kYu60j.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-BU3SKYFC.js → WalletApproveHero-CzkeZMMr.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-DUouygq6.js → WalletWidget-72Q5gtXg.js} +4 -4
- package/dist/browser/checkout/{auto-track-BcXR2FGO.js → auto-track-BvpUU2wR.js} +1 -1
- package/dist/browser/checkout/{index-BvpkQgMG.js → index-79qqSOkN.js} +1 -1
- package/dist/browser/checkout/{index-B_xbMA8B.js → index-BAnpeiGZ.js} +2 -2
- package/dist/browser/checkout/{index-Dk2doLOA.js → index-B_P1u-VM.js} +1 -1
- package/dist/browser/checkout/{index-CIZG9-k7.js → index-Bct905Kz.js} +1 -1
- package/dist/browser/checkout/{index-BIp3psx3.js → index-CIzNTZ1B.js} +1 -1
- package/dist/browser/checkout/{index-JpOR4Zm7.js → index-Ck7ANhMH.js} +1 -1
- package/dist/browser/checkout/{index-Cc8gUKb8.js → index-Crwefhg1.js} +19 -58
- package/dist/browser/checkout/{index-vQiFv89d.js → index-OdSoW-FV.js} +1 -1
- package/dist/browser/checkout/{index-46QKxyKA.js → index-bkapV3e8.js} +1 -1
- package/dist/browser/checkout/{index.umd-CjMJbXN4.js → index.umd-nRJL7rJq.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-DK6XGCcn.js → useInterval-DutEDQ90.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +4 -74
- package/dist/{checkout-meEn5Q6m.js → checkout-CqcHP1Tc.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-C3jXo5B_.js → config-CWwpsjUb.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-BgM1a-uX.js → index-0ugTu8KO.js} +4 -4
- package/dist/{index-7L-dn1sC.js → index-Bqa30Kvc.js} +1 -1
- package/dist/{index-9ry1UIeU.js → index-DdRnSVaF.js} +1 -1
- package/dist/{index-Chc6Nlmz.js → index-LMP6ksZC.js} +3 -3
- package/dist/{index-vpju5ApE.js → index-Xh5TmON_.js} +1 -1
- package/dist/{index-CF0nSU3r.js → index-cZSX66t5.js} +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +160 -6
- package/dist/index.js +14 -14
- package/dist/{minting_backend-C0kmu8TR.js → minting_backend-BBI5ObIP.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-BmH4nmK8.js → orderbook-D3plQn23.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-GXPgkEAp.js → passport-BjF8KoDX.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-KhcWQK9Y.js → webhook-Bf60DT4_.js} +1 -1
- package/dist/webhook.d.ts +63 -139
- package/dist/webhook.js +2 -2
- package/dist/{x-B3doxDDZ.js → x-DkgUA49d.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-Crwefhg1.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-Crwefhg1.js';
|
|
@@ -128099,19 +128099,6 @@
|
|
|
128099
128099
|
CheckoutErrorType["WIDGETS_SCRIPT_LOAD_ERROR"] = "WIDGETS_SCRIPT_LOAD_ERROR";
|
|
128100
128100
|
CheckoutErrorType["APPROVAL_TRANSACTION_FAILED"] = "APPROVAL_TRANSACTION_FAILED";
|
|
128101
128101
|
})(CheckoutErrorType || (CheckoutErrorType = {}));
|
|
128102
|
-
/* The CheckoutError class is a custom error class in TypeScript that includes a message, type, and
|
|
128103
|
-
optional data object. */
|
|
128104
|
-
class CheckoutError extends Error {
|
|
128105
|
-
message;
|
|
128106
|
-
type;
|
|
128107
|
-
data;
|
|
128108
|
-
constructor(message, type, data) {
|
|
128109
|
-
super(message);
|
|
128110
|
-
this.message = message;
|
|
128111
|
-
this.type = type;
|
|
128112
|
-
this.data = data;
|
|
128113
|
-
}
|
|
128114
|
-
}
|
|
128115
128102
|
var CheckoutInternalErrorType;
|
|
128116
128103
|
(function (CheckoutInternalErrorType) {
|
|
128117
128104
|
CheckoutInternalErrorType["REJECTED_SWITCH_AFTER_ADDING_NETWORK"] = "REJECTED_SWITCH_AFTER_ADDING_NETWORK";
|
|
@@ -128557,9 +128544,6 @@
|
|
|
128557
128544
|
}
|
|
128558
128545
|
};
|
|
128559
128546
|
const isAddressSanctioned = (riskAssessment, address) => {
|
|
128560
|
-
if (address) {
|
|
128561
|
-
return riskAssessment[address.toLowerCase()].sanctioned;
|
|
128562
|
-
}
|
|
128563
128547
|
return Object.values(riskAssessment).some((assessment) => assessment.sanctioned);
|
|
128564
128548
|
};
|
|
128565
128549
|
|
|
@@ -224951,7 +224935,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
224951
224935
|
var ConnectEIP6963ProviderError;
|
|
224952
224936
|
(function (ConnectEIP6963ProviderError) {
|
|
224953
224937
|
ConnectEIP6963ProviderError["CONNECT_ERROR"] = "CONNECT_ERROR";
|
|
224954
|
-
ConnectEIP6963ProviderError["SANCTIONED_ADDRESS"] = "SANCTIONED_ADDRESS";
|
|
224955
224938
|
ConnectEIP6963ProviderError["USER_REJECTED_REQUEST_ERROR"] = "USER_REJECTED_REQUEST_ERROR";
|
|
224956
224939
|
})(ConnectEIP6963ProviderError || (ConnectEIP6963ProviderError = {}));
|
|
224957
224940
|
const connectEIP6963Provider = async (providerDetail, checkout, shouldRequestWalletPermissions) => {
|
|
@@ -224963,11 +224946,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
224963
224946
|
provider: web3Provider,
|
|
224964
224947
|
requestWalletPermissions,
|
|
224965
224948
|
});
|
|
224966
|
-
const address = await connectResult.provider.getSigner().getAddress();
|
|
224967
|
-
const riskAssessment = await checkout.getRiskAssessment([address]);
|
|
224968
|
-
if (checkout.checkIsAddressSanctioned(riskAssessment, address)) {
|
|
224969
|
-
throw new CheckoutError('Sanctioned address', ConnectEIP6963ProviderError.SANCTIONED_ADDRESS);
|
|
224970
|
-
}
|
|
224971
224949
|
addProviderListenersForWidgetRoot(connectResult.provider);
|
|
224972
224950
|
return {
|
|
224973
224951
|
provider: connectResult.provider,
|
|
@@ -224978,8 +224956,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
224978
224956
|
switch (error.type) {
|
|
224979
224957
|
case CheckoutErrorType.USER_REJECTED_REQUEST_ERROR:
|
|
224980
224958
|
throw new Error(ConnectEIP6963ProviderError.USER_REJECTED_REQUEST_ERROR);
|
|
224981
|
-
case ConnectEIP6963ProviderError.SANCTIONED_ADDRESS:
|
|
224982
|
-
throw new Error(ConnectEIP6963ProviderError.SANCTIONED_ADDRESS);
|
|
224983
224959
|
default:
|
|
224984
224960
|
throw new Error(ConnectEIP6963ProviderError.CONNECT_ERROR);
|
|
224985
224961
|
}
|
|
@@ -226716,21 +226692,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
226716
226692
|
provider: web3Provider,
|
|
226717
226693
|
requestWalletPermissions: changeAccount,
|
|
226718
226694
|
});
|
|
226719
|
-
// CM-793 Check for sanctioned address
|
|
226720
|
-
const address = await connectResult.provider.getSigner().getAddress();
|
|
226721
|
-
const sanctions = await fetchRiskAssessment([address], checkout.config);
|
|
226722
|
-
if (isAddressSanctioned(sanctions, address)) {
|
|
226723
|
-
viewDispatch({
|
|
226724
|
-
payload: {
|
|
226725
|
-
type: ViewActions.UPDATE_VIEW,
|
|
226726
|
-
view: {
|
|
226727
|
-
type: SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW,
|
|
226728
|
-
error: new Error('Sanctioned address'),
|
|
226729
|
-
},
|
|
226730
|
-
},
|
|
226731
|
-
});
|
|
226732
|
-
return;
|
|
226733
|
-
}
|
|
226734
226695
|
// Set up EIP-1193 provider event listeners for widget root instances
|
|
226735
226696
|
addProviderListenersForWidgetRoot(connectResult.provider);
|
|
226736
226697
|
await identifyUser(identify, connectResult.provider);
|
|
@@ -240268,7 +240229,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240268
240229
|
catch (error) {
|
|
240269
240230
|
let errorType = error.message;
|
|
240270
240231
|
switch (error.message) {
|
|
240271
|
-
case ConnectEIP6963ProviderError.SANCTIONED_ADDRESS:
|
|
240272
240232
|
case ConnectEIP6963ProviderError.CONNECT_ERROR:
|
|
240273
240233
|
setShowUnableToConnectDrawer(true);
|
|
240274
240234
|
break;
|
|
@@ -240311,36 +240271,20 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240311
240271
|
|
|
240312
240272
|
function DeliverToWalletDrawer({ visible, onClose, onConnect, walletOptions, }) {
|
|
240313
240273
|
const { providersState: { fromProviderInfo }, } = useProvidersContext();
|
|
240314
|
-
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
240315
240274
|
const handleOnConnect = (provider, providerInfo) => {
|
|
240316
240275
|
onConnect?.('to', provider, providerInfo);
|
|
240317
240276
|
};
|
|
240318
|
-
const handleOnError = (errorType) => {
|
|
240319
|
-
if (errorType === ConnectEIP6963ProviderError.SANCTIONED_ADDRESS) {
|
|
240320
|
-
onClose();
|
|
240321
|
-
viewDispatch({
|
|
240322
|
-
payload: {
|
|
240323
|
-
type: ViewActions.UPDATE_VIEW,
|
|
240324
|
-
view: {
|
|
240325
|
-
type: SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW,
|
|
240326
|
-
error: new Error(errorType),
|
|
240327
|
-
},
|
|
240328
|
-
},
|
|
240329
|
-
});
|
|
240330
|
-
}
|
|
240331
|
-
};
|
|
240332
240277
|
// Because wallets extensions don't support multiple wallet connections
|
|
240333
240278
|
// UX decides to have the user use the same wallet type they selected to pay with
|
|
240334
240279
|
// ie: Metamask to Metamsk, will send to same wallet address
|
|
240335
240280
|
const selectedSameFromWalletType = (providerInfo) => (fromProviderInfo?.rdns !== providerInfo.rdns ? undefined : false);
|
|
240336
240281
|
const { t } = useTranslation();
|
|
240337
|
-
return (jsx$1(ConnectWalletDrawer, { heading: t('drawers.wallet.deliverToHeading'), visible: visible, onClose: onClose, providerType: "to", walletOptions: walletOptions, onConnect: handleOnConnect,
|
|
240282
|
+
return (jsx$1(ConnectWalletDrawer, { heading: t('drawers.wallet.deliverToHeading'), visible: visible, onClose: onClose, providerType: "to", walletOptions: walletOptions, onConnect: handleOnConnect, getShouldRequestWalletPermissions: selectedSameFromWalletType }));
|
|
240338
240283
|
}
|
|
240339
240284
|
|
|
240340
240285
|
function PayWithWalletDrawer({ visible, onClose, onConnect, onPayWithCard, walletOptions, insufficientBalance, showOnRampOption = true, }) {
|
|
240341
240286
|
const { t } = useTranslation();
|
|
240342
240287
|
const { providersState: { fromProviderInfo } } = useProvidersContext();
|
|
240343
|
-
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
240344
240288
|
const disabledOptions = reactExports.useMemo(() => {
|
|
240345
240289
|
if (insufficientBalance && fromProviderInfo) {
|
|
240346
240290
|
return [{
|
|
@@ -240353,20 +240297,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240353
240297
|
const handleOnConnect = (provider, providerInfo) => {
|
|
240354
240298
|
onConnect('from', provider, providerInfo);
|
|
240355
240299
|
};
|
|
240356
|
-
const handleOnError = (errorType) => {
|
|
240357
|
-
if (errorType === ConnectEIP6963ProviderError.SANCTIONED_ADDRESS) {
|
|
240358
|
-
onClose();
|
|
240359
|
-
viewDispatch({
|
|
240360
|
-
payload: {
|
|
240361
|
-
type: ViewActions.UPDATE_VIEW,
|
|
240362
|
-
view: {
|
|
240363
|
-
type: SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW,
|
|
240364
|
-
error: new Error(errorType),
|
|
240365
|
-
},
|
|
240366
|
-
},
|
|
240367
|
-
});
|
|
240368
|
-
}
|
|
240369
|
-
};
|
|
240370
240300
|
const payWithCardItem = reactExports.useMemo(() => {
|
|
240371
240301
|
if (!showOnRampOption)
|
|
240372
240302
|
return null;
|
|
@@ -240377,7 +240307,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240377
240307
|
}, [onClose, onPayWithCard]);
|
|
240378
240308
|
return (jsx$1(ConnectWalletDrawer, { heading: insufficientBalance
|
|
240379
240309
|
? t('drawers.wallet.payWithHeadingInsufficientBalance')
|
|
240380
|
-
: t('drawers.wallet.payWithHeading'), visible: visible, onClose: onClose, providerType: "from", walletOptions: walletOptions, disabledOptions: disabledOptions, bottomSlot: payWithCardItem, onConnect: handleOnConnect
|
|
240310
|
+
: t('drawers.wallet.payWithHeading'), visible: visible, onClose: onClose, providerType: "from", walletOptions: walletOptions, disabledOptions: disabledOptions, bottomSlot: payWithCardItem, onConnect: handleOnConnect }));
|
|
240381
240311
|
}
|
|
240382
240312
|
|
|
240383
240313
|
function convertToUsd(tokens, amount, token) {
|
|
@@ -243463,10 +243393,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243463
243393
|
|
|
243464
243394
|
const PULSE_SHADOW = keyframes$1 `
|
|
243465
243395
|
0% {
|
|
243466
|
-
box-shadow: 0 0 0 0 rgba(255, 255, 255,
|
|
243396
|
+
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
|
|
243467
243397
|
}
|
|
243468
243398
|
50% {
|
|
243469
|
-
box-shadow: 0 0 10px 3px rgba(54, 210, 227, 0.
|
|
243399
|
+
box-shadow: 0 0 10px 3px rgba(54, 210, 227, 0.3);
|
|
243470
243400
|
}
|
|
243471
243401
|
100% {
|
|
243472
243402
|
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
|
|
@@ -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-DdRnSVaF.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-Bqa30Kvc.js';
|
|
12
|
+
import { B as BlockchainData } from './index-LMP6ksZC.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.71.
|
|
19210
|
+
const SDK_VERSION = '1.71.1';
|
|
19211
19211
|
const getFrameParentDomain = () => {
|
|
19212
19212
|
if (isNode()) {
|
|
19213
19213
|
return '';
|
|
@@ -24316,7 +24316,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
24316
24316
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
24317
24317
|
};
|
|
24318
24318
|
|
|
24319
|
-
const SDK_VERSION_MARKER = '1.71.
|
|
24319
|
+
const SDK_VERSION_MARKER = '1.71.1';
|
|
24320
24320
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
24321
24321
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
24322
24322
|
|
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 fetchRiskAssessment, M as getMetaMaskProviderDetail, Q as getPassportProviderDetail, U as isAddressSanctioned, V 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 fetchRiskAssessment, M as getMetaMaskProviderDetail, Q as getPassportProviderDetail, U as isAddressSanctioned, V as validateProvider } from './checkout-CqcHP1Tc.js';
|
|
2
|
+
import './index-DdRnSVaF.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-Bqa30Kvc.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-LMP6ksZC.js';
|
|
20
|
+
import './index-cZSX66t5.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-DdRnSVaF.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-DdRnSVaF.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'lru-memorise';
|
|
4
4
|
import 'global-const';
|
|
@@ -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-cZSX66t5.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-DdRnSVaF.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.71.
|
|
19
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.71.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.71.
|
|
60
|
+
sdkVersion: 'ts-immutable-sdk-1.71.1',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as track, E as Environment } from './index-
|
|
1
|
+
import { t as track, E as Environment } from './index-DdRnSVaF.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';
|
|
@@ -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.71.
|
|
161
|
+
const SDK_VERSION = '1.71.1';
|
|
162
162
|
const getFrameParentDomain = () => {
|
|
163
163
|
if (isNode()) {
|
|
164
164
|
return '';
|
|
@@ -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-cZSX66t5.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-DdRnSVaF.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.71.
|
|
24
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.71.1',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14336,7 +14336,7 @@ class MultiRollupApiClients {
|
|
|
14336
14336
|
}
|
|
14337
14337
|
|
|
14338
14338
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14339
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.71.
|
|
14339
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.71.1' };
|
|
14340
14340
|
const createConfig = ({ basePath, headers, }) => {
|
|
14341
14341
|
if (!basePath.trim()) {
|
|
14342
14342
|
throw Error('basePath can not be empty');
|