Contract b297a38d2cc75604665ceddb1c1ae5cecc0ea3e3ceb81ab8b81e078a1bb2c9f3

← Back to Index 📥 Download WASM

Meta

binver 1.0.0
rssdkver 26.1.1#8ac18efb681a1c0b4b85a38c5a380300344e3f39
rsver 1.93.0

Instances

  • CCQHR2UUZJIKGNNMKZZIE4ZUO257WPXUUB6GG3V45FKDXEVMNMDSOLPE

Interface

Upgrade factory contract WASM — requires admin authorization

fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), FactoryError>

Get agent contract address by domain node

fn get_agent(
    env: soroban_sdk::Env,
    domain_node: soroban_sdk::BytesN<32>,
) -> Option

Update admin address — requires current admin authorization

fn set_admin(
    env: soroban_sdk::Env,
    new_admin: soroban_sdk::Address,
) -> Result<(), FactoryError>

Initialize the factory with admin and the AgentSmartAccount WASM hash

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    account_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), FactoryError>

Deploy a deterministic AgentSmartAccount for a domain node

fn deploy_agent(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    domain_node: soroban_sdk::BytesN<32>,
    master_key: soroban_sdk::BytesN<32>,
    session_key: soroban_sdk::BytesN<32>,
    policy: SessionPolicy,
) -> Result

Get domain node by agent contract address

fn get_domain_node(
    env: soroban_sdk::Env,
    agent: soroban_sdk::Address,
) -> Option>

Total deployed agents count

fn get_total_deployed(env: soroban_sdk::Env) -> u32

Get active Account WASM hash

fn get_account_wasm_hash(
    env: soroban_sdk::Env,
) -> Result, FactoryError>

Predict deterministic agent address for a domain node

fn predict_agent_address(
    env: soroban_sdk::Env,
    domain_node: soroban_sdk::BytesN<32>,
) -> soroban_sdk::Address

Set Account WASM hash — requires admin authorization

fn set_account_wasm_hash(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), FactoryError>

Imports

WebAssembly Text (WAT) ▶