first integration tests (#64)
resolves #60 Co-authored-by: johba <johba@harb.eth> Reviewed-on: https://codeberg.org/johba/harb/pulls/64
This commit is contained in:
parent
d6f0bf4f02
commit
1645865c5a
14 changed files with 913 additions and 2226 deletions
1957
services/ponder/package-lock.json
generated
1957
services/ponder/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -100,6 +100,11 @@ function computeProjections(ringBuffer: bigint[], pointer: number, timestamp: bi
|
|||
}
|
||||
|
||||
export function checkBlockHistorySufficient(context: StatsContext, event: StatsEvent): boolean {
|
||||
// Guard against incomplete context during initialization
|
||||
if (!context?.network?.contracts?.Kraiken) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const currentBlock = event.block.number;
|
||||
const deployBlock = DEPLOY_BLOCK;
|
||||
const blocksSinceDeployment = Number(currentBlock - deployBlock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue