vrf_beacon_consumer

package
v1.11.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 11 Imported by: 2

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\":\"coordinator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"shouldFail\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"beaconPeriodBlocks\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"previousConfigBlockNumber\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"configDigest\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"configCount\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"transmitters\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"f\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"onchainConfig\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"offchainConfigVersion\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"offchainConfig\",\"type\":\"bytes\"}],\"name\":\"ConfigSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"nextBeaconOutputHeight\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"confDelay\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"subID\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"VRFBeaconTypes.RequestID\",\"name\":\"requestID\",\"type\":\"uint48\"},{\"internalType\":\"uint16\",\"name\":\"numWords\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"arguments\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"subID\",\"type\":\"uint64\"},{\"internalType\":\"uint96\",\"name\":\"gasAllowance\",\"type\":\"uint96\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"weiPerUnitLink\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structVRFBeaconTypes.Callback\",\"name\":\"callback\",\"type\":\"tuple\"}],\"name\":\"RandomnessFulfillmentRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"nextBeaconOutputHeight\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"confDelay\",\"type\":\"uint24\"}],\"name\":\"RandomnessRequested\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"NUM_CONF_DELAYS\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":\"VRFBeaconTypes.RequestID\",\"name\":\"requestID\",\"type\":\"uint48\"},{\"internalType\":\"uint256[]\",\"name\":\"randomWords\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"arguments\",\"type\":\"bytes\"}],\"name\":\"rawFulfillRandomWords\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"VRFBeaconTypes.RequestID\",\"name\":\"\",\"type\":\"uint48\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"s_ReceivedRandomnessByRequestID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_gasAvailable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"VRFBeaconTypes.RequestID\",\"name\":\"\",\"type\":\"uint48\"}],\"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\":\"VRFBeaconTypes.RequestID\",\"name\":\"\",\"type\":\"uint48\"}],\"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\":\"VRFBeaconTypes.RequestID\",\"name\":\"reqId\",\"type\":\"uint48\"},{\"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\":\"VRFBeaconTypes.RequestID\",\"name\":\"requestID\",\"type\":\"uint48\"}],\"name\":\"testRedeemRandomness\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"numWords\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"subID\",\"type\":\"uint64\"},{\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"confirmationDelayArg\",\"type\":\"uint24\"}],\"name\":\"testRequestRandomness\",\"outputs\":[{\"internalType\":\"VRFBeaconTypes.RequestID\",\"name\":\"\",\"type\":\"uint48\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"subID\",\"type\":\"uint64\"},{\"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\":\"VRFBeaconTypes.RequestID\",\"name\":\"\",\"type\":\"uint48\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60a060405234801561001057600080fd5b5060405161114038038061114083398101604081905261002f9161006c565b6001600160a01b03929092166080819052600580546001600160a01b03191690911790556008805460ff19169115159190911790556009556100c0565b60008060006060848603121561008157600080fd5b83516001600160a01b038116811461009857600080fd5b602085015190935080151581146100ae57600080fd5b80925050604084015190509250925092565b6080516110656100db60003960006104de01526110656000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063706da1ca11610097578063cd0593df11610066578063cd0593df146102e0578063f08c5daa146102f7578063f339c79414610300578063f6eaffc81461031357600080fd5b8063706da1ca1461024a5780639c9cd0151461028f5780639d769402146102a2578063a9cc4718146102c357600080fd5b806345907626116100d357806345907626146101c75780635a47dd71146101f15780635f15cccc146102045780636d162a3e1461023757600080fd5b806319a5fa22146100fa5780632f7527cc146101985780633d8b70aa146101b2575b600080fd5b610156610108366004610978565b60026020526000908152604090205463ffffffff811690640100000000810462ffffff1690670100000000000000810461ffff1690690100000000000000000090046001600160a01b031684565b6040805163ffffffff909516855262ffffff909316602085015261ffff909116918301919091526001600160a01b031660608201526080015b60405180910390f35b6101a0600881565b60405160ff909116815260200161018f565b6101c56101c0366004610978565b610326565b005b6101da6101d5366004610a95565b6103ec565b60405165ffffffffffff909116815260200161018f565b6101c56101ff366004610b44565b6104dc565b6101da610212366004610c16565b600160209081526000928352604080842090915290825290205465ffffffffffff1681565b6101c5610245366004610c42565b610564565b6006546102769074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161018f565b6101da61029d366004610c91565b610697565b6101c56102b0366004610cd4565b6008805460ff1916911515919091179055565b6008546102d09060ff1681565b604051901515815260200161018f565b6102e960095481565b60405190815260200161018f565b6102e960075481565b6102e961030e366004610cf6565b610797565b6102e9610321366004610d22565b6107c8565b6005546040517f74d8461100000000000000000000000000000000000000000000000000000000815265ffffffffffff831660048201526000916001600160a01b0316906374d84611906024016000604051808303816000875af1158015610392573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103ba9190810190610d3b565b65ffffffffffff8316600090815260036020908152604090912082519293506103e7929091840190610901565b505050565b6000806009546103fa6107e9565b6104049190610de2565b90506000816009546104146107e9565b61041e9190610e0c565b6104289190610e24565b6005546040517ff645dcb10000000000000000000000000000000000000000000000000000000081529192506000916001600160a01b039091169063f645dcb19061047f908c908c908c908c908c90600401610e3b565b6020604051808303816000875af115801561049e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c29190610ec6565b90506104d08183898b610564565b98975050505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146105595760405162461bcd60e51b815260206004820152601c60248201527f6f6e6c7920636f6f7264696e61746f722063616e2066756c66696c6c0000000060448201526064015b60405180910390fd5b6103e7838383610873565b600083815260016020908152604080832062ffffff861684529091528120805465ffffffffffff191665ffffffffffff87161790556009546105a69085610ee3565b6040805160808101825263ffffffff928316815262ffffff958616602080830191825261ffff968716838501908152306060850190815265ffffffffffff909b1660009081526002909252939020915182549151935199516001600160a01b03166901000000000000000000027fffffff0000000000000000000000000000000000000000ffffffffffffffffff9a90971667010000000000000002999099167fffffff00000000000000000000000000000000000000000000ffffffffffffff939097166401000000000266ffffffffffffff199091169890931697909717919091171692909217179092555050565b6000806009546106a56107e9565b6106af9190610de2565b90506000816009546106bf6107e9565b6106c99190610e0c565b6106d39190610e24565b6005546040517fdc92accf00000000000000000000000000000000000000000000000000000000815261ffff8916600482015267ffffffffffffffff8816602482015262ffffff871660448201529192506000916001600160a01b039091169063dc92accf906064016020604051808303816000875af115801561075b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077f9190610ec6565b905061078d8183878a610564565b9695505050505050565b600360205281600052604060002081815481106107b357600080fd5b90600052602060002001600091509150505481565b600081815481106107d857600080fd5b600091825260209091200154905081565b60004661a4b18114806107fe575062066eed81145b1561086c5760646001600160a01b031663a3b1b31d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610842573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108669190610ef7565b91505090565b4391505090565b60085460ff16156108c65760405162461bcd60e51b815260206004820152601d60248201527f206661696c656420696e2066756c66696c6c52616e646f6d576f7264730000006044820152606401610550565b65ffffffffffff8316600090815260036020908152604090912083516108ee92850190610901565b5060046108fb8282610f98565b50505050565b82805482825590600052602060002090810192821561093c579160200282015b8281111561093c578251825591602001919060010190610921565b5061094892915061094c565b5090565b5b80821115610948576000815560010161094d565b65ffffffffffff8116811461097557600080fd5b50565b60006020828403121561098a57600080fd5b813561099581610961565b9392505050565b803567ffffffffffffffff811681146109b457600080fd5b919050565b803561ffff811681146109b457600080fd5b803562ffffff811681146109b457600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610a1d57610a1d6109de565b604052919050565b600082601f830112610a3657600080fd5b813567ffffffffffffffff811115610a5057610a506109de565b610a63601f8201601f19166020016109f4565b818152846020838601011115610a7857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215610aad57600080fd5b610ab68661099c565b9450610ac4602087016109b9565b9350610ad2604087016109cb565b9250606086013563ffffffff81168114610aeb57600080fd5b9150608086013567ffffffffffffffff811115610b0757600080fd5b610b1388828901610a25565b9150509295509295909350565b600067ffffffffffffffff821115610b3a57610b3a6109de565b5060051b60200190565b600080600060608486031215610b5957600080fd5b8335610b6481610961565b925060208481013567ffffffffffffffff80821115610b8257600080fd5b818701915087601f830112610b9657600080fd5b8135610ba9610ba482610b20565b6109f4565b81815260059190911b8301840190848101908a831115610bc857600080fd5b938501935b82851015610be657843582529385019390850190610bcd565b965050506040870135925080831115610bfe57600080fd5b5050610c0c86828701610a25565b9150509250925092565b60008060408385031215610c2957600080fd5b82359150610c39602084016109cb565b90509250929050565b60008060008060808587031215610c5857600080fd5b8435610c6381610961565b935060208501359250610c78604086016109cb565b9150610c86606086016109b9565b905092959194509250565b600080600060608486031215610ca657600080fd5b610caf846109b9565b9250610cbd6020850161099c565b9150610ccb604085016109cb565b90509250925092565b600060208284031215610ce657600080fd5b8135801515811461099557600080fd5b60008060408385031215610d0957600080fd5b8235610d1481610961565b946020939093013593505050565b600060208284031215610d3457600080fd5b5035919050565b60006020808385031215610d4e57600080fd5b825167ffffffffffffffff811115610d6557600080fd5b8301601f81018513610d7657600080fd5b8051610d84610ba482610b20565b81815260059190911b82018301908381019087831115610da357600080fd5b928401925b82841015610dc157835182529284019290840190610da8565b979650505050505050565b634e487b7160e01b600052601260045260246000fd5b600082610df157610df1610dcc565b500690565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e1f57610e1f610df6565b500190565b600082821015610e3657610e36610df6565b500390565b67ffffffffffffffff861681526000602061ffff87168184015262ffffff8616604084015263ffffffff8516606084015260a0608084015283518060a085015260005b81811015610e9a5785810183015185820160c001528201610e7e565b81811115610eac57600060c083870101525b50601f01601f19169290920160c001979650505050505050565b600060208284031215610ed857600080fd5b815161099581610961565b600082610ef257610ef2610dcc565b500490565b600060208284031215610f0957600080fd5b5051919050565b600181811c90821680610f2457607f821691505b602082108103610f4457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103e757600081815260208120601f850160051c81016020861015610f715750805b601f850160051c820191505b81811015610f9057828155600101610f7d565b505050505050565b815167ffffffffffffffff811115610fb257610fb26109de565b610fc681610fc08454610f10565b84610f4a565b602080601f831160018114610ffb5760008415610fe35750858301515b600019600386901b1c1916600185901b178555610f90565b600085815260208120601f198616915b8281101561102a5788860151825594840194600190910190840161100b565b50858210156110485787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea164736f6c634300080f000a",
}

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, coordinator 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

