pub trait Deployer {
// Required methods
fn get_contract_instance_ttl(&self, contract: &Address) -> u32;
fn get_contract_code_ttl(&self, contract: &Address) -> u32;
}
Available on crate feature
testutils
only.Required Methods§
Sourcefn get_contract_instance_ttl(&self, contract: &Address) -> u32
fn get_contract_instance_ttl(&self, contract: &Address) -> u32
Gets the TTL of the given contract’s instance.
TTL is the number of ledgers left until the instance entry is considered expired, excluding the current ledger.
Panics if there is no instance corresponding to the provided address, or if the instance has expired.
Sourcefn get_contract_code_ttl(&self, contract: &Address) -> u32
fn get_contract_code_ttl(&self, contract: &Address) -> u32
Gets the TTL of the given contract’s Wasm code entry.
TTL is the number of ledgers left until the contract code entry is considered expired, excluding the current ledger.
Panics if there is no contract instance/code corresponding to the provided address, or if the instance/code has expired.