Documentation ¶
Index ¶
- func CheckFromAddressMaxGasPrices(jb job.Job, keySpecificMaxGas keySpecificMaxGasFn) (err error)
- func CheckFromAddressesExist(ctx context.Context, jb job.Job, gethks keystore.Eth) (err error)
- func FromAddressMaxGasPricesAllEqual(jb job.Job, keySpecificMaxGasPriceWei keySpecificMaxGasFn) (allEqual bool)
- type Delegate
- func (d *Delegate) AfterJobCreated(job.Job)
- func (d *Delegate) BeforeJobCreated(job.Job)
- func (d *Delegate) BeforeJobDeleted(job.Job)
- func (d *Delegate) JobType() job.Type
- func (d *Delegate) OnDeleteJob(context.Context, job.Job) error
- func (d *Delegate) ServicesForSpec(ctx context.Context, jb job.Job) ([]job.ServiceCtx, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFromAddressMaxGasPrices ¶
CheckFromAddressMaxGasPrices checks if the provided gas price in the job spec gas lane parameter matches what is set for the provided from addresses. If they don't match, this is a configuration error. An error is returned with all the keys that do not match the provided gas lane price.
func CheckFromAddressesExist ¶
CheckFromAddressesExist returns an error if and only if one of the addresses in the VRF spec's fromAddresses field does not exist in the keystore.
func FromAddressMaxGasPricesAllEqual ¶
func FromAddressMaxGasPricesAllEqual(jb job.Job, keySpecificMaxGasPriceWei keySpecificMaxGasFn) (allEqual bool)
FromAddressMaxGasPricesAllEqual returns true if and only if all the specified from addresses in the fromAddresses field of the VRF v2 job have the same key-specific max gas price.
Types ¶
type Delegate ¶
type Delegate struct {
// contains filtered or unexported fields
}
func NewDelegate ¶
func (*Delegate) AfterJobCreated ¶
func (*Delegate) BeforeJobCreated ¶
func (*Delegate) BeforeJobDeleted ¶
func (*Delegate) ServicesForSpec ¶
ServicesForSpec satisfies the job.Delegate interface.