@streamflow/distributor 6.3.1 → 6.3.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.
@@ -1,3 +1,4 @@
1
+ import PQueue from "p-queue";
1
2
  import { Commitment, ConnectionConfig } from "@solana/web3.js";
2
3
  import { ICluster, ITransactionResult } from "@streamflow/common";
3
4
  import { IClaimData, IClawbackData, ICreateDistributorData, ICreateDistributorResult, IGetClaimData, IGetDistributors, ICreateSolanaExt, IInteractSolanaExt } from "./types";
@@ -7,19 +8,22 @@ interface IInitOptions {
7
8
  cluster?: ICluster;
8
9
  commitment?: Commitment | ConnectionConfig;
9
10
  programId?: string;
11
+ sendRate?: number;
12
+ sendThrottler?: PQueue;
10
13
  }
11
14
  export default class SolanaDistributorClient {
12
15
  private connection;
13
16
  private programId;
14
17
  private commitment;
18
+ private sendThrottler;
15
19
  /**
16
20
  * Create Stream instance
17
21
  */
18
- constructor({ clusterUrl, cluster, commitment, programId }: IInitOptions);
22
+ constructor({ clusterUrl, cluster, commitment, programId, sendRate, sendThrottler, }: IInitOptions);
19
23
  getCommitment(): Commitment | undefined;
20
- create(data: ICreateDistributorData, { invoker, isNative, computePrice, computeLimit }: ICreateSolanaExt): Promise<ICreateDistributorResult>;
21
- claim(data: IClaimData, { invoker, computePrice, computeLimit }: IInteractSolanaExt): Promise<ITransactionResult>;
22
- clawback(data: IClawbackData, { invoker, computePrice, computeLimit }: IInteractSolanaExt): Promise<ITransactionResult>;
24
+ create(data: ICreateDistributorData, extParams: ICreateSolanaExt): Promise<ICreateDistributorResult>;
25
+ claim(data: IClaimData, extParams: IInteractSolanaExt): Promise<ITransactionResult>;
26
+ clawback(data: IClawbackData, extParams: IInteractSolanaExt): Promise<ITransactionResult>;
23
27
  getClaims(data: IGetClaimData[]): Promise<(ClaimStatus | null)[]>;
24
28
  getDistributors(data: IGetDistributors): Promise<(MerkleDistributor | null)[]>;
25
29
  }
