mocks

package
v2.9.1-beta0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatorV3Interface

type AggregatorV3Interface struct {
	mock.Mock
}

AggregatorV3Interface is an autogenerated mock type for the AggregatorV3InterfaceInterface type

func NewAggregatorV3Interface

func NewAggregatorV3Interface(t interface {
	mock.TestingT
	Cleanup(func())
}) *AggregatorV3Interface

NewAggregatorV3Interface creates a new instance of AggregatorV3Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AggregatorV3Interface) Address

func (_m *AggregatorV3Interface) Address() common.Address

Address provides a mock function with given fields:

func (*AggregatorV3Interface) Decimals

func (_m *AggregatorV3Interface) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals provides a mock function with given fields: opts

func (*AggregatorV3Interface) Description

func (_m *AggregatorV3Interface) Description(opts *bind.CallOpts) (string, error)

Description provides a mock function with given fields: opts

func (*AggregatorV3Interface) GetRoundData

func (_m *AggregatorV3Interface) GetRoundData(opts *bind.CallOpts, _roundId *big.Int) (aggregator_v3_interface.GetRoundData, error)

GetRoundData provides a mock function with given fields: opts, _roundId

func (*AggregatorV3Interface) LatestRoundData

LatestRoundData provides a mock function with given fields: opts

func (*AggregatorV3Interface) Version

func (_m *AggregatorV3Interface) Version(opts *bind.CallOpts) (*big.Int, error)

Version provides a mock function with given fields: opts

type Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func NewConfig

func NewConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *Config

NewConfig creates a new instance of Config. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Config) FinalityDepth added in v2.3.0

func (_m *Config) FinalityDepth() uint32

FinalityDepth provides a mock function with given fields:

func (*Config) MinIncomingConfirmations

func (_m *Config) MinIncomingConfirmations() uint32

MinIncomingConfirmations provides a mock function with given fields:

type FeeConfig added in v2.4.0

type FeeConfig struct {
	mock.Mock
}

FeeConfig is an autogenerated mock type for the FeeConfig type

func NewFeeConfig added in v2.4.0

func NewFeeConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *FeeConfig

NewFeeConfig creates a new instance of FeeConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FeeConfig) LimitDefault added in v2.4.0

func (_m *FeeConfig) LimitDefault() uint32

LimitDefault provides a mock function with given fields:

func (*FeeConfig) LimitJobType added in v2.4.0

func (_m *FeeConfig) LimitJobType() config.LimitJobType

LimitJobType provides a mock function with given fields:

func (*FeeConfig) PriceMaxKey added in v2.4.0

func (_m *FeeConfig) PriceMaxKey(addr common.Address) *assets.Wei

PriceMaxKey provides a mock function with given fields: addr

type VRFCoordinatorV2Interface

type VRFCoordinatorV2Interface struct {
	mock.Mock
}

VRFCoordinatorV2Interface is an autogenerated mock type for the VRFCoordinatorV2Interface type

func NewVRFCoordinatorV2Interface

func NewVRFCoordinatorV2Interface(t interface {
	mock.TestingT
	Cleanup(func())
}) *VRFCoordinatorV2Interface

NewVRFCoordinatorV2Interface creates a new instance of VRFCoordinatorV2Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VRFCoordinatorV2Interface) AcceptOwnership

func (_m *VRFCoordinatorV2Interface) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) AcceptSubscriptionOwnerTransfer

func (_m *VRFCoordinatorV2Interface) AcceptSubscriptionOwnerTransfer(opts *bind.TransactOpts, subId uint64) (*types.Transaction, error)

AcceptSubscriptionOwnerTransfer provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) AddConsumer

func (_m *VRFCoordinatorV2Interface) AddConsumer(opts *bind.TransactOpts, subId uint64, consumer common.Address) (*types.Transaction, error)

AddConsumer provides a mock function with given fields: opts, subId, consumer

func (*VRFCoordinatorV2Interface) Address

Address provides a mock function with given fields:

func (*VRFCoordinatorV2Interface) BLOCKHASHSTORE

func (_m *VRFCoordinatorV2Interface) BLOCKHASHSTORE(opts *bind.CallOpts) (common.Address, error)

BLOCKHASHSTORE provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) CancelSubscription

func (_m *VRFCoordinatorV2Interface) CancelSubscription(opts *bind.TransactOpts, subId uint64, to common.Address) (*types.Transaction, error)

CancelSubscription provides a mock function with given fields: opts, subId, to

func (*VRFCoordinatorV2Interface) CreateSubscription

func (_m *VRFCoordinatorV2Interface) CreateSubscription(opts *bind.TransactOpts) (*types.Transaction, error)

CreateSubscription provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) DeregisterProvingKey

