vrf_beacon_consumer

package
v2.1.0-mercury-20230518 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BeaconVRFConsumerABI = BeaconVRFConsumerMetaData.ABI
View Source
var BeaconVRFConsumerBin = BeaconVRFConsumerMetaData.Bin
View Source
var BeaconVRFConsumerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"router\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"shouldFail\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"beaconPeriodBlocks\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"MustBeRouter\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"fail\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"i_beaconPeriodBlocks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestID\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"randomWords\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"arguments\",\"type\":\"bytes\"}],\"name\":\"rawFulfillRandomWords\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"s_ReceivedRandomnessByRequestID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_arguments\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_gasAvailable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_mostRecentRequestID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"s_myBeaconRequests\",\"outputs\":[{\"internalType\":\"VRFBeaconTypes.SlotNumber\",\"name\":\"slotNumber\",\"type\":\"uint32\"},{\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"confirmationDelay\",\"type\":\"uint24\"},{\"internalType\":\"uint16\",\"name\":\"numWords\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"s_randomWords\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"\",\"type\":\"uint24\"}],\"name\":\"s_requestsIDs\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_subId\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"shouldFail\",\"type\":\"bool\"}],\"name\":\"setFail\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"reqId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"height\",\"type\":\"uint256\"},{\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"delay\",\"type\":\"uint24\"},{\"internalType\":\"uint16\",\"name\":\"numWords\",\"type\":\"uint16\"}],\"name\":\"storeBeaconRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"subID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requestID\",\"type\":\"uint256\"}],\"name\":\"testRedeemRandomness\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"numWords\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"subID\",\"type\":\"uint256\"},{\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"confirmationDelayArg\",\"type\":\"uint24\"}],\"name\":\"testRequestRandomness\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"subID\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"numWords\",\"type\":\"uint16\"},{\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"confirmationDelayArg\",\"type\":\"uint24\"},{\"internalType\":\"uint32\",\"name\":\"callbackGasLimit\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"arguments\",\"type\":\"bytes\"}],\"name\":\"testRequestRandomnessFulfillment\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60a060405234801561001057600080fd5b506040516111a53803806111a583398101604081905261002f9161006c565b6001600160a01b03929092166080819052600680546001600160a01b03191690911790556009805460ff1916911515919091179055600a556100c0565b60008060006060848603121561008157600080fd5b83516001600160a01b038116811461009857600080fd5b602085015190935080151581146100ae57600080fd5b80925050604084015190509250925092565b6080516110ca6100db60003960006106b401526110ca6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063c6d6130111610097578063ea7502ab11610066578063ea7502ab1461024e578063f08c5daa14610261578063f6eaffc81461026a578063ffe97ca41461027d57600080fd5b8063c6d613011461020c578063cd0593df1461021f578063d0705f0414610228578063d21ea8fd1461023b57600080fd5b8063706da1ca116100d3578063706da1ca146101745780637716cdaa146101b95780639d769402146101ce578063a9cc4718146101ef57600080fd5b8063341867a2146101055780635f15cccc1461011a578063689b77ab146101585780636df57cc314610161575b600080fd5b6101186101133660046109d5565b610316565b005b610145610128366004610a0f565b600160209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b61014560055481565b61011861016f366004610a4d565b6103e0565b6007546101a09074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161014f565b6101c16104f6565b60405161014f9190610ad9565b6101186101dc366004610af3565b6009805460ff1916911515919091179055565b6009546101fc9060ff1681565b604051901515815260200161014f565b61014561021a366004610b15565b610584565b610145600a5481565b6101456102363660046109d5565b610681565b610118610249366004610c2c565b6106b2565b61014561025c366004610cf5565b610724565b61014560085481565b610145610278366004610d79565b61082d565b6102d961028b366004610d79565b60026020526000908152604090205463ffffffff811690640100000000810462ffffff1690670100000000000000810461ffff1690690100000000000000000090046001600160a01b031684565b6040805163ffffffff909516855262ffffff909316602085015261ffff909116918301919091526001600160a01b0316606082015260800161014f565b60065460408051602081018252600080825291517facfc6cdd00000000000000000000000000000000000000000000000000000000815291926001600160a01b03169163acfc6cdd9161036f9187918791600401610d92565b6000604051808303816000875af115801561038e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103b69190810190610dba565b600083815260036020908152604090912082519293506103da929091840190610975565b50505050565b600083815260016020908152604080832062ffffff861684529091528120859055600a5461040e9085610e77565b6040805160808101825263ffffffff928316815262ffffff958616602080830191825261ffff968716838501908152306060850190815260009b8c52600290925293909920915182549151935199516001600160a01b03166901000000000000000000027fffffff0000000000000000000000000000000000000000ffffffffffffffffff9a90971667010000000000000002999099167fffffff00000000000000000000000000000000000000000000ffffffffffffff939097166401000000000266ffffffffffffff199091169890931697909717919091171692909217179092555050565b6004805461050390610e8b565b80601f016020809104026020016040519081016040528092919081815260200182805461052f90610e8b565b801561057c5780601f106105515761010080835404028352916020019161057c565b820191906000526020600020905b81548152906001019060200180831161055f57829003601f168201915b505050505081565b600080600a5461059261084e565b61059c9190610ec5565b9050600081600a546105ac61084e565b6105b69190610ed9565b6105c09190610ef2565b60065460408051602081018252600080825291517f4ffac83a00000000000000000000000000000000000000000000000000000000815293945090926001600160a01b0390921691634ffac83a91610621918a918c918b9190600401610f05565b6020604051808303816000875af1158015610640573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106649190610f3d565b90506106728183878a6103e0565b60058190559695505050505050565b6003602052816000526040600020818154811061069d57600080fd5b90600052602060002001600091509150505481565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314610714576040517ff74c318f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61071f8383836108d8565b505050565b6000808490506000600a5461073761084e565b6107419190610ec5565b9050600081600a5461075161084e565b61075b9190610ed9565b6107659190610ef2565b60065460408051602081018252600080825291517fdb972c8b00000000000000000000000000000000000000000000000000000000815293945090926001600160a01b039092169163db972c8b916107ca918e918e918a918e918e9190600401610f56565b6020604051808303816000875af11580156107e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080d9190610f3d565b905061081b81838a8c6103e0565b60058190559998505050505050505050565b6000818154811061083d57600080fd5b600091825260209091200154905081565b60004661a4b1811480610863575062066eed81145b156108d15760646001600160a01b031663a3b1b31d6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cb9190610f3d565b91505090565b4391505090565b60095460ff1615610949576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f206661696c656420696e2066756c66696c6c52616e646f6d576f726473000000604482015260640160405180910390fd5b6000838152600360209081526040909120835161096892850190610975565b5060046103da8282610ffd565b8280548282559060005260206000209081019282156109b0579160200282015b828111156109b0578251825591602001919060010190610995565b506109bc9291506109c0565b5090565b5b808211156109bc57600081556001016109c1565b600080604083850312156109e857600080fd5b50508035926020909101359150565b803562ffffff81168114610a0a57600080fd5b919050565b60008060408385031215610a2257600080fd5b82359150610a32602084016109f7565b90509250929050565b803561ffff81168114610a0a57600080fd5b60008060008060808587031215610a6357600080fd5b8435935060208501359250610a7a604086016109f7565b9150610a8860608601610a3b565b905092959194509250565b6000815180845260005b81811015610ab957602081850181015186830182015201610a9d565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610aec6020830184610a93565b9392505050565b600060208284031215610b0557600080fd5b81358015158114610aec57600080fd5b600080600060608486031215610b2a57600080fd5b610b3384610a3b565b925060208401359150610b48604085016109f7565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b9057610b90610b51565b604052919050565b600067ffffffffffffffff821115610bb257610bb2610b51565b5060051b60200190565b600082601f830112610bcd57600080fd5b813567ffffffffffffffff811115610be757610be7610b51565b610bfa601f8201601f1916602001610b67565b818152846020838601011115610c0f57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600060608486031215610c4157600080fd5b8335925060208085013567ffffffffffffffff80821115610c6157600080fd5b818701915087601f830112610c7557600080fd5b8135610c88610c8382610b98565b610b67565b81815260059190911b8301840190848101908a831115610ca757600080fd5b938501935b82851015610cc557843582529385019390850190610cac565b965050506040870135925080831115610cdd57600080fd5b5050610ceb86828701610bbc565b9150509250925092565b600080600080600060a08688031215610d0d57600080fd5b85359450610d1d60208701610a3b565b9350610d2b604087016109f7565b9250606086013563ffffffff81168114610d4457600080fd5b9150608086013567ffffffffffffffff811115610d6057600080fd5b610d6c88828901610bbc565b9150509295509295909350565b600060208284031215610d8b57600080fd5b5035919050565b838152826020820152606060408201526000610db16060830184610a93565b95945050505050565b60006020808385031215610dcd57600080fd5b825167ffffffffffffffff811115610de457600080fd5b8301601f81018513610df557600080fd5b8051610e03610c8382610b98565b81815260059190911b82018301908381019087831115610e2257600080fd5b928401925b82841015610e4057835182529284019290840190610e27565b979650505050505050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082610e8657610e86610e4b565b500490565b600181811c90821680610e9f57607f821691505b602082108103610ebf57634e487b7160e01b600052602260045260246000fd5b50919050565b600082610ed457610ed4610e4b565b500690565b80820180821115610eec57610eec610e61565b92915050565b81810381811115610eec57610eec610e61565b84815261ffff8416602082015262ffffff83166040820152608060608201526000610f336080830184610a93565b9695505050505050565b600060208284031215610f4f57600080fd5b5051919050565b86815261ffff8616602082015262ffffff8516604082015263ffffffff8416606082015260c060808201526000610f9060c0830185610a93565b82810360a0840152610fa28185610a93565b9998505050505050505050565b601f82111561071f57600081815260208120601f850160051c81016020861015610fd65750805b601f850160051c820191505b81811015610ff557828155600101610fe2565b505050505050565b815167ffffffffffffffff81111561101757611017610b51565b61102b816110258454610e8b565b84610faf565b602080601f83116001811461106057600084156110485750858301515b600019600386901b1c1916600185901b178555610ff5565b600085815260208120601f198616915b8281101561108f57888601518255948401946001909101908401611070565b50858210156110ad5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea164736f6c6343000813000a",
}

