Documentation ¶
Index ¶
- func AddBootstrapJob(t *testing.T, app *cltest.TestApplication, contractAddress common.Address) job.Job
- func AddOCR2Job(t *testing.T, app *cltest.TestApplication, contractAddress common.Address, ...) job.Job
- func CommitWithFinality(b *backends.SimulatedBackend)
- func CreateAndFundSubscriptions(t *testing.T, owner *bind.TransactOpts, ...) (subscriptionId uint64)
- func SetOracleConfig(t *testing.T, owner *bind.TransactOpts, ...)
- func SetRegistryConfig(t *testing.T, owner *bind.TransactOpts, ...)
- func StartNewChainWithContracts(t *testing.T, nClients int) (*bind.TransactOpts, *backends.SimulatedBackend, *time.Ticker, common.Address, ...)
- func StartNewMockEA(t *testing.T) *httptest.Server
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBootstrapJob ¶
func AddOCR2Job ¶
func CommitWithFinality ¶
func CommitWithFinality(b *backends.SimulatedBackend)
func CreateAndFundSubscriptions ¶
func CreateAndFundSubscriptions(t *testing.T, owner *bind.TransactOpts, linkToken *link_token_interface.LinkToken, registryContractAddress common.Address, registryContract *ocr2dr_registry.OCR2DRRegistry, clientContracts []deployedClientContract) (subscriptionId uint64)
func SetOracleConfig ¶
func SetOracleConfig(t *testing.T, owner *bind.TransactOpts, oracleContract *ocr2dr_oracle.OCR2DROracle, oracles []confighelper2.OracleIdentityExtra)
func SetRegistryConfig ¶
func SetRegistryConfig(t *testing.T, owner *bind.TransactOpts, registryContract *ocr2dr_registry.OCR2DRRegistry, oracleContractAddress common.Address)
func StartNewChainWithContracts ¶
func StartNewChainWithContracts(t *testing.T, nClients int) (*bind.TransactOpts, *backends.SimulatedBackend, *time.Ticker, common.Address, *ocr2dr_oracle.OCR2DROracle, []deployedClientContract, common.Address, *ocr2dr_registry.OCR2DRRegistry, *link_token_interface.LinkToken)
Types ¶
type Node ¶
type Node struct { App *cltest.TestApplication PeerID string Transmitter common.Address Keybundle ocr2key.KeyBundle Config config.GeneralConfig OracleIdentity confighelper2.OracleIdentityExtra }
func StartNewNode ¶
func StartNewNode( t *testing.T, owner *bind.TransactOpts, port uint16, dbName string, b *backends.SimulatedBackend, p2pV2Bootstrappers []commontypes.BootstrapperLocator, ) *Node
Click to show internal directories.
Click to hide internal directories.