-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: chain sync projection primitives #520
Conversation
f390ac1
to
cc4bcea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really nice so far @mkazlauskas!
ba7b405
to
b548aec
Compare
Addressed requested changes and added 1 of my own: b548aec replaced Ready for re-review. |
31bd0d3
to
4524a62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My current review is a bit shallow, but it looks good to me 👽.
I would prefer a more in-depth re-review after the squash.
4524a62
to
0205fbe
Compare
0205fbe
to
35c22a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now would be a good time to remove the ignore for the GTG package if it's able to be made compliant without to much effort.
Rename the existing 'get-blocks' command to 'chain-sync' add extend it to support simulating rollbacks. It can still be used to simply get blocks without specifying any rollbacks, but command name and the resulting data structure has changed.
… to use toSerializableObj util add metadata for supplied blockHeights option export getBlockHeaderAndHash
tsc was implicitly casting to an invalid type in some situations
implement coreToCsl genesis key delegation conversion
feat(core): add addressNetworkId and createRewardAccount utils BREAKING CHANGE: rename block types - CompactBlock -> BlockInfo - Block -> ExtendedBlockInfo BREAKING CHANGE: hoist ogmiosToCore to ogmios package
translating the entire block is a lot more expensive than just header
…f ogmios rename 'chain-sync' command to 'chain-sync-events'
feat(util-rxjs): add ObservableType<T> type util feat(core): add Chain Sync types
881751f
to
6df9255
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stellar work @mkazlauskas 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! 🚀
Context
In order to create a database that is optimized for our provider queries, we'll need to project events from Chain Sync protocol
Proposed Solution
See README of the new
projection
package and the last commit (cc4bcea)Important Changes Introduced
See the commit log.
Follow-up work
projection
:ogmios
:evtCache$
for withRolledBackEventsgolden-test-generator
: