-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
Description
Implement the SimpleTreasury contract with its core state variables and constructor. The most critical part is establishing the secure link to the single, authorized governance module.
Acceptance Criteria:
- A SimpleTreasury.cairo contract file is created that implements the ITreasuryModule interface.
- A state variable governance_module: ContractAddress is declared.
- A state variable dao_core: ContractAddress is declared to check for admin permissions.
- The constructor initializes both governance_module and dao_core addresses.
- An internal function _only_governance() is created that reverts the transaction if the caller is not the governance_module.
- An internal function _only_admin() is created that reverts if the caller is not an admin of the dao_core contract.
Metadata
Metadata
Assignees
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week