@getpara/core-sdk 2.0.0-alpha.69 → 2.0.0-alpha.70

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.
Files changed (42) hide show
  1. package/dist/cjs/ParaCore.js +30 -24
  2. package/dist/cjs/constants.js +1 -1
  3. package/dist/cjs/index.js +4 -0
  4. package/dist/cjs/shares/KeyContainer.js +3 -3
  5. package/dist/cjs/shares/enclave.js +1 -1
  6. package/dist/cjs/utils/formatting.js +0 -42
  7. package/dist/esm/ParaCore.js +31 -25
  8. package/dist/esm/{chunk-W5CT3TVS.js → chunk-7B52C2XE.js} +0 -2
  9. package/dist/esm/constants.js +2 -2
  10. package/dist/esm/cryptography/utils.js +1 -1
  11. package/dist/esm/errors.js +1 -1
  12. package/dist/esm/external/mpcComputationClient.js +1 -1
  13. package/dist/esm/external/userManagementClient.js +1 -1
  14. package/dist/esm/index.js +6 -2
  15. package/dist/esm/shares/KeyContainer.js +4 -4
  16. package/dist/esm/shares/enclave.js +2 -2
  17. package/dist/esm/shares/recovery.js +1 -1
  18. package/dist/esm/shares/shareDistribution.js +1 -1
  19. package/dist/esm/transmission/transmissionUtils.js +1 -1
  20. package/dist/esm/types/auth.js +1 -1
  21. package/dist/esm/types/config.js +1 -1
  22. package/dist/esm/types/coreApi.js +1 -1
  23. package/dist/esm/types/events.js +1 -1
  24. package/dist/esm/types/popup.js +1 -1
  25. package/dist/esm/types/wallet.js +1 -1
  26. package/dist/esm/utils/autobind.js +1 -1
  27. package/dist/esm/utils/config.js +1 -1
  28. package/dist/esm/utils/events.js +1 -1
  29. package/dist/esm/utils/formatting.js +1 -42
  30. package/dist/esm/utils/json.js +1 -1
  31. package/dist/esm/utils/listeners.js +1 -1
  32. package/dist/esm/utils/onRamps.js +1 -1
  33. package/dist/esm/utils/phone.js +1 -1
  34. package/dist/esm/utils/polling.js +1 -1
  35. package/dist/esm/utils/types.js +1 -1
  36. package/dist/esm/utils/url.js +1 -1
  37. package/dist/esm/utils/wallet.js +1 -1
  38. package/dist/esm/utils/window.js +1 -1
  39. package/dist/types/index.d.ts +1 -1
  40. package/dist/types/types/wallet.d.ts +1 -1
  41. package/dist/types/utils/formatting.d.ts +1 -10
  42. package/package.json +3 -3
@@ -904,7 +904,7 @@ const _ParaCore = class _ParaCore {
904
904
  encryptionKey: (0, import_utils.getPublicKeyHex)(this.loginEncryptionKeyPair),
905
905
  sessionId
906
906
  };
907
- const params = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({
907
+ const params = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({
908
908
  apiKey: this.ctx.apiKey,
909
909
  origin: typeof window !== "undefined" ? window.location.origin : void 0,
910
910
  partnerId: partner == null ? void 0 : partner.id
@@ -925,7 +925,7 @@ const _ParaCore = class _ParaCore {
925
925
  pfpUrl: this.authInfo.pfpUrl,
926
926
  displayName: this.authInfo.displayName,
927
927
  userId: this.userId
928
- }) : {}), isOnRamp ? { email: this.email } : {}), isLogin || isOAuth || isOAuthCallback || isTelegramLogin || isFarcasterLogin || isAddNewCredential || isExportPrivateKey ? __spreadProps(__spreadValues({
928
+ }) : {}), isOnRamp ? { email: this.email } : {}), isLogin || isOAuth || isOAuthCallback || isTelegramLogin || isFarcasterLogin || isAddNewCredential ? __spreadProps(__spreadValues({
929
929
  sessionId: thisDevice.sessionId,
930
930
  encryptionKey: thisDevice.encryptionKey
931
931
  }, opts.newDevice ? {
@@ -941,7 +941,9 @@ const _ParaCore = class _ParaCore {
941
941
  }) : {}), isLogin && {
942
942
  // Prior versions won't have this param which will skip the upgrade prompt
943
943
  isBasicLoginUpgradeVersion: "true"
944
- });
944
+ }), isExportPrivateKey ? {
945
+ sessionId: thisDevice.sessionId
946
+ } : {});
945
947
  const url = (0, import_utils2.constructUrl)({ base, path, params });
946
948
  if (opts.shorten) {
947
949
  return (0, import_utils2.shortenUrl)(this.ctx, url);
@@ -1596,7 +1598,7 @@ Need help? Visit: https://docs.getpara.com or contact support
1596
1598
  return __async(this, null, function* () {
1597
1599
  const res = yield this.isPortal() || this.isParaConnect() ? this.ctx.client.getAllWallets(this.userId) : this.ctx.client.getWallets(this.userId, true);
1598
1600
  return res.data.wallets.filter(
1599
- (wallet) => !!wallet.address && (this.isParaConnect() || !this.isParaConnect() && this.isWalletSupported((0, import_utils2.entityToWallet)(wallet)))
1601
+ (wallet) => !!wallet.address && wallet.sharesPersisted && (this.isParaConnect() || !this.isParaConnect() && this.isWalletSupported((0, import_utils2.entityToWallet)(wallet)))
1600
1602
  );
1601
1603
  });
1602
1604
  }
@@ -2578,28 +2580,29 @@ Need help? Visit: https://docs.getpara.com or contact support
2578
2580
  }
2579
2581
  }
2580
2582
  const walletId = keygenRes.walletId;
