mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
56 lines
1.2 KiB
Go
56 lines
1.2 KiB
Go
package utils
|
|
|
|
type ClientConfig struct {
|
|
DataDir string `yaml:"dataDir"`
|
|
SymlinkPath string `yaml:"symlinkPath"`
|
|
SignatureCheck bool `yaml:"signatureCheck"`
|
|
}
|
|
|
|
type NodeConfig struct {
|
|
ClientConfig
|
|
RewardsAddress string `yaml:"rewardsAddress"`
|
|
AutoUpdateInterval string `yaml:"autoUpdateInterval"`
|
|
}
|
|
|
|
const (
|
|
DefaultAutoUpdateInterval = "*/10 * * * *"
|
|
)
|
|
|
|
type ReleaseType string
|
|
|
|
const (
|
|
ReleaseTypeQClient ReleaseType = "qclient"
|
|
ReleaseTypeNode ReleaseType = "node"
|
|
)
|
|
|
|
type BridgedPeerJson struct {
|
|
Amount string `json:"amount"`
|
|
Identifier string `json:"identifier"`
|
|
Variant string `json:"variant"`
|
|
}
|
|
|
|
type FirstRetroJson struct {
|
|
PeerId string `json:"peerId"`
|
|
Reward string `json:"reward"`
|
|
}
|
|
|
|
type SecondRetroJson struct {
|
|
PeerId string `json:"peerId"`
|
|
Reward string `json:"reward"`
|
|
JanPresence bool `json:"janPresence"`
|
|
FebPresence bool `json:"febPresence"`
|
|
MarPresence bool `json:"marPresence"`
|
|
AprPresence bool `json:"aprPresence"`
|
|
MayPresence bool `json:"mayPresence"`
|
|
}
|
|
|
|
type ThirdRetroJson struct {
|
|
PeerId string `json:"peerId"`
|
|
Reward string `json:"reward"`
|
|
}
|
|
|
|
type FourthRetroJson struct {
|
|
PeerId string `json:"peerId"`
|
|
Reward string `json:"reward"`
|
|
}
|