Contract 74b7964d0690bc2665ad8d5b3486d6b3f718ed47e321fe04274c2b445b81f5d3

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.96.0

Instances

  • CB4UMTP53YPX2WXPWKLPMURWLD2K75YJ3LZ3H5FPCGWYNSG7TSHSECKW

Interface

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

Rotate the admin. Auth: current admin.

fn set_admin(env: soroban_sdk::Env, new: soroban_sdk::Address)
fn strategy_of(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
) -> Option
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 caller's Strategy at its deterministic address. Auth: owner. One per owner (AlreadyDeployed otherwise).

fn deploy_strategy(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
) -> Result

Deterministic Strategy address for owner (computable before deploy).

fn predict_address(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
) -> soroban_sdk::Address

Deploy the owner's Strategy and run the first invest in one signed tx (the default first-investment path). Auth: owner (covers the whole tree).

fn deploy_and_invest(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    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

Imports

WebAssembly Text (WAT) ▶