func (*BeaconVRFConsumer) ParseLog added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumer) ParseLog(log types.Log) (generated.AbigenLog, error)

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) NUMCONFDELAYS added in v1.10.0

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) NUMCONFDELAYS(opts *bind.CallOpts) (uint8, error)

func (*BeaconVRFConsumerCaller) SGasAvailable

func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SGasAvailable(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) NUMCONFDELAYS added in v1.10.0

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) NUMCONFDELAYS() (uint8, error)

func (*BeaconVRFConsumerCallerSession) SGasAvailable

func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SGasAvailable() (*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 BeaconVRFConsumerConfigSet added in v1.11.0

type BeaconVRFConsumerConfigSet struct {
	PreviousConfigBlockNumber uint32
	ConfigDigest              [32]byte
	ConfigCount               uint64
	Signers                   []common.Address
	Transmitters              []common.Address
	F                         uint8
	OnchainConfig             []byte
	OffchainConfigVersion     uint64
	OffchainConfig            []byte
	Raw                       types.Log
}

func (BeaconVRFConsumerConfigSet) Topic added in v1.11.0

type BeaconVRFConsumerConfigSetIterator added in v1.11.0

type BeaconVRFConsumerConfigSetIterator struct {
	Event *BeaconVRFConsumerConfigSet
	// contains filtered or unexported fields
}

func (*BeaconVRFConsumerConfigSetIterator) Close added in v1.11.0

func (*BeaconVRFConsumerConfigSetIterator) Error added in v1.11.0

func (*BeaconVRFConsumerConfigSetIterator) Next added in v1.11.0

type BeaconVRFConsumerFilterer

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

func NewBeaconVRFConsumerFilterer

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

func (*BeaconVRFConsumerFilterer) FilterConfigSet added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumerFilterer) FilterConfigSet(opts *bind.FilterOpts) (*BeaconVRFConsumerConfigSetIterator, error)

