Contract 8230c71dc89c708353d7d4f5d824f9c6b290388cfb33d436449a1b7dcb731ec4

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.94.1

Instances

  • CDHU7LWK3UX4X6BALYSPOPODIYVZ5XUM2ZPI57GLF3PEQVFLX4A75TMI

Interface

Upgrades the current contract to a new WASM hash.

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

Initializes the registry and stores the admin.

fn initialize(env: soroban_sdk::Env, admin: soroban_sdk::Address)

Adds a new implementation id to WASM hash mapping.

fn add_implementation(
    env: soroban_sdk::Env,
    id: soroban_sdk::Symbol,
    wasm_hash: soroban_sdk::BytesN<32>,
)

Returns the WASM hash for the requested implementation id.

fn get_implementation(
    env: soroban_sdk::Env,
    id: soroban_sdk::Symbol,
) -> Option>

Lists all registered implementations with their ids and WASM hashes.

fn list_implementations(env: soroban_sdk::Env) -> soroban_sdk::Vec

Removes an implementation mapping and updates the cached implementation list.

fn remove_implementation(env: soroban_sdk::Env, id: soroban_sdk::Symbol)

Imports

WebAssembly Text (WAT) ▶