Contract aa610eec52ba0d894a049baf647c01355218eafc240f179050fca241d4e40f19

← Back to Index 📥 Download WASM

Meta

rssdkver 23.1.0#7456be9d91fe1f4cb070fc2732bac78244ce6c3f
rsver 1.93.0-nightly

Instances

  • CAC3KJLMUYGIJ5MEX6JE6NNA6BGVKEJ5B3HIDLVWFTQYOMNYMT4AA42E
  • CCACY36F5MKUVV3MWRJPDIQXK66TZB76BUQKSKIHMDRMXNY4VWS5PTPW
  • CCD3CI7LKD74EZIM6UC765VYDASERR3XL5YGHIQE27G5TRYHU3QHI2LQ

Interface

fn init(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    token: soroban_sdk::Address,
    destinations: soroban_sdk::Vec,
    label: soroban_sdk::String,
)

Get the account label

fn get_label(env: soroban_sdk::Env) -> soroban_sdk::String
fn add_policy(
    env: soroban_sdk::Env,
    context_rule_id: u32,
    policy: soroban_sdk::Address,
    policy_params: soroban_sdk::Val,
)
fn add_signer(env: soroban_sdk::Env, context_rule_id: u32, signer: Signer)
fn __check_auth(
    env: soroban_sdk::Env,
    signature_payload: soroban_sdk::BytesN<32>,
    signatures: Signatures,
    auth_contexts: soroban_sdk::Vec,
) -> Result<(), SmartAccountError>
fn remove_policy(
    env: soroban_sdk::Env,
    context_rule_id: u32,
    policy: soroban_sdk::Address,
)
fn remove_signer(env: soroban_sdk::Env, context_rule_id: u32, signer: Signer)

Withdrawal to the admin address

fn admin_withdraw(env: soroban_sdk::Env, amount: i128) -> Result<(), RemittanceError>
fn configure_forex(
    env: soroban_sdk::Env,
    router: soroban_sdk::Address,
    counter_token: soroban_sdk::Address,
) -> Result<(), RemittanceError>
fn add_context_rule(
    env: soroban_sdk::Env,
    context_type: ContextRuleType,
    name: soroban_sdk::String,
    valid_until: Option,
    signers: soroban_sdk::Vec,
    policies: soroban_sdk::Map,
) -> ContextRule

Execute a transfer to one of the whitelisted destinations

fn execute_transfer(
    env: soroban_sdk::Env,
    to: soroban_sdk::Address,
    amount: i128,
) -> Result<(), RemittanceError>
fn get_context_rule(env: soroban_sdk::Env, context_rule_id: u32) -> ContextRule
fn get_context_rules(
    env: soroban_sdk::Env,
    context_type: ContextRuleType,
) -> soroban_sdk::Vec
fn remove_context_rule(env: soroban_sdk::Env, context_rule_id: u32)

Update the allowed destinations

fn update_destinations(
    env: soroban_sdk::Env,
    destinations: soroban_sdk::Vec,
) -> Result<(), RemittanceError>
fn execute_forex_transfer(
    env: soroban_sdk::Env,
    to: soroban_sdk::Address,
    amount: i128,
    min_amount_out: i128,
    deadline: u64,
    swap_to_counter: bool,
) -> Result<(), RemittanceError>
fn update_context_rule_name(
    env: soroban_sdk::Env,
    context_rule_id: u32,
    name: soroban_sdk::String,
) -> ContextRule
fn approve_multisig_withdraw(
    env: soroban_sdk::Env,
    multisig: soroban_sdk::Address,
    request_id: u32,
) -> Result<(), RemittanceError>
fn initiate_multisig_withdraw(
    env: soroban_sdk::Env,
    multisig: soroban_sdk::Address,
    to: soroban_sdk::Address,
    amount: i128,
) -> Result<(), RemittanceError>
fn update_context_rule_valid_until(
    env: soroban_sdk::Env,
    context_rule_id: u32,
    valid_until: Option,
) -> ContextRule

Imports

WebAssembly Text (WAT) ▶