Documentation ¶
Index ¶
- Variables
- func CalcPositioningConstant(upkeepID int64, registryAddress ethkey.EIP55Address) (int32, error)
- func ValidatedKeeperSpec(tomlString string) (job.Job, error)
- type Delegate
- type MailRoom
- type ORM
- func (korm ORM) BatchDeleteUpkeepsForJob(ctx context.Context, jobID int32, upkeedIDs []int64) (int64, error)
- func (korm ORM) CreateEthTransactionForUpkeep(tx *gorm.DB, upkeep UpkeepRegistration, payload []byte) (models.EthTx, error)
- func (korm ORM) EligibleUpkeepsForRegistry(ctx context.Context, registryAddress ethkey.EIP55Address, blockNumber int64, ...) (upkeeps []UpkeepRegistration, _ error)
- func (korm ORM) LowestUnsyncedID(ctx context.Context, reg Registry) (nextID int64, err error)
- func (korm ORM) Registries(ctx context.Context) (registries []Registry, _ error)
- func (korm ORM) RegistryForJob(ctx context.Context, jobID int32) (registry Registry, _ error)
- func (korm ORM) SetLastRunHeightForUpkeepOnJob(db *gorm.DB, jobID int32, upkeepID int64, height int64) error
- func (korm ORM) UpsertRegistry(ctx context.Context, registry *Registry) error
- func (korm ORM) UpsertUpkeep(ctx context.Context, registration *UpkeepRegistration) error
- type Registry
- type RegistrySynchronizer
- func (rs *RegistrySynchronizer) Close() error
- func (rs *RegistrySynchronizer) HandleLog(broadcast log.Broadcast)
- func (rs *RegistrySynchronizer) IsV2Job() bool
- func (rs *RegistrySynchronizer) JobID() models.JobID
- func (rs *RegistrySynchronizer) JobIDV2() int32
- func (rs *RegistrySynchronizer) Start() error
- type UpkeepExecuter
- type UpkeepRegistration
Constants ¶
This section is empty.
Variables ¶
View Source
var RegistryABI = eth.MustGetABI(keeper_registry_wrapper.KeeperRegistryABI)
Functions ¶
func CalcPositioningConstant ¶ added in v0.10.5
func CalcPositioningConstant(upkeepID int64, registryAddress ethkey.EIP55Address) (int32, error)
the positioning constant is fixed because upkeepID and registryAddress are immutable
Types ¶
type Delegate ¶
type Delegate struct {
// contains filtered or unexported fields
}
func NewDelegate ¶
func (Delegate) OnJobCreated ¶ added in v0.10.8
func (Delegate) OnJobDeleted ¶ added in v0.10.8
type MailRoom ¶ added in v0.10.4
type MailRoom struct {
// contains filtered or unexported fields
}
MailRoom holds the log mailboxes for all the log types that keeper cares about
type ORM ¶
func (ORM) BatchDeleteUpkeepsForJob ¶ added in v0.10.4
func (ORM) CreateEthTransactionForUpkeep ¶
func (ORM) EligibleUpkeepsForRegistry ¶ added in v0.10.8
func (korm ORM) EligibleUpkeepsForRegistry( ctx context.Context, registryAddress ethkey.EIP55Address, blockNumber int64, gracePeriod int64, ) (upkeeps []UpkeepRegistration, _ error)
func (ORM) LowestUnsyncedID ¶
LowestUnsyncedID returns the largest upkeepID + 1, indicating the expected next upkeepID to sync from the contract
func (ORM) Registries ¶
func (ORM) RegistryForJob ¶ added in v0.10.4
func (ORM) SetLastRunHeightForUpkeepOnJob ¶ added in v0.10.4
func (ORM) UpsertRegistry ¶
func (ORM) UpsertUpkeep ¶
func (korm ORM) UpsertUpkeep(ctx context.Context, registration *UpkeepRegistration) error
type Registry ¶
type Registry struct { ID int32 `gorm:"primary_key"` BlockCountPerTurn int32 CheckGas int32 ContractAddress ethkey.EIP55Address FromAddress ethkey.EIP55Address JobID int32 KeeperIndex int32 NumKeepers int32 }
func NewRegistry ¶
func NewRegistry(address ethkey.EIP55Address, from ethkey.EIP55Address, jobID int32) Registry
type RegistrySynchronizer ¶
type RegistrySynchronizer struct { utils.StartStopOnce // contains filtered or unexported fields }
func NewRegistrySynchronizer ¶
func NewRegistrySynchronizer( job job.Job, contract *keeper_registry_wrapper.KeeperRegistry, db *gorm.DB, txm transmitter, jrm job.ORM, logBroadcaster log.Broadcaster, syncInterval time.Duration, minConfirmations uint64, ) *RegistrySynchronizer
func (*RegistrySynchronizer) Close ¶
func (rs *RegistrySynchronizer) Close() error
func (*RegistrySynchronizer) HandleLog ¶ added in v0.10.4
func (rs *RegistrySynchronizer) HandleLog(broadcast log.Broadcast)
func (*RegistrySynchronizer) IsV2Job ¶ added in v0.10.4
func (rs *RegistrySynchronizer) IsV2Job() bool
func (*RegistrySynchronizer) JobID ¶ added in v0.10.4
func (rs *RegistrySynchronizer) JobID() models.JobID
func (*RegistrySynchronizer) JobIDV2 ¶ added in v0.10.4
func (rs *RegistrySynchronizer) JobIDV2() int32
func (*RegistrySynchronizer) Start ¶
func (rs *RegistrySynchronizer) Start() error
type UpkeepExecuter ¶ added in v0.10.6
type UpkeepExecuter struct { utils.StartStopOnce // contains filtered or unexported fields }
func NewUpkeepExecuter ¶ added in v0.10.6
func (*UpkeepExecuter) Close ¶ added in v0.10.6
func (executer *UpkeepExecuter) Close() error
func (*UpkeepExecuter) Connect ¶ added in v0.10.8
func (executer *UpkeepExecuter) Connect(head *models.Head) error
func (*UpkeepExecuter) OnNewLongestChain ¶ added in v0.10.6
func (executer *UpkeepExecuter) OnNewLongestChain(ctx context.Context, head models.Head)
func (*UpkeepExecuter) Start ¶ added in v0.10.6
func (executer *UpkeepExecuter) Start() error
Click to show internal directories.
Click to hide internal directories.