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

Commit

Permalink
Implement MultiIndexer (#165)
Browse files Browse the repository at this point in the history
* 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 <antoni.pawlak@protonmail.com>
Co-authored-by: Tomasz Tórz <tomasz.torz@l2beat.com>
  • Loading branch information
3 people authored Mar 25, 2024
1 parent dcfccf4 commit f906b33
Show file tree
Hide file tree
Showing 59 changed files with 2,110 additions and 1,692 deletions.
7 changes: 0 additions & 7 deletions packages/example/.mocharc.json

This file was deleted.

125 changes: 0 additions & 125 deletions packages/example/src/Application.ts

This file was deleted.

17 changes: 0 additions & 17 deletions packages/example/src/Config.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/example/src/index.test.ts

This file was deleted.

65 changes: 0 additions & 65 deletions packages/example/src/indexers/ABC_Indexer.ts

This file was deleted.

79 changes: 0 additions & 79 deletions packages/example/src/indexers/AB_BC_Indexer.ts

This file was deleted.

39 changes: 0 additions & 39 deletions packages/example/src/indexers/BalanceIndexer.ts

This file was deleted.

40 changes: 0 additions & 40 deletions packages/example/src/indexers/BlockNumberIndexer.ts

This file was deleted.

Loading

0 comments on commit f906b33

Please sign in to comment.