@clonegod/ttd-sol-common 1.0.31 → 1.0.33

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.
@@ -363,14 +363,14 @@ class RpcClient {
363
363
  if (existingComputeBudgetInstructions.length > 0) {
364
364
  throw new Error('Cannot provide instructions that set the compute unit price and/or limit');
365
365
  }
366
- (0, dist_1.log_debug)(`>>> getLatestBlockhashAndContext, start`);
366
+ (0, dist_1.log_info)(`>>> getLatestBlockhashAndContext, start`);
367
367
  const payerKey = feePayer ? feePayer.publicKey : signers[0].publicKey;
368
368
  const { context: { slot: minContextSlot }, value: blockhash, } = yield Promise.race([
369
369
  this.connection.getLatestBlockhashAndContext(),
370
370
  solana_trade_runtime.connection.getLatestBlockhashAndContext()
371
371
  ]);
372
+ (0, dist_1.log_info)(`>>> getLatestBlockhashAndContext, end`);
372
373
  const recentBlockhash = blockhash.blockhash;
373
- (0, dist_1.log_debug)(`>>> getLatestBlockhashAndContext, end`);
374
374
  const isVersioned = lookupTables.length > 0;
375
375
  let legacyTransaction = null;
376
376
  let versionedTransaction = null;
@@ -401,7 +401,7 @@ class RpcClient {
401
401
  const serializedTransaction = bs58_1.default.encode(isVersioned
402
402
  ? versionedTransaction.serialize()
403
403
  : legacyTransaction.serialize(serializeOptions));
404
- (0, dist_1.log_debug)(`>>> getPriorityFeeEstimate, start`);
404
+ (0, dist_1.log_info)(`>>> getPriorityFeeEstimate, start`);
405
405
  const priorityFeeEstimateResponse = yield this.getPriorityFeeEstimate({
406
406
  transaction: serializedTransaction,
407
407
  options: {
@@ -409,7 +409,7 @@ class RpcClient {
409
409
  },
410
410
  });
411
411
  const { priorityFeeEstimate } = priorityFeeEstimateResponse;
412
- (0, dist_1.log_debug)(`>>> getPriorityFeeEstimate, end. priorityFeeEstimate=${priorityFeeEstimate}`);
412
+ (0, dist_1.log_info)(`>>> getPriorityFeeEstimate, end. priorityFeeEstimate=${priorityFeeEstimate}`);
413
413
  if (!priorityFeeEstimate) {
414
414
  throw new Error('Priority fee estimate not available');
415
415
  }
@@ -425,9 +425,9 @@ class RpcClient {
425
425
  setTimeout(() => __awaiter(this, void 0, void 0, function* () {
426
426
  if (Math.random() > 0.15)
427
427
  return;
428
- (0, dist_1.log_debug)(`>>> getComputeUnits, start`);
428
+ (0, dist_1.log_info)(`>>> getComputeUnits, start`);
429
429
  const units = yield this.getComputeUnits(instructions, payerKey, isVersioned ? lookupTables : [], signers);
430
- (0, dist_1.log_debug)(`>>> getComputeUnits, end. ComputeUnits=${units}`);
430
+ (0, dist_1.log_info)(`>>> getComputeUnits, end. ComputeUnits=${units}`);
431
431
  if (!units) {
432
432
  throw new Error(`Error fetching compute units for the instructions provided`);
433
433
  }
@@ -476,7 +476,7 @@ class RpcClient {
476
476
  throw new Error('expiryBlockOffset must be a positive integer');
477
477
  try {
478
478
  const { transaction, blockhash, minContextSlot } = yield this.createSmartTransaction(solana_trade_runtime, instructions, signers, lookupTables, sendOptions.feePayer);
479
- (0, dist_1.log_debug)(`>>> createSmartTransaction, end`);
479
+ (0, dist_1.log_info)(`>>> createSmartTransaction, end`);
480
480
  let txid = (0, get_signature_1.getSignature)(transaction);
481
481
  setTimeout(() => __awaiter(this, void 0, void 0, function* () {
482
482
  const commitment = (sendOptions === null || sendOptions === void 0 ? void 0 : sendOptions.preflightCommitment) || 'confirmed';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",