@imtbl/sdk 1.72.2 → 1.72.3
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-BmbQdP_C.js → blockchain_data-DvPyiBRf.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-C918Ka5O.js → AddTokensWidget-Cd3qo2rd.js} +28 -8
- package/dist/browser/checkout/{BridgeWidget-DwOaJNgM.js → BridgeWidget-C0K3XDa5.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-BEHSNVbA.js → CommerceWidget-CKlYpyGF.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-DH1QtMCe.js → CryptoFiatProvider-vm_ZGIOJ.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-BQw9Exu_.js → EllipsizedText-CVEcqNyt.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-D98ZPV26.js → FeesBreakdown-Dhwja-Xi.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-syg1vRxh.js → HandoverContent-gGGlP5Jb.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-CM1ahbEg.js → OnRampWidget-BCmYwzrB.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-Cq24qGtF.js → SaleWidget-BK80oZNP.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-Bw4WAKvv.js → SpendingCapHero-B_qP6_GT.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-noAcQ7jQ.js → SwapWidget-16-uIEGy.js} +9 -9
- package/dist/browser/checkout/{TokenImage-BZa8JxyT.js → TokenImage-CXpwbtYw.js} +1 -1
- package/dist/browser/checkout/{TopUpView-aoP2uGnf.js → TopUpView-4C8RtW0d.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-BjA2Cbm9.js → WalletApproveHero-BHx4d3rD.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-CDmQBUXd.js → WalletWidget-B7osmYCN.js} +4 -4
- package/dist/browser/checkout/{auto-track-Dbsvy-BT.js → auto-track-Kc3XJX2W.js} +1 -1
- package/dist/browser/checkout/{index-DDvik2By.js → index-7ghIApx2.js} +1 -1
- package/dist/browser/checkout/{index-DQz9auHI.js → index-B4Khh83O.js} +18 -18
- package/dist/browser/checkout/{index-CB0_Fnoc.js → index-B5n2sVY5.js} +1 -1
- package/dist/browser/checkout/{index-BV70tfMD.js → index-BTf7h58Q.js} +1 -1
- package/dist/browser/checkout/{index-DntlgHvp.js → index-C-L5gV4N.js} +2 -2
- package/dist/browser/checkout/{index-DAJPMfAh.js → index-CJxVZz84.js} +1 -1
- package/dist/browser/checkout/{index-bA4D9UiZ.js → index-Cn-kFZ7i.js} +1 -1
- package/dist/browser/checkout/{index-wcn_TiaN.js → index-Df7mF_nW.js} +1 -1
- package/dist/browser/checkout/{index-XsDcGvgn.js → index-va7BEk4D.js} +1 -1
- package/dist/browser/checkout/{index.umd-DVAP-cA9.js → index.umd-BBbq_zC1.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-Cu2NeYF8.js → useInterval-D8-kI6Fg.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +22 -2
- package/dist/{checkout-B6gBhJWx.js → checkout-CBRPHN1f.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-QbGV-jxY.js → config-DoJf2Syj.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-kFE9jNzl.js → index-CQfHEdER.js} +1 -1
- package/dist/{index-DLu9g736.js → index-Cg1kxnNw.js} +1 -1
- package/dist/{index-BqES76q8.js → index-Cjaq0k1k.js} +1 -1
- package/dist/{index-08gcLjI3.js → index-CyhoA7VY.js} +3 -3
- package/dist/{index-DK_xTGSI.js → index-FqlKMsTJ.js} +1 -1
- package/dist/{index-DTd9zrBY.js → index-Om7yPXE2.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-Drblkmez.js → minting_backend-BlJzwenR.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-CzoIIUYR.js → orderbook-BFcwxjH4.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-DueWl0WJ.js → passport-DAmHP4hS.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-BOOTRK5K.js → webhook-Dc6FTvfO.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-6mmW-KST.js → x-Do6xicJY.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-B4Khh83O.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-B4Khh83O.js';
|
|
@@ -410944,6 +410944,26 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
410944
410944
|
const useExecute = (environment) => {
|
|
410945
410945
|
const { showErrorHandover } = useError(environment);
|
|
410946
410946
|
const { eventTargetState: { eventTarget }, } = reactExports.useContext(EventTargetContext);
|
|
410947
|
+
const waitForReceipt = async (provider, txHash, maxAttempts = 60) => {
|
|
410948
|
+
const result = await retry(async () => {
|
|
410949
|
+
const receipt = await provider.getTransactionReceipt(txHash);
|
|
410950
|
+
if (!receipt) {
|
|
410951
|
+
throw new Error('receipt not found');
|
|
410952
|
+
}
|
|
410953
|
+
if (receipt.status === 0) {
|
|
410954
|
+
throw new Error('status failed');
|
|
410955
|
+
}
|
|
410956
|
+
return receipt;
|
|
410957
|
+
}, {
|
|
410958
|
+
retries: maxAttempts,
|
|
410959
|
+
retryIntervalMs: 1000,
|
|
410960
|
+
nonRetryable: (error) => error.message === 'status failed',
|
|
410961
|
+
});
|
|
410962
|
+
if (!result) {
|
|
410963
|
+
throw new Error(`Transaction receipt not found after ${maxAttempts} attempts`);
|
|
410964
|
+
}
|
|
410965
|
+
return result;
|
|
410966
|
+
};
|
|
410947
410967
|
const handleTransactionError = (err) => {
|
|
410948
410968
|
const reason = `${err?.reason || err?.message || ''}`.toLowerCase();
|
|
410949
410969
|
let errorType = AddTokensErrorTypes.WALLET_FAILED;
|
|
@@ -411042,7 +411062,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411042
411062
|
throw new Error('transactionRequest target is undefined');
|
|
411043
411063
|
}
|
|
411044
411064
|
const tx = await tokenContract.approve(transactionRequestTarget, fromAmount);
|
|
411045
|
-
return tx.
|
|
411065
|
+
return waitForReceipt(provider, tx.hash);
|
|
411046
411066
|
}
|
|
411047
411067
|
return undefined;
|
|
411048
411068
|
}
|
|
@@ -411060,7 +411080,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411060
411080
|
signer: provider.getSigner(),
|
|
411061
411081
|
route: routeResponse.route,
|
|
411062
411082
|
}));
|
|
411063
|
-
return tx.
|
|
411083
|
+
return waitForReceipt(provider, tx.hash);
|
|
411064
411084
|
}
|
|
411065
411085
|
catch (error) {
|
|
411066
411086
|
handleTransactionError(error);
|
|
@@ -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-Cg1kxnNw.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-FqlKMsTJ.js';
|
|
12
|
+
import { B as BlockchainData } from './index-CyhoA7VY.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.3';
|
|
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.3';
|
|
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-CBRPHN1f.js';
|
|
2
|
+
import './index-Cg1kxnNw.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-FqlKMsTJ.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-CyhoA7VY.js';
|
|
20
|
+
import './index-Cjaq0k1k.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-Cg1kxnNw.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-Cg1kxnNw.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.72.
|
|
161
|
+
const SDK_VERSION = '1.72.3';
|
|
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.72.
|
|
14339
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.72.3' };
|
|
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-Cjaq0k1k.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-Cg1kxnNw.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.3',
|
|
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-Cg1kxnNw.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-Cjaq0k1k.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-Cg1kxnNw.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.3' };
|
|
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.3',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|