diff --git a/README.md b/README.md index bf9eb5e..d215af8 100644 --- a/README.md +++ b/README.md @@ -66,19 +66,19 @@ On first startup, you'll need to apply database migrations with: ### Inspect a single block Inspecting block [12914944](https://twitter.com/mevalphaleak/status/1420416437575901185): -**Note**: Add `--geth` at the end if RPC_URL points to a geth / geth like node. +**Note**: Add `geth` at the end instead of `parity` if RPC_URL points to a geth / geth like node. ``` -./mev inspect 12914944 +./mev inspect 12914944 parity ``` ### Inspect many blocks Inspecting blocks 12914944 to 12914954: -**Note**: Add `--geth` at the end if RPC_URL points to a geth / geth like node. +**Note**: Add `geth` at the end instead of `parity` if RPC_URL points to a geth / geth like node. ``` -./mev inspect-many 12914944 12914954 +./mev inspect-many 12914944 12914954 parity ``` ### Inspect all incoming blocks diff --git a/mev b/mev index d85015a..186ea79 100755 --- a/mev +++ b/mev @@ -37,15 +37,17 @@ case "$1" in ;; inspect) block_number=$2 + rpc_type=$3 echo "Inspecting block $block_number" - kubectl exec -ti deploy/mev-inspect -- poetry run inspect-block $block_number + kubectl exec -ti deploy/mev-inspect -- poetry run inspect-block $block_number --type $rpc_type ;; inspect-many) start_block_number=$2 end_block_number=$3 + rpc_type=$4 echo "Inspecting from block $start_block_number to $end_block_number" kubectl exec -ti deploy/mev-inspect -- \ - poetry run inspect-many-blocks $start_block_number $end_block_number + poetry run inspect-many-blocks $start_block_number $end_block_number --type $rpc_type ;; test) echo "Running tests" diff --git a/mev_inspect/block.py b/mev_inspect/block.py index 5f6a3fa..0b2a759 100644 --- a/mev_inspect/block.py +++ b/mev_inspect/block.py @@ -17,6 +17,7 @@ _calltype_mapping = { "CALL": "call", "DELEGATECALL": "delegateCall", "CREATE": "create", + "CREATE2": "create2", "SUICIDE": "suicide", "REWARD": "reward", }