Contract 4d2e0f84bc7a61cbeee446f51ec542585e4c54b3d0a2adcce59afea40191b9eb

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdk_spec_shaking 2
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.96.0

Instances

  • CA6AGQKK7BHZOLJSG7GRFUDNJHXOGXQLHTI4XCS3NF6TLPALZIBJNAZS
  • CAAFKBE6AMTERARISMMT4TCC4UGNO35XCKQNC5XVLL5WY5GRWXH6AMIO

Interface

fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
fn version(env: soroban_sdk::Env) -> u32
fn decimals(
    env: soroban_sdk::Env,
    data_ids: soroban_sdk::Vec>,
) -> Result>, CacheError>

Returns Some(Address) if ownership is set, or None if ownership has been renounced.

Arguments

  • e - Access to the Soroban environment.
fn get_owner(env: soroban_sdk::Env) -> Option
fn get_round(
    env: soroban_sdk::Env,
    data_id: soroban_sdk::BytesN<32>,
    round_id: u64,
) -> Result, CacheError>
fn is_frozen(
    env: soroban_sdk::Env,
    data_ids: soroban_sdk::Vec>,
) -> soroban_sdk::Vec
fn on_report(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    metadata: soroban_sdk::Bytes,
    report: soroban_sdk::Bytes,
) -> Result<(), CacheError>
fn find_round(
    env: soroban_sdk::Env,
    data_id: soroban_sdk::BytesN<32>,
    timestamp: u64,
    bound: Bound,
) -> Result, CacheError>
fn description(
    env: soroban_sdk::Env,
    data_ids: soroban_sdk::Vec>,
) -> Result>, CacheError>
fn round_range(
    env: soroban_sdk::Env,
    data_id: soroban_sdk::BytesN<32>,
    from: u64,
    to: u64,
) -> Result, CacheError>
fn latest_round(
    env: soroban_sdk::Env,
    data_ids: soroban_sdk::Vec>,
) -> Result>, CacheError>
fn __constructor(env: soroban_sdk::Env, owner: soroban_sdk::Address)
fn is_configured(
    env: soroban_sdk::Env,
    data_ids: soroban_sdk::Vec>,
) -> Result, CacheError>
fn is_feed_admin(env: soroban_sdk::Env, admin: soroban_sdk::Address) -> bool
fn add_feed_admin(
    env: soroban_sdk::Env,
    new_admin: soroban_sdk::Address,
) -> Result<(), CacheError>
fn has_permission(
    env: soroban_sdk::Env,
    data_id: soroban_sdk::BytesN<32>,
    sender: soroban_sdk::Address,
    workflow_owner: soroban_sdk::BytesN<20>,
    workflow_name: soroban_sdk::BytesN<10>,
) -> bool
fn recover_tokens(
    env: soroban_sdk::Env,
    token: soroban_sdk::Address,
    to: soroban_sdk::Address,
    amount: i128,
)
fn set_feed_frozen(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    data_ids: soroban_sdk::Vec>,
    frozen: bool,
) -> Result<(), CacheError>

Accepts a pending ownership transfer.

Arguments

  • e - Access to the Soroban environment.

Errors

  • [crate::role_transfer::RoleTransferError::NoPendingTransfer] - If there is no pending transfer to accept.

Events

  • topics - ["ownership_transfer_completed"]
  • data - [new_owner: Address]
fn accept_ownership(env: soroban_sdk::Env)
fn set_feed_configs(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    entries: soroban_sdk::Vec,
) -> Result<(), CacheError>
fn type_and_version(env: soroban_sdk::Env) -> soroban_sdk::String
fn remove_feed_admin(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
) -> Result<(), CacheError>

Renounces ownership of the contract.

Permanently removes the owner, disabling all functions gated by #[only_owner].

Arguments

  • e - Access to the Soroban environment.

Errors

  • [OwnableError::TransferInProgress] - If there is a pending ownership transfer.
  • [OwnableError::OwnerNotSet] - If the owner is not set.

Notes

  • Authorization for the current owner is required.
fn renounce_ownership(env: soroban_sdk::Env)

Initiates a 2-step ownership transfer to a new address.

Requires authorization from the current owner. The new owner must later call accept_ownership() to complete the transfer.

Arguments

  • e - Access to the Soroban environment.
  • new_owner - The proposed new owner.
  • live_until_ledger - Ledger number until which the new owner can accept. A value of 0 cancels any pending transfer.

Errors

  • [OwnableError::OwnerNotSet] - If the owner is not set.
  • [crate::role_transfer::RoleTransferError::NoPendingTransfer] - If trying to cancel a transfer that doesn't exist.
  • [crate::role_transfer::RoleTransferError::InvalidLiveUntilLedger] - If the specified ledger is in the past.
  • [crate::role_transfer::RoleTransferError::InvalidPendingAccount] - If the specified pending account is not the same as the provided new address.

Notes

  • Authorization for the current owner is required.
fn transfer_ownership(
    env: soroban_sdk::Env,
    new_owner: soroban_sdk::Address,
    live_until_ledger: u32,
)
fn remove_feed_configs(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    data_ids: soroban_sdk::Vec>,
) -> Result<(), CacheError>
fn get_feed_permissions(
    env: soroban_sdk::Env,
    data_id: soroban_sdk::BytesN<32>,
) -> soroban_sdk::Vec

Imports

WebAssembly Text (WAT) ▶