Contract d4645fdf3441e49a659bc0b8fd6fe6287ea8df5048630f2af3342c1769ae57b8

← Back to Index 📥 Download WASM

Meta

binver 1.0.0
desc Rain Card Collateral Beacon Contract
rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.85.1

Instances

  • CAACQ6CK35CKRJPIPWMYZT7ZYY2HTFZG23GZY3JOFKOD5PZPF4OT75RY
  • CBW2EBI7RLFRSXZCJF2JDLVI4O3K27JX2RQQKGMOB25S7CMF6KBGSWXQ
  • CCUWRBCL2V7FSKWEIFZA74BNS43TTXQWB3ON7BL5B6URJJCZNOG2VGLY
  • CCZAIBNEC3RTD4P6IIAGSCPEIKTW7YXNIW3DNBBLL5R5MHI4MVIQBZWE

Interface

fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
    operator: soroban_sdk::Address,
)

Initializes the Beacon contract by setting the initial admin and unpausing the access to the collateral.

  • env: The environment of the contract.
  • admin: The initial admin of the Beacon.
fn __constructor(env: soroban_sdk::Env, admin: soroban_sdk::Address)

Gets the current admin of the Beacon.

  • env: The environment of the contract.

Returns

The current admin of the Beacon.

fn get_admin(env: soroban_sdk::Env) -> soroban_sdk::Address

Adds a coordinator to the Beacon requiring the authorization of the admin to execute.

  • env: The environment of the contract.
  • coordinator: The address of the coordinator to add.
fn add_coordinator(env: soroban_sdk::Env, coordinator: soroban_sdk::Address)

Removes a coordinator from the Beacon requiring the authorization of the admin to execute.

  • env: The environment of the contract.
  • coordinator: The address of the coordinator to remove.
fn remove_coordinator(env: soroban_sdk::Env, coordinator: soroban_sdk::Address)

Checks if the access to the collateral is paused.

  • env: The environment of the contract.

Returns

true if the access to the collateral is paused, false otherwise.

fn is_access_collateral_paused(env: soroban_sdk::Env) -> bool

Pauses the access to the collateral for all coordinators requiring the authorization of the admin to execute.

  • env: The environment of the contract.
fn pause_access_collateral(env: soroban_sdk::Env)

Unpauses the access to the collateral for all coordinators requiring the authorization of the admin to execute.

  • env: The environment of the contract.
fn unpause_access_collateral(env: soroban_sdk::Env)

Checks if a coordinator is active.

  • env: The environment of the contract.
  • coordinator: The address of the coordinator to check.

Returns

true if the coordinator has been added to the beacon and the access to the collateral is not paused, false otherwise.

fn is_active_coordinator(
    env: soroban_sdk::Env,
    coordinator: soroban_sdk::Address,
) -> bool
fn get_owner(env: soroban_sdk::Env) -> Option
fn transfer_ownership(
    env: soroban_sdk::Env,
    new_owner: soroban_sdk::Address,
    live_until_ledger: u32,
)
fn accept_ownership(env: soroban_sdk::Env)
fn renounce_ownership(env: soroban_sdk::Env)

Imports

WebAssembly Text (WAT) ▶