Commit graph

368 commits

Author SHA1 Message Date
sslivkoff
a82c645bf6 add all.sh example script 2023-12-02 20:51:43 -08:00
sslivkoff
4d1031980e
0.3.0 (#142) 0.3.0
* 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
sslivkoff
8764f62f0d
improve usability as a library (#141) 2023-12-01 06:09:15 -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
sslivkoff
b6c7f1df97
update to latest polars and related libs (#138) 2023-11-24 21:58:24 -06:00
sslivkoff
ebfc97b358
Skip noncompliant logs (#136)
* fix log datasets aliases and null calls

* skip noncompliant logs when decoding
2023-11-22 12:16:57 -06:00
sslivkoff
b41ffa517b
fix log datasets aliases and null calls (#134) 2023-11-20 21:17:56 -06:00
PA
a03dc649db
fix: readme help update (#129) 2023-11-20 21:08:36 -06:00
cool-mestorf
6e9ec88a35
filter erc transfers and traces by from/to addresses (#123)
* filter erc transfers and traces by from/to addresses

* review: move reward address to proper filter

* review: filter by rpc parameter

* fmt
2023-11-15 12:19:29 -08:00
Fahim Ahmed
fd8a752ee4
remove NumberChunk's numbers() function (#124) 2023-11-14 19:45:46 -08:00
sslivkoff
2b4e8b2bc2
remove raw data after decode (#122) 2023-11-13 20:06:07 -08:00
sslivkoff
9408ae02b0 add event__ prefix to decoded event columns 2023-11-13 19:38:50 -08:00
sslivkoff
accb8de727 add uniswap example 2023-11-13 19:09:42 -08:00
sslivkoff
f0966ee278
fix improper sort of decoded columns (#121) 2023-11-13 18:57:30 -08:00
sslivkoff
d577fef047
maintain order of decoded columns (#120)
* maintain order of decoded columns

* fix test
2023-11-13 18:13:38 -08:00
sslivkoff
0b04b4a867
fix event decoding to binary (#119) 2023-11-13 17:13:46 -08:00
sslivkoff
83c06ecc7f
fix hex encoding of empty event decoding (#118) 2023-11-13 16:44:54 -08:00
sslivkoff
15b570da5a
fix case where decoding an empty dataframe of events with u256 (#117) 2023-11-13 16:22:29 -08:00
sslivkoff
cd1f3a42e4
add suffix to datatype subdir (#116) 2023-11-13 12:16:56 -08:00
sslivkoff
0733f705e5
fix event decoding and add u256 / i256 support (#115) 2023-11-13 09:41:58 -08:00
Fahim Ahmed
27fc374b06
Fix typo in error handling comment (#114) 2023-11-12 23:13:14 -08:00
cool-mestorf
7da85e8f7a
add FromAddres dimension & take it from cli parameter, filter txs by from_address & to_address (#111)
* add FromAddress dimension and add corresponding implementations

* implement from_address & to_address filter for txs

* take from_address from cli params, filter tx and receipts by from & to address

* remove unnecessary vec definition

* fmt

* remove timestamp param

* review: fetch less receipts if transaction filter is applied
2023-11-12 13:57:54 -08:00
sslivkoff
2c803b6128
add --label argument (#112)
* add --label argument

* fix typo in docstring
2023-11-11 13:49:30 -08:00
sslivkoff
aa946d3c51
add noop result to fourbyte traces (#110) 2023-11-09 22:38:06 -08:00
Jiri Andras
6d5dd0d13e
Add block_timestamp, block_hash as optional columns to transactions (#109)
Co-authored-by: jiri.andras <jiri.andras@tatum.io>
2023-11-08 12:28:44 -08:00
sslivkoff
8f9b48458d
rename rust python dir (#107) 2023-11-07 23:47:33 -08:00
sslivkoff
6c31708099
upgrade deps (#106) 2023-11-07 22:53:39 -08:00
sslivkoff
8d956c9a32
allow erc20 metadata reverts (#105)
* allow erc20 metadata reverts

* formatting
2023-11-06 17:47:42 -08:00
sslivkoff
8481281f80 update git issue templates 2023-11-06 17:27:26 -08:00
sslivkoff
63dc679bd5 add storage dataset aliases 2023-11-05 20:43:36 -08:00
sslivkoff
f0a0aa7d50
maintain datatype order (#104) 2023-11-05 19:39:24 -08:00
sslivkoff
b8f7826415
maintain column order (#103) 2023-11-05 18:31:11 -08:00
sslivkoff
bf68de0568
add --chunk-order (#102) 2023-11-05 16:51:31 -08:00
sslivkoff
64ed5720ff rename 4byte_traces -> 4byte_counts 2023-11-05 16:09:37 -08:00
sslivkoff
18e4642147
add geth_opcodes dataset (#101) 2023-11-05 10:40:03 -08:00
sslivkoff
fa1816b2ed
add javascript tracer (#100) 2023-11-04 10:31:08 -07:00
sslivkoff
95cae6d75f add aliases to dataset help output 2023-11-04 09:14:30 -07:00
sslivkoff
bddf2bab31
add 4byte_traces (#99) 2023-11-04 09:06:07 -07:00
sslivkoff
116a7129c1
add state reads datasets (#98) 2023-11-03 12:20:42 -07:00
sslivkoff
df114b5847
add storage reads dataset (#96) 2023-11-03 10:51:00 -07: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
b66ba9b961 use u32 for block_number in txs 2023-11-02 19:30:55 +00:00
sslivkoff
3f4a4ec3c6 add small note about python installation 2023-11-02 19:30:12 +00:00
sslivkoff
df8e6f1cfc
update Cargo.lock deps (#95) 2023-11-01 16:49:09 -07:00
sslivkoff
322d665c42 fix chunk accounting in summary messages 2023-10-21 14:48:34 -07:00
sslivkoff
0bfc2fa768
fix option binary hex convert (#91)
* fix option binary hex convert

* apply formatter
2023-10-21 14:12:49 -07:00
sslivkoff
155987a00c make error outputs cleaner 2023-10-21 13:54:56 -07:00
sslivkoff
861684e6a0 fix saved location of remembered command 2023-10-21 12:56:20 -07:00