{"id":28264475,"url":"https://github.com/morpho-org/morpho-onchain-examples","last_synced_at":"2025-08-30T07:15:40.571Z","repository":{"id":119012976,"uuid":"526496620","full_name":"morpho-org/morpho-onchain-examples","owner":"morpho-org","description":"🏃 Learn how to interact on-chain with the Morpho-Compound protocol!","archived":false,"fork":false,"pushed_at":"2022-10-05T14:11:26.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T08:49:18.510Z","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":null,"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":null,"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,"zenodo":null}},"created_at":"2022-08-19T06:57:20.000Z","updated_at":"2025-05-22T17:50:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7922e05-7d11-4730-a471-d5c2205e19a7","html_url":"https://github.com/morpho-org/morpho-onchain-examples","commit_stats":null,"previous_names":["morpho-org/morpho-onchain-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/morpho-org/morpho-onchain-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-onchain-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-onchain-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-onchain-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-onchain-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morpho-org","download_url":"https://codeload.github.com/morpho-org/morpho-onchain-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-onchain-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272817705,"owners_count":24998038,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-05-20T09:10:43.084Z","updated_at":"2025-08-30T07:15:40.556Z","avatar_url":"https://github.com/morpho-org.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morpho-Compound On-Chain Examples\n\nLearn how to interact with the Morpho-Compound protocol on-chain using a Smart Contract!\n\n## Installation\n\nThis example repository uses [foundry](https://github.com/foundry-rs/foundry) to manage dependencies and resolve them at compilation.\n\n```bash\ngit clone git@github.com:morpho-labs/morpho-onchain-examples.git\ncd morpho-onchain-examples\ngit submodule update --init --recursive\n```\n\n## Dependencies\n\nDependencies are included as git submodules and installable on any git repository. We recommend doing so via:\n\n```bash\ngit submodule add https://github.com/morpho-dao/morpho-core-v1 lib/morpho-dao/morpho-core-v1\ngit submodule add https://github.com/morpho-dao/morpho-utils lib/morpho-dao/morpho-utils\ngit submodule add https://github.com/OpenZeppelin/openzeppelin-contracts lib/openzeppelin/contracts\n```\n\nBut you can also install them via `npm` or `yarn`:\n\n```bash\nyarn add @morphodao/morpho-core-v1\nyarn add @openzeppelin/contracts\n```\n\n\u003e [morpho-utils](https://github.com/morpho-dao/morpho-utils) is not yet available as an npm package!\n\n## Examples\n\n- [MorphoSupplier.sol](./src/MorphoSupplier.sol): supply through Morpho-Compound using a Smart Contract\n- [MorphoBorrower.sol](./src/MorphoBorrower.sol): borrow through Morpho-Compound using a Smart Contract\n- [MorphoRewardsTracker.sol](./src/MorphoRewardsTracker.sol): track rewards accrued through Morpho-Compound using a Smart Contract\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fmorpho-onchain-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorpho-org%2Fmorpho-onchain-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fmorpho-onchain-examples/lists"}