mocks

package
v0.0.124 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 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) AllAgents added in v0.0.43

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

AllAgents provides a mock function with given fields: opts, _domain

func (*IOrigin) AllDomains added in v0.0.42

func (_m *IOrigin) AllDomains(opts *bind.CallOpts) ([]uint32, error)

AllDomains provides a mock function with given fields: opts

func (*IOrigin) AmountAgents added in v0.0.43

func (_m *IOrigin) AmountAgents(opts *bind.CallOpts, _domain uint32) (*big.Int, error)

AmountAgents provides a mock function with given fields: opts, _domain

func (*IOrigin) AmountDomains added in v0.0.43

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

AmountDomains provides a mock function with given fields: opts

func (*IOrigin) Dispatch

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

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

func (*IOrigin) FilterAgentAdded added in v0.0.43

func (_m *IOrigin) FilterAgentAdded(opts *bind.FilterOpts, domain []uint32, account []common.Address) (*origin.OriginAgentAddedIterator, error)

FilterAgentAdded provides a mock function with given fields: opts, domain, account

func (*IOrigin) FilterAgentRemoved added in v0.0.43

func (_m *IOrigin) FilterAgentRemoved(opts *bind.FilterOpts, domain []uint32, account []common.Address) (*origin.OriginAgentRemovedIterator, error)

FilterAgentRemoved provides a mock function with given fields: opts, domain, account

func (*IOrigin) FilterAttestationAccepted added in v0.0.34

func (_m *IOrigin) FilterAttestationAccepted(opts *bind.FilterOpts) (*origin.OriginAttestationAcceptedIterator, error)

FilterAttestationAccepted provides a mock function with given fields: opts

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, nonce []uint32, destination []uint32) (*origin.OriginDispatchIterator, error)

FilterDispatch provides a mock function with given fields: opts, messageHash, nonce, destination

func (*IOrigin) FilterDomainActivated added in v0.0.43

func (_m *IOrigin) FilterDomainActivated(opts *bind.FilterOpts, domain []uint32) (*origin.OriginDomainActivatedIterator, error)

FilterDomainActivated provides a mock function with given fields: opts, domain

func (*IOrigin) FilterDomainDeactivated added in v0.0.43

func (_m *IOrigin) FilterDomainDeactivated(opts *bind.FilterOpts, domain []uint32) (*origin.OriginDomainDeactivatedIterator, error)

FilterDomainDeactivated provides a mock function with given fields: opts, domain

func (*IOrigin) FilterFraudAttestation added in v0.0.5

func (_m *IOrigin) FilterFraudAttestation(opts *bind.FilterOpts) (*origin.OriginFraudAttestationIterator, error)

FilterFraudAttestation 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) 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) GetAgent added in v0.0.43

func (_m *IOrigin) GetAgent(opts *bind.CallOpts, _domain uint32, _agentIndex *big.Int) (common.Address, error)

GetAgent provides a mock function with given fields: opts, _domain, _agentIndex

func (*IOrigin) GetDomain added in v0.0.42

func (_m *IOrigin) GetDomain(opts *bind.CallOpts, _domainIndex *big.Int) (uint32, error)

GetDomain provides a mock function with given fields: opts, _domainIndex

func (*IOrigin) GetHistoricalRoot added in v0.0.34

func (_m *IOrigin) GetHistoricalRoot(opts *bind.CallOpts, _destination uint32, _nonce uint32) ([32]byte, *big.Int, error)

GetHistoricalRoot provides a mock function with given fields: opts, _destination, _nonce

func (*IOrigin) Initialize

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

Initialize provides a mock function with given fields: opts

func (*IOrigin) IsActiveAgent added in v0.0.43

func (_m *IOrigin) IsActiveAgent(opts *bind.CallOpts, _domain uint32, _account common.Address) (bool, error)

IsActiveAgent provides a mock function with given fields: opts, _domain, _account

func (*IOrigin) IsActiveAgent0 added in v0.0.43

func (_m *IOrigin) IsActiveAgent0(opts *bind.CallOpts, _account common.Address) (bool, error)

IsActiveAgent0 provides a mock function with given fields: opts, _account

func (*IOrigin) IsActiveDomain added in v0.0.43

func (_m *IOrigin) IsActiveDomain(opts *bind.CallOpts, _domain uint32) (bool, error)

IsActiveDomain provides a mock function with given fields: opts, _domain

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, _destination uint32) (uint32, error)

Nonce provides a mock function with given fields: opts, _destination

func (*IOrigin) Owner

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

Owner provides a mock function with given fields: opts

