GithubHelp home page GithubHelp logo

faheelsattar / modulekit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rhinestonewtf/modulekit

0.0 0.0 0.0 1.48 MB

Development Kit for building Smart Account Modules

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

License: GNU General Public License v3.0

Shell 0.06% Solidity 99.94%

modulekit's Introduction

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

Using our template

Use the module-template to create a new repo and install the dependencies:

pnpm install

Using git submodules

forge install rhinestonewtf/modulekit

Using a package manager

pnpm install @rhinestone/modulekit

Updating

To update the ModuleKit, run:

forge update rhinestonewtf/modulekit

or

pnpm update @rhinestone/modulekit

Usage

To learn more about using ModuleKit, visit the modulekit 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
    • Fallbacks
  • 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 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.

Using this repo

To install dependencies, run:

pnpm install

To build the project, run:

pnpm build

To run tests, run:

pnpm test -r

Credits

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

Authors โœจ


zeroknots

๐Ÿ’ป

Konrad

๐Ÿ’ป

modulekit's People

Contributors

kopy-kat avatar zeroknots avatar kanthgithub avatar yasseinbilal avatar derekchiang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.