Skip to content

Collection of SDKs to ease interactions with the Morpho protocol and Morpho Vaults

License

Notifications You must be signed in to change notification settings

morpho-org/sdks

Repository files navigation

Morpho SDKs

image

A collection of Software Development Kits to ease interactions with the Morpho protocol and Morpho Vaults.


Getting Started

Viem

  • @morpho-org/blue-sdk-viem: Viem-based augmentation of @morpho-org/blue-sdk that exports (and optionally injects) viem-based fetch methods
  • @morpho-org/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
  • @morpho-org/liquidity-sdk-viem: Viem-based package that helps seamlessly calculate the liquidity available through the PublicAllocator
  • @morpho-org/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

Wagmi

Ethers

Development

Testing

  • @morpho-org/test: Viem-based package that exports utilities to build Vitest & Playwright fixtures that spawn anvil forks as child processes

  • @morpho-org/test-wagmi: Wagmi-based extension of @morpho-org/test that injects a test Wagmi config as a test fixture alongside viem's anvil client

  • @morpho-org/morpho-test: Framework-agnostic extension of @morpho-org/blue-sdk that exports test fixtures useful for E2E tests on forks

Authors

License

MIT License