Contract 2893a6666141e885cacfdf8e756fcfa46c7321aa324fdb4f33f95ee5f8ee3f1b

← Back to Index 📥 Download WASM

Meta

rssdkver 27.0.6#60926a20d1f9f0a669d5fe551636f42a1302f0c0
rsver 1.97.1

Instances

  • CB474K4GAWDZXLKCLGRSEX5CFWMEQGY66Q6DW45AIO5KSHQST53HZCTS

Interface

fn init(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn admin(env: soroban_sdk::Env) -> Option
fn get_adapter(
    env: soroban_sdk::Env,
    protocol: soroban_sdk::Symbol,
) -> Option
fn is_registered(env: soroban_sdk::Env, adapter: soroban_sdk::Address) -> bool

Deploys an adapter from an approved wasm hash and registers it.

admin is checked against the stored admin before its authorization is required: requiring auth on a caller-supplied address alone would let anyone pass an address they control and satisfy the check themselves.

fn register_adapter(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    protocol: soroban_sdk::Symbol,
    wasm_hash: soroban_sdk::BytesN<32>,
) -> Result

Imports

WebAssembly Text (WAT) ▶