@getpara/server-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.
- package/dist/esm/workers/walletUtils.js +10 -10
- package/package.json +4 -4
|
@@ -46,7 +46,7 @@ async function ed25519Keygen(ctx, userId) {
|
|
|
46
46
|
})
|
|
47
47
|
);
|
|
48
48
|
return { signer: newSigner, walletId };
|
|
49
|
-
} catch
|
|
49
|
+
} catch {
|
|
50
50
|
throw new Error(`error creating account of type SOLANA with userId ${userId} and walletId ${walletId}`);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -68,7 +68,7 @@ async function ed25519PreKeygen(ctx, pregenIdentifier, pregenIdentifierType) {
|
|
|
68
68
|
})
|
|
69
69
|
);
|
|
70
70
|
return { signer: newSigner, walletId };
|
|
71
|
-
} catch
|
|
71
|
+
} catch {
|
|
72
72
|
throw new Error(`error creating account of type SOLANA with walletId ${walletId}`);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -86,7 +86,7 @@ async function ed25519Sign(ctx, share, userId, walletId, base64Bytes) {
|
|
|
86
86
|
})
|
|
87
87
|
);
|
|
88
88
|
return { signature: base64Sig };
|
|
89
|
-
} catch
|
|
89
|
+
} catch {
|
|
90
90
|
throw new Error(`error signing for account of type SOLANA with userId ${userId} and walletId ${walletId}`);
|
|
91
91
|
}
|
|
92
92
|
}();
|
|
@@ -131,7 +131,7 @@ async function keygen(ctx, userId, type, secretKey) {
|
|
|
131
131
|
)
|
|
132
132
|
);
|
|
133
133
|
return { signer: newSigner, walletId };
|
|
134
|
-
} catch
|
|
134
|
+
} catch {
|
|
135
135
|
throw new Error(`error creating account of type ${type} with userId ${userId} and walletId ${walletId}`);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
@@ -170,7 +170,7 @@ async function preKeygen(ctx, partnerId, pregenIdentifier, pregenIdentifierType,
|
|
|
170
170
|
)
|
|
171
171
|
);
|
|
172
172
|
return { signer: newSigner, walletId };
|
|
173
|
-
} catch
|
|
173
|
+
} catch {
|
|
174
174
|
throw new Error(`error creating account of type ${type} with walletId ${walletId}`);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -192,7 +192,7 @@ async function signMessage(ctx, share, walletId, userId, message) {
|
|
|
192
192
|
resolve({ signature: result });
|
|
193
193
|
})
|
|
194
194
|
);
|
|
195
|
-
} catch
|
|
195
|
+
} catch {
|
|
196
196
|
throw new Error(`error signing for account with userId ${userId} and walletId ${walletId}`);
|
|
197
197
|
}
|
|
198
198
|
}();
|
|
@@ -220,7 +220,7 @@ async function signTransaction(ctx, share, walletId, userId, tx, chainId) {
|
|
|
220
220
|
resolve({ signature: result });
|
|
221
221
|
})
|
|
222
222
|
);
|
|
223
|
-
} catch
|
|
223
|
+
} catch {
|
|
224
224
|
throw new Error(`error signing transaction for account with userId ${userId} and walletId ${walletId}`);
|
|
225
225
|
}
|
|
226
226
|
}();
|
|
@@ -250,7 +250,7 @@ async function sendTransaction(ctx, share, walletId, userId, tx, chainId) {
|
|
|
250
250
|
resolve({ signature: result });
|
|
251
251
|
})
|
|
252
252
|
);
|
|
253
|
-
} catch
|
|
253
|
+
} catch {
|
|
254
254
|
throw new Error(`error signing transaction to send for account with userId ${userId} and walletId ${walletId}`);
|
|
255
255
|
}
|
|
256
256
|
}();
|
|
@@ -277,7 +277,7 @@ async function refresh(ctx, share, walletId, userId) {
|
|
|
277
277
|
resolve(result);
|
|
278
278
|
})
|
|
279
279
|
);
|
|
280
|
-
} catch
|
|
280
|
+
} catch {
|
|
281
281
|
throw new Error(`error refreshing keys for account with userId ${userId} and walletId ${walletId}`);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
@@ -296,7 +296,7 @@ async function getPrivateKey(ctx, share, walletId, userId) {
|
|
|
296
296
|
resolve(result);
|
|
297
297
|
})
|
|
298
298
|
);
|
|
299
|
-
} catch
|
|
299
|
+
} catch {
|
|
300
300
|
throw new Error(`error getting private key for account with userId ${userId} and walletId ${walletId}`);
|
|
301
301
|
}
|
|
302
302
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/server-sdk",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.70",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/core-sdk": "2.0.0-alpha.
|
|
6
|
-
"@getpara/user-management-client": "2.0.0-alpha.
|
|
5
|
+
"@getpara/core-sdk": "2.0.0-alpha.70",
|
|
6
|
+
"@getpara/user-management-client": "2.0.0-alpha.70",
|
|
7
7
|
"uuid": "^11.1.0",
|
|
8
8
|
"ws": "^8.14.2"
|
|
9
9
|
},
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dist",
|
|
16
16
|
"package.json"
|
|
17
17
|
],
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "99d44cff3c68c07dc1cd8c2709b6ca4cd57dca61",
|
|
19
19
|
"main": "dist/cjs/index.js",
|
|
20
20
|
"module": "dist/esm/index.js",
|
|
21
21
|
"scripts": {
|