cw-controllers

Crates.iocw-controllers
lib.rscw-controllers
version2.0.0
sourcesrc
created_at2020-12-22 21:07:21.940142
updated_at2024-03-15 14:50:25.241961
descriptionCommon controllers we can reuse in many contracts
homepage
repositoryhttps://github.com/CosmWasm/cw-minus
max_upload_size
id326204
size31,906
Core Rust Developers (github:cosmwasm:core-rust-developers)

documentation

README

CW Controllers: Common controllers for many contracts

This is a collection of "controllers" that we end up reimplementing in many contracts. I use the word "controller" similar to the MVC framework style, where it is an element that encapsulated business logic and data access. We can also directly handle some ExecuteMsg and QueryMsg variants by adding a sub-router to these controllers.

This is the beginning of an experiment in code composition, and how best to reuse code among multiple contracts. We have already seen some "extend" and existing base contract (like cw20-staking extends cw20-base), but this goes for smaller scale units.

Supported controllers:

  • Admin (UpdateAdmin handler, Admin querier, set_admin and is_admin methods)
Commit count: 0

cargo fmt