Skip to content

Commit

Permalink
mina funnel (#343)
Browse files Browse the repository at this point in the history
* mina funnel: wip

* wip

* add actions fetching

* cleanup some lints

* split actions and events into 2 cdes

* add after/cursor argument to the queries

* remove some debugging logs

* rename cardano cursors table to generic cursor based pagination

this way it can be re-used also for mina or any other system, since
there is no fundamental difference

* add paginationLimit setting

* dehardcode slot duration

* replace the node's graphql api with direct db queries

* replace the archive's graphql with direct db queries

* add limit to the query

* add loop to wait for finality

* remove debugging logs

* minor refactors

* remove unused fields from query

* handle edge case for the cde generic handler

* fix upper range querying extra data

* find confirmed timestamp directly instead of getting the slot first

* rename the common paginated handling cde function

* small refactor in funnel cursors filtering

* rework the timestamp to block mapping to not use slots

* replace startSlot for startBlockHeight in the extensions

* add timestamp checkpointing event

* genesisTime field is not used anymore

* fix missing cache update of the lower bound

* allow overriding archive's confirmation parameters

* migrated from postgres to pg

* remove debugging logs

* cleanup
  • Loading branch information
ecioppettini authored May 3, 2024
1 parent 322b408 commit e5f5f73
Show file tree
Hide file tree
Showing 27 changed files with 1,307 additions and 137 deletions.
15 changes: 14 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/engine/paima-funnel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"dependencies": {
"assert-never": "^1.2.1",
"@dcspark/carp-client": "^3.1.0",
"@dcspark/cardano-multiplatform-lib-nodejs": "5.2.0"
"@dcspark/cardano-multiplatform-lib-nodejs": "5.2.0",
"pg": "^8.11.3"
}
}
Loading

0 comments on commit e5f5f73

Please sign in to comment.