Documentation ¶
Index ¶
- Constants
- func JSONMarshalWithoutEscape(t interface{}) ([]byte, error)
- func NewBaseHandler(cfg *config.Config) *baseHandler
- func OCR2AutomationReports(hdlr *baseHandler, txs []string) error
- func OCR2GetConfig(hdlr *baseHandler, registry_addr string) error
- type BaseOCR2Tx
- type CSAKeyInfo
- type JsonError
- type Keeper
- func (k *Keeper) CreateJob(ctx context.Context)
- func (k *Keeper) Debug(ctx context.Context, args []string)
- func (k *Keeper) DeployKeepers(ctx context.Context)
- func (k *Keeper) DeployRegistry(ctx context.Context, verify bool)
- func (k *Keeper) LaunchAndTest(ctx context.Context, withdraw, printLogs, force, bootstrap bool)
- func (k *Keeper) PrintLogs(ctx context.Context, pattern string, grep, vgrep []string)
- func (k *Keeper) PrintVerifiableLoadStats(ctx context.Context, csv bool)
- func (h Keeper) RevertReason(hash string)
- func (h Keeper) ScrapeNodes()
- func (h Keeper) StartBootstrapNode(ctx context.Context, addr string, uiPort, p2pv2Port int, force bool) string
- 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) VerifyContract(params ...string)
- func (k *Keeper) Withdraw(ctx context.Context, hexAddr string)
- type NodeInfo
- 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
- type TenderlyAPIResponse
Constants ¶
const ( ConditionTrigger uint8 = iota LogTrigger )
Variables ¶
This section is empty.
Functions ¶
func NewBaseHandler ¶
NewBaseHandler is the constructor of baseHandler
func OCR2AutomationReports ¶
func OCR2GetConfig ¶
Types ¶
type BaseOCR2Tx ¶
type BaseOCR2Tx struct { types.Transaction // contains filtered or unexported fields }
func NewBaseOCR2Tx ¶
func NewBaseOCR2Tx(tx *types.Transaction) (*BaseOCR2Tx, error)
func (*BaseOCR2Tx) DataMap ¶
func (tx *BaseOCR2Tx) DataMap() (map[string]interface{}, error)
type CSAKeyInfo ¶
type CSAKeyInfo struct { NodeName string `json:"nodeName"` NodeAddress string `json:"nodeAddress"` PublicKey string `json:"publicKey"` }
func (*CSAKeyInfo) Equals ¶
func (ci *CSAKeyInfo) Equals(ci2 *CSAKeyInfo) bool
type JsonError ¶
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 ¶
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) PrintVerifiableLoadStats ¶
func (Keeper) RevertReason ¶
func (h Keeper) RevertReason(hash string)
RevertReason attempts to fetch more info on failed TX
func (Keeper) ScrapeNodes ¶
func (h Keeper) ScrapeNodes()
func (Keeper) StartBootstrapNode ¶
func (h Keeper) StartBootstrapNode(ctx context.Context, addr string, uiPort, p2pv2Port int, force bool) string
StartBootstrapNode starts the ocr2 bootstrap node with the given contract address, returns the tcp address of the node
func (*Keeper) UpdateRegistry ¶
UpdateRegistry attaches to an existing registry and possibly updates registry config
func (*Keeper) UpkeepCounterEvents ¶
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 ¶
UpkeepHistory prints the checkUpkeep status and keeper responsibility for a given upkeep in a set block range
func (*Keeper) VerifyContract ¶
type NodeInfo ¶
type NodeInfo struct { AdminAddress common.Address `json:"adminAddress"` CSAKeys []*CSAKeyInfo `json:"csaKeys"` DisplayName string `json:"displayName"` Ocr2ConfigPublicKey []string `json:"ocr2ConfigPublicKey"` Ocr2Id []string `json:"ocr2Id"` Ocr2OffchainPublicKey []string `json:"ocr2OffchainPublicKey"` Ocr2OnchainPublicKey []string `json:"ocr2OnchainPublicKey"` NodeAddress []string `json:"ocrNodeAddress"` OcrSigningAddress []string `json:"ocrSigningAddress"` PayeeAddress common.Address `json:"payeeAddress"` PeerId []string `json:"peerId"` Status string `json:"status"` }
type OCR2ReportDataElem ¶
type OCR2SetConfigTx ¶
type OCR2SetConfigTx struct {
BaseOCR2Tx
}
func NewOCR2SetConfigTx ¶
func NewOCR2SetConfigTx(tx *types.Transaction) (*OCR2SetConfigTx, error)
func (*OCR2SetConfigTx) Config ¶
func (tx *OCR2SetConfigTx) Config() (ocrtypes.ContractConfig, error)
type OCR2Transaction ¶
type OCR2Transaction struct {
// contains filtered or unexported fields
}
func NewOCR2Transaction ¶
func NewOCR2Transaction(raw map[string]interface{}) (*OCR2Transaction, error)
func (*OCR2Transaction) BlockNumber ¶
func (t *OCR2Transaction) BlockNumber() (uint64, error)
func (*OCR2Transaction) ChainId ¶
func (t *OCR2Transaction) ChainId() *big.Int
func (*OCR2Transaction) DecodeError ¶
func (t *OCR2Transaction) DecodeError(b []byte) string
func (*OCR2Transaction) To ¶
func (t *OCR2Transaction) To() *common.Address
func (*OCR2Transaction) TransactionHash ¶
func (t *OCR2Transaction) TransactionHash() common.Hash
type OCR2TransmitTx ¶
type OCR2TransmitTx struct {
OCR2Transaction
}
func NewOCR2TransmitTx ¶
func NewOCR2TransmitTx(raw map[string]interface{}) (*OCR2TransmitTx, error)
func (*OCR2TransmitTx) SetStaticValues ¶
func (t *OCR2TransmitTx) SetStaticValues(elem *OCR2ReportDataElem)
func (*OCR2TransmitTx) UpkeepsInTransmit ¶
func (t *OCR2TransmitTx) UpkeepsInTransmit() ([]ocr2keepers20.UpkeepResult, error)
type TenderlyAPIResponse ¶
type TenderlyAPIResponse struct { Simulation struct { Id string } }