func (_m *VRFCoordinatorV2Interface) DeregisterProvingKey(opts *bind.TransactOpts, publicProvingKey [2]*big.Int) (*types.Transaction, error)

DeregisterProvingKey provides a mock function with given fields: opts, publicProvingKey

func (*VRFCoordinatorV2Interface) FilterConfigSet

FilterConfigSet provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) FilterFundsRecovered

FilterFundsRecovered provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) FilterOwnershipTransferRequested

FilterOwnershipTransferRequested provides a mock function with given fields: opts, from, to

func (*VRFCoordinatorV2Interface) FilterOwnershipTransferred

FilterOwnershipTransferred provides a mock function with given fields: opts, from, to

func (*VRFCoordinatorV2Interface) FilterProvingKeyDeregistered

FilterProvingKeyDeregistered provides a mock function with given fields: opts, oracle

func (*VRFCoordinatorV2Interface) FilterProvingKeyRegistered

FilterProvingKeyRegistered provides a mock function with given fields: opts, oracle

func (*VRFCoordinatorV2Interface) FilterRandomWordsFulfilled

FilterRandomWordsFulfilled provides a mock function with given fields: opts, requestId

func (*VRFCoordinatorV2Interface) FilterRandomWordsRequested

func (_m *VRFCoordinatorV2Interface) FilterRandomWordsRequested(opts *bind.FilterOpts, keyHash [][32]byte, subId []uint64, sender []common.Address) (*vrf_coordinator_v2.VRFCoordinatorV2RandomWordsRequestedIterator, error)

FilterRandomWordsRequested provides a mock function with given fields: opts, keyHash, subId, sender

func (*VRFCoordinatorV2Interface) FilterSubscriptionCanceled

FilterSubscriptionCanceled provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) FilterSubscriptionConsumerAdded

FilterSubscriptionConsumerAdded provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) FilterSubscriptionConsumerRemoved

FilterSubscriptionConsumerRemoved provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) FilterSubscriptionCreated

FilterSubscriptionCreated provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) FilterSubscriptionFunded

FilterSubscriptionFunded provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) FilterSubscriptionOwnerTransferRequested

FilterSubscriptionOwnerTransferRequested provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) FilterSubscriptionOwnerTransferred

FilterSubscriptionOwnerTransferred provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) FulfillRandomWords

FulfillRandomWords provides a mock function with given fields: opts, proof, rc

func (*VRFCoordinatorV2Interface) GetCommitment

func (_m *VRFCoordinatorV2Interface) GetCommitment(opts *bind.CallOpts, requestId *big.Int) ([32]byte, error)

GetCommitment provides a mock function with given fields: opts, requestId

func (*VRFCoordinatorV2Interface) GetConfig

GetConfig provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) GetCurrentSubId

func (_m *VRFCoordinatorV2Interface) GetCurrentSubId(opts *bind.CallOpts) (uint64, error)

GetCurrentSubId provides a mock function with given fields: opts

func (_m *VRFCoordinatorV2Interface) GetFallbackWeiPerUnitLink(opts *bind.CallOpts) (*big.Int, error)

GetFallbackWeiPerUnitLink provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) GetFeeConfig

GetFeeConfig provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) GetFeeTier

func (_m *VRFCoordinatorV2Interface) GetFeeTier(opts *bind.CallOpts, reqCount uint64) (uint32, error)

GetFeeTier provides a mock function with given fields: opts, reqCount

func (*VRFCoordinatorV2Interface) GetRequestConfig

func (_m *VRFCoordinatorV2Interface) GetRequestConfig(opts *bind.CallOpts) (uint16, uint32, [][32]byte, error)

GetRequestConfig provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) GetSubscription

GetSubscription provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) GetTotalBalance

func (_m *VRFCoordinatorV2Interface) GetTotalBalance(opts *bind.CallOpts) (*big.Int, error)

GetTotalBalance provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) HashOfKey

func (_m *VRFCoordinatorV2Interface) HashOfKey(opts *bind.CallOpts, publicKey [2]*big.Int) ([32]byte, error)

HashOfKey provides a mock function with given fields: opts, publicKey

LINK provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) LINKETHFEED

func (_m *VRFCoordinatorV2Interface) LINKETHFEED(opts *bind.CallOpts) (common.Address, error)

LINKETHFEED provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) MAXCONSUMERS

func (_m *VRFCoordinatorV2Interface) MAXCONSUMERS(opts *bind.CallOpts) (uint16, error)

MAXCONSUMERS provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) MAXNUMWORDS

func (_m *VRFCoordinatorV2Interface) MAXNUMWORDS(opts *bind.CallOpts) (uint32, error)

MAXNUMWORDS provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) MAXREQUESTCONFIRMATIONS

