Contract c3ff69d4f24985e4907ddd1c0bafbf9e639fb19faa27d897e45c23e7b8baed3b

← Back to Index 📥 Download WASM

Meta

rssdkver 23.1.0#7456be9d91fe1f4cb070fc2732bac78244ce6c3f
rsver 1.93.0-nightly

Instances

  • CBOQKSNXOPVOVUZRYITHNWTW3IJ3QSJTUJOU4JXYCL2BGJZSOXQCCS6W
  • CBQ34QFFT4YZAQB3ZYNQCKA7EWYQD5A4W3JDT7LRMY6NAU3C2XB2SLA2
  • CCSZO4WUWWY2NIDWI5G6U77ZLVSET3WJ3P62HMYCI55OKKZLHTKMOSM7
  • CDAYBNIREUIA7PYOA6YNGFVFTI6WJ7YGHHGSRYE6ZLJ2DAGLWGNYER4Z

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 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 update_context_rule_name(
    env: soroban_sdk::Env,
    context_rule_id: u32,
    name: soroban_sdk::String,
) -> ContextRule
fn update_context_rule_valid_until(
    env: soroban_sdk::Env,
    context_rule_id: u32,
    valid_until: Option,
) -> ContextRule

Imports

WebAssembly Text (WAT) ▶