vrf_malicious_consumer_v2

package
v2.6.0-clf-20230927 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VRFMaliciousConsumerV2ABI = VRFMaliciousConsumerV2MetaData.ABI
View Source
var VRFMaliciousConsumerV2Bin = VRFMaliciousConsumerV2MetaData.Bin
View Source
var VRFMaliciousConsumerV2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vrfCoordinator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"link\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"have\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"want\",\"type\":\"address\"}],\"name\":\"OnlyCoordinatorCanFulfill\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint96\",\"name\":\"amount\",\"type\":\"uint96\"}],\"name\":\"createSubscriptionAndFund\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"randomWords\",\"type\":\"uint256[]\"}],\"name\":\"rawFulfillRandomWords\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"keyHash\",\"type\":\"bytes32\"}],\"name\":\"requestRandomness\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_gasAvailable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"s_randomWords\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_requestId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_subId\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"consumers\",\"type\":\"address[]\"}],\"name\":\"updateSubscription\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60a060405234801561001057600080fd5b50604051610d7c380380610d7c83398101604081905261002f9161008e565b6001600160601b0319606083901b16608052600280546001600160a01b03199081166001600160a01b0394851617909155600380549290931691161790556100c1565b80516001600160a01b038116811461008957600080fd5b919050565b600080604083850312156100a157600080fd5b6100aa83610072565b91506100b860208401610072565b90509250929050565b60805160601c610c966100e66000396000818161017001526101d80152610c966000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063cf62c8ab1161005b578063cf62c8ab14610120578063e89e106a14610133578063f08c5daa1461013c578063f6eaffc81461014557600080fd5b80631fe543e31461008d57806336bfffed146100a25780635e3b709f146100b5578063706da1ca146100db575b600080fd5b6100a061009b3660046109b6565b610158565b005b6100a06100b036600461089c565b610218565b6100c86100c3366004610984565b6103a0565b6040519081526020015b60405180910390f35b6003546101079074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016100d2565b6100a061012e366004610a84565b610492565b6100c860015481565b6100c860045481565b6100c8610153366004610984565b610711565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461020a576040517f1cf993f400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001660248201526044015b60405180910390fd5b6102148282610732565b5050565b60035474010000000000000000000000000000000000000000900467ffffffffffffffff166102a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f7375624944206e6f7420736574000000000000000000000000000000000000006044820152606401610201565b60005b815181101561021457600254600354835173ffffffffffffffffffffffffffffffffffffffff90921691637341c10c9174010000000000000000000000000000000000000000900467ffffffffffffffff169085908590811061030b5761030b610c2b565b60200260200101516040518363ffffffff1660e01b815260040161035b92919067ffffffffffffffff92909216825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b600060405180830381600087803b15801561037557600080fd5b505af1158015610389573d6000803e3d6000fd5b50505050808061039890610bcb565b9150506102a6565b60058190556002546003546040517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481018490527401000000000000000000000000000000000000000090910467ffffffffffffffff1660248201526001604482018190526207a1206064830152608482015260009173ffffffffffffffffffffffffffffffffffffffff1690635d3b1d309060a401602060405180830381600087803b15801561045457600080fd5b505af1158015610468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048c919061099d565b92915050565b60035474010000000000000000000000000000000000000000900467ffffffffffffffff1661063d57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a21a23e46040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561052557600080fd5b505af1158015610539573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055d9190610a5a565b600380547fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000067ffffffffffffffff938416810291909117918290556002546040517f7341c10c00000000000000000000000000000000000000000000000000000000815291909204909216600483015230602483015273ffffffffffffffffffffffffffffffffffffffff1690637341c10c90604401600060405180830381600087803b15801561062457600080fd5b505af1158015610638573d6000803e3d6000fd5b505050505b6003546002546040805174010000000000000000000000000000000000000000840467ffffffffffffffff16602082015273ffffffffffffffffffffffffffffffffffffffff93841693634000aea09316918591016040516020818303038152906040526040518463ffffffff1660e01b81526004016106bf93929190610ab2565b602060405180830381600087803b1580156106d957600080fd5b505af11580156106ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610214919061095b565b6000818154811061072157600080fd5b600091825260209091200154905081565b5a600455805161074990600090602084019061083c565b5060018281556002546005546003546040517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019290925274010000000000000000000000000000000000000000900467ffffffffffffffff1660248201526044810183905262030d406064820152608481019290925273ffffffffffffffffffffffffffffffffffffffff1690635d3b1d309060a401602060405180830381600087803b1580156107ff57600080fd5b505af1158015610813573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610837919061099d565b505050565b828054828255906000526020600020908101928215610877579160200282015b8281111561087757825182559160200191906001019061085c565b50610883929150610887565b5090565b5b808211156108835760008155600101610888565b600060208083850312156108af57600080fd5b823567ffffffffffffffff8111156108c657600080fd5b8301601f810185136108d757600080fd5b80356108ea6108e582610ba7565b610b58565b80828252848201915084840188868560051b870101111561090a57600080fd5b60009450845b8481101561094d57813573ffffffffffffffffffffffffffffffffffffffff8116811461093b578687fd5b84529286019290860190600101610910565b509098975050505050505050565b60006020828403121561096d57600080fd5b8151801515811461097d57600080fd5b9392505050565b60006020828403121561099657600080fd5b5035919050565b6000602082840312156109af57600080fd5b5051919050565b600080604083850312156109c957600080fd5b8235915060208084013567ffffffffffffffff8111156109e857600080fd5b8401601f810186136109f957600080fd5b8035610a076108e582610ba7565b80828252848201915084840189868560051b8701011115610a2757600080fd5b600094505b83851015610a4a578035835260019490940193918501918501610a2c565b5080955050505050509250929050565b600060208284031215610a6c57600080fd5b815167ffffffffffffffff8116811461097d57600080fd5b600060208284031215610a9657600080fd5b81356bffffffffffffffffffffffff8116811461097d57600080fd5b73ffffffffffffffffffffffffffffffffffffffff84168152600060206bffffffffffffffffffffffff85168184015260606040840152835180606085015260005b81811015610b1057858101830151858201608001528201610af4565b81811115610b22576000608083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160800195945050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610b9f57610b9f610c5a565b604052919050565b600067ffffffffffffffff821115610bc157610bc1610c5a565b5060051b60200190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610c24577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea164736f6c6343000806000a",
}

