mocks

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOrigin

type IOrigin struct {
	mock.Mock
}

IOrigin is an autogenerated mock type for the IOrigin type

func NewIOrigin added in v0.0.7

func NewIOrigin(t mockConstructorTestingTNewIOrigin) *IOrigin

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

func (*IOrigin) Address

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

Address provides a mock function with given fields:

func (*IOrigin) AllGuards

func (_m *IOrigin) AllGuards(opts *bind.CallOpts) ([]common.Address, error)

AllGuards provides a mock function with given fields: opts

func (*IOrigin) AllNotaries

func (_m *IOrigin) AllNotaries(opts *bind.CallOpts) ([]common.Address, error)

AllNotaries provides a mock function with given fields: opts

func (*IOrigin) Count

func (_m *IOrigin) Count(opts *bind.CallOpts) (*big.Int, error)

Count provides a mock function with given fields: opts

func (*IOrigin) Dispatch

func (_m *IOrigin) Dispatch(opts *bind.TransactOpts, _destination uint32, _recipientAddress [32]byte, _optimisticSeconds uint32, _tips []byte, _messageBody []byte) (*types.Transaction, error)

Dispatch provides a mock function with given fields: opts, _destination, _recipientAddress, _optimisticSeconds, _tips, _messageBody

func (*IOrigin) FilterCorrectFraudReport added in v0.0.5

func (_m *IOrigin) FilterCorrectFraudReport(opts *bind.FilterOpts, guard []common.Address) (*origin.OriginCorrectFraudReportIterator, error)

FilterCorrectFraudReport provides a mock function with given fields: opts, guard

func (*IOrigin) FilterDispatch

func (_m *IOrigin) FilterDispatch(opts *bind.FilterOpts, messageHash [][32]byte, leafIndex []*big.Int, destinationAndNonce []uint64) (*origin.OriginDispatchIterator, error)

FilterDispatch provides a mock function with given fields: opts, messageHash, leafIndex, destinationAndNonce

func (*IOrigin) FilterDomainNotaryAdded

func (_m *IOrigin) FilterDomainNotaryAdded(opts *bind.FilterOpts) (*origin.OriginDomainNotaryAddedIterator, error)

FilterDomainNotaryAdded provides a mock function with given fields: opts

func (*IOrigin) FilterDomainNotaryRemoved

func (_m *IOrigin) FilterDomainNotaryRemoved(opts *bind.FilterOpts) (*origin.OriginDomainNotaryRemovedIterator, error)

FilterDomainNotaryRemoved provides a mock function with given fields: opts

func (*IOrigin) FilterFraudAttestation added in v0.0.5

func (_m *IOrigin) FilterFraudAttestation(opts *bind.FilterOpts, notary []common.Address) (*origin.OriginFraudAttestationIterator, error)

FilterFraudAttestation provides a mock function with given fields: opts, notary

func (*IOrigin) FilterGuardAdded

func (_m *IOrigin) FilterGuardAdded(opts *bind.FilterOpts) (*origin.OriginGuardAddedIterator, error)

FilterGuardAdded provides a mock function with given fields: opts

func (*IOrigin) FilterGuardRemoved

func (_m *IOrigin) FilterGuardRemoved(opts *bind.FilterOpts) (*origin.OriginGuardRemovedIterator, error)

FilterGuardRemoved provides a mock function with given fields: opts

func (*IOrigin) FilterGuardSlashed added in v0.0.5

func (_m *IOrigin) FilterGuardSlashed(opts *bind.FilterOpts, guard []common.Address, reporter []common.Address) (*origin.OriginGuardSlashedIterator, error)

FilterGuardSlashed provides a mock function with given fields: opts, guard, reporter

func (*IOrigin) FilterIncorrectReport added in v0.0.5

func (_m *IOrigin) FilterIncorrectReport(opts *bind.FilterOpts, guard []common.Address) (*origin.OriginIncorrectReportIterator, error)

FilterIncorrectReport provides a mock function with given fields: opts, guard

func (*IOrigin) FilterInitialized

func (_m *IOrigin) FilterInitialized(opts *bind.FilterOpts) (*origin.OriginInitializedIterator, error)

