@imtbl/sdk 1.76.0 → 1.76.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{blockchain_data-BBXNY5bu.js → blockchain_data-Cbpk_9xM.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-Ov8QlKCk.js → AddTokensWidget-B0aMPpaf.js} +352 -351
- package/dist/browser/checkout/{BridgeWidget-FBnDhhqK.js → BridgeWidget-B2xMuXIe.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-BWSOXt1Z.js → CommerceWidget-mvSR60zJ.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-CI8GAJs8.js → CryptoFiatProvider-DuUL-g05.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-CYOq1UYb.js → FeesBreakdown-ux_kv2hV.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-BGe-FSBI.js → HandoverContent-CjAdkJyP.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-yWeBoNXM.js → OnRampWidget-CPBxu5mW.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-u7Vt_hEK.js → SaleWidget-C_z2mvby.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-BKUOW3vH.js → SpendingCapHero-DZ2h3c0I.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-B7y0JomC.js → SwapWidget-C46tSXSg.js} +9 -9
- package/dist/browser/checkout/{TokenImage-1PBGOvLH.js → TokenImage-DVwKafFC.js} +1 -1
- package/dist/browser/checkout/{TopUpView-DHdxY5JT.js → TopUpView-Domn-Qcd.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-35dcfo4w.js → WalletApproveHero-BuDyraLc.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-Y9iR990Q.js → WalletWidget-CBUNHu8H.js} +4 -4
- package/dist/browser/checkout/{auto-track-Cg6kkwOx.js → auto-track-B4CZrwEV.js} +1 -1
- package/dist/browser/checkout/{index-Cga-0Avd.js → index-7xV-Pj_F.js} +1 -1
- package/dist/browser/checkout/{index-DpyMYzyv.js → index-Bphp6vfp.js} +2 -2
- package/dist/browser/checkout/{index-CNE2GoPm.js → index-C4rT0Sv6.js} +19 -19
- package/dist/browser/checkout/{index-DBGBKN_L.js → index-C9QxRl74.js} +1 -1
- package/dist/browser/checkout/{index-Czt3GvNk.js → index-CN_1RCxb.js} +1 -1
- package/dist/browser/checkout/{index-BT973-4Q.js → index-CRlimiZc.js} +1 -1
- package/dist/browser/checkout/{index-jI6ZFdoK.js → index-D_SSOEje.js} +1 -1
- package/dist/browser/checkout/{index-D7I7TIGd.js → index-Jl4iGdbj.js} +1 -1
- package/dist/browser/checkout/{index-C-kBUpgB.js → index-W518Tkp4.js} +1 -1
- package/dist/browser/checkout/{index-Cy_x51ga.js → index-u3PvSxx0.js} +1 -1
- package/dist/browser/checkout/{index.umd-DFEUUd9m.js → index.umd-C3XaSuZ6.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-C_sHli0I.js → useInterval-Daykm58W.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +346 -345
- package/dist/{checkout-BVe_DYsB.js → checkout-BBw3jFMf.js} +34 -32
- package/dist/checkout.js +5 -5
- package/dist/{config-Bw1VvH0V.js → config-Cmi9x3Q6.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-CXburu7G.js → index-Bw2yzYg3.js} +1 -1
- package/dist/{index-CwlDox7X.js → index-C85kemJl.js} +1 -1
- package/dist/{index-Cd5Vu7wl.js → index-DFL3nZz6.js} +1 -1
- package/dist/{index-CALqWbUf.js → index-DGxS9oho.js} +4 -4
- package/dist/{index-B2vxU1RS.js → index-DZGolhBr.js} +1 -1
- package/dist/{index-Djlp0kzp.js → index-u5tNvD21.js} +3 -3
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +36 -34
- package/dist/index.js +14 -14
- package/dist/last_updated.json +1 -0
- package/dist/{minting_backend-DkDu72pB.js → minting_backend-B3sWDYVL.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-BrLZ1jCD.js → orderbook-B0GH6rPV.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-B3y6qXgF.js → passport-Sc9Ko92d.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-BhYpOSI6.js → webhook-CZoH-2Ow.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-CF0pLl5u.js → x-CBHSFDCr.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -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.76.
|
|
221
|
+
const SDK_VERSION$1 = '1.76.1';
|
|
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.76.
|
|
15004
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.76.1' };
|
|
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.76.
|
|
15076
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.76.1',
|
|
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.76.
|
|
15666
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.76.1' };
|
|
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.76.
|
|
15707
|
+
sdkVersion: 'ts-immutable-sdk-1.76.1',
|
|
15708
15708
|
baseConfig,
|
|
15709
15709
|
});
|
|
15710
15710
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -50469,7 +50469,7 @@ const flattenProperties = (properties) => {
|
|
|
50469
50469
|
};
|
|
50470
50470
|
|
|
50471
50471
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
50472
|
-
const SDK_VERSION = '1.76.
|
|
50472
|
+
const SDK_VERSION = '1.76.1';
|
|
50473
50473
|
const getFrameParentDomain = () => {
|
|
50474
50474
|
if (isNode()) {
|
|
50475
50475
|
return '';
|
|
@@ -55589,7 +55589,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
55589
55589
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
55590
55590
|
};
|
|
55591
55591
|
|
|
55592
|
-
const SDK_VERSION_MARKER = '1.76.
|
|
55592
|
+
const SDK_VERSION_MARKER = '1.76.1';
|
|
55593
55593
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
55594
55594
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
55595
55595
|
|
|
@@ -60223,30 +60223,6 @@ async function getLatestVersionFromNpm() {
|
|
|
60223
60223
|
return fallbackVersion;
|
|
60224
60224
|
}
|
|
60225
60225
|
}
|
|
60226
|
-
/**
|
|
60227
|
-
* Checks if the provided version is available on the CDN.
|
|
60228
|
-
* @param {string} version - The version to check.
|
|
60229
|
-
* @returns {Promise<boolean>} A promise resolving to a boolean indicating if the version is available on the CDN.
|
|
60230
|
-
*/
|
|
60231
|
-
async function isVersionAvailableOnCDN(version) {
|
|
60232
|
-
const files = ['widgets-esm.js', 'widgets.js'];
|
|
60233
|
-
const baseUrl = `https://cdn.jsdelivr.net/npm/@imtbl/sdk@${version}/dist/browser/checkout/`;
|
|
60234
|
-
try {
|
|
60235
|
-
const checks = files.map(async (file) => {
|
|
60236
|
-
const response = await fetch(`${baseUrl}${file}`, { method: 'HEAD' });
|
|
60237
|
-
if (!response.ok) {
|
|
60238
|
-
return false;
|
|
60239
|
-
}
|
|
60240
|
-
return true;
|
|
60241
|
-
});
|
|
60242
|
-
const results = await Promise.all(checks);
|
|
60243
|
-
const allFilesAvailable = results.every((isAvailable) => isAvailable);
|
|
60244
|
-
return allFilesAvailable;
|
|
60245
|
-
}
|
|
60246
|
-
catch {
|
|
60247
|
-
return false;
|
|
60248
|
-
}
|
|
60249
|
-
}
|
|
60250
60226
|
/**
|
|
60251
60227
|
* Returns the latest compatible version based on the provided checkout version config.
|
|
60252
60228
|
* If no compatible version markers are provided, it returns 'latest'.
|
|
@@ -60259,6 +60235,33 @@ function latestCompatibleVersion(validVersion, compatibleVersionMarkers) {
|
|
|
60259
60235
|
}
|
|
60260
60236
|
return 'latest';
|
|
60261
60237
|
}
|
|
60238
|
+
/**
|
|
60239
|
+
* Checks if the last_updated.json file exists on the CDN and validates its timestamp.
|
|
60240
|
+
* @param {string} version - The version to check.
|
|
60241
|
+
* @returns {Promise<boolean>} A promise resolving to `true` if last_updated.json exists and is older than 15 minutes, `false` otherwise.
|
|
60242
|
+
*/
|
|
60243
|
+
async function checkLastUpdatedTimestamp(version) {
|
|
60244
|
+
const WAIT_TIME_IN_MINUTES = 20;
|
|
60245
|
+
const lastUpdatedJsonUrl = `https://cdn.jsdelivr.net/npm/@imtbl/sdk@${version}/dist/last_updated.json`;
|
|
60246
|
+
try {
|
|
60247
|
+
const response = await fetch(lastUpdatedJsonUrl);
|
|
60248
|
+
if (!response.ok) {
|
|
60249
|
+
return false;
|
|
60250
|
+
}
|
|
60251
|
+
const lastUpdatedData = await response.json();
|
|
60252
|
+
if (lastUpdatedData.timestamp) {
|
|
60253
|
+
const timestamp = new Date(lastUpdatedData.timestamp);
|
|
60254
|
+
const now = new Date();
|
|
60255
|
+
const diffInMs = now.getTime() - timestamp.getTime();
|
|
60256
|
+
const diffInMinutes = diffInMs / (1000 * 60);
|
|
60257
|
+
return diffInMinutes > WAIT_TIME_IN_MINUTES;
|
|
60258
|
+
}
|
|
60259
|
+
}
|
|
60260
|
+
catch (error) {
|
|
60261
|
+
return false;
|
|
60262
|
+
}
|
|
60263
|
+
return false;
|
|
60264
|
+
}
|
|
60262
60265
|
/**
|
|
60263
60266
|
* Determines the version of the widgets to use based on the provided validated build version and checkout version config.
|
|
60264
60267
|
* If a version is provided in the widget init parameters, it uses that version.
|
|
@@ -60279,11 +60282,10 @@ async function determineWidgetsVersion(validatedBuildVersion, initVersionProvide
|
|
|
60279
60282
|
return validatedBuildVersion;
|
|
60280
60283
|
}
|
|
60281
60284
|
const compatibleVersion = latestCompatibleVersion(validatedBuildVersion, versionConfig.compatibleVersionMarkers);
|
|
60282
|
-
// If `latest` is returned, query NPM registry for the actual latest version and check
|
|
60285
|
+
// If `latest` is returned, query NPM registry for the actual latest version and check timestamp
|
|
60283
60286
|
if (compatibleVersion === 'latest') {
|
|
60284
60287
|
const latestVersion = await getLatestVersionFromNpm();
|
|
60285
|
-
|
|
60286
|
-
if (isAvailable) {
|
|
60288
|
+
if (await checkLastUpdatedTimestamp(latestVersion)) {
|
|
60287
60289
|
return latestVersion;
|
|
60288
60290
|
}
|
|
60289
60291
|
return 'latest';
|
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-Cmi9x3Q6.js';
|
|
2
|
+
export { b as blockchainData } from './blockchain_data-Cbpk_9xM.js';
|
|
3
|
+
export { p as passport } from './passport-Sc9Ko92d.js';
|
|
4
|
+
export { o as orderbook } from './orderbook-B0GH6rPV.js';
|
|
5
|
+
export { c as checkout } from './checkout-BBw3jFMf.js';
|
|
6
|
+
export { x } from './x-CBHSFDCr.js';
|
|
7
|
+
export { w as webhook } from './webhook-CZoH-2Ow.js';
|
|
8
|
+
export { m as mintingBackend } from './minting_backend-B3sWDYVL.js';
|
|
9
|
+
import './index-DZGolhBr.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-u5tNvD21.js';
|
|
14
|
+
import './index-Bw2yzYg3.js';
|
|
15
|
+
import './index-DGxS9oho.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-DFL3nZz6.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-C85kemJl.js';
|
|
53
53
|
import 'sns-validator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"last_updated": "2024-12-16T23:41:08Z"}
|
|
@@ -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-u5tNvD21.js';
|
|
2
|
+
import { h as handle } from './index-C85kemJl.js';
|
|
3
|
+
import { t as track, e as setEnvironment, f as setPublishableApiKey } from './index-DZGolhBr.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-B3sWDYVL.js';
|
|
2
|
+
import './index-u5tNvD21.js';
|
|
3
|
+
import './index-Bw2yzYg3.js';
|
|
4
4
|
import 'axios';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-DZGolhBr.js';
|
|
6
6
|
import 'lru-memorise';
|
|
7
7
|
import 'global-const';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-C85kemJl.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-DFL3nZz6.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-DFL3nZz6.js';
|
|
2
|
+
import './index-DZGolhBr.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-Bw2yzYg3.js';
|
|
3
|
+
import { I as IMXClient, s as signRaw, c as convertToSignableToken, g as generateLegacyStarkPrivateKey, a as createStarkSigner } from './index-DGxS9oho.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-DZGolhBr.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-Sc9Ko92d.js';
|
|
2
2
|
import 'axios';
|
|
3
|
-
import './index-
|
|
4
|
-
import './index-
|
|
5
|
-
import './index-
|
|
3
|
+
import './index-Bw2yzYg3.js';
|
|
4
|
+
import './index-DGxS9oho.js';
|
|
5
|
+
import './index-DZGolhBr.js';
|
|
6
6
|
import 'lru-memorise';
|
|
7
7
|
import 'global-const';
|
|
8
8
|
import '@ethersproject/keccak256';
|
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-DGxS9oho.js';
|
|
2
|
+
import { d as index$2 } from './index-Bw2yzYg3.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-DZGolhBr.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-DGxS9oho.js';
|
|
2
|
+
export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-CBHSFDCr.js';
|
|
3
|
+
export { E as Environment, I as ImmutableConfiguration } from './index-DZGolhBr.js';
|
|
4
4
|
export { Signer as EthSigner } from '@ethersproject/abstract-signer';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-Bw2yzYg3.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '@ethersproject/keccak256';
|
|
8
8
|
import '@ethersproject/strings';
|
package/package.json
CHANGED