https://github.com/whoislewys/predict-deterministic-address
Minimal JavaScript ports of CREATE2 and CREATE3 logic for address prediction.
https://github.com/whoislewys/predict-deterministic-address
create2 create3 ethereum
Last synced: 2 months ago
JSON representation
Minimal JavaScript ports of CREATE2 and CREATE3 logic for address prediction.
- Host: GitHub
- URL: https://github.com/whoislewys/predict-deterministic-address
- Owner: whoislewys
- License: isc
- Created: 2024-09-13T15:17:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T23:47:17.000Z (about 1 year ago)
- Last Synced: 2025-10-28T11:19:29.974Z (6 months ago)
- Topics: create2, create3, ethereum
- Language: TypeScript
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Predict Deterministic Address
Minimal JavaScript implementation of Create2 and Create3 functions to predict addresses deterministically.
## Development
```
npm i
npm run test
```
## Usage
Installation:
```bash
npm i viem predict-deterministic-address
```
Usage:
```
import { predictDeterministicAddress } from '@whoislewys/predict-deterministic-address';
import { zeroAddress } from 'viem';
// Mock values for implementation, salt, and deployer
const implementation = zeroAddress;
const salt = 69n;
const deployer = zeroAddress;
const predictedAddress = predictDeterministicAddress(implementation, salt, deployer);
```