Skip to content

Implement Core State and Access Control for SimpleTreasury #89

@bitfalt

Description

@bitfalt

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:

  1. A SimpleTreasury.cairo contract file is created that implements the ITreasuryModule interface.
  2. A state variable governance_module: ContractAddress is declared.
  3. A state variable dao_core: ContractAddress is declared to check for admin permissions.
  4. The constructor initializes both governance_module and dao_core addresses.
  5. An internal function _only_governance() is created that reverts the transaction if the caller is not the governance_module.
  6. An internal function _only_admin() is created that reverts if the caller is not an admin of the dao_core contract.

Metadata

Metadata

Assignees

No one assigned

    Labels

    onlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions