generated from defi-wonderland/ts-turborepo-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: write a generic method and fix errors
- Loading branch information
Showing
10 changed files
with
413 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export type { IIndexerClient } from "./internal.js"; | ||
|
||
export { EnvioIndexerClient } from "./internal.js"; | ||
|
||
export type { GetEventsFilters } from "./internal.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from "./exceptions/index.js"; | ||
export * from "./types/index.js"; | ||
export * from "./interfaces/index.js"; | ||
export * from "./providers/index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./indexerClient.types.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Address, ChainId } from "@grants-stack-indexer/shared"; | ||
|
||
export type GetEventsFilters = { | ||
/** | ||
* Id of the chain to fetch events from | ||
*/ | ||
chainId: ChainId; | ||
/** | ||
* Src addresses to filter events by | ||
*/ | ||
srcAddresses?: Address[]; | ||
from?: { | ||
/** | ||
* Block number to start fetching events from | ||
*/ | ||
blockNumber: number; | ||
/** | ||
* Log index in the block | ||
*/ | ||
logIndex: number; | ||
}; | ||
to?: { | ||
/** | ||
* Block number to end fetching events at | ||
*/ | ||
blockNumber: number; | ||
/** | ||
* Log index in the block | ||
*/ | ||
logIndex: number; | ||
}; | ||
/** | ||
* Limit of events to fetch | ||
*/ | ||
limit?: number; | ||
}; |
Oops, something went wrong.