Contract f05348d6cbe90796c2b89296697f340d2fba6a1b070f3830f17edf32c2cb8eb8

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdk_spec_shaking 2
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.94.1

Instances

  • CAIIKTUM6DD5LX2K37KNTOD6KFQPRCXJIPRJ4FWSAZW24QXAWMP72YVU
  • CAMM3LIYYW57HU2YF3FEQS5ARYN7ZILF4ETFHTBYHUBNU4SF6MHIOORM
  • CBTSSCSXPM2WLMUZBOD4WTMIRZE2CLOHNIE4Z344LORDXRXFNLPKMSAP

Interface

fn version(env: soroban_sdk::Env) -> Result

Permissionless TTL maintenance. Initialized/Admin/Version live in instance storage (one shared TTL, refreshed automatically by ensure_initialized on every call that reaches it — see that function) and are covered by the single extend_ttl call below; assets/recipients/operations are named, already-existing per-entity persistent entries, extended individually the same way they always were. Extending TTL does not create authority or alter execution semantics (docs/TECHNICAL_ARCHITECTURE.md §16.1), so this is intentionally open to any caller — an off-chain monitor can refresh the entries it knows are still active without needing admin keys.

fn extend_ttl(
    env: soroban_sdk::Env,
    assets: soroban_sdk::Vec,
    recipients: soroban_sdk::Vec,
    operations: soroban_sdk::Vec,
)
fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
) -> Result<(), PolicyEngineError>
fn bump_version(
    env: soroban_sdk::Env,
    next_version: u32,
) -> Result<(), PolicyEngineError>
fn contract_name(env: soroban_sdk::Env) -> soroban_sdk::Symbol
fn set_asset_rule(
    env: soroban_sdk::Env,
    asset: soroban_sdk::Address,
    rule: AssetRule,
) -> Result<(), PolicyEngineError>
fn validate_policy(
    env: soroban_sdk::Env,
    check: PolicyCheck,
) -> Result<(), PolicyEngineError>

Enables or disables an adapter-level operation (e.g. transfer, split). An operation not explicitly enabled fails closed, so deploying a new adapter never silently grants it spend authority.

fn set_operation_allowed(
    env: soroban_sdk::Env,
    operation: soroban_sdk::Symbol,
    allowed: bool,
) -> Result<(), PolicyEngineError>
fn set_recipient_allowed(
    env: soroban_sdk::Env,
    recipient: soroban_sdk::Address,
    allowed: bool,
) -> Result<(), PolicyEngineError>

Imports

WebAssembly Text (WAT) ▶