Documentation ¶
Index ¶
- Constants
- func EpochToSyncCommitteePeriod(e phase0.Epoch) uint64
- func HistoricalSummariesStartSlot(bn BeaconNetwork, s phase0.Slot) phase0.Slot
- func IsCheckPoint(s phase0.Slot) bool
- func IsSyncCommitteeEdge(s phase0.Slot) bool
- func NewReceiver(srcCfg link.ChainConfig, dstAddr types.BtpAddress, baseDir string, ...) (link.Receiver, error)
- func NewSender(srcAddr types.BtpAddress, dstCfg link.ChainConfig, baseDir string, ...) (types.Sender, error)
- func ParseChainConfig(raw json.RawMessage) (link.ChainConfig, error)
- func RegisterEth2()
- func SlotToBlockRootsIndex(s phase0.Slot) uint64
- func SlotToEpoch(s phase0.Slot) phase0.Epoch
- func SlotToHistoricalSummariesIndex(bn BeaconNetwork, s phase0.Slot) uint64
- func SlotToSyncCommitteePeriod(s phase0.Slot) uint64
- type BMVExtra
- type BTPRelayMessage
- type BeaconNetwork
- type BlockProof
- type BlockUpdate
- type MessageProof
- type TypePrefixedMessage
Constants ¶
View Source
const ( SecondPerSlot = 12 SlotPerEpoch = 32 EpochsPerSyncCommitteePeriod = 256 SlotPerSyncCommitteePeriod = SlotPerEpoch * EpochsPerSyncCommitteePeriod SlotPerHistoricalRoot = 8192 ForkEpochCapellaSepolia = 56832 ForkEpochCapellaMainnet = 194048 )
View Source
const TYPE = "eth2-v2.0"
Variables ¶
This section is empty.
Functions ¶
func HistoricalSummariesStartSlot ¶
func HistoricalSummariesStartSlot(bn BeaconNetwork, s phase0.Slot) phase0.Slot
func IsCheckPoint ¶
func IsSyncCommitteeEdge ¶
func NewReceiver ¶
func NewReceiver(srcCfg link.ChainConfig, dstAddr types.BtpAddress, baseDir string, l log.Logger) (link.Receiver, error)
func NewSender ¶
func NewSender(srcAddr types.BtpAddress, dstCfg link.ChainConfig, baseDir string, l log.Logger) (types.Sender, error)
func ParseChainConfig ¶ added in v0.5.0
func ParseChainConfig(raw json.RawMessage) (link.ChainConfig, error)
func RegisterEth2 ¶ added in v0.5.0
func RegisterEth2()
func SlotToBlockRootsIndex ¶
func SlotToEpoch ¶
SlotToEpoch returns the epoch number of the input slot.
func SlotToHistoricalSummariesIndex ¶
func SlotToHistoricalSummariesIndex(bn BeaconNetwork, s phase0.Slot) uint64
Types ¶
type BMVExtra ¶
func (*BMVExtra) RLPDecodeSelf ¶ added in v0.2.1
type BTPRelayMessage ¶
type BTPRelayMessage struct {
Messages []*TypePrefixedMessage
}
type BeaconNetwork ¶ added in v0.7.3
type BeaconNetwork int
const ( Mainnet BeaconNetwork = iota + 1 Sepolia )
func (BeaconNetwork) String ¶ added in v0.7.3
func (b BeaconNetwork) String() string
type BlockProof ¶
type BlockProof struct {
// contains filtered or unexported fields
}
func (*BlockProof) ProofHeight ¶
func (c *BlockProof) ProofHeight() int64
func (*BlockProof) Type ¶
func (c *BlockProof) Type() link.MessageItemType
func (*BlockProof) UpdateBMCLinkStatus ¶
func (c *BlockProof) UpdateBMCLinkStatus(status *types.BMCLinkStatus) error
type BlockUpdate ¶
type BlockUpdate struct { BlockProof // contains filtered or unexported fields }
func NewBlockUpdate ¶
func NewBlockUpdate(srcHeight int64, data *blockUpdateData) *BlockUpdate
func (*BlockUpdate) SrcHeight ¶
func (c *BlockUpdate) SrcHeight() int64
func (*BlockUpdate) TargetHeight ¶
func (c *BlockUpdate) TargetHeight() int64
func (*BlockUpdate) Type ¶
func (c *BlockUpdate) Type() link.MessageItemType
func (*BlockUpdate) UpdateBMCLinkStatus ¶
func (c *BlockUpdate) UpdateBMCLinkStatus(bls *types.BMCLinkStatus) error
type MessageProof ¶
type MessageProof struct {
// contains filtered or unexported fields
}
func NewMessageProof ¶
func NewMessageProof(bls *types.BMCLinkStatus, ls int64, data *messageProofData) *MessageProof
func (*MessageProof) LastSeqNum ¶
func (m *MessageProof) LastSeqNum() int64
func (*MessageProof) StartSeqNum ¶
func (m *MessageProof) StartSeqNum() int64
func (*MessageProof) Type ¶
func (c *MessageProof) Type() link.MessageItemType
func (*MessageProof) UpdateBMCLinkStatus ¶
func (m *MessageProof) UpdateBMCLinkStatus(bls *types.BMCLinkStatus) error
type TypePrefixedMessage ¶
type TypePrefixedMessage struct { Type link.MessageItemType Payload []byte }
func NewTypePrefixedMessage ¶
func NewTypePrefixedMessage(rmi link.RelayMessageItem) (*TypePrefixedMessage, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.