Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventListener ¶
type MessageHandler ¶
type ProposalExecutor ¶
type SubstrateChain ¶
type SubstrateChain struct {
// contains filtered or unexported fields
}
func NewSubstrateChain ¶
func NewSubstrateChain(listener EventListener, messageHandler MessageHandler, executor ProposalExecutor, domainID uint8, startBlock *big.Int) *SubstrateChain
func (*SubstrateChain) DomainID ¶
func (c *SubstrateChain) DomainID() uint8
func (*SubstrateChain) PollEvents ¶
func (c *SubstrateChain) PollEvents(ctx context.Context)
PollEvents is the goroutine that polls blocks and searches Deposit events in them. Events are then sent to eventsChan.
func (*SubstrateChain) ReceiveMessage ¶
Click to show internal directories.
Click to hide internal directories.