mocks

package
v0.0.134 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 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) FilterAgentSlashed added in v0.0.130

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

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

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) FilterDispatched added in v0.0.130

func (_m *IOrigin) FilterDispatched(opts *bind.FilterOpts, messageHash [][32]byte, nonce []uint32, destination []uint32) (*origin.OriginDispatchedIterator, error)

FilterDispatched 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) FilterInitialized

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

FilterInitialized provides a mock function with given fields: opts

func (*IOrigin) FilterInvalidAttestationState added in v0.0.130

func (_m *IOrigin) FilterInvalidAttestationState(opts *bind.FilterOpts) (*origin.OriginInvalidAttestationStateIterator, error)

FilterInvalidAttestationState provides a mock function with given fields: opts

func (*IOrigin) FilterInvalidSnapshotState added in v0.0.130

func (_m *IOrigin) FilterInvalidSnapshotState(opts *bind.FilterOpts) (*origin.OriginInvalidSnapshotStateIterator, error)

FilterInvalidSnapshotState provides a mock function with given fields: opts

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) FilterStateSaved added in v0.0.130

func (_m *IOrigin) FilterStateSaved(opts *bind.FilterOpts) (*origin.OriginStateSavedIterator, error)

FilterStateSaved provides a mock function with given fields: opts

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) 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) (struct {
	IsActive bool
	Domain   uint32
}, 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) IsValidState added in v0.0.130

func (_m *IOrigin) IsValidState(opts *bind.CallOpts, _statePayload []byte) (bool, error)

IsValidState provides a mock function with given fields: opts, _statePayload

func (*IOrigin) LocalDomain

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

LocalDomain 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) 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) ParseAgentSlashed added in v0.0.130

func (_m *IOrigin) ParseAgentSlashed(log types.Log) (*origin.OriginAgentSlashed, error)

ParseAgentSlashed 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) ParseDispatched added in v0.0.130

func (_m *IOrigin) ParseDispatched(log types.Log) (*origin.OriginDispatched, error)

ParseDispatched 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) ParseInitialized

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

ParseInitialized provides a mock function with given fields: log

func (*IOrigin) ParseInvalidAttestationState added in v0.0.130

func (_m *IOrigin) ParseInvalidAttestationState(log types.Log) (*origin.OriginInvalidAttestationState, error)

ParseInvalidAttestationState provides a mock function with given fields: log

func (*IOrigin) ParseInvalidSnapshotState added in v0.0.130

func (_m *IOrigin) ParseInvalidSnapshotState(log types.Log) (*origin.OriginInvalidSnapshotState, error)

ParseInvalidSnapshotState 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) ParseStateSaved added in v0.0.130

func (_m *IOrigin) ParseStateSaved(log types.Log) (*origin.OriginStateSaved, error)

ParseStateSaved 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) 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.AgentInfo) (*types.Transaction, error)

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

func (*IOrigin) StatesAmount added in v0.0.130

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

StatesAmount provides a mock function with given fields: opts

func (*IOrigin) SuggestLatestState added in v0.0.130

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

SuggestLatestState provides a mock function with given fields: opts

func (*IOrigin) SuggestState added in v0.0.130

func (_m *IOrigin) SuggestState(opts *bind.CallOpts, _nonce uint32) ([]byte, error)

SuggestState provides a mock function with given fields: opts, _nonce

func (*IOrigin) SyncAgent added in v0.0.130

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

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

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) VerifyAttestation added in v0.0.130

func (_m *IOrigin) VerifyAttestation(opts *bind.TransactOpts, _snapPayload []byte, _stateIndex *big.Int, _attPayload []byte, _attSignature []byte) (*types.Transaction, error)

VerifyAttestation provides a mock function with given fields: opts, _snapPayload, _stateIndex, _attPayload, _attSignature

func (*IOrigin) VerifySnapshot added in v0.0.130

func (_m *IOrigin) VerifySnapshot(opts *bind.TransactOpts, _snapPayload []byte, _stateIndex *big.Int, _snapSignature []byte) (*types.Transaction, error)

VerifySnapshot provides a mock function with given fields: opts, _snapPayload, _stateIndex, _snapSignature

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) WatchAgentSlashed added in v0.0.130

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

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

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) WatchDispatched added in v0.0.130

func (_m *IOrigin) WatchDispatched(opts *bind.WatchOpts, sink chan<- *origin.OriginDispatched, messageHash [][32]byte, nonce []uint32, destination []uint32) (event.Subscription, error)

WatchDispatched 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) 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) WatchInvalidAttestationState added in v0.0.130

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

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

func (*IOrigin) WatchInvalidSnapshotState added in v0.0.130

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

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

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

func (*IOrigin) WatchStateSaved added in v0.0.130

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

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

Jump to

Keyboard shortcuts

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