pub enum ArkTransaction {
Boarding {
txid: Txid,
amount: Amount,
confirmed_at: Option<i64>,
},
Round {
txid: Txid,
amount: SignedAmount,
created_at: i64,
},
Redeem {
txid: Txid,
amount: SignedAmount,
is_settled: bool,
created_at: i64,
},
}
Variants§
Boarding
A transaction that transforms a UTXO into a boarding output.
Fields
Round
A transaction that confirms VTXOs.
Fields
amount: SignedAmount
We use SignedAmount
because round transactions may be incoming or outgoing i.e. we
can send or receive VTXOs.
Redeem
A transaction that sends VTXOs.
Fields
amount: SignedAmount
We use SignedAmount
because redeem transactions may be incoming or outgoing
i.e. we can send or receive VTXOs.
Implementations§
Source§impl ArkTransaction
impl ArkTransaction
Sourcepub fn created_at(&self) -> i64
pub fn created_at(&self) -> i64
The creation time of the ArkTransaction
. This value can be used for sorting.
-
The creation time of a boarding transaction is based on its confirmation time. If it is pending, we return
i64::MAX
to convey that the transaction will be “created” in the future. -
The creation time of a round transaction is based on the
created_at
of our VTXO produced by it. -
The creation time of a redeem transaction is based on the
created_at
of our VTXO produced by it.
Trait Implementations§
Source§impl Clone for ArkTransaction
impl Clone for ArkTransaction
Source§fn clone(&self) -> ArkTransaction
fn clone(&self) -> ArkTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more