-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change governor in governanceDecisions to timelock Updated Readme
- Loading branch information
Showing
10 changed files
with
73 additions
and
2,302 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const network = process.env.HARDHAT_NETWORK | ||
const hre = require("hardhat"); | ||
const ethers = hre.ethers; | ||
const GovernorAlpha = require(`./deployments/${network}/GovernorAlpha.json`) | ||
const proposal = require(process.argv[2]) | ||
|
||
async function main() { | ||
|
||
const provider = ethers.providers.getDefaultProvider(network); | ||
const wallet = new ethers.Wallet(process.env.PRIVATE_KEY, provider); | ||
const contract = new ethers.Contract(GovernorAlpha.address, GovernorAlpha.abi, wallet); | ||
|
||
await contract.propose(proposal.targets, proposal.values, proposal.signatures, proposal.callDatas, proposal.description, {gasPrice: 20000000000, gasLimit: 7600000}) | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch(error => { | ||
console.error(error); | ||
process.exit(1); | ||
}); | ||
|
||
|
||
|
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,7 @@ | ||
{ | ||
"targets": ["0x2349E4DaFFa5F78E2cb4Ff46FBB193d614230Dc7"], | ||
"values": ["0"], | ||
"signatures": ["addFoundationMember(string)"], | ||
"callDatas": ["0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000d4268757368616e204c6f64686100000000000000000000000000000000000000"], | ||
"description": "sample description" | ||
} |
Oops, something went wrong.