Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add "--json" format output #25

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,18 @@ ETHEREUM_NODE_URL = 'http://localhost:8545'
Computes the supply chain of a smart-contract at a given block (or over a block period TODO)

```bash
python scsc.py [--block <block_number>] [--offset <blocks_offset>] --address <contract_address> [--calls]
python scsc.py [--block <block_number>] [--offset <blocks_offset>] --address <contract_address> [--calls] [--json]
```

`<block_number>`: Block number that is analyzed. When not provided, assumes the `latest` block number of Ethereum Mainnet.

`<blocks_offset>`: The number of blocks before `<block_number>` that are also analyzed. When not provided, assume the value `0`.

`--calls`: flag that outputs the call trees of each transaction that was analyzed
`--calls`: Flag that outputs the call trees of each transaction that was analyzed

#### Future feature - Export to machine readable format:

./scsc --json --block 1234 --address 0xabcdef012345678 (TODO)
`--json`: Save result as a json file

## Future features
### Contract graph

./scsc --graph --from-block 1234 --to-block 2234 --output graph.dot
Expand Down
Loading