mirror of
https://github.com/aljazceru/ark.git
synced 2026-02-23 12:12:49 +01:00
Add support for Out Of Round txs (#359)
* [common] rework address encoding * new address encoding * replace offchain address by vtxo output key in DB * merge migrations files into init one * fix txbuilder fixtures * fix transaction events * OOR scheme * fix conflicts * [sdk] OOR * update WASM wrappers * revert renaming * revert API changes * update parser.go * fix vtxosToTxsCovenantless * add settled and spent in Utxo and Transaction * Fixes (#5) * Revert unneeded changes and rename claim to settle * Revert changes to wasm and rename claim to settle --------- Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
This commit is contained in:
@@ -73,7 +73,7 @@ type Transaction struct {
|
||||
TransactionKey
|
||||
Amount uint64
|
||||
Type TxType
|
||||
IsPending bool
|
||||
Settled bool
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
@@ -103,3 +103,19 @@ type TransactionEvent struct {
|
||||
Tx Transaction
|
||||
Event EventType
|
||||
}
|
||||
|
||||
type Utxo struct {
|
||||
Txid string
|
||||
VOut uint32
|
||||
Amount uint64
|
||||
Asset string // liquid only
|
||||
Delay uint
|
||||
SpendableAt time.Time
|
||||
CreatedAt time.Time
|
||||
Descriptor string
|
||||
Spent bool
|
||||
}
|
||||
|
||||
func (u *Utxo) Sequence() (uint32, error) {
|
||||
return common.BIP68Sequence(u.Delay)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user