testkit

package module
v0.0.0-...-e111e73 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 4

README

Testing Kit

This directory contains all necessary implementations that are utilized in tests directory, mainly:

  • Sync Topics
  • App Creation and CLI handling
  • Node Creation

Please follow up to dedicated inner doc.go for more details.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountAddressTopic   = sync.NewTopic("account-address", "")
	ValidatorPeerTopic    = sync.NewTopic("validator-info", &appkit.ValidatorNode{})
	InitialGenenesisTopic = sync.NewTopic("initial-genesis", "")
	GenesisTxTopic        = sync.NewTopic("genesis-tx", "")
	BlockHashTopic        = sync.NewTopic("block-hash", "")
)

These topics are used around Celestia App instances

View Source
var (
	BridgeTotalTopic = sync.NewTopic("bridge-amount", 0)
	AppNodeTopic     = sync.NewTopic("app-info", &AppNodeInfo{})
	BridgeNodeTopic  = sync.NewTopic("bridge-info", &BridgeNodeInfo{})
	FundAccountTopic = sync.NewTopic("account-addr", "")
)

These topics are used around Celestia Bridge/Full/Light instances

View Source
var (
	AppStartedState          = sync.State("app-started")
	BridgeStartedState       = sync.State("bridge-started")
	PastBlocksGeneratedState = sync.State("past-blocks-generated")
	AccountsFundedState      = sync.State("accounts-funded")
	FinishState              = sync.State("test-finished")
)

FinishState should be signaled by those, againts which we are testing

Functions

This section is empty.

Types

type AppNodeInfo

type AppNodeInfo struct {
	ID int
	IP net.IP
}

AppNodeInfo is needed for creation of Celestia Bridge instances Events based on AppNodeTopic are used for pub/sub of AppNodeInfo

type BridgeNodeInfo

type BridgeNodeInfo struct {
	ID          int
	Maddr       string
	TrustedHash string
}

BridgeNodeInfo is needed for creation of Celestia Full/Light instances Events based on BridgeNodeTopic are used for pub/sub of BridgeNodeInfo

Directories

Path Synopsis
Package appkit is a wrapper around the App Client and Cosmos's Server cmds
Package appkit is a wrapper around the App Client and Cosmos's Server cmds
Package common is a helper around redundant creation of Network, App and Node part
Package common is a helper around redundant creation of Network, App and Node part

Jump to

Keyboard shortcuts

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