mocks

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 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) AcceptOwnership added in v0.1.0

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

AcceptOwnership provides a mock function with given fields: opts

func (*IOrigin) Address

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

Address provides a mock function with given fields:

func (*IOrigin) AgentManager added in v0.0.171

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

AgentManager provides a mock function with given fields: opts

func (*IOrigin) AgentStatus added in v0.0.171

func (_m *IOrigin) AgentStatus(opts *bind.CallOpts, agent common.Address) (origin.AgentStatus, error)

AgentStatus provides a mock function with given fields: opts, agent

func (*IOrigin) FilterInitialized

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

FilterInitialized provides a mock function with given fields: opts

func (*IOrigin) FilterOwnershipTransferStarted added in v0.1.0

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

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

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) FilterSent added in v0.0.171

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

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

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) FilterTipWithdrawalCompleted added in v0.1.0

func (_m *IOrigin) FilterTipWithdrawalCompleted(opts *bind.FilterOpts) (*origin.OriginTipWithdrawalCompletedIterator, error)

FilterTipWithdrawalCompleted provides a mock function with given fields: opts

func (*IOrigin) GasOracle added in v0.0.171

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

GasOracle provides a mock function with given fields: opts

func (*IOrigin) GetAgent added in v0.0.43

func (_m *IOrigin) GetAgent(opts *bind.CallOpts, index *big.Int) (struct {
	Agent  common.Address
	Status origin.AgentStatus
}, error)

GetAgent provides a mock function with given fields: opts, index

func (*IOrigin) GetMinimumTipsValue added in v0.0.171

func (_m *IOrigin) GetMinimumTipsValue(opts *bind.CallOpts, destination uint32, paddedRequest *big.Int, contentLength *big.Int) (*big.Int, error)

GetMinimumTipsValue provides a mock function with given fields: opts, destination, paddedRequest, contentLength

func (*IOrigin) Inbox added in v0.0.171

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

Inbox provides a mock function with given fields: opts

func (*IOrigin) Initialize

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

Initialize provides a mock function with given fields: opts

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) LatestDisputeStatus added in v0.1.0

func (_m *IOrigin) LatestDisputeStatus(opts *bind.CallOpts, agentIndex uint32) (origin.DisputeStatus, error)

LatestDisputeStatus provides a mock function with given fields: opts, agentIndex

func (*IOrigin) LocalDomain

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

LocalDomain provides a mock function with given fields: opts

func (*IOrigin) Multicall added in v0.0.171

func (_m *IOrigin) Multicall(opts *bind.TransactOpts, calls []origin.MultiCallableCall) (*types.Transaction, error)

Multicall provides a mock function with given fields: opts, calls

func (*IOrigin) OpenDispute added in v0.0.171

func (_m *IOrigin) OpenDispute(opts *bind.TransactOpts, guardIndex uint32, notaryIndex uint32) (*types.Transaction, error)

OpenDispute provides a mock function with given fields: opts, guardIndex, notaryIndex

func (*IOrigin) Owner

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

Owner provides a mock function with given fields: opts

func (*IOrigin) ParseInitialized

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

ParseInitialized provides a mock function with given fields: log

func (*IOrigin) ParseOwnershipTransferStarted added in v0.1.0

func (_m *IOrigin) ParseOwnershipTransferStarted(log types.Log) (*origin.OriginOwnershipTransferStarted, error)

ParseOwnershipTransferStarted 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) ParseSent added in v0.0.171

func (_m *IOrigin) ParseSent(log types.Log) (*origin.OriginSent, error)

ParseSent 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) ParseTipWithdrawalCompleted added in v0.1.0

func (_m *IOrigin) ParseTipWithdrawalCompleted(log types.Log) (*origin.OriginTipWithdrawalCompleted, error)

ParseTipWithdrawalCompleted 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) PendingOwner added in v0.1.0

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

PendingOwner provides a mock function with given fields: opts

func (*IOrigin) RenounceOwnership

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

RenounceOwnership provides a mock function with given fields: opts

func (*IOrigin) ResolveDispute added in v0.0.171

func (_m *IOrigin) ResolveDispute(opts *bind.TransactOpts, slashedIndex uint32, rivalIndex uint32) (*types.Transaction, error)

ResolveDispute provides a mock function with given fields: opts, slashedIndex, rivalIndex

func (*IOrigin) SendBaseMessage added in v0.0.171

func (_m *IOrigin) SendBaseMessage(opts *bind.TransactOpts, destination uint32, recipient [32]byte, optimisticPeriod uint32, paddedRequest *big.Int, content []byte) (*types.Transaction, error)

SendBaseMessage provides a mock function with given fields: opts, destination, recipient, optimisticPeriod, paddedRequest, content

func (*IOrigin) SendManagerMessage added in v0.0.171

func (_m *IOrigin) SendManagerMessage(opts *bind.TransactOpts, destination uint32, optimisticPeriod uint32, payload []byte) (*types.Transaction, error)

SendManagerMessage provides a mock function with given fields: opts, destination, optimisticPeriod, payload

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) SynapseDomain added in v0.0.237

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

SynapseDomain 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) 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) WatchOwnershipTransferStarted added in v0.1.0

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

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

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) WatchSent added in v0.0.171

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

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

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

func (*IOrigin) WatchTipWithdrawalCompleted added in v0.1.0

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

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

func (*IOrigin) WithdrawTips added in v0.0.171

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

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

Jump to

Keyboard shortcuts

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