{"id":26054972,"url":"https://github.com/morpho-org/morpho-seatbelt","last_synced_at":"2025-04-11T02:51:14.182Z","repository":{"id":170671833,"uuid":"638567172","full_name":"morpho-org/morpho-seatbelt","owner":"morpho-org","description":"Morpho seatbelt for governance setup and proposals.","archived":false,"fork":false,"pushed_at":"2024-04-24T10:02:42.000Z","size":337,"stargazers_count":3,"open_issues_count":5,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-25T00:40:43.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morpho-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-09T16:14:33.000Z","updated_at":"2023-06-22T11:20:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"b11f6990-21cd-4549-b39a-8ac55e569513","html_url":"https://github.com/morpho-org/morpho-seatbelt","commit_stats":null,"previous_names":["morpho-org/morpho-seatbelt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-seatbelt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-seatbelt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-seatbelt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-seatbelt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morpho-org","download_url":"https://codeload.github.com/morpho-org/morpho-seatbelt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333104,"owners_count":21086191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-08T10:00:33.430Z","updated_at":"2025-04-11T02:51:14.161Z","avatar_url":"https://github.com/morpho-org.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morpho Seatbelt\r\n\r\n\u003cpicture\u003e\r\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://i.imgur.com/uLq5V14.png\"\u003e\r\n  \u003cimg alt=\"\" src=\"https://i.imgur.com/ZiL1Lr2.png\"\u003e\r\n\u003c/picture\u003e\r\n\r\n---\r\n\r\n## Overview\r\n\r\nMorpho Seatbelt provides a framework for testing governance transactions to update any contract controlled (directly or indirectly) by the Morpho DAO. Morpho uses the [Zodiac](https://github.com/gnosis/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. \r\n\r\n\r\n---\r\n\r\n## Development\r\n\r\n### Getting Started\r\n\r\n- Install [Foundry](https://github.com/foundry-rs/foundry) or Run `foundryup` to initialize Foundry.\r\n- Run `yarn` to initialize the repository by installing the required dependencies.\r\n- Create a `.env` file with a `ALCHEMY_KEY` field populated with a personal alchemy RPC key.\r\n\r\n### Running tests\r\n\r\n- Use `yarn test` to run tests on standard invariants regarding the Morpho DAO \u0026 the $MORPHO token setup.\r\n- Use `yarn test:txs` to run tests on specific DAO transactions.\r\n\r\n### Testing a DAO transaction\r\n\r\n#### Testing a transaction through the Delay Modifier\r\n\r\n- Copy the parameters of the call from the DAO to the delay modifier's `execTransactionFromModule` to a [json file appropriately named](./test/transactions/data/).\r\n- Create a test contract that inherits from `DelayModifierTxTest` (see examples: [ma3CbEthListingTxTest](./test/transactions/ma3CbEthListingTxTest.sol), [ma3REthListingTxTest](./test/transactions/ma3REthListingTxTest.sol), [ma3SDaiUsdtListingTxTest](./test/transactions/ma3SDaiUsdtListingTxTest.sol)).\r\n\r\n#### Testing a transaction to the Morpho DAO\r\n\r\n- Copy the transaction data to a [json file appropriately named](./test/transactions/data/).\r\n- Create a test contract that inherits from `MorphoDaoTxTest` (see example: [swapStefanoGuillaumeDaoSignersTxTest](./test/transactions/swapStefanoGuillaumeDaoSignersTxTest.sol)).\r\n\r\n## Questions \u0026 Feedback\r\n\r\nFor any questions or feedbacks, you can join the Morpho [discord](https://discord.morpho.xyz).\r\n\r\n---\r\n\r\n## Licensing\r\n\r\nThe code is under the MIT License, see [`LICENSE`](./LICENSE).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fmorpho-seatbelt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorpho-org%2Fmorpho-seatbelt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fmorpho-seatbelt/lists"}