Functions

This section is empty.

Types

type BeaconVRFConsumer

type BeaconVRFConsumer struct {
	BeaconVRFConsumerCaller
	BeaconVRFConsumerTransactor
	BeaconVRFConsumerFilterer
	// contains filtered or unexported fields
}

func DeployBeaconVRFConsumer

func DeployBeaconVRFConsumer(auth *bind.TransactOpts, backend bind.ContractBackend, router common.Address, shouldFail bool, beaconPeriodBlocks *big.Int) (common.Address, *types.Transaction, *BeaconVRFConsumer, error)

func NewBeaconVRFConsumer

func NewBeaconVRFConsumer(address common.Address, backend bind.ContractBackend) (*BeaconVRFConsumer, error)

func (*BeaconVRFConsumer) Address

func (_BeaconVRFConsumer *BeaconVRFConsumer) Address() common.Address

type BeaconVRFConsumerCaller

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

func NewBeaconVRFConsumerCaller

func NewBeaconVRFConsumerCaller(address common.Address, caller bind.ContractCaller) (*BeaconVRFConsumerCaller, error)

func (*BeaconVRFConsumerCaller) Fail

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) Fail(opts *bind.CallOpts) (bool, error)

func (*BeaconVRFConsumerCaller) IBeaconPeriodBlocks

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) IBeaconPeriodBlocks(opts *bind.CallOpts) (*big.Int, error)

