babylon_integration

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BtcLatestHeight

func BtcLatestHeight(c *grpc.ClientConn) (uint64, error)

func GenerateNEmptyHeaders

func GenerateNEmptyHeaders(r *rand.Rand, tip *bbn.BTCHeaderBytes, n uint64) []bbn.BTCHeaderBytes

func LatestHeight

func LatestHeight(c *grpc.ClientConn) (int64, error)

func WaitBtcForHeight

func WaitBtcForHeight(c *grpc.ClientConn, h uint64) (uint64, error)

func WaitForBtcHeightWithTimeout

func WaitForBtcHeightWithTimeout(c *grpc.ClientConn, h uint64, t time.Duration) (uint64, error)

func WaitForHeight

func WaitForHeight(c *grpc.ClientConn, h int64) (int64, error)

func WaitForHeightWithTimeout

func WaitForHeightWithTimeout(c *grpc.ClientConn, h int64, t time.Duration) (int64, error)

func WaitForNextBlock

func WaitForNextBlock(c *grpc.ClientConn) error

func WaitForNextBtcBlock

func WaitForNextBtcBlock(c *grpc.ClientConn) error

Types

type TestTxSender

type TestTxSender struct {
	Conn *grpc.ClientConn
	// contains filtered or unexported fields
}

func NewTestTxSender

func NewTestTxSender(
	keyringPath string,
	genesisPath string,
	conn *grpc.ClientConn,
) (*TestTxSender, error)

func (*TestTxSender) GetBtcTip

func (b *TestTxSender) GetBtcTip() *lightclient.BTCHeaderInfo

func (*TestTxSender) SendBtcHeadersTransaction

func (b *TestTxSender) SendBtcHeadersTransaction(headers []bbn.BTCHeaderBytes) (*txservice.BroadcastTxResponse, error)

Jump to

Keyboard shortcuts

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