@imtbl/sdk 1.72.4 → 1.72.5
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-DwoW8EXa.js → blockchain_data-25saGU0Z.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-XEOxeUOK.js → AddTokensWidget-BWG3NQ9B.js} +52 -46
- package/dist/browser/checkout/{BridgeWidget-Clj0rpb5.js → BridgeWidget-Ci2WB7Nf.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-DKW0PiJu.js → CommerceWidget-DU93DqRK.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-DPaok_1B.js → CryptoFiatProvider-hYwPM-aZ.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-CGGaR7N1.js → EllipsizedText-CJv9sue6.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-CrCYjQsN.js → FeesBreakdown-CFr2Ba8o.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-5SX9_Xiq.js → HandoverContent-7XgMxmMH.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-RGyz_t74.js → OnRampWidget-BdBudr53.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-CJySbSv8.js → SaleWidget-ow1U6WSy.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-ezwxfLmM.js → SpendingCapHero-BfHzFx2e.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-CyxxcafB.js → SwapWidget-D52nXXsd.js} +9 -9
- package/dist/browser/checkout/{TokenImage-BA0u7Bgh.js → TokenImage-Bv4QDjsG.js} +1 -1
- package/dist/browser/checkout/{TopUpView-B1a8J1mC.js → TopUpView-RU9tyx5M.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-DAITG5M0.js → WalletApproveHero-6xRquyAA.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-BxGPxriO.js → WalletWidget-B9RKEYud.js} +4 -4
- package/dist/browser/checkout/{auto-track-Dk9WOiOp.js → auto-track-DrUv_-5G.js} +1 -1
- package/dist/browser/checkout/{index-mrxzvJu8.js → index-BDRM7Uih.js} +1 -1
- package/dist/browser/checkout/{index-CFuDYPeI.js → index-BdbcBXtl.js} +19 -19
- package/dist/browser/checkout/{index-DFz090oi.js → index-BmEvMRSe.js} +1 -1
- package/dist/browser/checkout/{index-Oc5pNJz9.js → index-BpB8pCnR.js} +2 -2
- package/dist/browser/checkout/{index-D0Tv6Vsb.js → index-D8H34D4j.js} +1 -1
- package/dist/browser/checkout/{index-CyfOrvHW.js → index-DF3H3Vt3.js} +1 -1
- package/dist/browser/checkout/{index-CcjuvsGM.js → index-Dhym2CWn.js} +1 -1
- package/dist/browser/checkout/{index-Dok96qDW.js → index-LgFL8sFc.js} +1 -1
- package/dist/browser/checkout/{index-C6lPs4SY.js → index-SCzeiVsL.js} +1 -1
- package/dist/browser/checkout/{index.umd-rVoY7U1T.js → index.umd-BXtpGQf3.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-BQ8_ct2v.js → useInterval-Ded2Ls8Y.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +46 -40
- package/dist/{checkout-D-ig8t-E.js → checkout-CuyhPhPI.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-C-rchxTd.js → config--KnSGWmg.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-C1wrSED_.js → index-BZ0-xFD5.js} +1 -1
- package/dist/{index-D8z8i8pI.js → index-BmEMIEoz.js} +1 -1
- package/dist/{index-Day0RG9r.js → index-BoB9ZvkB.js} +1 -1
- package/dist/{index-D1X1KVtg.js → index-C5qsusaO.js} +3 -3
- package/dist/{index-BspPScW3.js → index-DnsQswUj.js} +1 -1
- package/dist/{index-Ca_d7QJz.js → index-ql1ytn8Z.js} +4 -4
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-CBrr0eKZ.js → minting_backend-DiUlXoXB.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-LamTiNG_.js → orderbook-CoO54P2O.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-DiEqCqiQ.js → passport-DzlAx_ow.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-BVvgyEsm.js → webhook-sMzzQQMr.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-DvF2aGDZ.js → x-COIxZVrX.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-BdbcBXtl.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-BdbcBXtl.js';
|
|
@@ -411182,6 +411182,23 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411182
411182
|
|
|
411183
411183
|
const isSquidNativeToken = (token) => token.toLowerCase() === SQUID_NATIVE_TOKEN.toLowerCase();
|
|
411184
411184
|
|
|
411185
|
+
const withMetricsAsync = async (fn, flowName) => {
|
|
411186
|
+
const flow = trackFlow('checkout', flowName);
|
|
411187
|
+
try {
|
|
411188
|
+
return await fn(flow);
|
|
411189
|
+
}
|
|
411190
|
+
catch (error) {
|
|
411191
|
+
if (error instanceof Error) {
|
|
411192
|
+
trackError('checkout', flowName, error);
|
|
411193
|
+
}
|
|
411194
|
+
flow.addEvent('errored');
|
|
411195
|
+
throw error;
|
|
411196
|
+
}
|
|
411197
|
+
finally {
|
|
411198
|
+
flow.addEvent('End');
|
|
411199
|
+
}
|
|
411200
|
+
};
|
|
411201
|
+
|
|
411185
411202
|
const useExecute = (contextId, environment) => {
|
|
411186
411203
|
const { showErrorHandover } = useError(environment);
|
|
411187
411204
|
const { eventTargetState: { eventTarget }, } = reactExports.useContext(EventTargetContext);
|
|
@@ -411285,25 +411302,28 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411285
411302
|
return undefined;
|
|
411286
411303
|
}
|
|
411287
411304
|
};
|
|
411305
|
+
const callApprove = async (provider, routeResponse) => {
|
|
411306
|
+
const erc20Abi = [
|
|
411307
|
+
'function approve(address spender, uint256 amount) public returns (bool)',
|
|
411308
|
+
];
|
|
411309
|
+
const fromToken = routeResponse?.route.params.fromToken;
|
|
411310
|
+
const signer = provider.getSigner();
|
|
411311
|
+
const tokenContract = new Contract$1(fromToken, erc20Abi, signer);
|
|
411312
|
+
const fromAmount = routeResponse?.route.params.fromAmount;
|
|
411313
|
+
if (!fromAmount) {
|
|
411314
|
+
throw new Error('fromAmount is undefined');
|
|
411315
|
+
}
|
|
411316
|
+
const transactionRequestTarget = routeResponse?.route?.transactionRequest?.target;
|
|
411317
|
+
if (!transactionRequestTarget) {
|
|
411318
|
+
throw new Error('transactionRequest target is undefined');
|
|
411319
|
+
}
|
|
411320
|
+
const tx = await tokenContract.approve(transactionRequestTarget, fromAmount);
|
|
411321
|
+
return await waitForReceipt(provider, tx.hash);
|
|
411322
|
+
};
|
|
411288
411323
|
const approve = async (provider, routeResponse) => {
|
|
411289
411324
|
try {
|
|
411290
411325
|
if (!isSquidNativeToken(routeResponse?.route?.params.fromToken)) {
|
|
411291
|
-
|
|
411292
|
-
'function approve(address spender, uint256 amount) public returns (bool)',
|
|
411293
|
-
];
|
|
411294
|
-
const fromToken = routeResponse?.route.params.fromToken;
|
|
411295
|
-
const signer = provider.getSigner();
|
|
411296
|
-
const tokenContract = new Contract$1(fromToken, erc20Abi, signer);
|
|
411297
|
-
const fromAmount = routeResponse?.route.params.fromAmount;
|
|
411298
|
-
if (!fromAmount) {
|
|
411299
|
-
throw new Error('fromAmount is undefined');
|
|
411300
|
-
}
|
|
411301
|
-
const transactionRequestTarget = routeResponse?.route?.transactionRequest?.target;
|
|
411302
|
-
if (!transactionRequestTarget) {
|
|
411303
|
-
throw new Error('transactionRequest target is undefined');
|
|
411304
|
-
}
|
|
411305
|
-
const tx = await tokenContract.approve(transactionRequestTarget, fromAmount);
|
|
411306
|
-
return waitForReceipt(provider, tx.hash);
|
|
411326
|
+
return await withMetricsAsync(() => callApprove(provider, routeResponse), `${UserJourney.ADD_TOKENS}_Approve`);
|
|
411307
411327
|
}
|
|
411308
411328
|
return undefined;
|
|
411309
411329
|
}
|
|
@@ -411312,16 +411332,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411312
411332
|
return undefined;
|
|
411313
411333
|
}
|
|
411314
411334
|
};
|
|
411335
|
+
const callExecute = async (squid, provider, routeResponse) => {
|
|
411336
|
+
const tx = (await squid.executeRoute({
|
|
411337
|
+
signer: provider.getSigner(),
|
|
411338
|
+
route: routeResponse.route,
|
|
411339
|
+
}));
|
|
411340
|
+
return await waitForReceipt(provider, tx.hash);
|
|
411341
|
+
};
|
|
411315
411342
|
const execute = async (squid, provider, routeResponse) => {
|
|
411316
411343
|
if (!provider.provider.request) {
|
|
411317
411344
|
throw new Error('provider does not have request method');
|
|
411318
411345
|
}
|
|
411319
411346
|
try {
|
|
411320
|
-
|
|
411321
|
-
signer: provider.getSigner(),
|
|
411322
|
-
route: routeResponse.route,
|
|
411323
|
-
}));
|
|
411324
|
-
return waitForReceipt(provider, tx.hash);
|
|
411347
|
+
return await withMetricsAsync(() => callExecute(squid, provider, routeResponse), `${UserJourney.ADD_TOKENS}_Execute`);
|
|
411325
411348
|
}
|
|
411326
411349
|
catch (error) {
|
|
411327
411350
|
handleTransactionError(error);
|
|
@@ -411460,23 +411483,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411460
411483
|
|
|
411461
411484
|
const convertToNetworkChangeableProvider = async (provider) => new Web3Provider(provider.provider, 'any');
|
|
411462
411485
|
|
|
411463
|
-
const withMetricsAsync = async (fn, flowName) => {
|
|
411464
|
-
const flow = trackFlow('checkout', flowName);
|
|
411465
|
-
try {
|
|
411466
|
-
return await fn(flow);
|
|
411467
|
-
}
|
|
411468
|
-
catch (error) {
|
|
411469
|
-
if (error instanceof Error) {
|
|
411470
|
-
trackError('checkout', flowName, error);
|
|
411471
|
-
}
|
|
411472
|
-
flow.addEvent('errored');
|
|
411473
|
-
throw error;
|
|
411474
|
-
}
|
|
411475
|
-
finally {
|
|
411476
|
-
flow.addEvent('End');
|
|
411477
|
-
}
|
|
411478
|
-
};
|
|
411479
|
-
|
|
411480
411486
|
const dividerSx = {
|
|
411481
411487
|
content: "''",
|
|
411482
411488
|
pos: 'absolute',
|
|
@@ -411599,14 +411605,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411599
411605
|
const { fromAmount } = route.route.params;
|
|
411600
411606
|
if (allowance?.lt(fromAmount)) {
|
|
411601
411607
|
showHandover(APPROVE_TXN_ANIMATION, RiveStateMachineInput.WAITING, t$b('views.ADD_TOKENS.handover.requestingApproval.heading'), t$b('views.ADD_TOKENS.handover.requestingApproval.subHeading'));
|
|
411602
|
-
const approveTxnReceipt = await
|
|
411608
|
+
const approveTxnReceipt = await approve(changeableProvider, route);
|
|
411603
411609
|
if (!approveTxnReceipt) {
|
|
411604
411610
|
return;
|
|
411605
411611
|
}
|
|
411606
411612
|
showHandover(APPROVE_TXN_ANIMATION, RiveStateMachineInput.COMPLETED, t$b('views.ADD_TOKENS.handover.approved.heading'), '', FIXED_HANDOVER_DURATION);
|
|
411607
411613
|
}
|
|
411608
411614
|
showHandover(EXECUTE_TXN_ANIMATION, RiveStateMachineInput.WAITING, t$b('views.ADD_TOKENS.handover.requestingExecution.heading'), t$b('views.ADD_TOKENS.handover.requestingExecution.subHeading'));
|
|
411609
|
-
const executeTxnReceipt = await
|
|
411615
|
+
const executeTxnReceipt = await execute(squid, changeableProvider, route);
|
|
411610
411616
|
if (executeTxnReceipt) {
|
|
411611
411617
|
track({
|
|
411612
411618
|
userJourney: UserJourney.ADD_TOKENS,
|
|
@@ -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-DnsQswUj.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-BmEMIEoz.js';
|
|
12
|
+
import { B as BlockchainData } from './index-C5qsusaO.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.72.
|
|
19210
|
+
const SDK_VERSION = '1.72.5';
|
|
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.72.
|
|
24319
|
+
const SDK_VERSION_MARKER = '1.72.5';
|
|
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-CuyhPhPI.js';
|
|
2
|
+
import './index-DnsQswUj.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-BmEMIEoz.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-C5qsusaO.js';
|
|
20
|
+
import './index-BZ0-xFD5.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-DnsQswUj.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-DnsQswUj.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'lru-memorise';
|
|
4
4
|
import 'global-const';
|
|
@@ -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.72.
|
|
14339
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.72.5' };
|
|
14340
14340
|
const createConfig = ({ basePath, headers, }) => {
|
|
14341
14341
|
if (!basePath.trim()) {
|
|
14342
14342
|
throw Error('basePath can not be empty');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as track, E as Environment } from './index-
|
|
1
|
+
import { t as track, E as Environment } from './index-DnsQswUj.js';
|
|
2
2
|
import globalAxios from 'axios';
|
|
3
3
|
import FormData from 'form-data';
|
|
4
4
|
import { OrderType as OrderType$1, ItemType as ItemType$1 } from '@opensea/seaport-js/lib/constants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as index$1 } from './index-
|
|
2
|
-
import { E as Environment, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
import { a as index$1 } from './index-BZ0-xFD5.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-DnsQswUj.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.72.
|
|
24
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.72.5',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -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.72.
|
|
161
|
+
const SDK_VERSION = '1.72.5';
|
|
162
162
|
const getFrameParentDomain = () => {
|
|
163
163
|
if (isNode()) {
|
|
164
164
|
return '';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as index$2, I as ImxApiClients } from './index-
|
|
2
|
-
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-
|
|
1
|
+
import { d as index$2, I as ImxApiClients } from './index-BZ0-xFD5.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-DnsQswUj.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.72.
|
|
19
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.72.5' };
|
|
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.72.
|
|
60
|
+
sdkVersion: 'ts-immutable-sdk-1.72.5',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|