pendulum-chain / pendulum-webapp

Repository for the testnet prototype of the Pendulum web application
GNU General Public License v3.0
1 stars 0 forks source link

Subscribe to balance changes #25

Closed gonzamontiel closed 2 years ago

gonzamontiel commented 2 years ago

Introduced new API function:

async bindToBalance(address: string, assetCode: string, callback: (newVal: any) => void) {}

So components can subscribe to changes and provide a callback to update the balance, etc.

gonzamontiel commented 2 years ago

Closes #23