Contract 18266cfa143f09f7f655e1de23dbd191e8141eca14fee6519feb5b4e10dd84ed

← Back to Index 📥 Download WASM

Meta

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

Instances

  • CAM5NV3OMK42CHXN6V5IDEHARJPF24PXB25KZF4PWQWM4TV2YRHY5F5H

Interface

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 verifier(env: soroban_sdk::Env) -> soroban_sdk::BytesN<32>
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 min_deposit(env: soroban_sdk::Env) -> i128
fn set_verifier(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_verifier: soroban_sdk::BytesN<32>,
)
fn __constructor(
    env: soroban_sdk::Env,
    access_manager: soroban_sdk::Address,
    deposit_manager_config: DepositManagerConfig,
    rate_limit_config: RateLimitConfig,
)
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 verify_request(
    env: soroban_sdk::Env,
    request_id: u128,
    signature: soroban_sdk::BytesN<64>,
    deadline: u64,
) -> soroban_sdk::BytesN<32>
fn deposit_request(env: soroban_sdk::Env, request_id: u128) -> Request
fn next_request_id(env: soroban_sdk::Env) -> u128
fn request_deposit(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    amount: i128,
) -> u128
fn set_min_deposit(env: soroban_sdk::Env, new_min_deposit: i128)

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>
fn decrease_tx_limit(env: soroban_sdk::Env, new_tx_limit: i128)
fn increase_tx_limit(env: soroban_sdk::Env, new_tx_limit: i128)
fn rate_limit_config(env: soroban_sdk::Env) -> RateLimitConfig

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)

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 decrease_window_limit(env: soroban_sdk::Env, new_window_limit: i128)
fn increase_window_limit(env: soroban_sdk::Env, new_window_limit: i128)

Imports

WebAssembly Text (WAT) ▶