#vault #cosmos #osmosis #neutron

vaultenator

An opinionated base vault implementing CosmWasm Vault Standard using Tokenfactory

20 releases (2 stable)

new 2.0.1 Nov 5, 2024
0.5.1 Nov 8, 2024
0.5.0 May 17, 2024
0.0.2 Mar 20, 2024

#412 in Magic Beans

Download history 109/week @ 2024-07-28 121/week @ 2024-08-11 8/week @ 2024-08-18 9/week @ 2024-09-15 14/week @ 2024-09-22 13/week @ 2024-09-29 14/week @ 2024-10-06 9/week @ 2024-10-13 210/week @ 2024-11-03

220 downloads per month

MIT/Apache

25KB
523 lines

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/

Dependencies

~6–10MB
~201K SLoC