Documentation ¶
Index ¶
- Variables
- type BatchVRFCoordinatorV2
- type BatchVRFCoordinatorV2Caller
- type BatchVRFCoordinatorV2CallerRaw
- type BatchVRFCoordinatorV2CallerSession
- type BatchVRFCoordinatorV2ErrorReturned
- type BatchVRFCoordinatorV2ErrorReturnedIterator
- type BatchVRFCoordinatorV2Filterer
- func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) FilterErrorReturned(opts *bind.FilterOpts, requestId []*big.Int) (*BatchVRFCoordinatorV2ErrorReturnedIterator, error)
- func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) FilterRawErrorReturned(opts *bind.FilterOpts, requestId []*big.Int) (*BatchVRFCoordinatorV2RawErrorReturnedIterator, error)
- func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) ParseErrorReturned(log types.Log) (*BatchVRFCoordinatorV2ErrorReturned, error)
- func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) ParseRawErrorReturned(log types.Log) (*BatchVRFCoordinatorV2RawErrorReturned, error)
- func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) WatchErrorReturned(opts *bind.WatchOpts, sink chan<- *BatchVRFCoordinatorV2ErrorReturned, ...) (event.Subscription, error)
- func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) WatchRawErrorReturned(opts *bind.WatchOpts, sink chan<- *BatchVRFCoordinatorV2RawErrorReturned, ...) (event.Subscription, error)
- type BatchVRFCoordinatorV2Interface
- type BatchVRFCoordinatorV2Raw
- func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type BatchVRFCoordinatorV2RawErrorReturned
- type BatchVRFCoordinatorV2RawErrorReturnedIterator
- type BatchVRFCoordinatorV2Session
- type BatchVRFCoordinatorV2Transactor
- type BatchVRFCoordinatorV2TransactorRaw
- type BatchVRFCoordinatorV2TransactorSession
- type VRFTypesProof
- type VRFTypesRequestCommitment
Constants ¶
This section is empty.
Variables ¶
View Source
var BatchVRFCoordinatorV2ABI = BatchVRFCoordinatorV2MetaData.ABI
View Source
var BatchVRFCoordinatorV2Bin = BatchVRFCoordinatorV2MetaData.Bin
View Source
var BatchVRFCoordinatorV2MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"coordinatorAddr\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"ErrorReturned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"lowLevelData\",\"type\":\"bytes\"}],\"name\":\"RawErrorReturned\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"COORDINATOR\",\"outputs\":[{\"internalType\":\"contractVRFCoordinatorV2\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256[2]\",\"name\":\"pk\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"gamma\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256\",\"name\":\"c\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"s\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"seed\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"uWitness\",\"type\":\"address\"},{\"internalType\":\"uint256[2]\",\"name\":\"cGammaWitness\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"sHashWitness\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256\",\"name\":\"zInv\",\"type\":\"uint256\"}],\"internalType\":\"structVRFTypes.Proof[]\",\"name\":\"proofs\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"blockNum\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"subId\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"callbackGasLimit\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"numWords\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"internalType\":\"structVRFTypes.RequestCommitment[]\",\"name\":\"rcs\",\"type\":\"tuple[]\"}],\"name\":\"fulfillRandomWords\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x60a060405234801561001057600080fd5b50604051610bbb380380610bbb83398101604081905261002f91610044565b60601b6001600160601b031916608052610074565b60006020828403121561005657600080fd5b81516001600160a01b038116811461006d57600080fd5b9392505050565b60805160601c610b23610098600039600081816055015261011d0152610b236000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806308b2da0a1461003b5780633b2bcbf114610050575b600080fd5b61004e61004936600461057f565b6100a0565b005b6100777f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b805182511461010f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f696e70757420617272617920617267206c656e67746873206d69736d61746368604482015260640160405180910390fd5b60005b8251811015610330577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663af198b97848381518110610169576101696109f5565b6020026020010151848481518110610183576101836109f5565b60200260200101516040518363ffffffff1660e01b81526004016101a89291906107d3565b602060405180830381600087803b1580156101c257600080fd5b505af1925050508015610210575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261020d918101906106e1565b60015b61031c5761021c610a53565b806308c379a014156102a15750610231610a6e565b8061023c57506102a3565b6000610260858481518110610253576102536109f5565b6020026020010151610335565b9050807f4dcab4ce0e741a040f7e0f9b880557f8de685a9520d4bfac272a81c3c3802b2e8360405161029291906107c0565b60405180910390a2505061031e565b505b3d8080156102cd576040519150601f19603f3d011682016040523d82523d6000602084013e6102d2565b606091505b5060006102ea858481518110610253576102536109f5565b9050807fbfd42bb5a1bf8153ea750f66ea4944f23f7b9ae51d0462177b9769aa652b61b58360405161029291906107c0565b505b8061032881610995565b915050610112565b505050565b60008061034583600001516103a4565b9050808360800151604051602001610367929190918252602082015260400190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101209392505050565b6000816040516020016103b791906107ac565b604051602081830303815290604052805190602001209050919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146103f857600080fd5b919050565b600082601f83011261040e57600080fd5b8135602061041b826108df565b60408051610429838261094a565b848152838101925086840160a0808702890186018a101561044957600080fd5b6000805b888110156104cb5782848d031215610463578182fd5b855161046e81610903565b61047785610567565b8152610484898601610567565b89820152610493878601610553565b8782015260606104a4818701610553565b9082015260806104b58682016103d4565b908201528752958701959282019260010161044d565b50929a9950505050505050505050565b600082601f8301126104ec57600080fd5b6040516040810181811067ffffffffffffffff8211171561050f5761050f610a24565b806040525080838560408601111561052657600080fd5b60005b6002811015610548578135835260209283019290910190600101610529565b509195945050505050565b803563ffffffff811681146103f857600080fd5b803567ffffffffffffffff811681146103f857600080fd5b6000806040838503121561059257600080fd5b823567ffffffffffffffff808211156105aa57600080fd5b818501915085601f8301126105be57600080fd5b813560206105cb826108df565b6040516105d8828261094a565b83815282810191508583016101a0808602880185018c10156105f957600080fd5b600097505b858810156106b15780828d03121561061557600080fd5b61061d6108d0565b6106278d846104db565b81526106368d604085016104db565b86820152608080840135604083015260a080850135606084015260c08501358284015261066560e086016103d4565b90830152506101006106798e8583016104db565b60c083015261068c8e61014086016104db565b60e08301526101808401359082015284526001979097019692840192908101906105fe565b509097505050860135925050808211156106ca57600080fd5b506106d7858286016103fd565b9150509250929050565b6000602082840312156106f357600080fd5b81516bffffffffffffffffffffffff8116811461070f57600080fd5b9392505050565b8060005b600281101561073957815184526020938401939091019060010161071a565b50505050565b60008151808452602060005b8281101561076657848101820151868201830152810161074b565b828111156107775760008284880101525b50807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168601019250505092915050565b604081016107ba8284610716565b92915050565b60208152600061070f602083018461073f565b6000610240820190506107e7828551610716565b60208401516107f96040840182610716565b5060408401516080830152606084015160a0830152608084015160c083015273ffffffffffffffffffffffffffffffffffffffff60a08501511660e083015260c084015161010061084c81850183610716565b60e08601519150610861610140850183610716565b85015161018084015250825167ffffffffffffffff9081166101a08401526020840151166101c0830152604083015163ffffffff9081166101e0840152606084015116610200830152608083015173ffffffffffffffffffffffffffffffffffffffff1661022083015261070f565b6040516108dc81610929565b90565b600067ffffffffffffffff8211156108f9576108f9610a24565b5060051b60200190565b60a0810181811067ffffffffffffffff8211171561092357610923610a24565b60405250565b610120810167ffffffffffffffff8111828210171561092357610923610a24565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561098e5761098e610a24565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156109ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156108dc5760046000803e5060005160e01c90565b600060443d1015610a7c5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715610aca57505050505090565b8285019150815181811115610ae25750505050505090565b843d8701016020828501011115610afc5750505050505090565b610b0b6020828601018761094a565b50909594505050505056fea164736f6c6343000806000a",
}
Functions ¶
This section is empty.
Types ¶
type BatchVRFCoordinatorV2 ¶
type BatchVRFCoordinatorV2 struct { BatchVRFCoordinatorV2Caller BatchVRFCoordinatorV2Transactor BatchVRFCoordinatorV2Filterer // contains filtered or unexported fields }
func DeployBatchVRFCoordinatorV2 ¶
func DeployBatchVRFCoordinatorV2(auth *bind.TransactOpts, backend bind.ContractBackend, coordinatorAddr common.Address) (common.Address, *types.Transaction, *BatchVRFCoordinatorV2, error)
func NewBatchVRFCoordinatorV2 ¶
func NewBatchVRFCoordinatorV2(address common.Address, backend bind.ContractBackend) (*BatchVRFCoordinatorV2, error)
func (*BatchVRFCoordinatorV2) Address ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2) Address() common.Address
type BatchVRFCoordinatorV2Caller ¶
type BatchVRFCoordinatorV2Caller struct {
// contains filtered or unexported fields
}
func NewBatchVRFCoordinatorV2Caller ¶
func NewBatchVRFCoordinatorV2Caller(address common.Address, caller bind.ContractCaller) (*BatchVRFCoordinatorV2Caller, error)
func (*BatchVRFCoordinatorV2Caller) COORDINATOR ¶
type BatchVRFCoordinatorV2CallerRaw ¶
type BatchVRFCoordinatorV2CallerRaw struct {
Contract *BatchVRFCoordinatorV2Caller
}
type BatchVRFCoordinatorV2CallerSession ¶
type BatchVRFCoordinatorV2CallerSession struct { Contract *BatchVRFCoordinatorV2Caller CallOpts bind.CallOpts }
func (*BatchVRFCoordinatorV2CallerSession) COORDINATOR ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2CallerSession) COORDINATOR() (common.Address, error)
type BatchVRFCoordinatorV2ErrorReturned ¶
func (BatchVRFCoordinatorV2ErrorReturned) Topic ¶
func (BatchVRFCoordinatorV2ErrorReturned) Topic() common.Hash
type BatchVRFCoordinatorV2ErrorReturnedIterator ¶
type BatchVRFCoordinatorV2ErrorReturnedIterator struct { Event *BatchVRFCoordinatorV2ErrorReturned // contains filtered or unexported fields }
func (*BatchVRFCoordinatorV2ErrorReturnedIterator) Close ¶
func (it *BatchVRFCoordinatorV2ErrorReturnedIterator) Close() error
func (*BatchVRFCoordinatorV2ErrorReturnedIterator) Error ¶
func (it *BatchVRFCoordinatorV2ErrorReturnedIterator) Error() error
func (*BatchVRFCoordinatorV2ErrorReturnedIterator) Next ¶
func (it *BatchVRFCoordinatorV2ErrorReturnedIterator) Next() bool
type BatchVRFCoordinatorV2Filterer ¶
type BatchVRFCoordinatorV2Filterer struct {
// contains filtered or unexported fields
}
func NewBatchVRFCoordinatorV2Filterer ¶
func NewBatchVRFCoordinatorV2Filterer(address common.Address, filterer bind.ContractFilterer) (*BatchVRFCoordinatorV2Filterer, error)
func (*BatchVRFCoordinatorV2Filterer) FilterErrorReturned ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) FilterErrorReturned(opts *bind.FilterOpts, requestId []*big.Int) (*BatchVRFCoordinatorV2ErrorReturnedIterator, error)
func (*BatchVRFCoordinatorV2Filterer) FilterRawErrorReturned ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) FilterRawErrorReturned(opts *bind.FilterOpts, requestId []*big.Int) (*BatchVRFCoordinatorV2RawErrorReturnedIterator, error)
func (*BatchVRFCoordinatorV2Filterer) ParseErrorReturned ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) ParseErrorReturned(log types.Log) (*BatchVRFCoordinatorV2ErrorReturned, error)
func (*BatchVRFCoordinatorV2Filterer) ParseRawErrorReturned ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) ParseRawErrorReturned(log types.Log) (*BatchVRFCoordinatorV2RawErrorReturned, error)
func (*BatchVRFCoordinatorV2Filterer) WatchErrorReturned ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) WatchErrorReturned(opts *bind.WatchOpts, sink chan<- *BatchVRFCoordinatorV2ErrorReturned, requestId []*big.Int) (event.Subscription, error)
func (*BatchVRFCoordinatorV2Filterer) WatchRawErrorReturned ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Filterer) WatchRawErrorReturned(opts *bind.WatchOpts, sink chan<- *BatchVRFCoordinatorV2RawErrorReturned, requestId []*big.Int) (event.Subscription, error)
type BatchVRFCoordinatorV2Interface ¶
type BatchVRFCoordinatorV2Interface interface { COORDINATOR(opts *bind.CallOpts) (common.Address, error) FulfillRandomWords(opts *bind.TransactOpts, proofs []VRFTypesProof, rcs []VRFTypesRequestCommitment) (*types.Transaction, error) FilterErrorReturned(opts *bind.FilterOpts, requestId []*big.Int) (*BatchVRFCoordinatorV2ErrorReturnedIterator, error) WatchErrorReturned(opts *bind.WatchOpts, sink chan<- *BatchVRFCoordinatorV2ErrorReturned, requestId []*big.Int) (event.Subscription, error) ParseErrorReturned(log types.Log) (*BatchVRFCoordinatorV2ErrorReturned, error) FilterRawErrorReturned(opts *bind.FilterOpts, requestId []*big.Int) (*BatchVRFCoordinatorV2RawErrorReturnedIterator, error) WatchRawErrorReturned(opts *bind.WatchOpts, sink chan<- *BatchVRFCoordinatorV2RawErrorReturned, requestId []*big.Int) (event.Subscription, error) ParseRawErrorReturned(log types.Log) (*BatchVRFCoordinatorV2RawErrorReturned, error) ParseLog(log types.Log) (generated.AbigenLog, error) Address() common.Address }
type BatchVRFCoordinatorV2Raw ¶
type BatchVRFCoordinatorV2Raw struct {
Contract *BatchVRFCoordinatorV2
}
func (*BatchVRFCoordinatorV2Raw) Call ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
func (*BatchVRFCoordinatorV2Raw) Transact ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
func (*BatchVRFCoordinatorV2Raw) Transfer ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
type BatchVRFCoordinatorV2RawErrorReturned ¶
type BatchVRFCoordinatorV2RawErrorReturned struct { RequestId *big.Int LowLevelData []byte Raw types.Log }
func (BatchVRFCoordinatorV2RawErrorReturned) Topic ¶
func (BatchVRFCoordinatorV2RawErrorReturned) Topic() common.Hash
type BatchVRFCoordinatorV2RawErrorReturnedIterator ¶
type BatchVRFCoordinatorV2RawErrorReturnedIterator struct { Event *BatchVRFCoordinatorV2RawErrorReturned // contains filtered or unexported fields }
func (*BatchVRFCoordinatorV2RawErrorReturnedIterator) Close ¶
func (it *BatchVRFCoordinatorV2RawErrorReturnedIterator) Close() error
func (*BatchVRFCoordinatorV2RawErrorReturnedIterator) Error ¶
func (it *BatchVRFCoordinatorV2RawErrorReturnedIterator) Error() error
func (*BatchVRFCoordinatorV2RawErrorReturnedIterator) Next ¶
func (it *BatchVRFCoordinatorV2RawErrorReturnedIterator) Next() bool
type BatchVRFCoordinatorV2Session ¶
type BatchVRFCoordinatorV2Session struct { Contract *BatchVRFCoordinatorV2 CallOpts bind.CallOpts TransactOpts bind.TransactOpts }
func (*BatchVRFCoordinatorV2Session) COORDINATOR ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Session) COORDINATOR() (common.Address, error)
func (*BatchVRFCoordinatorV2Session) FulfillRandomWords ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Session) FulfillRandomWords(proofs []VRFTypesProof, rcs []VRFTypesRequestCommitment) (*types.Transaction, error)
type BatchVRFCoordinatorV2Transactor ¶
type BatchVRFCoordinatorV2Transactor struct {
// contains filtered or unexported fields
}
func NewBatchVRFCoordinatorV2Transactor ¶
func NewBatchVRFCoordinatorV2Transactor(address common.Address, transactor bind.ContractTransactor) (*BatchVRFCoordinatorV2Transactor, error)
func (*BatchVRFCoordinatorV2Transactor) FulfillRandomWords ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2Transactor) FulfillRandomWords(opts *bind.TransactOpts, proofs []VRFTypesProof, rcs []VRFTypesRequestCommitment) (*types.Transaction, error)
type BatchVRFCoordinatorV2TransactorRaw ¶
type BatchVRFCoordinatorV2TransactorRaw struct {
Contract *BatchVRFCoordinatorV2Transactor
}
func (*BatchVRFCoordinatorV2TransactorRaw) Transact ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
func (*BatchVRFCoordinatorV2TransactorRaw) Transfer ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
type BatchVRFCoordinatorV2TransactorSession ¶
type BatchVRFCoordinatorV2TransactorSession struct { Contract *BatchVRFCoordinatorV2Transactor TransactOpts bind.TransactOpts }
func (*BatchVRFCoordinatorV2TransactorSession) FulfillRandomWords ¶
func (_BatchVRFCoordinatorV2 *BatchVRFCoordinatorV2TransactorSession) FulfillRandomWords(proofs []VRFTypesProof, rcs []VRFTypesRequestCommitment) (*types.Transaction, error)
type VRFTypesProof ¶
Click to show internal directories.
Click to hide internal directories.