Migrate the contract suite to Odra 2.x (builds on the Casper 2.0 ABI; fixes the 1.x nightly/edition2024 toolchain deadlock) and deploy 9 contracts live to casper-test via the Odra livenet deployer: AgentRegistry · X402ReceiptRegistry · RWAEvidenceRegistry · RWAAssetRegistry ReputationEngine · AgentCreditPool · RiskPolicyManager · AgentPassport · DisputeCourt - contracts: odra "2", no_std headers, build.rs (odra-build), per-crate Odra.toml + build_contract/livenet bins; pinned nightly-2025-01-15 for reproducible wasm. - tooling: scaffold_livenet.py, deploy_all_testnet.sh, deploy_one.mjs. - deploys.testnet.json: live manifest; README: on-chain contract hashes. - Deployer key kept out of git (.secrets/ gitignored); wasm artifacts gitignored. Verified on-chain: AgentRegistry ContractPackage present in global state. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
13 lines
465 B
Rust
13 lines
465 B
Rust
//! Livenet deployer for RWAEvidenceRegistry — deploys to Casper Testnet via Odra 2.x.
|
|
use rwa_evidence_registry::RWAEvidenceRegistry;
|
|
use odra::host::{Deployer, NoArgs};
|
|
use odra::prelude::Addressable;
|
|
use odra_casper_livenet_env::env;
|
|
|
|
fn main() {
|
|
let env = env();
|
|
env.set_gas(300_000_000_000u64);
|
|
let contract = RWAEvidenceRegistry::deploy(&env, NoArgs);
|
|
println!("CRED402_DEPLOYED rwa_evidence_registry {}", contract.address().to_string());
|
|
}
|