func (_m *VRFCoordinatorV2Interface) MAXREQUESTCONFIRMATIONS(opts *bind.CallOpts) (uint16, error)

MAXREQUESTCONFIRMATIONS provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) OnTokenTransfer

func (_m *VRFCoordinatorV2Interface) OnTokenTransfer(opts *bind.TransactOpts, arg0 common.Address, amount *big.Int, data []byte) (*types.Transaction, error)

OnTokenTransfer provides a mock function with given fields: opts, arg0, amount, data

func (*VRFCoordinatorV2Interface) OracleWithdraw

func (_m *VRFCoordinatorV2Interface) OracleWithdraw(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

OracleWithdraw provides a mock function with given fields: opts, recipient, amount

func (*VRFCoordinatorV2Interface) Owner

Owner provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) OwnerCancelSubscription

func (_m *VRFCoordinatorV2Interface) OwnerCancelSubscription(opts *bind.TransactOpts, subId uint64) (*types.Transaction, error)

OwnerCancelSubscription provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) ParseConfigSet

ParseConfigSet provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseFundsRecovered

ParseFundsRecovered provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseLog

ParseLog provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseOwnershipTransferRequested

ParseOwnershipTransferRequested provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseOwnershipTransferred

ParseOwnershipTransferred provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseProvingKeyDeregistered

ParseProvingKeyDeregistered provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseProvingKeyRegistered

ParseProvingKeyRegistered provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseRandomWordsFulfilled

ParseRandomWordsFulfilled provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseRandomWordsRequested

ParseRandomWordsRequested provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionCanceled

ParseSubscriptionCanceled provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionConsumerAdded

ParseSubscriptionConsumerAdded provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionConsumerRemoved

ParseSubscriptionConsumerRemoved provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionCreated

ParseSubscriptionCreated provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionFunded

ParseSubscriptionFunded provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionOwnerTransferRequested

ParseSubscriptionOwnerTransferRequested provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionOwnerTransferred

ParseSubscriptionOwnerTransferred provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) PendingRequestExists

func (_m *VRFCoordinatorV2Interface) PendingRequestExists(opts *bind.CallOpts, subId uint64) (bool, error)

PendingRequestExists provides a mock function with given fields: opts, subId

func (*VRFCoordinatorV2Interface) RecoverFunds

RecoverFunds provides a mock function with given fields: opts, to

func (*VRFCoordinatorV2Interface) RegisterProvingKey

func (_m *VRFCoordinatorV2Interface) RegisterProvingKey(opts *bind.TransactOpts, oracle common.Address, publicProvingKey [2]*big.Int) (*types.Transaction, error)

RegisterProvingKey provides a mock function with given fields: opts, oracle, publicProvingKey

func (*VRFCoordinatorV2Interface) RemoveConsumer

func (_m *VRFCoordinatorV2Interface) RemoveConsumer(opts *bind.TransactOpts, subId uint64, consumer common.Address) (*types.Transaction, error)

RemoveConsumer provides a mock function with given fields: opts, subId, consumer

func (*VRFCoordinatorV2Interface) RequestRandomWords

func (_m *VRFCoordinatorV2Interface) RequestRandomWords(opts *bind.TransactOpts, keyHash [32]byte, subId uint64, requestConfirmations uint16, callbackGasLimit uint32, numWords uint32) (*types.Transaction, error)

RequestRandomWords provides a mock function with given fields: opts, keyHash, subId, requestConfirmations, callbackGasLimit, numWords

func (*VRFCoordinatorV2Interface) RequestSubscriptionOwnerTransfer

func (_m *VRFCoordinatorV2Interface) RequestSubscriptionOwnerTransfer(opts *bind.TransactOpts, subId uint64, newOwner common.Address) (*types.Transaction, error)

RequestSubscriptionOwnerTransfer provides a mock function with given fields: opts, subId, newOwner

func (*VRFCoordinatorV2Interface) SetConfig

func (_m *VRFCoordinatorV2Interface) SetConfig(opts *bind.TransactOpts, minimumRequestConfirmations uint16, maxGasLimit uint32, stalenessSeconds uint32, gasAfterPaymentCalculation uint32, fallbackWeiPerUnitLink *big.Int, feeConfig vrf_coordinator_v2.VRFCoordinatorV2FeeConfig) (*types.Transaction, error)

SetConfig provides a mock function with given fields: opts, minimumRequestConfirmations, maxGasLimit, stalenessSeconds, gasAfterPaymentCalculation, fallbackWeiPerUnitLink, feeConfig

func (*VRFCoordinatorV2Interface) TransferOwnership

