keepers_vrf_consumer

package
v2.8.1-mercury-2023121... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeepersVRFConsumerABI = KeepersVRFConsumerMetaData.ABI
View Source
var KeepersVRFConsumerBin = KeepersVRFConsumerMetaData.Bin
View Source
var KeepersVRFConsumerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vrfCoordinator\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"subscriptionId\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"keyHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint16\",\"name\":\"requestConfirmations\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"upkeepInterval\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"have\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"want\",\"type\":\"address\"}],\"name\":\"OnlyCoordinatorCanFulfill\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"COORDINATOR\",\"outputs\":[{\"internalType\":\"contractVRFCoordinatorV2Interface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"KEY_HASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"REQUEST_CONFIRMATIONS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SUBSCRIPTION_ID\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UPKEEP_INTERVAL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"checkUpkeep\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"upkeepNeeded\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"performUpkeep\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"randomWords\",\"type\":\"uint256[]\"}],\"name\":\"rawFulfillRandomWords\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_lastTimeStamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"s_requests\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"fulfilled\",\"type\":\"bool\"},{\"internalType\":\"uint32\",\"name\":\"callbackGasLimit\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"randomness\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_vrfRequestCounter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_vrfResponseCounter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x61014060405234801561001157600080fd5b50604051610bab380380610bab83398101604081905261003091610089565b60609490941b6001600160601b031916608081905260c09081529290921b6001600160c01b03191660e05260f09190911b6001600160f01b031916610100526101205260a0524260009081556001819055600255610109565b600080600080600060a086880312156100a157600080fd5b85516001600160a01b03811681146100b857600080fd5b60208701519095506001600160401b03811681146100d557600080fd5b60408701516060880151919550935061ffff811681146100f457600080fd5b80925050608086015190509295509295909350565b60805160601c60a05160c05160601c60e05160c01c6101005160f01c61012051610a17610194600039600081816101d501526105370152600081816101fc015261059001526000818160de015261056601526000818161017601526105ca0152600081816101230152818161039201526103d70152600081816102e801526103500152610a176000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806351dc86a5116100815780639579291e1161005b5780639579291e14610252578063a168fa891461025b578063f7818645146102c757600080fd5b806351dc86a5146101d057806367f082b0146101f75780636e04ff0d1461023157600080fd5b806334854043116100b257806334854043146101685780633b2bcbf1146101715780634585e33b146101bd57600080fd5b8063030932bb146100d9578063035262101461011e5780631fe543e314610153575b600080fd5b6101007f000000000000000000000000000000000000000000000000000000000000000081565b60405167ffffffffffffffff90911681526020015b60405180910390f35b6101457f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610115565b6101666101613660046107c1565b6102d0565b005b61014560005481565b6101987f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610115565b6101666101cb36600461071d565b610390565b6101457f000000000000000000000000000000000000000000000000000000000000000081565b61021e7f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff9091168152602001610115565b61024461023f36600461071d565b6103d1565b6040516101159291906108b0565b61014560025481565b61029b61026936600461078f565b600360205260009081526040902080546001820154600290920154909160ff81169161010090910463ffffffff169084565b6040516101159493929190938452911515602084015263ffffffff166040830152606082015260800190565b61014560015481565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610382576040517f1cf993f400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001660248201526044015b60405180910390fd5b61038c828261040e565b5050565b7f0000000000000000000000000000000000000000000000000000000000000000600054426103bf919061092d565b111561038c574260005561038c61050f565b600060607f000000000000000000000000000000000000000000000000000000000000000060005442610404919061092d565b1191509250929050565b60008281526003602090815260409182902082516080810184528154808252600183015460ff811615159483019490945261010090930463ffffffff169381019390935260020154606083015283146104c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f72657175657374204944206e6f7420666f756e6420696e206d617000000000006044820152606401610379565b816000815181106104d6576104d66109ac565b602090810291909101810151600085815260039092526040822060029081019190915580549161050583610944565b9190505550505050565b6040517f5d3b1d300000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015267ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016602482015261ffff7f0000000000000000000000000000000000000000000000000000000000000000166044820152620249f06064820152600160848201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690635d3b1d309060a401602060405180830381600087803b15801561062357600080fd5b505af1158015610637573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065b91906107a8565b6040805160808101825282815260006020808301828152620249f0848601908152606085018481528785526003909352948320935184555160018481018054965163ffffffff16610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ff931515939093167fffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000909716969096179190911790945551600290920191909155815492935061071583610944565b919050555050565b6000806020838503121561073057600080fd5b823567ffffffffffffffff8082111561074857600080fd5b818501915085601f83011261075c57600080fd5b81358181111561076b57600080fd5b86602082850101111561077d57600080fd5b60209290920196919550909350505050565b6000602082840312156107a157600080fd5b5035919050565b6000602082840312156107ba57600080fd5b5051919050565b600080604083850312156107d457600080fd5b8235915060208084013567ffffffffffffffff808211156107f457600080fd5b818601915086601f83011261080857600080fd5b81358181111561081a5761081a6109db565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110858211171561085d5761085d6109db565b604052828152858101935084860182860187018b101561087c57600080fd5b600095505b8386101561089f578035855260019590950194938601938601610881565b508096505050505050509250929050565b821515815260006020604081840152835180604085015260005b818110156108e6578581018301518582016060015282016108ca565b818111156108f8576000606083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01692909201606001949350505050565b60008282101561093f5761093f61097d565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156109765761097661097d565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea164736f6c6343000806000a",
}

