| Crates.io | amadeus-runtime |
| lib.rs | amadeus-runtime |
| version | 1.3.5 |
| created_at | 2025-12-16 22:19:34.973289+00 |
| updated_at | 2025-12-30 05:13:19.501558+00 |
| description | Consensus library for Amadeus blockchain including WASM execution, BIC contracts, and state management |
| homepage | |
| repository | https://github.com/amadeusprotocol/rs_node |
| max_upload_size | |
| id | 1988850 |
| size | 133,717 |
WebAssembly execution runtime and built-in contracts for the Amadeus blockchain.
[dependencies]
amadeus-runtime = "1.3"
use amadeus_runtime::consensus::bic::coin;
use amadeus_runtime::consensus::consensus_kv;
// Check token balance
let balance = coin::balance(&env, recipient_pk, b"AMA")?;
// State operations
consensus_kv::kv_put(&mut env, b"balance", b"1000")?;
let value = consensus_kv::kv_get(&env, b"balance")?;
use amadeus_runtime::consensus::bic::contract;
// Validate WASM before deployment
let wasm_bytes = std::fs::read("contract.wasm")?;
contract::validate(&wasm_bytes)?;
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 runtimeFor detailed API documentation, see docs.rs/amadeus-runtime.
Apache-2.0