Documentation ¶
Index ¶
- Variables
- func ValidatedKeeperSpec(tomlString string) (job.Job, error)
- type Delegate
- type ORM
- func (korm ORM) BatchDeleteUpkeeps(ctx context.Context, registryID int32, upkeedIDs []int64) error
- func (korm ORM) CreateEthTransactionForUpkeep(ctx context.Context, upkeep UpkeepRegistration, payload []byte) error
- func (korm ORM) DeleteRegistryByJobID(ctx context.Context, jobID int32) error
- func (korm ORM) EligibleUpkeeps(ctx context.Context, 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) UpsertRegistry(ctx context.Context, registry *Registry) error
- func (korm ORM) UpsertUpkeep(ctx context.Context, registration *UpkeepRegistration) error
- type Registry
- type RegistrySynchronizer
- type UpkeepExecutor
- type UpkeepRegistration
Constants ¶
This section is empty.
Variables ¶
View Source
var RegistryABI = eth.MustGetABI(keeper_registry_wrapper.KeeperRegistryABI)
Functions ¶
Types ¶
type Delegate ¶
type Delegate struct {
// contains filtered or unexported fields
}
func NewDelegate ¶
type ORM ¶
func (ORM) BatchDeleteUpkeeps ¶
func (ORM) CreateEthTransactionForUpkeep ¶
func (ORM) DeleteRegistryByJobID ¶
func (ORM) EligibleUpkeeps ¶
func (ORM) LowestUnsyncedID ¶
LowestUnsyncedID returns the largest upkeepID + 1, indicating the expected next upkeepID to sync from the contract
func (ORM) Registries ¶
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 models.EIP55Address FromAddress models.EIP55Address JobID int32 KeeperIndex int32 NumKeepers int32 }
func NewRegistry ¶
func NewRegistry(address models.EIP55Address, from models.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, syncInterval time.Duration, ) *RegistrySynchronizer
func (*RegistrySynchronizer) Close ¶
func (rs *RegistrySynchronizer) Close() error
func (*RegistrySynchronizer) Start ¶
func (rs *RegistrySynchronizer) Start() error
type UpkeepExecutor ¶
type UpkeepExecutor struct { utils.StartStopOnce // contains filtered or unexported fields }
func NewUpkeepExecutor ¶
func NewUpkeepExecutor( job job.Job, db *gorm.DB, ethClient eth.Client, headBroadcaster *services.HeadBroadcaster, ) *UpkeepExecutor
func (*UpkeepExecutor) Close ¶
func (executor *UpkeepExecutor) Close() error
func (*UpkeepExecutor) OnNewLongestChain ¶
func (executor *UpkeepExecutor) OnNewLongestChain(ctx context.Context, head models.Head)
func (*UpkeepExecutor) Start ¶
func (executor *UpkeepExecutor) Start() error
Click to show internal directories.
Click to hide internal directories.