testcommon

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallRunlogOracle added in v0.0.5

func CallRunlogOracle(i *RunlogSetupInputs)

CallRunlogOracle calls runlog oracle

func CheckRound

func CheckRound(i *OCRSetupInputs)

CheckRound checks the ocr rounds for correctness

func CheckRunlogCompleted added in v0.0.5

func CheckRunlogCompleted(i *RunlogSetupInputs)

CheckRunlogCompleted checks if oracle send the data on chain

func DeployOCRContracts added in v0.0.9

func DeployOCRContracts(i *OCRSetupInputs, nrOfOCRContracts int)

DeployOCRContracts deploys and funds a certain number of offchain aggregator contracts

func DeployOCRForEnv

func DeployOCRForEnv(i *OCRSetupInputs, envInit environment.K8sEnvSpecInit)

DeployOCRForEnv deploys the environment

func FundNodes added in v0.0.9

func FundNodes(i *OCRSetupInputs)

FundNodes funds all chainlink nodes

func NewOCRSetupInputForObservability added in v0.0.5

func NewOCRSetupInputForObservability(i *OCRSetupInputs, nodeCount int, contractCount int, rules map[string]*os.File)

NewOCRSetupInputForObservability deploys and setups env and clients for testing observability

func SendOCRJobs added in v0.0.5

func SendOCRJobs(i *OCRSetupInputs)

SendOCRJobs bootstraps the first node and to the other nodes sends ocr jobs that read from different adapters

func SetAdapterResults added in v0.0.5

func SetAdapterResults(i *OCRSetupInputs, results []int)

SetAdapterResults sets the mock responses in mockserver that are read by chainlink nodes to simulate different adapters

func SetupRunlogEnv added in v0.0.5

func SetupRunlogEnv(i *RunlogSetupInputs)

SetupRunlogEnv does all the environment setup for a run log type test

func SetupRunlogTest

func SetupRunlogTest(i *RunlogSetupInputs)

SetupRunlogTest does all other test preparations for runlog

func StartNewRound added in v0.0.5

func StartNewRound(i *OCRSetupInputs, roundNr int64)

StartNewRound requests a new round from the ocr contract and waits for confirmation

Types

type OCRSetupInputs

type OCRSetupInputs struct {
	SuiteSetup     actions.SuiteSetup
	NetworkInfo    actions.NetworkInfo
	ChainlinkNodes []client.Chainlink
	DefaultWallet  client.BlockchainWallet
	OCRInstances   []contracts.OffchainAggregator
	Mockserver     *client.MockserverClient
}

OCRSetupInputs inputs needed for OCR tests

type RunlogSetupInputs

type RunlogSetupInputs struct {
	SuiteSetup    actions.SuiteSetup
	NetworkInfo   actions.NetworkInfo
	Adapter       environment.ExternalAdapter
	Nodes         []client.Chainlink
	NodeAddresses []common.Address
	Oracle        contracts.Oracle
	Consumer      contracts.APIConsumer
	JobUUID       uuid.UUID
	Err           error
}

RunlogSetupInputs inputs needed for a runlog test

Jump to

Keyboard shortcuts

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