Skip to content

Minimal JavaScript version of Clones.predictDeterministicAddress from OpenZeppelin

License

Notifications You must be signed in to change notification settings

whoislewys/predict-deterministic-address

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Predict Deterministic Address

Minimal JavaScript version of Clones.predictDeterministicAddress from OpenZeppelin

Usage

Installation:

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);

About

Minimal JavaScript version of Clones.predictDeterministicAddress from OpenZeppelin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published