Contract 10f2c1f3624bf391e75722453b3857088b70465559624acba8ad47b37b85ee4e

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.93.0

Instances

  • CAE5BJQ7TB2WDUSNP2EVUIOE6KLXTWD7HE55WH7H2IY6TZFDKNOUVZJS
  • CDFZS3HYP2J2WAOCCTCAVQBJQP6TVDJLMNJJWWNWUTA3EDSM6C3CFRZ6
  • CDXCDVCAGHLLF32F3NSZLLTDZXCKEBWYS7ANQ6QT4JP7D55FMQ7HJS4Z

Interface

Upgrade this contract's own WASM Requires admin signature AND WASM hash must match pre-approved hash

fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), soroban_sdk::Error>

Extend TTL — anyone can call

fn extend_ttl(env: soroban_sdk::Env)

Initialize with the admin's Ed25519 public key (32 bytes, from G-address)

fn initialize(
    env: soroban_sdk::Env,
    admin_pubkey: soroban_sdk::BytesN<32>,
) -> Result<(), soroban_sdk::Error>
fn __check_auth(
    env: soroban_sdk::Env,
    signature_payload: soroban_sdk::BytesN<32>,
    signature: soroban_sdk::Val,
    auth_contexts: soroban_sdk::Vec,
) -> Result<(), soroban_sdk::Error>

Pre-approve a WASM hash for contract upgrades Requires admin signature (via __check_auth)

fn approve_wasm(
    env: soroban_sdk::Env,
    wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), soroban_sdk::Error>

Execute a proposed admin change after timelock expires

fn execute_admin_change(env: soroban_sdk::Env) -> Result<(), soroban_sdk::Error>

Propose an admin key change — starts the timelock Requires admin signature (via __check_auth)

fn propose_admin_change(
    env: soroban_sdk::Env,
    new_admin_pubkey: soroban_sdk::BytesN<32>,
) -> Result<(), soroban_sdk::Error>

Imports

WebAssembly Text (WAT) ▶