-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
interfaces.go
31 lines (22 loc) · 1.15 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package coordinator
import (
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/core/types"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated"
)
//go:generate mockery --quiet --name VRFBeaconCoordinator --output ./mocks/ --case=underscore
// VRFBeaconCoordinator is an interface that defines methods needed by the off-chain coordinator
type VRFBeaconCoordinator interface {
// SProvingKeyHash retrieves the proving key hash from the on-chain contract.
SProvingKeyHash(opts *bind.CallOpts) ([32]byte, error)
// SKeyID retrieves the keyID from the on-chain contract.
SKeyID(opts *bind.CallOpts) ([32]byte, error)
// IBeaconPeriodBlocks retrieves the beacon period in blocks from the on-chain contract.
IBeaconPeriodBlocks(opts *bind.CallOpts) (*big.Int, error)
// ParseLog parses the raw log data and topics into a go object.
// The returned object must be casted to the expected type.
ParseLog(log types.Log) (generated.AbigenLog, error)
// GetConfirmationDelays retrieves confirmation delays from the on-chain contract.
GetConfirmationDelays(opts *bind.CallOpts) ([8]*big.Int, error)
}