vaultenator

Crates.iovaultenator
lib.rsvaultenator
version0.5.1
sourcesrc
created_at2024-03-20 13:56:24.729977
updated_at2024-11-08 09:12:06.293805
descriptionAn opinionated base vault implementing CosmWasm Vault Standard using Tokenfactory
homepagehttps://github.com/margined-protocol/vaultenator
repositoryhttps://github.com/margined-protocol/vaultenator
max_upload_size
id1180509
size47,591
Max (maxrobot)

documentation

README

Vaultenator

GitHub Actions CI Workflow Status Crates.io Version

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/
Commit count: 39

cargo fmt