Contract 4cb15e3f1cd37821f2f0ffd7b880bf1d8238344b3d58045e892864fa29a4133a

← Back to Index 📥 Download WASM

Meta

rssdkver 25.3.0#dcbea44513feb7734af6b6c4aced2c4a7a2715d0
rsver 1.90.0

Instances

  • CCSVSEMTYQYKBR2UJZIABDP4VJYYFYNCCRCKVZXBJJVBKPT6ZJHMUR5L

Interface

Initialize the factory with an admin and a channel contract wasm hash.

Callable by the opener.

Auth

None.

fn __constructor(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    wasm_hash: soroban_sdk::BytesN<32>,
)

Returns the admin address.

Callable by anyone.

Auth

None.

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

Returns the stored channel contract wasm hash.

Callable by anyone.

Auth

None.

fn wasm_hash(env: soroban_sdk::Env) -> soroban_sdk::BytesN<32>

Update the stored channel contract wasm hash.

Callable by the admin.

Auth

  • admin: required.
fn set_wasm(env: soroban_sdk::Env, wasm_hash: soroban_sdk::BytesN<32>)

Deploy a new channel.

Callable by anyone.

Auth

  • from: required if amount > 0.
fn open(
    env: soroban_sdk::Env,
    salt: soroban_sdk::BytesN<32>,
    token: soroban_sdk::Address,
    from: soroban_sdk::Address,
    commitment_key: soroban_sdk::BytesN<32>,
    to: soroban_sdk::Address,
    amount: i128,
    refund_waiting_period: u32,
) -> soroban_sdk::Address

Imports

WebAssembly Text (WAT) ▶