FilterInitialized provides a mock function with given fields: opts

func (*IOrigin) FilterNewNotaryManager

func (_m *IOrigin) FilterNewNotaryManager(opts *bind.FilterOpts) (*origin.OriginNewNotaryManagerIterator, error)

FilterNewNotaryManager provides a mock function with given fields: opts

func (*IOrigin) FilterNotarySlashed

func (_m *IOrigin) FilterNotarySlashed(opts *bind.FilterOpts, notary []common.Address, guard []common.Address, reporter []common.Address) (*origin.OriginNotarySlashedIterator, error)

FilterNotarySlashed provides a mock function with given fields: opts, notary, guard, reporter

func (*IOrigin) FilterOwnershipTransferred

func (_m *IOrigin) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*origin.OriginOwnershipTransferredIterator, error)

FilterOwnershipTransferred provides a mock function with given fields: opts, previousOwner, newOwner

func (*IOrigin) GetGuard

func (_m *IOrigin) GetGuard(opts *bind.CallOpts, _index *big.Int) (common.Address, error)

GetGuard provides a mock function with given fields: opts, _index

func (*IOrigin) GetNotary

func (_m *IOrigin) GetNotary(opts *bind.CallOpts, _index *big.Int) (common.Address, error)

GetNotary provides a mock function with given fields: opts, _index

func (*IOrigin) GuardsAmount

func (_m *IOrigin) GuardsAmount(opts *bind.CallOpts) (*big.Int, error)

GuardsAmount provides a mock function with given fields: opts

func (*IOrigin) HistoricalRoots

