Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rmeissner/hardhat-safe-deployer
https://github.com/rmeissner/hardhat-safe-deployer
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rmeissner/hardhat-safe-deployer
- Owner: rmeissner
- License: lgpl-3.0
- Created: 2021-05-04T20:00:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-23T11:39:58.000Z (over 2 years ago)
- Last Synced: 2024-11-01T03:32:29.012Z (16 days ago)
- Language: TypeScript
- Size: 62.5 KB
- Stars: 18
- Watchers: 5
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hardhat Safe Deployer
## Usage
- Install hardhat plugin with `yarn add github://rmeissner/hardhat-safe-deployer`
- Import `import { setupSafeDeployer } from "hardhat-safe-deployer";` in your `hardhat.config.ts`
- Setup deployer by calling `setupSafeDeployer`. The methods expects the following parameter
- an Ethers Wallet for an owner/ delegate of the deployer Safe
- the address of the deployerSafe
- the url of the Safe service that should be used## Example config
```ts
import { setupSafeDeployer } from "hardhat-safe-deployer";import dotenv from "dotenv";
// Load environment variables.
dotenv.config();
const { INFURA_KEY, MNEMONIC, MNEMONIC_PATH, ETHERSCAN_API_KEY, SAFE_SERVICE_URL, DEPLOYER_SAFE } = process.env;setupSafeDeployer(
Wallet.fromMnemonic(MNEMONIC!!, MNEMONIC_PATH),
DEPLOYER_SAFE,
SAFE_SERVICE_URL
)
```An example project can be found at: https://github.com/rmeissner/hardhat-safe-deployer-example