Documentation ¶
Index ¶
- type ILightManager
- func (_m *ILightManager) Address() common.Address
- func (_m *ILightManager) AgentRoot(opts *bind.CallOpts) ([32]byte, error)
- func (_m *ILightManager) AgentStatus(opts *bind.CallOpts, agent common.Address) (lightmanager.AgentStatus, error)
- func (_m *ILightManager) Destination(opts *bind.CallOpts) (common.Address, error)
- func (_m *ILightManager) DisputeStatus(opts *bind.CallOpts, agent common.Address) (struct{ ... }, error)
- func (_m *ILightManager) FilterDisputeOpened(opts *bind.FilterOpts) (*lightmanager.LightManagerDisputeOpenedIterator, error)
- func (_m *ILightManager) FilterDisputeResolved(opts *bind.FilterOpts) (*lightmanager.LightManagerDisputeResolvedIterator, error)
- func (_m *ILightManager) FilterInitialized(opts *bind.FilterOpts) (*lightmanager.LightManagerInitializedIterator, error)
- func (_m *ILightManager) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*lightmanager.LightManagerOwnershipTransferredIterator, error)
- func (_m *ILightManager) FilterRootUpdated(opts *bind.FilterOpts) (*lightmanager.LightManagerRootUpdatedIterator, error)
- func (_m *ILightManager) FilterStatusUpdated(opts *bind.FilterOpts, domain []uint32, agent []common.Address) (*lightmanager.LightManagerStatusUpdatedIterator, error)
- func (_m *ILightManager) GetAgent(opts *bind.CallOpts, index *big.Int) (struct{ ... }, error)
- func (_m *ILightManager) GetDispute(opts *bind.CallOpts, index *big.Int) (struct{ ... }, error)
- func (_m *ILightManager) GetDisputesAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_m *ILightManager) Inbox(opts *bind.CallOpts) (common.Address, error)
- func (_m *ILightManager) Initialize(opts *bind.TransactOpts, origin_ common.Address, destination_ common.Address, ...) (*types.Transaction, error)
- func (_m *ILightManager) LocalDomain(opts *bind.CallOpts) (uint32, error)
- func (_m *ILightManager) Multicall(opts *bind.TransactOpts, calls []lightmanager.MultiCallableCall) (*types.Transaction, error)
- func (_m *ILightManager) OpenDispute(opts *bind.TransactOpts, guardIndex uint32, notaryIndex uint32) (*types.Transaction, error)
- func (_m *ILightManager) Origin(opts *bind.CallOpts) (common.Address, error)
- func (_m *ILightManager) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_m *ILightManager) ParseDisputeOpened(log types.Log) (*lightmanager.LightManagerDisputeOpened, error)
- func (_m *ILightManager) ParseDisputeResolved(log types.Log) (*lightmanager.LightManagerDisputeResolved, error)
- func (_m *ILightManager) ParseInitialized(log types.Log) (*lightmanager.LightManagerInitialized, error)
- func (_m *ILightManager) ParseOwnershipTransferred(log types.Log) (*lightmanager.LightManagerOwnershipTransferred, error)
- func (_m *ILightManager) ParseRootUpdated(log types.Log) (*lightmanager.LightManagerRootUpdated, error)
- func (_m *ILightManager) ParseStatusUpdated(log types.Log) (*lightmanager.LightManagerStatusUpdated, error)
- func (_m *ILightManager) RemoteWithdrawTips(opts *bind.TransactOpts, msgOrigin uint32, proofMaturity *big.Int, ...) (*types.Transaction, error)
- func (_m *ILightManager) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_m *ILightManager) ResolveStuckDispute(opts *bind.TransactOpts, domain uint32, slashedAgent common.Address) (*types.Transaction, error)
- func (_m *ILightManager) SetAgentRoot(opts *bind.TransactOpts, agentRoot_ [32]byte) (*types.Transaction, error)
- func (_m *ILightManager) SlashAgent(opts *bind.TransactOpts, domain uint32, agent common.Address, ...) (*types.Transaction, error)
- func (_m *ILightManager) SynapseDomain(opts *bind.CallOpts) (uint32, error)
- func (_m *ILightManager) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_m *ILightManager) UpdateAgentStatus(opts *bind.TransactOpts, agent common.Address, status lightmanager.AgentStatus, ...) (*types.Transaction, error)
- func (_m *ILightManager) Version(opts *bind.CallOpts) (string, error)
- func (_m *ILightManager) WatchDisputeOpened(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerDisputeOpened) (event.Subscription, error)
- func (_m *ILightManager) WatchDisputeResolved(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerDisputeResolved) (event.Subscription, error)
- func (_m *ILightManager) WatchInitialized(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerInitialized) (event.Subscription, error)
- func (_m *ILightManager) WatchOwnershipTransferred(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_m *ILightManager) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerRootUpdated) (event.Subscription, error)
- func (_m *ILightManager) WatchStatusUpdated(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerStatusUpdated, ...) (event.Subscription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILightManager ¶
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 ¶
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 ¶
func (_m *ILightManager) FilterDisputeOpened(opts *bind.FilterOpts) (*lightmanager.LightManagerDisputeOpenedIterator, error)
FilterDisputeOpened provides a mock function with given fields: opts
func (*ILightManager) FilterDisputeResolved ¶
func (_m *ILightManager) FilterDisputeResolved(opts *bind.FilterOpts) (*lightmanager.LightManagerDisputeResolvedIterator, error)
FilterDisputeResolved provides a mock function with given fields: opts
func (*ILightManager) FilterInitialized ¶
func (_m *ILightManager) FilterInitialized(opts *bind.FilterOpts) (*lightmanager.LightManagerInitializedIterator, error)
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 ¶
func (_m *ILightManager) FilterRootUpdated(opts *bind.FilterOpts) (*lightmanager.LightManagerRootUpdatedIterator, error)
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 ¶
GetDisputesAmount 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 ¶
func (_m *ILightManager) Multicall(opts *bind.TransactOpts, calls []lightmanager.MultiCallableCall) (*types.Transaction, error)
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) 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) 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) 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