Skip to content

rmeissner/hardhat-safe-deployer-example

Repository files navigation

Hardhat Safe Deployer Example

This is an example project that uses the Gnosis Safe to deploy a contract.

For the the hardhat-safe-deployer plugin is used.

Install

  • Run nvm use to set correct node version
  • Run yarn to install dependencies

Deployin test contract

  • Setup env (See .env.sample)
  • Run yarn deploy rinkeby to trigger the deployment process for Rinkeby
  • Once deploying "TestContract" [...] is shown open the Safe in the Safe web interface (e.g. https://rinkeby.gnosis.io) image
  • Confirm and execute the transaction via the Safe web interface image
  • After deployment verify contract on Etherscan with yarn verify rinkeby
    • Note: make sure that Etherscan has indexed the transaction already

Notes on Setup

  • The Safe is exposed as a named account called deployer via the hardhat-deploy plugin (see line 93 of the hardhat config)
  • The deployer is used int he deployment task. This will trigger the routing to the Safe web interface (see deployment_test.ts)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published