@streamflow/distributor 6.3.2 → 6.3.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.
@@ -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,53 +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, _f, claimStatusPublicKey, eventAuthorityPublicKey, claimStatus, accounts, args, nowTs, _g, tx, hash, context, signature;
172
- return __generator(this, function (_h) {
173
- switch (_h.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 = _h.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 = (_h.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, [(_h.sent())]), false]))]));
195
- if (!data.tokenAccount) return [3 /*break*/, 4];
196
- _f = new web3_js_1.PublicKey(data.tokenAccount);
197
- return [3 /*break*/, 6];
198
- case 4: return [4 /*yield*/, (0, solana_1.ata)(distributor.mint, invoker.publicKey, tokenProgramId)];
199
- case 5:
200
- _f = _h.sent();
201
- _h.label = 6;
202
- case 6:
203
- invokerTokens = _f;
204
- claimStatusPublicKey = (0, utils_1.getClaimantStatusPda)(this.programId, distributorPublicKey, invoker.publicKey);
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)];
195
+ case 4:
196
+ invokerTokens = _f.sent();
197
+ claimStatusPublicKey = (0, utils_1.getClaimantStatusPda)(this.programId, distributorPublicKey, extParams.invoker.publicKey);
205
198
  eventAuthorityPublicKey = (0, utils_1.getEventAuthorityPda)(this.programId);
206
199
  return [4 /*yield*/, accounts_1.ClaimStatus.fetch(this.connection, claimStatusPublicKey)];
207
- case 7:
208
- claimStatus = _h.sent();
200
+ case 5:
201
+ claimStatus = _f.sent();
209
202
  accounts = {
210
203
  distributor: distributorPublicKey,
211
204
  claimStatus: claimStatusPublicKey,
212
205
  from: distributor.tokenVault,
213
206
  to: invokerTokens,
214
- claimant: invoker.publicKey,
207
+ claimant: extParams.invoker.publicKey,
215
208
  mint: distributor.mint,
216
209
  tokenProgram: tokenProgramId,
217
210
  systemProgram: web3_js_1.SystemProgram.programId,
@@ -230,68 +223,67 @@ var SolanaDistributorClient = /** @class */ (function () {
230
223
  if (claimStatus || (data.amountLocked.gtn(0) && nowTs.sub(distributor.startTs).gte(distributor.unlockPeriod))) {
231
224
  ixs.push((0, instructions_1.claimLocked)(accounts, this.programId));
232
225
  }
233
- return [4 /*yield*/, (0, solana_1.prepareTransaction)(this.connection, ixs, invoker.publicKey)];
234
- case 8:
235
- _g = _h.sent(), tx = _g.tx, hash = _g.hash, context = _g.context;
236
- return [4 /*yield*/, (0, utils_1.wrappedSignAndExecuteTransaction)(this.connection, invoker, tx, {
226
+ return [4 /*yield*/, (0, solana_1.prepareTransaction)(this.connection, ixs, extParams.invoker.publicKey)];
227
+ case 6:
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, {
237
230
  hash: hash,
238
231
  context: context,
239
232
  commitment: this.getCommitment(),
240
- })];
241
- case 9:
242
- signature = _h.sent();
233
+ }, { sendThrottler: this.sendThrottler })];
234
+ case 7:
235
+ signature = _f.sent();
243
236
  return [2 /*return*/, { ixs: ixs, txId: signature }];
244
237
  }
245
238
  });
246
239
  });
247
240
  };
248
- SolanaDistributorClient.prototype.clawback = function (data, _a) {
249
- var invoker = _a.invoker, computePrice = _a.computePrice, computeLimit = _a.computeLimit;
241
+ SolanaDistributorClient.prototype.clawback = function (data, extParams) {
250
242
  return __awaiter(this, void 0, void 0, function () {
251
- var distributorPublicKey, distributor, tokenProgramId, ixs, _b, _c, _d, _e, accounts, _f, tx, hash, context, signature;
252
- return __generator(this, function (_g) {
253
- 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) {
254
246
  case 0:
255
- if (!invoker.publicKey) {
247
+ if (!extParams.invoker.publicKey) {
256
248
  throw new Error("Invoker's PublicKey is not available, check passed wallet adapter!");
257
249
  }
258
250
  distributorPublicKey = new web3_js_1.PublicKey(data.id);
259
251
  return [4 /*yield*/, accounts_1.MerkleDistributor.fetch(this.connection, distributorPublicKey)];
260
252
  case 1:
261
- distributor = _g.sent();
253
+ distributor = _f.sent();
262
254
  if (!distributor) {
263
255
  throw new Error("Couldn't get account info");
264
256
  }
265
257
  return [4 /*yield*/, (0, solana_1.getMintAndProgram)(this.connection, distributor.mint)];
266
258
  case 2:
267
- tokenProgramId = (_g.sent()).tokenProgramId;
268
- ixs = (0, solana_1.prepareBaseInstructions)(this.connection, { computePrice: computePrice, computeLimit: computeLimit });
269
- _c = (_b = ixs.push).apply;
270
- _d = [ixs];
271
- _e = [[]];
272
- 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)];
273
265
  case 3:
274
- _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]))]));
275
267
  accounts = {
276
268
  distributor: distributorPublicKey,
277
269
  from: distributor.tokenVault,
278
270
  to: distributor.clawbackReceiver,
279
- admin: invoker.publicKey,
271
+ admin: extParams.invoker.publicKey,
280
272
  mint: distributor.mint,
281
273
  systemProgram: web3_js_1.SystemProgram.programId,
282
274
  tokenProgram: tokenProgramId,
283
275
  };
284
276
  ixs.push((0, instructions_1.clawback)(accounts, this.programId));
285
- 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)];
286
278
  case 4:
287
- _f = _g.sent(), tx = _f.tx, hash = _f.hash, context = _f.context;
288
- 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, {
289
281
  hash: hash,
290
282
  context: context,
291
283
  commitment: this.getCommitment(),
292
- })];
284
+ }, { sendThrottler: this.sendThrottler })];
293
285
  case 5:
294
- signature = _g.sent();
286
+ signature = _f.sent();
295
287
  return [2 /*return*/, { ixs: ixs, txId: signature }];
296
288
  }
297
289
  });
@@ -26,7 +26,6 @@ export interface IClaimData {
26
26
  amountUnlocked: BN;
27
27
  amountLocked: BN;
28
28
  proof: Array<Array<number>>;
29
- tokenAccount?: string;
30
29
  }
31
30
  export interface IClawbackData {
32
31
  id: string;
@@ -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.2",
3
+ "version": "6.3.4",
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": "8fa0da9107e1a1b9ea900d1f7159169c0d256d31",
25
+ "gitHead": "c559d33706f42ff9e0704923376aade789eaa8ce",
26
26
  "devDependencies": {
27
- "@streamflow/eslint-config": "6.3.2",
27
+ "@streamflow/eslint-config": "6.3.4",
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.2",
41
+ "@streamflow/common": "6.3.4",
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
  }