@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
package/dist/index.cjs
CHANGED
|
@@ -217,7 +217,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
217
217
|
};
|
|
218
218
|
|
|
219
219
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
220
|
-
const SDK_VERSION$1 = '1.78.
|
|
220
|
+
const SDK_VERSION$1 = '1.78.2';
|
|
221
221
|
const getFrameParentDomain$1 = () => {
|
|
222
222
|
if (isNode$1()) {
|
|
223
223
|
return '';
|
|
@@ -457,7 +457,7 @@ const mergeProperties = (...args) => {
|
|
|
457
457
|
};
|
|
458
458
|
const cleanEventName = (eventName) => eventName.replace(/[^a-zA-Z0-9\s\-_]/g, '');
|
|
459
459
|
const getEventName = (flowName, eventName) => `${flowName}_${cleanEventName(eventName)}`;
|
|
460
|
-
const trackFlowFn = (moduleName, flowName, properties) => {
|
|
460
|
+
const trackFlowFn = (moduleName, flowName, trackStartEvent = true, properties) => {
|
|
461
461
|
// Track the start of the flow
|
|
462
462
|
const flowId = generateFlowId();
|
|
463
463
|
const flowStartTime = Date.now();
|
|
@@ -493,8 +493,10 @@ const trackFlowFn = (moduleName, flowName, properties) => {
|
|
|
493
493
|
currentStepCount++;
|
|
494
494
|
previousStepTime = currentTime;
|
|
495
495
|
};
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
if (trackStartEvent) {
|
|
497
|
+
// Trigger a Start Event as a record of creating the flow
|
|
498
|
+
addEvent('Start');
|
|
499
|
+
}
|
|
498
500
|
return {
|
|
499
501
|
details: {
|
|
500
502
|
moduleName,
|
|
@@ -511,11 +513,12 @@ const trackFlowFn = (moduleName, flowName, properties) => {
|
|
|
511
513
|
* Works similarly to `track`
|
|
512
514
|
* @param moduleName Name of the module being tracked (for namespacing purposes), e.g. `passport`
|
|
513
515
|
* @param flowName Name of the flow, e.g. `performTransaction`
|
|
516
|
+
* @param trackStartEvent Whether to track the start event in the flow
|
|
514
517
|
* @param properties Other properties to be sent with the event, other than duration
|
|
515
518
|
*
|
|
516
519
|
* @example
|
|
517
520
|
* ```ts
|
|
518
|
-
* const flow = trackFlow("passport", "performTransaction", { transationType: "transfer" });
|
|
521
|
+
* const flow = trackFlow("passport", "performTransaction", true, { transationType: "transfer" });
|
|
519
522
|
* // Do something...
|
|
520
523
|
* flow.addEvent("clickItem");
|
|
521
524
|
* // Do something...
|
|
@@ -15000,7 +15003,7 @@ class MultiRollupApiClients {
|
|
|
15000
15003
|
}
|
|
15001
15004
|
|
|
15002
15005
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
15003
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.78.
|
|
15006
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.78.2' };
|
|
15004
15007
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
15005
15008
|
if (!basePath.trim()) {
|
|
15006
15009
|
throw Error('basePath can not be empty');
|
|
@@ -15072,7 +15075,7 @@ class APIError extends Error {
|
|
|
15072
15075
|
|
|
15073
15076
|
/* eslint-disable implicit-arrow-linebreak */
|
|
15074
15077
|
const defaultHeaders$1 = {
|
|
15075
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.78.
|
|
15078
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.78.2',
|
|
15076
15079
|
};
|
|
15077
15080
|
/**
|
|
15078
15081
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -15662,7 +15665,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
15662
15665
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
15663
15666
|
class ApiConfiguration extends index$2.Configuration {
|
|
15664
15667
|
}
|
|
15665
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.78.
|
|
15668
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.78.2' };
|
|
15666
15669
|
/**
|
|
15667
15670
|
* @dev use createImmutableXConfiguration instead
|
|
15668
15671
|
*/
|
|
@@ -15703,7 +15706,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
15703
15706
|
coreContractAddress,
|
|
15704
15707
|
registrationContractAddress,
|
|
15705
15708
|
registrationV4ContractAddress,
|
|
15706
|
-
sdkVersion: 'ts-immutable-sdk-1.78.
|
|
15709
|
+
sdkVersion: 'ts-immutable-sdk-1.78.2',
|
|
15707
15710
|
baseConfig,
|
|
15708
15711
|
});
|
|
15709
15712
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -25375,36 +25378,44 @@ const lazyDocumentReady = (initialiseFunction) => {
|
|
|
25375
25378
|
return lazyLoad(documentReadyPromise, initialiseFunction);
|
|
25376
25379
|
};
|
|
25377
25380
|
|
|
25378
|
-
const withMetrics = (fn, flowName) => {
|
|
25379
|
-
const flow = trackFlow('passport', flowName);
|
|
25381
|
+
const withMetrics = (fn, flowName, trackStartEvent = true, trackEndEvent = true) => {
|
|
25382
|
+
const flow = trackFlow('passport', flowName, trackStartEvent);
|
|
25380
25383
|
try {
|
|
25381
25384
|
return fn(flow);
|
|
25382
25385
|
}
|
|
25383
25386
|
catch (error) {
|
|
25384
25387
|
if (error instanceof Error) {
|
|
25385
|
-
trackError$1('passport', flowName, error);
|
|
25388
|
+
trackError$1('passport', flowName, error, { flowId: flow.details.flowId });
|
|
25389
|
+
}
|
|
25390
|
+
else {
|
|
25391
|
+
flow.addEvent('errored');
|
|
25386
25392
|
}
|
|
25387
|
-
flow.addEvent('errored');
|
|
25388
25393
|
throw error;
|
|
25389
25394
|
}
|
|
25390
25395
|
finally {
|
|
25391
|
-
|
|
25396
|
+
if (trackEndEvent) {
|
|
25397
|
+
flow.addEvent('End');
|
|
25398
|
+
}
|
|
25392
25399
|
}
|
|
25393
25400
|
};
|
|
25394
|
-
const withMetricsAsync = async (fn, flowName) => {
|
|
25395
|
-
const flow = trackFlow('passport', flowName);
|
|
25401
|
+
const withMetricsAsync = async (fn, flowName, trackStartEvent = true, trackEndEvent = true) => {
|
|
25402
|
+
const flow = trackFlow('passport', flowName, trackStartEvent);
|
|
25396
25403
|
try {
|
|
25397
25404
|
return await fn(flow);
|
|
25398
25405
|
}
|
|
25399
25406
|
catch (error) {
|
|
25400
25407
|
if (error instanceof Error) {
|
|
25401
|
-
trackError$1('passport', flowName, error);
|
|
25408
|
+
trackError$1('passport', flowName, error, { flowId: flow.details.flowId });
|
|
25409
|
+
}
|
|
25410
|
+
else {
|
|
25411
|
+
flow.addEvent('errored');
|
|
25402
25412
|
}
|
|
25403
|
-
flow.addEvent('errored');
|
|
25404
25413
|
throw error;
|
|
25405
25414
|
}
|
|
25406
25415
|
finally {
|
|
25407
|
-
|
|
25416
|
+
if (trackEndEvent) {
|
|
25417
|
+
flow.addEvent('End');
|
|
25418
|
+
}
|
|
25408
25419
|
}
|
|
25409
25420
|
};
|
|
25410
25421
|
|
|
@@ -26617,7 +26628,6 @@ class RelayerClient {
|
|
|
26617
26628
|
...request,
|
|
26618
26629
|
};
|
|
26619
26630
|
const user = await this.authManager.getUserZkEvm();
|
|
26620
|
-
const startTime = performance.now();
|
|
26621
26631
|
const response = await fetch(`${this.config.relayerUrl}/v1/transactions`, {
|
|
26622
26632
|
method: 'POST',
|
|
26623
26633
|
headers: {
|
|
@@ -26626,7 +26636,6 @@ class RelayerClient {
|
|
|
26626
26636
|
},
|
|
26627
26637
|
body: JSON.stringify(body),
|
|
26628
26638
|
});
|
|
26629
|
-
trackDuration('passport', 'postToRelayer', Math.round(performance.now() - startTime), { rpcMethod: request.method });
|
|
26630
26639
|
const jsonResponse = await response.json();
|
|
26631
26640
|
if (jsonResponse.error) {
|
|
26632
26641
|
throw jsonResponse.error;
|
|
@@ -27361,7 +27370,6 @@ const trackSessionActivityFn = async (args) => {
|
|
|
27361
27370
|
}
|
|
27362
27371
|
// If there is already a tracking call in progress, do nothing
|
|
27363
27372
|
if (currentSessionTrackCall[clientId]) {
|
|
27364
|
-
flow.addEvent('Existing Delay Early Exit');
|
|
27365
27373
|
return;
|
|
27366
27374
|
}
|
|
27367
27375
|
currentSessionTrackCall[clientId] = true;
|
|
@@ -27383,7 +27391,6 @@ const trackSessionActivityFn = async (args) => {
|
|
|
27383
27391
|
let details;
|
|
27384
27392
|
// Make the API call
|
|
27385
27393
|
try {
|
|
27386
|
-
flow.addEvent('Fetching details');
|
|
27387
27394
|
details = await get({
|
|
27388
27395
|
clientId,
|
|
27389
27396
|
wallet: from,
|
|
@@ -27391,9 +27398,7 @@ const trackSessionActivityFn = async (args) => {
|
|
|
27391
27398
|
sendCount: sendCount[clientId] || 0,
|
|
27392
27399
|
});
|
|
27393
27400
|
checkCount[clientId]++;
|
|
27394
|
-
flow.addEvent('Fetched details', { checkCount: checkCount[clientId] });
|
|
27395
27401
|
if (!details) {
|
|
27396
|
-
flow.addEvent('No details found');
|
|
27397
27402
|
return;
|
|
27398
27403
|
}
|
|
27399
27404
|
}
|
|
@@ -27415,7 +27420,7 @@ const trackSessionActivityFn = async (args) => {
|
|
|
27415
27420
|
catch (error) {
|
|
27416
27421
|
flow.addEvent('Failed to send Transaction');
|
|
27417
27422
|
const err = new Error('Failed to send transaction', { cause: error });
|
|
27418
|
-
trackError$1('passport', 'sessionActivityError', err);
|
|
27423
|
+
trackError$1('passport', 'sessionActivityError', err, { flowId: flow.details.flowId });
|
|
27419
27424
|
}
|
|
27420
27425
|
}
|
|
27421
27426
|
// if delay, perform delay.
|
|
@@ -27674,9 +27679,11 @@ class ZkEvmProvider {
|
|
|
27674
27679
|
}
|
|
27675
27680
|
catch (error) {
|
|
27676
27681
|
if (error instanceof Error) {
|
|
27677
|
-
trackError$1('passport', 'ethRequestAccounts', error);
|
|
27682
|
+
trackError$1('passport', 'ethRequestAccounts', error, { flowId: flow.details.flowId });
|
|
27683
|
+
}
|
|
27684
|
+
else {
|
|
27685
|
+
flow.addEvent('errored');
|
|
27678
27686
|
}
|
|
27679
|
-
flow.addEvent('errored');
|
|
27680
27687
|
throw error;
|
|
27681
27688
|
}
|
|
27682
27689
|
finally {
|
|
@@ -27709,9 +27716,11 @@ class ZkEvmProvider {
|
|
|
27709
27716
|
}
|
|
27710
27717
|
catch (error) {
|
|
27711
27718
|
if (error instanceof Error) {
|
|
27712
|
-
trackError$1('passport', 'eth_sendTransaction', error);
|
|
27719
|
+
trackError$1('passport', 'eth_sendTransaction', error, { flowId: flow.details.flowId });
|
|
27720
|
+
}
|
|
27721
|
+
else {
|
|
27722
|
+
flow.addEvent('errored');
|
|
27713
27723
|
}
|
|
27714
|
-
flow.addEvent('errored');
|
|
27715
27724
|
throw error;
|
|
27716
27725
|
}
|
|
27717
27726
|
finally {
|
|
@@ -27765,9 +27774,11 @@ class ZkEvmProvider {
|
|
|
27765
27774
|
}
|
|
27766
27775
|
catch (error) {
|
|
27767
27776
|
if (error instanceof Error) {
|
|
27768
|
-
trackError$1('passport', 'personal_sign', error);
|
|
27777
|
+
trackError$1('passport', 'personal_sign', error, { flowId: flow.details.flowId });
|
|
27778
|
+
}
|
|
27779
|
+
else {
|
|
27780
|
+
flow.addEvent('errored');
|
|
27769
27781
|
}
|
|
27770
|
-
flow.addEvent('errored');
|
|
27771
27782
|
throw error;
|
|
27772
27783
|
}
|
|
27773
27784
|
finally {
|
|
@@ -27801,9 +27812,11 @@ class ZkEvmProvider {
|
|
|
27801
27812
|
}
|
|
27802
27813
|
catch (error) {
|
|
27803
27814
|
if (error instanceof Error) {
|
|
27804
|
-
trackError$1('passport', 'eth_signTypedData', error);
|
|
27815
|
+
trackError$1('passport', 'eth_signTypedData', error, { flowId: flow.details.flowId });
|
|
27816
|
+
}
|
|
27817
|
+
else {
|
|
27818
|
+
flow.addEvent('errored');
|
|
27805
27819
|
}
|
|
27806
|
-
flow.addEvent('errored');
|
|
27807
27820
|
throw error;
|
|
27808
27821
|
}
|
|
27809
27822
|
finally {
|
|
@@ -27872,9 +27885,11 @@ class ZkEvmProvider {
|
|
|
27872
27885
|
}
|
|
27873
27886
|
catch (error) {
|
|
27874
27887
|
if (error instanceof Error) {
|
|
27875
|
-
trackError$1('passport', 'imSignEjectionTransaction', error);
|
|
27888
|
+
trackError$1('passport', 'imSignEjectionTransaction', error, { flowId: flow.details.flowId });
|
|
27889
|
+
}
|
|
27890
|
+
else {
|
|
27891
|
+
flow.addEvent('errored');
|
|
27876
27892
|
}
|
|
27877
|
-
flow.addEvent('errored');
|
|
27878
27893
|
throw error;
|
|
27879
27894
|
}
|
|
27880
27895
|
finally {
|
|
@@ -28093,10 +28108,10 @@ class Passport {
|
|
|
28093
28108
|
* `connectImx` instead.
|
|
28094
28109
|
*/
|
|
28095
28110
|
async connectImxSilent() {
|
|
28096
|
-
return withMetricsAsync(() => this.passportImxProviderFactory.getProviderSilent(), 'connectImxSilent');
|
|
28111
|
+
return withMetricsAsync(() => this.passportImxProviderFactory.getProviderSilent(), 'connectImxSilent', false);
|
|
28097
28112
|
}
|
|
28098
28113
|
async connectImx() {
|
|
28099
|
-
return withMetricsAsync(() => this.passportImxProviderFactory.getProvider(), 'connectImx');
|
|
28114
|
+
return withMetricsAsync(() => this.passportImxProviderFactory.getProvider(), 'connectImx', false);
|
|
28100
28115
|
}
|
|
28101
28116
|
connectEvm(options = {
|
|
28102
28117
|
announceProvider: true,
|
|
@@ -28117,7 +28132,7 @@ class Passport {
|
|
|
28117
28132
|
});
|
|
28118
28133
|
}
|
|
28119
28134
|
return provider;
|
|
28120
|
-
}, 'connectEvm');
|
|
28135
|
+
}, 'connectEvm', false);
|
|
28121
28136
|
}
|
|
28122
28137
|
/**
|
|
28123
28138
|
*
|
|
@@ -28224,19 +28239,19 @@ class Passport {
|
|
|
28224
28239
|
return withMetricsAsync(async () => {
|
|
28225
28240
|
const user = await this.authManager.getUser();
|
|
28226
28241
|
return user?.profile;
|
|
28227
|
-
}, 'getUserInfo');
|
|
28242
|
+
}, 'getUserInfo', false);
|
|
28228
28243
|
}
|
|
28229
28244
|
async getIdToken() {
|
|
28230
28245
|
return withMetricsAsync(async () => {
|
|
28231
28246
|
const user = await this.authManager.getUser();
|
|
28232
28247
|
return user?.idToken;
|
|
28233
|
-
}, 'getIdToken');
|
|
28248
|
+
}, 'getIdToken', false);
|
|
28234
28249
|
}
|
|
28235
28250
|
async getAccessToken() {
|
|
28236
28251
|
return withMetricsAsync(async () => {
|
|
28237
28252
|
const user = await this.authManager.getUser();
|
|
28238
28253
|
return user?.accessToken;
|
|
28239
|
-
}, 'getAccessToken');
|
|
28254
|
+
}, 'getAccessToken', false, false);
|
|
28240
28255
|
}
|
|
28241
28256
|
async getLinkedAddresses() {
|
|
28242
28257
|
return withMetricsAsync(async () => {
|
|
@@ -28247,10 +28262,10 @@ class Passport {
|
|
|
28247
28262
|
const headers = { Authorization: `Bearer ${user.accessToken}` };
|
|
28248
28263
|
const getUserInfoResult = await this.multiRollupApiClients.passportProfileApi.getUserInfo({ headers });
|
|
28249
28264
|
return getUserInfoResult.data.linked_addresses;
|
|
28250
|
-
}, 'getLinkedAddresses');
|
|
28265
|
+
}, 'getLinkedAddresses', false);
|
|
28251
28266
|
}
|
|
28252
28267
|
async linkExternalWallet(params) {
|
|
28253
|
-
const flow = trackFlow('passport', 'linkExternalWallet');
|
|
28268
|
+
const flow = trackFlow('passport', 'linkExternalWallet', false);
|
|
28254
28269
|
const user = await this.authManager.getUser();
|
|
28255
28270
|
if (!user) {
|
|
28256
28271
|
throw new PassportError('User is not logged in', PassportErrorType.NOT_LOGGED_IN_ERROR);
|
|
@@ -28276,7 +28291,9 @@ class Passport {
|
|
|
28276
28291
|
if (error instanceof Error) {
|
|
28277
28292
|
trackError$1('passport', 'linkExternalWallet', error);
|
|
28278
28293
|
}
|
|
28279
|
-
|
|
28294
|
+
else {
|
|
28295
|
+
flow.addEvent('errored');
|
|
28296
|
+
}
|
|
28280
28297
|
if (globalAxios.isAxiosError(error) && error.response) {
|
|
28281
28298
|
if (error.response.data && isAPIError(error.response.data)) {
|
|
28282
28299
|
const { code, message } = error.response.data;
|
|
@@ -50522,7 +50539,7 @@ const flattenProperties = (properties) => {
|
|
|
50522
50539
|
};
|
|
50523
50540
|
|
|
50524
50541
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
50525
|
-
const SDK_VERSION = '1.78.
|
|
50542
|
+
const SDK_VERSION = '1.78.2';
|
|
50526
50543
|
const getFrameParentDomain = () => {
|
|
50527
50544
|
if (isNode()) {
|
|
50528
50545
|
return '';
|
|
@@ -55643,7 +55660,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
55643
55660
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
55644
55661
|
};
|
|
55645
55662
|
|
|
55646
|
-
const SDK_VERSION_MARKER = '1.78.
|
|
55663
|
+
const SDK_VERSION_MARKER = '1.78.2';
|
|
55647
55664
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
55648
55665
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
55649
55666
|
|
|
@@ -60385,7 +60402,6 @@ class Checkout {
|
|
|
60385
60402
|
this.passport = config.passport;
|
|
60386
60403
|
// Initialise injected providers via EIP-6963
|
|
60387
60404
|
InjectedProvidersManager.getInstance().initialise();
|
|
60388
|
-
track('checkout_sdk', 'initialised');
|
|
60389
60405
|
}
|
|
60390
60406
|
/**
|
|
60391
60407
|
* Loads the widgets bundle and initiate the widgets factory.
|
|
@@ -60399,11 +60415,6 @@ class Checkout {
|
|
|
60399
60415
|
const validatedBuildVersion = validateAndBuildVersion(init.version);
|
|
60400
60416
|
const initVersionProvided = init.version !== undefined;
|
|
60401
60417
|
const widgetsVersion = await determineWidgetsVersion(validatedBuildVersion, initVersionProvided, versionConfig);
|
|
60402
|
-
track('checkout_sdk', 'widgets', {
|
|
60403
|
-
sdkVersion: globalPackageVersion(),
|
|
60404
|
-
validatedSdkVersion: validatedBuildVersion,
|
|
60405
|
-
widgetsVersion,
|
|
60406
|
-
});
|
|
60407
60418
|
try {
|
|
60408
60419
|
const factory = await this.loadEsModules(init.config, widgetsVersion);
|
|
60409
60420
|
return factory;
|
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-AmjUeqX0.js';
|
|
2
|
+
export { b as blockchainData } from './blockchain_data-DXU4U01i.js';
|
|
3
|
+
export { p as passport } from './passport-CxcuwLFF.js';
|
|
4
|
+
export { o as orderbook } from './orderbook-730LCA9X.js';
|
|
5
|
+
export { c as checkout } from './checkout-BcLZx2nl.js';
|
|
6
|
+
export { x } from './x-Ca_Tzy97.js';
|
|
7
|
+
export { w as webhook } from './webhook-DGMGtPc_.js';
|
|
8
|
+
export { m as mintingBackend } from './minting_backend-Bfjb4y_D.js';
|
|
9
|
+
import './index-DONwAU5q.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-Bgucm0s0.js';
|
|
14
|
+
import './index-B7K98OVK.js';
|
|
15
|
+
import './index-UkqN57JB.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-DW7yzuKO.js';
|
|
39
39
|
import 'form-data';
|
|
40
40
|
import 'ethers-v6';
|
|
41
41
|
import 'merkletreejs';
|
|
@@ -48,5 +48,5 @@ import '@metamask/detect-provider';
|
|
|
48
48
|
import 'semver';
|
|
49
49
|
import '@ethersproject/units';
|
|
50
50
|
import '@ethersproject/bignumber';
|
|
51
|
-
import './index-
|
|
51
|
+
import './index-CT3wTyhk.js';
|
|
52
52
|
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-Bgucm0s0.js';
|
|
2
|
+
import { h as handle } from './index-CT3wTyhk.js';
|
|
3
|
+
import { t as track, e as setEnvironment, f as setPublishableApiKey } from './index-DONwAU5q.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-Bfjb4y_D.js';
|
|
2
|
+
import './index-Bgucm0s0.js';
|
|
3
|
+
import './index-B7K98OVK.js';
|
|
4
4
|
import 'axios';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-DONwAU5q.js';
|
|
6
6
|
import 'lru-memorise';
|
|
7
7
|
import 'global-const';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-CT3wTyhk.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-DW7yzuKO.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-DW7yzuKO.js';
|
|
2
|
+
import './index-DONwAU5q.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import 'lru-memorise';
|
|
5
5
|
import 'global-const';
|