Contract 96d140ebb844e6ee24dc07dfa2581c2ac150e3bd3ee45635b0181cabb751ad0f

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdkver 23.5.2#347f71141ddf69ef1873527c94ac98e79215f125
rsver 1.95.0

Instances

  • CB4TJPBTN6L72FGJLL2ZQHMKUZVSETA4N7HO6KFM4I27MMVOJ2UUEEWL
  • CC5RA7YY4HK6B4FEIWRR63YVNSCQITQ5WNJQ36SKZD6OZJGMWM7YTKZH

Interface

fn send(env: soroban_sdk::Env, request: SendRequest) -> u128
fn process(
    env: soroban_sdk::Env,
    request: ProcessRequest,
) -> Result<(), soroban_sdk::Error>
fn recover(
    env: soroban_sdk::Env,
    token: soroban_sdk::Address,
    amount: i128,
) -> Result<(), soroban_sdk::Error>

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 set_relayers(
    env: soroban_sdk::Env,
    relayers: soroban_sdk::Vec,
    required: bool,
) -> Result<(), soroban_sdk::Error>
fn __constructor(
    env: soroban_sdk::Env,
    chain_id: u64,
    owner: soroban_sdk::Address,
    message_prefix: u128,
) -> Result<(), soroban_sdk::Error>
fn get_next_tx_id(env: soroban_sdk::Env) -> Result
fn get_fee_handler(env: soroban_sdk::Env) -> Option
fn get_gas_handler(env: soroban_sdk::Env) -> Option
fn set_fee_handler(
    env: soroban_sdk::Env,
    fee_handler: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn set_gas_handler(
    env: soroban_sdk::Env,
    gas_handler: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn set_pos_handler(
    env: soroban_sdk::Env,
    pos_handler: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn set_via_signers(
    env: soroban_sdk::Env,
    via_signers: soroban_sdk::Vec,
    required: u32,
) -> Result<(), soroban_sdk::Error>

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 get_all_relayers(
    env: soroban_sdk::Env,
) -> (soroban_sdk::Vec, bool)
fn get_chain_details(env: soroban_sdk::Env) -> Result
fn is_system_enabled(env: soroban_sdk::Env) -> bool
fn set_chain_signers(
    env: soroban_sdk::Env,
    chain_signers: soroban_sdk::Vec,
    required: u32,
) -> Result<(), soroban_sdk::Error>

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)
fn set_system_enabled(
    env: soroban_sdk::Env,
    system_enabled: bool,
) -> Result<(), soroban_sdk::Error>

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 get_all_via_signers(
    env: soroban_sdk::Env,
) -> (soroban_sdk::Vec, u32)
fn set_project_signers(
    env: soroban_sdk::Env,
    contract: soroban_sdk::Address,
    signers: soroban_sdk::Vec,
    required: u32,
) -> Result<(), soroban_sdk::Error>
fn accept_admin_transfer(env: soroban_sdk::Env, client_contract: soroban_sdk::Address)
fn get_all_chain_signers(
    env: soroban_sdk::Env,
) -> (soroban_sdk::Vec, u32)

Returns true if the relayer is authorized to deliver a message to recipient.

Authorization rules:

  • If relayers are not required, any relayer is accepted.
  • If contract-specific relayers are enabled for recipient, only those are accepted.
  • Otherwise, the relayer must be in the global relayer set.
fn is_relayer_authorized(
    env: soroban_sdk::Env,
    recipient: soroban_sdk::Address,
    relayer: soroban_sdk::Address,
) -> bool
fn set_contract_relayers(
    env: soroban_sdk::Env,
    contract: soroban_sdk::Address,
    contract_relayers: soroban_sdk::Vec,
) -> Result<(), soroban_sdk::Error>
fn get_all_project_signers(
    env: soroban_sdk::Env,
    project_contract: soroban_sdk::Address,
) -> (soroban_sdk::Vec, u32)
fn get_all_contract_relayers(
    env: soroban_sdk::Env,
    contract: soroban_sdk::Address,
) -> (soroban_sdk::Vec, bool)
fn get_required_signer_counts(
    env: soroban_sdk::Env,
    recipient: soroban_sdk::Address,
) -> (u32, u32, u32)
fn initialize_universal_settings(
    env: soroban_sdk::Env,
    request: InitializeUniversalSettingsRequest,
) -> Result<(), soroban_sdk::Error>

Imports

WebAssembly Text (WAT) ▶