Documentation
¶
Index ¶
- Constants
- func GetTestLogger(t *testing.T) zerolog.Logger
- type ChainlinkClient
- func (cc *ChainlinkClient) CreateJobsForContract(chainId, nodeName, p2pPort, mockUrl string, juelsPerFeeCoinSource string, ...) error
- func (cc *ChainlinkClient) GetNodeAddresses() []address.Address
- func (cc *ChainlinkClient) GetSetConfigArgs(t *testing.T) (signers []types.OnchainPublicKey, transmitters []types.Account, f uint8, ...)
- type Common
Constants ¶
View Source
const ( ChainBlockTime = "200ms" ChainBlockTimeSoak = "2s" )
Variables ¶
This section is empty.
Functions ¶
func GetTestLogger ¶
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 ¶
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 (*Common) SetLocalEnvironment ¶
SetupLocalEnvironment creates the environment for chainlink nodes
func (*Common) TearDownLocalEnvironment ¶
Click to show internal directories.
Click to hide internal directories.