-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Blockchain Transaction Event (#1787)
What's going on? A user can upload any transaction receipt to their user stream, the transaction must - exist on chain - have at least 1 confirmation - blocknumber, log count, log bytes, topic count, topic bytes, log data bytes, and the to and from addresses must match - the receipt must be from a wallet that is linked to the user's root key - not already uploaded If a user uploads a Tip, the node will - verify metadata about the tip (still todo) - forward a Tip_Received event to the recipient's user stream - forward the original tip transaction to the channel stream This will allow us to render tips in real time in the app, and receive push notifications just like we do for emojis. New types - blockchain transaction - blockchain transaction receipt - blockchain transaction kind - two user payloads - one member payload (generic across all streams) New tech - i updated the can add event return values to include a "verifyReceipt" param - i added a new chain auth type that just checks to see if a wallet is linked to the principal. Still todo in a follow up - tip receipt validation. I need to parse out the values from the receipt logs and make sure they match what's in the event metadata - user and channel stream message tests. I have stubs written, but not there yet. - snapshotting relevant data
- Loading branch information
Showing
21 changed files
with
3,401 additions
and
1,620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.