2583
+ const walletScheme = walletType === "SOLANA" ? "ED25519" : "DKLS";
2581
2584
  signer = keygenRes.signer;
2582
- this.wallets[walletId] = {
2583
- id: walletId,
2584
- signer,
2585
- scheme: walletType === "SOLANA" ? "ED25519" : "DKLS",
2586
- type: walletType
2587
- };
2588
- wallet = this.wallets[walletId];
2589
- yield this.waitForWalletAddress(wallet.id);
2590
- yield this.populateWalletAddresses();
2585
+ yield this.waitForWalletAddress(walletId);
2591
2586
  let recoveryShare = null;
2592
2587
  if (!skipDistribute) {
2593
2588
  recoveryShare = yield (0, import_shareDistribution.distributeNewShare)({
2594
2589
  ctx: this.ctx,
2595
2590
  userId: this.userId,
2596
- walletId: wallet.id,
2591
+ walletId,
2597
2592
  userShare: signer,
2598
2593
  emailProps: this.getBackupKitEmailProps(),
2599
2594
  isEnclaveUser: this.isEnclaveUser,
2600
- walletScheme: wallet.scheme
2595
+ walletScheme
2601
2596
  });
2602
2597
  }
2598
+ this.wallets[walletId] = {
2599
+ id: walletId,
2600
+ signer,
2601
+ scheme: walletScheme,
2602
+ type: walletType
2603
+ };
2604
+ wallet = this.wallets[walletId];
2605
+ yield this.populateWalletAddresses();
2603
2606
  yield this.setCurrentWalletIds(__spreadProps(__spreadValues({}, this.currentWalletIds), {
2604
2607
  [walletType]: [.../* @__PURE__ */ new Set([...(_b = this.currentWalletIds[walletType]) != null ? _b : [], walletId])]
2605
2608
  }));
@@ -2807,10 +2810,10 @@ Need help? Visit: https://docs.getpara.com or contact support
2807
2810
  (0, import_utils2.dispatchEvent)(import_types.ParaEvent.GUEST_WALLETS_CREATED, wallets);
2808
2811
  __privateSet(this, _isCreateGuestWalletsPending, false);
2809
2812
  return wallets;
2810
- } catch (e) {
2811
- (0, import_utils2.dispatchEvent)(import_types.ParaEvent.GUEST_WALLETS_CREATED, null, error == null ? void 0 : error.message);
2813
+ } catch (error2) {
2814
+ (0, import_utils2.dispatchEvent)(import_types.ParaEvent.GUEST_WALLETS_CREATED, null, error2 == null ? void 0 : error2.message);
2812
2815
  __privateSet(this, _isCreateGuestWalletsPending, false);
2813
- throw error;
2816
+ throw error2;
2814
2817
  }
2815
2818
  });
2816
2819
  }
@@ -2915,7 +2918,7 @@ Need help? Visit: https://docs.getpara.com or contact support
2915
2918
  let pendingTransaction;
2916
2919
  try {
2917
2920
  pendingTransaction = (_a = (yield this.ctx.client.getPendingTransaction(this.userId, signRes.pendingTransactionId)).data) == null ? void 0 : _a.pendingTransaction;
2918
- } catch (err) {
2921
+ } catch (e) {
2919
2922
  const error = new import_errors.TransactionReviewDenied();
2920
2923
  (0, import_utils2.dispatchEvent)(import_types.ParaEvent.SIGN_MESSAGE_EVENT, signRes, error.message);
2921
2924
  throw error;
@@ -3029,7 +3032,7 @@ Need help? Visit: https://docs.getpara.com or contact support
3029
3032
  let pendingTransaction;
3030
3033
  try {
3031
3034
  pendingTransaction = (_a = (yield this.ctx.client.getPendingTransaction(this.userId, signRes.pendingTransactionId)).data) == null ? void 0 : _a.pendingTransaction;
3032
- } catch (err) {
3035
+ } catch (e) {
3033
3036
  const error = new import_errors.TransactionReviewDenied();
3034
3037
  (0, import_utils2.dispatchEvent)(import_types.ParaEvent.SIGN_TRANSACTION_EVENT, signRes, error.message);
3035
3038
  throw error;
@@ -3103,7 +3106,7 @@ Need help? Visit: https://docs.getpara.com or contact support
3103
3106
  try {
3104
3107
  yield this.ctx.client.keepSessionAlive(this.userId);
3105
3108
  return true;
3106
- } catch (err) {
3109
+ } catch (e) {
3107
3110
  return false;
3108
3111
  }
3109
3112
  });
@@ -3875,7 +3878,7 @@ waitForLoginProcess_fn = function() {
3875
3878
  }))
3876
3879
  });
3877
3880
  let hasSharesForCurrentWallets;
