Contract 24f44a917f5c30448fbd6d9a32460d99bc44001da1018e8214633d5d3d6716f7

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.93.0

Instances

  • CAH55MK42OG7PRWO3VVXCEQRRIBILVARFZKWRGJKVVGHTVMLFWT4ETCM
  • CBL7ITKXJZPQ4DWIOYAMEB75W76L4AFOUOWUZMDW7N5JSWSPLKODMCL2
  • CCCURPT2FI2PRJK2ZYS43OKIAMH35GLPWR76ZFVWTD4SAKS35XSRMCDA

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) ▶