func (*IOrigin) ParseAgentAdded added in v0.0.43

func (_m *IOrigin) ParseAgentAdded(log types.Log) (*origin.OriginAgentAdded, error)

ParseAgentAdded provides a mock function with given fields: log

func (*IOrigin) ParseAgentRemoved added in v0.0.43

func (_m *IOrigin) ParseAgentRemoved(log types.Log) (*origin.OriginAgentRemoved, error)

ParseAgentRemoved provides a mock function with given fields: log

func (*IOrigin) ParseAttestationAccepted added in v0.0.34

func (_m *IOrigin) ParseAttestationAccepted(log types.Log) (*origin.OriginAttestationAccepted, error)

ParseAttestationAccepted provides a mock function with given fields: log

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) ParseDomainActivated added in v0.0.43

func (_m *IOrigin) ParseDomainActivated(log types.Log) (*origin.OriginDomainActivated, error)

ParseDomainActivated provides a mock function with given fields: log

func (*IOrigin) ParseDomainDeactivated added in v0.0.43

func (_m *IOrigin) ParseDomainDeactivated(log types.Log) (*origin.OriginDomainDeactivated, error)

ParseDomainDeactivated 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) 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) 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, _destination uint32) ([32]byte, error)

Root provides a mock function with given fields: opts, _destination

func (*IOrigin) SYNAPSEDOMAIN added in v0.0.13

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

SYNAPSEDOMAIN provides a mock function with given fields: opts

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) SlashAgent added in v0.0.41

func (_m *IOrigin) SlashAgent(opts *bind.TransactOpts, arg0 *big.Int, _callOrigin uint32, _caller uint8, _info origin.SystemContractAgentInfo) (*types.Transaction, error)

SlashAgent provides a mock function with given fields: opts, arg0, _callOrigin, _caller, _info

func (*IOrigin) SubmitAttestation added in v0.0.11

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

SubmitAttestation provides a mock function with given fields: opts, _attestation

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, _destination uint32) ([]byte, error)

SuggestAttestation provides a mock function with given fields: opts, _destination

func (*IOrigin) SuggestAttestations added in v0.0.42

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

SuggestAttestations provides a mock function with given fields: opts

func (*IOrigin) SyncAgents added in v0.0.41

func (_m *IOrigin) SyncAgents(opts *bind.TransactOpts, arg0 *big.Int, _callOrigin uint32, _caller uint8, _requestID *big.Int, _removeExisting bool, _infos []origin.SystemContractAgentInfo) (*types.Transaction, error)

SyncAgents provides a mock function with given fields: opts, arg0, _callOrigin, _caller, _requestID, _removeExisting, _infos

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) Version added in v0.0.62

func (_m *IOrigin) Version(opts *bind.CallOpts) (string, error)

Version provides a mock function with given fields: opts

func (*IOrigin) WatchAgentAdded added in v0.0.43

func (_m *IOrigin) WatchAgentAdded(opts *bind.WatchOpts, sink chan<- *origin.OriginAgentAdded, domain []uint32, account []common.Address) (event.Subscription, error)

WatchAgentAdded provides a mock function with given fields: opts, sink, domain, account

func (*IOrigin) WatchAgentRemoved added in v0.0.43

func (_m *IOrigin) WatchAgentRemoved(opts *bind.WatchOpts, sink chan<- *origin.OriginAgentRemoved, domain []uint32, account []common.Address) (event.Subscription, error)

WatchAgentRemoved provides a mock function with given fields: opts, sink, domain, account

func (*IOrigin) WatchAttestationAccepted added in v0.0.34

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

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

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, nonce []uint32, destination []uint32) (event.Subscription, error)

WatchDispatch provides a mock function with given fields: opts, sink, messageHash, nonce, destination

func (*IOrigin) WatchDomainActivated added in v0.0.43

func (_m *IOrigin) WatchDomainActivated(opts *bind.WatchOpts, sink chan<- *origin.OriginDomainActivated, domain []uint32) (event.Subscription, error)

WatchDomainActivated provides a mock function with given fields: opts, sink, domain

func (*IOrigin) WatchDomainDeactivated added in v0.0.43

func (_m *IOrigin) WatchDomainDeactivated(opts *bind.WatchOpts, sink chan<- *origin.OriginDomainDeactivated, domain []uint32) (event.Subscription, error)

WatchDomainDeactivated provides a mock function with given fields: opts, sink, domain

func (*IOrigin) WatchFraudAttestation added in v0.0.5

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

WatchFraudAttestation 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) 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