3878
- if (!isSwitchingWallets) {
3881
+ if (!isSwitchingWallets && !this.isPortal()) {
3879
3882
  this.devLog("[waitForLoginProcess] Fetching wallets");
3880
3883
  const fetchedWallets = yield this.fetchWallets();
3881
3884
  this.devLog("[waitForLoginProcess] Wallets fetched", {
@@ -3890,8 +3893,11 @@ waitForLoginProcess_fn = function() {
3890
3893
  }
3891
3894
  this.devLog("[waitForLoginProcess] Checking shares for current wallets", {
3892
3895
  hasSharesForCurrentWallets,
3893
- currentWalletIdsCount: this.currentWalletIdsArray.length,
3894
- shareCount: tempSharesRes.data.temporaryShares.length
3896
+ currentWalletIdsArray: this.currentWalletIdsArray,
3897
+ shares: tempSharesRes.data.temporaryShares.map((s) => ({
3898
+ walletId: s.walletId,
3899
+ walletScheme: s.walletScheme
3900
+ }))
3895
3901
  });
3896
3902
  if (hasSharesForCurrentWallets) {
3897
3903
  this.devLog("[waitForLoginProcess] Setting up after login");
@@ -43,7 +43,7 @@ __export(constants_exports, {
43
43
  SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
44
44
  });
45
45
  module.exports = __toCommonJS(constants_exports);
46
- const PARA_CORE_VERSION = "2.0.0-alpha.69";
46
+ const PARA_CORE_VERSION = "2.0.0-alpha.70";
47
47
  const PREFIX = "@CAPSULE/";
48
48
  const PARA_PREFIX = "@PARA/";
49
49
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
package/dist/cjs/index.js CHANGED
@@ -74,6 +74,8 @@ __export(src_exports, {
74
74
  encryptPrivateKeyWithPassword: () => import_utils2.encryptPrivateKeyWithPassword,
75
75
  encryptWithDerivedPublicKey: () => import_utils2.encryptWithDerivedPublicKey,
76
76
  entityToWallet: () => import_utils.entityToWallet,
77
+ formatAssetQuantity: () => import_user_management_client.formatAssetQuantity,
78
+ formatCurrency: () => import_user_management_client.formatCurrency,
77
79
  getAsymmetricKeyPair: () => import_utils2.getAsymmetricKeyPair,
78
80
  getBaseUrl: () => import_userManagementClient.getBaseUrl,
79
81
  getDerivedPrivateKeyAndDecrypt: () => import_utils2.getDerivedPrivateKeyAndDecrypt,
@@ -169,6 +171,8 @@ var src_default = import_ParaCore.ParaCore;
169
171
  encryptPrivateKeyWithPassword,
170
172
  encryptWithDerivedPublicKey,
171
173
  entityToWallet,
174
+ formatAssetQuantity,
175
+ formatCurrency,
172
176
  getAsymmetricKeyPair,
173
177
  getBaseUrl,
174
178
  getDerivedPrivateKeyAndDecrypt,
@@ -61,7 +61,7 @@ class KeyContainer {
61
61
  const pubkey = this.getPublicEncryptionKey();
62
62
  const data = (0, import_ecies.Encrypt)(pubkey, Buffer.from(backup, "ucs2")).toString("base64");
63
63
  return data;
64
- } catch (error) {
64
+ } catch (e) {
65
65
  throw Error("Error encrypting backup");
66
66
  }
67
67
  }
@@ -69,7 +69,7 @@ class KeyContainer {
69
69
  try {
70
70
  const data = (0, import_ecies.Encrypt)(publicKey, Buffer.from(backup, "ucs2")).toString("base64");
71
71
  return data;
72
- } catch (error) {
72
+ } catch (e) {
73
73
  throw Error("Error encrypting backup");
74
74
  }
75
75
  }
@@ -78,7 +78,7 @@ class KeyContainer {
78
78
  const buf = Buffer.from(encryptedBackup, "base64");
79
79
  const data = (0, import_ecies.Decrypt)(Buffer.from(this.backupDecryptionKey, "hex"), buf);
80
80
  return Buffer.from(data.buffer).toString("ucs2");
81
- } catch (error) {
81
+ } catch (e) {
82
82
  throw Error("Error decrypting backup");
83
83
  }
84
84
  }
@@ -75,7 +75,7 @@ class EnclaveClient {
75
75
  return __async(this, null, function* () {
76
76
  try {
77
77
  return yield fn();
78
- } catch (error) {
78
+ } catch (e) {
79
79
  yield this.refreshJwt();
80
80
  return yield fn();
81
81
  }
@@ -4,7 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __pow = Math.pow;
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -30,8 +29,6 @@ var formatting_exports = {};
30
29
  __export(formatting_exports, {
31
30
  compressPubkey: () => compressPubkey,
32
31
  decimalToHex: () => decimalToHex,
33
- formatAssetQuantity: () => formatAssetQuantity,
34
- formatCurrency: () => formatCurrency,
35
32
  getCosmosAddress: () => getCosmosAddress,
36
33
  hexStringToBase64: () => hexStringToBase64,
37
34
  hexToDecimal: () => hexToDecimal,
@@ -105,49 +102,10 @@ function truncateAddress(str, addressType, {
105
102
  const margin = targetLength !== void 0 ? (targetLength - minimum) / 2 : 4;
106
103
  return `${str.slice(0, minimum + margin)}...${str.slice(-1 * margin)}`;
107
104
  }
108
- function formatCurrency(value, { fallback = "" } = {}) {
109
- if (!value) {
110
- return fallback;
111
- }
112
- const formatter = new Intl.NumberFormat("en-US", {
113
- style: "currency",
114
- currency: value.currency
115
- });
116
- const zeroFormatter = new Intl.NumberFormat("en-US", {
117
- style: "currency",
118
- currency: value.currency,
119
- maximumFractionDigits: 0
120
- });
121
- return Math.abs(value.value) < 0.01 ? zeroFormatter.format(0) : formatter.format(value.value);
122
- }
123
- const zeroAssetFormatter = new Intl.NumberFormat("en-US", {
124
- style: "decimal",
125
- maximumFractionDigits: 0,
126
- minimumFractionDigits: 0
127
- });
128
- function formatAssetQuantity({
129
- quantity,
130
- symbol = "",
131
- decimals,
132
- fallback = ""
133
- }) {
134
- if (quantity == null) {
135
- return fallback;
136
- }
137
- const formatter = new Intl.NumberFormat("en-US", {
138
- style: "decimal",
139
- maximumFractionDigits: decimals != null ? decimals : Math.abs(quantity) < 1e-3 ? 6 : 3,
140
- minimumFractionDigits: decimals != null ? decimals : 3
141
- });
142
- const formattedQuantity = quantity === 0 ? "0" : Math.abs(quantity) < __pow(10, -1 * (decimals != null ? decimals : 6)) ? zeroAssetFormatter.format(0) : formatter.format(quantity);
143
- return `${formattedQuantity}${symbol && symbol.length > 0 ? ` ${symbol}` : ""}`;
144
- }
145
105
  // Annotate the CommonJS export names for ESM import in node:
146
106
  0 && (module.exports = {
147
107
  compressPubkey,
148
108
  decimalToHex,
149
- formatAssetQuantity,
150
- formatCurrency,
151
109
  getCosmosAddress,
152
110
  hexStringToBase64,
153
111
  hexToDecimal,
@@ -7,7 +7,7 @@ import {
7
7
  __privateSet,
8
8
  __spreadProps,
9
9
  __spreadValues
10
- } from "./chunk-W5CT3TVS.js";
10
+ } from "./chunk-7B52C2XE.js";
11
11
  var _authInfo, _ParaCore_instances, assertPartner_fn, guestWalletIds_get, guestWalletIdsArray_get, toAuthInfo_fn, setAuthInfo_fn, getPartner_fn, assertIsLinkingAccount_fn, assertIsLinkingAccountOrStart_fn, getOAuthUrl_fn, waitForLoginProcess_fn, createPregenWallet_fn, _isCreateGuestWalletsPending, prepareAuthState_fn, prepareDoneState_fn, prepareVerificationState_fn, prepareLoginState_fn, prepareSignUpState_fn;
12
12
  import { Buffer as NodeBuffer } from "buffer";
13
13
  if (typeof global !== "undefined") {
@@ -870,7 +870,7 @@ const _ParaCore = class _ParaCore {
870
870
  encryptionKey: getPublicKeyHex(this.loginEncryptionKeyPair),
871
871
  sessionId
872
872
  };
873
- const params = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({
873
+ const params = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({
874
874
  apiKey: this.ctx.apiKey,
875
875
  origin: typeof window !== "undefined" ? window.location.origin : void 0,
876
876
  partnerId: partner == null ? void 0 : partner.id
@@ -891,7 +891,7 @@ const _ParaCore = class _ParaCore {
891
891
  pfpUrl: this.authInfo.pfpUrl,
892
892
  displayName: this.authInfo.displayName,
893
893
  userId: this.userId
894
- }) : {}), isOnRamp ? { email: this.email } : {}), isLogin || isOAuth || isOAuthCallback || isTelegramLogin || isFarcasterLogin || isAddNewCredential || isExportPrivateKey ? __spreadProps(__spreadValues({
894
+ }) : {}), isOnRamp ? { email: this.email } : {}), isLogin || isOAuth || isOAuthCallback || isTelegramLogin || isFarcasterLogin || isAddNewCredential ? __spreadProps(__spreadValues({
895
895
  sessionId: thisDevice.sessionId,
896
896
  encryptionKey: thisDevice.encryptionKey
897
897
  }, opts.newDevice ? {
@@ -907,7 +907,9 @@ const _ParaCore = class _ParaCore {
907
907
  }) : {}), isLogin && {
908
908
  // Prior versions won't have this param which will skip the upgrade prompt
909
909
  isBasicLoginUpgradeVersion: "true"
910
- });
910
+ }), isExportPrivateKey ? {
911
+ sessionId: thisDevice.sessionId
912
+ } : {});
911
913
  const url = constructUrl({ base, path, params });
912
914
  if (opts.shorten) {
913
915
  return shortenUrl(this.ctx, url);
@@ -1562,7 +1564,7 @@ Need help? Visit: https://docs.getpara.com or contact support
1562
1564
  return __async(this, null, function* () {
1563
1565
  const res = yield this.isPortal() || this.isParaConnect() ? this.ctx.client.getAllWallets(this.userId) : this.ctx.client.getWallets(this.userId, true);
1564
1566
  return res.data.wallets.filter(
1565
- (wallet) => !!wallet.address && (this.isParaConnect() || !this.isParaConnect() && this.isWalletSupported(entityToWallet(wallet)))
1567
+ (wallet) => !!wallet.address && wallet.sharesPersisted && (this.isParaConnect() || !this.isParaConnect() && this.isWalletSupported(entityToWallet(wallet)))
1566
1568
  );
1567
1569
  });
1568
1570
  }
@@ -2544,28 +2546,29 @@ Need help? Visit: https://docs.getpara.com or contact support
2544
2546
  }
2545
2547
  }
2546
2548
  const walletId = keygenRes.walletId;
2549
+ const walletScheme = walletType === "SOLANA" ? "ED25519" : "DKLS";
2547
2550
  signer = keygenRes.signer;
2548
- this.wallets[walletId] = {
2549
- id: walletId,
2550
- signer,
2551
- scheme: walletType === "SOLANA" ? "ED25519" : "DKLS",
2552
- type: walletType
2553
- };
2554
- wallet = this.wallets[walletId];
2555
- yield this.waitForWalletAddress(wallet.id);
2556
- yield this.populateWalletAddresses();
2551
+ yield this.waitForWalletAddress(walletId);
2557
2552
  let recoveryShare = null;
2558
2553
  if (!skipDistribute) {
2559
2554
  recoveryShare = yield distributeNewShare({
2560
2555
  ctx: this.ctx,
2561
2556
  userId: this.userId,
2562
- walletId: wallet.id,
2557
+ walletId,
2563
2558
  userShare: signer,
2564
2559
  emailProps: this.getBackupKitEmailProps(),
2565
2560
  isEnclaveUser: this.isEnclaveUser,
2566
- walletScheme: wallet.scheme
2561
+ walletScheme
2567
2562
  });
2568
2563
  }
2564
+ this.wallets[walletId] = {
2565
+ id: walletId,
2566
+ signer,
2567
+ scheme: walletScheme,
2568
+ type: walletType
2569
+ };
2570
+ wallet = this.wallets[walletId];
2571
+ yield this.populateWalletAddresses();
2569
2572
  yield this.setCurrentWalletIds(__spreadProps(__spreadValues({}, this.currentWalletIds), {
2570
2573
  [walletType]: [.../* @__PURE__ */ new Set([...(_b = this.currentWalletIds[walletType]) != null ? _b : [], walletId])]
2571
2574
  }));
@@ -2773,10 +2776,10 @@ Need help? Visit: https://docs.getpara.com or contact support
2773
2776
  dispatchEvent(ParaEvent.GUEST_WALLETS_CREATED, wallets);
2774
2777
  __privateSet(this, _isCreateGuestWalletsPending, false);
2775
2778
  return wallets;
2776
- } catch (e) {
2777
- dispatchEvent(ParaEvent.GUEST_WALLETS_CREATED, null, error == null ? void 0 : error.message);
2779
+ } catch (error2) {
2780
+ dispatchEvent(ParaEvent.GUEST_WALLETS_CREATED, null, error2 == null ? void 0 : error2.message);
2778
2781
  __privateSet(this, _isCreateGuestWalletsPending, false);
2779
- throw error;
2782
+ throw error2;
2780
2783
  }
2781
2784
  });
2782
2785
  }
@@ -2881,7 +2884,7 @@ Need help? Visit: https://docs.getpara.com or contact support
2881
2884
  let pendingTransaction;
2882
2885
  try {
2883
2886
  pendingTransaction = (_a = (yield this.ctx.client.getPendingTransaction(this.userId, signRes.pendingTransactionId)).data) == null ? void 0 : _a.pendingTransaction;
2884
- } catch (err) {
2887
+ } catch (e) {
2885
2888
  const error = new TransactionReviewDenied();
2886
2889
  dispatchEvent(ParaEvent.SIGN_MESSAGE_EVENT, signRes, error.message);
2887
2890
  throw error;
@@ -2995,7 +2998,7 @@ Need help? Visit: https://docs.getpara.com or contact support
2995
2998
  let pendingTransaction;
2996
2999
  try {
2997
3000
  pendingTransaction = (_a = (yield this.ctx.client.getPendingTransaction(this.userId, signRes.pendingTransactionId)).data) == null ? void 0 : _a.pendingTransaction;
2998
- } catch (err) {
3001
+ } catch (e) {
2999
3002
  const error = new TransactionReviewDenied();
3000
3003
  dispatchEvent(ParaEvent.SIGN_TRANSACTION_EVENT, signRes, error.message);
3001
3004
  throw error;
@@ -3069,7 +3072,7 @@ Need help? Visit: https://docs.getpara.com or contact support
3069
3072
  try {
3070
3073
  yield this.ctx.client.keepSessionAlive(this.userId);
3071
3074
  return true;
3072
- } catch (err) {
3075
+ } catch (e) {
3073
3076
  return false;
3074
3077
  }
3075
3078
  });
@@ -3841,7 +3844,7 @@ waitForLoginProcess_fn = function() {
3841
3844
  }))
3842
3845
  });
