/evm-create2

Primary LanguageTypeScriptMIT LicenseMIT

Create2 playground

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact
  6. Acknowledgments

About The Project

This is a sample playground to play with Create2 optcode on the EVM. The deployer contract can precompute and deploy a greeter contract.

(back to top)

Built With

  • Node
  • Typescript
  • Solidity
  • Hardhat logo

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Installation

  1. Clone the repo
    git clone https://github.com/Oleh325/evm-create2.git
  2. Install yarn packages
    yarn install
  3. Set your desired condition for the address in the "scripts/getdesiredaddress.ts" file.

(back to top)

Usage

To run tests, run:

hh test

To get the salt for your desired contract address, run:

hh run scripts/getdesiredaddress.ts

It will display all the addressess that have been tried, and in the end give you the desired address and the salt that was used to compute it.

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

You can contact me at: oleh325.work@gmail.com

Project Link: https://github.com/Oleh325/evm-create2

(back to top)

Acknowledgments

Please, check out Youtube logo Chainlink YouTube channel for the great content on smart contracts and Chainlink.

(back to top)