amadeus-runtime
WebAssembly execution runtime and built-in contracts for the Amadeus blockchain.
Installation
[]
= "1.3"
Features
- WASM Execution - Gas-metered WebAssembly runtime (wasmi-based)
- Built-in Contracts - Core system contracts (Coin, Epoch, Contract, Sol, Lockup)
- State Management - Key-value store with atomic mutations
- Contract Validation - WASM bytecode validation before deployment
Quick Example
use coin;
use consensus_kv;
// Check token balance
let balance = balance?;
// State operations
kv_put?;
let value = kv_get?;
use contract;
// Validate WASM before deployment
let wasm_bytes = read?;
validate?;
Module Structure
consensus::bic- Built-in contracts (coin, epoch, contract, sol, lockup)consensus::consensus_apply- Transaction execution and ApplyEnvconsensus::consensus_kv- State store operationsconsensus::consensus_muts- Mutation typesconsensus::wasm- WebAssembly runtime
Documentation
For detailed API documentation, see docs.rs/amadeus-runtime.
License
Apache-2.0