mocks

package
v1.22.1 Latest Latest
Warning

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

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

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

AcceptOwnership provides a mock function with given fields: opts

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

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

CancelProposedAgentRoot provides a mock function with given fields: opts

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

FilterAgentRootProposed provides a mock function with given fields: opts

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

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

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

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

func (_m *ILightManager) FilterProposedAgentRootCancelled(opts *bind.FilterOpts) (*lightmanager.LightManagerProposedAgentRootCancelledIterator, error)

FilterProposedAgentRootCancelled provides a mock function with given fields: opts

func (*ILightManager) FilterProposedAgentRootResolved added in v0.1.0

func (_m *ILightManager) FilterProposedAgentRootResolved(opts *bind.FilterOpts) (*lightmanager.LightManagerProposedAgentRootResolvedIterator, error)

FilterProposedAgentRootResolved provides a mock function with given fields: opts

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

func (_m *ILightManager) ParseAgentRootProposed(log types.Log) (*lightmanager.LightManagerAgentRootProposed, error)

ParseAgentRootProposed provides a mock function with given fields: log

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

func (_m *ILightManager) ParseOwnershipTransferStarted(log types.Log) (*lightmanager.LightManagerOwnershipTransferStarted, error)

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

func (_m *ILightManager) ParseProposedAgentRootCancelled(log types.Log) (*lightmanager.LightManagerProposedAgentRootCancelled, error)

ParseProposedAgentRootCancelled provides a mock function with given fields: log

func (*ILightManager) ParseProposedAgentRootResolved added in v0.1.0

func (_m *ILightManager) ParseProposedAgentRootResolved(log types.Log) (*lightmanager.LightManagerProposedAgentRootResolved, error)

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

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

PendingOwner provides a mock function with given fields: opts

func (*ILightManager) ProposeAgentRootWhenStuck added in v0.1.0

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

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

func (*ILightManager) ProposedAgentRootData added in v0.1.0

func (_m *ILightManager) ProposedAgentRootData(opts *bind.CallOpts) (struct {
	AgentRoot  [32]byte
	ProposedAt *big.Int
}, error)

ProposedAgentRootData provides a mock function with given fields: opts

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

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

ResolveProposedAgentRoot provides a mock function with given fields: opts

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

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

SynapseDomain provides a mock function with given fields: opts

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

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

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

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

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

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

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

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

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

func (*ILightManager) WatchProposedAgentRootResolved added in v0.1.0

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

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

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