Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roynalnaruto/vanity-create2
https://github.com/roynalnaruto/vanity-create2
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/roynalnaruto/vanity-create2
- Owner: roynalnaruto
- License: apache-2.0
- Created: 2022-07-22T05:03:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-22T05:14:51.000Z (over 2 years ago)
- Last Synced: 2024-03-18T13:21:29.475Z (8 months ago)
- Language: Rust
- Size: 59.6 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```