Documentation ¶
Index ¶
- func NewBaseHandler(cfg *config.Config) *baseHandler
- func OCR2AutomationReports(hdlr *baseHandler, txs []string) error
- func OCR2GetConfig(hdlr *baseHandler, registry_addr string) error
- type BaseOCR2Tx
- type Feed
- type JsonError
- type Keeper
- func (k *Keeper) CreateJob(ctx context.Context)
- func (k *Keeper) DeployKeepers(ctx context.Context)
- func (k *Keeper) DeployRegistry(ctx context.Context)
- func (k *Keeper) LaunchAndTest(ctx context.Context, withdraw bool, printLogs bool)
- func (h Keeper) RevertReason(hash string)
- func (h Keeper) StartBootstrapNode(ctx context.Context, addr string, uiPort, p2pv2Port int)
- func (k *Keeper) UpdateRegistry(ctx context.Context)
- func (k *Keeper) UpkeepCounterEvents(ctx context.Context, hexAddr string, fromBlock, toBlock uint64)
- func (k *Keeper) UpkeepHistory(ctx context.Context, upkeepId *big.Int, from, to, gasPrice uint64)
- func (k *Keeper) Withdraw(ctx context.Context, hexAddr string)
- type OCR2ReportDataElem
- type OCR2SetConfigTx
- type OCR2Transaction
- func (t *OCR2Transaction) BlockNumber() (uint64, error)
- func (t *OCR2Transaction) ChainId() *big.Int
- func (t *OCR2Transaction) DecodeError(b []byte) string
- func (t *OCR2Transaction) From() (common.Address, error)
- func (t *OCR2Transaction) Method() (*abi.Method, error)
- func (t *OCR2Transaction) To() *common.Address
- func (t *OCR2Transaction) TransactionHash() common.Hash
- type OCR2TransmitTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBaseHandler ¶
NewBaseHandler is the constructor of baseHandler
func OCR2AutomationReports ¶ added in v1.12.0
func OCR2GetConfig ¶ added in v1.12.0
Types ¶
type BaseOCR2Tx ¶ added in v1.12.0
type BaseOCR2Tx struct { types.Transaction // contains filtered or unexported fields }
func NewBaseOCR2Tx ¶ added in v1.12.0
func NewBaseOCR2Tx(tx *types.Transaction) (*BaseOCR2Tx, error)
func (*BaseOCR2Tx) DataMap ¶ added in v1.12.0
func (tx *BaseOCR2Tx) DataMap() (map[string]interface{}, error)
type Feed ¶
type Feed struct {
// contains filtered or unexported fields
}
Feed is the price feeds commands handler
func (*Feed) DeployDerivedPriceFeed ¶
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
type JsonError ¶ added in v1.12.0
type JsonError interface { Error() string // ErrorCode() int ErrorData() interface{} }
JsonError is a rpc.jsonError interface
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper is the keepers commands handler
func (*Keeper) DeployKeepers ¶
DeployKeepers contains a logic to deploy keepers.
func (*Keeper) DeployRegistry ¶ added in v1.10.0
DeployRegistry deploys a new keeper registry.
func (*Keeper) LaunchAndTest ¶
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
StartBootstrapNode starts the ocr2 bootstrap node with the given contract address
func (*Keeper) UpdateRegistry ¶ added in v1.10.0
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
UpkeepHistory prints the checkUpkeep status and keeper responsibility for a given upkeep in a set block range
type OCR2ReportDataElem ¶ added in v1.12.0
type OCR2SetConfigTx ¶ added in v1.12.0
type OCR2SetConfigTx struct {
BaseOCR2Tx
}
func NewOCR2SetConfigTx ¶ added in v1.12.0
func NewOCR2SetConfigTx(tx *types.Transaction) (*OCR2SetConfigTx, error)
func (*OCR2SetConfigTx) Config ¶ added in v1.12.0
func (tx *OCR2SetConfigTx) Config() (ocrtypes.ContractConfig, error)
type OCR2Transaction ¶ added in v1.12.0
type OCR2Transaction struct {
// contains filtered or unexported fields
}
func NewOCR2Transaction ¶ added in v1.12.0
func NewOCR2Transaction(raw map[string]interface{}) (*OCR2Transaction, error)
func (*OCR2Transaction) BlockNumber ¶ added in v1.12.0
func (t *OCR2Transaction) BlockNumber() (uint64, error)
func (*OCR2Transaction) ChainId ¶ added in v1.12.0
func (t *OCR2Transaction) ChainId() *big.Int
func (*OCR2Transaction) DecodeError ¶ added in v1.12.0
func (t *OCR2Transaction) DecodeError(b []byte) string
func (*OCR2Transaction) From ¶ added in v1.12.0
func (t *OCR2Transaction) From() (common.Address, error)
func (*OCR2Transaction) Method ¶ added in v1.12.0
func (t *OCR2Transaction) Method() (*abi.Method, error)
func (*OCR2Transaction) To ¶ added in v1.12.0
func (t *OCR2Transaction) To() *common.Address
func (*OCR2Transaction) TransactionHash ¶ added in v1.12.0
func (t *OCR2Transaction) TransactionHash() common.Hash
type OCR2TransmitTx ¶ added in v1.12.0
type OCR2TransmitTx struct {
OCR2Transaction
}
func NewOCR2TransmitTx ¶ added in v1.12.0
func NewOCR2TransmitTx(raw map[string]interface{}) (*OCR2TransmitTx, error)
func (*OCR2TransmitTx) BatchElem ¶ added in v1.12.0
func (t *OCR2TransmitTx) BatchElem() (rpc.BatchElem, error)
func (*OCR2TransmitTx) SetStaticValues ¶ added in v1.12.0
func (t *OCR2TransmitTx) SetStaticValues(elem *OCR2ReportDataElem)
func (*OCR2TransmitTx) UpkeepsInTransmit ¶ added in v1.12.0
func (t *OCR2TransmitTx) UpkeepsInTransmit() ([]plugintypes.UpkeepResult, error)