Skip to content

morpho-org/morpho-seatbelt

Repository files navigation

Morpho Seatbelt


Overview

Morpho Seatbelt provides a framework for testing governance transactions to update any contract controlled (directly or indirectly) by the Morpho DAO. Morpho uses the Zodiac collection of tools to enforce transaction delays and restrict certain functions to addresses with an appropriate role. Some key utilities included are reading gnosis safe transactions from a json, reading key internal state variables of contracts without external getters, and minimal interfaces to limit dependencies.


Development

Getting Started

  • Install Foundry or Run foundryup to initialize Foundry.
  • Run yarn to initialize the repository by installing the required dependencies.
  • Create a .env file with a ALCHEMY_KEY field populated with a personal alchemy RPC key.

Running tests

  • Use yarn test to run tests on standard invariants regarding the Morpho DAO & the $MORPHO token setup.
  • Use yarn test:txs to run tests on specific DAO transactions.

Testing a DAO transaction

Testing a transaction through the Delay Modifier

Testing a transaction to the Morpho DAO

Questions & Feedback

For any questions or feedbacks, you can join the Morpho discord.


Licensing

The code is under the MIT License, see LICENSE.

About

Morpho seatbelt for governance setup and proposals.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •