Build-Squad / wuphf-moments

NFT price alerts on the Flow blockchain. Made during the Flow Hackathon https://devfolio.co/projects/wuphfmoments-5ee1
0 stars 0 forks source link

Alerts persistance #13

Open challet opened 1 year ago

challet commented 1 year ago

Currently the alerts displayed are the one that had happened since the user opened the page. Will there be a way for the backend to store the events and show them to the user once they return to the website ?

challet commented 1 year ago

It could be paired with the Push API which doesn't need the page to be opened, contrary to the Notification API

AmarildoGrembi commented 1 year ago

hmm, what about on-chain alerts? 🤔 💭

challet commented 1 year ago

hmm, what about on-chain alerts? 🤔 💭

That's a great idea, and to fully use the potential of it, it should be handled by a smart contract which does more then storing data coming from an external source (the indexer). The triggering part would be kept as originating from the indexer, but a second fetching of source data would be made from the contract to build the stored alert. That would ensure (from a user point of view) that they come from known data and process. Does that make sense ?

AmarildoGrembi commented 1 year ago

hmm, what about on-chain alerts? 🤔 💭

That's a great idea, and to fully use the potential of it, it should be handled by a smart contract which does more then storing data coming from an external source (the indexer). The triggering part would be kept as originating from the indexer, but a second fetching of source data would be made from the contract to build the stored alert. That would ensure (from a user point of view) that they come from known data and process. Does that make sense ?

Absolutely! what do you guys think of this idea @m-Peter @maggo ?