Contract 6e6c13d93e197aa380303a42cd120f5ddb080dd36ef2a343ee1dbd04ca52a443

← Back to Index 📥 Download WASM

Meta

rssdkver 27.0.2#45d378a6cb4a026d23fc7286b6ee3add9c9dd0b9
rsver 1.97.1

Instances

  • CALZAMUPREIRY4TULBEXIK77AUTOEJG63XLCPUWEHHQDOVK6ZVVS7VQ2

Interface

fn enforce(
    env: soroban_sdk::Env,
    context: Context,
    authenticated_signers: soroban_sdk::Vec,
    context_rule: ContextRule,
    smart_account: soroban_sdk::Address,
)
fn install(
    env: soroban_sdk::Env,
    install_params: PolicyInstallParams,
    context_rule: ContextRule,
    smart_account: soroban_sdk::Address,
)
fn uninstall(
    env: soroban_sdk::Env,
    context_rule: ContextRule,
    smart_account: soroban_sdk::Address,
)
fn grammar_version(env: soroban_sdk::Env) -> u32

Master-gated circuit breaker: while paused, every oracle_price leaf for this asset denies on every rule of this account. Keyed on the account rather than a rule so one call covers the whole account.

fn pause_oracle_policies(
    env: soroban_sdk::Env,
    context_rule: ContextRule,
    smart_account: soroban_sdk::Address,
    asset: soroban_sdk::Address,
)
fn unpause_oracle_policies(
    env: soroban_sdk::Env,
    context_rule: ContextRule,
    smart_account: soroban_sdk::Address,
    asset: soroban_sdk::Address,
)
fn rotate_master_signer_set(
    env: soroban_sdk::Env,
    smart_account: soroban_sdk::Address,
    rule_id: u32,
    new_set: soroban_sdk::Vec,
)

Pause every oracle-referencing policy on the account, whatever asset.

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

Imports

WebAssembly Text (WAT) ▶