Altalogy / tari

The Tari protocol
https://tari.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

feat(launchpad): stream wallet events to front-end #213

Closed alex1307 closed 2 years ago

alex1307 commented 2 years ago

Description

Provide a new Tari event stream for:

Expose a streaming interface for all data we log using. Create grpc TransactionEvent model and implement grpc streaming endpoint. Forward logging data from notifier(app. logger) to the grpc streaming service. Map the logging data to TransactionEvent model (Vec -> TransactionEvent)

Refactoring mapping Transaction -> Vec -> TransactionEvent with enum. Refactoring EVENT_LISTENER tuple with struct Wallet Event Listener

Motivation and Context The launchpad users want to see the actual mining progress and all mining relalted events on the UI. Hence we should forward the data/log streams from the underlying apps to the front-end.

How Has This Been Tested?

!!! TO_DO: The change IS NOT TESTED. The change should be tested manually along with base node, tor, and launchpad.

alex1307 commented 2 years ago

The PR has unsigned commits. New PR is created.