@streamflow/stream 7.3.0 → 7.3.2
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.
|
@@ -57,10 +57,16 @@ class SuiStreamClient extends BaseStreamClient_js_1.BaseStreamClient {
|
|
|
57
57
|
const metadataToRecipient = {};
|
|
58
58
|
const errors = [];
|
|
59
59
|
try {
|
|
60
|
-
const
|
|
60
|
+
const executedTx = await wallet.signAndExecuteTransaction({
|
|
61
61
|
transaction: tx,
|
|
62
62
|
options: { showEffects: true, showEvents: true },
|
|
63
63
|
});
|
|
64
|
+
const digest = executedTx.digest;
|
|
65
|
+
// effects may be string according to Sui Wallet standard, events won't even be returned
|
|
66
|
+
// https://github.com/MystenLabs/ts-sdks/blob/main/packages/wallet-standard/src/features/suiSignAndExecuteTransaction.ts#L34
|
|
67
|
+
const { events, effects } = !executedTx.effects || typeof executedTx.effects === "string"
|
|
68
|
+
? await this.client.getTransactionBlock({ digest, options: { showEvents: true, showEffects: true } })
|
|
69
|
+
: executedTx;
|
|
64
70
|
txs.push(digest);
|
|
65
71
|
if (effects.status.status === "failure") {
|
|
66
72
|
multipleStreamData.recipients.forEach((recipient) => {
|
|
@@ -59,10 +59,16 @@ export default class SuiStreamClient extends BaseStreamClient {
|
|
|
59
59
|
const metadataToRecipient = {};
|
|
60
60
|
const errors = [];
|
|
61
61
|
try {
|
|
62
|
-
const
|
|
62
|
+
const executedTx = await wallet.signAndExecuteTransaction({
|
|
63
63
|
transaction: tx,
|
|
64
64
|
options: { showEffects: true, showEvents: true },
|
|
65
65
|
});
|
|
66
|
+
const digest = executedTx.digest;
|
|
67
|
+
// effects may be string according to Sui Wallet standard, events won't even be returned
|
|
68
|
+
// https://github.com/MystenLabs/ts-sdks/blob/main/packages/wallet-standard/src/features/suiSignAndExecuteTransaction.ts#L34
|
|
69
|
+
const { events, effects } = !executedTx.effects || typeof executedTx.effects === "string"
|
|
70
|
+
? await this.client.getTransactionBlock({ digest, options: { showEvents: true, showEffects: true } })
|
|
71
|
+
: executedTx;
|
|
66
72
|
txs.push(digest);
|
|
67
73
|
if (effects.status.status === "failure") {
|
|
68
74
|
multipleStreamData.recipients.forEach((recipient) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamflow/stream",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.2",
|
|
4
4
|
"description": "JavaScript SDK to interact with Streamflow protocol.",
|
|
5
5
|
"homepage": "https://github.com/streamflow-finance/js-sdk/",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"lint": "eslint --fix .",
|
|
43
43
|
"prepublishOnly": "pnpm run lint && pnpm run test run && pnpm run build"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "f124c062b751ea955dc18caeb1ccee5e6e7b0301",
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@streamflow/eslint-config": "7.3.
|
|
47
|
+
"@streamflow/eslint-config": "7.3.2",
|
|
48
48
|
"@types/bn.js": "5.1.1",
|
|
49
49
|
"@types/ethereum-checksum-address": "^0.0.0",
|
|
50
50
|
"date-fns": "2.28.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@solana/spl-token": "0.4.9",
|
|
60
60
|
"@solana/wallet-adapter-base": "0.9.19",
|
|
61
61
|
"@solana/web3.js": "1.95.4",
|
|
62
|
-
"@streamflow/common": "7.3.
|
|
62
|
+
"@streamflow/common": "7.3.2",
|
|
63
63
|
"@suiet/wallet-kit": "^0.3.3",
|
|
64
64
|
"aptos": "1.21.0",
|
|
65
65
|
"bn.js": "5.2.1",
|