mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
* Rename asp > server * Rename pool > round * Consolidate naming for pubkey/prvkey vars and types * Fix * Fix * Fix wasm * Rename congestionTree > vtxoTree * Fix wasm * Rename payment > request * Rename congestionTree > vtxoTree after syncing with master * Fix Send API in SDK * Fix wasm * Fix wasm * Fixes * Fixes after review * Fix * Fix naming * Fix * Fix e2e tests
46 lines
879 B
Go
46 lines
879 B
Go
package domain
|
|
|
|
import "github.com/ark-network/ark/common/tree"
|
|
|
|
type RoundEvent interface {
|
|
IsEvent()
|
|
}
|
|
|
|
func (r RoundStarted) IsEvent() {}
|
|
func (r RoundFinalizationStarted) IsEvent() {}
|
|
func (r RoundFinalized) IsEvent() {}
|
|
func (r RoundFailed) IsEvent() {}
|
|
func (r TxRequestsRegistered) IsEvent() {}
|
|
|
|
type RoundStarted struct {
|
|
Id string
|
|
Timestamp int64
|
|
}
|
|
|
|
type RoundFinalizationStarted struct {
|
|
Id string
|
|
VtxoTree tree.VtxoTree
|
|
Connectors []string
|
|
ConnectorAddress string
|
|
RoundTx string
|
|
MinRelayFeeRate int64
|
|
}
|
|
|
|
type RoundFinalized struct {
|
|
Id string
|
|
Txid string
|
|
ForfeitTxs []string
|
|
Timestamp int64
|
|
}
|
|
|
|
type RoundFailed struct {
|
|
Id string
|
|
Err string
|
|
Timestamp int64
|
|
}
|
|
|
|
type TxRequestsRegistered struct {
|
|
Id string
|
|
TxRequests []TxRequest
|
|
}
|