kopy-kat / modulekit

Development Kit for building Smart Account Modules

Home Page:https://docs.rhinestone.wtf/modulekit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleKit

A development kit for building and testing smart account modules.

ModuleKit allows you to:

  • Easily build smart account modules with interfaces for:
    • Validators
    • Executors
    • Hooks
  • Unit test your modules using a dedicated helper library
  • Integration test your modules using different modular ERC-4337 accounts and a helper library that abstracts away the complexity

In-depth documentation is available at docs.rhinestone.wtf.

The ModuleKit is in active development and is subject to breaking changes. If you spot a bug, please take out an issue and we will fix it as soon as we can.

Installation

With Foundry

forge install rhinestonewtf/modulekit

Using a package manager

pnpm install rhinestonewtf/modulekit

Using our template

git clone https://github.com/rhinestonewtf/module-template.git
cd module-template
forge install

Updating

To update the ModuleKit, run:

forge update rhinestonewtf/modulekit

or

pnpm update rhinestonewtf/modulekit

Usage

To learn more about using ModuleKit, visit the tools section of the docs. To get a better understanding of Modules generally, visit the modules section and for hands-on tutorials on the entire lifecycle of modules, visit the tutorials section.

Features

  • ERC-4337 integration tests
    • On-chain integration test (EntryPoint -> Account)
    • Off-chain integration test (Bundler simulation and spec validation)
  • Unit testing library
  • Different Module types
    • Validators
    • Executors
    • Hooks
  • Different modular accounts
    • ERC-7579
    • Safe
    • Biconomy
    • Kernel
  • Deployment helper using Module Registry
  • Gas calculation helper

Examples

For module examples, check out our modulekit examples repo and for module inspiration see our module idea list. For general examples, check out the awesome modular accounts repo.

Contributing

For feature or change requests, feel free to open a PR, start a discussion or get in touch with us.

For guidance on how to create PRs, see the CONTRIBUTING guide.

Credits

  • Safe{Core} Protocol: ExecutorManager.sol is heavily insprired by Safe's SafeProtocolManager but is compatible across all supported accounts

Authors ✨


zeroknots

💻

Konrad

💻

About

Development Kit for building Smart Account Modules

https://docs.rhinestone.wtf/modulekit/

License:GNU General Public License v3.0


Languages

Language:Solidity 100.0%