Functions

This section is empty.

Types

type VRFMaliciousConsumerV2

type VRFMaliciousConsumerV2 struct {
	VRFMaliciousConsumerV2Caller
	VRFMaliciousConsumerV2Transactor
	VRFMaliciousConsumerV2Filterer
	// contains filtered or unexported fields
}

func DeployVRFMaliciousConsumerV2

func DeployVRFMaliciousConsumerV2(auth *bind.TransactOpts, backend bind.ContractBackend, vrfCoordinator common.Address, link common.Address) (common.Address, *types.Transaction, *VRFMaliciousConsumerV2, error)

func NewVRFMaliciousConsumerV2

func NewVRFMaliciousConsumerV2(address common.Address, backend bind.ContractBackend) (*VRFMaliciousConsumerV2, error)

func (*VRFMaliciousConsumerV2) Address

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2) Address() common.Address

type VRFMaliciousConsumerV2Caller

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

func NewVRFMaliciousConsumerV2Caller

func NewVRFMaliciousConsumerV2Caller(address common.Address, caller bind.ContractCaller) (*VRFMaliciousConsumerV2Caller, error)

func (*VRFMaliciousConsumerV2Caller) SGasAvailable

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

func (*VRFMaliciousConsumerV2Caller) SRandomWords

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

func (*VRFMaliciousConsumerV2Caller) SRequestId

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Caller) SRequestId(opts *bind.CallOpts) (*big.Int, error)

func (*VRFMaliciousConsumerV2Caller) SSubId

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Caller) SSubId(opts *bind.CallOpts) (uint64, error)

type VRFMaliciousConsumerV2CallerRaw

type VRFMaliciousConsumerV2CallerRaw struct {
	Contract *VRFMaliciousConsumerV2Caller
}

func (*VRFMaliciousConsumerV2CallerRaw) Call

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

type VRFMaliciousConsumerV2CallerSession

type VRFMaliciousConsumerV2CallerSession struct {
	Contract *VRFMaliciousConsumerV2Caller
	CallOpts bind.CallOpts
}

func (*VRFMaliciousConsumerV2CallerSession) SGasAvailable

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2CallerSession) SGasAvailable() (*big.Int, error)

func (*VRFMaliciousConsumerV2CallerSession) SRandomWords

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2CallerSession) SRandomWords(arg0 *big.Int) (*big.Int, error)

func (*VRFMaliciousConsumerV2CallerSession) SRequestId

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2CallerSession) SRequestId() (*big.Int, error)

func (*VRFMaliciousConsumerV2CallerSession) SSubId

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2CallerSession) SSubId() (uint64, error)

type VRFMaliciousConsumerV2Filterer

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

func NewVRFMaliciousConsumerV2Filterer

