Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BabylonQuery ¶
type BabylonQuery struct {
Epoch *struct{} `json:"epoch,omitempty"`
LatestFinalizedEpochInfo *struct{} `json:"latest_finalized_epoch_info,omitempty"`
BtcTip *struct{} `json:"btc_tip,omitempty"`
BtcBaseHeader *struct{} `json:"btc_base_header,omitempty"`
BtcHeaderByHash *BtcHeaderByHash `json:"btc_header_by_hash,omitempty"`
BtcHeaderByHeight *BtcHeaderByHeight `json:"btc_header_by_height,omitempty"`
}
type BtcBaseHeaderResponse ¶
type BtcBaseHeaderResponse struct {
HeaderInfo *BtcBlockHeaderInfo `json:"header_info,omitempty"`
}
type BtcBlockHeader ¶
type BtcBlockHeaderInfo ¶
type BtcBlockHeaderInfo struct {
Header *BtcBlockHeader `json:"header,omitempty"`
Height uint64 `json:"height,omitempty"`
}
func AsBtcBlockHeaderInfo ¶
func AsBtcBlockHeaderInfo(info *lcTypes.BTCHeaderInfo) *BtcBlockHeaderInfo
translate BTCHeaderInfo to BtcBlockHeaderInfo
type BtcHeaderByHash ¶
type BtcHeaderByHash struct {
Hash string `json:"hash,omitempty"`
}
type BtcHeaderByHeight ¶
type BtcHeaderByHeight struct {
Height uint64 `json:"height,omitempty"`
}
type BtcHeaderQueryResponse ¶
type BtcHeaderQueryResponse struct {
HeaderInfo *BtcBlockHeaderInfo `json:"header_info,omitempty"`
}
type BtcTipResponse ¶
type BtcTipResponse struct {
HeaderInfo *BtcBlockHeaderInfo `json:"header_info,omitempty"`
}
type CurrentEpochResponse ¶
type CurrentEpochResponse struct {
Epoch uint64 `json:"epoch"`
}
type FinalizedEpochInfo ¶
type LatestFinalizedEpochInfoResponse ¶
type LatestFinalizedEpochInfoResponse struct {
EpochInfo *FinalizedEpochInfo `json:"epoch_info,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.