Documentation
¶
Index ¶
- func CallRunlogOracle(i *RunlogSetupInputs)
- func CheckRound(i *OCRSetupInputs)
- func CheckRunlogCompleted(i *RunlogSetupInputs)
- func DeployOCRForEnv(i *OCRSetupInputs, envName string, envInit environment.K8sEnvSpecInit)
- func NewOCRSetupInputForObservability(i *OCRSetupInputs, nodeCount int, rules map[string]*os.File)
- func SendOCRJobs(i *OCRSetupInputs)
- func SetAdapterResults(i *OCRSetupInputs, results []int)
- func SetupOCRTest(i *OCRSetupInputs)
- func SetupRunlogEnv(i *RunlogSetupInputs)
- func SetupRunlogTest(i *RunlogSetupInputs)
- func StartNewRound(i *OCRSetupInputs, roundNr int64)
- type OCRSetupInputs
- type RunlogSetupInputs
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 DeployOCRForEnv ¶
func DeployOCRForEnv(i *OCRSetupInputs, envName string, envInit environment.K8sEnvSpecInit)
DeployOCRForEnv deploys the environment
func NewOCRSetupInputForObservability ¶ added in v0.0.5
func NewOCRSetupInputForObservability(i *OCRSetupInputs, nodeCount 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.DefaultSuiteSetup
ChainlinkNodes []client.Chainlink
DefaultWallet client.BlockchainWallet
OCRInstance contracts.OffchainAggregator
Mockserver *client.MockserverClient
}
OCRSetupInputs inputs needed for OCR tests
type RunlogSetupInputs ¶
type RunlogSetupInputs struct {
S *actions.DefaultSuiteSetup
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