From 90590c7ebad79b2040d3af997c4cade80032b1f4 Mon Sep 17 00:00:00 2001 From: kev-techi Date: Mon, 20 Jan 2025 10:44:18 +0100 Subject: [PATCH] data type on service instantiation --- src/logs/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/logs/index.ts b/src/logs/index.ts index b5af92b..11776ab 100644 --- a/src/logs/index.ts +++ b/src/logs/index.ts @@ -77,7 +77,7 @@ export function logDataToQueryString( .join(""); } -export class LogsService { +export class LogsService { private url: string; constructor(config: CommunityConfig) { @@ -86,7 +86,7 @@ export class LogsService { this.url = `${network.node.url}/v1/logs`; } - async getLog( + async getLog( tokenAddress: string, hash: string ): Promise, undefined>> { @@ -96,7 +96,7 @@ export class LogsService { return resp.json(); } - async getLogs( + async getLogs( tokenAddress: string, signature: string, params?: PaginationParams & LogQueryParams @@ -125,7 +125,7 @@ export class LogsService { return resp.json(); } - async getAllLogs( + async getAllLogs( tokenAddress: string, signature: string, params?: PaginationParams & LogQueryParams @@ -145,7 +145,7 @@ export class LogsService { return resp.json(); } - async getNewLogs( + async getNewLogs( tokenAddress: string, signature: string, params?: PaginationParams & NewLogQueryParams @@ -165,7 +165,7 @@ export class LogsService { return resp.json(); } - async getAllNewLogs( + async getAllNewLogs( tokenAddress: string, signature: string, params?: PaginationParams & NewLogQueryParams