@getpara/core-sdk 3.7.0 → 3.8.0
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/cjs/constants.js
CHANGED
|
@@ -46,7 +46,7 @@ __export(constants_exports, {
|
|
|
46
46
|
TRANSACTION_REVIEW_TIMEOUT_MS: () => TRANSACTION_REVIEW_TIMEOUT_MS
|
|
47
47
|
});
|
|
48
48
|
module.exports = __toCommonJS(constants_exports);
|
|
49
|
-
const PARA_CORE_VERSION = "3.
|
|
49
|
+
const PARA_CORE_VERSION = "3.8.0";
|
|
50
50
|
const PREFIX = "@CAPSULE/";
|
|
51
51
|
const PARA_PREFIX = "@PARA/";
|
|
52
52
|
const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
|
|
@@ -129,7 +129,18 @@ class PregenWalletService {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
const { supportedWalletTypes } = yield __privateGet(this, _paraCoreInterface).assertPartner();
|
|
132
|
-
|
|
132
|
+
let pregenWallets = yield this.getPregenWallets();
|
|
133
|
+
if (pregenWallets.length === 0 && __privateGet(this, _authService).userId) {
|
|
134
|
+
try {
|
|
135
|
+
const res = yield __privateGet(this, _paraCoreInterface).ctx.client.getPregenWallets(
|
|
136
|
+
{},
|
|
137
|
+
__privateGet(this, _paraCoreInterface).isPortal(),
|
|
138
|
+
__privateGet(this, _authService).userId
|
|
139
|
+
);
|
|
140
|
+
pregenWallets = res.wallets.filter((w) => __privateGet(this, _walletService).isWalletSupported((0, import_wallet2.entityToWallet)(w)));
|
|
141
|
+
} catch (e) {
|
|
142
|
+
}
|
|
143
|
+
}
|
|
133
144
|
let recoverySecret;
|
|
134
145
|
let walletIds = {};
|
|
135
146
|
if (pregenWallets.length > 0) {
|
package/dist/esm/constants.js
CHANGED
|
@@ -81,7 +81,18 @@ class PregenWalletService {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
const { supportedWalletTypes } = yield __privateGet(this, _paraCoreInterface).assertPartner();
|
|
84
|
-
|
|
84
|
+
let pregenWallets = yield this.getPregenWallets();
|
|
85
|
+
if (pregenWallets.length === 0 && __privateGet(this, _authService).userId) {
|
|
86
|
+
try {
|
|
87
|
+
const res = yield __privateGet(this, _paraCoreInterface).ctx.client.getPregenWallets(
|
|
88
|
+
{},
|
|
89
|
+
__privateGet(this, _paraCoreInterface).isPortal(),
|
|
90
|
+
__privateGet(this, _authService).userId
|
|
91
|
+
);
|
|
92
|
+
pregenWallets = res.wallets.filter((w) => __privateGet(this, _walletService).isWalletSupported(entityToWallet(w)));
|
|
93
|
+
} catch (e) {
|
|
94
|
+
}
|
|
95
|
+
}
|
|
85
96
|
let recoverySecret;
|
|
86
97
|
let walletIds = {};
|
|
87
98
|
if (pregenWallets.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/core-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
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": "3.
|
|
8
|
+
"@getpara/user-management-client": "3.8.0",
|
|
9
9
|
"@noble/hashes": "^1.5.0",
|
|
10
10
|
"@opentelemetry/api": "^1.9.1",
|
|
11
11
|
"@opentelemetry/context-zone": "^2.9.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dist",
|
|
42
42
|
"package.json"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "fc722e9eaa7a9cae9fd631b748fe70fab24d7956",
|
|
45
45
|
"main": "dist/cjs/index.js",
|
|
46
46
|
"module": "dist/esm/index.js",
|
|
47
47
|
"scripts": {
|