@imtbl/sdk 1.74.6 → 1.74.7-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-BBONvpBU.js → blockchain_data-fFoqyHu8.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-HpAwyRg8.js → AddTokensWidget-Jywa7IWh.js} +36 -19
- package/dist/browser/checkout/{BridgeWidget-BnUuvgU3.js → BridgeWidget-cpMhHQnj.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-DcmfeaSb.js → CommerceWidget-C5K3F4Zr.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-CWeryWgH.js → CryptoFiatProvider-DgOGBx-p.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-CtEUw7DZ.js → EllipsizedText-DMeycvnS.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-CIpECHpH.js → FeesBreakdown-bbDiG1Ux.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-B8wjo-aZ.js → HandoverContent-Dq-llybq.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-BRzMmkhm.js → OnRampWidget-mra52C1g.js} +11 -5
- package/dist/browser/checkout/{SaleWidget-Cy-N0XPT.js → SaleWidget-9z5RV3yE.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-Dz_v4hl_.js → SpendingCapHero-CIxvK884.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-NamgDjF7.js → SwapWidget-NCzZx1XT.js} +9 -9
- package/dist/browser/checkout/{TokenImage-M4_KyvMy.js → TokenImage-B-Y5QJju.js} +1 -1
- package/dist/browser/checkout/{TopUpView-BUnn5SZC.js → TopUpView-DTh_PRgJ.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-CsVA0v_M.js → WalletApproveHero-BUA9VozT.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-DxkJce2t.js → WalletWidget-BSOki24G.js} +4 -4
- package/dist/browser/checkout/{auto-track-BakP0lUh.js → auto-track-BKXycx1Y.js} +1 -1
- package/dist/browser/checkout/{index-DuxOIY37.js → index-BX37-zLx.js} +1 -1
- package/dist/browser/checkout/{index-CNY0aGLT.js → index-CHqqEC1i.js} +1 -1
- package/dist/browser/checkout/{index-CS0uU4n6.js → index-Cmbpv_eN.js} +1 -1
- package/dist/browser/checkout/{index-MfHfV-ff.js → index-CpSjY1tJ.js} +1 -1
- package/dist/browser/checkout/{index-CRw3yRG-.js → index-Cz2SAyD0.js} +2 -2
- package/dist/browser/checkout/{index-Cy0V-bCx.js → index-D3uOVt_N.js} +1 -1
- package/dist/browser/checkout/{index-CZWe4hGv.js → index-bwwPmomM.js} +1 -1
- package/dist/browser/checkout/{index-DwNmBg_B.js → index-exBx79LE.js} +1 -1
- package/dist/browser/checkout/{index-C8ou4KWF.js → index-mGe-5mNf.js} +18 -18
- package/dist/browser/checkout/{index.umd-D-YrJTG2.js → index.umd-B6oucuJk.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-SnGfILOR.js → useInterval-Dj0hlEvr.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +38 -15
- package/dist/{checkout-CKxSsm6d.js → checkout-BAw3ayDK.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-CROsMG_I.js → config-TctNdmxp.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-2dpTs2JK.js → index-BC0p5r8z.js} +1 -1
- package/dist/{index-C088uwaf.js → index-CXlHw75z.js} +1 -1
- package/dist/{index-BujeyIxT.js → index-CYEgFlVx.js} +1 -1
- package/dist/{index-Ce6oOAYq.js → index-D6jJbsdR.js} +3 -3
- package/dist/{index-BOpx3W_c.js → index-DKC23NEQ.js} +1 -1
- package/dist/{index-Dr1FaRIL.js → index-DkHT0FK_.js} +4 -4
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-Xgq8hxSw.js → minting_backend-p9R81oVX.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-CxRMK2D1.js → orderbook-DQZHDDWr.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-Bp2D_UsF.js → passport-CcdFofPt.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-jetHvIvy.js → webhook-Dt-B7vNR.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-C75ygMCS.js → x-Cd-ids1V.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, dF as useBrowserLayoutEffect } from './index-
|
|
1
|
+
import { r as reactExports, dF as useBrowserLayoutEffect } from './index-mGe-5mNf.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 { e9 as WidgetsFactory } from './index-
|
|
1
|
+
export { e9 as WidgetsFactory } from './index-mGe-5mNf.js';
|
|
@@ -240362,7 +240362,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240362
240362
|
return (jsx$1(Drawer, { size: "full", visible: visible, showHeaderBar: false, onCloseDrawer: onClose, children: jsxs(Drawer.Content, { rc: jsx$1(motion$1.div, { variants: listVariants, initial: "hidden", animate: "show" }), sx: {
|
|
240363
240363
|
pt: 'base.spacing.x3',
|
|
240364
240364
|
px: 'base.spacing.x3',
|
|
240365
|
-
}, children: [jsxs(MenuItem, { size: "xSmall", children: [jsx$1(MenuItem.FramedImage, { padded: true, emphasized: true, use: jsx$1("img", { src: fromProviderInfo?.icon, alt: fromProviderInfo?.name }), sx: { mx: 'base.spacing.x2' } }), jsx$1(MenuItem.Label, { children: t('views.ADD_TOKENS.drawer.options.heading') }), jsxs(MenuItem.Caption, { children: [fromProviderInfo?.name, ' • ', jsx$1(EllipsizedText, { text: fromAddress ?? '', sx: { c: 'inherit', fontSize: 'inherit' } })] }), jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClose })] }), jsx$1(Options, { size: "small", checkout: checkout, routes: routes, chains: chains, onCardClick: onCardClick, onRouteClick: handleOnRouteClick, showOnrampOption: showOnrampOption, insufficientBalance: insufficientBalance, selectedIndex: selectedRouteIndex.current })] }) }));
|
|
240365
|
+
}, children: [jsxs(MenuItem, { size: "xSmall", children: [jsx$1(MenuItem.FramedImage, { padded: true, emphasized: true, use: (jsx$1("img", { src: fromProviderInfo?.icon, alt: fromProviderInfo?.name })), sx: { mx: 'base.spacing.x2' } }), jsx$1(MenuItem.Label, { children: t('views.ADD_TOKENS.drawer.options.heading') }), jsxs(MenuItem.Caption, { children: [fromProviderInfo?.name, ' • ', jsx$1(EllipsizedText, { text: fromAddress ?? '', sx: { c: 'inherit', fontSize: 'inherit' } })] }), jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClose })] }), jsx$1(Options, { size: "small", checkout: checkout, routes: routes, chains: chains, onCardClick: onCardClick, onRouteClick: handleOnRouteClick, showOnrampOption: showOnrampOption, insufficientBalance: insufficientBalance, selectedIndex: selectedRouteIndex.current })] }) }));
|
|
240366
240366
|
}
|
|
240367
240367
|
|
|
240368
240368
|
const delay = (ms) => new Promise((resolve) => {
|
|
@@ -240589,13 +240589,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240589
240589
|
};
|
|
240590
240590
|
};
|
|
240591
240591
|
|
|
240592
|
-
const SQUID_SDK_BASE_URL = 'https://apiplus.squidrouter.com';
|
|
240593
|
-
const SQUID_NATIVE_TOKEN = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
|
|
240594
|
-
const FIXED_HANDOVER_DURATION = 2000;
|
|
240595
|
-
const APPROVE_TXN_ANIMATION = '/access_coins.riv';
|
|
240596
|
-
const EXECUTE_TXN_ANIMATION = '/swapping_coins.riv';
|
|
240597
|
-
const TOKEN_PRIORITY_ORDER = ['IMX', 'USDC', 'ETH'];
|
|
240598
|
-
|
|
240599
240592
|
function SelectedRouteOptionContainer({ children, onClick, selected, }) {
|
|
240600
240593
|
return (jsx$1(Stack, { direction: "row", alignItems: "center", gap: "base.spacing.x4", sx: {
|
|
240601
240594
|
ml: ({ base }) => (selected
|
|
@@ -240642,14 +240635,21 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240642
240635
|
cursor: 'not-allowed',
|
|
240643
240636
|
bg: 'base.color.translucent.inverse.800',
|
|
240644
240637
|
};
|
|
240645
|
-
function SelectedWallet({ label, caption, children, onClick, providerInfo, disabled, sx, }) {
|
|
240638
|
+
function SelectedWallet({ label, caption, children, onClick, providerInfo, chainInfo, disabled, sx, }) {
|
|
240646
240639
|
const selected = !!children && providerInfo?.rdns;
|
|
240647
240640
|
const size = selected ? 'xSmall' : 'small';
|
|
240641
|
+
const getMenuItemImage = () => {
|
|
240642
|
+
const menuItemImage = !providerInfo?.icon ? (jsx$1(MenuItem.FramedIcon, { icon: "Wallet", variant: "bold", emphasized: false })) : (jsx$1(MenuItem.FramedImage, { padded: true, sx: { mx: selected ? 'base.spacing.x2' : undefined }, use: jsx$1("img", { src: providerInfo.icon, alt: providerInfo.name }) }));
|
|
240643
|
+
if (chainInfo && providerInfo?.rdns) {
|
|
240644
|
+
return (jsxs(Sticker, { position: { x: 'right', y: 'bottom' }, children: [jsx$1(Sticker.FramedImage, { use: jsx$1("img", { src: chainInfo.iconUrl, alt: chainInfo.name }), size: "xSmall", sx: { bottom: 'base.spacing.x2', right: 'base.spacing.x2' } }), menuItemImage] }));
|
|
240645
|
+
}
|
|
240646
|
+
return menuItemImage;
|
|
240647
|
+
};
|
|
240648
240648
|
return (jsxs(MenuItem, { size: size, disabled: disabled, emphasized: !disabled, onClick: disabled ? undefined : onClick, sx: {
|
|
240649
240649
|
py: selected ? 'base.spacing.x3' : undefined,
|
|
240650
240650
|
...(disabled ? disabledStyles : {}),
|
|
240651
240651
|
...sx,
|
|
240652
|
-
}, children: [
|
|
240652
|
+
}, children: [getMenuItemImage(), jsx$1(MenuItem.Label, { children: label }), providerInfo?.name ? (jsxs(MenuItem.Caption, { children: [providerInfo?.name, ' • ', jsx$1(EllipsizedText, { text: providerInfo.address ?? '', sx: { c: 'inherit', fontSize: 'inherit' } })] })) : (jsx$1(MenuItem.Caption, { children: caption })), jsx$1(MenuItem.BottomSlot, { children: children })] }));
|
|
240653
240653
|
}
|
|
240654
240654
|
|
|
240655
240655
|
function WarningHero() {
|
|
@@ -240828,6 +240828,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240828
240828
|
: t('drawers.wallet.payWithHeading'), visible: visible, onClose: onClose, providerType: "from", walletOptions: walletOptions, disabledOptions: disabledOptions, bottomSlot: payWithCardItem, onConnect: handleOnConnect }));
|
|
240829
240829
|
}
|
|
240830
240830
|
|
|
240831
|
+
const SQUID_SDK_BASE_URL = 'https://apiplus.squidrouter.com';
|
|
240832
|
+
const SQUID_NATIVE_TOKEN = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
|
|
240833
|
+
|
|
240831
240834
|
function convertToUsd(tokens, amount, token) {
|
|
240832
240835
|
if (!tokens || !amount || !token?.address) {
|
|
240833
240836
|
return 0;
|
|
@@ -243744,6 +243747,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243744
243747
|
}, children: t(`views.ADD_TOKENS.onboarding.screen${screenIndex}.title`) }), jsx$1(OnboardingPagination, { disabled: true, size: "small", currentPage: screenIndex, totalPages: 3, sx: { mt: 'base.spacing.x11', mb: 'base.spacing.x8' } }), jsx$1(Button, { variant: screenIndex === 3 ? 'primary' : 'tertiary', onClick: handleCtaOnClick, size: "large", sx: { alignSelf: 'stretch' }, children: t(`views.ADD_TOKENS.onboarding.screen${screenIndex}.buttonText`) })] }) }));
|
|
243745
243748
|
}
|
|
243746
243749
|
|
|
243750
|
+
const FIXED_HANDOVER_DURATION = 2000;
|
|
243751
|
+
const APPROVE_TXN_ANIMATION = '/access_coins.riv';
|
|
243752
|
+
const EXECUTE_TXN_ANIMATION = '/swapping_coins.riv';
|
|
243753
|
+
const TOKEN_PRIORITY_ORDER = ['IMX', 'USDC', 'ETH'];
|
|
243754
|
+
|
|
243747
243755
|
function HandoverContent({ headingText, subheadingText, primaryButtonText, onPrimaryButtonClick, secondaryButtonText, onSecondaryButtonClick, }) {
|
|
243748
243756
|
return (jsxs(Box, { sx: {
|
|
243749
243757
|
height: '100%',
|
|
@@ -244164,6 +244172,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
244164
244172
|
}
|
|
244165
244173
|
return detail;
|
|
244166
244174
|
}), [providers]);
|
|
244175
|
+
const toChain = reactExports.useMemo(() => chains?.find((chain) => chain.id === ChainId.IMTBL_ZKEVM_MAINNET.toString()), [chains]);
|
|
244167
244176
|
reactExports.useEffect(() => {
|
|
244168
244177
|
if (!id || isSwapAvailable === undefined) {
|
|
244169
244178
|
return;
|
|
@@ -244393,6 +244402,15 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
244393
244402
|
});
|
|
244394
244403
|
sendConnectProviderSuccessEvent(eventTarget, providerType, provider, providerInfo);
|
|
244395
244404
|
};
|
|
244405
|
+
const getChainInfo = () => {
|
|
244406
|
+
if (toChain) {
|
|
244407
|
+
return {
|
|
244408
|
+
iconUrl: toChain.iconUrl,
|
|
244409
|
+
name: toChain.name,
|
|
244410
|
+
};
|
|
244411
|
+
}
|
|
244412
|
+
return undefined;
|
|
244413
|
+
};
|
|
244396
244414
|
return (jsx$1(SimpleLayout, { containerSx: { bg: 'transparent' }, header: (jsxs(Stack, { direction: "row", sx: {
|
|
244397
244415
|
pos: 'absolute',
|
|
244398
244416
|
w: '100%',
|
|
@@ -244435,7 +244453,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
244435
244453
|
: {}, label: t('views.ADD_TOKENS.walletSelection.to.label'), caption: t('views.ADD_TOKENS.walletSelection.to.caption'), providerInfo: {
|
|
244436
244454
|
...toProviderInfo,
|
|
244437
244455
|
address: toAddress,
|
|
244438
|
-
}, onClick: () => setShowDeliverToDrawer(true), disabled: lockedToProvider })] }), jsx$1(Button, { testId: "add-tokens-button", size: "large", variant: readyToReview ? 'primary' : 'secondary', disabled: !readyToReview, onClick: handleReviewClick, sx: { opacity: readyToReview ? 1 : 0.5 }, children: t('views.ADD_TOKENS.review.buttonText') }), jsx$1(SquidFooter, {}), jsx$1(PayWithWalletDrawer, { visible: showPayWithDrawer, walletOptions: walletOptions, onClose: () => setShowPayWithDrawer(false), onPayWithCard: handleCardClick, onConnect: handleWalletConnected, insufficientBalance: insufficientBalance, showOnRampOption: shouldShowOnRampOption || !selectedToken }), jsx$1(OptionsDrawer, { checkout: checkout, routes: routes, showOnrampOption: shouldShowOnRampOption, showSwapOption: showSwapOption, showBridgeOption: showBridgeOption, visible: showOptionsDrawer, onClose: () => setShowOptionsDrawer(false), onCardClick: handleCardClick, onRouteClick: handleRouteClick, insufficientBalance: insufficientBalance }), jsx$1(DeliverToWalletDrawer, { visible: showDeliverToDrawer, walletOptions: walletOptions, onClose: handleDeliverToClose, onConnect: handleWalletConnected }), jsx$1(OnboardingDrawer, { environment: checkout?.config.environment })] })] }) }));
|
|
244456
|
+
}, chainInfo: getChainInfo(), onClick: () => setShowDeliverToDrawer(true), disabled: lockedToProvider })] }), jsx$1(Button, { testId: "add-tokens-button", size: "large", variant: readyToReview ? 'primary' : 'secondary', disabled: !readyToReview, onClick: handleReviewClick, sx: { opacity: readyToReview ? 1 : 0.5 }, children: t('views.ADD_TOKENS.review.buttonText') }), jsx$1(SquidFooter, {}), jsx$1(PayWithWalletDrawer, { visible: showPayWithDrawer, walletOptions: walletOptions, onClose: () => setShowPayWithDrawer(false), onPayWithCard: handleCardClick, onConnect: handleWalletConnected, insufficientBalance: insufficientBalance, showOnRampOption: shouldShowOnRampOption || !selectedToken }), jsx$1(OptionsDrawer, { checkout: checkout, routes: routes, showOnrampOption: shouldShowOnRampOption, showSwapOption: showSwapOption, showBridgeOption: showBridgeOption, visible: showOptionsDrawer, onClose: () => setShowOptionsDrawer(false), onCardClick: handleCardClick, onRouteClick: handleRouteClick, insufficientBalance: insufficientBalance }), jsx$1(DeliverToWalletDrawer, { visible: showDeliverToDrawer, walletOptions: walletOptions, onClose: handleDeliverToClose, onConnect: handleWalletConnected }), jsx$1(OnboardingDrawer, { environment: checkout?.config.environment })] })] }) }));
|
|
244439
244457
|
}
|
|
244440
244458
|
|
|
244441
244459
|
var dist$2 = {};
|
|
@@ -411643,8 +411661,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411643
411661
|
if (!transactionRequestTarget) {
|
|
411644
411662
|
throw new Error('transactionRequest target is undefined');
|
|
411645
411663
|
}
|
|
411646
|
-
|
|
411647
|
-
return allowance;
|
|
411664
|
+
return await tokenContract.allowance(ownerAddress, transactionRequestTarget);
|
|
411648
411665
|
}
|
|
411649
411666
|
return MaxUint256$5; // no approval is needed for native tokens
|
|
411650
411667
|
}
|
|
@@ -419533,7 +419550,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
419533
419550
|
screen: 'OrderInProgress',
|
|
419534
419551
|
control: 'PaymentProcessing',
|
|
419535
419552
|
controlType: 'IframeEvent',
|
|
419536
|
-
extras: {
|
|
419553
|
+
extras: {
|
|
419554
|
+
...miscProps,
|
|
419555
|
+
transactionHash: event.data.transactionHash,
|
|
419556
|
+
},
|
|
419537
419557
|
}); // checkoutOnRampOrderInProgress_PaymentProcessingIframeEvent
|
|
419538
419558
|
}
|
|
419539
419559
|
if (event.data.status === TransakStatuses$1.COMPLETED) {
|
|
@@ -419542,7 +419562,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
419542
419562
|
screen: 'Success',
|
|
419543
419563
|
control: 'PaymentCompleted',
|
|
419544
419564
|
controlType: 'IframeEvent',
|
|
419545
|
-
extras: {
|
|
419565
|
+
extras: {
|
|
419566
|
+
...miscProps,
|
|
419567
|
+
transactionHash: event.data.transactionHash,
|
|
419568
|
+
},
|
|
419546
419569
|
}); // checkoutOnRampSuccess_PaymentCompletedIframeEvent
|
|
419547
419570
|
}
|
|
419548
419571
|
break;
|
|
@@ -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-CXlHw75z.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-DKC23NEQ.js';
|
|
12
|
+
import { B as BlockchainData } from './index-D6jJbsdR.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.74.
|
|
19210
|
+
const SDK_VERSION = '1.74.7-alpha.1';
|
|
19211
19211
|
const getFrameParentDomain = () => {
|
|
19212
19212
|
if (isNode()) {
|
|
19213
19213
|
return '';
|
|
@@ -24327,7 +24327,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
24327
24327
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
24328
24328
|
};
|
|
24329
24329
|
|
|
24330
|
-
const SDK_VERSION_MARKER = '1.74.
|
|
24330
|
+
const SDK_VERSION_MARKER = '1.74.7-alpha.1';
|
|
24331
24331
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
24332
24332
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
24333
24333
|
|
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, v as PurchaseEventType, 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 fetchRiskAssessment, Q as getMetaMaskProviderDetail, U as getPassportProviderDetail, V as isAddressSanctioned, X 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, v as PurchaseEventType, 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 fetchRiskAssessment, Q as getMetaMaskProviderDetail, U as getPassportProviderDetail, V as isAddressSanctioned, X as validateProvider } from './checkout-BAw3ayDK.js';
|
|
2
|
+
import './index-CXlHw75z.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-DKC23NEQ.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-D6jJbsdR.js';
|
|
20
|
+
import './index-CYEgFlVx.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-CXlHw75z.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-CXlHw75z.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.74.
|
|
161
|
+
const SDK_VERSION = '1.74.7-alpha.1';
|
|
162
162
|
const getFrameParentDomain = () => {
|
|
163
163
|
if (isNode()) {
|
|
164
164
|
return '';
|
|
@@ -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.74.
|
|
14339
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.74.7-alpha.1' };
|
|
14340
14340
|
const createConfig = ({ basePath, headers, }) => {
|
|
14341
14341
|
if (!basePath.trim()) {
|
|
14342
14342
|
throw Error('basePath can not be empty');
|
|
@@ -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-CYEgFlVx.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-CXlHw75z.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.74.
|
|
24
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.74.7-alpha.1',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as track, E as Environment } from './index-
|
|
1
|
+
import { t as track, E as Environment } from './index-CXlHw75z.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 { 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-CYEgFlVx.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-CXlHw75z.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.74.
|
|
19
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.74.7-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.74.
|
|
60
|
+
sdkVersion: 'ts-immutable-sdk-1.74.7-alpha.1',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|