-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error reporting to progress report API call (#44)
This PR makes it so we collect errors and send them to Dune as part of the progress report request. I added two models in this PR, one in the `models` package and one in the DuneAPI package. This means we have three structs for representing the same kind of error (there's also one in `ingester). Is that too much? 😅
- Loading branch information
Showing
7 changed files
with
87 additions
and
11 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
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,8 +1,20 @@ | ||
package models | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
type BlockchainIndexProgress struct { | ||
BlockchainName string | ||
EVMStack string | ||
LastIngestedBlockNumber int64 | ||
LatestBlockNumber int64 | ||
Errors []BlockchainIndexError | ||
} | ||
|
||
type BlockchainIndexError struct { | ||
Timestamp time.Time | ||
BlockNumbers string | ||
Error string | ||
Source string | ||
} |