Skip to content

Mouradif/vanity-function-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vanity Function Selector

A (⚡️BLAZINGLY FAST!!) function selector miner (using the CPU) for EVM contracts that conform to the ABI specs.

Installation

  1. Clone the repo
$ git clone https://github.com/Mouradif/vanity-function-selector
  1. Build
$ cd vanity-function-selector
$ zig build --release=fast
  1. (Optional) Put the binary in a directory in your $PATH
# For example
$ mv zig-out/bin/vfs ~/.local/bin

Usage

$ 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[])"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published