@streamflow/stream 5.9.6 → 5.9.9
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/common/types.js
CHANGED
|
@@ -150,13 +150,10 @@ var ContractError = /** @class */ (function (_super) {
|
|
|
150
150
|
*/
|
|
151
151
|
function ContractError(error, code) {
|
|
152
152
|
var _this = _super.call(this, error.message) || this;
|
|
153
|
-
_this.name = "ContractError"; // Set the name property
|
|
154
153
|
_this.contractErrorCode = code !== null && code !== void 0 ? code : null;
|
|
155
154
|
// Copy properties from the original error
|
|
156
|
-
Object.
|
|
157
|
-
|
|
158
|
-
});
|
|
159
|
-
// If you want to capture the stack trace:
|
|
155
|
+
Object.setPrototypeOf(_this, ContractError.prototype);
|
|
156
|
+
_this.name = "ContractError"; // Set the name property
|
|
160
157
|
_this.stack = error.stack;
|
|
161
158
|
return _this;
|
|
162
159
|
}
|
|
@@ -1036,10 +1036,10 @@ var SolanaStreamClient = /** @class */ (function (_super) {
|
|
|
1036
1036
|
[data.partner, data.partnerTokens],
|
|
1037
1037
|
[data.streamflowTreasury, data.streamflowTreasuryTokens],
|
|
1038
1038
|
].filter(function (value) {
|
|
1039
|
-
if (checkedKeys.has(value[1])) {
|
|
1039
|
+
if (checkedKeys.has(value[1].toBase58())) {
|
|
1040
1040
|
return false;
|
|
1041
1041
|
}
|
|
1042
|
-
checkedKeys.add(value[1]);
|
|
1042
|
+
checkedKeys.add(value[1].toBase58());
|
|
1043
1043
|
return true;
|
|
1044
1044
|
});
|
|
1045
1045
|
return [4 /*yield*/, this.connection.getMultipleAccountsInfo(accountArrays.map(function (item) { return item[1]; }))];
|
|
@@ -1050,7 +1050,7 @@ var SolanaStreamClient = /** @class */ (function (_super) {
|
|
|
1050
1050
|
ixs.push((0, spl_token_2.createAssociatedTokenAccountInstruction)(invoker.publicKey, accountArrays[i][1], accountArrays[i][0], data.mint, spl_token_1.TOKEN_PROGRAM_ID, spl_token_1.ASSOCIATED_TOKEN_PROGRAM_ID));
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
|
|
1053
|
+
throw new Error();
|
|
1054
1054
|
}
|
|
1055
1055
|
});
|
|
1056
1056
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamflow/stream",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.9",
|
|
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": "91defc21be5d64444f111e638c4fab1daab25def",
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/bn.js": "5.1.1",
|
|
17
17
|
"@types/ethereum-checksum-address": "^0.0.0",
|