What problem does it solve?
This Skill provides the tools and guidance to develop custom modules for the Evolve blockchain SDK, enabling developers to create new blockchain functionalities.
Core Features & Use Cases
- Module Development: Write stateless code executors implementing the
AccountCode trait.
- State Management: Utilize compile-time validated storage prefixes with
#[derive(AccountState)] and various collections (Item, Map, Vector).
- Function Markers: Define initialization (
#[init]), execution (#[exec]), and query (#[query]) functions with clear environment interactions.
- Error Handling & Events: Implement custom errors and emit events for transaction results.
- Testing: Write unit tests with
MockEnv and integration tests with TestApp.
Quick Start
Create a new module by defining a struct with #[derive(AccountState)] and implementing its methods using function markers like #[init], #[exec], and #[query].