Documentation
¶
Index ¶
- Variables
- func GetDefaultDomain() spectypes.DomainType
- func SetDefaultDomain(d spectypes.DomainType)
- type EventMsg
- type EventType
- type ExecuteDutyData
- type Metadata
- type SSVShare
- func (s *SSVShare) BelongsToOperator(operatorPubKey string) bool
- func (s *SSVShare) BelongsToOperatorID(operatorID spectypes.OperatorID) bool
- func (s *SSVShare) Decode(data []byte) error
- func (s *SSVShare) Encode() ([]byte, error)
- func (s *SSVShare) HasBeaconMetadata() bool
- func (s *SSVShare) SetOperators(pks [][]byte)
- type State
- type TimeoutData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ShifuTestnet is the domain for shifu testnet // NOTE: do not use directly unless you want to check domain, // i.e. use GetDefaultDomain() to get the current domain. ShifuTestnet = spectypes.DomainType("shifu") ShifuTestnetV2 = spectypes.DomainType("shifu-v2") )
Functions ¶
func GetDefaultDomain ¶
func GetDefaultDomain() spectypes.DomainType
GetDefaultDomain returns the global domain used across the system
func SetDefaultDomain ¶
func SetDefaultDomain(d spectypes.DomainType)
SetDefaultDomain updates the global domain used across the system allows injecting domain for testnets
Types ¶
type EventMsg ¶
func (*EventMsg) GetExecuteDutyData ¶
func (m *EventMsg) GetExecuteDutyData() (*ExecuteDutyData, error)
func (*EventMsg) GetTimeoutData ¶
func (m *EventMsg) GetTimeoutData() (*TimeoutData, error)
type ExecuteDutyData ¶
type Metadata ¶
type Metadata struct {
BeaconMetadata *beaconprotocol.ValidatorMetadata
OwnerAddress string
Operators [][]byte // TODO: remove; get operator ID from the first event with operator public key
Liquidated bool
}
Metadata represents metadata of SSVShare.
type SSVShare ¶
type SSVShare struct {
}
SSVShare is a combination of spectypes.Share and its Metadata.
func (*SSVShare) BelongsToOperator ¶
BelongsToOperator checks whether the share belongs to operator.
func (*SSVShare) BelongsToOperatorID ¶
func (s *SSVShare) BelongsToOperatorID(operatorID spectypes.OperatorID) bool
BelongsToOperatorID checks whether the share belongs to operator ID.
func (*SSVShare) HasBeaconMetadata ¶
HasBeaconMetadata checks whether the BeaconMetadata field is not nil.
func (*SSVShare) SetOperators ¶
SetOperators sets operators public keys.
type State ¶
type State struct {
ID []byte // instance Identifier
Round specqbft.Round
Height specqbft.Height
LastPreparedRound specqbft.Round
LastPreparedValue []byte
ProposalAcceptedForCurrentRound *specqbft.SignedMessage
Decided bool
DecidedValue []byte
ProposeContainer *specqbft.MsgContainer
PrepareContainer *specqbft.MsgContainer
CommitContainer *specqbft.MsgContainer
RoundChangeContainer *specqbft.MsgContainer
}
type TimeoutData ¶
Click to show internal directories.
Click to hide internal directories.