func NewVRFMaliciousConsumerV2Filterer(address common.Address, filterer bind.ContractFilterer) (*VRFMaliciousConsumerV2Filterer, error)

type VRFMaliciousConsumerV2Interface

type VRFMaliciousConsumerV2Interface interface {
	SGasAvailable(opts *bind.CallOpts) (*big.Int, error)

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

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

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

	CreateSubscriptionAndFund(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

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

	RequestRandomness(opts *bind.TransactOpts, keyHash [32]byte) (*types.Transaction, error)

	UpdateSubscription(opts *bind.TransactOpts, consumers []common.Address) (*types.Transaction, error)

	Address() common.Address
}

type VRFMaliciousConsumerV2Raw

type VRFMaliciousConsumerV2Raw struct {
	Contract *VRFMaliciousConsumerV2
}

func (*VRFMaliciousConsumerV2Raw) Call

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

func (*VRFMaliciousConsumerV2Raw) Transact

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

func (*VRFMaliciousConsumerV2Raw) Transfer

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type VRFMaliciousConsumerV2Session

type VRFMaliciousConsumerV2Session struct {
	Contract     *VRFMaliciousConsumerV2
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*VRFMaliciousConsumerV2Session) CreateSubscriptionAndFund

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Session) CreateSubscriptionAndFund(amount *big.Int) (*types.Transaction, error)

func (*VRFMaliciousConsumerV2Session) RawFulfillRandomWords

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Session) RawFulfillRandomWords(requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

func (*VRFMaliciousConsumerV2Session) RequestRandomness

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Session) RequestRandomness(keyHash [32]byte) (*types.Transaction, error)

func (*VRFMaliciousConsumerV2Session) SGasAvailable

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Session) SGasAvailable() (*big.Int, error)

func (*VRFMaliciousConsumerV2Session) SRandomWords

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Session) SRandomWords(arg0 *big.Int) (*big.Int, error)

func (*VRFMaliciousConsumerV2Session) SRequestId

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Session) SRequestId() (*big.Int, error)

func (*VRFMaliciousConsumerV2Session) SSubId

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Session) SSubId() (uint64, error)

func (*VRFMaliciousConsumerV2Session) UpdateSubscription

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Session) UpdateSubscription(consumers []common.Address) (*types.Transaction, error)

type VRFMaliciousConsumerV2Transactor

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

func NewVRFMaliciousConsumerV2Transactor

func NewVRFMaliciousConsumerV2Transactor(address common.Address, transactor bind.ContractTransactor) (*VRFMaliciousConsumerV2Transactor, error)

func (*VRFMaliciousConsumerV2Transactor) CreateSubscriptionAndFund

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Transactor) CreateSubscriptionAndFund(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

func (*VRFMaliciousConsumerV2Transactor) RawFulfillRandomWords

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Transactor) RawFulfillRandomWords(opts *bind.TransactOpts, requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

func (*VRFMaliciousConsumerV2Transactor) RequestRandomness

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Transactor) RequestRandomness(opts *bind.TransactOpts, keyHash [32]byte) (*types.Transaction, error)

func (*VRFMaliciousConsumerV2Transactor) UpdateSubscription

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2Transactor) UpdateSubscription(opts *bind.TransactOpts, consumers []common.Address) (*types.Transaction, error)

type VRFMaliciousConsumerV2TransactorRaw

type VRFMaliciousConsumerV2TransactorRaw struct {
	Contract *VRFMaliciousConsumerV2Transactor
}

func (*VRFMaliciousConsumerV2TransactorRaw) Transact

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

func (*VRFMaliciousConsumerV2TransactorRaw) Transfer

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type VRFMaliciousConsumerV2TransactorSession

type VRFMaliciousConsumerV2TransactorSession struct {
	Contract     *VRFMaliciousConsumerV2Transactor
	TransactOpts bind.TransactOpts
}

func (*VRFMaliciousConsumerV2TransactorSession) CreateSubscriptionAndFund

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2TransactorSession) CreateSubscriptionAndFund(amount *big.Int) (*types.Transaction, error)

func (*VRFMaliciousConsumerV2TransactorSession) RawFulfillRandomWords

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2TransactorSession) RawFulfillRandomWords(requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

func (*VRFMaliciousConsumerV2TransactorSession) RequestRandomness

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2TransactorSession) RequestRandomness(keyHash [32]byte) (*types.Transaction, error)

func (*VRFMaliciousConsumerV2TransactorSession) UpdateSubscription

func (_VRFMaliciousConsumerV2 *VRFMaliciousConsumerV2TransactorSession) UpdateSubscription(consumers []common.Address) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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