func (*BeaconVRFConsumerFilterer) FilterRandomnessFulfillmentRequested added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumerFilterer) FilterRandomnessFulfillmentRequested(opts *bind.FilterOpts) (*BeaconVRFConsumerRandomnessFulfillmentRequestedIterator, error)

func (*BeaconVRFConsumerFilterer) FilterRandomnessRequested added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumerFilterer) FilterRandomnessRequested(opts *bind.FilterOpts, nextBeaconOutputHeight []uint64) (*BeaconVRFConsumerRandomnessRequestedIterator, error)

func (*BeaconVRFConsumerFilterer) ParseConfigSet added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumerFilterer) ParseConfigSet(log types.Log) (*BeaconVRFConsumerConfigSet, error)

func (*BeaconVRFConsumerFilterer) ParseRandomnessFulfillmentRequested added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumerFilterer) ParseRandomnessFulfillmentRequested(log types.Log) (*BeaconVRFConsumerRandomnessFulfillmentRequested, error)

func (*BeaconVRFConsumerFilterer) ParseRandomnessRequested added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumerFilterer) ParseRandomnessRequested(log types.Log) (*BeaconVRFConsumerRandomnessRequested, error)

func (*BeaconVRFConsumerFilterer) WatchConfigSet added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumerFilterer) WatchConfigSet(opts *bind.WatchOpts, sink chan<- *BeaconVRFConsumerConfigSet) (event.Subscription, error)

