api-design
FreeBest practices for designing CosmWasm smart contract APIs. Use when defining message types, designing execute/query interfaces, or optimizing API ergonomics.
The English summary is being prepared. Showing the original description.
Guide for writing Rust doc comments that produce accurate generated contract documentation. Use when editing Instantiate/Execute/Query/Response types or any public schema-facing API.
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
The generated documentation is only as good as the Rust doc comments on schema-facing types.
Write the comments on the source types first, then regenerate docs with the doc-generation workflow.
Document all schema-facing public items:
Prefer comments that are:
Avoid comments that are:
Explain what the message or field means in the protocol, not only its Rust type.
Document constraints such as:
When the public API intentionally uses String or Binary, document the encoded format explicitly.
Examples from this repository include:
StringBinaryUse short examples when the payload format is not self-evident, especially for:
For Axone contracts, strong API comments often need to explain:
These semantics matter more than low-level implementation detail.
Good details to include:
governance:decide/3"Weak details to avoid:
api-design to shape the contract surface itself.doc-generation after comment changes to refresh generated artifacts.No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Best practices for designing CosmWasm smart contract APIs. Use when defining message types, designing execute/query interfaces, or optimizing API ergonomics.
The English summary is being prepared. Showing the original description.
Guide for writing conventional commit messages. Use when committing changes, writing commit messages, or reviewing commit history.
The English summary is being prepared. Showing the original description.
Axone contract structure and Abstract SDK patterns. Use when scaffolding or refactoring contracts, deciding layer boundaries, wiring AppContract entrypoints, or adding module metadata and replies.
The English summary is being prepared. Showing the original description.
Axone deployment workflows with cargo-make, cw-orch, and Abstract. Use when publishing modules, installing them on accounts, running local chain tasks, or inspecting deployments.
The English summary is being prepared. Showing the original description.
Guide for regenerating Axone contract schemas and rendered Markdown docs. Use when contract APIs or metadata change, when checking generated-doc drift, or when preparing documentation commits.
The English summary is being prepared. Showing the original description.
Domain-driven modeling patterns for Axone contracts. Use when introducing domain concepts, encoding invariants, or deciding boundaries between domain, handlers, services, gateways, queries, and state.
The English summary is being prepared. Showing the original description.