Generic deploy function for any contract type (memo, smartwallet, etc.) Takes wasm_hash, salt, and constructor_args directly
fn deploy(
env: soroban_sdk::Env,
wasm_hash: soroban_sdk::BytesN<32>,
salt: soroban_sdk::BytesN<32>,
constructor_args: soroban_sdk::Vec,
) -> soroban_sdk::Address
Upgrade this contract to a new WASM
fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
Returns the relayer address
fn get_relayer(env: soroban_sdk::Env) -> soroban_sdk::Address
Constructor: Automatically called during deployment Initializes the factory with relayer and USDC token address
fn __constructor(
env: soroban_sdk::Env,
relayer_address: soroban_sdk::Address,
usdc_token_address: soroban_sdk::Address,
)
Returns the USDC token address
fn get_usdc_token(env: soroban_sdk::Env) -> soroban_sdk::Address
Calculate deterministic address for any salt
fn calculate_address(
env: soroban_sdk::Env,
salt: soroban_sdk::BytesN<32>,
) -> soroban_sdk::Address