func (*BeaconVRFConsumerFilterer) WatchRandomnessFulfillmentRequested added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumerFilterer) WatchRandomnessFulfillmentRequested(opts *bind.WatchOpts, sink chan<- *BeaconVRFConsumerRandomnessFulfillmentRequested) (event.Subscription, error)

func (*BeaconVRFConsumerFilterer) WatchRandomnessRequested added in v1.11.0

func (_BeaconVRFConsumer *BeaconVRFConsumerFilterer) WatchRandomnessRequested(opts *bind.WatchOpts, sink chan<- *BeaconVRFConsumerRandomnessRequested, nextBeaconOutputHeight []uint64) (event.Subscription, error)

type BeaconVRFConsumerInterface

type BeaconVRFConsumerInterface interface {
	NUMCONFDELAYS(opts *bind.CallOpts) (uint8, error)

	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)

	SGasAvailable(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, requestID *big.Int) (*types.Transaction, error)

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

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

	FilterConfigSet(opts *bind.FilterOpts) (*BeaconVRFConsumerConfigSetIterator, error)

	WatchConfigSet(opts *bind.WatchOpts, sink chan<- *BeaconVRFConsumerConfigSet) (event.Subscription, error)

	ParseConfigSet(log types.Log) (*BeaconVRFConsumerConfigSet, error)

	FilterRandomnessFulfillmentRequested(opts *bind.FilterOpts) (*BeaconVRFConsumerRandomnessFulfillmentRequestedIterator, error)

	WatchRandomnessFulfillmentRequested(opts *bind.WatchOpts, sink chan<- *BeaconVRFConsumerRandomnessFulfillmentRequested) (event.Subscription, error)

	ParseRandomnessFulfillmentRequested(log types.Log) (*BeaconVRFConsumerRandomnessFulfillmentRequested, error)

	FilterRandomnessRequested(opts *bind.FilterOpts, nextBeaconOutputHeight []uint64) (*BeaconVRFConsumerRandomnessRequestedIterator, error)

	WatchRandomnessRequested(opts *bind.WatchOpts, sink chan<- *BeaconVRFConsumerRandomnessRequested, nextBeaconOutputHeight []uint64) (event.Subscription, error)

	ParseRandomnessRequested(log types.Log) (*BeaconVRFConsumerRandomnessRequested, error)

	ParseLog(log types.Log) (generated.AbigenLog, error)

	Address() common.Address
}

