@getpara/server-sdk 2.0.0-alpha.27 → 2.0.0-alpha.29
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.
|
@@ -163,7 +163,10 @@ function ed25519Sign(ctx, share, userId, walletId, base64Bytes) {
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
}();
|
|
166
|
-
yield preSignMessageRes;
|
|
166
|
+
const { pendingTransactionId } = yield preSignMessageRes;
|
|
167
|
+
if (pendingTransactionId) {
|
|
168
|
+
return { pendingTransactionId };
|
|
169
|
+
}
|
|
167
170
|
return yield signRes;
|
|
168
171
|
});
|
|
169
172
|
}
|
|
@@ -90,7 +90,10 @@ async function ed25519Sign(ctx, share, userId, walletId, base64Bytes) {
|
|
|
90
90
|
throw new Error(`error signing for account of type SOLANA with userId ${userId} and walletId ${walletId}`);
|
|
91
91
|
}
|
|
92
92
|
}();
|
|
93
|
-
await preSignMessageRes;
|
|
93
|
+
const { pendingTransactionId } = await preSignMessageRes;
|
|
94
|
+
if (pendingTransactionId) {
|
|
95
|
+
return { pendingTransactionId };
|
|
96
|
+
}
|
|
94
97
|
return await signRes;
|
|
95
98
|
}
|
|
96
99
|
async function keygen(ctx, userId, type, secretKey) {
|
|
@@ -7,9 +7,7 @@ export declare function ed25519PreKeygen(ctx: Ctx, pregenIdentifier: string, pre
|
|
|
7
7
|
signer: string;
|
|
8
8
|
walletId: string;
|
|
9
9
|
}>;
|
|
10
|
-
export declare function ed25519Sign(ctx: Ctx, share: string, userId: string, walletId: string, base64Bytes: string): Promise<
|
|
11
|
-
signature: string;
|
|
12
|
-
}>;
|
|
10
|
+
export declare function ed25519Sign(ctx: Ctx, share: string, userId: string, walletId: string, base64Bytes: string): Promise<SignatureRes>;
|
|
13
11
|
export declare function keygen(ctx: Ctx, userId: string, type: Exclude<TWalletType, 'SOLANA'>, secretKey: string | null): Promise<{
|
|
14
12
|
signer: string;
|
|
15
13
|
walletId: string;
|
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.29",
|
|
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.29",
|
|
6
|
+
"@getpara/user-management-client": "2.0.0-alpha.29",
|
|
7
7
|
"@sentry/node": "^9.1.0",
|
|
8
8
|
"uuid": "^11.1.0",
|
|
9
9
|
"ws": "^8.14.2"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist",
|
|
17
17
|
"package.json"
|
|
18
18
|
],
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "7b90cb5a1a83f9bce9d61bd2baf190c47b58b705",
|
|
20
20
|
"main": "dist/cjs/index.js",
|
|
21
21
|
"module": "dist/esm/index.js",
|
|
22
22
|
"scripts": {
|