Contract fa5a4e43775940ebd5a37967ebc5fa5df5ed007ac1acb82ccc9d6d1fc202bc18

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdk_spec_shaking 2
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.95.0

Instances

  • CB6L4VYDOTIB7HPHXU4RCD2IPHS33PAFGCVCCPCJRZQCVB2VD6C6ORBY

Interface

fn rate(env: soroban_sdk::Env) -> i128
fn asset(env: soroban_sdk::Env) -> soroban_sdk::Address
fn pause(env: soroban_sdk::Env, caller: soroban_sdk::Address)
fn share(env: soroban_sdk::Env) -> soroban_sdk::Address
fn digest(
    env: soroban_sdk::Env,
    request_id: u128,
    sender: soroban_sdk::Address,
    amount: i128,
    deadline: u64,
) -> soroban_sdk::BytesN<32>

Returns true if the contract is paused, and false otherwise.

Arguments

  • e - Access to Soroban environment.
fn paused(env: soroban_sdk::Env) -> bool
fn unpause(env: soroban_sdk::Env, caller: soroban_sdk::Address)
fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
    caller: soroban_sdk::Address,
)
fn set_rate(env: soroban_sdk::Env, new_rate: i128)
fn verifier(env: soroban_sdk::Env) -> soroban_sdk::BytesN<32>
fn claimable(env: soroban_sdk::Env, request_id: u128) -> bool
fn custodian(env: soroban_sdk::Env) -> soroban_sdk::Address

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_request(env: soroban_sdk::Env, request_id: u128) -> Request
fn set_verifier(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_verifier: soroban_sdk::BytesN<32>,
)
fn total_queued(env: soroban_sdk::Env) -> i128
fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    asset: soroban_sdk::Address,
    share: soroban_sdk::Address,
    custodian: soroban_sdk::Address,
    verifier: soroban_sdk::BytesN<32>,
)
fn claim_request(
    env: soroban_sdk::Env,
    request_id: u128,
    verifier_signature: soroban_sdk::BytesN<64>,
    deadline: u64,
) -> i128
fn set_custodian(env: soroban_sdk::Env, new_custodian: soroban_sdk::Address)
fn total_claimed(env: soroban_sdk::Env) -> i128
fn verify_request(
    env: soroban_sdk::Env,
    request_id: u128,
    signature: soroban_sdk::BytesN<64>,
    deadline: u64,
) -> soroban_sdk::BytesN<32>
fn next_request_id(env: soroban_sdk::Env) -> u128

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 domain_separator(env: soroban_sdk::Env) -> soroban_sdk::BytesN<32>

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 request_withdrawal(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    amount: i128,
) -> (u128, i128)

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 withdrawal_request(env: soroban_sdk::Env, request_id: u128) -> Request
fn withdrawal_request_queued(env: soroban_sdk::Env, request_id: u128) -> i128

Imports

WebAssembly Text (WAT) ▶