anoma / namada-interface

Apache License 2.0
77 stars 101 forks source link

Refactor Notifications and adding polling #838

Closed pedrorezende closed 4 months ago

pedrorezende commented 4 months ago

This PR refactors toast notifications, reinserting events into transaction stages. It adds base events for four types of transactions: Bond, Unbond, ReDelegate and Withdraw, each one containing three different states that could be combined with: Pending, Success, and Error (ex: Bond.Success, or Unbond.Error ).

This PR also adds a temporary solution for updating the balance after a transaction is dispatched. Now the interface polls the rpc endpoint for a few seconds after a Success event is dispatched. A new issue was opened to refactor this in the future: #837

Fixes #789 Fixes #830

github-actions[bot] commented 4 months ago

🚀 Deployed on https://pull-request-838--wallet-development-heliax-dev.netlify.app