@@ -78,36 +78,36 @@ var SolanaDistributorClient = /** @class */ (function () {
78
78
  * Create Stream instance
79
79
  */
80
80
  function SolanaDistributorClient(_a) {
81
- var clusterUrl = _a.clusterUrl, _b = _a.cluster, cluster = _b === void 0 ? common_1.ICluster.Mainnet : _b, _c = _a.commitment, commitment = _c === void 0 ? "confirmed" : _c, _d = _a.programId, programId = _d === void 0 ? "" : _d;
81
+ var clusterUrl = _a.clusterUrl, _b = _a.cluster, cluster = _b === void 0 ? common_1.ICluster.Mainnet : _b, _c = _a.commitment, commitment = _c === void 0 ? "confirmed" : _c, _d = _a.programId, programId = _d === void 0 ? "" : _d, _e = _a.sendRate, sendRate = _e === void 0 ? 1 : _e, sendThrottler = _a.sendThrottler;
82
82
  this.commitment = commitment;
83
83
  this.connection = new web3_js_1.Connection(clusterUrl, this.commitment);
84
84
  this.programId = programId !== "" ? new web3_js_1.PublicKey(programId) : new web3_js_1.PublicKey(constants_1.DISTRIBUTOR_PROGRAM_ID[cluster]);
85
+ this.sendThrottler = sendThrottler !== null && sendThrottler !== void 0 ? sendThrottler : (0, solana_1.buildSendThrottler)(sendRate);
85
86
  }
86
87
  SolanaDistributorClient.prototype.getCommitment = function () {
87
88
  return typeof this.commitment == "string" ? this.commitment : this.commitment.commitment;
88
89
  };
89
- SolanaDistributorClient.prototype.create = function (data, _a) {
90
- var invoker = _a.invoker, _b = _a.isNative, isNative = _b === void 0 ? false : _b, computePrice = _a.computePrice, computeLimit = _a.computeLimit;
90
+ SolanaDistributorClient.prototype.create = function (data, extParams) {
91
91
  return __awaiter(this, void 0, void 0, function () {
92
- var ixs, mint, _c, mintAccount, tokenProgramId, distributorPublicKey, tokenVault, senderTokens, args, accounts, _d, _e, _f, _g, nowTs, endVestingTs, startVestingTs, _h, tx, hash, context, signature;
93
- return __generator(this, function (_j) {
94
- switch (_j.label) {
92
+ var ixs, mint, _a, mintAccount, tokenProgramId, distributorPublicKey, tokenVault, senderTokens, args, accounts, _b, _c, _d, _e, nowTs, endVestingTs, startVestingTs, _f, tx, hash, context, signature;
93
+ return __generator(this, function (_g) {
94
+ switch (_g.label) {
95
95
  case 0:
96
- if (!invoker.publicKey) {
96
+ if (!extParams.invoker.publicKey) {
97
97
  throw new Error("Invoker's PublicKey is not available, check passed wallet adapter!");
98
98
  }
99
- ixs = (0, solana_1.prepareBaseInstructions)(this.connection, { computePrice: computePrice, computeLimit: computeLimit });
100
- mint = isNative ? spl_token_1.NATIVE_MINT : new web3_js_1.PublicKey(data.mint);
99
+ ixs = (0, solana_1.prepareBaseInstructions)(this.connection, extParams);
100
+ mint = extParams.isNative ? spl_token_1.NATIVE_MINT : new web3_js_1.PublicKey(data.mint);
101
101
  return [4 /*yield*/, (0, solana_1.getMintAndProgram)(this.connection, mint)];
102
102
  case 1:
103
- _c = _j.sent(), mintAccount = _c.mint, tokenProgramId = _c.tokenProgramId;
103
+ _a = _g.sent(), mintAccount = _a.mint, tokenProgramId = _a.tokenProgramId;
104
104
  distributorPublicKey = (0, utils_1.getDistributorPda)(this.programId, mint, data.version);
105
105
  return [4 /*yield*/, (0, solana_1.ata)(mint, distributorPublicKey, tokenProgramId)];
106
106
  case 2:
107
- tokenVault = _j.sent();
108
- return [4 /*yield*/, (0, solana_1.ata)(mint, invoker.publicKey, tokenProgramId)];
107
+ tokenVault = _g.sent();
108
+ return [4 /*yield*/, (0, solana_1.ata)(mint, extParams.invoker.publicKey, tokenProgramId)];
109
109
  case 3:
110
- senderTokens = _j.sent();
110
+ senderTokens = _g.sent();
111
111
  args = {
112
112
  version: new bn_js_1.default(data.version, 10),
113
113
  root: data.root,
@@ -124,19 +124,19 @@ var SolanaDistributorClient = /** @class */ (function () {
124
124
  clawbackReceiver: senderTokens,
125
125
  mint: mint,
126
126
  tokenVault: tokenVault,
127
- admin: invoker.publicKey,
127
+ admin: extParams.invoker.publicKey,
128
128
  systemProgram: web3_js_1.SystemProgram.programId,
129
129
  associatedTokenProgram: spl_token_1.ASSOCIATED_TOKEN_PROGRAM_ID,
130
130
  tokenProgram: tokenProgramId,
131
131
  };
132
- if (!isNative) return [3 /*break*/, 5];
133
- _e = (_d = ixs.push).apply;
134
- _f = [ixs];
135
- _g = [[]];
136
- return [4 /*yield*/, (0, solana_1.prepareWrappedAccount)(this.connection, invoker.publicKey, data.maxTotalClaim)];
132
+ if (!extParams.isNative) return [3 /*break*/, 5];
133
+ _c = (_b = ixs.push).apply;
134
+ _d = [ixs];
135
+ _e = [[]];
136
+ return [4 /*yield*/, (0, solana_1.prepareWrappedAccount)(this.connection, extParams.invoker.publicKey, data.maxTotalClaim)];
137
137
  case 4:
138
- _e.apply(_d, _f.concat([__spreadArray.apply(void 0, _g.concat([__read.apply(void 0, [(_j.sent())]), false]))]));
139
- _j.label = 5;
138
+ _c.apply(_b, _d.concat([__spreadArray.apply(void 0, _e.concat([__read.apply(void 0, [(_g.sent())]), false]))]));
139
+ _g.label = 5;
140
140
  case 5:
141
141
  nowTs = new bn_js_1.default(Math.floor(Date.now() / 1000));
142
142
  endVestingTs = args.endVestingTs.eqn(0) ? nowTs : args.endVestingTs;
@@ -145,17 +145,17 @@ var SolanaDistributorClient = /** @class */ (function () {
145
145
  throw new Error("The unlock period cannot be longer than the total vesting duration!");
146
146
  }
147
147
  ixs.push((0, instructions_1.newDistributor)(args, accounts, this.programId));
148
- ixs.push((0, spl_token_1.createTransferCheckedInstruction)(senderTokens, mint, tokenVault, invoker.publicKey, BigInt(data.maxTotalClaim.toString()), mintAccount.decimals, undefined, tokenProgramId));
149
- return [4 /*yield*/, (0, solana_1.prepareTransaction)(this.connection, ixs, invoker.publicKey)];
148
+ ixs.push((0, spl_token_1.createTransferCheckedInstruction)(senderTokens, mint, tokenVault, extParams.invoker.publicKey, BigInt(data.maxTotalClaim.toString()), mintAccount.decimals, undefined, tokenProgramId));
149
+ return [4 /*yield*/, (0, solana_1.prepareTransaction)(this.connection, ixs, extParams.invoker.publicKey)];
150
150
  case 6:
151
- _h = _j.sent(), tx = _h.tx, hash = _h.hash, context = _h.context;
152
- return [4 /*yield*/, (0, utils_1.wrappedSignAndExecuteTransaction)(this.connection, invoker, tx, {
151
+ _f = _g.sent(), tx = _f.tx, hash = _f.hash, context = _f.context;
152
+ return [4 /*yield*/, (0, utils_1.wrappedSignAndExecuteTransaction)(this.connection, extParams.invoker, tx, {
153
153
  hash: hash,
154
154
  context: context,
155
155
  commitment: this.getCommitment(),
156
- })];
156
+ }, { sendThrottler: this.sendThrottler })];
157
157
  case 7:
158
- signature = _j.sent();
158
+ signature = _g.sent();
159
159
  return [2 /*return*/, {
160
160
  ixs: ixs,
161
161
  txId: signature,
@@ -165,47 +165,46 @@ var SolanaDistributorClient = /** @class */ (function () {
165
165
  });
166
166
  });
167
167
  };
168
- SolanaDistributorClient.prototype.claim = function (data, _a) {
169
- var invoker = _a.invoker, computePrice = _a.computePrice, computeLimit = _a.computeLimit;
168
+ SolanaDistributorClient.prototype.claim = function (data, extParams) {
170
169
  return __awaiter(this, void 0, void 0, function () {
171
- var distributorPublicKey, distributor, tokenProgramId, ixs, _b, _c, _d, _e, invokerTokens, claimStatusPublicKey, eventAuthorityPublicKey, claimStatus, accounts, args, nowTs, _f, tx, hash, context, signature;
172
- return __generator(this, function (_g) {
173
- switch (_g.label) {
170
+ var distributorPublicKey, distributor, tokenProgramId, ixs, _a, _b, _c, _d, invokerTokens, claimStatusPublicKey, eventAuthorityPublicKey, claimStatus, accounts, args, nowTs, _e, tx, hash, context, signature;
171
+ return __generator(this, function (_f) {
172
+ switch (_f.label) {
174
173
  case 0:
175
- if (!invoker.publicKey) {
174
+ if (!extParams.invoker.publicKey) {
176
175
  throw new Error("Invoker's PublicKey is not available, check passed wallet adapter!");
177
176
  }
178
177
  distributorPublicKey = new web3_js_1.PublicKey(data.id);
179
178
  return [4 /*yield*/, accounts_1.MerkleDistributor.fetch(this.connection, distributorPublicKey)];
180
179
  case 1:
181
- distributor = _g.sent();
180
+ distributor = _f.sent();
182
181
  if (!distributor) {
183
182
  throw new Error("Couldn't get account info");
184
183
  }
185
184
  return [4 /*yield*/, (0, solana_1.getMintAndProgram)(this.connection, distributor.mint)];
186
185
  case 2:
187
- tokenProgramId = (_g.sent()).tokenProgramId;
188
- ixs = (0, solana_1.prepareBaseInstructions)(this.connection, { computePrice: computePrice, computeLimit: computeLimit });
189
- _c = (_b = ixs.push).apply;
190
- _d = [ixs];
191
- _e = [[]];
192
- return [4 /*yield*/, (0, solana_1.checkOrCreateAtaBatch)(this.connection, [invoker.publicKey], distributor.mint, invoker, tokenProgramId)];
186
+ tokenProgramId = (_f.sent()).tokenProgramId;
187
+ ixs = (0, solana_1.prepareBaseInstructions)(this.connection, extParams);
188
+ _b = (_a = ixs.push).apply;
189
+ _c = [ixs];
190
+ _d = [[]];
191
+ return [4 /*yield*/, (0, solana_1.checkOrCreateAtaBatch)(this.connection, [extParams.invoker.publicKey], distributor.mint, extParams.invoker, tokenProgramId)];
193
192
  case 3:
194
- _c.apply(_b, _d.concat([__spreadArray.apply(void 0, _e.concat([__read.apply(void 0, [(_g.sent())]), false]))]));
195
- return [4 /*yield*/, (0, solana_1.ata)(distributor.mint, invoker.publicKey, tokenProgramId)];
193
+ _b.apply(_a, _c.concat([__spreadArray.apply(void 0, _d.concat([__read.apply(void 0, [(_f.sent())]), false]))]));
194
+ return [4 /*yield*/, (0, solana_1.ata)(distributor.mint, extParams.invoker.publicKey, tokenProgramId)];
196
195
  case 4:
197
- invokerTokens = _g.sent();
198
- claimStatusPublicKey = (0, utils_1.getClaimantStatusPda)(this.programId, distributorPublicKey, invoker.publicKey);
196
+ invokerTokens = _f.sent();
197
+ claimStatusPublicKey = (0, utils_1.getClaimantStatusPda)(this.programId, distributorPublicKey, extParams.invoker.publicKey);
199
198
  eventAuthorityPublicKey = (0, utils_1.getEventAuthorityPda)(this.programId);
200
199
  return [4 /*yield*/, accounts_1.ClaimStatus.fetch(this.connection, claimStatusPublicKey)];
201
200
  case 5:
202
- claimStatus = _g.sent();
201
+ claimStatus = _f.sent();
203
202
  accounts = {
204
203
  distributor: distributorPublicKey,
205
204
  claimStatus: claimStatusPublicKey,
206
205
  from: distributor.tokenVault,
207
206
  to: invokerTokens,
208
- claimant: invoker.publicKey,
207
+ claimant: extParams.invoker.publicKey,
209
208
  mint: distributor.mint,
210
209
  tokenProgram: tokenProgramId,
211
210
  systemProgram: web3_js_1.SystemProgram.programId,
@@ -224,68 +223,67 @@ var SolanaDistributorClient = /** @class */ (function () {
224
223
  if (claimStatus || (data.amountLocked.gtn(0) && nowTs.sub(distributor.startTs).gte(distributor.unlockPeriod))) {
225
224
  ixs.push((0, instructions_1.claimLocked)(accounts, this.programId));
226
225
  }
227
- return [4 /*yield*/, (0, solana_1.prepareTransaction)(this.connection, ixs, invoker.publicKey)];
226
+ return [4 /*yield*/, (0, solana_1.prepareTransaction)(this.connection, ixs, extParams.invoker.publicKey)];
228
227
  case 6:
229
- _f = _g.sent(), tx = _f.tx, hash = _f.hash, context = _f.context;
230
- return [4 /*yield*/, (0, utils_1.wrappedSignAndExecuteTransaction)(this.connection, invoker, tx, {
228
+ _e = _f.sent(), tx = _e.tx, hash = _e.hash, context = _e.context;
229
+ return [4 /*yield*/, (0, utils_1.wrappedSignAndExecuteTransaction)(this.connection, extParams.invoker, tx, {
231
230
  hash: hash,
232
231
  context: context,
233
232
  commitment: this.getCommitment(),
234
- })];
233
+ }, { sendThrottler: this.sendThrottler })];
235
234
  case 7:
236
- signature = _g.sent();
235
+ signature = _f.sent();
237
236
  return [2 /*return*/, { ixs: ixs, txId: signature }];
238
237
  }
239
238
  });
240
239
  });
241
240
  };
242
- SolanaDistributorClient.prototype.clawback = function (data, _a) {
243
- var invoker = _a.invoker, computePrice = _a.computePrice, computeLimit = _a.computeLimit;
241
+ SolanaDistributorClient.prototype.clawback = function (data, extParams) {
244
242
  return __awaiter(this, void 0, void 0, function () {
245
- var distributorPublicKey, distributor, tokenProgramId, ixs, _b, _c, _d, _e, accounts, _f, tx, hash, context, signature;
246
- return __generator(this, function (_g) {
247
- switch (_g.label) {
243
+ var distributorPublicKey, distributor, tokenProgramId, ixs, _a, _b, _c, _d, accounts, _e, tx, hash, context, signature;
244
+ return __generator(this, function (_f) {
245
+ switch (_f.label) {
248
246
  case 0:
249
- if (!invoker.publicKey) {
247
+ if (!extParams.invoker.publicKey) {
250
248
  throw new Error("Invoker's PublicKey is not available, check passed wallet adapter!");
251
249
  }
252
250
  distributorPublicKey = new web3_js_1.PublicKey(data.id);
253
251
  return [4 /*yield*/, accounts_1.MerkleDistributor.fetch(this.connection, distributorPublicKey)];
254
252
  case 1:
255
- distributor = _g.sent();
253
+ distributor = _f.sent();
256
254
  if (!distributor) {
257
255
  throw new Error("Couldn't get account info");
258
256
  }
259
257
  return [4 /*yield*/, (0, solana_1.getMintAndProgram)(this.connection, distributor.mint)];
260
258
  case 2:
261
- tokenProgramId = (_g.sent()).tokenProgramId;
262
- ixs = (0, solana_1.prepareBaseInstructions)(this.connection, { computePrice: computePrice, computeLimit: computeLimit });
263
- _c = (_b = ixs.push).apply;
264
- _d = [ixs];
265
- _e = [[]];
266
- return [4 /*yield*/, (0, solana_1.checkOrCreateAtaBatch)(this.connection, [invoker.publicKey], distributor.mint, invoker, tokenProgramId)];
259
+ tokenProgramId = (_f.sent()).tokenProgramId;
260
+ ixs = (0, solana_1.prepareBaseInstructions)(this.connection, extParams);
261
+ _b = (_a = ixs.push).apply;
262
+ _c = [ixs];
263
+ _d = [[]];
264
+ return [4 /*yield*/, (0, solana_1.checkOrCreateAtaBatch)(this.connection, [extParams.invoker.publicKey], distributor.mint, extParams.invoker, tokenProgramId)];
267
265
  case 3:
268
- _c.apply(_b, _d.concat([__spreadArray.apply(void 0, _e.concat([__read.apply(void 0, [(_g.sent())]), false]))]));
266
+ _b.apply(_a, _c.concat([__spreadArray.apply(void 0, _d.concat([__read.apply(void 0, [(_f.sent())]), false]))]));
269
267
  accounts = {
270
268
  distributor: distributorPublicKey,
271
269
  from: distributor.tokenVault,
272
270
  to: distributor.clawbackReceiver,
273
- admin: invoker.publicKey,
271
+ admin: extParams.invoker.publicKey,
274
272
  mint: distributor.mint,
275
273
  systemProgram: web3_js_1.SystemProgram.programId,
276
274
  tokenProgram: tokenProgramId,
277
275
  };
278
276
  ixs.push((0, instructions_1.clawback)(accounts, this.programId));
279
- return [4 /*yield*/, (0, solana_1.prepareTransaction)(this.connection, ixs, invoker.publicKey)];
277
+ return [4 /*yield*/, (0, solana_1.prepareTransaction)(this.connection, ixs, extParams.invoker.publicKey)];
280
278
  case 4:
281
- _f = _g.sent(), tx = _f.tx, hash = _f.hash, context = _f.context;
282
- return [4 /*yield*/, (0, utils_1.wrappedSignAndExecuteTransaction)(this.connection, invoker, tx, {
279
+ _e = _f.sent(), tx = _e.tx, hash = _e.hash, context = _e.context;
280
+ return [4 /*yield*/, (0, utils_1.wrappedSignAndExecuteTransaction)(this.connection, extParams.invoker, tx, {
283
281
  hash: hash,
284
282
  context: context,
285
283
  commitment: this.getCommitment(),
286
- })];
284
+ }, { sendThrottler: this.sendThrottler })];
287
285
  case 5:
288
- signature = _g.sent();
286
+ signature = _f.sent();
289
287
  return [2 /*return*/, { ixs: ixs, txId: signature }];
290
288
  }
291
289
  });
@@ -1,7 +1,7 @@
1
1
  import { SignerWalletAdapter } from "@solana/wallet-adapter-base";
2
2
  import { Connection, Keypair, PublicKey, Transaction, VersionedTransaction } from "@solana/web3.js";
3
- import { ConfirmationParams } from "@streamflow/common/solana";
3
+ import { ConfirmationParams, ThrottleParams } from "@streamflow/common/solana";
4
4
  export declare function getDistributorPda(programId: PublicKey, mint: PublicKey, version: number): PublicKey;
5
5
  export declare function getClaimantStatusPda(programId: PublicKey, distributor: PublicKey, claimant: PublicKey): PublicKey;
6
6
  export declare function getEventAuthorityPda(programId: PublicKey): PublicKey;
7
- export declare function wrappedSignAndExecuteTransaction(connection: Connection, invoker: Keypair | SignerWalletAdapter, tx: Transaction | VersionedTransaction, confirmationParams: ConfirmationParams): Promise<string>;
7
+ export declare function wrappedSignAndExecuteTransaction(connection: Connection, invoker: Keypair | SignerWalletAdapter, tx: Transaction | VersionedTransaction, confirmationParams: ConfirmationParams, throttleParams: ThrottleParams): Promise<string>;
@@ -66,14 +66,14 @@ function getEventAuthorityPda(programId) {
66
66
  return web3_js_1.PublicKey.findProgramAddressSync(seeds, programId)[0];
67
67
  }
68
68
  exports.getEventAuthorityPda = getEventAuthorityPda;
69
- function wrappedSignAndExecuteTransaction(connection, invoker, tx, confirmationParams) {
69
+ function wrappedSignAndExecuteTransaction(connection, invoker, tx, confirmationParams, throttleParams) {
70
70
  return __awaiter(this, void 0, void 0, function () {
71
71
  var err_1, parsed;
72
72
  return __generator(this, function (_a) {
73
73
  switch (_a.label) {
74
74
  case 0:
75
75
  _a.trys.push([0, 2, , 3]);
76
- return [4 /*yield*/, (0, solana_1.signAndExecuteTransaction)(connection, invoker, tx, confirmationParams)];
76
+ return [4 /*yield*/, (0, solana_1.signAndExecuteTransaction)(connection, invoker, tx, confirmationParams, throttleParams)];
77
77
  case 1: return [2 /*return*/, _a.sent()];
78
78
  case 2:
79
79
  err_1 = _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/distributor",
3
- "version": "6.3.1",
3
+ "version": "6.3.3",
4
4
  "description": "JavaScript SDK to interact with Streamflow Airdrop protocol.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "dist/index.js",
@@ -22,9 +22,9 @@
22
22
  "lint": "eslint --fix .",
23
23
  "prepublishOnly": "npm run lint && npm run build"
24
24
  },
25
- "gitHead": "dd901627ee3ece821b9be3668b489ab4267a58df",
25
+ "gitHead": "01ceb912ed61adfb1055d9d1ea64e61f98a183eb",
26
26
  "devDependencies": {
27
- "@streamflow/eslint-config": "6.3.1",
27
+ "@streamflow/eslint-config": "6.3.3",
28
28
  "@types/bn.js": "5.1.1",
29
29
  "@types/jest": "29.2.4",
30
30
  "date-fns": "2.28.0",
@@ -38,9 +38,10 @@
38
38
  "@solana/spl-token": "0.3.6",
39
39
  "@solana/wallet-adapter-base": "0.9.19",
40
40
  "@solana/web3.js": "1.70.1",
41
- "@streamflow/common": "6.3.1",
41
+ "@streamflow/common": "6.3.3",
42
42
  "bn.js": "5.2.1",
43
43
  "borsh": "^2.0.0",
44
- "bs58": "5.0.0"
44
+ "bs58": "5.0.0",
45
+ "p-queue": "^6.6.2"
45
46
  }
46
47
  }