func (_m *IOrigin) HistoricalRoots(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

HistoricalRoots provides a mock function with given fields: opts, arg0

func (*IOrigin) Initialize

func (_m *IOrigin) Initialize(opts *bind.TransactOpts, _notaryManager common.Address) (*types.Transaction, error)

Initialize provides a mock function with given fields: opts, _notaryManager

func (*IOrigin) LocalDomain

func (_m *IOrigin) LocalDomain(opts *bind.CallOpts) (uint32, error)

LocalDomain provides a mock function with given fields: opts

func (*IOrigin) MAXMESSAGEBODYBYTES

func (_m *IOrigin) MAXMESSAGEBODYBYTES(opts *bind.CallOpts) (*big.Int, error)

MAXMESSAGEBODYBYTES provides a mock function with given fields: opts

func (*IOrigin) Nonce

func (_m *IOrigin) Nonce(opts *bind.CallOpts) (uint32, error)

Nonce provides a mock function with given fields: opts

func (*IOrigin) NotariesAmount

func (_m *IOrigin) NotariesAmount(opts *bind.CallOpts) (*big.Int, error)

NotariesAmount provides a mock function with given fields: opts

func (*IOrigin) NotaryManager

func (_m *IOrigin) NotaryManager(opts *bind.CallOpts) (common.Address, error)

NotaryManager provides a mock function with given fields: opts

func (*IOrigin) Owner

func (_m *IOrigin) Owner(opts *bind.CallOpts) (common.Address, error)

Owner provides a mock function with given fields: opts

func (*IOrigin) ParseCorrectFraudReport added in v0.0.5

func (_m *IOrigin) ParseCorrectFraudReport(log types.Log) (*origin.OriginCorrectFraudReport, error)

ParseCorrectFraudReport provides a mock function with given fields: log

func (*IOrigin) ParseDispatch

func (_m *IOrigin) ParseDispatch(log types.Log) (*origin.OriginDispatch, error)

ParseDispatch provides a mock function with given fields: log

func (*IOrigin) ParseDomainNotaryAdded

func (_m *IOrigin) ParseDomainNotaryAdded(log types.Log) (*origin.OriginDomainNotaryAdded, error)

ParseDomainNotaryAdded provides a mock function with given fields: log

func (*IOrigin) ParseDomainNotaryRemoved

func (_m *IOrigin) ParseDomainNotaryRemoved(log types.Log) (*origin.OriginDomainNotaryRemoved, error)

ParseDomainNotaryRemoved provides a mock function with given fields: log

func (*IOrigin) ParseFraudAttestation added in v0.0.5

func (_m *IOrigin) ParseFraudAttestation(log types.Log) (*origin.OriginFraudAttestation, error)

ParseFraudAttestation provides a mock function with given fields: log

func (*IOrigin) ParseGuardAdded

func (_m *IOrigin) ParseGuardAdded(log types.Log) (*origin.OriginGuardAdded, error)

ParseGuardAdded provides a mock function with given fields: log

func (*IOrigin) ParseGuardRemoved

func (_m *IOrigin) ParseGuardRemoved(log types.Log) (*origin.OriginGuardRemoved, error)

ParseGuardRemoved provides a mock function with given fields: log

func (*IOrigin) ParseGuardSlashed added in v0.0.5

func (_m *IOrigin) ParseGuardSlashed(log types.Log) (*origin.OriginGuardSlashed, error)

ParseGuardSlashed provides a mock function with given fields: log

func (*IOrigin) ParseIncorrectReport added in v0.0.5

func (_m *IOrigin) ParseIncorrectReport(log types.Log) (*origin.OriginIncorrectReport, error)

ParseIncorrectReport provides a mock function with given fields: log

func (*IOrigin) ParseInitialized

func (_m *IOrigin) ParseInitialized(log types.Log) (*origin.OriginInitialized, error)

ParseInitialized provides a mock function with given fields: log

func (*IOrigin) ParseNewNotaryManager

func (_m *IOrigin) ParseNewNotaryManager(log types.Log) (*origin.OriginNewNotaryManager, error)

ParseNewNotaryManager provides a mock function with given fields: log

func (*IOrigin) ParseNotarySlashed

func (_m *IOrigin) ParseNotarySlashed(log types.Log) (*origin.OriginNotarySlashed, error)

ParseNotarySlashed provides a mock function with given fields: log

func (*IOrigin) ParseOwnershipTransferred

func (_m *IOrigin) ParseOwnershipTransferred(log types.Log) (*origin.OriginOwnershipTransferred, error)

ParseOwnershipTransferred provides a mock function with given fields: log

func (*IOrigin) Parser

func (_m *IOrigin) Parser() origin.Parser

Parser provides a mock function with given fields:

func (*IOrigin) RenounceOwnership

func (_m *IOrigin) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership provides a mock function with given fields: opts

func (*IOrigin) Root

func (_m *IOrigin) Root(opts *bind.CallOpts) ([32]byte, error)

Root provides a mock function with given fields: opts

func (*IOrigin) SetNotary

func (_m *IOrigin) SetNotary(opts *bind.TransactOpts, _notary common.Address) (*types.Transaction, error)

SetNotary provides a mock function with given fields: opts, _notary

func (*IOrigin) SetNotaryManager

func (_m *IOrigin) SetNotaryManager(opts *bind.TransactOpts, _notaryManager common.Address) (*types.Transaction, error)

SetNotaryManager provides a mock function with given fields: opts, _notaryManager

func (*IOrigin) SetSystemRouter added in v0.0.4

func (_m *IOrigin) SetSystemRouter(opts *bind.TransactOpts, _systemRouter common.Address) (*types.Transaction, error)

SetSystemRouter provides a mock function with given fields: opts, _systemRouter

func (*IOrigin) State

func (_m *IOrigin) State(opts *bind.CallOpts) (uint8, error)

State provides a mock function with given fields: opts

func (*IOrigin) SubmitReport added in v0.0.5

func (_m *IOrigin) SubmitReport(opts *bind.TransactOpts, _report []byte) (*types.Transaction, error)

SubmitReport provides a mock function with given fields: opts, _report

func (*IOrigin) SuggestAttestation

func (_m *IOrigin) SuggestAttestation(opts *bind.CallOpts) (struct {
	Nonce uint32
	Root  [32]byte
}, error)

SuggestAttestation provides a mock function with given fields: opts

func (*IOrigin) SystemRouter added in v0.0.4

func (_m *IOrigin) SystemRouter(opts *bind.CallOpts) (common.Address, error)

SystemRouter provides a mock function with given fields: opts

func (*IOrigin) TransferOwnership

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

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

func (*IOrigin) Tree

func (_m *IOrigin) Tree(opts *bind.CallOpts) (*big.Int, error)

Tree provides a mock function with given fields: opts

func (*IOrigin) VERSION

func (_m *IOrigin) VERSION(opts *bind.CallOpts) (uint8, error)

VERSION provides a mock function with given fields: opts

func (*IOrigin) WatchCorrectFraudReport added in v0.0.5

func (_m *IOrigin) WatchCorrectFraudReport(opts *bind.WatchOpts, sink chan<- *origin.OriginCorrectFraudReport, guard []common.Address) (event.Subscription, error)

WatchCorrectFraudReport provides a mock function with given fields: opts, sink, guard

func (*IOrigin) WatchDispatch

func (_m *IOrigin) WatchDispatch(opts *bind.WatchOpts, sink chan<- *origin.OriginDispatch, messageHash [][32]byte, leafIndex []*big.Int, destinationAndNonce []uint64) (event.Subscription, error)

WatchDispatch provides a mock function with given fields: opts, sink, messageHash, leafIndex, destinationAndNonce

func (*IOrigin) WatchDomainNotaryAdded

func (_m *IOrigin) WatchDomainNotaryAdded(opts *bind.WatchOpts, sink chan<- *origin.OriginDomainNotaryAdded) (event.Subscription, error)

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

func (*IOrigin) WatchDomainNotaryRemoved

func (_m *IOrigin) WatchDomainNotaryRemoved(opts *bind.WatchOpts, sink chan<- *origin.OriginDomainNotaryRemoved) (event.Subscription, error)

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

func (*IOrigin) WatchFraudAttestation added in v0.0.5

func (_m *IOrigin) WatchFraudAttestation(opts *bind.WatchOpts, sink chan<- *origin.OriginFraudAttestation, notary []common.Address) (event.Subscription, error)

WatchFraudAttestation provides a mock function with given fields: opts, sink, notary

func (*IOrigin) WatchGuardAdded

func (_m *IOrigin) WatchGuardAdded(opts *bind.WatchOpts, sink chan<- *origin.OriginGuardAdded) (event.Subscription, error)

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

func (*IOrigin) WatchGuardRemoved

func (_m *IOrigin) WatchGuardRemoved(opts *bind.WatchOpts, sink chan<- *origin.OriginGuardRemoved) (event.Subscription, error)

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

func (*IOrigin) WatchGuardSlashed added in v0.0.5

func (_m *IOrigin) WatchGuardSlashed(opts *bind.WatchOpts, sink chan<- *origin.OriginGuardSlashed, guard []common.Address, reporter []common.Address) (event.Subscription, error)

WatchGuardSlashed provides a mock function with given fields: opts, sink, guard, reporter

func (*IOrigin) WatchIncorrectReport added in v0.0.5

func (_m *IOrigin) WatchIncorrectReport(opts *bind.WatchOpts, sink chan<- *origin.OriginIncorrectReport, guard []common.Address) (event.Subscription, error)

WatchIncorrectReport provides a mock function with given fields: opts, sink, guard

func (*IOrigin) WatchInitialized

func (_m *IOrigin) WatchInitialized(opts *bind.WatchOpts, sink chan<- *origin.OriginInitialized) (event.Subscription, error)

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

func (*IOrigin) WatchNewNotaryManager

func (_m *IOrigin) WatchNewNotaryManager(opts *bind.WatchOpts, sink chan<- *origin.OriginNewNotaryManager) (event.Subscription, error)

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

func (*IOrigin) WatchNotarySlashed

func (_m *IOrigin) WatchNotarySlashed(opts *bind.WatchOpts, sink chan<- *origin.OriginNotarySlashed, notary []common.Address, guard []common.Address, reporter []common.Address) (event.Subscription, error)

WatchNotarySlashed provides a mock function with given fields: opts, sink, notary, guard, reporter

func (*IOrigin) WatchOwnershipTransferred

func (_m *IOrigin) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *origin.OriginOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred provides a mock function with given fields: opts, sink, previousOwner, newOwner

Jump to

Keyboard shortcuts

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