Functions

This section is empty.

Types

type KeepersVRFConsumer

type KeepersVRFConsumer struct {
	KeepersVRFConsumerCaller
	KeepersVRFConsumerTransactor
	KeepersVRFConsumerFilterer
	// contains filtered or unexported fields
}

func DeployKeepersVRFConsumer

func DeployKeepersVRFConsumer(auth *bind.TransactOpts, backend bind.ContractBackend, vrfCoordinator common.Address, subscriptionId uint64, keyHash [32]byte, requestConfirmations uint16, upkeepInterval *big.Int) (common.Address, *types.Transaction, *KeepersVRFConsumer, error)

func NewKeepersVRFConsumer

func NewKeepersVRFConsumer(address common.Address, backend bind.ContractBackend) (*KeepersVRFConsumer, error)

func (*KeepersVRFConsumer) Address

func (_KeepersVRFConsumer *KeepersVRFConsumer) Address() common.Address

type KeepersVRFConsumerCaller

type KeepersVRFConsumerCaller struct {
	// contains filtered or unexported fields
}

func NewKeepersVRFConsumerCaller

func NewKeepersVRFConsumerCaller(address common.Address, caller bind.ContractCaller) (*KeepersVRFConsumerCaller, error)

func (*KeepersVRFConsumerCaller) COORDINATOR

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) COORDINATOR(opts *bind.CallOpts) (common.Address, error)

func (*KeepersVRFConsumerCaller) CheckUpkeep

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) CheckUpkeep(opts *bind.CallOpts, arg0 []byte) (bool, []byte, error)

func (*KeepersVRFConsumerCaller) KEYHASH

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) KEYHASH(opts *bind.CallOpts) ([32]byte, error)

func (*KeepersVRFConsumerCaller) REQUESTCONFIRMATIONS

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) REQUESTCONFIRMATIONS(opts *bind.CallOpts) (uint16, error)

func (*KeepersVRFConsumerCaller) SLastTimeStamp

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) SLastTimeStamp(opts *bind.CallOpts) (*big.Int, error)

func (*KeepersVRFConsumerCaller) SRequests

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) SRequests(opts *bind.CallOpts, arg0 *big.Int) (SRequests,

	error)

func (*KeepersVRFConsumerCaller) SUBSCRIPTIONID

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) SUBSCRIPTIONID(opts *bind.CallOpts) (uint64, error)

func (*KeepersVRFConsumerCaller) SVrfRequestCounter

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) SVrfRequestCounter(opts *bind.CallOpts) (*big.Int, error)

