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