greymass / unicove

Unicove - Antelope Web Wallet 🦄
https://unicove.com
Other
20 stars 10 forks source link

Update the balance provider for multiple APIs #137

Closed aaroncox closed 1 year ago

aaroncox commented 2 years ago

The balance provider now:

https://github.com/greymass/unicove/blob/dev/src/stores/balances-provider.ts

The balance provider already starts abstracting it a bit here:

https://github.com/greymass/unicove/blob/dev/src/stores/balances-provider.ts#L61-L69

The bloks.io API code is just generic and placed in the same file. It should named better and potentially in its own file as a standardized interface. The light api code should then be created in a similar way with the same interface.