forked from justlend/justlend-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request justlend#13 from justlend/feature/governance-bravo
Support GovernorBravo
- Loading branch information
Showing
8 changed files
with
59 additions
and
17 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
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
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
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
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
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,24 @@ | ||
const GovernorBravoDelegate = artifacts.require("./GovernorBravoDelegate.sol"); | ||
const GovernorBravoDelegator = artifacts.require("./GovernorBravoDelegator.sol"); | ||
|
||
const TIMELOCK_ADDRESS = process.env.TIMELOCK_ADDRESS; | ||
const WJST_ADDRESS = process.env.WJST_ADDRESS; | ||
const VOTING_PERIOD = process.env.VOTING_PERIOD; | ||
const VOTING_DELAY = process.env.VOTING_DELAY; | ||
const PROPOSAL_THRESHOLD = process.env.PROPOSAL_THRESHOLD; | ||
const ADMIN_ADDRESS = process.env.ADMIN_ADDRESS; | ||
|
||
module.exports = async function(deployer) { | ||
await deployer.deploy(GovernorBravoDelegate); | ||
await GovernorBravoDelegate.deployed(); | ||
await deployer.deploy( | ||
GovernorBravoDelegator, | ||
TIMELOCK_ADDRESS, | ||
WJST_ADDRESS, | ||
ADMIN_ADDRESS, | ||
GovernorBravoDelegate.address, | ||
VOTING_PERIOD, | ||
VOTING_DELAY, | ||
PROPOSAL_THRESHOLD | ||
); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
PRIVATE_KEY_NILE= | ||
RESERVER_ADMIN= | ||
ADMIN= | ||
ADMIN= | ||
|
||
#For Governance Bravo deployment | ||
TIMELOCK_ADDRESS= | ||
WJST_ADDRESS= | ||
ADMIN_ADDRESS= | ||
VOTING_PERIOD=28800 | ||
VOTING_DELAY=1 | ||
PROPOSAL_THRESHOLD=100000000000000000000000000 |
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