handler

package
v1.10.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 58 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBaseHandler

func NewBaseHandler(cfg *config.Config) *baseHandler

NewBaseHandler is the constructor of baseHandler

Types

type Feed

type Feed struct {
	// contains filtered or unexported fields
}

Feed is the price feeds commands handler

func NewFeed

func NewFeed(cfg *config.Config) *Feed

NewFeed is the constructor of Feed

func (*Feed) DeployDerivedPriceFeed

func (h *Feed) DeployDerivedPriceFeed(ctx context.Context)

DeployDerivedPriceFeed deploys and approves the derived price feed.

func (Feed) RevertReason

func (h Feed) RevertReason(hash string)

RevertReason attempts to fetch more info on failed TX

func (Feed) StartBootstrapNode added in v1.10.0

func (h Feed) StartBootstrapNode(ctx context.Context, addr string, uiPort, p2pv2Port int)

StartBootstrapNode starts the ocr2 bootstrap node with the given contract address

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper is the keepers commands handler

func NewKeeper

func NewKeeper(cfg *config.Config) *Keeper

NewKeeper creates new instance of Keeper

func (*Keeper) CreateJob added in v1.6.0

func (k *Keeper) CreateJob(ctx context.Context)

func (*Keeper) DeployKeepers

func (k *Keeper) DeployKeepers(ctx context.Context)

DeployKeepers contains a logic to deploy keepers.

func (*Keeper) DeployRegistry added in v1.10.0

func (k *Keeper) DeployRegistry(ctx context.Context)

DeployRegistry deploys a new keeper registry.

func (*Keeper) LaunchAndTest

func (k *Keeper) LaunchAndTest(ctx context.Context, withdraw bool, printLogs bool)

LaunchAndTest launches keeper registry, chainlink nodes, upkeeps and start performing. 1. launch chainlink node using docker image 2. get keeper registry instance, deploy if needed 3. deploy upkeeps 4. create keeper jobs 5. fund nodes if needed 6. set keepers in the registry 7. withdraw funds after tests are done -> TODO: wait until tests are done instead of cancel manually

func (Keeper) RevertReason

func (h Keeper) RevertReason(hash string)

RevertReason attempts to fetch more info on failed TX

func (Keeper) StartBootstrapNode added in v1.10.0

func (h Keeper) StartBootstrapNode(ctx context.Context, addr string, uiPort, p2pv2Port int)

StartBootstrapNode starts the ocr2 bootstrap node with the given contract address

func (*Keeper) UpdateRegistry added in v1.10.0

func (k *Keeper) UpdateRegistry(ctx context.Context)

UpdateRegistry attaches to an existing registry and possibly updates registry config

func (*Keeper) UpkeepCounterEvents added in v1.3.0

func (k *Keeper) UpkeepCounterEvents(ctx context.Context, hexAddr string, fromBlock, toBlock uint64)

UpkeepCounterEvents print out emitted events and write to csv file

func (*Keeper) UpkeepHistory added in v1.3.0

func (k *Keeper) UpkeepHistory(ctx context.Context, upkeepId *big.Int, from, to, gasPrice uint64)

UpkeepHistory prints the checkUpkeep status and keeper responsibility for a given upkeep in a set block range

func (*Keeper) Withdraw added in v1.3.0

func (k *Keeper) Withdraw(ctx context.Context, hexAddr string)

Withdraw takes a keeper registry address, cancels all upkeeps and withdraws the funds

Jump to

Keyboard shortcuts

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