Skip to content

A smart contract for Hedera DAO. Verified by The Hashgraph Association

License

Notifications You must be signed in to change notification settings

Hedera-Varmeta/Easi-DAO-smartcontract

Repository files navigation

Hedera DAO smart contract

Alt text

Governor factory

Contract for:

  • Onboarding new Governor and Vote token preset.
  • Creating new governor (a set of 4 contracts: Governor, Vote token, Timelock, Treasury)

Folder structure

Governor Templates

Contains all supported governor presets

Vote tokens

Contains all vote token presets

Onboarding new Preset

  • Write preset in Upgradeable form. Use Upgradeable to utilize Minimal Proxy will reduce lots of gas fee for calling createGovernor.
  • Deploy preset at an address then add it into GovernorFactory contract.
  • See example scripts in scripts/deploy_hashgraph.ts

Create Governor

  • createGovernor requires _governorInitializeData and _voteTokenInitializeData. These parameters use for initializing state for new governor and vote token contract. Each preset has its own set of initialize parameter, so we use this way for the flexibility.
  • See example in test file tests/GovernorFactory.test.ts

Deploy new set of smart contracts

    ts-node scripts/deploy_hashgraph.ts

About

A smart contract for Hedera DAO. Verified by The Hashgraph Association

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published