rust-contract-domain-modeling
OfficialEnforce domain invariants in Axone contracts.
Software Engineering#rust#smart-contracts#domain-modeling#domain-invariants#constructors#boundary-checks#axone
Authoraxone-protocol
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Domain-driven modeling patterns centralize invariants and boundaries in AXONE smart contracts, reducing drift between domain concepts and implementation.
Core Features & Use Cases
- Defines domain-owned invariants and canonical representations to prevent leakage of business rules into handlers and storage.
- Provides constructors such as
new,try_new, andfrom_stateto guarantee valid domain state and safe reconstruction. - Guides cross-layer design by clarifying the roles of domain, handlers, services, gateway, queries, and state in AXONE contracts.
Quick Start
Create a simple domain object with a validated constructor and demonstrate reconstruction from persisted state to illustrate the pattern.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rust-contract-domain-modeling Download link: https://github.com/axone-protocol/contracts/archive/main.zip#rust-contract-domain-modeling Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.