simfony_as_rust/jet/time_locks.rs
1/* This file has been automatically generated. */
2
3//! # Time locks
4//!
5//! This module defines jets for checking time locks of Elements transactions.
6
7#![allow(unused)]
8#![allow(clippy::complexity)]
9
10use super::*;
11
12/// Assert that the value returned by [`tx_lock_distance`] is greater than or equal to the given value.
13///
14/// ## Panics
15/// The assertion fails.
16///
17/// ## Cost
18///
19/// 105 mWU _(milli weight units)_
20pub fn check_lock_distance(a: Distance) {
21 todo!()
22}
23
24/// Assert that the value returned by [`tx_lock_duration`] is greater than or equal to the given value.
25///
26/// ## Panics
27/// The assertion fails
28///
29/// ## Cost
30///
31/// 102 mWU _(milli weight units)_
32pub fn check_lock_duration(a: Duration) {
33 todo!()
34}
35
36/// Assert that the value returned by [`tx_lock_height`] is greater than or equal to the given value.
37///
38/// ## Panics
39/// The assertion fails.
40///
41/// ## Cost
42///
43/// 77 mWU _(milli weight units)_
44pub fn check_lock_height(a: Height) {
45 todo!()
46}
47
48/// Assert that the value returned by [`tx_lock_time`] is greater than or equal to the given value.
49///
50/// ## Panics
51/// The assertion fails.
52///
53/// ## Cost
54///
55/// 93 mWU _(milli weight units)_
56pub fn check_lock_time(a: Time) {
57 todo!()
58}
59
60/// Check if the sequence numbers of all transaction inputs are at their maximum value.
61///
62/// ## Cost
63///
64/// 71 mWU _(milli weight units)_
65pub fn tx_is_final() -> bool {
66 todo!()
67}
68
69/// If [`version`] returns 2 or greater, then return the greatest valid [`Distance`] value of any transaction input. Return zeroes otherwise.
70///
71/// ## Cost
72///
73/// 91 mWU _(milli weight units)_
74pub fn tx_lock_distance() -> Distance {
75 todo!()
76}
77
78/// If [`version`] returns 2 or greater, then return the greatest valid [`Duration`] value of any transaction input. Return zeroes otherwise.
79///
80/// ## Cost
81///
82/// 84 mWU _(milli weight units)_
83pub fn tx_lock_duration() -> Duration {
84 todo!()
85}
86
87/// If [`tx_is_final`] returns false, then try to parse the transaction's lock time as a [`Height`] value. Return zeroes otherwise.
88///
89/// ## Cost
90///
91/// 80 mWU _(milli weight units)_
92pub fn tx_lock_height() -> Height {
93 todo!()
94}
95
96/// If [`tx_is_final`] returns false, then try to parse the transaction's lock time as a [`Time`] value. Return zeroes otherwise.
97///
98/// ## Cost
99///
100/// 80 mWU _(milli weight units)_
101pub fn tx_lock_time() -> Time {
102 todo!()
103}