Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.43 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.43 KB

Create 2 Deployer

Deployed Locations

Network Deployment
Goerli 0xceEdACe70F46091986CA09Ac834362b74bC211F4
Mainnet 0xceEdACe70F46091986CA09Ac834362b74bC211F4
Polygon 0xceEdACe70F46091986CA09Ac834362b74bC211F4

Installation

yarn add -D create2-deployer

Usage

import {Deployer} from 'create2-deployer';

const signer = await ethers.getSigner(address);
const deployer = new Deployer(signer);

Test Environment

Add to hardhat.config.ts

import 'create2-deployer/testing';

Example .env

# used in the network url
INFURA_API_KEY=

# the api key to verify smart contracts using
ETHERSCAN_API_KEY=

# all of the private keys used (mainly just deployer for now)
PRIVATE_KEY=

CONFIRMATIONS=6
GAS_PRICE_MULTIPLIER=1.5
CREATE2_DEBUG=true