func (_m *VRFCoordinatorV2Interface) TransferOwnership(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

TransferOwnership provides a mock function with given fields: opts, to

func (*VRFCoordinatorV2Interface) TypeAndVersion

func (_m *VRFCoordinatorV2Interface) TypeAndVersion(opts *bind.CallOpts) (string, error)

TypeAndVersion provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) WatchConfigSet

WatchConfigSet provides a mock function with given fields: opts, sink

func (*VRFCoordinatorV2Interface) WatchFundsRecovered

WatchFundsRecovered provides a mock function with given fields: opts, sink

func (*VRFCoordinatorV2Interface) WatchOwnershipTransferRequested

WatchOwnershipTransferRequested provides a mock function with given fields: opts, sink, from, to

func (*VRFCoordinatorV2Interface) WatchOwnershipTransferred

WatchOwnershipTransferred provides a mock function with given fields: opts, sink, from, to

func (*VRFCoordinatorV2Interface) WatchProvingKeyDeregistered

WatchProvingKeyDeregistered provides a mock function with given fields: opts, sink, oracle

func (*VRFCoordinatorV2Interface) WatchProvingKeyRegistered

WatchProvingKeyRegistered provides a mock function with given fields: opts, sink, oracle

func (*VRFCoordinatorV2Interface) WatchRandomWordsFulfilled

func (_m *VRFCoordinatorV2Interface) WatchRandomWordsFulfilled(opts *bind.WatchOpts, sink chan<- *vrf_coordinator_v2.VRFCoordinatorV2RandomWordsFulfilled, requestId []*big.Int) (event.Subscription, error)

WatchRandomWordsFulfilled provides a mock function with given fields: opts, sink, requestId

func (*VRFCoordinatorV2Interface) WatchRandomWordsRequested

func (_m *VRFCoordinatorV2Interface) WatchRandomWordsRequested(opts *bind.WatchOpts, sink chan<- *vrf_coordinator_v2.VRFCoordinatorV2RandomWordsRequested, keyHash [][32]byte, subId []uint64, sender []common.Address) (event.Subscription, error)

WatchRandomWordsRequested provides a mock function with given fields: opts, sink, keyHash, subId, sender

func (*VRFCoordinatorV2Interface) WatchSubscriptionCanceled

func (_m *VRFCoordinatorV2Interface) WatchSubscriptionCanceled(opts *bind.WatchOpts, sink chan<- *vrf_coordinator_v2.VRFCoordinatorV2SubscriptionCanceled, subId []uint64) (event.Subscription, error)

WatchSubscriptionCanceled provides a mock function with given fields: opts, sink, subId

func (*VRFCoordinatorV2Interface) WatchSubscriptionConsumerAdded

func (_m *VRFCoordinatorV2Interface) WatchSubscriptionConsumerAdded(opts *bind.WatchOpts, sink chan<- *vrf_coordinator_v2.VRFCoordinatorV2SubscriptionConsumerAdded, subId []uint64) (event.Subscription, error)

WatchSubscriptionConsumerAdded provides a mock function with given fields: opts, sink, subId

func (*VRFCoordinatorV2Interface) WatchSubscriptionConsumerRemoved

func (_m *VRFCoordinatorV2Interface) WatchSubscriptionConsumerRemoved(opts *bind.WatchOpts, sink chan<- *vrf_coordinator_v2.VRFCoordinatorV2SubscriptionConsumerRemoved, subId []uint64) (event.Subscription, error)

WatchSubscriptionConsumerRemoved provides a mock function with given fields: opts, sink, subId

func (*VRFCoordinatorV2Interface) WatchSubscriptionCreated

WatchSubscriptionCreated provides a mock function with given fields: opts, sink, subId

func (*VRFCoordinatorV2Interface) WatchSubscriptionFunded

WatchSubscriptionFunded provides a mock function with given fields: opts, sink, subId

func (*VRFCoordinatorV2Interface) WatchSubscriptionOwnerTransferRequested

func (_m *VRFCoordinatorV2Interface) WatchSubscriptionOwnerTransferRequested(opts *bind.WatchOpts, sink chan<- *vrf_coordinator_v2.VRFCoordinatorV2SubscriptionOwnerTransferRequested, subId []uint64) (event.Subscription, error)

WatchSubscriptionOwnerTransferRequested provides a mock function with given fields: opts, sink, subId

func (*VRFCoordinatorV2Interface) WatchSubscriptionOwnerTransferred

func (_m *VRFCoordinatorV2Interface) WatchSubscriptionOwnerTransferred(opts *bind.WatchOpts, sink chan<- *vrf_coordinator_v2.VRFCoordinatorV2SubscriptionOwnerTransferred, subId []uint64) (event.Subscription, error)

WatchSubscriptionOwnerTransferred provides a mock function with given fields: opts, sink, subId

Jump to

Keyboard shortcuts

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