https://github.com/alchemyplatform/modular-account-plugin
A very basic ERC6900 compliant plugin
https://github.com/alchemyplatform/modular-account-plugin
Last synced: 12 months ago
JSON representation
A very basic ERC6900 compliant plugin
- Host: GitHub
- URL: https://github.com/alchemyplatform/modular-account-plugin
- Owner: alchemyplatform
- Created: 2024-02-29T03:25:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T17:59:13.000Z (over 2 years ago)
- Last Synced: 2024-05-21T04:11:07.389Z (about 2 years ago)
- Language: Solidity
- Homepage:
- Size: 14.6 KB
- Stars: 7
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Modular Account Plugin
This is a very basic example of an ERC6900 compatible plugin called CounterPlugin, built in Foundry. It has one function that can be called through a user operation, called `increment`. In `/src` you will find this plugin, documented so you can understand how it works in detail.
You will also find a basic test in `/test` which will show this counter plugin working. Here you'll see how to setup the modular account, install the plugins and send a user operation specifying the intent to increment the count. Use `forge test` to run these tests.
Feel free to modify the plugin and tests to challenge your understanding of ERC6900 plugins, or use this to start building your own plugin!
## Foundry Documentation
https://book.getfoundry.sh/