Contract 42f478254a07cad3e2f1f2bace3934456d2bfd86e573d9c5f75579e85fa94f66

← Back to Index 📥 Download WASM

Meta

rssdkver 23.4.0#673d6c4f2368d282d25da29bda55c21b8be69ca6
rsver 1.94.0-nightly

Instances

  • CBTWRT6GK3JXZNH3MDKCMZRR7ORAMX2GKUQ6X3Q5JRBAS4WBFZMUEU4S

Interface

Deploys a memo contract with deterministic address Auto-flushes USDC to relayer during deployment

fn deploy_memo(
    env: soroban_sdk::Env,
    wasm_hash: soroban_sdk::BytesN<32>,
    memo: soroban_sdk::String,
) -> soroban_sdk::Address

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

Calculates the deterministic address for a memo string

fn calculate_memo_address(
    env: soroban_sdk::Env,
    memo: soroban_sdk::String,
) -> soroban_sdk::Address

Imports

WebAssembly Text (WAT) ▶