Commit graph

31 commits

Author SHA1 Message Date
sslivkoff
5c45c1703c update cryo_python to cryo 2024-01-08 11:52:00 -08:00
Fahim Ahmed
c5e44905b3
feat: add timestamps parameter (#126)
* add incomplete --timestamp parameter

* create interface for timestamp_to_block function

* add get_latest_block_number() function

* Add timestamp_to_block_number() function

* Use Strings for timestamp

* change timestamp argument to Vec<String> part 2

* use reference, fix get_latest_block_number()

* add parse_timestamp() functions

* make some block processing functions public

* cargo fmt

* add docs

* add support for "every nth value" syntax

* implement parse_timestamp_range_to_block_number_range()

* remove unused array in timestamp_to_block_numbers()

* fix binary search in timestamp_to_block_number()

* cargo fmt

* initial test for timestamp_to_block_number()

* cargo fmt

* Add additional timestamp_to_block_number tests

* return lower block number if edge case

* cargo fmt

* Test before genesis block and after latest block

* update commenting

* Test latest timestamp to latest block number

* refactor timestamp test cases

* add rate limit to timestamp test setup

* remove unneeded test case

* update testing rpc

* cargo fmt

* remove redundant timestamp test

* reduce value in timestamp extrema test case

* Add tests for timestamp ending with a unit

* Fix timestamp range to blocknumber range and add tests

* Refactor parse timestamp functions and fix tests

* cargo fmt

* Refactor get_latest_block_number() into blocks.rs

* remove unneeded test case

* optimize latest timestamp testcase

* cargo fmt

* use parse_timestamps, and rename file

* update docs, use timestamps instead of timestamp

* fix typo in timestamp specification syntax

* update timestamp scaling units

* remove debug print

* update docs to incorporate timestamp scales

* update tests

* Remove test case that overloads RPC
2023-11-28 11:16:21 -08:00
Fahim Ahmed
5aecaec478
docs: fix typo in block number ranges (#139)
* fix doc for block number ranges

* one-off typo
2023-11-28 09:03:23 -08:00
PA
a03dc649db
fix: readme help update (#129) 2023-11-20 21:08:36 -06:00
sslivkoff
accb8de727 add uniswap example 2023-11-13 19:09:42 -08:00
sslivkoff
a1fb4a9bc7
add telegram chat to README 2023-11-02 21:22:24 -07:00
cool-mestorf
be8078b1e4
fallback to multiple eth_getTransactionReceipt calls if eth_getBlockReceipts is not present (#94)
* fallback to multiple `eth_getTransactionReceipt` calls if `eth_getBlockReceipts` is not present

* remove unnecessary comment

* edit methods used by command

* move implementation from separate trait to source impl
2023-11-02 21:12:54 -07:00
sslivkoff
3f4a4ec3c6 add small note about python installation 2023-11-02 19:30:12 +00:00
sslivkoff
4edc58907f
rename datasets (#83) 2023-10-19 15:50:53 -07:00
sslivkoff
42550be87d
Update README.md 2023-10-18 13:06:49 -07:00
vuittont60
a321569243
fix some typos (#80) 2023-10-18 10:34:37 -07:00
sslivkoff
54fffafb1a
unify types according to schema design policy (#76) 2023-10-15 14:08:07 -07:00
sslivkoff
99dc892ecb purge all panic-able code from main codebase 2023-10-06 00:05:49 -07:00
sslivkoff
7b658d438c initial commit 2023-09-15 02:22:35 -07:00
sslivkoff
519e3d72bc
Alternative u256 representations (#53)
* initial u256 conversions commit

* basic u256 input parsing

* display u256 conversions in print_schema()

* add raw data conversions from u256

* update readme to reflect possible u256 conversions

* add comment to produce diff on schemas.rs

* fix table_schema tests

* form table_schema tests
2023-08-30 17:54:37 -07:00
sslivkoff
be6de0c1b0 add standard types across tables to schema design guide 2023-08-29 23:54:59 -07:00
sslivkoff
50b81c5f90
add Schema Design Guide to README.md 2023-08-29 22:05:18 -07:00
banteg
a3371c2ab7
docs: add missing contracts dataset (#34) 2023-08-17 22:39:46 -07:00
Isaac Patka
f417fcaecc
Fix multi block argument and add some unit tests (#14)
* unit tests

* Add terminator

* Update readme

* format

* Wrap block lists with quote
2023-08-07 20:45:14 -07:00
sslivkoff
8e7a5e9888 add notes about python install to README 2023-08-04 17:00:51 +00:00
Erik Reppel
bd38e17536
Update README.md (#6) 2023-07-06 13:55:07 -07:00
sslivkoff
555ef0dd71 add notes about ratelimits 2023-07-06 17:20:23 +00:00
sslivkoff
d774a28e6a update cryo help description 2023-07-06 06:14:01 +00:00
sslivkoff
69a2ee4ff2 update README.md 2023-07-06 06:10:50 +00:00
sslivkoff
76cd99215c update README.md 2023-07-06 05:54:20 +00:00
sslivkoff
4e1799cf49 update README 2023-07-06 05:05:58 +00:00
sslivkoff
eac1419afa
add test passing badge to README.md 2023-07-05 09:44:32 -07:00
sslivkoff
838c6f9bbc update README with latest --help 2023-07-03 07:52:50 +00:00
sslivkoff
cc69f5c110
Update README.md 2023-06-27 01:17:17 -07:00
sslivkoff
27c4057de1
Update README.md 2023-06-26 17:41:32 -07:00
sslivkoff
4d5e07e7f0
Create README.md 2023-06-26 17:35:31 -07:00