From 1a71198a965f478e40c8bd908d0681d711c03a97 Mon Sep 17 00:00:00 2001 From: Mantas S Date: Wed, 25 Sep 2024 12:16:42 +0300 Subject: [PATCH] Update solana.ts --- src/web3Provider/solana.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/web3Provider/solana.ts b/src/web3Provider/solana.ts index d381325..166c17c 100644 --- a/src/web3Provider/solana.ts +++ b/src/web3Provider/solana.ts @@ -68,11 +68,6 @@ export class Solana { async getBlockNumber() { const res = await this.call('getSlot', []); - log.info({ - message: `Fetched block number: ${res}`, - detail: `solana - Fetched block number using getSlot.`, - endpoint: 'solana.getBlockNumber', - }); return res; } @@ -86,11 +81,6 @@ export class Solana { res = await this.call('getBlockTime', [slot]); if (res && !res.error) { - log.info({ - message: `Found block at slot ${slot} with timestamp: ${res}`, - detail: `solana - Block found successfully.`, - endpoint: 'solana.getBlock', - }); break; } slot += 1; @@ -162,11 +152,6 @@ class Contract { return { call: async () => { const res = await this.call('getTokenSupply', [this.address]); - log.info({ - message: `Total supply fetched: ${res.value.amount} for contract ${this.address}`, - detail: `solana - Fetched total supply of contract.`, - endpoint: 'solana.Contract.methods.totalSupply.call', - }); return res.value.amount; }, }; @@ -193,14 +178,6 @@ class Contract { } }); - log.info({ - message: `Balance fetched for account ${account}: ${balance.toFixed()} for contract ${ - this.address - }`, - detail: `solana - Balance fetched successfully.`, - endpoint: 'solana.Contract.methods.balanceOf.call', - }); - return balance.toFixed(); }, };