Skip to content

Commit

Permalink
docs: add missing contracts dataset (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
banteg committed Aug 18, 2023
1 parent 954fb18 commit a3371c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ cryo can extract the following datasets from EVM nodes:
- `blocks`
- `transactions` (alias = `txs`)
- `logs` (alias = `events`)
- `contracts`
- `traces` (alias = `call_traces`)
- `state_diffs` (alias for `storage_diffs` + `balance_diff` + `nonce_diffs` + `code_diffs`)
- `balance_diffs`
Expand Down Expand Up @@ -95,6 +96,7 @@ Many `cryo` cli options will affect output schemas by adding/removing columns or
|Blocks|1|1|`eth_getBlockByNumber`|
|Transactions|1|multiple|`eth_getBlockByNumber`|
|Logs|multiple|multiple|`eth_getLogs`|
|Contracts|1|multiple|`trace_block`|
|Traces|1|multiple|`trace_block`|
|State Diffs|1|multiple|`trace_replayBlockTransactions`|
|Vm Traces|1|multiple|`trace_replayBlockTransactions`|
Expand All @@ -117,6 +119,7 @@ Arguments:
- blocks
- transactions (alias = txs)
- logs (alias = events)
- contracts
- traces (alias = call_traces)
- state_diffs (= balance + code + nonce + storage diffs)
- balance_diffs
Expand Down
1 change: 1 addition & 0 deletions crates/cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ fn get_datatype_help() -> &'static str {
- <white><bold>blocks</bold></white>
- <white><bold>transactions</bold></white> (alias = <white><bold>txs</bold></white>)
- <white><bold>logs</bold></white> (alias = <white><bold>events</bold></white>)
- <white><bold>contracts</bold></white>
- <white><bold>traces</bold></white> (alias = <white><bold>call_traces</bold></white>)
- <white><bold>state_diffs</bold></white> (= balance + code + nonce + storage diffs)
- <white><bold>balance_diffs</bold></white>
Expand Down
1 change: 1 addition & 0 deletions crates/python/python_tests/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'transactions',
'txs',
'logs',
'contracts',
'traces',
'nonce_diffs',
'balance_diffs',
Expand Down

0 comments on commit a3371c2

Please sign in to comment.