Module 0x107a::timelock_unlock_condition
use 0x2::tx_context;
Struct TimelockUnlockCondition
The Stardust timelock unlock condition.
struct TimelockUnlockCondition has store
Fields
Constants
The timelock is not expired error.
const ETimelockNotExpired: u64 = 0;
Function unlock
Check the unlock condition.
public fun unlock(condition: timelock_unlock_condition::TimelockUnlockCondition, ctx: &tx_context::TxContext)
Implementation
Function is_timelocked
Check if the output is locked by the Timelock
condition.
public fun is_timelocked(condition: &timelock_unlock_condition::TimelockUnlockCondition, ctx: &tx_context::TxContext): bool
Implementation
Function unix_time
Get the unlock condition's unix_time
.
public fun unix_time(condition: &timelock_unlock_condition::TimelockUnlockCondition): u32