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
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
, orUnbond.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