Documentation ¶
Index ¶
- type Members
- type Service
- func (bsc *Service) Address() common.Address
- func (bsc *Service) GetClient() client.Core
- func (bsc *Service) GetMembers() []string
- func (bsc *Service) HasValidSignaturesLength(signaturesLength *big.Int) (bool, error)
- func (bsc *Service) IsMember(address string) bool
- func (bsc *Service) ParseBurnERC721Log(log types.Log) (*router.RouterBurnERC721, error)
- func (bsc *Service) ParseBurnLog(log types.Log) (*router.RouterBurn, error)
- func (bsc *Service) ParseLockLog(log types.Log) (*router.RouterLock, error)
- func (bsc *Service) ParseMintLog(log types.Log) (*router.RouterMint, error)
- func (bsc *Service) ParseUnlockLog(log types.Log) (*router.RouterUnlock, error)
- func (bsc *Service) ReloadMembers()
- func (bsc *Service) WatchBurnEventLogs(opts *bind.WatchOpts, sink chan<- *router.RouterBurn) (event.Subscription, error)
- func (bsc *Service) WatchLockEventLogs(opts *bind.WatchOpts, sink chan<- *router.RouterLock) (event.Subscription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func NewService ¶
NewService creates new instance of a Contract Services based on the provided configuration
func (*Service) GetMembers ¶
GetMembers returns the array of bridge members currently set in the Bridge contract
func (*Service) HasValidSignaturesLength ¶ added in v1.4.0
HasValidSignaturesLength returns whether the signatures are enough for submission
func (*Service) IsMember ¶
IsMember returns true/false depending on whether the provided address is a Bridge member or not
func (*Service) ParseBurnERC721Log ¶ added in v1.4.0
ParseBurnERC721Log parses a general typed log to a BurnERC721event
func (*Service) ParseBurnLog ¶ added in v1.4.0
ParseBurnLog parses a general typed log to a RouterBurn event
func (*Service) ParseLockLog ¶ added in v1.4.0
ParseLockLog parses a general typed log to a RouterLock event
func (*Service) ParseMintLog ¶ added in v1.4.0
ParseMintLog parses a general typed log to a RouterMint event
func (*Service) ParseUnlockLog ¶ added in v1.4.0
ParseUnlockLog parses a general typed log to a RouterUnlock event
func (*Service) ReloadMembers ¶ added in v1.4.0
func (bsc *Service) ReloadMembers()
func (*Service) WatchBurnEventLogs ¶
func (bsc *Service) WatchBurnEventLogs(opts *bind.WatchOpts, sink chan<- *router.RouterBurn) (event.Subscription, error)
WatchBurnEventLogs creates a subscription for Burn Events emitted in the Bridge contract
func (*Service) WatchLockEventLogs ¶ added in v1.4.0
func (bsc *Service) WatchLockEventLogs(opts *bind.WatchOpts, sink chan<- *router.RouterLock) (event.Subscription, error)