@streamflow/common 6.4.2 → 6.4.3

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.
@@ -35,6 +35,31 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
35
35
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
36
  }
37
37
  };
38
+ var __read = (this && this.__read) || function (o, n) {
39
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
40
+ if (!m) return o;
41
+ var i = m.call(o), r, ar = [], e;
42
+ try {
43
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
44
+ }
45
+ catch (error) { e = { error: error }; }
46
+ finally {
47
+ try {
48
+ if (r && !r.done && (m = i["return"])) m.call(i);
49
+ }
50
+ finally { if (e) throw e.error; }
51
+ }
52
+ return ar;
53
+ };
54
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
55
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
56
+ if (ar || !(i in from)) {
57
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
58
+ ar[i] = from[i];
59
+ }
60
+ }
61
+ return to.concat(ar || Array.prototype.slice.call(from));
62
+ };
38
63
  var __values = (this && this.__values) || function(o) {
39
64
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
40
65
  if (m) return m.call(o);
@@ -72,17 +97,23 @@ exports.buildSendThrottler = buildSendThrottler;
72
97
  */
73
98
  function getProgramAccounts(connection, wallet, offset, programId) {
74
99
  return __awaiter(this, void 0, void 0, function () {
100
+ var programAccounts;
75
101
  return __generator(this, function (_a) {
76
- return [2 /*return*/, connection === null || connection === void 0 ? void 0 : connection.getProgramAccounts(programId, {
77
- filters: [
78
- {
79
- memcmp: {
80
- offset: offset,
81
- bytes: wallet.toBase58(),
102
+ switch (_a.label) {
103
+ case 0: return [4 /*yield*/, (connection === null || connection === void 0 ? void 0 : connection.getProgramAccounts(programId, {
104
+ filters: [
105
+ {
106
+ memcmp: {
107
+ offset: offset,
108
+ bytes: wallet.toBase58(),
109
+ },
82
110
  },
83
- },
84
- ],
85
- })];
111
+ ],
112
+ }))];
113
+ case 1:
114
+ programAccounts = _a.sent();
115
+ return [2 /*return*/, __spreadArray([], __read(programAccounts), false)];
116
+ }
86
117
  });
87
118
  });
88
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/common",
3
- "version": "6.4.2",
3
+ "version": "6.4.3",
4
4
  "description": "Common utilities and types used by streamflow packages.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "lint-config": "eslint --print-config",
24
24
  "prepublishOnly": "npm run lint && npm run build"
25
25
  },
26
- "gitHead": "1c317073936ec2e6da6dee0d5a33cdb1e50f6776",
26
+ "gitHead": "234546ef34a41540e93b05fb20e1675582e9c0c3",
27
27
  "devDependencies": {
28
28
  "@streamflow/eslint-config": "6.4.2",
29
29
  "@types/bn.js": "5.1.1",
@@ -34,12 +34,12 @@
34
34
  "typescript": "^4.9.5"
35
35
  },
36
36
  "dependencies": {
37
- "@coral-xyz/borsh": "^0.29.0",
37
+ "@coral-xyz/borsh": "0.30.1",
38
38
  "@solana/buffer-layout": "4.0.1 ",
39
39
  "@solana/spl-token": "0.3.6",
40
40
  "@solana/wallet-adapter-base": "0.9.19",
41
- "@solana/web3.js": "1.70.1",
42
- "aptos": "1.4.0",
41
+ "@solana/web3.js": "1.90.2",
42
+ "aptos": "1.21.0",
43
43
  "bn.js": "5.2.1",
44
44
  "borsh": "^2.0.0",
45
45
  "bs58": "5.0.0",