automationv2

package
v0.0.0-...-55545bb Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutomationTest

type AutomationTest struct {
	ChainClient blockchain.EVMClient
	Deployer    contracts.ContractDeployer

	LinkToken   contracts.LinkToken
	Transcoder  contracts.UpkeepTranscoder
	EthLinkFeed contracts.MockETHLINKFeed
	GasFeed     contracts.MockGasFeed
	Registry    contracts.KeeperRegistry
	Registrar   contracts.KeeperRegistrar

	RegistrySettings       contracts.KeeperRegistrySettings
	RegistrarSettings      contracts.KeeperRegistrarSettings
	PluginConfig           ocr2keepers30config.OffchainConfig
	PublicConfig           ocr3.PublicConfig
	UpkeepPrivilegeManager common.Address
	UpkeepIDs              []*big.Int

	IsOnk8s bool

	ChainlinkNodesk8s []*client.ChainlinkK8sClient
	ChainlinkNodes    []*client.ChainlinkClient

	DockerEnv *test_env.CLClusterTestEnv

	NodeDetails              []NodeDetails
	DefaultP2Pv2Bootstrapper string

	TransmitterKeyIndex int
	// contains filtered or unexported fields
}

func NewAutomationTestDocker

func NewAutomationTestDocker(
	chainClient blockchain.EVMClient,
	deployer contracts.ContractDeployer,
	chainlinkNodes []*client.ChainlinkClient,
) *AutomationTest

func NewAutomationTestK8s

func NewAutomationTestK8s(
	chainClient blockchain.EVMClient,
	deployer contracts.ContractDeployer,
	chainlinkNodes []*client.ChainlinkK8sClient,
) *AutomationTest

func (*AutomationTest) AddAutomationJobs

func (a *AutomationTest) AddAutomationJobs() error

func (*AutomationTest) AddBootstrapJob

func (a *AutomationTest) AddBootstrapJob() error

func (*AutomationTest) AddJobsAndSetConfig

func (a *AutomationTest) AddJobsAndSetConfig(t *testing.T)

func (*AutomationTest) CollectNodeDetails

func (a *AutomationTest) CollectNodeDetails() error

func (*AutomationTest) ConfirmUpkeepsRegistered

func (a *AutomationTest) ConfirmUpkeepsRegistered(registrationTxHashes []common.Hash) ([]*big.Int, error)

func (*AutomationTest) DeployEthLinkFeed

func (a *AutomationTest) DeployEthLinkFeed() error

func (*AutomationTest) DeployGasFeed

func (a *AutomationTest) DeployGasFeed() error
func (a *AutomationTest) DeployLINK() error

func (*AutomationTest) DeployRegistrar

func (a *AutomationTest) DeployRegistrar() error

func (*AutomationTest) DeployRegistry

func (a *AutomationTest) DeployRegistry() error

func (*AutomationTest) DeployTranscoder

func (a *AutomationTest) DeployTranscoder() error

func (*AutomationTest) LoadAutomationDeployment

func (a *AutomationTest) LoadAutomationDeployment(t *testing.T, linkTokenAddress,
	ethLinkFeedAddress, gasFeedAddress, transcoderAddress, registryAddress, registrarAddress string)

func (*AutomationTest) LoadEthGasFeed

func (a *AutomationTest) LoadEthGasFeed(address string) error

func (*AutomationTest) LoadEthLinkFeed

func (a *AutomationTest) LoadEthLinkFeed(address string) error
func (a *AutomationTest) LoadLINK(address string) error

func (*AutomationTest) LoadRegistrar

func (a *AutomationTest) LoadRegistrar(address string) error

func (*AutomationTest) LoadRegistry

func (a *AutomationTest) LoadRegistry(address string) error

func (*AutomationTest) LoadTranscoder

func (a *AutomationTest) LoadTranscoder(address string) error

func (*AutomationTest) RegisterUpkeeps

func (a *AutomationTest) RegisterUpkeeps(upkeepConfigs []UpkeepConfig) ([]common.Hash, error)

func (*AutomationTest) SetConfigOnRegistry

func (a *AutomationTest) SetConfigOnRegistry() error

func (*AutomationTest) SetDockerEnv

func (a *AutomationTest) SetDockerEnv(env *test_env.CLClusterTestEnv)

func (*AutomationTest) SetIsOnk8s

func (a *AutomationTest) SetIsOnk8s(flag bool)

func (*AutomationTest) SetMercuryCredentialName

func (a *AutomationTest) SetMercuryCredentialName(name string)

func (*AutomationTest) SetTransmitterKeyIndex

func (a *AutomationTest) SetTransmitterKeyIndex(index int)

func (*AutomationTest) SetUpkeepPrivilegeManager

func (a *AutomationTest) SetUpkeepPrivilegeManager(address string)

func (*AutomationTest) SetUseLogBufferV1

func (a *AutomationTest) SetUseLogBufferV1(flag bool)

func (*AutomationTest) SetupAutomationDeployment

func (a *AutomationTest) SetupAutomationDeployment(t *testing.T)

func (*AutomationTest) SetupMercuryMock

func (a *AutomationTest) SetupMercuryMock(t *testing.T, imposters []ctfTestEnv.KillgraveImposter)

type NodeDetails

type NodeDetails struct {
	P2PId                 string
	TransmitterAddresses  []string
	OCR2ConfigPublicKey   string
	OCR2OffchainPublicKey string
	OCR2OnChainPublicKey  string
	OCR2Id                string
}

type UpkeepConfig

type UpkeepConfig struct {
	UpkeepName     string
	EncryptedEmail []byte
	UpkeepContract common.Address
	GasLimit       uint32
	AdminAddress   common.Address
	TriggerType    uint8
	CheckData      []byte
	TriggerConfig  []byte
	OffchainConfig []byte
	FundingAmount  *big.Int
}

Jump to

Keyboard shortcuts

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