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.
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.
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.
e - Access to the Soroban environment.crate::role_transfer::RoleTransferError::NoPendingTransfer] - If
there is no pending transfer to accept.["ownership_transfer_completed"][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].
e - Access to the Soroban environment.OwnableError::TransferInProgress] - If there is a pending ownership
transfer.OwnableError::OwnerNotSet] - If the owner is not set.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.
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.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.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