Contract 8ecdddf5f29c224fd217b771140b9a1595831f2f924e0b26106b2e72283bcdf4

← Back to Index 📥 Download WASM

Meta

rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.97.1

Instances

  • CCSOGHRJS3EBGVHVZSNOGMGV7SAVOUSCVSGDWOT25HBTNN65OYEQNLJJ

Interface

Enforce the threshold policy.

Validates that the number of authenticated signers meets the configured threshold, records that authorization occurred and emits an event.

fn enforce(
    env: soroban_sdk::Env,
    context: Context,
    authenticated_signers: soroban_sdk::Vec,
    context_rule: ContextRule,
    smart_account: soroban_sdk::Address,
)

Install the threshold policy for a smart account.

Stores the threshold configuration for the given context rule.

fn install(
    env: soroban_sdk::Env,
    install_params: SimpleThresholdAccountParams,
    context_rule: ContextRule,
    smart_account: soroban_sdk::Address,
)

Uninstall the threshold policy for a smart account.

Removes the threshold configuration for the given context rule.

fn uninstall(
    env: soroban_sdk::Env,
    context_rule: ContextRule,
    smart_account: soroban_sdk::Address,
)

Get the current threshold for a smart account

fn get_threshold(
    env: soroban_sdk::Env,
    context_rule_id: u32,
    smart_account: soroban_sdk::Address,
) -> u32

Set a new threshold for a smart account

fn set_threshold(
    env: soroban_sdk::Env,
    threshold: u32,
    context_rule: ContextRule,
    smart_account: soroban_sdk::Address,
)

Imports

WebAssembly Text (WAT) ▶