mocks

package
v0.0.214 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 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 ILightManager

type ILightManager struct {
	mock.Mock
}

ILightManager is an autogenerated mock type for the ILightManager type

func NewILightManager

func NewILightManager(t mockConstructorTestingTNewILightManager) *ILightManager

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

func (*ILightManager) Address

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

Address provides a mock function with given fields:

func (*ILightManager) AgentRoot

func (_m *ILightManager) AgentRoot(opts *bind.CallOpts) ([32]byte, error)

AgentRoot provides a mock function with given fields: opts

func (*ILightManager) AgentStatus

func (_m *ILightManager) AgentStatus(opts *bind.CallOpts, agent common.Address) (lightmanager.AgentStatus, error)

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

func (*ILightManager) Destination

func (_m *ILightManager) Destination(opts *bind.CallOpts) (common.Address, error)

Destination provides a mock function with given fields: opts

func (*ILightManager) DisputeStatus

func (_m *ILightManager) DisputeStatus(opts *bind.CallOpts, agent common.Address) (struct {
	Flag        uint8
	Rival       common.Address
	FraudProver common.Address
	DisputePtr  *big.Int
}, error)

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

func (*ILightManager) FilterDisputeOpened

FilterDisputeOpened provides a mock function with given fields: opts

func (*ILightManager) FilterDisputeResolved

FilterDisputeResolved provides a mock function with given fields: opts

func (*ILightManager) FilterInitialized

FilterInitialized provides a mock function with given fields: opts

func (*ILightManager) FilterOwnershipTransferred

func (_m *ILightManager) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*lightmanager.LightManagerOwnershipTransferredIterator, error)

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

func (*ILightManager) FilterRootUpdated

FilterRootUpdated provides a mock function with given fields: opts

func (*ILightManager) FilterStatusUpdated

func (_m *ILightManager) FilterStatusUpdated(opts *bind.FilterOpts, domain []uint32, agent []common.Address) (*lightmanager.LightManagerStatusUpdatedIterator, error)

FilterStatusUpdated provides a mock function with given fields: opts, domain, agent

func (*ILightManager) GetAgent

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

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

func (*ILightManager) GetDispute

func (_m *ILightManager) GetDispute(opts *bind.CallOpts, index *big.Int) (struct {
	Guard           common.Address
	Notary          common.Address
	SlashedAgent    common.Address
	FraudProver     common.Address
	ReportPayload   []byte
	ReportSignature []byte
}, error)

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

func (*ILightManager) GetDisputesAmount

func (_m *ILightManager) GetDisputesAmount(opts *bind.CallOpts) (*big.Int, error)

GetDisputesAmount provides a mock function with given fields: opts

func (*ILightManager) Inbox

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

Inbox provides a mock function with given fields: opts

func (*ILightManager) Initialize

func (_m *ILightManager) Initialize(opts *bind.TransactOpts, origin_ common.Address, destination_ common.Address, inbox_ common.Address) (*types.Transaction, error)

Initialize provides a mock function with given fields: opts, origin_, destination_, inbox_

func (*ILightManager) LocalDomain

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

LocalDomain provides a mock function with given fields: opts

func (*ILightManager) Multicall

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

func (*ILightManager) OpenDispute

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

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

func (*ILightManager) Origin

func (_m *ILightManager) Origin(opts *bind.CallOpts) (common.Address, error)

Origin provides a mock function with given fields: opts

func (*ILightManager) Owner

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

Owner provides a mock function with given fields: opts

func (*ILightManager) ParseDisputeOpened

func (_m *ILightManager) ParseDisputeOpened(log types.Log) (*lightmanager.LightManagerDisputeOpened, error)

ParseDisputeOpened provides a mock function with given fields: log

func (*ILightManager) ParseDisputeResolved

func (_m *ILightManager) ParseDisputeResolved(log types.Log) (*lightmanager.LightManagerDisputeResolved, error)

ParseDisputeResolved provides a mock function with given fields: log

func (*ILightManager) ParseInitialized

func (_m *ILightManager) ParseInitialized(log types.Log) (*lightmanager.LightManagerInitialized, error)

ParseInitialized provides a mock function with given fields: log

func (*ILightManager) ParseOwnershipTransferred

func (_m *ILightManager) ParseOwnershipTransferred(log types.Log) (*lightmanager.LightManagerOwnershipTransferred, error)

ParseOwnershipTransferred provides a mock function with given fields: log

func (*ILightManager) ParseRootUpdated

func (_m *ILightManager) ParseRootUpdated(log types.Log) (*lightmanager.LightManagerRootUpdated, error)

ParseRootUpdated provides a mock function with given fields: log

func (*ILightManager) ParseStatusUpdated

func (_m *ILightManager) ParseStatusUpdated(log types.Log) (*lightmanager.LightManagerStatusUpdated, error)

ParseStatusUpdated provides a mock function with given fields: log

func (*ILightManager) RemoteWithdrawTips

func (_m *ILightManager) RemoteWithdrawTips(opts *bind.TransactOpts, msgOrigin uint32, proofMaturity *big.Int, recipient common.Address, amount *big.Int) (*types.Transaction, error)

RemoteWithdrawTips provides a mock function with given fields: opts, msgOrigin, proofMaturity, recipient, amount

func (*ILightManager) RenounceOwnership

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

RenounceOwnership provides a mock function with given fields: opts

func (*ILightManager) ResolveStuckDispute

func (_m *ILightManager) ResolveStuckDispute(opts *bind.TransactOpts, domain uint32, slashedAgent common.Address) (*types.Transaction, error)

ResolveStuckDispute provides a mock function with given fields: opts, domain, slashedAgent

func (*ILightManager) SetAgentRoot

func (_m *ILightManager) SetAgentRoot(opts *bind.TransactOpts, agentRoot_ [32]byte) (*types.Transaction, error)

SetAgentRoot provides a mock function with given fields: opts, agentRoot_

func (*ILightManager) SlashAgent

func (_m *ILightManager) SlashAgent(opts *bind.TransactOpts, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error)

SlashAgent provides a mock function with given fields: opts, domain, agent, prover

func (*ILightManager) TransferOwnership

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

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

func (*ILightManager) UpdateAgentStatus

func (_m *ILightManager) UpdateAgentStatus(opts *bind.TransactOpts, agent common.Address, status lightmanager.AgentStatus, proof [][32]byte) (*types.Transaction, error)

UpdateAgentStatus provides a mock function with given fields: opts, agent, status, proof

func (*ILightManager) Version

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

Version provides a mock function with given fields: opts

func (*ILightManager) WatchDisputeOpened

func (_m *ILightManager) WatchDisputeOpened(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerDisputeOpened) (event.Subscription, error)

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

func (*ILightManager) WatchDisputeResolved

func (_m *ILightManager) WatchDisputeResolved(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerDisputeResolved) (event.Subscription, error)

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

func (*ILightManager) WatchInitialized

func (_m *ILightManager) WatchInitialized(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerInitialized) (event.Subscription, error)

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

func (*ILightManager) WatchOwnershipTransferred

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

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

func (*ILightManager) WatchRootUpdated

func (_m *ILightManager) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerRootUpdated) (event.Subscription, error)

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

func (*ILightManager) WatchStatusUpdated

func (_m *ILightManager) WatchStatusUpdated(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerStatusUpdated, domain []uint32, agent []common.Address) (event.Subscription, error)

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

Jump to

Keyboard shortcuts

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