Documentation ¶
Index ¶
- Variables
- type BeaconVRFConsumer
- type BeaconVRFConsumerCaller
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) Fail(opts *bind.CallOpts) (bool, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) IBeaconPeriodBlocks(opts *bind.CallOpts) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SExpectedRandomnessByBlock(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SExpectedSeeds(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) ([32]byte, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SGasAvailable(opts *bind.CallOpts) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SMyBeaconRequests(opts *bind.CallOpts, arg0 *big.Int) (SMyBeaconRequests, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SRandomWords(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SReceivedRandomnessByRequestID(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SRequestsIDs(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SSubId(opts *bind.CallOpts) (uint64, error)
- type BeaconVRFConsumerCallerRaw
- type BeaconVRFConsumerCallerSession
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) Fail() (bool, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) IBeaconPeriodBlocks() (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SExpectedRandomnessByBlock(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SExpectedSeeds(arg0 *big.Int, arg1 *big.Int) ([32]byte, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SGasAvailable() (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SMyBeaconRequests(arg0 *big.Int) (SMyBeaconRequests, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SRandomWords(arg0 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SReceivedRandomnessByRequestID(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SRequestsIDs(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerCallerSession) SSubId() (uint64, error)
- type BeaconVRFConsumerFilterer
- type BeaconVRFConsumerInterface
- type BeaconVRFConsumerRaw
- func (_BeaconVRFConsumer *BeaconVRFConsumerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_BeaconVRFConsumer *BeaconVRFConsumerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type BeaconVRFConsumerSession
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) ComputeAndStoreExpectedOutput(height uint64, confirmationDelayArg *big.Int) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) Fail() (bool, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) IBeaconPeriodBlocks() (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) RawFulfillRandomWords(requestID *big.Int, randomWords []*big.Int, arguments []byte) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SExpectedRandomnessByBlock(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SExpectedSeeds(arg0 *big.Int, arg1 *big.Int) ([32]byte, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SGasAvailable() (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SMyBeaconRequests(arg0 *big.Int) (SMyBeaconRequests, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SRandomWords(arg0 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SReceivedRandomnessByRequestID(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SRequestsIDs(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SSubId() (uint64, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SetExpectedSeed(height uint64, confirmationDelayArg *big.Int, vrfOutput ECCArithmeticG1Point) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SetFail(shouldFail bool) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) TestGetRandomness(requestID *big.Int) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) TestRequestRandomness(numWords uint16, subID uint64, confirmationDelayArg *big.Int) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerSession) TestRequestRandomnessFulfillment(subID uint64, numWords uint16, confirmationDelayArg *big.Int, ...) (*types.Transaction, error)
- type BeaconVRFConsumerTransactor
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) ComputeAndStoreExpectedOutput(opts *bind.TransactOpts, height uint64, confirmationDelayArg *big.Int) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) RawFulfillRandomWords(opts *bind.TransactOpts, requestID *big.Int, randomWords []*big.Int, ...) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) SetExpectedSeed(opts *bind.TransactOpts, height uint64, confirmationDelayArg *big.Int, ...) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) SetFail(opts *bind.TransactOpts, shouldFail bool) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) TestGetRandomness(opts *bind.TransactOpts, requestID *big.Int) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) TestRequestRandomness(opts *bind.TransactOpts, numWords uint16, subID uint64, ...) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) TestRequestRandomnessFulfillment(opts *bind.TransactOpts, subID uint64, numWords uint16, ...) (*types.Transaction, error)
- type BeaconVRFConsumerTransactorRaw
- type BeaconVRFConsumerTransactorSession
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) ComputeAndStoreExpectedOutput(height uint64, confirmationDelayArg *big.Int) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) RawFulfillRandomWords(requestID *big.Int, randomWords []*big.Int, arguments []byte) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) SetExpectedSeed(height uint64, confirmationDelayArg *big.Int, vrfOutput ECCArithmeticG1Point) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) SetFail(shouldFail bool) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) TestGetRandomness(requestID *big.Int) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) TestRequestRandomness(numWords uint16, subID uint64, confirmationDelayArg *big.Int) (*types.Transaction, error)
- func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) TestRequestRandomnessFulfillment(subID uint64, numWords uint16, confirmationDelayArg *big.Int, ...) (*types.Transaction, error)
- type ECCArithmeticG1Point
- type SMyBeaconRequests
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\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"confirmationDelayArg\",\"type\":\"uint24\"}],\"name\":\"computeAndStoreExpectedOutput\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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_ExpectedRandomnessByBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"\",\"type\":\"uint24\"}],\"name\":\"s_ExpectedSeeds\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"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\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"VRFBeaconTypes.ConfirmationDelay\",\"name\":\"confirmationDelayArg\",\"type\":\"uint24\"},{\"components\":[{\"internalType\":\"uint256[2]\",\"name\":\"p\",\"type\":\"uint256[2]\"}],\"internalType\":\"structECCArithmetic.G1Point\",\"name\":\"vrfOutput\",\"type\":\"tuple\"}],\"name\":\"setExpectedSeed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"shouldFail\",\"type\":\"bool\"}],\"name\":\"setFail\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"VRFBeaconTypes.RequestID\",\"name\":\"requestID\",\"type\":\"uint48\"}],\"name\":\"testGetRandomness\",\"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: "0x60a060405234801561001057600080fd5b506040516116c03803806116c083398101604081905261002f9161006c565b6001600160a01b03929092166080819052600680546001600160a01b03191690911790556009805460ff1916911515919091179055600a556100c0565b60008060006060848603121561008157600080fd5b83516001600160a01b038116811461009857600080fd5b602085015190935080151581146100ae57600080fd5b80925050604084015190509250925092565b6080516115e56100db60003960006106bc01526115e56000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c80639c9cd015116100b2578063cd0593df11610081578063f08c5daa11610066578063f08c5daa1461038c578063f339c79414610395578063f6eaffc8146103a857600080fd5b8063cd0593df14610370578063e4d47bfa1461037957600080fd5b80639c9cd015146102ee5780639d76940214610301578063a9cc471814610340578063af7da81e1461035d57600080fd5b80635a47dd71116100ee5780635a47dd71146102385780635f15cccc1461024b578063678d38f71461027e578063706da1ca146102a957600080fd5b806319a5fa221461012057806340e836ab146101d857806345907626146101ed578063563db24c14610217575b600080fd5b61018961012e366004610e49565b60026020526000908152604090205463ffffffff811690640100000000810462ffffff1690670100000000000000810461ffff16906901000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1684565b6040805163ffffffff909516855262ffffff909316602085015261ffff9091169183019190915273ffffffffffffffffffffffffffffffffffffffff1660608201526080015b60405180910390f35b6101eb6101e6366004610f67565b6103bb565b005b6102006101fb3660046110c8565b610434565b60405165ffffffffffff90911681526020016101cf565b61022a610225366004611153565b610689565b6040519081526020016101cf565b6101eb6102463660046111a3565b6106ba565b610200610259366004611275565b600160209081526000928352604080842090915290825290205465ffffffffffff1681565b61022a61028c366004611275565b600560209081526000928352604080842090915290825290205481565b6007546102d59074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016101cf565b6102006102fc3660046112a1565b61076e565b6101eb61030f3660046112e4565b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60095461034d9060ff1681565b60405190151581526020016101cf565b6101eb61036b366004610e49565b6109d3565b61022a600a5481565b6101eb610387366004611306565b610abf565b61022a60085481565b61022a6103a3366004611153565b610cfa565b61022a6103b6366004611330565b610d16565b6000816040516020016103ce9190611349565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152918152815160209283012067ffffffffffffffff90961660009081526005835281812062ffffff909616815294909152909220929092555050565b600080600a544361044591906113ab565b9050600081600a544361045891906113ee565b6104629190611406565b6006546040517ff645dcb100000000000000000000000000000000000000000000000000000000815291925060009173ffffffffffffffffffffffffffffffffffffffff9091169063f645dcb1906104c6908c908c908c908c908c9060040161141d565b6020604051808303816000875af11580156104e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050991906114c6565b600083815260016020908152604080832062ffffff8c168452909152812080547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001665ffffffffffff8416179055600a549192509061056890846114e3565b6040805160808101825263ffffffff928316815262ffffff9a8b16602080830191825261ffff9d8e16838501908152306060850190815265ffffffffffff891660009081526002909352949091209251835492519151945195167fffffffffffffffffffffffffffffffffffffffffffffffffff000000000000009092169190911764010000000091909c16029a909a177fffffff00000000000000000000000000000000000000000000ffffffffffffff1667010000000000000091909b16027fffffff0000000000000000000000000000000000000000ffffffffffffffffff1699909917690100000000000000000073ffffffffffffffffffffffffffffffffffffffff909a16999099029890981790965550939695505050505050565b600460205281600052604060002081815481106106a557600080fd5b90600052602060002001600091509150505481565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16331461075e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6f6e6c7920636f6f7264696e61746f722063616e2066756c66696c6c0000000060448201526064015b60405180910390fd5b610769838383610d37565b505050565b600080600a544361077f91906113ab565b9050600081600a544361079291906113ee565b61079c9190611406565b6006546040517fdc92accf00000000000000000000000000000000000000000000000000000000815261ffff8916600482015267ffffffffffffffff8816602482015262ffffff8716604482015291925060009173ffffffffffffffffffffffffffffffffffffffff9091169063dc92accf906064016020604051808303816000875af1158015610831573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085591906114c6565b600083815260016020908152604080832062ffffff8a168452909152812080547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001665ffffffffffff8416179055600a54919250906108b490846114e3565b6040805160808101825263ffffffff928316815262ffffff988916602080830191825261ffff9c8d16838501908152306060850190815265ffffffffffff891660009081526002909352949091209251835492519151945195167fffffffffffffffffffffffffffffffffffffffffffffffffff000000000000009092169190911764010000000091909a1602989098177fffffff00000000000000000000000000000000000000000000ffffffffffffff1667010000000000000091909a16027fffffff0000000000000000000000000000000000000000ffffffffffffffffff1698909817690100000000000000000073ffffffffffffffffffffffffffffffffffffffff90991698909802979097179094555091949350505050565b6006546040517f0b93e16800000000000000000000000000000000000000000000000000000000815265ffffffffffff8316600482015260009173ffffffffffffffffffffffffffffffffffffffff1690630b93e168906024016000604051808303816000875af1158015610a4c573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610a9291908101906114f7565b65ffffffffffff831660009081526003602090815260409091208251929350610769929091840190610dd2565b67ffffffffffffffff8216600081815260016020908152604080832062ffffff8681168086529184528285205465ffffffffffff1680865260028552838620845160808082018752915463ffffffff808216835264010000000082048616838a0190815261ffff67010000000000000084048116858b0190815273ffffffffffffffffffffffffffffffffffffffff6901000000000000000000909504851660608088019182529e8e5260058d528b8e209a8e52998c528a8d20548b519c8d0189905286519094169a8c019a909a5290519096169a89019a909a52955190931690860152915190921660a084015260c08301859052939092909160e0016040516020818303038152906040528051906020012090506000836040015161ffff1667ffffffffffffffff811115610bf757610bf7610e9d565b604051908082528060200260200182016040528015610c20578160200160208202803683370190505b50905060005b846040015161ffff168161ffff161015610cc7578281604051602001610c7b92919091825260f01b7fffff00000000000000000000000000000000000000000000000000000000000016602082015260220190565b6040516020818303038152906040528051906020012060001c828261ffff1681518110610caa57610caa611588565b602090810291909101015280610cbf816115b7565b915050610c26565b5065ffffffffffff851660009081526004602090815260409091208251610cf092840190610dd2565b5050505050505050565b600360205281600052604060002081815481106106a557600080fd5b60008181548110610d2657600080fd5b600091825260209091200154905081565b60095460ff1615610da4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f206661696c656420696e2066756c66696c6c52616e646f6d576f7264730000006044820152606401610755565b65ffffffffffff831660009081526003602090815260409091208351610dcc92850190610dd2565b50505050565b828054828255906000526020600020908101928215610e0d579160200282015b82811115610e0d578251825591602001919060010190610df2565b50610e19929150610e1d565b5090565b5b80821115610e195760008155600101610e1e565b65ffffffffffff81168114610e4657600080fd5b50565b600060208284031215610e5b57600080fd5b8135610e6681610e32565b9392505050565b803567ffffffffffffffff81168114610e8557600080fd5b919050565b803562ffffff81168114610e8557600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516020810167ffffffffffffffff81118282101715610eef57610eef610e9d565b60405290565b6040805190810167ffffffffffffffff81118282101715610eef57610eef610e9d565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610f5f57610f5f610e9d565b604052919050565b60008060008385036080811215610f7d57600080fd5b610f8685610e6d565b93506020610f95818701610e8a565b935060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc083011215610fc757600080fd5b610fcf610ecc565b915086605f870112610fe057600080fd5b610fe8610ef5565b806080880189811115610ffa57600080fd5b604089015b818110156110165780358452928401928401610fff565b50508352509396929550935090915050565b803561ffff81168114610e8557600080fd5b600082601f83011261104b57600080fd5b813567ffffffffffffffff81111561106557611065610e9d565b61109660207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601610f18565b8181528460208386010111156110ab57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156110e057600080fd5b6110e986610e6d565b94506110f760208701611028565b935061110560408701610e8a565b9250606086013563ffffffff8116811461111e57600080fd5b9150608086013567ffffffffffffffff81111561113a57600080fd5b6111468882890161103a565b9150509295509295909350565b6000806040838503121561116657600080fd5b823561117181610e32565b946020939093013593505050565b600067ffffffffffffffff82111561119957611199610e9d565b5060051b60200190565b6000806000606084860312156111b857600080fd5b83356111c381610e32565b925060208481013567ffffffffffffffff808211156111e157600080fd5b818701915087601f8301126111f557600080fd5b81356112086112038261117f565b610f18565b81815260059190911b8301840190848101908a83111561122757600080fd5b938501935b828510156112455784358252938501939085019061122c565b96505050604087013592508083111561125d57600080fd5b505061126b8682870161103a565b9150509250925092565b6000806040838503121561128857600080fd5b8235915061129860208401610e8a565b90509250929050565b6000806000606084860312156112b657600080fd5b6112bf84611028565b92506112cd60208501610e6d565b91506112db60408501610e8a565b90509250925092565b6000602082840312156112f657600080fd5b81358015158114610e6657600080fd5b6000806040838503121561131957600080fd5b61132283610e6d565b915061129860208401610e8a565b60006020828403121561134257600080fd5b5035919050565b815160408201908260005b6002811015611373578251825260209283019290910190600101611354565b50505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826113ba576113ba61137c565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115611401576114016113bf565b500190565b600082821015611418576114186113bf565b500390565b67ffffffffffffffff861681526000602061ffff87168184015262ffffff8616604084015263ffffffff8516606084015260a0608084015283518060a085015260005b8181101561147c5785810183015185820160c001528201611460565b8181111561148e57600060c083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160c001979650505050505050565b6000602082840312156114d857600080fd5b8151610e6681610e32565b6000826114f2576114f261137c565b500490565b6000602080838503121561150a57600080fd5b825167ffffffffffffffff81111561152157600080fd5b8301601f8101851361153257600080fd5b80516115406112038261117f565b81815260059190911b8201830190838101908783111561155f57600080fd5b928401925b8284101561157d57835182529284019290840190611564565b979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061ffff8083168181036115ce576115ce6113bf565b600101939250505056fea164736f6c634300080f000a",
}
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
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 (*BeaconVRFConsumerCaller) SExpectedRandomnessByBlock ¶
func (*BeaconVRFConsumerCaller) SExpectedSeeds ¶
func (*BeaconVRFConsumerCaller) SGasAvailable ¶
func (*BeaconVRFConsumerCaller) SMyBeaconRequests ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerCaller) SMyBeaconRequests(opts *bind.CallOpts, arg0 *big.Int) (SMyBeaconRequests, error)
func (*BeaconVRFConsumerCaller) SRandomWords ¶
func (*BeaconVRFConsumerCaller) SReceivedRandomnessByRequestID ¶
func (*BeaconVRFConsumerCaller) SRequestsIDs ¶
type BeaconVRFConsumerCallerRaw ¶
type BeaconVRFConsumerCallerRaw struct {
Contract *BeaconVRFConsumerCaller
}
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) SExpectedRandomnessByBlock ¶
func (*BeaconVRFConsumerCallerSession) SExpectedSeeds ¶
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 (*BeaconVRFConsumerCallerSession) SReceivedRandomnessByRequestID ¶
func (*BeaconVRFConsumerCallerSession) SRequestsIDs ¶
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) SExpectedRandomnessByBlock(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error) SExpectedSeeds(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) ([32]byte, 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) ComputeAndStoreExpectedOutput(opts *bind.TransactOpts, height uint64, confirmationDelayArg *big.Int) (*types.Transaction, error) RawFulfillRandomWords(opts *bind.TransactOpts, requestID *big.Int, randomWords []*big.Int, arguments []byte) (*types.Transaction, error) SetExpectedSeed(opts *bind.TransactOpts, height uint64, confirmationDelayArg *big.Int, vrfOutput ECCArithmeticG1Point) (*types.Transaction, error) SetFail(opts *bind.TransactOpts, shouldFail bool) (*types.Transaction, error) TestGetRandomness(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) 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) ComputeAndStoreExpectedOutput ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerSession) ComputeAndStoreExpectedOutput(height uint64, confirmationDelayArg *big.Int) (*types.Transaction, error)
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) SExpectedRandomnessByBlock ¶
func (*BeaconVRFConsumerSession) SExpectedSeeds ¶
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 (*BeaconVRFConsumerSession) SReceivedRandomnessByRequestID ¶
func (*BeaconVRFConsumerSession) SRequestsIDs ¶
func (*BeaconVRFConsumerSession) SSubId ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SSubId() (uint64, error)
func (*BeaconVRFConsumerSession) SetExpectedSeed ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SetExpectedSeed(height uint64, confirmationDelayArg *big.Int, vrfOutput ECCArithmeticG1Point) (*types.Transaction, error)
func (*BeaconVRFConsumerSession) SetFail ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerSession) SetFail(shouldFail bool) (*types.Transaction, error)
func (*BeaconVRFConsumerSession) TestGetRandomness ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerSession) TestGetRandomness(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) ComputeAndStoreExpectedOutput ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) ComputeAndStoreExpectedOutput(opts *bind.TransactOpts, height uint64, confirmationDelayArg *big.Int) (*types.Transaction, error)
func (*BeaconVRFConsumerTransactor) RawFulfillRandomWords ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) RawFulfillRandomWords(opts *bind.TransactOpts, requestID *big.Int, randomWords []*big.Int, arguments []byte) (*types.Transaction, error)
func (*BeaconVRFConsumerTransactor) SetExpectedSeed ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) SetExpectedSeed(opts *bind.TransactOpts, height uint64, confirmationDelayArg *big.Int, vrfOutput ECCArithmeticG1Point) (*types.Transaction, error)
func (*BeaconVRFConsumerTransactor) SetFail ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) SetFail(opts *bind.TransactOpts, shouldFail bool) (*types.Transaction, error)
func (*BeaconVRFConsumerTransactor) TestGetRandomness ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactor) TestGetRandomness(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) ComputeAndStoreExpectedOutput ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) ComputeAndStoreExpectedOutput(height uint64, confirmationDelayArg *big.Int) (*types.Transaction, error)
func (*BeaconVRFConsumerTransactorSession) RawFulfillRandomWords ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) RawFulfillRandomWords(requestID *big.Int, randomWords []*big.Int, arguments []byte) (*types.Transaction, error)
func (*BeaconVRFConsumerTransactorSession) SetExpectedSeed ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) SetExpectedSeed(height uint64, confirmationDelayArg *big.Int, vrfOutput ECCArithmeticG1Point) (*types.Transaction, error)
func (*BeaconVRFConsumerTransactorSession) SetFail ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) SetFail(shouldFail bool) (*types.Transaction, error)
func (*BeaconVRFConsumerTransactorSession) TestGetRandomness ¶
func (_BeaconVRFConsumer *BeaconVRFConsumerTransactorSession) TestGetRandomness(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 ECCArithmeticG1Point ¶
Click to show internal directories.
Click to hide internal directories.