Documentation ¶
Index ¶
- type IOrigin
- func (_m *IOrigin) Address() common.Address
- func (_m *IOrigin) AllGuards(opts *bind.CallOpts) ([]common.Address, error)
- func (_m *IOrigin) AllNotaries(opts *bind.CallOpts) ([]common.Address, error)
- func (_m *IOrigin) Dispatch(opts *bind.TransactOpts, _destination uint32, _recipient [32]byte, ...) (*types.Transaction, error)
- func (_m *IOrigin) FilterCorrectFraudReport(opts *bind.FilterOpts, guard []common.Address) (*origin.OriginCorrectFraudReportIterator, error)
- func (_m *IOrigin) FilterDispatch(opts *bind.FilterOpts, messageHash [][32]byte, nonce []uint32, ...) (*origin.OriginDispatchIterator, error)
- func (_m *IOrigin) FilterFraudAttestation(opts *bind.FilterOpts, notary []common.Address) (*origin.OriginFraudAttestationIterator, error)
- func (_m *IOrigin) FilterGuardAdded(opts *bind.FilterOpts) (*origin.OriginGuardAddedIterator, error)
- func (_m *IOrigin) FilterGuardRemoved(opts *bind.FilterOpts) (*origin.OriginGuardRemovedIterator, error)
- func (_m *IOrigin) FilterGuardSlashed(opts *bind.FilterOpts, guard []common.Address, reporter []common.Address) (*origin.OriginGuardSlashedIterator, error)
- func (_m *IOrigin) FilterIncorrectReport(opts *bind.FilterOpts, guard []common.Address) (*origin.OriginIncorrectReportIterator, error)
- func (_m *IOrigin) FilterInitialized(opts *bind.FilterOpts) (*origin.OriginInitializedIterator, error)
- func (_m *IOrigin) FilterNewNotaryManager(opts *bind.FilterOpts) (*origin.OriginNewNotaryManagerIterator, error)
- func (_m *IOrigin) FilterNotaryAdded(opts *bind.FilterOpts, domain []uint32) (*origin.OriginNotaryAddedIterator, error)
- func (_m *IOrigin) FilterNotaryRemoved(opts *bind.FilterOpts, domain []uint32) (*origin.OriginNotaryRemovedIterator, error)
- func (_m *IOrigin) FilterNotarySlashed(opts *bind.FilterOpts, notary []common.Address, guard []common.Address, ...) (*origin.OriginNotarySlashedIterator, error)
- func (_m *IOrigin) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*origin.OriginOwnershipTransferredIterator, error)
- func (_m *IOrigin) GetGuard(opts *bind.CallOpts, _index *big.Int) (common.Address, error)
- func (_m *IOrigin) GetNotary(opts *bind.CallOpts, _index *big.Int) (common.Address, error)
- func (_m *IOrigin) GuardsAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_m *IOrigin) HistoricalRoots(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
- func (_m *IOrigin) Initialize(opts *bind.TransactOpts, _notaryManager common.Address) (*types.Transaction, error)
- func (_m *IOrigin) LocalDomain(opts *bind.CallOpts) (uint32, error)
- func (_m *IOrigin) MAXMESSAGEBODYBYTES(opts *bind.CallOpts) (*big.Int, error)
- func (_m *IOrigin) Nonce(opts *bind.CallOpts) (uint32, error)
- func (_m *IOrigin) NotariesAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_m *IOrigin) NotaryManager(opts *bind.CallOpts) (common.Address, error)
- func (_m *IOrigin) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_m *IOrigin) ParseCorrectFraudReport(log types.Log) (*origin.OriginCorrectFraudReport, error)
- func (_m *IOrigin) ParseDispatch(log types.Log) (*origin.OriginDispatch, error)
- func (_m *IOrigin) ParseFraudAttestation(log types.Log) (*origin.OriginFraudAttestation, error)
- func (_m *IOrigin) ParseGuardAdded(log types.Log) (*origin.OriginGuardAdded, error)
- func (_m *IOrigin) ParseGuardRemoved(log types.Log) (*origin.OriginGuardRemoved, error)
- func (_m *IOrigin) ParseGuardSlashed(log types.Log) (*origin.OriginGuardSlashed, error)
- func (_m *IOrigin) ParseIncorrectReport(log types.Log) (*origin.OriginIncorrectReport, error)
- func (_m *IOrigin) ParseInitialized(log types.Log) (*origin.OriginInitialized, error)
- func (_m *IOrigin) ParseNewNotaryManager(log types.Log) (*origin.OriginNewNotaryManager, error)
- func (_m *IOrigin) ParseNotaryAdded(log types.Log) (*origin.OriginNotaryAdded, error)
- func (_m *IOrigin) ParseNotaryRemoved(log types.Log) (*origin.OriginNotaryRemoved, error)
- func (_m *IOrigin) ParseNotarySlashed(log types.Log) (*origin.OriginNotarySlashed, error)
- func (_m *IOrigin) ParseOwnershipTransferred(log types.Log) (*origin.OriginOwnershipTransferred, error)
- func (_m *IOrigin) Parser() origin.Parser
- func (_m *IOrigin) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_m *IOrigin) Root(opts *bind.CallOpts) ([32]byte, error)
- func (_m *IOrigin) SYNAPSEDOMAIN(opts *bind.CallOpts) (uint32, error)
- func (_m *IOrigin) SetNotary(opts *bind.TransactOpts, _notary common.Address) (*types.Transaction, error)
- func (_m *IOrigin) SetNotaryManager(opts *bind.TransactOpts, _notaryManager common.Address) (*types.Transaction, error)
- func (_m *IOrigin) SetSystemRouter(opts *bind.TransactOpts, _systemRouter common.Address) (*types.Transaction, error)
- func (_m *IOrigin) SubmitAttestation(opts *bind.TransactOpts, _attestation []byte) (*types.Transaction, error)
- func (_m *IOrigin) SubmitReport(opts *bind.TransactOpts, _report []byte) (*types.Transaction, error)
- func (_m *IOrigin) SuggestAttestation(opts *bind.CallOpts) (struct{ ... }, error)
- func (_m *IOrigin) SystemRouter(opts *bind.CallOpts) (common.Address, error)
- func (_m *IOrigin) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_m *IOrigin) VERSION(opts *bind.CallOpts) (uint8, error)
- func (_m *IOrigin) WatchCorrectFraudReport(opts *bind.WatchOpts, sink chan<- *origin.OriginCorrectFraudReport, ...) (event.Subscription, error)
- func (_m *IOrigin) WatchDispatch(opts *bind.WatchOpts, sink chan<- *origin.OriginDispatch, ...) (event.Subscription, error)
- func (_m *IOrigin) WatchFraudAttestation(opts *bind.WatchOpts, sink chan<- *origin.OriginFraudAttestation, ...) (event.Subscription, error)
- func (_m *IOrigin) WatchGuardAdded(opts *bind.WatchOpts, sink chan<- *origin.OriginGuardAdded) (event.Subscription, error)
- func (_m *IOrigin) WatchGuardRemoved(opts *bind.WatchOpts, sink chan<- *origin.OriginGuardRemoved) (event.Subscription, error)
- func (_m *IOrigin) WatchGuardSlashed(opts *bind.WatchOpts, sink chan<- *origin.OriginGuardSlashed, ...) (event.Subscription, error)
- func (_m *IOrigin) WatchIncorrectReport(opts *bind.WatchOpts, sink chan<- *origin.OriginIncorrectReport, ...) (event.Subscription, error)
- func (_m *IOrigin) WatchInitialized(opts *bind.WatchOpts, sink chan<- *origin.OriginInitialized) (event.Subscription, error)
- func (_m *IOrigin) WatchNewNotaryManager(opts *bind.WatchOpts, sink chan<- *origin.OriginNewNotaryManager) (event.Subscription, error)
- func (_m *IOrigin) WatchNotaryAdded(opts *bind.WatchOpts, sink chan<- *origin.OriginNotaryAdded, domain []uint32) (event.Subscription, error)
- func (_m *IOrigin) WatchNotaryRemoved(opts *bind.WatchOpts, sink chan<- *origin.OriginNotaryRemoved, domain []uint32) (event.Subscription, error)
- func (_m *IOrigin) WatchNotarySlashed(opts *bind.WatchOpts, sink chan<- *origin.OriginNotarySlashed, ...) (event.Subscription, error)
- func (_m *IOrigin) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *origin.OriginOwnershipTransferred, ...) (event.Subscription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOrigin ¶
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) AllNotaries ¶
AllNotaries 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) FilterCorrectFraudReport ¶ added in v0.0.5
func (_m *IOrigin) FilterCorrectFraudReport(opts *bind.FilterOpts, guard []common.Address) (*origin.OriginCorrectFraudReportIterator, error)
FilterCorrectFraudReport provides a mock function with given fields: opts, guard
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) FilterFraudAttestation ¶ added in v0.0.5
func (_m *IOrigin) FilterFraudAttestation(opts *bind.FilterOpts, notary []common.Address) (*origin.OriginFraudAttestationIterator, error)
FilterFraudAttestation provides a mock function with given fields: opts, notary
func (*IOrigin) FilterGuardAdded ¶
func (_m *IOrigin) FilterGuardAdded(opts *bind.FilterOpts) (*origin.OriginGuardAddedIterator, error)
FilterGuardAdded provides a mock function with given fields: opts
func (*IOrigin) FilterGuardRemoved ¶
func (_m *IOrigin) FilterGuardRemoved(opts *bind.FilterOpts) (*origin.OriginGuardRemovedIterator, error)
FilterGuardRemoved provides a mock function with given fields: opts
func (*IOrigin) FilterGuardSlashed ¶ added in v0.0.5
func (_m *IOrigin) FilterGuardSlashed(opts *bind.FilterOpts, guard []common.Address, reporter []common.Address) (*origin.OriginGuardSlashedIterator, error)
FilterGuardSlashed provides a mock function with given fields: opts, guard, reporter
func (*IOrigin) FilterIncorrectReport ¶ added in v0.0.5
func (_m *IOrigin) FilterIncorrectReport(opts *bind.FilterOpts, guard []common.Address) (*origin.OriginIncorrectReportIterator, error)
FilterIncorrectReport provides a mock function with given fields: opts, guard
func (*IOrigin) FilterInitialized ¶
func (_m *IOrigin) FilterInitialized(opts *bind.FilterOpts) (*origin.OriginInitializedIterator, error)
FilterInitialized provides a mock function with given fields: opts
func (*IOrigin) FilterNewNotaryManager ¶
func (_m *IOrigin) FilterNewNotaryManager(opts *bind.FilterOpts) (*origin.OriginNewNotaryManagerIterator, error)
FilterNewNotaryManager provides a mock function with given fields: opts
func (*IOrigin) FilterNotaryAdded ¶ added in v0.0.10
func (_m *IOrigin) FilterNotaryAdded(opts *bind.FilterOpts, domain []uint32) (*origin.OriginNotaryAddedIterator, error)
FilterNotaryAdded provides a mock function with given fields: opts, domain
func (*IOrigin) FilterNotaryRemoved ¶ added in v0.0.10
func (_m *IOrigin) FilterNotaryRemoved(opts *bind.FilterOpts, domain []uint32) (*origin.OriginNotaryRemovedIterator, error)
FilterNotaryRemoved provides a mock function with given fields: opts, domain
func (*IOrigin) FilterNotarySlashed ¶
func (_m *IOrigin) FilterNotarySlashed(opts *bind.FilterOpts, notary []common.Address, guard []common.Address, reporter []common.Address) (*origin.OriginNotarySlashedIterator, error)
FilterNotarySlashed provides a mock function with given fields: opts, notary, guard, reporter
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) GuardsAmount ¶
GuardsAmount provides a mock function with given fields: opts
func (*IOrigin) HistoricalRoots ¶
HistoricalRoots provides a mock function with given fields: opts, arg0
func (*IOrigin) Initialize ¶
func (_m *IOrigin) Initialize(opts *bind.TransactOpts, _notaryManager common.Address) (*types.Transaction, error)
Initialize provides a mock function with given fields: opts, _notaryManager
func (*IOrigin) LocalDomain ¶
LocalDomain provides a mock function with given fields: opts
func (*IOrigin) MAXMESSAGEBODYBYTES ¶
MAXMESSAGEBODYBYTES provides a mock function with given fields: opts
func (*IOrigin) NotariesAmount ¶
NotariesAmount provides a mock function with given fields: opts
func (*IOrigin) NotaryManager ¶
NotaryManager provides a mock function with given fields: opts
func (*IOrigin) ParseCorrectFraudReport ¶ added in v0.0.5
ParseCorrectFraudReport provides a mock function with given fields: log
func (*IOrigin) ParseDispatch ¶
ParseDispatch provides a mock function with given fields: log
func (*IOrigin) ParseFraudAttestation ¶ added in v0.0.5
ParseFraudAttestation provides a mock function with given fields: log
func (*IOrigin) ParseGuardAdded ¶
ParseGuardAdded provides a mock function with given fields: log
func (*IOrigin) ParseGuardRemoved ¶
ParseGuardRemoved provides a mock function with given fields: log
func (*IOrigin) ParseGuardSlashed ¶ added in v0.0.5
ParseGuardSlashed provides a mock function with given fields: log
func (*IOrigin) ParseIncorrectReport ¶ added in v0.0.5
ParseIncorrectReport provides a mock function with given fields: log
func (*IOrigin) ParseInitialized ¶
ParseInitialized provides a mock function with given fields: log
func (*IOrigin) ParseNewNotaryManager ¶
ParseNewNotaryManager provides a mock function with given fields: log
func (*IOrigin) ParseNotaryAdded ¶ added in v0.0.10
ParseNotaryAdded provides a mock function with given fields: log
func (*IOrigin) ParseNotaryRemoved ¶ added in v0.0.10
ParseNotaryRemoved provides a mock function with given fields: log
func (*IOrigin) ParseNotarySlashed ¶
ParseNotarySlashed 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) 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
SYNAPSEDOMAIN provides a mock function with given fields: opts
func (*IOrigin) SetNotary ¶
func (_m *IOrigin) SetNotary(opts *bind.TransactOpts, _notary common.Address) (*types.Transaction, error)
SetNotary provides a mock function with given fields: opts, _notary
func (*IOrigin) SetNotaryManager ¶
func (_m *IOrigin) SetNotaryManager(opts *bind.TransactOpts, _notaryManager common.Address) (*types.Transaction, error)
SetNotaryManager provides a mock function with given fields: opts, _notaryManager
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) SubmitAttestation ¶ added in v0.0.11
func (_m *IOrigin) SubmitAttestation(opts *bind.TransactOpts, _attestation []byte) (*types.Transaction, error)
SubmitAttestation provides a mock function with given fields: opts, _attestation
func (*IOrigin) SubmitReport ¶ added in v0.0.5
func (_m *IOrigin) SubmitReport(opts *bind.TransactOpts, _report []byte) (*types.Transaction, error)
SubmitReport provides a mock function with given fields: opts, _report
func (*IOrigin) SuggestAttestation ¶
func (_m *IOrigin) SuggestAttestation(opts *bind.CallOpts) (struct { LatestNonce uint32 LatestRoot [32]byte }, error)
SuggestAttestation provides a mock function with given fields: opts
func (*IOrigin) SystemRouter ¶ added in v0.0.4
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) WatchCorrectFraudReport ¶ added in v0.0.5
func (_m *IOrigin) WatchCorrectFraudReport(opts *bind.WatchOpts, sink chan<- *origin.OriginCorrectFraudReport, guard []common.Address) (event.Subscription, error)
WatchCorrectFraudReport provides a mock function with given fields: opts, sink, guard
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) WatchFraudAttestation ¶ added in v0.0.5
func (_m *IOrigin) WatchFraudAttestation(opts *bind.WatchOpts, sink chan<- *origin.OriginFraudAttestation, notary []common.Address) (event.Subscription, error)
WatchFraudAttestation provides a mock function with given fields: opts, sink, notary
func (*IOrigin) WatchGuardAdded ¶
func (_m *IOrigin) WatchGuardAdded(opts *bind.WatchOpts, sink chan<- *origin.OriginGuardAdded) (event.Subscription, error)
WatchGuardAdded provides a mock function with given fields: opts, sink
func (*IOrigin) WatchGuardRemoved ¶
func (_m *IOrigin) WatchGuardRemoved(opts *bind.WatchOpts, sink chan<- *origin.OriginGuardRemoved) (event.Subscription, error)
WatchGuardRemoved provides a mock function with given fields: opts, sink
func (*IOrigin) WatchGuardSlashed ¶ added in v0.0.5
func (_m *IOrigin) WatchGuardSlashed(opts *bind.WatchOpts, sink chan<- *origin.OriginGuardSlashed, guard []common.Address, reporter []common.Address) (event.Subscription, error)
WatchGuardSlashed provides a mock function with given fields: opts, sink, guard, reporter
func (*IOrigin) WatchIncorrectReport ¶ added in v0.0.5
func (_m *IOrigin) WatchIncorrectReport(opts *bind.WatchOpts, sink chan<- *origin.OriginIncorrectReport, guard []common.Address) (event.Subscription, error)
WatchIncorrectReport provides a mock function with given fields: opts, sink, guard
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) WatchNewNotaryManager ¶
func (_m *IOrigin) WatchNewNotaryManager(opts *bind.WatchOpts, sink chan<- *origin.OriginNewNotaryManager) (event.Subscription, error)
WatchNewNotaryManager provides a mock function with given fields: opts, sink
func (*IOrigin) WatchNotaryAdded ¶ added in v0.0.10
func (_m *IOrigin) WatchNotaryAdded(opts *bind.WatchOpts, sink chan<- *origin.OriginNotaryAdded, domain []uint32) (event.Subscription, error)
WatchNotaryAdded provides a mock function with given fields: opts, sink, domain
func (*IOrigin) WatchNotaryRemoved ¶ added in v0.0.10
func (_m *IOrigin) WatchNotaryRemoved(opts *bind.WatchOpts, sink chan<- *origin.OriginNotaryRemoved, domain []uint32) (event.Subscription, error)
WatchNotaryRemoved provides a mock function with given fields: opts, sink, domain
func (*IOrigin) WatchNotarySlashed ¶
func (_m *IOrigin) WatchNotarySlashed(opts *bind.WatchOpts, sink chan<- *origin.OriginNotarySlashed, notary []common.Address, guard []common.Address, reporter []common.Address) (event.Subscription, error)
WatchNotarySlashed provides a mock function with given fields: opts, sink, notary, guard, reporter
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