From 48d855f7c8540f4626ac06eedf3e621109ccfad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Bu=C4=9Fra=20Yi=C4=9Fiter?= Date: Tue, 14 Jan 2025 12:34:50 +0300 Subject: [PATCH] Update provider relayer --- packages/relayer/src/provider-relayer.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/relayer/src/provider-relayer.ts b/packages/relayer/src/provider-relayer.ts index 86652efe1..e3dc8499c 100644 --- a/packages/relayer/src/provider-relayer.ts +++ b/packages/relayer/src/provider-relayer.ts @@ -59,6 +59,15 @@ export abstract class ProviderRelayer implements Relayer { waitForReceipt?: boolean ): Promise + abstract getTransactionCost(projectId: number, from: string, to: string): Promise<{ + cost: number + }> + + abstract getMetaTransactions(projectId: number, gasTankId: number, page?: proto.Page): Promise<{ + page: commons.Page, + transactions: commons.MetaTxnLog[] + }> + async simulate(wallet: string, ...transactions: commons.transaction.Transaction[]): Promise { return ( await Promise.all( @@ -248,6 +257,8 @@ export abstract class ProviderRelayer implements Relayer { return waitReceipt() } } + + } function isAbstractProvider(provider: any): provider is ethers.AbstractProvider {