Skip to content

Commit

Permalink
Update provider relayer
Browse files Browse the repository at this point in the history
  • Loading branch information
yigiterdev committed Jan 14, 2025
1 parent f6d9fb0 commit 48d855f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/relayer/src/provider-relayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ export abstract class ProviderRelayer implements Relayer {
waitForReceipt?: boolean
): Promise<commons.transaction.TransactionResponse>

abstract getTransactionCost(projectId: number, from: string, to: string): Promise<{
cost: number
}>

abstract getMetaTransactions(projectId: number, gasTankId: number, page?: proto.Page): Promise<{

Check failure on line 66 in packages/relayer/src/provider-relayer.ts

View workflow job for this annotation

GitHub Actions / Run build

Cannot find namespace 'proto'.
page: commons.Page,

Check failure on line 67 in packages/relayer/src/provider-relayer.ts

View workflow job for this annotation

GitHub Actions / Run build

Namespace '"/home/runner/work/sequence.js/sequence.js/packages/core/src/commons/index"' has no exported member 'Page'.
transactions: commons.MetaTxnLog[]

Check failure on line 68 in packages/relayer/src/provider-relayer.ts

View workflow job for this annotation

GitHub Actions / Run build

Namespace '"/home/runner/work/sequence.js/sequence.js/packages/core/src/commons/index"' has no exported member 'MetaTxnLog'.
}>

async simulate(wallet: string, ...transactions: commons.transaction.Transaction[]): Promise<SimulateResult[]> {
return (
await Promise.all(
Expand Down Expand Up @@ -248,6 +257,8 @@ export abstract class ProviderRelayer implements Relayer {
return waitReceipt()
}
}


}

function isAbstractProvider(provider: any): provider is ethers.AbstractProvider {
Expand Down

0 comments on commit 48d855f

Please sign in to comment.