Files
ark/server/internal/core/domain/events.go
Pietralberto Mazza dc00d60585 Rename folders (#97)
* Rename arkd folder & drop cli

* Rename ark cli folder & update docs

* Update readme

* Fix

* scripts: add build-all

* Add target to build cli for all platforms

* Update build scripts

---------

Co-authored-by: tiero <3596602+tiero@users.noreply.github.com>
2024-02-09 19:32:58 +01:00

45 lines
865 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 PaymentsRegistered) isEvent() {}
type RoundStarted struct {
Id string
Timestamp int64
}
type RoundFinalizationStarted struct {
Id string
CongestionTree tree.CongestionTree
Connectors []string
UnsignedForfeitTxs []string
PoolTx string
}
type RoundFinalized struct {
Id string
Txid string
ForfeitTxs []string
Timestamp int64
}
type RoundFailed struct {
Id string
Err string
Timestamp int64
}
type PaymentsRegistered struct {
Id string
Payments []Payment
}