type BeaconVRFConsumerRandomnessFulfillmentRequested added in v1.11.0

type BeaconVRFConsumerRandomnessFulfillmentRequested struct {
	NextBeaconOutputHeight uint64
	ConfDelay              *big.Int
	SubID                  uint64
	Callback               VRFBeaconTypesCallback
	Raw                    types.Log
}

func (BeaconVRFConsumerRandomnessFulfillmentRequested) Topic added in v1.11.0

type BeaconVRFConsumerRandomnessFulfillmentRequestedIterator added in v1.11.0

type BeaconVRFConsumerRandomnessFulfillmentRequestedIterator struct {
	Event *BeaconVRFConsumerRandomnessFulfillmentRequested
	// contains filtered or unexported fields
}

func (*BeaconVRFConsumerRandomnessFulfillmentRequestedIterator) Close added in v1.11.0

func (*BeaconVRFConsumerRandomnessFulfillmentRequestedIterator) Error added in v1.11.0

func (*BeaconVRFConsumerRandomnessFulfillmentRequestedIterator) Next added in v1.11.0

type BeaconVRFConsumerRandomnessRequested added in v1.11.0

type BeaconVRFConsumerRandomnessRequested struct {
	NextBeaconOutputHeight uint64
	ConfDelay              *big.Int
	Raw                    types.Log
}

func (BeaconVRFConsumerRandomnessRequested) Topic added in v1.11.0

type BeaconVRFConsumerRandomnessRequestedIterator added in v1.11.0

type BeaconVRFConsumerRandomnessRequestedIterator struct {
	Event *BeaconVRFConsumerRandomnessRequested
	// contains filtered or unexported fields
}

func (*BeaconVRFConsumerRandomnessRequestedIterator) Close added in v1.11.0

func (*BeaconVRFConsumerRandomnessRequestedIterator) Error added in v1.11.0

func (*BeaconVRFConsumerRandomnessRequestedIterator) Next added in v1.11.0

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) NUMCONFDELAYS added in v1.10.0

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) NUMCONFDELAYS() (uint8, error)

func (*BeaconVRFConsumerSession) RawFulfillRandomWords

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

func (*BeaconVRFConsumerSession) SGasAvailable

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SGasAvailable() (*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 added in v1.9.0

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(requestID *big.Int) (*types.Transaction, error)

func (*BeaconVRFConsumerSession) TestRequestRandomness

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

func (*BeaconVRFConsumerSession) TestRequestRandomnessFulfillment

func (_BeaconVRFConsumer *BeaconVRFConsumerSession) TestRequestRandomnessFulfillment(subID uint64, 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 added in v1.9.0

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, requestID *big.Int) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactor) TestRequestRandomness

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

func (*BeaconVRFConsumerTransactor) TestRequestRandomnessFulfillment

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) TestRequestRandomnessFulfillment(opts *bind.TransactOpts, subID uint64, 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 added in v1.9.0

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(requestID *big.Int) (*types.Transaction, error)

func (*BeaconVRFConsumerTransactorSession) TestRequestRandomness

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

func (*BeaconVRFConsumerTransactorSession) TestRequestRandomnessFulfillment

func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) TestRequestRandomnessFulfillment(subID uint64, 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
}

type VRFBeaconTypesCallback added in v1.11.0

type VRFBeaconTypesCallback struct {
	RequestID      *big.Int
	NumWords       uint16
	Requester      common.Address
	Arguments      []byte
	SubID          uint64
	GasAllowance   *big.Int
	GasPrice       *big.Int
	WeiPerUnitLink *big.Int
}

Jump to

Keyboard shortcuts

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