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)