simple_node_set

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 25 Imported by: 13 modules, 31 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultHTTPPortStaticRangeStart = 10000
	DefaultP2PStaticRangeStart      = 12000
)

Variables

This section is empty.

Functions

func FundNodes added in v0.1.17

func FundNodes(c *ethclient.Client, nodes []*clclient.ChainlinkClient, pkey string, ethAmount float64) error

FundNodes funds Chainlink nodes with N ETH each

func SendETH added in v0.1.17

func SendETH(client *ethclient.Client, privateKeyHex string, toAddress string, amount *big.Float) error

Types

type Input

type Input struct {
	Name               string          `toml:"name" validate:"required"`
	Nodes              int             `toml:"nodes" validate:"required"`
	HTTPPortRangeStart int             `toml:"http_port_range_start"`
	P2PPortRangeStart  int             `toml:"p2p_port_range_start"`
	DlvPortRangeStart  int             `toml:"dlv_port_range_start"`
	OverrideMode       string          `toml:"override_mode" validate:"required,oneof=all each"`
	DbInput            *postgres.Input `toml:"db" validate:"required"`
	NodeSpecs          []*clnode.Input `toml:"node_specs" validate:"required"`
	NoDNS              bool            `toml:"no_dns"`
	Out                *Output         `toml:"out"`
}

Input is a node set configuration input

type Output

type Output struct {
	UseCache bool             `toml:"use_cache"`
	DBOut    *postgres.Output `toml:"db_out"`
	CLNodes  []*clnode.Output `toml:"cl_nodes"`
}

Output is a node set configuration output, used for caching or external components

func NewSharedDBNodeSet

func NewSharedDBNodeSet(in *Input, bcOut *blockchain.Output) (*Output, error)

NewSharedDBNodeSet create a new node set with a shared database instance all the nodes have their own isolated database

func UpgradeNodeSet added in v0.1.17

func UpgradeNodeSet(t *testing.T, in *Input, bc *blockchain.Output, wait time.Duration) (*Output, error)

UpgradeNodeSet updates nodes configuration TOML files this API is discouraged, however, you can use it if nodes require restart or configuration updates, temporarily!

Jump to

Keyboard shortcuts

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