@getpara/web-sdk 3.0.0 → 3.1.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/workers/walletUtils.js +14 -4
- package/package.json +4 -4
|
@@ -193,7 +193,7 @@ function preKeygen(ctx, _partnerId, pregenIdentifier, pregenIdentifierType, type
|
|
|
193
193
|
function signMessage(ctx, share, walletId, userId, message, cosmosSignDoc) {
|
|
194
194
|
return __async(this, null, function* () {
|
|
195
195
|
const protocolId = uuid.v4();
|
|
196
|
-
const preSignMessageRes = ctx.client.preSignMessage(userId, walletId, message, null, cosmosSignDoc, protocolId);
|
|
196
|
+
const preSignMessageRes = ctx.client.preSignMessage(userId, walletId, message, null, cosmosSignDoc, protocolId, true);
|
|
197
197
|
if (ctx.offloadMPCComputationURL && !ctx.useDKLS) {
|
|
198
198
|
return signMessageRequest(ctx, userId, walletId, protocolId, message, share);
|
|
199
199
|
}
|
|
@@ -232,7 +232,12 @@ function signMessage(ctx, share, walletId, userId, message, cosmosSignDoc) {
|
|
|
232
232
|
function signTransaction(ctx, share, walletId, userId, tx, chainId) {
|
|
233
233
|
return __async(this, null, function* () {
|
|
234
234
|
const protocolId = uuid.v4();
|
|
235
|
-
const signTransactionRes = ctx.client.signTransaction(userId, walletId, {
|
|
235
|
+
const signTransactionRes = ctx.client.signTransaction(userId, walletId, {
|
|
236
|
+
transaction: tx,
|
|
237
|
+
chainId,
|
|
238
|
+
protocolId,
|
|
239
|
+
useNewOT: true
|
|
240
|
+
});
|
|
236
241
|
if (ctx.offloadMPCComputationURL && !ctx.useDKLS) {
|
|
237
242
|
return sendTransactionRequest(ctx, userId, walletId, protocolId, tx, share, chainId);
|
|
238
243
|
}
|
|
@@ -273,7 +278,12 @@ function signTransaction(ctx, share, walletId, userId, tx, chainId) {
|
|
|
273
278
|
function sendTransaction(ctx, share, walletId, userId, tx, chainId) {
|
|
274
279
|
return __async(this, null, function* () {
|
|
275
280
|
const protocolId = uuid.v4();
|
|
276
|
-
const sendTransactionRes = ctx.client.sendTransaction(userId, walletId, {
|
|
281
|
+
const sendTransactionRes = ctx.client.sendTransaction(userId, walletId, {
|
|
282
|
+
transaction: tx,
|
|
283
|
+
chainId,
|
|
284
|
+
protocolId,
|
|
285
|
+
useNewOT: true
|
|
286
|
+
});
|
|
277
287
|
if (ctx.offloadMPCComputationURL && !ctx.useDKLS) {
|
|
278
288
|
return sendTransactionRequest(ctx, userId, walletId, protocolId, tx, share, chainId);
|
|
279
289
|
}
|
|
@@ -315,7 +325,7 @@ function refresh(ctx, share, walletId, userId, oldPartnerId, newPartnerId, keySh
|
|
|
315
325
|
return __async(this, null, function* () {
|
|
316
326
|
const {
|
|
317
327
|
data: { protocolId }
|
|
318
|
-
} = yield ctx.client.refreshKeys(userId, walletId, oldPartnerId, newPartnerId, keyShareProtocolId);
|
|
328
|
+
} = yield ctx.client.refreshKeys(userId, walletId, oldPartnerId, newPartnerId, keyShareProtocolId, true);
|
|
319
329
|
const serverUrl = getBaseMPCNetworkUrl(ctx.env, !ctx.disableWebSockets);
|
|
320
330
|
const refreshFn = ctx.useDKLS ? globalThis.dklsRefresh : globalThis.refresh;
|
|
321
331
|
const parsedShare = JSON.parse(share);
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/web-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/core-sdk": "3.
|
|
6
|
-
"@getpara/user-management-client": "3.
|
|
5
|
+
"@getpara/core-sdk": "3.1.0",
|
|
6
|
+
"@getpara/user-management-client": "3.1.0",
|
|
7
7
|
"@opentelemetry/api": "^1.9.1",
|
|
8
8
|
"base64url": "^3.0.1",
|
|
9
9
|
"buffer": "6.0.3",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dist",
|
|
31
31
|
"package.json"
|
|
32
32
|
],
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "e73f17cd7960fdfe62ff68a972b3461e47b21eb0",
|
|
34
34
|
"main": "dist/index.js",
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs && yarn post-build",
|