@streamflow/stream 5.6.4-alpha.0 → 5.6.4
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/solana/utils.js +7 -17
- package/package.json +2 -2
package/dist/solana/utils.js
CHANGED
|
@@ -218,9 +218,9 @@ function isSignerKeypair(walletOrKeypair) {
|
|
|
218
218
|
*/
|
|
219
219
|
function signAllTransactionWithRecipients(sender, items) {
|
|
220
220
|
return __awaiter(this, void 0, void 0, function () {
|
|
221
|
-
var isKeypair, isWallet, signedTxs_1
|
|
222
|
-
return __generator(this, function (
|
|
223
|
-
switch (
|
|
221
|
+
var isKeypair, isWallet, signedTxs_1;
|
|
222
|
+
return __generator(this, function (_a) {
|
|
223
|
+
switch (_a.label) {
|
|
224
224
|
case 0:
|
|
225
225
|
isKeypair = isSignerKeypair(sender);
|
|
226
226
|
isWallet = isSignerWallet(sender);
|
|
@@ -230,22 +230,12 @@ function signAllTransactionWithRecipients(sender, items) {
|
|
|
230
230
|
return { tx: t.tx, recipient: t.recipient };
|
|
231
231
|
})];
|
|
232
232
|
case 1:
|
|
233
|
-
if (!isWallet) return [3 /*break*/,
|
|
234
|
-
|
|
235
|
-
return [4 /*yield*/, Promise.all(items.map(function (t) {
|
|
236
|
-
return sender.signTransaction(t.tx);
|
|
237
|
-
}))];
|
|
233
|
+
if (!isWallet) return [3 /*break*/, 3];
|
|
234
|
+
return [4 /*yield*/, sender.signAllTransactions(items.map(function (t) { return t.tx; }))];
|
|
238
235
|
case 2:
|
|
239
|
-
|
|
240
|
-
return [3 /*break*/, 5];
|
|
241
|
-
case 3: return [4 /*yield*/, sender.signAllTransactions(items.map(function (t) { return t.tx; }))];
|
|
242
|
-
case 4:
|
|
243
|
-
_a = _b.sent();
|
|
244
|
-
_b.label = 5;
|
|
245
|
-
case 5:
|
|
246
|
-
signedTxs_1 = _a;
|
|
236
|
+
signedTxs_1 = _a.sent();
|
|
247
237
|
return [2 /*return*/, items.map(function (item, index) { return (__assign(__assign({}, item), { tx: signedTxs_1[index] })); })];
|
|
248
|
-
case
|
|
238
|
+
case 3:
|
|
249
239
|
// If signer is not passed
|
|
250
240
|
return [2 /*return*/, []];
|
|
251
241
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamflow/stream",
|
|
3
|
-
"version": "5.6.4
|
|
3
|
+
"version": "5.6.4",
|
|
4
4
|
"description": "JavaScript SDK to interact with Streamflow protocol.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"homepage": "https://github.com/streamflow-finance/js-sdk/",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"lint": "eslint .",
|
|
12
12
|
"prepublishOnly": "npm run lint && npm test && npm run build"
|
|
13
13
|
},
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "d0969533b82c8a08f9efd66dcf4ef4f65fd25725",
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/bn.js": "5.1.1",
|
|
17
17
|
"@types/ethereum-checksum-address": "^0.0.0",
|