common

package
v0.0.0-...-58831cf Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 29 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ChainBlockTime     = "200ms"
	ChainBlockTimeSoak = "2s"
)

Variables

This section is empty.

Functions

func GetTestLogger

func GetTestLogger(t *testing.T) zerolog.Logger

GetTestLogger TODO: This is a duplicate of the same function in chainlink-testing-framework. We should replace this with a call to the ctf version when chainlink-starknet is updated to use the latest ctf version. GetTestLogger instantiates a logger that takes into account the test context and the log level

Types

type ChainlinkClient

type ChainlinkClient struct {
	ChainlinkNodes []*client.ChainlinkClient
	NodeKeys       []client.NodeKeysBundle
	// contains filtered or unexported fields
}

func NewChainlinkClient

func NewChainlinkClient(env *environment.Environment, nodeName string, chainId string) (*ChainlinkClient, error)

NewChainlinkClient creates node keys and defines chain and nodes for each node

func (*ChainlinkClient) CreateJobsForContract

func (cc *ChainlinkClient) CreateJobsForContract(chainId, nodeName, p2pPort, mockUrl string, juelsPerFeeCoinSource string, ocrControllerAddress string) error

CreateJobsForContract Creates and sets up the boostrap jobs as well as OCR jobs

func (*ChainlinkClient) GetNodeAddresses

func (cc *ChainlinkClient) GetNodeAddresses() []address.Address

func (*ChainlinkClient) GetSetConfigArgs

func (cc *ChainlinkClient) GetSetConfigArgs(t *testing.T) (
	signers []types.OnchainPublicKey,
	transmitters []types.Account,
	f uint8,
	onchainConfig []byte,
	offchainConfigVersion uint64,
	offchainConfig []byte,
)

type Common

type Common struct {
	IsSoak                bool
	P2PPort               string
	ChainName             string
	ChainId               string
	NodeCount             int
	TTL                   time.Duration
	TestDuration          time.Duration
	MockUrl               string
	Mnemonic              string
	ObservationSource     string
	JuelsPerFeeCoinSource string
	ChainlinkConfig       string
	Env                   *environment.Environment
}

func NewCommon

func NewCommon(t *testing.T, chainID, internalFullNodeUrl, internalSolidityUrl string) *Common

func (*Common) SetLocalEnvironment

func (c *Common) SetLocalEnvironment(t *testing.T, genesisAddress string)

SetupLocalEnvironment creates the environment for chainlink nodes

func (*Common) TearDownLocalEnvironment

func (c *Common) TearDownLocalEnvironment(t *testing.T)

Jump to

Keyboard shortcuts

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