solidity_vrf_consumer_interface

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VRFConsumerABI = VRFConsumerMetaData.ABI
View Source
var VRFConsumerBin = VRFConsumerMetaData.Bin
View Source
var VRFConsumerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vrfCoordinator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_link\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"currentRoundID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"randomnessOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"requestId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"randomness\",\"type\":\"uint256\"}],\"name\":\"rawFulfillRandomness\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_keyHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_fee\",\"type\":\"uint256\"}],\"name\":\"testRequestRandomness\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"requestId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60c0604052600060015534801561001557600080fd5b506040516105363803806105368339818101604052604081101561003857600080fd5b5080516020909101516001600160601b0319606092831b811660a052911b1660805260805160601c60a05160601c6104ae6100886000398061011452806101f45250806101b852506104ae6000f3fe608060405234801561001057600080fd5b50600436106100665760003560e01c8063866ee74811610050578063866ee7481461008d57806394985ddd146100b0578063a312c4f2146100d557610066565b80626d6cae1461006b5780632f47fd8614610085575b600080fd5b6100736100dd565b60408051918252519081900360200190f35b6100736100e3565b610073600480360360408110156100a357600080fd5b50803590602001356100e9565b6100d3600480360360408110156100c657600080fd5b50803590602001356100fc565b005b6100736101ae565b60035481565b60025481565b60006100f583836101b4565b9392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146101a057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015290519081900360640190fd5b6101aa828261039d565b5050565b60015481565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f00000000000000000000000000000000000000000000000000000000000000008486600060405160200180838152602001828152602001925050506040516020818303038152906040526040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102c15781810151838201526020016102a9565b50505050905090810190601f1680156102ee5780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561030f57600080fd5b505af1158015610323573d6000803e3d6000fd5b505050506040513d602081101561033957600080fd5b5050600083815260208190526040812054610359908590839030906103ad565b60008581526020819052604090205490915061037c90600163ffffffff61040116565b6000858152602081905260409020556103958482610475565b949350505050565b6002556003556001805481019055565b604080516020808201969096528082019490945273ffffffffffffffffffffffffffffffffffffffff9290921660608401526080808401919091528151808403909101815260a09092019052805191012090565b6000828201838110156100f557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60408051602080820194909452808201929092528051808303820181526060909201905280519101209056fea164736f6c6343000606000a",
}

Functions

This section is empty.

Types

type VRFConsumer

type VRFConsumer struct {
	VRFConsumerCaller
	VRFConsumerTransactor
	VRFConsumerFilterer
	// contains filtered or unexported fields
}

func DeployVRFConsumer

func DeployVRFConsumer(auth *bind.TransactOpts, backend bind.ContractBackend, _vrfCoordinator common.Address, _link common.Address) (common.Address, *types.Transaction, *VRFConsumer, error)

func NewVRFConsumer

func NewVRFConsumer(address common.Address, backend bind.ContractBackend) (*VRFConsumer, error)

func (*VRFConsumer) Address

func (_VRFConsumer *VRFConsumer) Address() common.Address

type VRFConsumerCaller

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

func NewVRFConsumerCaller

func NewVRFConsumerCaller(address common.Address, caller bind.ContractCaller) (*VRFConsumerCaller, error)

func (*VRFConsumerCaller) CurrentRoundID added in v2.2.0

func (_VRFConsumer *VRFConsumerCaller) CurrentRoundID(opts *bind.CallOpts) (*big.Int, error)

func (*VRFConsumerCaller) RandomnessOutput

func (_VRFConsumer *VRFConsumerCaller) RandomnessOutput(opts *bind.CallOpts) (*big.Int, error)

func (*VRFConsumerCaller) RequestId

func (_VRFConsumer *VRFConsumerCaller) RequestId(opts *bind.CallOpts) ([32]byte, error)

type VRFConsumerCallerRaw

type VRFConsumerCallerRaw struct {
	Contract *VRFConsumerCaller
}

func (*VRFConsumerCallerRaw) Call

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

type VRFConsumerCallerSession

type VRFConsumerCallerSession struct {
	Contract *VRFConsumerCaller
	CallOpts bind.CallOpts
}