3843
3846
  let hasSharesForCurrentWallets;
3844
- if (!isSwitchingWallets) {
3847
+ if (!isSwitchingWallets && !this.isPortal()) {
3845
3848
  this.devLog("[waitForLoginProcess] Fetching wallets");
3846
3849
  const fetchedWallets = yield this.fetchWallets();
3847
3850
  this.devLog("[waitForLoginProcess] Wallets fetched", {
@@ -3856,8 +3859,11 @@ waitForLoginProcess_fn = function() {
3856
3859
  }
3857
3860
  this.devLog("[waitForLoginProcess] Checking shares for current wallets", {
3858
3861
  hasSharesForCurrentWallets,
3859
- currentWalletIdsCount: this.currentWalletIdsArray.length,
3860
- shareCount: tempSharesRes.data.temporaryShares.length
3862
+ currentWalletIdsArray: this.currentWalletIdsArray,
3863
+ shares: tempSharesRes.data.temporaryShares.map((s) => ({
3864
+ walletId: s.walletId,
3865
+ walletScheme: s.walletScheme
3866
+ }))
3861
3867
  });
3862
3868
  if (hasSharesForCurrentWallets) {
3863
3869
  this.devLog("[waitForLoginProcess] Setting up after login");
@@ -7,7 +7,6 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
7
  var __typeError = (msg) => {
8
8
  throw TypeError(msg);
9
9
  };
10
- var __pow = Math.pow;
11
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
11
  var __spreadValues = (a, b) => {
13
12
  for (var prop in b || (b = {}))
@@ -60,7 +59,6 @@ var __async = (__this, __arguments, generator) => {
60
59
  };
61
60
 
62
61
  export {
63
- __pow,
64
62
  __spreadValues,
65
63
  __spreadProps,
66
64
  __objRest,
@@ -1,5 +1,5 @@
1
- import "./chunk-W5CT3TVS.js";
2
- const PARA_CORE_VERSION = "2.0.0-alpha.69";
1
+ import "./chunk-7B52C2XE.js";
2
+ const PARA_CORE_VERSION = "2.0.0-alpha.70";
3
3
  const PREFIX = "@CAPSULE/";
4
4
  const PARA_PREFIX = "@PARA/";
5
5
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __async
3
- } from "../chunk-W5CT3TVS.js";
3
+ } from "../chunk-7B52C2XE.js";
4
4
  import base64url from "base64url";
5
5
  import forge from "node-forge";
6
6
  import { getPortalBaseURL } from "../utils/index.js";
@@ -1,4 +1,4 @@
1
- import "./chunk-W5CT3TVS.js";
1
+ import "./chunk-7B52C2XE.js";
2
2
  class TransactionReviewError extends Error {
3
3
  constructor(transactionReviewUrl) {
4
4
  super("transaction review error");
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  import axios from "axios";
3
3
  function initClient(baseURL, useAdapter) {
4
4
  const client = axios.create({ baseURL });
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  import Client from "@getpara/user-management-client";
3
3
  import { Environment } from "../types/index.js";
4
4
  function getBaseOAuthUrl(env) {
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-W5CT3TVS.js";
1
+ import "./chunk-7B52C2XE.js";
2
2
  import { ParaCore } from "./ParaCore.js";
3
3
  import {
4
4
  AuthMethod,
@@ -24,7 +24,9 @@ import {
24
24
  EXTERNAL_WALLET_TYPES,
25
25
  EVM_WALLETS,
26
26
  SOLANA_WALLETS,
27
- COSMOS_WALLETS
27
+ COSMOS_WALLETS,
28
+ formatAssetQuantity,
29
+ formatCurrency
28
30
  } from "@getpara/user-management-client";
29
31
  import {
30
32
  PopupType,
@@ -122,6 +124,8 @@ export {
122
124
  encryptPrivateKeyWithPassword,
123
125
  encryptWithDerivedPublicKey,
124
126
  entityToWallet,
127
+ formatAssetQuantity,
128
+ formatCurrency,
125
129
  getAsymmetricKeyPair,
126
130
  getBaseUrl,
127
131
  getDerivedPrivateKeyAndDecrypt,
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  import { Encrypt as ECIESEncrypt, Decrypt as ECIESDecrypt } from "@celo/utils/lib/ecies.js";
3
3
  import * as eutil from "@ethereumjs/util";
4
4
  import * as forge from "node-forge";
@@ -30,7 +30,7 @@ class KeyContainer {
30
30
  const pubkey = this.getPublicEncryptionKey();
31
31
  const data = ECIESEncrypt(pubkey, Buffer.from(backup, "ucs2")).toString("base64");
32
32
  return data;
33
- } catch (error) {
33
+ } catch (e) {
34
34
  throw Error("Error encrypting backup");
35
35
  }
36
36
  }
@@ -38,7 +38,7 @@ class KeyContainer {
38
38
  try {
39
39
  const data = ECIESEncrypt(publicKey, Buffer.from(backup, "ucs2")).toString("base64");
40
40
  return data;
41
- } catch (error) {
41
+ } catch (e) {
42
42
  throw Error("Error encrypting backup");
43
43
  }
44
44
  }
@@ -47,7 +47,7 @@ class KeyContainer {
47
47
  const buf = Buffer.from(encryptedBackup, "base64");
48
48
  const data = ECIESDecrypt(Buffer.from(this.backupDecryptionKey, "hex"), buf);
49
49
  return Buffer.from(data.buffer).toString("ucs2");
50
- } catch (error) {
50
+ } catch (e) {
51
51
  throw Error("Error decrypting backup");
52
52
  }
53
53
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __async
3
- } from "../chunk-W5CT3TVS.js";
3
+ } from "../chunk-7B52C2XE.js";
4
4
  class EnclaveClient {
5
5
  constructor({
6
6
  userManagementClient,
@@ -36,7 +36,7 @@ class EnclaveClient {
36
36
  return __async(this, null, function* () {
37
37
  try {
38
38
  return yield fn();
39
- } catch (error) {
39
+ } catch (e) {
40
40
  yield this.refreshJwt();
41
41
  return yield fn();
42
42
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __async,
3
3
  __spreadValues
4
- } from "../chunk-W5CT3TVS.js";
4
+ } from "../chunk-7B52C2XE.js";
5
5
  import { EncryptorType, KeyShareType } from "@getpara/user-management-client";
6
6
  import { KeyContainer } from "./KeyContainer.js";
7
7
  function sendRecoveryForShare(_0) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __async
3
- } from "../chunk-W5CT3TVS.js";
3
+ } from "../chunk-7B52C2XE.js";
4
4
  import { EncryptorType, KeyShareType } from "@getpara/user-management-client";
5
5
  import { encryptWithDerivedPublicKey } from "../cryptography/utils.js";
6
6
  import { sendRecoveryForShare } from "./recovery.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __async
3
- } from "../chunk-W5CT3TVS.js";
3
+ } from "../chunk-7B52C2XE.js";
4
4
  import { Encrypt as ECIESEncrypt, Decrypt as ECIESDecrypt } from "@celo/utils/lib/ecies.js";
5
5
  import { Buffer } from "buffer";
6
6
  import * as eutil from "@ethereumjs/util";
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  var AccountLinkError = /* @__PURE__ */ ((AccountLinkError2) => {
3
3
  AccountLinkError2["NotAuthenticated"] = "No user is currently authenticated";
4
4
  AccountLinkError2["Conflict"] = "Account already linked";
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  var Environment = /* @__PURE__ */ ((Environment2) => {
3
3
  Environment2["DEV"] = "DEV";
4
4
  Environment2["SANDBOX"] = "SANDBOX";
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  const PARA_CORE_METHODS = [
3
3
  "getAuthInfo",
4
4
  "signUpOrLogIn",
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  const EVENT_PREFIX = "para";
3
3
  var ParaEvent = ((ParaEvent2) => {
4
4
  ParaEvent2["LOGIN_EVENT"] = `${EVENT_PREFIX}Login`;
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  var PopupType = /* @__PURE__ */ ((PopupType2) => {
3
3
  PopupType2["SIGN_TRANSACTION_REVIEW"] = "SIGN_TRANSACTION_REVIEW";
4
4
  PopupType2["SIGN_MESSAGE_REVIEW"] = "SIGN_MESSAGE_REVIEW";
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  var PregenIdentifierType = /* @__PURE__ */ ((PregenIdentifierType2) => {
3
3
  PregenIdentifierType2["EMAIL"] = "EMAIL";
4
4
  PregenIdentifierType2["PHONE"] = "PHONE";
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  function autoBind(instance) {
3
3
  let proto = instance;
4
4
  while (proto && proto !== Object.prototype) {
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  import { NETWORKS } from "@getpara/user-management-client";
3
3
  function validateBalancesConfig(obj) {
4
4
  if (!obj || typeof obj !== "object") {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __spreadValues
3
- } from "../chunk-W5CT3TVS.js";
3
+ } from "../chunk-7B52C2XE.js";
4
4
  function dispatchEvent(type, data, error) {
5
5
  typeof window !== "undefined" && !!window.dispatchEvent && window.dispatchEvent(
6
6
  new CustomEvent(type, { detail: __spreadValues({ data }, error && { error: new Error(error) }) })
@@ -1,6 +1,4 @@
1
- import {
2
- __pow
3
- } from "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
4
2
  import { toBech32 } from "@cosmjs/encoding";
5
3
  import { sha256 } from "@noble/hashes/sha256";
6
4
  import { ripemd160 } from "@noble/hashes/ripemd160";
@@ -65,48 +63,9 @@ function truncateAddress(str, addressType, {
65
63
  const margin = targetLength !== void 0 ? (targetLength - minimum) / 2 : 4;
66
64
  return `${str.slice(0, minimum + margin)}...${str.slice(-1 * margin)}`;
67
65
  }
68
- function formatCurrency(value, { fallback = "" } = {}) {
69
- if (!value) {
70
- return fallback;
71
- }
72
- const formatter = new Intl.NumberFormat("en-US", {
73
- style: "currency",
74
- currency: value.currency
75
- });
76
- const zeroFormatter = new Intl.NumberFormat("en-US", {
77
- style: "currency",
78
- currency: value.currency,
79
- maximumFractionDigits: 0
80
- });
81
- return Math.abs(value.value) < 0.01 ? zeroFormatter.format(0) : formatter.format(value.value);
82
- }
83
- const zeroAssetFormatter = new Intl.NumberFormat("en-US", {
84
- style: "decimal",
85
- maximumFractionDigits: 0,
86
- minimumFractionDigits: 0
87
- });
88
- function formatAssetQuantity({
89
- quantity,
90
- symbol = "",
91
- decimals,
92
- fallback = ""
93
- }) {
94
- if (quantity == null) {
95
- return fallback;
96
- }
97
- const formatter = new Intl.NumberFormat("en-US", {
98
- style: "decimal",
99
- maximumFractionDigits: decimals != null ? decimals : Math.abs(quantity) < 1e-3 ? 6 : 3,
100
- minimumFractionDigits: decimals != null ? decimals : 3
101
- });
102
- const formattedQuantity = quantity === 0 ? "0" : Math.abs(quantity) < __pow(10, -1 * (decimals != null ? decimals : 6)) ? zeroAssetFormatter.format(0) : formatter.format(quantity);
103
- return `${formattedQuantity}${symbol && symbol.length > 0 ? ` ${symbol}` : ""}`;
104
- }
105
66
  export {
106
67
  compressPubkey,
107
68
  decimalToHex,
108
- formatAssetQuantity,
109
- formatCurrency,
110
69
  getCosmosAddress,
111
70
  hexStringToBase64,
112
71
  hexToDecimal,
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  function jsonParse(data, validate) {
3
3
  try {
4
4
  const res = JSON.parse(data);
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  import * as constants from "../constants.js";
3
3
  function storageListener(e) {
4
4
  if (!e.url.includes(window.location.origin)) {
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  function toAssetInfoArray(data) {
3
3
  const result = [];
4
4
  Object.keys(data).forEach((walletType) => {
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  import parsePhoneNumberFromString from "libphonenumber-js";
3
3
  function formatPhoneNumber(phone, countryCode, { forDisplay = false } = {}) {
4
4
  phone = phone.toString();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __async
3
- } from "../chunk-W5CT3TVS.js";
3
+ } from "../chunk-7B52C2XE.js";
4
4
  function waitUntilTrue(condition, timeoutMs, intervalMs) {
5
5
  return __async(this, null, function* () {
6
6
  const start = Date.now();
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  function isServerAuthState(obj) {
3
3
  return "stage" in obj;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __async
3
- } from "../chunk-W5CT3TVS.js";
3
+ } from "../chunk-7B52C2XE.js";
4
4
  import { upload } from "../transmission/transmissionUtils.js";
5
5
  import { Environment } from "../types/index.js";
6
6
  function getPortalDomain(env, isE2E) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __spreadProps,
3
3
  __spreadValues
4
- } from "../chunk-W5CT3TVS.js";
4
+ } from "../chunk-7B52C2XE.js";
5
5
  import * as uuid from "uuid";
6
6
  import { formatPhoneNumber } from "./phone.js";
7
7
  const WalletSchemeTypeMap = {
@@ -1,4 +1,4 @@
1
- import "../chunk-W5CT3TVS.js";
1
+ import "../chunk-7B52C2XE.js";
2
2
  import { getPortalBaseURL } from "./url.js";
3
3
  function isPortal(ctx, env) {
4
4
  var _a, _b;
@@ -1,5 +1,5 @@
1
1
  import { ParaCore } from './ParaCore.js';
2
- export { type Auth, type AuthInfo, type PrimaryAuthInfo, type VerifiedAuthInfo, type VerifiedAuth, AuthMethod, type TAuthMethod, AuthMethodStatus, type AuthExtras, type CurrentWalletIds, EmailTheme, type PartnerEntity, type WalletEntity, Network, type TNetwork, WalletType, type TWalletType, WalletScheme, type TWalletScheme, OnRampAsset, type TOnRampAsset, OnRampPurchaseType, OnRampProvider, OnRampPurchaseStatus, type OnRampConfig, type OnRampAssets, type OnRampPurchase, type OnRampAssetInfo, type ProviderAssetInfo, OnRampMethod, type Theme, OAuthMethod, type TOAuthMethod, type TLinkedAccountType, type SupportedAccountLinks, type SupportedWalletTypes, type TPregenIdentifierType, type PregenIds, type LinkedAccount, type LinkedAccounts, type TExternalWallet, type ExternalWalletInfo, type PregenAuth, type Setup2faResponse, type TelegramAuthResponse, type VerifyExternalWalletParams, type AssetMetadata, type AssetMetadataIndexed, type AssetValue, type BalancesConfig, type WalletBalance, type ProfileBalance, type OfframpDepositRequest, RecoveryStatus, ThemeMode, NON_ED25519, PREGEN_IDENTIFIER_TYPES, WALLET_TYPES, WALLET_SCHEMES, OAUTH_METHODS, LINKED_ACCOUNT_TYPES, EXTERNAL_WALLET_TYPES, EVM_WALLETS, SOLANA_WALLETS, COSMOS_WALLETS, } from '@getpara/user-management-client';
2
+ export { type Auth, type AuthInfo, type PrimaryAuthInfo, type VerifiedAuthInfo, type VerifiedAuth, AuthMethod, type TAuthMethod, AuthMethodStatus, type AuthExtras, type CurrentWalletIds, EmailTheme, type PartnerEntity, type WalletEntity, Network, type TNetwork, WalletType, type TWalletType, WalletScheme, type TWalletScheme, OnRampAsset, type TOnRampAsset, OnRampPurchaseType, OnRampProvider, OnRampPurchaseStatus, type OnRampConfig, type OnRampAssets, type OnRampPurchase, type OnRampAssetInfo, type ProviderAssetInfo, OnRampMethod, type Theme, OAuthMethod, type TOAuthMethod, type TLinkedAccountType, type SupportedAccountLinks, type SupportedWalletTypes, type TPregenIdentifierType, type PregenIds, type LinkedAccount, type LinkedAccounts, type TExternalWallet, type ExternalWalletInfo, type PregenAuth, type Setup2faResponse, type TelegramAuthResponse, type VerifyExternalWalletParams, type AssetMetadata, type AssetMetadataIndexed, type AssetValue, type BalancesConfig, type WalletBalance, type ProfileBalance, type OfframpDepositRequest, type WalletWithMetadata, RecoveryStatus, ThemeMode, NON_ED25519, PREGEN_IDENTIFIER_TYPES, WALLET_TYPES, WALLET_SCHEMES, OAUTH_METHODS, LINKED_ACCOUNT_TYPES, EXTERNAL_WALLET_TYPES, EVM_WALLETS, SOLANA_WALLETS, COSMOS_WALLETS, formatAssetQuantity, formatCurrency, } from '@getpara/user-management-client';
3
3
  export { PopupType, PregenIdentifierType, type AuthStateSignup, type AuthStateVerify, type AuthStateLogin, type AuthState, type OAuthResponse, type CoreAuthInfo, type SignatureRes, type FullSignatureRes, type SuccessfulSignatureRes, type DeniedSignatureRes, type DeniedSignatureResWithUrl, type Wallet, type AvailableWallet, type GetWalletBalanceParams, type AccountLinkInProgress, AccountLinkError, type InternalInterface, } from './types/index.js';
4
4
  export * from './types/coreApi.js';
5
5
  export * from './types/events.js';
@@ -1,5 +1,5 @@
1
1
  import { IWalletEntity, PartnerEntity, TPregenIdentifierType, TWalletScheme, TWalletType } from '@getpara/user-management-client';
2
- export interface Wallet extends Omit<IWalletEntity, 'createdAt' | 'updatedAt' | 'lastUsedAt' | 'scheme' | 'type' | 'userId' | 'keyGenComplete'> {
2
+ export interface Wallet extends Omit<IWalletEntity, 'createdAt' | 'updatedAt' | 'lastUsedAt' | 'scheme' | 'type' | 'userId' | 'keyGenComplete' | 'sharesPersisted'> {
3
3
  createdAt?: string;
4
4
  id: string;
5
5
  name?: string;
@@ -1,4 +1,4 @@
1
- import { AssetValue, TWalletType } from '@getpara/user-management-client';
1
+ import { TWalletType } from '@getpara/user-management-client';
2
2
  export type Hex = `0x${string}`;
3
3
  export interface Signature {
4
4
  r: Hex;
@@ -17,12 +17,3 @@ export declare function truncateAddress(str: string, addressType: TWalletType, {
17
17
  prefix?: string;
18
18
  targetLength?: number;
19
19
  }): string;
20
- export declare function formatCurrency(value?: AssetValue, { fallback }?: {
21
- fallback?: string;
22
- }): string;
23
- export declare function formatAssetQuantity({ quantity, symbol, decimals, fallback, }: {
24
- quantity?: number;
25
- symbol?: string;
26
- decimals?: number;
27
- fallback?: string;
28
- }): string;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@getpara/core-sdk",
3
- "version": "2.0.0-alpha.69",
3
+ "version": "2.0.0-alpha.70",
4
4
  "dependencies": {
5
5
  "@celo/utils": "^8.0.2",
6
6
  "@cosmjs/encoding": "^0.32.4",
7
7
  "@ethereumjs/util": "^9.1.0",
8
- "@getpara/user-management-client": "2.0.0-alpha.69",
8
+ "@getpara/user-management-client": "2.0.0-alpha.70",
9
9
  "@noble/hashes": "^1.5.0",
10
10
  "base64url": "^3.0.1",
11
11
  "libphonenumber-js": "^1.11.7",
@@ -27,7 +27,7 @@
27
27
  "dist",
28
28
  "package.json"
29
29
  ],
30
- "gitHead": "956310e0ff58cc8e2736625d221245ab68304855",
30
+ "gitHead": "99d44cff3c68c07dc1cd8c2709b6ca4cd57dca61",
31
31
  "main": "dist/cjs/index.js",
32
32
  "module": "dist/esm/index.js",
33
33
  "scripts": {