Contract 01c0be09eb6fb288cab2e878b4e890f7a38f75afab99aeb197861f44e2e2dfe6

← Back to Index 📥 Download WASM

Meta

cliver 27.1.0#8e402ea28202950b272fbabc34caad4d2f64fe87
rssdk_spec_shaking 2
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.98.0

Instances

  • CDOGPGUFGGUDG25P3TG6XIXJKRRYOZ3PXUZIEPVH74KXRZIDKZ5HYEOS

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) ▶