Skip to content

Conversation

@Cybermaxi7
Copy link

Description

This PR adds a standard interface for treasury modules, enabling consistent interaction between governance and treasury modules in the protocol.

Changes Made

  • Created contract/src/ITreasuryModule.cairo interface file.
  • Defined function signatures for:
    • execute_transfer(token_address, recipient, amount)
    • set_governance_module(new_governance_module)
    • get_balance(token_address) -> u256
  • Added Cairo-style docstrings for clarity and maintainability.

Checklist

  • I have tested my changes locally.
  • I have updated the documentation (if applicable).
  • I have added/updated unit tests (if applicable).
  • My code follows the project's coding standards.
  • My changes do not introduce new warnings or errors.

Related Issues

Screenshots or Screen Recording

N/A

Additional Context

This interface will help future governance modules integrate seamlessly with any compliant treasury module and improve protocol modularity.

@Cybermaxi7
Copy link
Author

@bitfalt i am waiting for a review

Copy link
Collaborator

@bitfalt bitfalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like CairoZero, we don't use that anymore.

@Cybermaxi7
Copy link
Author

@bitfalt i have made the necessary changes
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define the ITreasuryModule Interface

3 participants