Documentation ¶
Index ¶
- Constants
- Variables
- func GetStartingResponseCountsV2(db *gorm.DB, l logger.Logger) map[string]uint64
- func VRFCoordinatorABI() abi.ABI
- func VRFFulfillMethod() abi.Method
- func VRFFulfillSelector() string
- func VRFRandomnessRequestLogTopic() common.Hash
- func ValidatedVRFSpec(tomlString string) (job.Job, error)
- type Config
- type Delegate
- type GethKeyStore
- type RandomnessRequestLog
- type RawRandomnessRequestLog
Constants ¶
const ( // Gas to be used GasAfterPaymentCalculation = 5000 + 2100 + 20000 + 2*2100 - 4800 + 21000 + 6874 // Static costs of argument encoding etc. note that it varies by +/- x*12 for every x bytes of non-zero data in the proof. )
Variables ¶
var (
ErrKeyNotSet = errors.New("key not set")
)
Functions ¶
func GetStartingResponseCountsV2 ¶ added in v1.10.17
func VRFCoordinatorABI ¶ added in v1.10.17
VRFCoordinatorABI returns the ABI for the VRFCoordinator contract
func VRFFulfillMethod ¶ added in v1.10.17
VRFFulfillMethod returns the golang abstraction of the fulfillRandomnessRequest method
func VRFFulfillSelector ¶ added in v1.10.17
func VRFFulfillSelector() string
VRFFulfillSelector returns the signature of the fulfillRandomnessRequest method on the VRFCoordinator contract
func VRFRandomnessRequestLogTopic ¶ added in v1.10.17
VRFRandomnessRequestLogTopic returns the signature of the RandomnessRequest log emitted by the VRFCoordinator contract
Types ¶
type Delegate ¶
type Delegate struct {
// contains filtered or unexported fields
}
func NewDelegate ¶
func (*Delegate) AfterJobCreated ¶
func (*Delegate) BeforeJobDeleted ¶
type GethKeyStore ¶
type RandomnessRequestLog ¶ added in v1.10.17
type RandomnessRequestLog struct { KeyHash common.Hash Seed *big.Int // uint256 JobID common.Hash Sender common.Address Fee *assets.Link // uint256 RequestID common.Hash Raw RawRandomnessRequestLog }
RandomnessRequestLog contains the data for a RandomnessRequest log, represented as compatible golang types.
func ParseRandomnessRequestLog ¶ added in v1.10.17
func ParseRandomnessRequestLog(log types.Log) (*RandomnessRequestLog, error)
ParseRandomnessRequestLog returns the RandomnessRequestLog corresponding to the raw logData
func RawRandomnessRequestLogToRandomnessRequestLog ¶ added in v1.10.17
func RawRandomnessRequestLogToRandomnessRequestLog( l *RawRandomnessRequestLog) *RandomnessRequestLog
func (*RandomnessRequestLog) ComputedRequestID ¶ added in v1.10.17
func (l *RandomnessRequestLog) ComputedRequestID() common.Hash
func (*RandomnessRequestLog) Equal ¶ added in v1.10.17
func (l *RandomnessRequestLog) Equal(ol RandomnessRequestLog) bool
Equal(ol) is true iff l is the same log as ol, and both represent valid RandomnessRequest logs.
func (*RandomnessRequestLog) RawData ¶ added in v1.10.17
func (l *RandomnessRequestLog) RawData() ([]byte, error)
RawData returns the raw bytes corresponding to l in a solidity log
This serialization does not include the JobID, because that's an indexed field.
type RawRandomnessRequestLog ¶ added in v1.10.17
type RawRandomnessRequestLog solidity_vrf_coordinator_interface.VRFCoordinatorRandomnessRequest
RawRandomnessRequestLog is used to parse a RandomnessRequest log into types go-ethereum knows about.