@imtbl/sdk 1.66.1-alpha.5 → 1.67.0-alpha
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-Dfr1SEzf.js → blockchain_data-BDPQfPJV.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-DOrdpkO7.js → AddTokensWidget-DhAAwA2S.js} +6 -6
- package/dist/browser/checkout/{BridgeWidget-B_vi1Ssa.js → BridgeWidget-CUc8HRTw.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-C68czNXp.js → CommerceWidget-BOWOZCaz.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-BQnex4kK.js → CryptoFiatProvider-CxiVWPGH.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-BKvK3D39.js → EllipsizedText-Dz34eo3g.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-D6_5RSli.js → FeesBreakdown-BW6UtIiJ.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-BdLeQxXZ.js → HandoverContent-Ce_52Gy0.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-C8eAvn2h.js → OnRampWidget-vxPgznQT.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-BZEO1Z0R.js → SaleWidget-BdnaSjMC.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-DSxAy7i7.js → SpendingCapHero-BL6pv3Tz.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-aaVH-Qer.js → SwapWidget-DpZ61Qy1.js} +9 -9
- package/dist/browser/checkout/{TokenImage-U9rHUvzP.js → TokenImage-CaeGAfaV.js} +1 -1
- package/dist/browser/checkout/{TopUpView-DneJ-CVS.js → TopUpView-DBCanPUb.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-DNqScdgL.js → WalletApproveHero-YzOD7wTV.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-DrAjH6tc.js → WalletWidget-Baf13r5o.js} +4 -4
- package/dist/browser/checkout/{auto-track-BADLL5Ay.js → auto-track-CX-Sbbf1.js} +1 -1
- package/dist/browser/checkout/{index-BChWbLVO.js → index-BEyIbtPl.js} +1 -1
- package/dist/browser/checkout/{index-C5-9ao9V.js → index-BfJ5tYUk.js} +1 -1
- package/dist/browser/checkout/{index--_tedUf7.js → index-BiTQa147.js} +2 -2
- package/dist/browser/checkout/{index-Cy0mQsLu.js → index-BnI_t7Bf.js} +1 -1
- package/dist/browser/checkout/{index-bVCwGMiz.js → index-BuVcM3lx.js} +1 -1
- package/dist/browser/checkout/{index-m1NFFNlK.js → index-DFfgowSz.js} +1 -1
- package/dist/browser/checkout/{index-BlfJLtVx.js → index-MiJtNQGp.js} +106 -106
- package/dist/browser/checkout/{index-BIC4Mmu2.js → index-QRMG13bY.js} +1 -1
- package/dist/browser/checkout/{index-zBo3-pg9.js → index-WkEhhO8Q.js} +1 -1
- package/dist/browser/checkout/{index.umd-r-idjbRp.js → index.umd-Du3dKMeF.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-DoI5Akwp.js → useInterval-CaT4s9av.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +88 -88
- package/dist/{checkout-C0snH6g2.js → checkout--1mYuAXD.js} +5 -5
- package/dist/checkout.d.ts +10 -3
- package/dist/checkout.js +5 -5
- package/dist/{config-C_2P0VZ-.js → config-DffHwEwF.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-CGO8krip.js → index-02SYXuJF.js} +1 -1
- package/dist/{index-jrZBW8jM.js → index-BQ32RH92.js} +1 -1
- package/dist/{index-9yyEhR5w.js → index-BQ86loCt.js} +1 -1
- package/dist/{index-fvjLL56M.js → index-ByHQAg3p.js} +4 -4
- package/dist/{index-B_cOitev.js → index-D4SnN7tJ.js} +1 -1
- package/dist/{index-7j1QVND_.js → index-DZf2HB3e.js} +3 -3
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +11 -3
- package/dist/index.js +14 -14
- package/dist/{minting_backend-BpQi-ZFx.js → minting_backend-BeTIXYB2.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-Dof2P3GW.js → orderbook-CiQq6fd5.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-RBVHTUsi.js → passport-qhE7n9aI.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-ENvQIiZz.js → webhook-DiIVzY9G.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-4T4U9lLH.js → x-wVhXYLtD.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, dK as useBrowserLayoutEffect } from './index-
|
|
1
|
+
import { r as reactExports, dK as useBrowserLayoutEffect } from './index-MiJtNQGp.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 { ee as WidgetsFactory } from './index-
|
|
1
|
+
export { ee as WidgetsFactory } from './index-MiJtNQGp.js';
|
|
@@ -225847,6 +225847,92 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
225847
225847
|
}
|
|
225848
225848
|
};
|
|
225849
225849
|
|
|
225850
|
+
function getChainNameById(chainId) {
|
|
225851
|
+
switch (chainId) {
|
|
225852
|
+
case ChainId.ETHEREUM: return ChainName$1.ETHEREUM;
|
|
225853
|
+
case ChainId.IMTBL_ZKEVM_TESTNET: return ChainName$1.IMTBL_ZKEVM_TESTNET;
|
|
225854
|
+
case ChainId.IMTBL_ZKEVM_MAINNET: return ChainName$1.IMTBL_ZKEVM_MAINNET;
|
|
225855
|
+
case ChainId.IMTBL_ZKEVM_DEVNET: return ChainName$1.IMTBL_ZKEVM_DEVNET;
|
|
225856
|
+
case ChainId.SEPOLIA: return ChainName$1.SEPOLIA;
|
|
225857
|
+
default: return '';
|
|
225858
|
+
}
|
|
225859
|
+
}
|
|
225860
|
+
function getChainSlugById(chainId) {
|
|
225861
|
+
switch (chainId) {
|
|
225862
|
+
case ChainId.ETHEREUM: return ChainSlug.ETHEREUM;
|
|
225863
|
+
case ChainId.IMTBL_ZKEVM_TESTNET: return ChainSlug.IMTBL_ZKEVM_TESTNET;
|
|
225864
|
+
case ChainId.IMTBL_ZKEVM_MAINNET: return ChainSlug.IMTBL_ZKEVM_MAINNET;
|
|
225865
|
+
case ChainId.IMTBL_ZKEVM_DEVNET: return ChainSlug.IMTBL_ZKEVM_DEVNET;
|
|
225866
|
+
case ChainId.SEPOLIA: return ChainSlug.SEPOLIA;
|
|
225867
|
+
default: return '';
|
|
225868
|
+
}
|
|
225869
|
+
}
|
|
225870
|
+
function getChainIdBySlug(chainSlug) {
|
|
225871
|
+
switch (chainSlug) {
|
|
225872
|
+
case ChainSlug.ETHEREUM: return ChainId.ETHEREUM;
|
|
225873
|
+
case ChainSlug.IMTBL_ZKEVM_TESTNET: return ChainId.IMTBL_ZKEVM_TESTNET;
|
|
225874
|
+
case ChainSlug.IMTBL_ZKEVM_MAINNET: return ChainId.IMTBL_ZKEVM_MAINNET;
|
|
225875
|
+
case ChainSlug.IMTBL_ZKEVM_DEVNET: return ChainId.IMTBL_ZKEVM_DEVNET;
|
|
225876
|
+
case ChainSlug.SEPOLIA: return ChainId.SEPOLIA;
|
|
225877
|
+
default: return 0;
|
|
225878
|
+
}
|
|
225879
|
+
}
|
|
225880
|
+
function getNativeSymbolByChainSlug(chainSlug) {
|
|
225881
|
+
switch (chainSlug) {
|
|
225882
|
+
case ChainSlug.ETHEREUM:
|
|
225883
|
+
case ChainSlug.SEPOLIA:
|
|
225884
|
+
return 'ETH';
|
|
225885
|
+
case ChainSlug.IMTBL_ZKEVM_TESTNET:
|
|
225886
|
+
case ChainSlug.IMTBL_ZKEVM_MAINNET:
|
|
225887
|
+
case ChainSlug.IMTBL_ZKEVM_DEVNET:
|
|
225888
|
+
return 'IMX';
|
|
225889
|
+
default: return '';
|
|
225890
|
+
}
|
|
225891
|
+
}
|
|
225892
|
+
|
|
225893
|
+
const ConnectWidget$2 = React.lazy(() => Promise.resolve().then(function () { return ConnectWidget$1; }));
|
|
225894
|
+
class Connect extends Base$3 {
|
|
225895
|
+
eventTopic = IMTBLWidgetEvents.IMTBL_CONNECT_WIDGET_EVENT;
|
|
225896
|
+
getValidatedProperties({ config }) {
|
|
225897
|
+
return {
|
|
225898
|
+
config,
|
|
225899
|
+
};
|
|
225900
|
+
}
|
|
225901
|
+
getValidatedParameters(params) {
|
|
225902
|
+
const validatedParams = params;
|
|
225903
|
+
// validating targetChainId per environment
|
|
225904
|
+
if (!params.targetChainId
|
|
225905
|
+
&& this.checkout.config.isProduction) {
|
|
225906
|
+
validatedParams.targetChainId = ChainId.IMTBL_ZKEVM_MAINNET;
|
|
225907
|
+
}
|
|
225908
|
+
else if (params.targetChainId
|
|
225909
|
+
&& this.checkout.config.isProduction
|
|
225910
|
+
&& (params.targetChainId !== ChainId.ETHEREUM && params.targetChainId !== ChainId.IMTBL_ZKEVM_MAINNET)) {
|
|
225911
|
+
// eslint-disable-next-line max-len, no-console
|
|
225912
|
+
console.warn(`Cannot set targetChainId to ${params.targetChainId} in ${Environment$1.PRODUCTION} environment, defaulting to ${getChainNameById(ChainId.IMTBL_ZKEVM_MAINNET)}, chainId ${ChainId.IMTBL_ZKEVM_MAINNET}`);
|
|
225913
|
+
validatedParams.targetChainId = ChainId.IMTBL_ZKEVM_MAINNET;
|
|
225914
|
+
}
|
|
225915
|
+
if (!params.targetChainId
|
|
225916
|
+
&& this.checkout.config.environment === Environment$1.SANDBOX) {
|
|
225917
|
+
validatedParams.targetChainId = ChainId.IMTBL_ZKEVM_TESTNET;
|
|
225918
|
+
}
|
|
225919
|
+
else if (params.targetChainId
|
|
225920
|
+
&& this.checkout.config.environment === Environment$1.SANDBOX
|
|
225921
|
+
&& (params.targetChainId !== ChainId.SEPOLIA && params.targetChainId !== ChainId.IMTBL_ZKEVM_TESTNET)) {
|
|
225922
|
+
// eslint-disable-next-line max-len, no-console
|
|
225923
|
+
console.warn(`Cannot set targetChainId to ${params.targetChainId} in ${Environment$1.SANDBOX} environment, defaulting to ${getChainNameById(ChainId.IMTBL_ZKEVM_TESTNET)}, chainId ${ChainId.IMTBL_ZKEVM_TESTNET}`);
|
|
225924
|
+
validatedParams.targetChainId = ChainId.IMTBL_ZKEVM_TESTNET;
|
|
225925
|
+
}
|
|
225926
|
+
return params;
|
|
225927
|
+
}
|
|
225928
|
+
render() {
|
|
225929
|
+
if (!this.reactRoot)
|
|
225930
|
+
return;
|
|
225931
|
+
const { t } = instance;
|
|
225932
|
+
this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "connect-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(ConnectWidget$2, { config: this.strongConfig(), checkout: this.checkout, targetWalletRdns: this.parameters.targetWalletRdns, targetChainId: this.parameters.targetChainId, blocklistWalletRdns: this.parameters.blocklistWalletRdns }) }) }) }) }) }));
|
|
225933
|
+
}
|
|
225934
|
+
}
|
|
225935
|
+
|
|
225850
225936
|
function deduplicateSaleItemsArray(items) {
|
|
225851
225937
|
if (!items || !Array.isArray(items))
|
|
225852
225938
|
return [];
|
|
@@ -226044,92 +226130,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
226044
226130
|
}
|
|
226045
226131
|
}
|
|
226046
226132
|
|
|
226047
|
-
function getChainNameById(chainId) {
|
|
226048
|
-
switch (chainId) {
|
|
226049
|
-
case ChainId.ETHEREUM: return ChainName$1.ETHEREUM;
|
|
226050
|
-
case ChainId.IMTBL_ZKEVM_TESTNET: return ChainName$1.IMTBL_ZKEVM_TESTNET;
|
|
226051
|
-
case ChainId.IMTBL_ZKEVM_MAINNET: return ChainName$1.IMTBL_ZKEVM_MAINNET;
|
|
226052
|
-
case ChainId.IMTBL_ZKEVM_DEVNET: return ChainName$1.IMTBL_ZKEVM_DEVNET;
|
|
226053
|
-
case ChainId.SEPOLIA: return ChainName$1.SEPOLIA;
|
|
226054
|
-
default: return '';
|
|
226055
|
-
}
|
|
226056
|
-
}
|
|
226057
|
-
function getChainSlugById(chainId) {
|
|
226058
|
-
switch (chainId) {
|
|
226059
|
-
case ChainId.ETHEREUM: return ChainSlug.ETHEREUM;
|
|
226060
|
-
case ChainId.IMTBL_ZKEVM_TESTNET: return ChainSlug.IMTBL_ZKEVM_TESTNET;
|
|
226061
|
-
case ChainId.IMTBL_ZKEVM_MAINNET: return ChainSlug.IMTBL_ZKEVM_MAINNET;
|
|
226062
|
-
case ChainId.IMTBL_ZKEVM_DEVNET: return ChainSlug.IMTBL_ZKEVM_DEVNET;
|
|
226063
|
-
case ChainId.SEPOLIA: return ChainSlug.SEPOLIA;
|
|
226064
|
-
default: return '';
|
|
226065
|
-
}
|
|
226066
|
-
}
|
|
226067
|
-
function getChainIdBySlug(chainSlug) {
|
|
226068
|
-
switch (chainSlug) {
|
|
226069
|
-
case ChainSlug.ETHEREUM: return ChainId.ETHEREUM;
|
|
226070
|
-
case ChainSlug.IMTBL_ZKEVM_TESTNET: return ChainId.IMTBL_ZKEVM_TESTNET;
|
|
226071
|
-
case ChainSlug.IMTBL_ZKEVM_MAINNET: return ChainId.IMTBL_ZKEVM_MAINNET;
|
|
226072
|
-
case ChainSlug.IMTBL_ZKEVM_DEVNET: return ChainId.IMTBL_ZKEVM_DEVNET;
|
|
226073
|
-
case ChainSlug.SEPOLIA: return ChainId.SEPOLIA;
|
|
226074
|
-
default: return 0;
|
|
226075
|
-
}
|
|
226076
|
-
}
|
|
226077
|
-
function getNativeSymbolByChainSlug(chainSlug) {
|
|
226078
|
-
switch (chainSlug) {
|
|
226079
|
-
case ChainSlug.ETHEREUM:
|
|
226080
|
-
case ChainSlug.SEPOLIA:
|
|
226081
|
-
return 'ETH';
|
|
226082
|
-
case ChainSlug.IMTBL_ZKEVM_TESTNET:
|
|
226083
|
-
case ChainSlug.IMTBL_ZKEVM_MAINNET:
|
|
226084
|
-
case ChainSlug.IMTBL_ZKEVM_DEVNET:
|
|
226085
|
-
return 'IMX';
|
|
226086
|
-
default: return '';
|
|
226087
|
-
}
|
|
226088
|
-
}
|
|
226089
|
-
|
|
226090
|
-
const ConnectWidget$2 = React.lazy(() => Promise.resolve().then(function () { return ConnectWidget$1; }));
|
|
226091
|
-
class Connect extends Base$3 {
|
|
226092
|
-
eventTopic = IMTBLWidgetEvents.IMTBL_CONNECT_WIDGET_EVENT;
|
|
226093
|
-
getValidatedProperties({ config }) {
|
|
226094
|
-
return {
|
|
226095
|
-
config,
|
|
226096
|
-
};
|
|
226097
|
-
}
|
|
226098
|
-
getValidatedParameters(params) {
|
|
226099
|
-
const validatedParams = params;
|
|
226100
|
-
// validating targetChainId per environment
|
|
226101
|
-
if (!params.targetChainId
|
|
226102
|
-
&& this.checkout.config.isProduction) {
|
|
226103
|
-
validatedParams.targetChainId = ChainId.IMTBL_ZKEVM_MAINNET;
|
|
226104
|
-
}
|
|
226105
|
-
else if (params.targetChainId
|
|
226106
|
-
&& this.checkout.config.isProduction
|
|
226107
|
-
&& (params.targetChainId !== ChainId.ETHEREUM && params.targetChainId !== ChainId.IMTBL_ZKEVM_MAINNET)) {
|
|
226108
|
-
// eslint-disable-next-line max-len, no-console
|
|
226109
|
-
console.warn(`Cannot set targetChainId to ${params.targetChainId} in ${Environment$1.PRODUCTION} environment, defaulting to ${getChainNameById(ChainId.IMTBL_ZKEVM_MAINNET)}, chainId ${ChainId.IMTBL_ZKEVM_MAINNET}`);
|
|
226110
|
-
validatedParams.targetChainId = ChainId.IMTBL_ZKEVM_MAINNET;
|
|
226111
|
-
}
|
|
226112
|
-
if (!params.targetChainId
|
|
226113
|
-
&& this.checkout.config.environment === Environment$1.SANDBOX) {
|
|
226114
|
-
validatedParams.targetChainId = ChainId.IMTBL_ZKEVM_TESTNET;
|
|
226115
|
-
}
|
|
226116
|
-
else if (params.targetChainId
|
|
226117
|
-
&& this.checkout.config.environment === Environment$1.SANDBOX
|
|
226118
|
-
&& (params.targetChainId !== ChainId.SEPOLIA && params.targetChainId !== ChainId.IMTBL_ZKEVM_TESTNET)) {
|
|
226119
|
-
// eslint-disable-next-line max-len, no-console
|
|
226120
|
-
console.warn(`Cannot set targetChainId to ${params.targetChainId} in ${Environment$1.SANDBOX} environment, defaulting to ${getChainNameById(ChainId.IMTBL_ZKEVM_TESTNET)}, chainId ${ChainId.IMTBL_ZKEVM_TESTNET}`);
|
|
226121
|
-
validatedParams.targetChainId = ChainId.IMTBL_ZKEVM_TESTNET;
|
|
226122
|
-
}
|
|
226123
|
-
return params;
|
|
226124
|
-
}
|
|
226125
|
-
render() {
|
|
226126
|
-
if (!this.reactRoot)
|
|
226127
|
-
return;
|
|
226128
|
-
const { t } = instance;
|
|
226129
|
-
this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "connect-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(ConnectWidget$2, { config: this.strongConfig(), checkout: this.checkout, targetWalletRdns: this.parameters.targetWalletRdns, targetChainId: this.parameters.targetChainId, blocklistWalletRdns: this.parameters.blocklistWalletRdns }) }) }) }) }) }));
|
|
226130
|
-
}
|
|
226131
|
-
}
|
|
226132
|
-
|
|
226133
226133
|
const footerButtonStyles = {
|
|
226134
226134
|
width: '100%',
|
|
226135
226135
|
display: 'flex',
|
|
@@ -228763,7 +228763,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
228763
228763
|
addProviderListenersForWidgetRoot(provider);
|
|
228764
228764
|
sendProviderUpdatedEvent({ provider });
|
|
228765
228765
|
}
|
|
228766
|
-
create(type, props) {
|
|
228766
|
+
create = (type, props) => {
|
|
228767
228767
|
const { provider } = props ?? {};
|
|
228768
228768
|
const config = props?.config || {};
|
|
228769
228769
|
switch (type) {
|
|
@@ -228818,7 +228818,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
228818
228818
|
default:
|
|
228819
228819
|
throw new Error('widget type not supported');
|
|
228820
228820
|
}
|
|
228821
|
-
}
|
|
228821
|
+
};
|
|
228822
228822
|
}
|
|
228823
228823
|
|
|
228824
228824
|
/**
|
|
@@ -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-D4SnN7tJ.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-BQ32RH92.js';
|
|
12
|
+
import { B as BlockchainData } from './index-DZf2HB3e.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.67.0-alpha';
|
|
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.
|
|
24319
|
+
const SDK_VERSION_MARKER = '1.67.0-alpha';
|
|
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.d.ts
CHANGED
|
@@ -14509,13 +14509,20 @@ interface IWidgetsFactory {
|
|
|
14509
14509
|
* @param type widget type to instantiate.
|
|
14510
14510
|
* @param props widget configurations and provider.
|
|
14511
14511
|
*/
|
|
14512
|
-
create
|
|
14512
|
+
create: IWidgetsFactoryCreate;
|
|
14513
14513
|
/**
|
|
14514
14514
|
* Update the widgets provider instance.
|
|
14515
14515
|
* @param provider the provider instance to update all widgets.
|
|
14516
14516
|
*/
|
|
14517
14517
|
updateProvider(provider: Web3Provider): void;
|
|
14518
14518
|
}
|
|
14519
|
+
interface IWidgetsFactoryCreate {
|
|
14520
|
+
(type: WidgetType.IMMUTABLE_COMMERCE, props?: WidgetProperties<WidgetType.IMMUTABLE_COMMERCE>): Widget<WidgetType.IMMUTABLE_COMMERCE>;
|
|
14521
|
+
/** @deprecated
|
|
14522
|
+
* Use WidgetType.IMMUTABLE_COMMERCE instead, see https://docs.immutable.com/products/zkEVM/checkout/commerce-widget
|
|
14523
|
+
* */
|
|
14524
|
+
<T extends Exclude<WidgetType, WidgetType.IMMUTABLE_COMMERCE>>(type: T, props?: WidgetProperties<T>): Widget<T>;
|
|
14525
|
+
}
|
|
14519
14526
|
/**
|
|
14520
14527
|
* Widget interface. Every widget implements this interface.
|
|
14521
14528
|
*/
|
|
@@ -14830,7 +14837,7 @@ declare global {
|
|
|
14830
14837
|
namespace ImmutableCheckoutWidgets {
|
|
14831
14838
|
class WidgetsFactory implements IWidgetsFactory {
|
|
14832
14839
|
constructor(sdk: Checkout, config: CheckoutWidgetsConfig);
|
|
14833
|
-
create
|
|
14840
|
+
create: IWidgetsFactoryCreate;
|
|
14834
14841
|
updateProvider(provider: Web3Provider): void;
|
|
14835
14842
|
}
|
|
14836
14843
|
class Connect<T extends WidgetType> implements Widget<T> {
|
|
@@ -14991,4 +14998,4 @@ declare class BlockExplorerService {
|
|
|
14991
14998
|
static getTransactionLink(chainId: ChainId, hash: string): string | undefined;
|
|
14992
14999
|
}
|
|
14993
15000
|
|
|
14994
|
-
export { type AddTokensConfig, type AddTokensConnectSuccess, AddTokensEventType, type AddTokensFailed, type AddTokensSuccess, type AddTokensWidgetConfiguration, type AddTokensWidgetParams, type AllowedNetworkConfig, type AssessmentResult, 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, Checkout, type CheckoutBridgeConfiguration, CheckoutConfiguration, CheckoutError, CheckoutErrorType, type CheckoutModuleConfiguration, type CheckoutOnRampConfiguration, CheckoutStatus, type CheckoutSwapConfiguration, type CheckoutWidgetsConfig, type CheckoutWidgetsVersionConfig, type CommerceAddTokensConnectSuccessEvent, type CommerceAddTokensFailureEvent, type CommerceAddTokensSuccessEvent, type CommerceBridgeClaimWithdrawalFailedEvent, type CommerceBridgeClaimWithdrawalSuccessEvent, type CommerceBridgeFailureEvent, type CommerceBridgeSuccessEvent, type CommerceConnectFailureEvent, type CommerceConnectSuccessEvent, CommerceEventType, type CommerceFailureEvent, CommerceFailureEventType, CommerceFlowType, type CommerceNetworkSwitchEvent, type CommerceOnRampFailureEvent, type CommerceOnRampSuccessEvent, type CommercePaymentMethodSelectedEvent, type CommercePaymentTokenSelectedEvent, type CommerceProviderUpdatedEvent, type CommerceSaleFailureEvent, type CommerceSaleSuccessEvent, type CommerceSaleSuccessfulTransactionEvent, type CommerceSuccessEvent, CommerceSuccessEventType, type CommerceSwapFailureEvent, type CommerceSwapRejectedEvent, type CommerceSwapSuccessEvent, type CommerceUserActionEvent, CommerceUserActionEventType, type CommerceWidgetAddTokensFlowParams, type CommerceWidgetBridgeFlowParams, type CommerceWidgetConfiguration, type CommerceWidgetConnectFlowParams, type CommerceWidgetFlowParams, type CommerceWidgetOnRampFlowParams, type CommerceWidgetParams, type CommerceWidgetSaleFlowParams, type CommerceWidgetSwapFlowParams, type CommerceWidgetWalletFlowParams, 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 ProviderEvent, ProviderEventType, type ProviderUpdated, type RemoteConfiguration, type RequestAddTokensEvent, 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, fetchRiskAssessment, getMetaMaskProviderDetail, getPassportProviderDetail, isAddressSanctioned, validateProvider };
|
|
15001
|
+
export { type AddTokensConfig, type AddTokensConnectSuccess, AddTokensEventType, type AddTokensFailed, type AddTokensSuccess, type AddTokensWidgetConfiguration, type AddTokensWidgetParams, type AllowedNetworkConfig, type AssessmentResult, 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, Checkout, type CheckoutBridgeConfiguration, CheckoutConfiguration, CheckoutError, CheckoutErrorType, type CheckoutModuleConfiguration, type CheckoutOnRampConfiguration, CheckoutStatus, type CheckoutSwapConfiguration, type CheckoutWidgetsConfig, type CheckoutWidgetsVersionConfig, type CommerceAddTokensConnectSuccessEvent, type CommerceAddTokensFailureEvent, type CommerceAddTokensSuccessEvent, type CommerceBridgeClaimWithdrawalFailedEvent, type CommerceBridgeClaimWithdrawalSuccessEvent, type CommerceBridgeFailureEvent, type CommerceBridgeSuccessEvent, type CommerceConnectFailureEvent, type CommerceConnectSuccessEvent, CommerceEventType, type CommerceFailureEvent, CommerceFailureEventType, CommerceFlowType, type CommerceNetworkSwitchEvent, type CommerceOnRampFailureEvent, type CommerceOnRampSuccessEvent, type CommercePaymentMethodSelectedEvent, type CommercePaymentTokenSelectedEvent, type CommerceProviderUpdatedEvent, type CommerceSaleFailureEvent, type CommerceSaleSuccessEvent, type CommerceSaleSuccessfulTransactionEvent, type CommerceSuccessEvent, CommerceSuccessEventType, type CommerceSwapFailureEvent, type CommerceSwapRejectedEvent, type CommerceSwapSuccessEvent, type CommerceUserActionEvent, CommerceUserActionEventType, type CommerceWidgetAddTokensFlowParams, type CommerceWidgetBridgeFlowParams, type CommerceWidgetConfiguration, type CommerceWidgetConnectFlowParams, type CommerceWidgetFlowParams, type CommerceWidgetOnRampFlowParams, type CommerceWidgetParams, type CommerceWidgetSaleFlowParams, type CommerceWidgetSwapFlowParams, type CommerceWidgetWalletFlowParams, 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 IWidgetsFactoryCreate, 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 ProviderEvent, ProviderEventType, type ProviderUpdated, type RemoteConfiguration, type RequestAddTokensEvent, 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, fetchRiskAssessment, getMetaMaskProviderDetail, getPassportProviderDetail, isAddressSanctioned, validateProvider };
|
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--1mYuAXD.js';
|
|
2
|
+
import './index-D4SnN7tJ.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-BQ32RH92.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-DZf2HB3e.js';
|
|
20
|
+
import './index-BQ86loCt.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-D4SnN7tJ.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-D4SnN7tJ.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'lru-memorise';
|
|
4
4
|
import 'global-const';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as track, E as Environment } from './index-
|
|
1
|
+
import { t as track, E as Environment } from './index-D4SnN7tJ.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';
|
|
@@ -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.67.0-alpha' };
|
|
13531
13531
|
const createConfig = ({ basePath, headers, }) => {
|
|
13532
13532
|
if (!basePath.trim()) {
|
|
13533
13533
|
throw Error('basePath can not be empty');
|
|
@@ -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-BQ86loCt.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-D4SnN7tJ.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.67.0-alpha' };
|
|
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.67.0-alpha',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -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.67.0-alpha';
|
|
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-BQ86loCt.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-D4SnN7tJ.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.67.0-alpha',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|