generated from aragon/osx-plugin-template-hardhat
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Independent Managing DAO config script
- Loading branch information
Showing
8 changed files
with
432 additions
and
258 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
145 changes: 0 additions & 145 deletions
145
packages/contracts/deploy/03_managing_dao/10_install_mgmt_dao_plugins.ts
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
packages/contracts/deploy/03_managing_dao/11_drop_deployer_permission.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
packages/contracts/deploy/99_verification/20_mgmt_dao_plugin.ts
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
import {GovernancePluginsSetupParams} from '../../plugin-setup-params'; | ||
import {isLocalChain} from '../../utils/hardhat'; | ||
import {getPluginRepoInfo} from '../../utils/plugin-repo-info'; | ||
import {DeployFunction} from 'hardhat-deploy/types'; | ||
import {HardhatRuntimeEnvironment} from 'hardhat/types'; | ||
|
||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
const pluginRepoInfo = getPluginRepoInfo( | ||
GovernancePluginsSetupParams.PLUGIN_REPO_ENS_NAME, | ||
hre.network.name | ||
); | ||
if (!pluginRepoInfo) | ||
throw new Error('Could not read the address of the deployed contract'); | ||
|
||
console.log('\nSummary'); | ||
console.log( | ||
'If you wish to configure the Managing DAO, update the .env file:' | ||
); | ||
|
||
console.log(`GOVERNANCE_PLUGIN_REPO_ADDRESS="${pluginRepoInfo.address}"`); | ||
|
||
console.log(''); | ||
console.log('Also, make sure to define the following values:'); | ||
console.log( | ||
`MGMT_DAO_PROPOSAL_DURATION="604800" # 60 * 60 * 24 * 7 (seconds)` | ||
); | ||
console.log(`MGMT_DAO_MIN_PROPOSAL_PARTICIPATION="500000" # 50%`); | ||
console.log(`MGMT_DAO_PROPOSAL_SUPPORT_THRESHOLD="500000" # 50%`); | ||
console.log( | ||
`MGMT_DAO_INITIAL_EDITORS="0x1234,0x2345,0x3456,0x4567..." # Comma separated addresses` | ||
); | ||
|
||
console.log(''); | ||
console.log('Done'); | ||
}; | ||
|
||
export default func; | ||
|
||
func.tags = ['Verification']; | ||
func.runAtTheEnd = true; | ||
func.skip = (hre: HardhatRuntimeEnvironment) => | ||
Promise.resolve(isLocalChain(hre.network.name)); |
34 changes: 0 additions & 34 deletions
34
packages/contracts/deploy/99_verification/21_mgmt_dao_root.ts
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.