Commit graph

50 commits

Author SHA1 Message Date
sslivkoff
5c45c1703c update cryo_python to cryo 2024-01-08 11:52:00 -08:00
sslivkoff
07d30f14cd add __version__ to python 2024-01-08 11:51:43 -08:00
sslivkoff
c34e1a7337 specify readme in pyproject.toml 2023-12-29 20:55:32 -08:00
sslivkoff
fa070d4822 add description to pyproject.toml 2023-12-29 20:51:34 -08:00
sslivkoff
60da99dd90 add python-specific README 2023-12-29 20:06:31 -08:00
sslivkoff
4d1031980e
0.3.0 (#142)
* apply clippy linter suggestions

* update to 0.3.0

* add full to syn

* add description to cryo_to_df

* add cryo_python metadata
2023-12-01 07:23:02 -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
sslivkoff
2c803b6128
add --label argument (#112)
* add --label argument

* fix typo in docstring
2023-11-11 13:49:30 -08:00
sslivkoff
8f9b48458d
rename rust python dir (#107) 2023-11-07 23:47:33 -08:00
sslivkoff
bf68de0568
add --chunk-order (#102) 2023-11-05 16:51:31 -08:00
sslivkoff
fa1816b2ed
add javascript tracer (#100) 2023-11-04 10:31:08 -07:00
sslivkoff
0c73cdbd42
add --exclude-failed (#89) 2023-10-21 12:08:34 -07:00
sslivkoff
6879f4445c
commit using Arc<Query> (#87) 2023-10-20 23:08:37 -07:00
sslivkoff
9acc1580b3 further revise standard output 2023-10-19 14:10:26 -07:00
sslivkoff
b516e4ea62
add --remember option (#82) 2023-10-18 17:26:25 -07:00
sslivkoff
ab2e3652ea add --subdirs option 2023-10-18 12:48:26 -07:00
sslivkoff
a247da868b more info + readability for outputs 2023-10-12 21:05:15 -07:00
Isaac Patka
2d0e1bffc1 Add exponential backoff to queries using RetryClient (#60)
* wip trying to get error type

* Add retry option to args

* format

* adapt to new fetcher pattern

* remove debug

* fix test

* Try using retry client

* fix

* update defaults
2023-10-09 22:58:46 -07:00
sslivkoff
9b5183729b fix dataset typos 2023-10-08 14:25:39 -07:00
sslivkoff
947f616d34 nightly format 2023-10-05 17:50:40 -07:00
sslivkoff
c6ef47315f add "command" option to python functions 2023-10-04 21:32:10 -07:00
sslivkoff
d87b01df64 continue refactor 2023-09-28 20:18:32 -07:00
sslivkoff
7b658d438c initial commit 2023-09-15 02:22:35 -07:00
sslivkoff
15f8853e15 merge main into pr to resolve conflicts 2023-08-31 23:36:36 -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
Erik Reppel
3e281182de fix tests, doc comments 2023-08-30 15:40:47 -07:00
Kamil Skalski
856c4aeef9
Use Path instead of String for output dir. (#37)
* Use Path instead of String for output dir.

* Use repo's cargo fmt.
2023-08-29 13:58:52 -07:00
Kamil Skalski
3b37635f7a
Factor out dependency definitions into workspace Cargo.toml. (#36)
* Factor out dependency definitions into workspace Cargo.toml.

* Cleanup dependencies and fix warnings.
2023-08-29 13:34:50 -07:00
Erik Reppel
d265b5fcd6 event-signature flag, add to schema even in event of no logs in batch 2023-08-25 12:53:37 -04:00
banteg
a3371c2ab7
docs: add missing contracts dataset (#34) 2023-08-17 22:39:46 -07:00
banteg
b5f7ee50b3
fix: cryo cli and python builds (#30)
* fix: cryo cli build

* fix: python build

* chore: newline
2023-08-16 23:33:25 -07:00
sslivkoff
b2c221a6f4 bump to 0.2.0 2023-08-13 12:27:44 -07:00
sslivkoff
d6059df9c2 save report file every time cryo is run 2023-08-13 12:08:36 -07:00
sslivkoff
e710b259fe
use clap fork to properly parse hyphenated block ranges (#25) 2023-08-09 11:10:26 -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
e734f06221
implement --txs for logs 2023-08-06 01:31:25 -07:00
sslivkoff
66e5074c4c bump python version to 0.1.2 2023-08-04 16:54:47 +00:00
sslivkoff
bf48d3e293 paths_by_type --> paths 2023-08-04 16:20:55 +00:00
sslivkoff
939b1f7924 add --no-verbose option to omit stdout outputs 2023-08-04 16:20:16 +00:00
sslivkoff
f4754e4d69 allow calling sync python functions from async context 2023-08-04 15:51:23 +00:00
sslivkoff
272caaf292 tempfix for collect() chunksize issue 2023-08-04 15:00:30 +00:00
sslivkoff
66c29b1f67 use 0.1.1 for python crate 2023-07-31 23:44:09 -07:00
sslivkoff
8766fd6d73 add build.rs for macos pyo3 compability 2023-07-31 09:42:02 -07:00
sslivkoff
2e798265f7 apply foundry's formatting config 2023-07-26 19:06:09 +00:00
sslivkoff
560e390653 add tests and strict linting to python module 2023-07-26 17:38:06 +00:00
sslivkoff
e8da892efa add better arg parsing to python adapter 2023-07-26 17:37:15 +00:00
sslivkoff
953762dda0 add toplevel collect() function and add python adapter 2023-07-22 04:41:37 +00:00
sslivkoff
ca91e53856 split FreezeOpts into subcomponents 2023-07-21 23:11:51 +00:00
sslivkoff
ce59667c18 reorganize python module namespace 2023-07-19 21:25:34 +00:00
sslivkoff
4ec6558a4e add python adapter 2023-07-18 23:56:39 +00:00