func (*KeepersVRFConsumerCaller) SVrfResponseCounter

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) SVrfResponseCounter(opts *bind.CallOpts) (*big.Int, error)

func (*KeepersVRFConsumerCaller) UPKEEPINTERVAL

func (_KeepersVRFConsumer *KeepersVRFConsumerCaller) UPKEEPINTERVAL(opts *bind.CallOpts) (*big.Int, error)

type KeepersVRFConsumerCallerRaw

type KeepersVRFConsumerCallerRaw struct {
	Contract *KeepersVRFConsumerCaller
}

func (*KeepersVRFConsumerCallerRaw) Call

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

type KeepersVRFConsumerCallerSession

type KeepersVRFConsumerCallerSession struct {
	Contract *KeepersVRFConsumerCaller
	CallOpts bind.CallOpts
}

func (*KeepersVRFConsumerCallerSession) COORDINATOR

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) COORDINATOR() (common.Address, error)

func (*KeepersVRFConsumerCallerSession) CheckUpkeep

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) CheckUpkeep(arg0 []byte) (bool, []byte, error)

func (*KeepersVRFConsumerCallerSession) KEYHASH

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) KEYHASH() ([32]byte, error)

func (*KeepersVRFConsumerCallerSession) REQUESTCONFIRMATIONS

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) REQUESTCONFIRMATIONS() (uint16, error)

func (*KeepersVRFConsumerCallerSession) SLastTimeStamp

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) SLastTimeStamp() (*big.Int, error)

func (*KeepersVRFConsumerCallerSession) SRequests

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) SRequests(arg0 *big.Int) (SRequests,

	error)

func (*KeepersVRFConsumerCallerSession) SUBSCRIPTIONID

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) SUBSCRIPTIONID() (uint64, error)

func (*KeepersVRFConsumerCallerSession) SVrfRequestCounter

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) SVrfRequestCounter() (*big.Int, error)

func (*KeepersVRFConsumerCallerSession) SVrfResponseCounter

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) SVrfResponseCounter() (*big.Int, error)

func (*KeepersVRFConsumerCallerSession) UPKEEPINTERVAL

func (_KeepersVRFConsumer *KeepersVRFConsumerCallerSession) UPKEEPINTERVAL() (*big.Int, error)

type KeepersVRFConsumerFilterer

type KeepersVRFConsumerFilterer struct {
	// contains filtered or unexported fields
}

func NewKeepersVRFConsumerFilterer

func NewKeepersVRFConsumerFilterer(address common.Address, filterer bind.ContractFilterer) (*KeepersVRFConsumerFilterer, error)

type KeepersVRFConsumerInterface

type KeepersVRFConsumerInterface interface {
	COORDINATOR(opts *bind.CallOpts) (common.Address, error)

	KEYHASH(opts *bind.CallOpts) ([32]byte, error)

	REQUESTCONFIRMATIONS(opts *bind.CallOpts) (uint16, error)

	SUBSCRIPTIONID(opts *bind.CallOpts) (uint64, error)

	UPKEEPINTERVAL(opts *bind.CallOpts) (*big.Int, error)

	CheckUpkeep(opts *bind.CallOpts, arg0 []byte) (bool, []byte, error)

	SLastTimeStamp(opts *bind.CallOpts) (*big.Int, error)

	SRequests(opts *bind.CallOpts, arg0 *big.Int) (SRequests,

		error)

	SVrfRequestCounter(opts *bind.CallOpts) (*big.Int, error)

	SVrfResponseCounter(opts *bind.CallOpts) (*big.Int, error)

	PerformUpkeep(opts *bind.TransactOpts, arg0 []byte) (*types.Transaction, error)

	RawFulfillRandomWords(opts *bind.TransactOpts, requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

	Address() common.Address
}

type KeepersVRFConsumerRaw

type KeepersVRFConsumerRaw struct {
	Contract *KeepersVRFConsumer
}

func (*KeepersVRFConsumerRaw) Call

func (_KeepersVRFConsumer *KeepersVRFConsumerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

func (*KeepersVRFConsumerRaw) Transact

func (_KeepersVRFConsumer *KeepersVRFConsumerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

func (*KeepersVRFConsumerRaw) Transfer

func (_KeepersVRFConsumer *KeepersVRFConsumerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type KeepersVRFConsumerSession

type KeepersVRFConsumerSession struct {
	Contract     *KeepersVRFConsumer
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*KeepersVRFConsumerSession) COORDINATOR

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) COORDINATOR() (common.Address, error)

func (*KeepersVRFConsumerSession) CheckUpkeep

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) CheckUpkeep(arg0 []byte) (bool, []byte, error)

func (*KeepersVRFConsumerSession) KEYHASH

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) KEYHASH() ([32]byte, error)

func (*KeepersVRFConsumerSession) PerformUpkeep

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) PerformUpkeep(arg0 []byte) (*types.Transaction, error)

