Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/roynalnaruto/vanity-create2


https://github.com/roynalnaruto/vanity-create2

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

# CREATE2 Salt Searcher

Given the contract `deployer`, `contract` and a prefix/suffix matching pattern for the contract address, spits out `salt` that generates a contract address satisfying the pattern.

### Usage

The following command spits out a random `salt` and the corresponding contract address prefixed with `0xdeadbeef` when `0x71C7656EC7ab88b098defB751B7401B5f6d8976F` is the deployer of the `ERC20.sol` contract:

```
cargo run --prefix \
-c openzeppelin-contracts/contracts/token/ERC20/ERC20.sol \
-d 71C7656EC7ab88b098defB751B7401B5f6d8976F \
-m deadbeef
```