mocks

package
v1.5.1-debug-polygon-t... Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatorV3Interface added in v1.4.0

type AggregatorV3Interface struct {
	mock.Mock
}

AggregatorV3Interface is an autogenerated mock type for the AggregatorV3InterfaceInterface type

func NewAggregatorV3Interface added in v1.5.0

func NewAggregatorV3Interface(t testing.TB) *AggregatorV3Interface

NewAggregatorV3Interface creates a new instance of AggregatorV3Interface. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*AggregatorV3Interface) Address added in v1.4.0

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

Address provides a mock function with given fields:

func (*AggregatorV3Interface) Decimals added in v1.4.0

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

Decimals provides a mock function with given fields: opts

func (*AggregatorV3Interface) Description added in v1.4.0

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

Description provides a mock function with given fields: opts

func (*AggregatorV3Interface) GetRoundData added in v1.4.0

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 added in v1.4.0

LatestRoundData provides a mock function with given fields: opts

func (*AggregatorV3Interface) Version added in v1.4.0

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

Version provides a mock function with given fields: opts

type Config added in v1.4.0

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func (*Config) EvmFinalityDepth added in v1.5.0

func (_m *Config) EvmFinalityDepth() uint32

func (*Config) EvmGasLimitDefault added in v1.4.0

func (_m *Config) EvmGasLimitDefault() uint64

EvmGasLimitDefault provides a mock function with given fields:

func (*Config) KeySpecificMaxGasPriceWei added in v1.4.0

func (_m *Config) KeySpecificMaxGasPriceWei(addr common.Address) *big.Int

KeySpecificMaxGasPriceWei provides a mock function with given fields: addr

func (*Config) MinIncomingConfirmations added in v1.4.0

func (_m *Config) MinIncomingConfirmations() uint32

MinIncomingConfirmations provides a mock function with given fields:

type GethKeyStore

type GethKeyStore struct {
	mock.Mock
}

GethKeyStore is an autogenerated mock type for the GethKeyStore type

func (*GethKeyStore) GetRoundRobinAddress

func (_m *GethKeyStore) GetRoundRobinAddress(chainID *big.Int, addresses ...common.Address) (common.Address, error)

GetRoundRobinAddress provides a mock function with given fields: chainID, addresses

type VRFCoordinatorV2Interface added in v1.5.0

type VRFCoordinatorV2Interface struct {
	mock.Mock
}

VRFCoordinatorV2Interface is an autogenerated mock type for the VRFCoordinatorV2Interface type

func NewVRFCoordinatorV2Interface added in v1.5.0

func NewVRFCoordinatorV2Interface(t testing.TB) *VRFCoordinatorV2Interface

NewVRFCoordinatorV2Interface creates a new instance of VRFCoordinatorV2Interface. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*VRFCoordinatorV2Interface) AcceptOwnership added in v1.5.0

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

AcceptOwnership provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) AcceptSubscriptionOwnerTransfer added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

Address provides a mock function with given fields:

func (*VRFCoordinatorV2Interface) BLOCKHASHSTORE added in v1.5.0

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

BLOCKHASHSTORE provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) CancelSubscription added in v1.5.0

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 added in v1.5.0

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

CreateSubscription provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) DeregisterProvingKey added in v1.5.0

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 added in v1.5.0

FilterConfigSet provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) FilterFundsRecovered added in v1.5.0

FilterFundsRecovered provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) FilterOwnershipTransferRequested added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterOwnershipTransferred added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterProvingKeyDeregistered added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterProvingKeyRegistered added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterRandomWordsFulfilled added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterRandomWordsRequested added in v1.5.0

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 added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterSubscriptionConsumerAdded added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterSubscriptionConsumerRemoved added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterSubscriptionCreated added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterSubscriptionFunded added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterSubscriptionOwnerTransferRequested added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FilterSubscriptionOwnerTransferred added in v1.5.0

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

func (*VRFCoordinatorV2Interface) FulfillRandomWords added in v1.5.0

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

func (*VRFCoordinatorV2Interface) GetCommitment added in v1.5.0

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 added in v1.5.0

GetConfig provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) GetCurrentSubId added in v1.5.0

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 added in v1.5.0

GetFeeConfig provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) GetFeeTier added in v1.5.0

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

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

func (*VRFCoordinatorV2Interface) GetRequestConfig added in v1.5.0

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

GetRequestConfig provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) GetSubscription added in v1.5.0

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

func (*VRFCoordinatorV2Interface) GetTotalBalance added in v1.5.0

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

GetTotalBalance provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) HashOfKey added in v1.5.0

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 added in v1.5.0

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

LINKETHFEED provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) MAXCONSUMERS added in v1.5.0

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

MAXCONSUMERS provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) MAXNUMWORDS added in v1.5.0

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

MAXNUMWORDS provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) MAXREQUESTCONFIRMATIONS added in v1.5.0

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

MAXREQUESTCONFIRMATIONS provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) OnTokenTransfer added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

Owner provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) OwnerCancelSubscription added in v1.5.0

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 added in v1.5.0

ParseConfigSet provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseFundsRecovered added in v1.5.0

ParseFundsRecovered provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseLog added in v1.5.0

ParseLog provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseOwnershipTransferRequested added in v1.5.0

ParseOwnershipTransferRequested provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseOwnershipTransferred added in v1.5.0

ParseOwnershipTransferred provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseProvingKeyDeregistered added in v1.5.0

ParseProvingKeyDeregistered provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseProvingKeyRegistered added in v1.5.0

ParseProvingKeyRegistered provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseRandomWordsFulfilled added in v1.5.0

ParseRandomWordsFulfilled provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseRandomWordsRequested added in v1.5.0

ParseRandomWordsRequested provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionCanceled added in v1.5.0

ParseSubscriptionCanceled provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionConsumerAdded added in v1.5.0

ParseSubscriptionConsumerAdded provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionConsumerRemoved added in v1.5.0

ParseSubscriptionConsumerRemoved provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionCreated added in v1.5.0

ParseSubscriptionCreated provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionFunded added in v1.5.0

ParseSubscriptionFunded provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionOwnerTransferRequested added in v1.5.0

ParseSubscriptionOwnerTransferRequested provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) ParseSubscriptionOwnerTransferred added in v1.5.0

ParseSubscriptionOwnerTransferred provides a mock function with given fields: log

func (*VRFCoordinatorV2Interface) PendingRequestExists added in v1.5.0

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

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

func (*VRFCoordinatorV2Interface) RecoverFunds added in v1.5.0

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

func (*VRFCoordinatorV2Interface) RegisterProvingKey added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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

TypeAndVersion provides a mock function with given fields: opts

func (*VRFCoordinatorV2Interface) WatchConfigSet added in v1.5.0

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

func (*VRFCoordinatorV2Interface) WatchFundsRecovered added in v1.5.0

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

func (*VRFCoordinatorV2Interface) WatchOwnershipTransferRequested added in v1.5.0

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

func (*VRFCoordinatorV2Interface) WatchOwnershipTransferred added in v1.5.0

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

func (*VRFCoordinatorV2Interface) WatchProvingKeyDeregistered added in v1.5.0

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

func (*VRFCoordinatorV2Interface) WatchProvingKeyRegistered added in v1.5.0

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

func (*VRFCoordinatorV2Interface) WatchRandomWordsFulfilled added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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

func (*VRFCoordinatorV2Interface) WatchSubscriptionFunded added in v1.5.0

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

func (*VRFCoordinatorV2Interface) WatchSubscriptionOwnerTransferRequested added in v1.5.0

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 added in v1.5.0

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