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