func (*VRFConsumerCallerSession) CurrentRoundID added in v2.2.0

func (_VRFConsumer *VRFConsumerCallerSession) CurrentRoundID() (*big.Int, error)

func (*VRFConsumerCallerSession) RandomnessOutput

func (_VRFConsumer *VRFConsumerCallerSession) RandomnessOutput() (*big.Int, error)

func (*VRFConsumerCallerSession) RequestId

func (_VRFConsumer *VRFConsumerCallerSession) RequestId() ([32]byte, error)

type VRFConsumerFilterer

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

func NewVRFConsumerFilterer

func NewVRFConsumerFilterer(address common.Address, filterer bind.ContractFilterer) (*VRFConsumerFilterer, error)

type VRFConsumerInterface

type VRFConsumerInterface interface {
	CurrentRoundID(opts *bind.CallOpts) (*big.Int, error)

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

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

	RawFulfillRandomness(opts *bind.TransactOpts, requestId [32]byte, randomness *big.Int) (*types.Transaction, error)

	TestRequestRandomness(opts *bind.TransactOpts, _keyHash [32]byte, _fee *big.Int) (*types.Transaction, error)

	Address() common.Address
}

type VRFConsumerRaw

type VRFConsumerRaw struct {
	Contract *VRFConsumer
}

func (*VRFConsumerRaw) Call

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

func (*VRFConsumerRaw) Transact

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

func (*VRFConsumerRaw) Transfer

func (_VRFConsumer *VRFConsumerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type VRFConsumerSession

type VRFConsumerSession struct {
	Contract     *VRFConsumer
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*VRFConsumerSession) CurrentRoundID added in v2.2.0

func (_VRFConsumer *VRFConsumerSession) CurrentRoundID() (*big.Int, error)

func (*VRFConsumerSession) RandomnessOutput

func (_VRFConsumer *VRFConsumerSession) RandomnessOutput() (*big.Int, error)

func (*VRFConsumerSession) RawFulfillRandomness

func (_VRFConsumer *VRFConsumerSession) RawFulfillRandomness(requestId [32]byte, randomness *big.Int) (*types.Transaction, error)

func (*VRFConsumerSession) RequestId

func (_VRFConsumer *VRFConsumerSession) RequestId() ([32]byte, error)

func (*VRFConsumerSession) TestRequestRandomness

func (_VRFConsumer *VRFConsumerSession) TestRequestRandomness(_keyHash [32]byte, _fee *big.Int) (*types.Transaction, error)

type VRFConsumerTransactor

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

func NewVRFConsumerTransactor

func NewVRFConsumerTransactor(address common.Address, transactor bind.ContractTransactor) (*VRFConsumerTransactor, error)

func (*VRFConsumerTransactor) RawFulfillRandomness

func (_VRFConsumer *VRFConsumerTransactor) RawFulfillRandomness(opts *bind.TransactOpts, requestId [32]byte, randomness *big.Int) (*types.Transaction, error)

func (*VRFConsumerTransactor) TestRequestRandomness

func (_VRFConsumer *VRFConsumerTransactor) TestRequestRandomness(opts *bind.TransactOpts, _keyHash [32]byte, _fee *big.Int) (*types.Transaction, error)

type VRFConsumerTransactorRaw

type VRFConsumerTransactorRaw struct {
	Contract *VRFConsumerTransactor
}

func (*VRFConsumerTransactorRaw) Transact

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

func (*VRFConsumerTransactorRaw) Transfer

func (_VRFConsumer *VRFConsumerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type VRFConsumerTransactorSession

type VRFConsumerTransactorSession struct {
	Contract     *VRFConsumerTransactor
	TransactOpts bind.TransactOpts
}

func (*VRFConsumerTransactorSession) RawFulfillRandomness

func (_VRFConsumer *VRFConsumerTransactorSession) RawFulfillRandomness(requestId [32]byte, randomness *big.Int) (*types.Transaction, error)

func (*VRFConsumerTransactorSession) TestRequestRandomness

func (_VRFConsumer *VRFConsumerTransactorSession) TestRequestRandomness(_keyHash [32]byte, _fee *big.Int) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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