Skip to content

alexkroeger/the-federal-govt-as-solidity

Repository files navigation

Deploying the United States government

This repo walks thru deploying OpenZeppelin governance contracts and utilizing them to create and execute an on-chain proposal.

This project uses hardhat.

Setup

  1. clone the repository
  2. run npm install
  3. if you plan on deploying contracts to Ropsten (deploy_and_verify.ts script), you'll need to create a .env file with values for ETHERSCAN_API_KEY, ROPSTEN_URL, and PRIVATE_KEY.

Usage

To run the proposal scenario in your local hardhat environment:

npx hardhat run scripts/proposal_scenario.ts

To deploy the contracts to Ropsten and verify on etherscan, run:

npx hardhat run --network ropsten scripts/deploy_and_verify.ts

To deploy to another network, you'll need to add another network to hardhat.config.ts.

About

A technical guide to on-chain governance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published