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)