Initialize the factory with an admin and a channel contract wasm hash.
Callable by the opener.
None.
fn __constructor(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
wasm_hash: soroban_sdk::BytesN<32>,
)
Returns the admin address.
Callable by anyone.
None.
fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address
Returns the stored channel contract wasm hash.
Callable by anyone.
None.
fn wasm_hash(env: soroban_sdk::Env) -> soroban_sdk::BytesN<32>
Update the stored channel contract wasm hash.
Callable by the admin.
admin: required.fn set_wasm(env: soroban_sdk::Env, wasm_hash: soroban_sdk::BytesN<32>)
Deploy a new channel.
Callable by anyone.
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