func (*BeaconVRFConsumerCaller) SArguments

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SArguments(opts *bind.CallOpts) ([]byte, error)

func (*BeaconVRFConsumerCaller) SGasAvailable

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SGasAvailable(opts *bind.CallOpts) (*big.Int, error)

func (*BeaconVRFConsumerCaller) SMostRecentRequestID added in v2.2.0

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SMostRecentRequestID(opts *bind.CallOpts) (*big.Int, error)

func (*BeaconVRFConsumerCaller) SMyBeaconRequests

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SMyBeaconRequests(opts *bind.CallOpts, arg0 *big.Int) (SMyBeaconRequests,

	error)

func (*BeaconVRFConsumerCaller) SRandomWords

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SRandomWords(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

func (*BeaconVRFConsumerCaller) SReceivedRandomnessByRequestID

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SReceivedRandomnessByRequestID(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

func (*BeaconVRFConsumerCaller) SRequestsIDs

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SRequestsIDs(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

func (*BeaconVRFConsumerCaller) SSubId

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SSubId(opts *bind.CallOpts) (uint64, error)

type BeaconVRFConsumerCallerRaw

type BeaconVRFConsumerCallerRaw struct {
	Contract *BeaconVRFConsumerCaller
}

func (*BeaconVRFConsumerCallerRaw) Call

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

type BeaconVRFConsumerCallerSession

type BeaconVRFConsumerCallerSession struct {
	Contract *BeaconVRFConsumerCaller
	CallOpts bind.CallOpts
}

func (*BeaconVRFConsumerCallerSession) Fail

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) Fail() (bool, error)

func (*BeaconVRFConsumerCallerSession) IBeaconPeriodBlocks

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) IBeaconPeriodBlocks() (*big.Int, error)

func (*BeaconVRFConsumerCallerSession) SArguments

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SArguments() ([]byte, error)

func (*BeaconVRFConsumerCallerSession) SGasAvailable

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SGasAvailable() (*big.Int, error)

func (*BeaconVRFConsumerCallerSession) SMostRecentRequestID added in v2.2.0

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SMostRecentRequestID() (*big.Int, error)

func (*BeaconVRFConsumerCallerSession) SMyBeaconRequests

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SMyBeaconRequests(arg0 *big.Int) (SMyBeaconRequests,

	error)

func (*BeaconVRFConsumerCallerSession) SRandomWords

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SRandomWords(arg0 *big.Int) (*big.Int, error)

func (*BeaconVRFConsumerCallerSession) SReceivedRandomnessByRequestID

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SReceivedRandomnessByRequestID(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

func (*BeaconVRFConsumerCallerSession) SRequestsIDs

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SRequestsIDs(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

func (*BeaconVRFConsumerCallerSession) SSubId

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SSubId() (uint64, error)

type BeaconVRFConsumerFilterer

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

func NewBeaconVRFConsumerFilterer

func NewBeaconVRFConsumerFilterer(address common.Address, filterer bind.ContractFilterer) (*BeaconVRFConsumerFilterer, error)

type BeaconVRFConsumerInterface

type BeaconVRFConsumerInterface interface {
	Fail(opts *bind.CallOpts) (bool, error)

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

	SReceivedRandomnessByRequestID(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

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

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

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

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

		error)

	SRandomWords(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

	SRequestsIDs(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

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

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

	SetFail(opts *bind.TransactOpts, shouldFail bool) (*types.Transaction, error)

	StoreBeaconRequest(opts *bind.TransactOpts, reqId *big.Int, height *big.Int, delay *big.Int, numWords uint16) (*types.Transaction, error)

	TestRedeemRandomness(opts *bind.TransactOpts, subID *big.Int, requestID *big.Int) (*types.Transaction, error)

	TestRequestRandomness(opts *bind.TransactOpts, numWords uint16, subID *big.Int, confirmationDelayArg *big.Int) (*types.Transaction, error)

	TestRequestRandomnessFulfillment(opts *bind.TransactOpts, subID *big.Int, numWords uint16, confirmationDelayArg *big.Int, callbackGasLimit uint32, arguments []byte) (*types.Transaction, error)

	Address() common.Address
}

type BeaconVRFConsumerRaw

type BeaconVRFConsumerRaw struct {
	Contract *BeaconVRFConsumer
}

func (*BeaconVRFConsumerRaw) Call

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

func (*BeaconVRFConsumerRaw) Transact

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

func (*BeaconVRFConsumerRaw) Transfer

func (_BeaconVRFConsumer *BeaconVRFConsumerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type BeaconVRFConsumerSession

type BeaconVRFConsumerSession struct {
	Contract     *BeaconVRFConsumer
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*BeaconVRFConsumerSession) Fail

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) Fail() (bool, error)

func (*BeaconVRFConsumerSession) IBeaconPeriodBlocks

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) IBeaconPeriodBlocks() (*big.Int, error)

func (*BeaconVRFConsumerSession) RawFulfillRandomWords

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) RawFulfillRandomWords(requestID *big.Int, randomWords []*big.Int, arguments []byte) (*types.Transaction, error)

func (*BeaconVRFConsumerSession) SArguments

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SArguments() ([]byte, error)

func (*BeaconVRFConsumerSession) SGasAvailable

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SGasAvailable() (*big.Int, error)

func (*BeaconVRFConsumerSession) SMostRecentRequestID added in v2.2.0

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SMostRecentRequestID() (*big.Int, error)

func (*BeaconVRFConsumerSession) SMyBeaconRequests

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SMyBeaconRequests(arg0 *big.Int) (SMyBeaconRequests,

	error)

func (*BeaconVRFConsumerSession) SRandomWords

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SRandomWords(arg0 *big.Int) (*big.Int, error)

func (*BeaconVRFConsumerSession) SReceivedRandomnessByRequestID

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SReceivedRandomnessByRequestID(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

func (*BeaconVRFConsumerSession) SRequestsIDs

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SRequestsIDs(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

func (*BeaconVRFConsumerSession) SSubId

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SSubId() (uint64, error)

func (*BeaconVRFConsumerSession) SetFail

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SetFail(shouldFail bool) (*types.Transaction, error)

func (*BeaconVRFConsumerSession) StoreBeaconRequest

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) StoreBeaconRequest(reqId *big.Int, height *big.Int, delay *big.Int, numWords uint16) (*types.Transaction, error)

func (*BeaconVRFConsumerSession) TestRedeemRandomness

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) TestRedeemRandomness(subID *big.Int, requestID *big.Int) (*types.Transaction, error)

func (*BeaconVRFConsumerSession) TestRequestRandomness

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) TestRequestRandomness(numWords uint16, subID *big.Int, confirmationDelayArg *big.Int) (*types.Transaction, error)

func (*BeaconVRFConsumerSession) TestRequestRandomnessFulfillment

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) TestRequestRandomnessFulfillment(subID *big.Int, numWords uint16, confirmationDelayArg *big.Int, callbackGasLimit uint32, arguments []byte) (*types.Transaction, error)

type BeaconVRFConsumerTransactor

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

func NewBeaconVRFConsumerTransactor

func NewBeaconVRFConsumerTransactor(address common.Address, transactor bind.ContractTransactor) (*BeaconVRFConsumerTransactor, error)

func (*BeaconVRFConsumerTransactor) RawFulfillRandomWords

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) RawFulfillRandomWords(opts *bind.TransactOpts, requestID *big.Int, randomWords []*big.Int, arguments []byte) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactor) SetFail

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) SetFail(opts *bind.TransactOpts, shouldFail bool) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactor) StoreBeaconRequest

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) StoreBeaconRequest(opts *bind.TransactOpts, reqId *big.Int, height *big.Int, delay *big.Int, numWords uint16) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactor) TestRedeemRandomness

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) TestRedeemRandomness(opts *bind.TransactOpts, subID *big.Int, requestID *big.Int) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactor) TestRequestRandomness

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) TestRequestRandomness(opts *bind.TransactOpts, numWords uint16, subID *big.Int, confirmationDelayArg *big.Int) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactor) TestRequestRandomnessFulfillment

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) TestRequestRandomnessFulfillment(opts *bind.TransactOpts, subID *big.Int, numWords uint16, confirmationDelayArg *big.Int, callbackGasLimit uint32, arguments []byte) (*types.Transaction, error)

