Documentation ¶
Index ¶
- Constants
- func PublishBlockEvents(blockApplied *publisherBlockApplied, publish func(*ISCEvent), ...)
- type Events
- type ISCEvent
- type PublishedEvent
- type Publisher
- func (p *Publisher) AccessNodesUpdated(chainID isc.ChainID, accessNodes []*cryptolib.PublicKey)
- func (p *Publisher) BlockApplied(chainID isc.ChainID, block state.Block)
- func (p *Publisher) Run(ctx context.Context)
- func (p *Publisher) ServerNodesUpdated(chainID isc.ChainID, serverNodes []*cryptolib.PublicKey)
Constants ¶
View Source
const ( ISCEventKindNewBlock = "new_block" ISCEventKindReceipt = "receipt" // issuer will be the request sender ISCEventKindSmartContract = "contract" )
View Source
const ISCEventIssuerVM = "vm"
Variables ¶
This section is empty.
Functions ¶
func PublishBlockEvents ¶ added in v1.0.3
func PublishBlockEvents(blockApplied *publisherBlockApplied, publish func(*ISCEvent), log *logger.Logger)
PublishBlockEvents extracts the events from a block, its returns a chan of ISCEvents so they can be filtered
Types ¶
type ISCEvent ¶ added in v1.0.3
type PublishedEvent ¶
PublishedEvent contains the information about the published message.
type Publisher ¶ added in v1.0.3
type Publisher struct { Events *Events // contains filtered or unexported fields }
func (*Publisher) AccessNodesUpdated ¶ added in v1.0.3
Implements the chain.ChainListener interface. NOTE: Do not block the caller!
func (*Publisher) BlockApplied ¶ added in v1.0.3
Implements the chain.ChainListener interface. NOTE: Do not block the caller!
Click to show internal directories.
Click to hide internal directories.