Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Implement MultiIndexer #165

Merged
merged 32 commits into from
Mar 25, 2024
Merged

Implement MultiIndexer #165

merged 32 commits into from
Mar 25, 2024

Conversation

sz-piotr
Copy link
Member

@sz-piotr sz-piotr commented Mar 22, 2024

Resolves L2B-4539

This PR also:

  • changes the update method from parameter to be inclusive as opposed to exclusive (which was the previous behavior)
  • renames getSaveHeight to initialize
  • renames BaseIndexer to Indexer
  • removes SliceIndexer
  • updates examples

Remaining:

  • Docs
  • new package version + changelog
  • trying to update L2BEAT to this version

Copy link

linear bot commented Mar 22, 2024

Copy link

changeset-bot bot commented Mar 22, 2024

⚠️ No Changeset found

Latest commit: e3c4327

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sz-piotr sz-piotr enabled auto-merge (squash) March 25, 2024 13:57
@sz-piotr sz-piotr merged commit f906b33 into main Mar 25, 2024
4 checks passed
@sz-piotr sz-piotr deleted the multi-indexer branch March 25, 2024 14:00
adamiak pushed a commit to l2beat/l2beat that referenced this pull request Apr 24, 2024
* Add support for undefined height

* Refactor undefined to null for height

* Rename update function parameters

* Remove useless examples

* Make indexers safer

* Add stub MultiIndexer

* Implement toRanges

* Add tests for MultiIndexer

* Fix some edge cases

* Simplify configuration types

* Start calling saveConfigurations

* Add more tests for MultiIndexer

* MultiIndexer should now be feature complete

* Make the API nicer sacrificing safety

* Remove old example code

* Add example of a PriceIndexer

* Simplify the code by only counting full hours

* Do not propagate repeated ticks

* Add BlockIndexer example

* Add some todos

* Get rid of null heights

* Make from inclusive

* Make everything inclusive and store all configurations

* Add more tests

* Add test for update heights

* add more tests

* add toRanges test case

* Refactor updateSavedConfigurations to be a method

* Add returns doc comments

* Update uif version

* add test for maxHeight

---------

Co-authored-by: antooni <[email protected]>
Co-authored-by: Tomasz Tórz <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants