fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address
Rotate the admin. Auth: current admin.
fn set_admin(env: soroban_sdk::Env, new_admin: soroban_sdk::Address)
The owner's deployed slot numbers (sparse, e.g. {0, 5, 42}) in deploy order.
Lets the indexer/api recover the true slot for each strategy (paired with
strategy_at) and compute the next free slot — never assume dense 0..count.
fn owner_slots(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
) -> soroban_sdk::Vec
The strategy at (owner, index), or None if that slot is free.
fn strategy_at(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
index: u32,
) -> Option
All of the owner's deployed strategies (empty for a not-yet-deployed owner).
Iterates the sparse OwnerSlots — never 0..count.
fn strategy_of(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
) -> soroban_sdk::Vec
fn __constructor(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
strategy_wasm: soroban_sdk::BytesN<32>,
registry: soroban_sdk::Address,
)
fn strategy_wasm(env: soroban_sdk::Env) -> soroban_sdk::BytesN<32>
fn strategy_count(env: soroban_sdk::Env) -> u32
Deploy the owner's Strategy at slot index, at its deterministic address.
Auth: owner. One per (owner, index) (AlreadyDeployed otherwise);
refuses past OWNER_SLOT_CAP slots per owner (TooManyStrategies).
fn deploy_strategy(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
index: u32,
) -> Result
Deterministic Strategy address for (owner, index) (computable pre-deploy).
fn predict_address(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
index: u32,
) -> soroban_sdk::Address
Deploy the owner's Strategy at index and run the first invest in one
signed tx (the default first-investment path). Auth: owner (whole tree).
fn deploy_and_invest(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
index: u32,
asset: soroban_sdk::Address,
total: i128,
allocations: soroban_sdk::Vec,
) -> Result
Set the template Wasm hash used by FUTURE deploys. Auth: admin.
fn set_strategy_wasm(env: soroban_sdk::Env, new_wasm: soroban_sdk::BytesN<32>)
fn strategy_by_index(env: soroban_sdk::Env, index: u32) -> Option
How many slots the owner has deployed (a count, not a max index).
fn strategy_count_of(env: soroban_sdk::Env, owner: soroban_sdk::Address) -> u32