20 releases (2 stable)
2.0.1 | Nov 5, 2024 |
---|---|
0.5.1 | Nov 8, 2024 |
0.5.0 | May 17, 2024 |
0.0.2 | Mar 20, 2024 |
#4 in #osmosis
38 downloads per month
25KB
523 lines
Vaultenator
An opinionated base vault implementing CosmWasm Vault Standard using Tokenfactory.
Features
- Administration - Handles opening and pausing contracts
- Configuration - Manages contract configuration
- Ownership - Manages contract ownership
- State - Manages contract state
- CW4626 - CosmWasm Vault Standard compliant interface
- Tokenfactory - Tokenfactory denoms as vault share tokens
Usage
Use the crate in your CosmWasm project
cargo add vaultenator
Implement traits or include default implementations. See the Example Vault for an exmaple implementation using Vaulteantor.
Development
# Build contract
cargo wasm
# Run tests
cargo test
# Check formatting
cargo fmt --all -- --check
# Run clippy
cargo clippy -- -D warnings
A git pre-commit script is available to run these checks.
cp ./scripts/pre-commmit .git/hooks/
Dependencies
~6–10MB
~201K SLoC