chainlink

package
v0.0.0-...-02b76df Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Name   string
	P2P    client.P2PData
	Config client.ChainlinkConfig
	Call   client.Chainlink
	Keys   NodeKeys
}

Node implements the node parameters

func New

func New(ctx *pulumi.Context, image *utils.Image, dbPort int, index int) (Node, error)

New spins up image for a chainlink node

func (*Node) AddBridge

func (n *Node) AddBridge(name, url string) error

AddBridge adds adapter to CL node

func (*Node) CredentialsString

func (n *Node) CredentialsString() string

CredentialsString returns formatted string for node input

func (Node) DeleteAllJobs

func (n Node) DeleteAllJobs() error

func (*Node) GetKeys

func (n *Node) GetKeys(chain string) error

TODO: verify does this work for evm and other chains

func (*Node) Health

func (n *Node) Health() (interface{}, error)

Health returns if the node is functional or not

func (*Node) Ready

func (n *Node) Ready() error

Ready checks when node is ready

type NodeKeys

type NodeKeys struct {
	OCR2KeyID             string
	OCR2OnchainPublicKey  string
	OCR2Transmitter       string
	OCR2TransmitterID     string
	OCR2OffchainPublicKey string
	OCR2ConfigPublicKey   string
	P2PID                 string
}

NodeKeys implements the needed keys from the core node

Jump to

Keyboard shortcuts

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