A (⚡️BLAZINGLY FAST!!) function selector miner (using the CPU) for EVM contracts that conform to the ABI specs.
- Clone the repo
$ git clone https://github.com/Mouradif/vanity-function-selector- Build
$ cd vanity-function-selector
$ zig build --release=fast- (Optional) Put the binary in a directory in your
$PATH
# For example
$ mv zig-out/bin/vfs ~/.local/bin$ vfs
Usage: vfs <pattern> <function-name> [...ARG_TYPE]
Examples
# Will return a function mintXX() (where 'XX' is the brute-forced suffix) that has a selector starting with 0xaa
$ vfs 0xaa mint
# Use the character 'x' as a wildcard. The following is equivalent to just 0xaa
$ vfs 0xaaxxxxxx mint
# You can pass function argument types as subsequent arguments
$ vfs 0xf0f0 bridge address address uint256
# Or as a single argument if you have complex types like tuples or structs
$ vfs 0x00 swap "(address,address,uint256[]),(address,address,uint256[])"