Contract c3e4cec972aec5c6529406c60f5d824ba1a82fc18db18dddd9dbd7494c6475f0

← Back to Index 📥 Download WASM

Meta

cliver 28.0.0#300aaf69ab100536678bdb641428b06f06b318ea
rssdkver 27.0.6#60926a20d1f9f0a669d5fe551636f42a1302f0c0
rsver 1.96.0

Instances

  • CD45NGTM3BVQPBOLZEKZH3MEEBSD5GFM6KLQZ7TGGOC5VEMOOEBSYE37

Interface

fn get_pool(env: soroban_sdk::Env) -> soroban_sdk::Address

Writer only. Binds wallet_hash to staker permanently.

fn register(
    env: soroban_sdk::Env,
    wallet_hash: soroban_sdk::BytesN<32>,
    staker: soroban_sdk::Address,
) -> Result<(), RegistryError>

Permissionless: keep a registration and its staker's list from being archived. Archived entries are restorable, never deleted, but this keeps reads cheap.

fn extend_ttl(
    env: soroban_sdk::Env,
    wallet_hash: soroban_sdk::BytesN<32>,
) -> Result<(), RegistryError>
fn get_writer(env: soroban_sdk::Env) -> soroban_sdk::Address

Registered AND its staker has a live stake (pool.is_eligible).

fn is_covered(env: soroban_sdk::Env, wallet_hash: soroban_sdk::BytesN<32>) -> bool

Pool only: called by the pool's governance when a writer change executes (GovChange::RegistryWriter).

fn set_writer(env: soroban_sdk::Env, new_writer: soroban_sdk::Address)
fn get_wallets(
    env: soroban_sdk::Env,
    staker: soroban_sdk::Address,
) -> soroban_sdk::Vec>

pool is fixed for the life of this registry.

fn __constructor(
    env: soroban_sdk::Env,
    writer: soroban_sdk::Address,
    pool: soroban_sdk::Address,
)
fn get_registration(
    env: soroban_sdk::Env,
    wallet_hash: soroban_sdk::BytesN<32>,
) -> Option

Imports

WebAssembly Text (WAT) ▶