-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add coordinator address to the WalletCoordinator contract (#626)
Refs #622 The coordinator is EOA which will propose sweeps through the `WalletCoordinator` contract. The first coordinator address is controlled by the dev team but the DAO can add and remove coordinator addresses as they wish. The deployment scripts have been tested on Goerli and resulted in deploying and setting up this contract: https://goerli.etherscan.io/address/0x61120BAdeb77b27f4d933472AD6f93484238F6A3.
- Loading branch information
Showing
8 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { HardhatRuntimeEnvironment } from "hardhat/types" | ||
import { DeployFunction } from "hardhat-deploy/types" | ||
|
||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
const { getNamedAccounts, deployments } = hre | ||
const { execute } = deployments | ||
const { deployer, coordinator } = await getNamedAccounts() | ||
|
||
await execute( | ||
"WalletCoordinator", | ||
{ from: deployer, log: true, waitConfirmations: 1 }, | ||
"addCoordinator", | ||
coordinator | ||
) | ||
} | ||
|
||
export default func | ||
|
||
func.tags = ["AddCoordinatorAddress"] | ||
func.dependencies = ["WalletCoordinator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters