{"id":25729504,"url":"https://github.com/morpho-org/sdks","last_synced_at":"2026-04-10T11:01:04.109Z","repository":{"id":248652903,"uuid":"829304716","full_name":"morpho-org/sdks","owner":"morpho-org","description":"Collection of SDKs to ease interactions with the Morpho protocol and Morpho Vaults","archived":false,"fork":false,"pushed_at":"2026-04-07T08:10:12.000Z","size":8805,"stargazers_count":31,"open_issues_count":7,"forks_count":32,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-04-07T10:13:46.023Z","etag":null,"topics":["anvil","apollo","bundler","ethers","graphql","liquidation","sdk","simulation","test","viem","vitest","wagmi"],"latest_commit_sha":null,"homepage":"https://morpho.org","language":"TypeScript","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":"audits/2025-06-26-morpho-sdks-cantinacode.pdf","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-16T07:02:32.000Z","updated_at":"2026-04-02T13:42:33.000Z","dependencies_parsed_at":"2024-08-27T08:29:44.405Z","dependency_job_id":"6ef01fa1-9247-40ee-abfd-62b48fa1b803","html_url":"https://github.com/morpho-org/sdks","commit_stats":null,"previous_names":["morpho-org/sdks"],"tags_count":1083,"template":false,"template_full_name":null,"purl":"pkg:github/morpho-org/sdks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsdks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsdks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsdks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsdks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morpho-org","download_url":"https://codeload.github.com/morpho-org/sdks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsdks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31639524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["anvil","apollo","bundler","ethers","graphql","liquidation","sdk","simulation","test","viem","vitest","wagmi"],"created_at":"2025-02-26T01:27:28.670Z","updated_at":"2026-04-10T11:01:04.090Z","avatar_url":"https://github.com/morpho-org.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morpho SDKs\n\n![image](https://github.com/user-attachments/assets/c77d5054-5342-4c1b-81ae-b8c002c2fd8d)\n\n\u003cp align=\"center\"\u003e\u003ci\u003eA collection of Software Development Kits to ease interactions with the Morpho protocol and Morpho Vaults.\u003c/i\u003e\u003c/p\u003e\n\u003cbr /\u003e\n\n## Getting Started\n\n### Viem\n\n- [**`@morpho-org/blue-sdk-viem`**](./packages/blue-sdk-viem/): Viem-based augmentation of `@morpho-org/blue-sdk` that exports (and optionally injects) viem-based fetch methods\n- [**`@morpho-org/bundler-sdk-viem`**](./packages/bundler-sdk-viem/): Viem-based extension of `@morpho-org/simulation-sdk` that exports utilities to transform simple interactions on Morpho (such as `Blue_Borrow`) and Morpho Vaults (such as `MetaMorpho_Deposit`) into the required bundles (with ERC20 approvals, transfers, etc) to submit to the bundler onchain\n- [**`@morpho-org/liquidity-sdk-viem`**](./packages/liquidity-sdk-viem/): Viem-based package that helps seamlessly calculate the liquidity available through the PublicAllocator\n- [**`@morpho-org/liquidation-sdk-viem`**](./packages/liquidation-sdk-viem/): Viem-based package that provides utilities to build viem-based liquidation bots on Morpho and examples using Flashbots and Morpho's GraphQL API\n\n### Wagmi\n\n- [**`@morpho-org/blue-sdk-wagmi`**](./packages/blue-sdk-wagmi/): Wagmi-based package that exports Wagmi (React) hooks to fetch Morpho-related entities\n- [**`@morpho-org/simulation-sdk-wagmi`**](./packages/simulation-sdk-wagmi/): Wagmi-based extension of `@morpho-org/simulation-sdk` that exports Wagmi (React) hooks to fetch simulation states\n\n### Development\n\n- [**`@morpho-org/morpho-ts`**](./packages/morpho-ts/): TypeScript package to handle all things time \u0026 format-related\n\n- [**`@morpho-org/blue-sdk`**](./packages/blue-sdk/): Framework-agnostic package that defines Morpho-related entity classes (such as `Market`, `Token`, `Vault`)\n\n- [**`@morpho-org/simulation-sdk`**](./packages/simulation-sdk/): Framework-agnostic package that defines methods to simulate interactions on Morpho (such as `Supply`, `Borrow`) and Morpho Vaults (such as `Deposit`, `Withdraw`)\n\n### Testing\n\n- [**`@morpho-org/test`**](./packages/test/): Viem-based package that exports utilities to build Vitest \u0026 Playwright fixtures that spawn anvil forks as child processes\n- [**`@morpho-org/test-wagmi`**](./packages/test-wagmi/): Wagmi-based extension of `@morpho-org/test` that injects a test Wagmi config as a test fixture alongside viem's anvil client\n\n- [**`@morpho-org/morpho-test`**](./packages/morpho-test/): Framework-agnostic extension of `@morpho-org/blue-sdk` that exports test fixtures useful for E2E tests on forks\n\n### Test coverage\n\n1. Install `lcov`: `sudo apt install lcov`\n2. Generate coverage info: `pnpm test:coverage`\n3. Generate hierarchical coverage report: `pnpm coverage:report`\n\n## Getting involved\n\nLearn [how to add a new chain configuration](./docs/adding-new-chain.md) to the sdks.\n\n## Debugging\n\nHere's a tutorial on how to link a specific package to debug at runtime:\n\n1. From the repository in which you want to link the package: `pnpm link ../your/relative/path/to/sdks/packages/blue-sdk`\n\n```diff\n-    \"@morpho-org/blue-sdk\": \"5.0.0\",\n+    \"@morpho-org/blue-sdk\": \"link:../../../sdks/packages/blue-sdk\",\n```\n\n2. Modify `blue-sdk` [package.json](./packages/blue-sdk/package.json) to use js main \u0026 js files:\n\n```diff\n-  \"main\": \"src/index.ts\",\n+  \"main\": \"lib/index.js\",\n+  \"types\": \"lib/index.d.ts\"\n```\n\n3. In a separate process, start: `pnpm --dir packages/blue-sdk build --watch`\n\n## Authors\n\n- [@rubilmax](https://github.com/rubilmax) (rubilmax.eth, [Twitter](https://x.com/rubilmax))\n- [@oumar-fall](https://github.com/oumar-fall) (oumix.eth)\n- [@julien-devatom](https://github.com/oumar-fall) ([Twitter](https://x.com/julien_devatom))\n\n## License\n\n[MIT](/LICENSE) License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fsdks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorpho-org%2Fsdks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fsdks/lists"}