type BeaconVRFConsumerTransactorRaw

type BeaconVRFConsumerTransactorRaw struct {
	Contract *BeaconVRFConsumerTransactor
}

func (*BeaconVRFConsumerTransactorRaw) Transact

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

func (*BeaconVRFConsumerTransactorRaw) Transfer

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type BeaconVRFConsumerTransactorSession

type BeaconVRFConsumerTransactorSession struct {
	Contract     *BeaconVRFConsumerTransactor
	TransactOpts bind.TransactOpts
}

func (*BeaconVRFConsumerTransactorSession) RawFulfillRandomWords

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) RawFulfillRandomWords(requestID *big.Int, randomWords []*big.Int, arguments []byte) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactorSession) SetFail

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) SetFail(shouldFail bool) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactorSession) StoreBeaconRequest

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) StoreBeaconRequest(reqId *big.Int, height *big.Int, delay *big.Int, numWords uint16) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactorSession) TestRedeemRandomness

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) TestRedeemRandomness(subID *big.Int, requestID *big.Int) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactorSession) TestRequestRandomness

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) TestRequestRandomness(numWords uint16, subID *big.Int, confirmationDelayArg *big.Int) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactorSession) TestRequestRandomnessFulfillment

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) TestRequestRandomnessFulfillment(subID *big.Int, numWords uint16, confirmationDelayArg *big.Int, callbackGasLimit uint32, arguments []byte) (*types.Transaction, error)

type SMyBeaconRequests

type SMyBeaconRequests struct {
	SlotNumber        uint32
	ConfirmationDelay *big.Int
	NumWords          uint16
	Requester         common.Address
}

Jump to

Keyboard shortcuts

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