@whoislewys/predict-deterministic-address
v1.1.2
Published
Minimal JavaScript ports of CREATE2 and CREATE3 logic for address prediction.
Readme
Predict Deterministic Address
Minimal JavaScript version of Clones.predictDeterministicAddress from OpenZeppelin
Development
npm i
npm run testUsage
Installation:
npm i viem predict-deterministic-addressUsage:
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);