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