@imtbl/sdk 1.76.11 → 1.77.0
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-Ad13F-aC.js → blockchain_data-B2zA_dAH.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/{checkout-3tvm_CV9.js → checkout-CLISlSe4.js} +46 -54
- package/dist/checkout.js +5 -5
- package/dist/{config-BYn9mmiI.js → config-8yX3AhM3.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-C2zTAG6B.js → index-6YZli_LO.js} +1 -1
- package/dist/{index-uLrZv2yp.js → index-CQ9TbMkB.js} +1 -1
- package/dist/{index-BiqzYCn2.js → index-CyoqdYm8.js} +1 -1
- package/dist/{index-DCEAbPKZ.js → index-Czu_FzNR.js} +3 -3
- package/dist/{index-DoNNAbde.js → index-NPphGWsR.js} +1 -1
- package/dist/{index-oifDtoS_.js → index-Yt0wG4g5.js} +4 -4
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +48 -56
- package/dist/index.js +14 -14
- package/dist/{minting_backend-CqA9sJYw.js → minting_backend-BYif5nBU.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-DPF9caky.js → orderbook-D0QRkI-e.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-BWTdyq7b.js → passport-ViU6hyeE.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/version.json +1 -0
- package/dist/{webhook-CZaNIp4X.js → webhook-CS5ElwOZ.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-ETWf4hcp.js → x-ByKGNopu.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
- package/dist/last_updated.json +0 -1
package/dist/index.cjs
CHANGED
|
@@ -218,7 +218,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
221
|
-
const SDK_VERSION$1 = '1.
|
|
221
|
+
const SDK_VERSION$1 = '1.77.0';
|
|
222
222
|
const getFrameParentDomain$1 = () => {
|
|
223
223
|
if (isNode$1()) {
|
|
224
224
|
return '';
|
|
@@ -15001,7 +15001,7 @@ class MultiRollupApiClients {
|
|
|
15001
15001
|
}
|
|
15002
15002
|
|
|
15003
15003
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
15004
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
15004
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.77.0' };
|
|
15005
15005
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
15006
15006
|
if (!basePath.trim()) {
|
|
15007
15007
|
throw Error('basePath can not be empty');
|
|
@@ -15073,7 +15073,7 @@ class APIError extends Error {
|
|
|
15073
15073
|
|
|
15074
15074
|
/* eslint-disable implicit-arrow-linebreak */
|
|
15075
15075
|
const defaultHeaders$1 = {
|
|
15076
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
15076
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.77.0',
|
|
15077
15077
|
};
|
|
15078
15078
|
/**
|
|
15079
15079
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -15663,7 +15663,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
15663
15663
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
15664
15664
|
class ApiConfiguration extends index$2.Configuration {
|
|
15665
15665
|
}
|
|
15666
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
15666
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.77.0' };
|
|
15667
15667
|
/**
|
|
15668
15668
|
* @dev use createImmutableXConfiguration instead
|
|
15669
15669
|
*/
|
|
@@ -15704,7 +15704,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
15704
15704
|
coreContractAddress,
|
|
15705
15705
|
registrationContractAddress,
|
|
15706
15706
|
registrationV4ContractAddress,
|
|
15707
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
15707
|
+
sdkVersion: 'ts-immutable-sdk-1.77.0',
|
|
15708
15708
|
baseConfig,
|
|
15709
15709
|
});
|
|
15710
15710
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -50492,7 +50492,7 @@ const flattenProperties = (properties) => {
|
|
|
50492
50492
|
};
|
|
50493
50493
|
|
|
50494
50494
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
50495
|
-
const SDK_VERSION = '1.
|
|
50495
|
+
const SDK_VERSION = '1.77.0';
|
|
50496
50496
|
const getFrameParentDomain = () => {
|
|
50497
50497
|
if (isNode()) {
|
|
50498
50498
|
return '';
|
|
@@ -55612,7 +55612,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
55612
55612
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
55613
55613
|
};
|
|
55614
55614
|
|
|
55615
|
-
const SDK_VERSION_MARKER = '1.
|
|
55615
|
+
const SDK_VERSION_MARKER = '1.77.0';
|
|
55616
55616
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
55617
55617
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
55618
55618
|
|
|
@@ -60222,16 +60222,15 @@ function validateAndBuildVersion(version) {
|
|
|
60222
60222
|
return validatedVersion;
|
|
60223
60223
|
}
|
|
60224
60224
|
/**
|
|
60225
|
-
* Fetches the latest version of the package from the
|
|
60226
|
-
*
|
|
60227
|
-
* Falls back to 'latest' if an error occurs or if the response is invalid.
|
|
60225
|
+
* Fetches the latest version of the package from the JSDelivr version.json file.
|
|
60226
|
+
* Falls back to 'latest' if an error occurs or the response is invalid.
|
|
60228
60227
|
* @returns {Promise<string>} A promise resolving to the latest version string or 'latest'.
|
|
60229
60228
|
*/
|
|
60230
|
-
async function
|
|
60231
|
-
const
|
|
60229
|
+
async function getLatestVersion() {
|
|
60230
|
+
const cacheBustingUrl = `https://cdn.jsdelivr.net/npm/@imtbl/sdk@latest/dist/version.json?t=${Date.now()}`;
|
|
60232
60231
|
const fallbackVersion = 'latest';
|
|
60233
60232
|
try {
|
|
60234
|
-
const response = await fetch(
|
|
60233
|
+
const response = await fetch(cacheBustingUrl);
|
|
60235
60234
|
if (!response.ok) {
|
|
60236
60235
|
return fallbackVersion;
|
|
60237
60236
|
}
|
|
@@ -60258,33 +60257,6 @@ function latestCompatibleVersion(validVersion, compatibleVersionMarkers) {
|
|
|
60258
60257
|
}
|
|
60259
60258
|
return 'latest';
|
|
60260
60259
|
}
|
|
60261
|
-
/**
|
|
60262
|
-
* Checks if the last_updated.json file exists on the CDN and validates its timestamp.
|
|
60263
|
-
* @param {string} version - The version to check.
|
|
60264
|
-
* @returns {Promise<boolean>} A promise resolving to `true` if last_updated.json exists and is older than 15 minutes, `false` otherwise.
|
|
60265
|
-
*/
|
|
60266
|
-
async function checkLastUpdatedTimestamp(version) {
|
|
60267
|
-
const WAIT_TIME_IN_MINUTES = 45;
|
|
60268
|
-
const lastUpdatedJsonUrl = `https://cdn.jsdelivr.net/npm/@imtbl/sdk@${version}/dist/last_updated.json`;
|
|
60269
|
-
try {
|
|
60270
|
-
const response = await fetch(lastUpdatedJsonUrl);
|
|
60271
|
-
if (!response.ok) {
|
|
60272
|
-
return false;
|
|
60273
|
-
}
|
|
60274
|
-
const lastUpdatedData = await response.json();
|
|
60275
|
-
if (lastUpdatedData.timestamp) {
|
|
60276
|
-
const timestamp = new Date(lastUpdatedData.timestamp);
|
|
60277
|
-
const now = new Date();
|
|
60278
|
-
const diffInMs = now.getTime() - timestamp.getTime();
|
|
60279
|
-
const diffInMinutes = diffInMs / (1000 * 60);
|
|
60280
|
-
return diffInMinutes > WAIT_TIME_IN_MINUTES;
|
|
60281
|
-
}
|
|
60282
|
-
}
|
|
60283
|
-
catch (error) {
|
|
60284
|
-
return false;
|
|
60285
|
-
}
|
|
60286
|
-
return false;
|
|
60287
|
-
}
|
|
60288
60260
|
/**
|
|
60289
60261
|
* Determines the version of the widgets to use based on the provided validated build version and checkout version config.
|
|
60290
60262
|
* If a version is provided in the widget init parameters, it uses that version.
|
|
@@ -60305,13 +60277,9 @@ async function determineWidgetsVersion(validatedBuildVersion, initVersionProvide
|
|
|
60305
60277
|
return validatedBuildVersion;
|
|
60306
60278
|
}
|
|
60307
60279
|
const compatibleVersion = latestCompatibleVersion(validatedBuildVersion, versionConfig.compatibleVersionMarkers);
|
|
60308
|
-
// If `latest` is returned, query
|
|
60280
|
+
// If `latest` is returned, query CDN for the actual latest version
|
|
60309
60281
|
if (compatibleVersion === 'latest') {
|
|
60310
|
-
|
|
60311
|
-
if (await checkLastUpdatedTimestamp(latestVersion)) {
|
|
60312
|
-
return latestVersion;
|
|
60313
|
-
}
|
|
60314
|
-
return 'latest';
|
|
60282
|
+
return await getLatestVersion();
|
|
60315
60283
|
}
|
|
60316
60284
|
return compatibleVersion;
|
|
60317
60285
|
}
|
|
@@ -60444,19 +60412,43 @@ class Checkout {
|
|
|
60444
60412
|
}
|
|
60445
60413
|
async loadEsModules(config, validVersion) {
|
|
60446
60414
|
const checkout = this;
|
|
60447
|
-
|
|
60448
|
-
const cdnUrl = getWidgetsEsmUrl(
|
|
60449
|
-
|
|
60450
|
-
|
|
60451
|
-
|
|
60452
|
-
|
|
60453
|
-
|
|
60454
|
-
|
|
60415
|
+
async function tryLoadEsModule(version) {
|
|
60416
|
+
const cdnUrl = getWidgetsEsmUrl(version);
|
|
60417
|
+
try {
|
|
60418
|
+
// WebpackIgnore comment required to prevent webpack modifying the import statement and
|
|
60419
|
+
// breaking the dynamic import in certain applications integrating checkout
|
|
60420
|
+
const checkoutWidgetsModule = await import(
|
|
60421
|
+
/* webpackIgnore: true */ cdnUrl);
|
|
60422
|
+
if (checkoutWidgetsModule && checkoutWidgetsModule.WidgetsFactory) {
|
|
60423
|
+
return new checkoutWidgetsModule.WidgetsFactory(checkout, config);
|
|
60424
|
+
}
|
|
60425
|
+
throw new Error(`WidgetsFactory not found in loaded module for version: ${version}`);
|
|
60426
|
+
}
|
|
60427
|
+
catch (err) {
|
|
60428
|
+
// eslint-disable-next-line no-console
|
|
60429
|
+
console.warn(`Failed to load ESM bundle for version ${version}. Error: ${err.message}`);
|
|
60430
|
+
throw err;
|
|
60455
60431
|
}
|
|
60456
60432
|
}
|
|
60433
|
+
try {
|
|
60434
|
+
return await tryLoadEsModule(validVersion);
|
|
60435
|
+
}
|
|
60457
60436
|
catch (err) {
|
|
60458
|
-
|
|
60459
|
-
|
|
60437
|
+
const latestVersion = await getLatestVersion();
|
|
60438
|
+
if (validVersion === latestVersion && validVersion !== 'latest') {
|
|
60439
|
+
try {
|
|
60440
|
+
return await tryLoadEsModule('latest');
|
|
60441
|
+
}
|
|
60442
|
+
catch (retryErr) {
|
|
60443
|
+
// eslint-disable-next-line no-console
|
|
60444
|
+
console.warn(`Failed to resolve Commerce Widgets module, falling back to UMD bundle. Error: ${retryErr.message}`);
|
|
60445
|
+
}
|
|
60446
|
+
}
|
|
60447
|
+
else {
|
|
60448
|
+
// eslint-disable-next-line no-console
|
|
60449
|
+
console.warn(`Failed to resolve Commerce Widgets module for version ${validVersion}, falling back to UMD bundle.
|
|
60450
|
+
Error: ${err.message}`);
|
|
60451
|
+
}
|
|
60460
60452
|
}
|
|
60461
60453
|
// Fallback to UMD bundle if esm bundle fails to load
|
|
60462
60454
|
return await checkout.loadUmdBundle(config, validVersion);
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { c as config } from './config-
|
|
2
|
-
export { b as blockchainData } from './blockchain_data-
|
|
3
|
-
export { p as passport } from './passport-
|
|
4
|
-
export { o as orderbook } from './orderbook-
|
|
5
|
-
export { c as checkout } from './checkout-
|
|
6
|
-
export { x } from './x-
|
|
7
|
-
export { w as webhook } from './webhook-
|
|
8
|
-
export { m as mintingBackend } from './minting_backend-
|
|
9
|
-
import './index-
|
|
1
|
+
export { c as config } from './config-8yX3AhM3.js';
|
|
2
|
+
export { b as blockchainData } from './blockchain_data-B2zA_dAH.js';
|
|
3
|
+
export { p as passport } from './passport-ViU6hyeE.js';
|
|
4
|
+
export { o as orderbook } from './orderbook-D0QRkI-e.js';
|
|
5
|
+
export { c as checkout } from './checkout-CLISlSe4.js';
|
|
6
|
+
export { x } from './x-ByKGNopu.js';
|
|
7
|
+
export { w as webhook } from './webhook-CS5ElwOZ.js';
|
|
8
|
+
export { m as mintingBackend } from './minting_backend-BYif5nBU.js';
|
|
9
|
+
import './index-CyoqdYm8.js';
|
|
10
10
|
import 'axios';
|
|
11
11
|
import 'lru-memorise';
|
|
12
12
|
import 'global-const';
|
|
13
|
-
import './index-
|
|
14
|
-
import './index-
|
|
15
|
-
import './index-
|
|
13
|
+
import './index-Czu_FzNR.js';
|
|
14
|
+
import './index-CQ9TbMkB.js';
|
|
15
|
+
import './index-Yt0wG4g5.js';
|
|
16
16
|
import '@ethersproject/keccak256';
|
|
17
17
|
import '@ethersproject/strings';
|
|
18
18
|
import 'bn.js';
|
|
@@ -35,7 +35,7 @@ import 'events';
|
|
|
35
35
|
import '@0xsequence/abi';
|
|
36
36
|
import '@0xsequence/core';
|
|
37
37
|
import 'uuid';
|
|
38
|
-
import './index-
|
|
38
|
+
import './index-6YZli_LO.js';
|
|
39
39
|
import 'form-data';
|
|
40
40
|
import '@opensea/seaport-js/lib/constants';
|
|
41
41
|
import 'ethers-v6';
|
|
@@ -49,5 +49,5 @@ import '@metamask/detect-provider';
|
|
|
49
49
|
import 'semver';
|
|
50
50
|
import '@ethersproject/units';
|
|
51
51
|
import '@ethersproject/bignumber';
|
|
52
|
-
import './index-
|
|
52
|
+
import './index-NPphGWsR.js';
|
|
53
53
|
import 'sns-validator';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BlockchainData } from './index-
|
|
2
|
-
import { h as handle } from './index-
|
|
3
|
-
import { t as track, e as setEnvironment, f as setPublishableApiKey } from './index-
|
|
1
|
+
import { B as BlockchainData } from './index-Czu_FzNR.js';
|
|
2
|
+
import { h as handle } from './index-NPphGWsR.js';
|
|
3
|
+
import { t as track, e as setEnvironment, f as setPublishableApiKey } from './index-CyoqdYm8.js';
|
|
4
4
|
|
|
5
5
|
const moduleName = 'minting_backend_sdk';
|
|
6
6
|
const trackInitializePersistencePG = () => {
|
package/dist/minting_backend.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { M as MintingBackendModule, a as mintingPersistencePg, b as mintingPersistencePrismaSqlite, p as processMint, r as recordMint, s as submitMintingRequests } from './minting_backend-
|
|
2
|
-
import './index-
|
|
3
|
-
import './index-
|
|
1
|
+
export { M as MintingBackendModule, a as mintingPersistencePg, b as mintingPersistencePrismaSqlite, p as processMint, r as recordMint, s as submitMintingRequests } from './minting_backend-BYif5nBU.js';
|
|
2
|
+
import './index-Czu_FzNR.js';
|
|
3
|
+
import './index-CQ9TbMkB.js';
|
|
4
4
|
import 'axios';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-CyoqdYm8.js';
|
|
6
6
|
import 'lru-memorise';
|
|
7
7
|
import 'global-const';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-NPphGWsR.js';
|
|
9
9
|
import 'sns-validator';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-
|
|
1
|
+
import { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-6YZli_LO.js';
|
|
2
2
|
|
|
3
3
|
var orderbook = /*#__PURE__*/Object.freeze({
|
|
4
4
|
__proto__: null,
|
package/dist/orderbook.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-
|
|
2
|
-
import './index-
|
|
1
|
+
export { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-6YZli_LO.js';
|
|
2
|
+
import './index-CyoqdYm8.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import 'lru-memorise';
|
|
5
5
|
import 'global-const';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import globalAxios, { isAxiosError } from 'axios';
|
|
2
|
-
import { M as MultiRollupApiClients, c as createConfig, m as multiRollupConfig, a as index$1, I as ImxApiClients, b as imxApiConfig } from './index-
|
|
3
|
-
import { I as IMXClient, s as signRaw, c as convertToSignableToken, g as generateLegacyStarkPrivateKey, a as createStarkSigner } from './index-
|
|
4
|
-
import { s as setPassportClientId, t as track, b as trackFlow, c as trackError, u as utils, i as identify, g as getDetail, D as Detail, d as trackDuration, E as Environment } from './index-
|
|
2
|
+
import { M as MultiRollupApiClients, c as createConfig, m as multiRollupConfig, a as index$1, I as ImxApiClients, b as imxApiConfig } from './index-CQ9TbMkB.js';
|
|
3
|
+
import { I as IMXClient, s as signRaw, c as convertToSignableToken, g as generateLegacyStarkPrivateKey, a as createStarkSigner } from './index-Yt0wG4g5.js';
|
|
4
|
+
import { s as setPassportClientId, t as track, b as trackFlow, c as trackError, u as utils, i as identify, g as getDetail, D as Detail, d as trackDuration, E as Environment } from './index-CyoqdYm8.js';
|
|
5
5
|
import { UserManager, User, ErrorTimeout, ErrorResponse, InMemoryWebStorage, WebStorageStateStore } from 'oidc-client-ts';
|
|
6
6
|
import * as crypto from 'crypto';
|
|
7
7
|
import jwt_decode from 'jwt-decode';
|
package/dist/passport.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { J as JsonRpcError, P as Passport, a as PassportError, b as ProviderErrorCode, c as ProviderEvent, R as RpcErrorCode } from './passport-
|
|
1
|
+
export { J as JsonRpcError, P as Passport, a as PassportError, b as ProviderErrorCode, c as ProviderEvent, R as RpcErrorCode } from './passport-ViU6hyeE.js';
|
|
2
2
|
import 'axios';
|
|
3
|
-
import './index-
|
|
4
|
-
import './index-
|
|
5
|
-
import './index-
|
|
3
|
+
import './index-CQ9TbMkB.js';
|
|
4
|
+
import './index-Yt0wG4g5.js';
|
|
5
|
+
import './index-CyoqdYm8.js';
|
|
6
6
|
import 'lru-memorise';
|
|
7
7
|
import 'global-const';
|
|
8
8
|
import '@ethersproject/keccak256';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "version": "1.77.0" }
|
package/dist/webhook.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as ImxConfiguration, c as convertToSignableToken, s as signRaw, e as exportContracts, d as signMessage, E as EncodingApi, M as MintsApi, f as signRegisterEthAddress, A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, D as DepositsApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, v as production, w as sandbox, x as serializePackedSignature, y as starkEcOrder } from './index-
|
|
2
|
-
import { d as index$2 } from './index-
|
|
1
|
+
import { b as ImxConfiguration, c as convertToSignableToken, s as signRaw, e as exportContracts, d as signMessage, E as EncodingApi, M as MintsApi, f as signRegisterEthAddress, A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, D as DepositsApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, v as production, w as sandbox, x as serializePackedSignature, y as starkEcOrder } from './index-Yt0wG4g5.js';
|
|
2
|
+
import { d as index$2 } from './index-CQ9TbMkB.js';
|
|
3
3
|
import { isAxiosError } from 'axios';
|
|
4
4
|
import * as encUtils from 'enc-utils';
|
|
5
5
|
import { parseUnits } from '@ethersproject/units';
|
|
6
6
|
import { BigNumber } from '@ethersproject/bignumber';
|
|
7
7
|
import { ethers } from 'ethers';
|
|
8
8
|
import detectEthereumProvider from '@metamask/detect-provider';
|
|
9
|
-
import { E as Environment, I as ImmutableConfiguration } from './index-
|
|
9
|
+
import { E as Environment, I as ImmutableConfiguration } from './index-CyoqdYm8.js';
|
|
10
10
|
import { Signer } from '@ethersproject/abstract-signer';
|
|
11
11
|
|
|
12
12
|
function isChainValid(chainID, config) {
|
package/dist/x.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, e as Contracts, D as DepositsApi, E as EncodingApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, b as ImxConfiguration, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, M as MintsApi, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, a as imxClientCreateStarkSigner, g as imxClientGenerateLegacyStarkPrivateKey, v as production, w as sandbox, x as serializePackedSignature, f as signRegisterEthAddress, y as starkEcOrder } from './index-
|
|
2
|
-
export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-
|
|
3
|
-
export { E as Environment, I as ImmutableConfiguration } from './index-
|
|
1
|
+
export { A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, e as Contracts, D as DepositsApi, E as EncodingApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, b as ImxConfiguration, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, M as MintsApi, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, a as imxClientCreateStarkSigner, g as imxClientGenerateLegacyStarkPrivateKey, v as production, w as sandbox, x as serializePackedSignature, f as signRegisterEthAddress, y as starkEcOrder } from './index-Yt0wG4g5.js';
|
|
2
|
+
export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-ByKGNopu.js';
|
|
3
|
+
export { E as Environment, I as ImmutableConfiguration } from './index-CyoqdYm8.js';
|
|
4
4
|
export { Signer as EthSigner } from '@ethersproject/abstract-signer';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-CQ9TbMkB.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '@ethersproject/keccak256';
|
|
8
8
|
import '@ethersproject/strings';
|
package/package.json
CHANGED
package/dist/last_updated.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"timestamp": "2025-01-06T03:40:42Z"}
|