func (*KeepersVRFConsumerSession) REQUESTCONFIRMATIONS

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) REQUESTCONFIRMATIONS() (uint16, error)

func (*KeepersVRFConsumerSession) RawFulfillRandomWords

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) RawFulfillRandomWords(requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

func (*KeepersVRFConsumerSession) SLastTimeStamp

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) SLastTimeStamp() (*big.Int, error)

func (*KeepersVRFConsumerSession) SRequests

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) SRequests(arg0 *big.Int) (SRequests,

	error)

func (*KeepersVRFConsumerSession) SUBSCRIPTIONID

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) SUBSCRIPTIONID() (uint64, error)

func (*KeepersVRFConsumerSession) SVrfRequestCounter

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) SVrfRequestCounter() (*big.Int, error)

func (*KeepersVRFConsumerSession) SVrfResponseCounter

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) SVrfResponseCounter() (*big.Int, error)

func (*KeepersVRFConsumerSession) UPKEEPINTERVAL

func (_KeepersVRFConsumer *KeepersVRFConsumerSession) UPKEEPINTERVAL() (*big.Int, error)

type KeepersVRFConsumerTransactor

type KeepersVRFConsumerTransactor struct {
	// contains filtered or unexported fields
}

func NewKeepersVRFConsumerTransactor

func NewKeepersVRFConsumerTransactor(address common.Address, transactor bind.ContractTransactor) (*KeepersVRFConsumerTransactor, error)

func (*KeepersVRFConsumerTransactor) PerformUpkeep

func (_KeepersVRFConsumer *KeepersVRFConsumerTransactor) PerformUpkeep(opts *bind.TransactOpts, arg0 []byte) (*types.Transaction, error)

func (*KeepersVRFConsumerTransactor) RawFulfillRandomWords

func (_KeepersVRFConsumer *KeepersVRFConsumerTransactor) RawFulfillRandomWords(opts *bind.TransactOpts, requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

type KeepersVRFConsumerTransactorRaw

type KeepersVRFConsumerTransactorRaw struct {
	Contract *KeepersVRFConsumerTransactor
}

func (*KeepersVRFConsumerTransactorRaw) Transact

func (_KeepersVRFConsumer *KeepersVRFConsumerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

func (*KeepersVRFConsumerTransactorRaw) Transfer

func (_KeepersVRFConsumer *KeepersVRFConsumerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type KeepersVRFConsumerTransactorSession

type KeepersVRFConsumerTransactorSession struct {
	Contract     *KeepersVRFConsumerTransactor
	TransactOpts bind.TransactOpts
}

func (*KeepersVRFConsumerTransactorSession) PerformUpkeep

func (_KeepersVRFConsumer *KeepersVRFConsumerTransactorSession) PerformUpkeep(arg0 []byte) (*types.Transaction, error)

func (*KeepersVRFConsumerTransactorSession) RawFulfillRandomWords

func (_KeepersVRFConsumer *KeepersVRFConsumerTransactorSession) RawFulfillRandomWords(requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

type SRequests

type SRequests struct {
	RequestId        *big.Int
	Fulfilled        bool
	CallbackGasLimit uint32
	Randomness       *big.Int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL