@imtbl/sdk 1.78.1 → 1.78.2
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-dtlp9hdb.js → blockchain_data-DXU4U01i.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-phRi8isq.js → AddTokensWidget-hN4Oz8Ns.js} +3 -3
- package/dist/browser/checkout/{BridgeWidget-DqBqp6iY.js → BridgeWidget-A_pLUANI.js} +6 -6
- package/dist/browser/checkout/{CommerceWidget-BakoRfZj.js → CommerceWidget-BoKaAY5y.js} +13 -13
- package/dist/browser/checkout/{FeesBreakdown-BeOGIvgY.js → FeesBreakdown-Cnmi6JuS.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-BID9kc9s.js → OnRampWidget-CYqTRHSC.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-B6lZ8hGg.js → SaleWidget-DIW0k6AY.js} +10 -10
- package/dist/browser/checkout/{SpendingCapHero-DW6X8cGr.js → SpendingCapHero-Dp3KVsiY.js} +1 -1
- package/dist/browser/checkout/SwapWidget-CO4Ks4Im.js +1850 -0
- package/dist/browser/checkout/{TokenImage-DtkH2h2e.js → TokenImage-BNq0SnBY.js} +1 -1
- package/dist/browser/checkout/{TopUpView-BoCJELBq.js → TopUpView-CHsQmxQQ.js} +1 -1
- package/dist/browser/checkout/{WalletApproveHero-BxkUQIWN.js → WalletApproveHero-Bj4aKxP9.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-C8iWV1OY.js → WalletWidget-BsKIkdBf.js} +3 -3
- package/dist/browser/checkout/{auto-track-Densi2-k.js → auto-track-BM5HqFI3.js} +1 -1
- package/dist/browser/checkout/{index-C-4DEd8a.js → index-BDZfw_Cp.js} +27 -135
- package/dist/browser/checkout/{index-CGZ3kTp1.js → index-CNJ98XFR.js} +2 -2
- package/dist/browser/checkout/{index-DSuIrOmV.js → index-Cp7l-bwg.js} +1 -1
- package/dist/browser/checkout/{index-CJ-HyQqV.js → index-D-MV_CPF.js} +1 -1
- package/dist/browser/checkout/{index-Djor6tHu.js → index-D0Nv1xcY.js} +1 -1
- package/dist/browser/checkout/{index-fbNLtQZy.js → index-D9AyMqDS.js} +1 -1
- package/dist/browser/checkout/{index-Bz7QkIrz.js → index-DatkoxOH.js} +1 -1
- package/dist/browser/checkout/{index-BWF1wMhZ.js → index-DubSxoZp.js} +1 -1
- package/dist/browser/checkout/{index.umd-BI-_-mXw.js → index.umd-Dyg-Hme-.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-CfVGG_W7.js → useInterval-WSD1wTJp.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +181 -177
- package/dist/{checkout-B-BLfuyF.js → checkout-BcLZx2nl.js} +5 -11
- package/dist/checkout.js +5 -5
- package/dist/{config-DK_IUjmj.js → config-AmjUeqX0.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-2-Yhh8Lo.js → index-B7K98OVK.js} +1 -1
- package/dist/{index-wc_sNfXQ.js → index-Bgucm0s0.js} +3 -3
- package/dist/{index-B0oHQE2a.js → index-CT3wTyhk.js} +1 -1
- package/dist/{index-DmDCdEAA.js → index-DONwAU5q.js} +8 -5
- package/dist/{index-Bi3YfX-o.js → index-DW7yzuKO.js} +1 -1
- package/dist/{index-8TTFjDjB.js → index-UkqN57JB.js} +4 -4
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +64 -53
- package/dist/index.js +14 -14
- package/dist/{minting_backend-Blarurl3.js → minting_backend-Bfjb4y_D.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-C8nW30oG.js → orderbook-730LCA9X.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-Dn-dJ0as.js → passport-CxcuwLFF.js} +53 -39
- package/dist/passport.js +4 -4
- package/dist/version.json +1 -1
- package/dist/{webhook-Bk8qJg4f.js → webhook-DGMGtPc_.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-BTBIq3r-.js → x-Ca_Tzy97.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
- package/dist/browser/checkout/SwapWidget-UFkXHv2L.js +0 -1738
|
@@ -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-B7K98OVK.js';
|
|
3
|
+
import { I as IMXClient, s as signRaw, c as convertToSignableToken, g as generateLegacyStarkPrivateKey, a as createStarkSigner } from './index-UkqN57JB.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-DONwAU5q.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';
|
|
@@ -1067,36 +1067,44 @@ const lazyDocumentReady = (initialiseFunction) => {
|
|
|
1067
1067
|
return lazyLoad(documentReadyPromise, initialiseFunction);
|
|
1068
1068
|
};
|
|
1069
1069
|
|
|
1070
|
-
const withMetrics = (fn, flowName) => {
|
|
1071
|
-
const flow = trackFlow('passport', flowName);
|
|
1070
|
+
const withMetrics = (fn, flowName, trackStartEvent = true, trackEndEvent = true) => {
|
|
1071
|
+
const flow = trackFlow('passport', flowName, trackStartEvent);
|
|
1072
1072
|
try {
|
|
1073
1073
|
return fn(flow);
|
|
1074
1074
|
}
|
|
1075
1075
|
catch (error) {
|
|
1076
1076
|
if (error instanceof Error) {
|
|
1077
|
-
trackError('passport', flowName, error);
|
|
1077
|
+
trackError('passport', flowName, error, { flowId: flow.details.flowId });
|
|
1078
|
+
}
|
|
1079
|
+
else {
|
|
1080
|
+
flow.addEvent('errored');
|
|
1078
1081
|
}
|
|
1079
|
-
flow.addEvent('errored');
|
|
1080
1082
|
throw error;
|
|
1081
1083
|
}
|
|
1082
1084
|
finally {
|
|
1083
|
-
|
|
1085
|
+
if (trackEndEvent) {
|
|
1086
|
+
flow.addEvent('End');
|
|
1087
|
+
}
|
|
1084
1088
|
}
|
|
1085
1089
|
};
|
|
1086
|
-
const withMetricsAsync = async (fn, flowName) => {
|
|
1087
|
-
const flow = trackFlow('passport', flowName);
|
|
1090
|
+
const withMetricsAsync = async (fn, flowName, trackStartEvent = true, trackEndEvent = true) => {
|
|
1091
|
+
const flow = trackFlow('passport', flowName, trackStartEvent);
|
|
1088
1092
|
try {
|
|
1089
1093
|
return await fn(flow);
|
|
1090
1094
|
}
|
|
1091
1095
|
catch (error) {
|
|
1092
1096
|
if (error instanceof Error) {
|
|
1093
|
-
trackError('passport', flowName, error);
|
|
1097
|
+
trackError('passport', flowName, error, { flowId: flow.details.flowId });
|
|
1098
|
+
}
|
|
1099
|
+
else {
|
|
1100
|
+
flow.addEvent('errored');
|
|
1094
1101
|
}
|
|
1095
|
-
flow.addEvent('errored');
|
|
1096
1102
|
throw error;
|
|
1097
1103
|
}
|
|
1098
1104
|
finally {
|
|
1099
|
-
|
|
1105
|
+
if (trackEndEvent) {
|
|
1106
|
+
flow.addEvent('End');
|
|
1107
|
+
}
|
|
1100
1108
|
}
|
|
1101
1109
|
};
|
|
1102
1110
|
|
|
@@ -2309,7 +2317,6 @@ class RelayerClient {
|
|
|
2309
2317
|
...request,
|
|
2310
2318
|
};
|
|
2311
2319
|
const user = await this.authManager.getUserZkEvm();
|
|
2312
|
-
const startTime = performance.now();
|
|
2313
2320
|
const response = await fetch(`${this.config.relayerUrl}/v1/transactions`, {
|
|
2314
2321
|
method: 'POST',
|
|
2315
2322
|
headers: {
|
|
@@ -2318,7 +2325,6 @@ class RelayerClient {
|
|
|
2318
2325
|
},
|
|
2319
2326
|
body: JSON.stringify(body),
|
|
2320
2327
|
});
|
|
2321
|
-
trackDuration('passport', 'postToRelayer', Math.round(performance.now() - startTime), { rpcMethod: request.method });
|
|
2322
2328
|
const jsonResponse = await response.json();
|
|
2323
2329
|
if (jsonResponse.error) {
|
|
2324
2330
|
throw jsonResponse.error;
|
|
@@ -3053,7 +3059,6 @@ const trackSessionActivityFn = async (args) => {
|
|
|
3053
3059
|
}
|
|
3054
3060
|
// If there is already a tracking call in progress, do nothing
|
|
3055
3061
|
if (currentSessionTrackCall[clientId]) {
|
|
3056
|
-
flow.addEvent('Existing Delay Early Exit');
|
|
3057
3062
|
return;
|
|
3058
3063
|
}
|
|
3059
3064
|
currentSessionTrackCall[clientId] = true;
|
|
@@ -3075,7 +3080,6 @@ const trackSessionActivityFn = async (args) => {
|
|
|
3075
3080
|
let details;
|
|
3076
3081
|
// Make the API call
|
|
3077
3082
|
try {
|
|
3078
|
-
flow.addEvent('Fetching details');
|
|
3079
3083
|
details = await get({
|
|
3080
3084
|
clientId,
|
|
3081
3085
|
wallet: from,
|
|
@@ -3083,9 +3087,7 @@ const trackSessionActivityFn = async (args) => {
|
|
|
3083
3087
|
sendCount: sendCount[clientId] || 0,
|
|
3084
3088
|
});
|
|
3085
3089
|
checkCount[clientId]++;
|
|
3086
|
-
flow.addEvent('Fetched details', { checkCount: checkCount[clientId] });
|
|
3087
3090
|
if (!details) {
|
|
3088
|
-
flow.addEvent('No details found');
|
|
3089
3091
|
return;
|
|
3090
3092
|
}
|
|
3091
3093
|
}
|
|
@@ -3107,7 +3109,7 @@ const trackSessionActivityFn = async (args) => {
|
|
|
3107
3109
|
catch (error) {
|
|
3108
3110
|
flow.addEvent('Failed to send Transaction');
|
|
3109
3111
|
const err = new Error('Failed to send transaction', { cause: error });
|
|
3110
|
-
trackError('passport', 'sessionActivityError', err);
|
|
3112
|
+
trackError('passport', 'sessionActivityError', err, { flowId: flow.details.flowId });
|
|
3111
3113
|
}
|
|
3112
3114
|
}
|
|
3113
3115
|
// if delay, perform delay.
|
|
@@ -3366,9 +3368,11 @@ class ZkEvmProvider {
|
|
|
3366
3368
|
}
|
|
3367
3369
|
catch (error) {
|
|
3368
3370
|
if (error instanceof Error) {
|
|
3369
|
-
trackError('passport', 'ethRequestAccounts', error);
|
|
3371
|
+
trackError('passport', 'ethRequestAccounts', error, { flowId: flow.details.flowId });
|
|
3372
|
+
}
|
|
3373
|
+
else {
|
|
3374
|
+
flow.addEvent('errored');
|
|
3370
3375
|
}
|
|
3371
|
-
flow.addEvent('errored');
|
|
3372
3376
|
throw error;
|
|
3373
3377
|
}
|
|
3374
3378
|
finally {
|
|
@@ -3401,9 +3405,11 @@ class ZkEvmProvider {
|
|
|
3401
3405
|
}
|
|
3402
3406
|
catch (error) {
|
|
3403
3407
|
if (error instanceof Error) {
|
|
3404
|
-
trackError('passport', 'eth_sendTransaction', error);
|
|
3408
|
+
trackError('passport', 'eth_sendTransaction', error, { flowId: flow.details.flowId });
|
|
3409
|
+
}
|
|
3410
|
+
else {
|
|
3411
|
+
flow.addEvent('errored');
|
|
3405
3412
|
}
|
|
3406
|
-
flow.addEvent('errored');
|
|
3407
3413
|
throw error;
|
|
3408
3414
|
}
|
|
3409
3415
|
finally {
|
|
@@ -3457,9 +3463,11 @@ class ZkEvmProvider {
|
|
|
3457
3463
|
}
|
|
3458
3464
|
catch (error) {
|
|
3459
3465
|
if (error instanceof Error) {
|
|
3460
|
-
trackError('passport', 'personal_sign', error);
|
|
3466
|
+
trackError('passport', 'personal_sign', error, { flowId: flow.details.flowId });
|
|
3467
|
+
}
|
|
3468
|
+
else {
|
|
3469
|
+
flow.addEvent('errored');
|
|
3461
3470
|
}
|
|
3462
|
-
flow.addEvent('errored');
|
|
3463
3471
|
throw error;
|
|
3464
3472
|
}
|
|
3465
3473
|
finally {
|
|
@@ -3493,9 +3501,11 @@ class ZkEvmProvider {
|
|
|
3493
3501
|
}
|
|
3494
3502
|
catch (error) {
|
|
3495
3503
|
if (error instanceof Error) {
|
|
3496
|
-
trackError('passport', 'eth_signTypedData', error);
|
|
3504
|
+
trackError('passport', 'eth_signTypedData', error, { flowId: flow.details.flowId });
|
|
3505
|
+
}
|
|
3506
|
+
else {
|
|
3507
|
+
flow.addEvent('errored');
|
|
3497
3508
|
}
|
|
3498
|
-
flow.addEvent('errored');
|
|
3499
3509
|
throw error;
|
|
3500
3510
|
}
|
|
3501
3511
|
finally {
|
|
@@ -3564,9 +3574,11 @@ class ZkEvmProvider {
|
|
|
3564
3574
|
}
|
|
3565
3575
|
catch (error) {
|
|
3566
3576
|
if (error instanceof Error) {
|
|
3567
|
-
trackError('passport', 'imSignEjectionTransaction', error);
|
|
3577
|
+
trackError('passport', 'imSignEjectionTransaction', error, { flowId: flow.details.flowId });
|
|
3578
|
+
}
|
|
3579
|
+
else {
|
|
3580
|
+
flow.addEvent('errored');
|
|
3568
3581
|
}
|
|
3569
|
-
flow.addEvent('errored');
|
|
3570
3582
|
throw error;
|
|
3571
3583
|
}
|
|
3572
3584
|
finally {
|
|
@@ -3785,10 +3797,10 @@ class Passport {
|
|
|
3785
3797
|
* `connectImx` instead.
|
|
3786
3798
|
*/
|
|
3787
3799
|
async connectImxSilent() {
|
|
3788
|
-
return withMetricsAsync(() => this.passportImxProviderFactory.getProviderSilent(), 'connectImxSilent');
|
|
3800
|
+
return withMetricsAsync(() => this.passportImxProviderFactory.getProviderSilent(), 'connectImxSilent', false);
|
|
3789
3801
|
}
|
|
3790
3802
|
async connectImx() {
|
|
3791
|
-
return withMetricsAsync(() => this.passportImxProviderFactory.getProvider(), 'connectImx');
|
|
3803
|
+
return withMetricsAsync(() => this.passportImxProviderFactory.getProvider(), 'connectImx', false);
|
|
3792
3804
|
}
|
|
3793
3805
|
connectEvm(options = {
|
|
3794
3806
|
announceProvider: true,
|
|
@@ -3809,7 +3821,7 @@ class Passport {
|
|
|
3809
3821
|
});
|
|
3810
3822
|
}
|
|
3811
3823
|
return provider;
|
|
3812
|
-
}, 'connectEvm');
|
|
3824
|
+
}, 'connectEvm', false);
|
|
3813
3825
|
}
|
|
3814
3826
|
/**
|
|
3815
3827
|
*
|
|
@@ -3916,19 +3928,19 @@ class Passport {
|
|
|
3916
3928
|
return withMetricsAsync(async () => {
|
|
3917
3929
|
const user = await this.authManager.getUser();
|
|
3918
3930
|
return user?.profile;
|
|
3919
|
-
}, 'getUserInfo');
|
|
3931
|
+
}, 'getUserInfo', false);
|
|
3920
3932
|
}
|
|
3921
3933
|
async getIdToken() {
|
|
3922
3934
|
return withMetricsAsync(async () => {
|
|
3923
3935
|
const user = await this.authManager.getUser();
|
|
3924
3936
|
return user?.idToken;
|
|
3925
|
-
}, 'getIdToken');
|
|
3937
|
+
}, 'getIdToken', false);
|
|
3926
3938
|
}
|
|
3927
3939
|
async getAccessToken() {
|
|
3928
3940
|
return withMetricsAsync(async () => {
|
|
3929
3941
|
const user = await this.authManager.getUser();
|
|
3930
3942
|
return user?.accessToken;
|
|
3931
|
-
}, 'getAccessToken');
|
|
3943
|
+
}, 'getAccessToken', false, false);
|
|
3932
3944
|
}
|
|
3933
3945
|
async getLinkedAddresses() {
|
|
3934
3946
|
return withMetricsAsync(async () => {
|
|
@@ -3939,10 +3951,10 @@ class Passport {
|
|
|
3939
3951
|
const headers = { Authorization: `Bearer ${user.accessToken}` };
|
|
3940
3952
|
const getUserInfoResult = await this.multiRollupApiClients.passportProfileApi.getUserInfo({ headers });
|
|
3941
3953
|
return getUserInfoResult.data.linked_addresses;
|
|
3942
|
-
}, 'getLinkedAddresses');
|
|
3954
|
+
}, 'getLinkedAddresses', false);
|
|
3943
3955
|
}
|
|
3944
3956
|
async linkExternalWallet(params) {
|
|
3945
|
-
const flow = trackFlow('passport', 'linkExternalWallet');
|
|
3957
|
+
const flow = trackFlow('passport', 'linkExternalWallet', false);
|
|
3946
3958
|
const user = await this.authManager.getUser();
|
|
3947
3959
|
if (!user) {
|
|
3948
3960
|
throw new PassportError('User is not logged in', PassportErrorType.NOT_LOGGED_IN_ERROR);
|
|
@@ -3968,7 +3980,9 @@ class Passport {
|
|
|
3968
3980
|
if (error instanceof Error) {
|
|
3969
3981
|
trackError('passport', 'linkExternalWallet', error);
|
|
3970
3982
|
}
|
|
3971
|
-
|
|
3983
|
+
else {
|
|
3984
|
+
flow.addEvent('errored');
|
|
3985
|
+
}
|
|
3972
3986
|
if (isAxiosError(error) && error.response) {
|
|
3973
3987
|
if (error.response.data && isAPIError(error.response.data)) {
|
|
3974
3988
|
const { code, message } = error.response.data;
|
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-CxcuwLFF.js';
|
|
2
2
|
import 'axios';
|
|
3
|
-
import './index-
|
|
4
|
-
import './index-
|
|
5
|
-
import './index-
|
|
3
|
+
import './index-B7K98OVK.js';
|
|
4
|
+
import './index-UkqN57JB.js';
|
|
5
|
+
import './index-DONwAU5q.js';
|
|
6
6
|
import 'lru-memorise';
|
|
7
7
|
import 'global-const';
|
|
8
8
|
import '@ethersproject/keccak256';
|
package/dist/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "version": "1.78.
|
|
1
|
+
{ "version": "1.78.2" }
|
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-UkqN57JB.js';
|
|
2
|
+
import { d as index$2 } from './index-B7K98OVK.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-DONwAU5q.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-UkqN57JB.js';
|
|
2
|
+
export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-Ca_Tzy97.js';
|
|
3
|
+
export { E as Environment, I as ImmutableConfiguration } from './index-DONwAU5q.js';
|
|
4
4
|
export { Signer as EthSigner } from '@ethersproject/abstract-signer';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-B7K98OVK.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '@ethersproject/keccak256';
|
|
8
8
|
import '@ethersproject/strings';
|
package/package.json
CHANGED