Documentation ¶
Index ¶
- type BabylonClient
- type Client
- func (c *Client) GetAddr() (sdk.AccAddress, error)
- func (c *Client) GetConfig() *config.BabylonConfig
- func (c *Client) GetTagIdx() uint8
- func (c *Client) InsertBTCSpvProof(msg *btcctypes.MsgInsertBTCSpvProof) (*sdk.TxResponse, error)
- func (c *Client) InsertHeader(msg *btclctypes.MsgInsertHeader) (*sdk.TxResponse, error)
- func (c *Client) InsertHeaders(msgs []*btclctypes.MsgInsertHeader) (*sdk.TxResponse, error)
- func (c *Client) MustGetAddr() sdk.AccAddress
- func (c *Client) MustInsertBTCSpvProof(msg *btcctypes.MsgInsertBTCSpvProof) *sdk.TxResponse
- func (c *Client) MustQueryBTCCheckpointParams() *btcctypes.Params
- func (c *Client) QueryBTCCheckpointParams() (*btcctypes.Params, error)
- func (c *Client) QueryBTCLightclientParams() (*btclctypes.Params, error)
- func (c *Client) QueryBaseHeader() (*wire.BlockHeader, uint64, error)
- func (c *Client) QueryContainsBlock(blockHash *chainhash.Hash) (bool, error)
- func (c *Client) QueryEpochingParams() (*epochingtypes.Params, error)
- func (c *Client) QueryHeaderChainTip() (*chainhash.Hash, uint64, error)
- func (c *Client) QueryRawCheckpoint(epochNumber uint64) (*checkpointingtypes.RawCheckpointWithMeta, error)
- func (c *Client) QueryRawCheckpointList(status checkpointingtypes.CheckpointStatus) ([]*checkpointingtypes.RawCheckpointWithMeta, error)
- func (c *Client) QueryStakingParams() (*stakingtypes.Params, error)
- func (c *Client) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BabylonClient ¶
type BabylonClient interface { Stop() GetConfig() *config.BabylonConfig GetTagIdx() uint8 GetAddr() (sdk.AccAddress, error) MustGetAddr() sdk.AccAddress QueryStakingParams() (*stakingtypes.Params, error) QueryEpochingParams() (*epochingtypes.Params, error) QueryBTCLightclientParams() (*btclctypes.Params, error) QueryBTCCheckpointParams() (*btcctypes.Params, error) MustQueryBTCCheckpointParams() *btcctypes.Params QueryHeaderChainTip() (*chainhash.Hash, uint64, error) QueryRawCheckpoint(epochNumber uint64) (*checkpointingtypes.RawCheckpointWithMeta, error) QueryRawCheckpointList(status checkpointingtypes.CheckpointStatus) ([]*checkpointingtypes.RawCheckpointWithMeta, error) QueryBaseHeader() (*wire.BlockHeader, uint64, error) QueryContainsBlock(blockHash *chainhash.Hash) (bool, error) InsertBTCSpvProof(msg *btcctypes.MsgInsertBTCSpvProof) (*sdk.TxResponse, error) InsertHeader(msg *btclctypes.MsgInsertHeader) (*sdk.TxResponse, error) InsertHeaders(msgs []*btclctypes.MsgInsertHeader) (*sdk.TxResponse, error) MustInsertBTCSpvProof(msg *btcctypes.MsgInsertBTCSpvProof) *sdk.TxResponse }
type Client ¶
type Client struct { *lensclient.ChainClient // contains filtered or unexported fields }
func (*Client) GetConfig ¶
func (c *Client) GetConfig() *config.BabylonConfig
func (*Client) InsertBTCSpvProof ¶
func (c *Client) InsertBTCSpvProof(msg *btcctypes.MsgInsertBTCSpvProof) (*sdk.TxResponse, error)
func (*Client) InsertHeader ¶
func (c *Client) InsertHeader(msg *btclctypes.MsgInsertHeader) (*sdk.TxResponse, error)
func (*Client) InsertHeaders ¶
func (c *Client) InsertHeaders(msgs []*btclctypes.MsgInsertHeader) (*sdk.TxResponse, error)
func (*Client) MustGetAddr ¶
func (c *Client) MustGetAddr() sdk.AccAddress
func (*Client) MustInsertBTCSpvProof ¶
func (c *Client) MustInsertBTCSpvProof(msg *btcctypes.MsgInsertBTCSpvProof) *sdk.TxResponse
func (*Client) MustQueryBTCCheckpointParams ¶
func (*Client) QueryBTCCheckpointParams ¶
QueryBTCCheckpointParams queries btccheckpoint module's parameters via ChainClient
func (*Client) QueryBTCLightclientParams ¶
func (c *Client) QueryBTCLightclientParams() (*btclctypes.Params, error)
QueryBTCLightclientParams queries btclightclient module's parameters via ChainClient
func (*Client) QueryBaseHeader ¶
func (c *Client) QueryBaseHeader() (*wire.BlockHeader, uint64, error)
func (*Client) QueryContainsBlock ¶
func (*Client) QueryEpochingParams ¶
func (c *Client) QueryEpochingParams() (*epochingtypes.Params, error)
QueryEpochingParams queries epoching module's parameters via ChainClient code is adapted from https://github.com/strangelove-ventures/lens/blob/v0.5.1/client/query/staking.go#L7-L18
func (*Client) QueryHeaderChainTip ¶
QueryHeaderChainTip queries hash/height of the latest BTC block in the btclightclient module
func (*Client) QueryRawCheckpoint ¶
func (c *Client) QueryRawCheckpoint(epochNumber uint64) (*checkpointingtypes.RawCheckpointWithMeta, error)
func (*Client) QueryRawCheckpointList ¶
func (c *Client) QueryRawCheckpointList(status checkpointingtypes.CheckpointStatus) ([]*checkpointingtypes.RawCheckpointWithMeta, error)
func (*Client) QueryStakingParams ¶
func (c *Client) QueryStakingParams() (*stakingtypes.Params, error)
QueryStakingParams queries staking module's parameters via ChainClient code is adapted from https://github.com/strangelove-ventures/lens/blob/v0.5.1/cmd/staking.go#L128-L149
Click to show internal directories.
Click to hide internal directories.