Contract 763ea32c344f79bbce87d814f55b3328b831237443084e726caf8b8e4ac2b4a7

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdk_spec_shaking 2
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.96.0

Instances

  • CC4ZVRIYM33M5FVAUDFWK7JXO3PWIVSKKEBXVEEC5E6KPYISXIMLUJCP

Interface

fn upgrade(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_wasm_hash: soroban_sdk::BytesN<32>,
)

View: whether account currently holds role.

fn has_role(
    env: soroban_sdk::Env,
    account: soroban_sdk::Address,
    role: soroban_sdk::Symbol,
) -> bool

Deploys and registers a PT without creating AMM or pool. caller is recorded as the deployer in PtDeployed; it must sign for the call. The deployed PT's admin is the Factory's current admin (collapsed from the prior separate authority field — see PR body for the breaking-ABI note).

fn deploy_pt(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    ibt: soroban_sdk::Address,
    duration: u64,
) -> soroban_sdk::Address

Grant role to account. caller must be the contract admin or hold the admin-role of role. Auth + admin checks are enforced by access_control::grant_role.

fn grant_role(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    account: soroban_sdk::Address,
    role: soroban_sdk::Symbol,
)

Revoke role from account. Same auth model as grant_role.

fn revoke_role(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    account: soroban_sdk::Address,
    role: soroban_sdk::Symbol,
)
fn get_registry(env: soroban_sdk::Env) -> soroban_sdk::Address
fn __constructor(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    registry: soroban_sdk::Address,
)
fn transfer_admin_role(
    env: soroban_sdk::Env,
    new_admin: soroban_sdk::Address,
    live_until_ledger: u32,
)
fn accept_admin_transfer(env: soroban_sdk::Env)

Imports

WebAssembly Text (WAT) ▶