bindings

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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 BtcBlockHeader struct {
	Version       int32  `json:"version,omitempty"`
	PrevBlockhash string `json:"prev_blockhash,omitempty"`
	MerkleRoot    string `json:"merkle_root,omitempty"`
	Time          uint32 `json:"time,omitempty"`
	Bits          uint32 `json:"bits,omitempty"`
	Nonce         uint32 `json:"nonce,omitempty"`
}

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 FinalizedEpochInfo struct {
	EpochNumber     uint64 `json:"epoch_number"`
	LastBlockHeight uint64 `json:"last_block_height"`
}

type LatestFinalizedEpochInfoResponse

type LatestFinalizedEpochInfoResponse struct {
	EpochInfo *FinalizedEpochInfo `json:"epoch_info,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL