Documentation
¶
Index ¶
- Constants
- func FundNodes(c *ethclient.Client, nodes []*clclient.ChainlinkClient, pkey string, ...) error
- func FundNodesWithContext(ctx context.Context, c *ethclient.Client, nodes []*clclient.ChainlinkClient, ...) error
- func NodeNamePrefix(nodeSetName string) string
- func SendETH(client *ethclient.Client, privateKeyHex string, toAddress string, ...) error
- func SendETHWithContext(ctx context.Context, client *ethclient.Client, privateKeyHex string, ...) error
- type Input
- type Output
Constants ¶
View Source
const ( DefaultHTTPPortStaticRangeStart = 10000 DefaultP2PStaticRangeStart = 12000 )
Variables ¶
This section is empty.
Functions ¶
func FundNodesWithContext ¶ added in v0.11.6
func FundNodesWithContext(ctx context.Context, c *ethclient.Client, nodes []*clclient.ChainlinkClient, pkey string, ethAmount float64) error
FundNodes funds Chainlink nodes with N ETH each
func NodeNamePrefix ¶ added in v0.1.17
Types ¶
type Input ¶
type Input struct {
Name string `` /* 165-byte string literal not displayed */
Nodes int `toml:"nodes" validate:"required" comment:"Number of nodes in node set"`
HTTPPortRangeStart int `toml:"http_port_range_start" comment:"HTTP ports range starting with port X and increasing by 1"`
P2PPortRangeStart int `toml:"p2p_port_range_start" comment:"P2P ports range starting with port X and increasing by 1"`
DlvPortRangeStart int `toml:"dlv_port_range_start" comment:"Delve debugger ports range starting with port X and increasing by 1"`
OverrideMode string `` /* 160-byte string literal not displayed */
DbInput *postgres.Input `toml:"db" validate:"required" comment:"Shared node set data base input for PostgreSQL"`
NodeSpecs []*clnode.Input `toml:"node_specs" validate:"required" comment:"Chainlink node TOML configurations"`
NoDNS bool `toml:"no_dns" comment:"Turn DNS on, helpful to isolate container from the internet"`
Out *Output `toml:"out" comment:"Nodeset config output"`
}
Input is a node set configuration input
type Output ¶
type Output struct {
// UseCache Whether to respect caching or not, if cache = true component won't be deployed again
UseCache bool `toml:"use_cache" comment:"Whether to respect caching or not, if cache = true component won't be deployed again"`
// DBOut Nodeset shared database output (PostgreSQL)
DBOut *postgres.Output `toml:"db_out" comment:"Nodeset shared database output (PostgreSQL)"`
// CLNodes Chainlink node config outputs
CLNodes []*clnode.Output `toml:"cl_nodes" comment:"Chainlink node config outputs"`
}
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 NewSharedDBNodeSetWithContext ¶ added in v0.11.6
func NewSharedDBNodeSetWithContext(ctx context.Context, in *Input, bcOut *blockchain.Output) (*Output, error)
NewSharedDBNodeSetWithContext 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!
Click to show internal directories.
Click to hide internal directories.