Skip to content
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

Suite of fixes & improvements in stats calculation and Anchor support #11

Merged
merged 3 commits into from Nov 22, 2022

Conversation

MHHukiewitz
Copy link
Member

Problem: Missing type safety made debugging difficult
Solution: Added generic typification to AccountTimeSeriesStatsManager

Problem: Time frame stats would miss entries or break down on singular events, resulting in wrong time series calculation Solution: Fix issues for edge cases in splitDurationIntoIntervals()

Problem: Anchor-generated indexers would not correctly aggregate accesses to programs Solution: Add "signer" field to all events, denoting the pubkey of the first signer, initiating a transaction

Problem: Anchor-generated indexers do not work well with current InstructionParser Solution: Created two distinctive InstructionParsers (Anchor- and Spl-) and make a split decision between which to use in the InstructionParserLibrary

Problem: Certain RPC providers do not accept batch sizes of >100
Solution: Halve batch sizes across the board

Solution: Added generic typification to AccountTimeSeriesStatsManager

Problem: Time frame stats would miss entries or break down on singular events, resulting in wrong time series calculation
Solution: Fix issues for edge cases in splitDurationIntoIntervals()

Problem: Anchor-generated indexers would not correctly aggregate accesses to programs
Solution: Add "signer" field to all events, denoting the pubkey of the first signer, initiating a transaction

Problem: Anchor-generated indexers do not work well with current InstructionParser
Solution: Created two distinctive InstructionParsers (Anchor- and Spl-) and make a split decision between which to use in the InstructionParserLibrary

Problem: Certain RPC providers do not accept batch sizes of >100
Solution: Halve batch sizes across the board
@MHHukiewitz
Copy link
Member Author

Needs some more fixes

@amalcaraz amalcaraz merged commit 3430d31 into main Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants