-
Notifications
You must be signed in to change notification settings - Fork 723
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## cast selectors | ||
|
||
### NAME | ||
|
||
cast-selectors - Extracts function selectors and arguments from bytecode | ||
|
||
### SYNOPSIS | ||
|
||
``cast selectors`` [*options*] *bytecode* | ||
|
||
### DESCRIPTION | ||
|
||
Extracts function selectors and arguments from bytecode using the [EVMole library](https://github.com/cdump/evmole) | ||
|
||
### OPTIONS | ||
|
||
`-r` | ||
`--resolve` | ||
Resolve the function signatures for the extracted selectors using https://openchain.xyz | ||
|
||
{{#include common-options.md}} | ||
|
||
### EXAMPLES | ||
|
||
1. Get WETH's contract function signatures & arguments: | ||
```sh | ||
cast selectors $(cast code 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
[cast](./cast.md), [cast 4byte](./cast-4byte.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters