soroban_sdk::testutils::storage

Trait Instance

Source
pub trait Instance {
    // Required methods
    fn all(&self) -> Map<Val, Val>;
    fn get_ttl(&self) -> u32;
}
Available on crate feature testutils only.
Expand description

Test utilities for Instance.

Required Methods§

Source

fn all(&self) -> Map<Val, Val>

Returns all data stored in Instance storage for the contract.

Source

fn get_ttl(&self) -> u32

Gets the TTL for the current contract’s instance entry.

TTL is the number of ledgers left until the instance entry is considered expired, excluding the current ledger.

Implementors§