hypha-dao / hashed-wallet

Hashed Wallet
MIT License
3 stars 3 forks source link

[2/2] Feature/switch network #179

Closed n13 closed 1 year ago

n13 commented 1 year ago

🗃 Github Issue Or Explanation for this PR. (What is it supposed to do and Why is needed)

Switching network Getting token models from network Showing token model depending on network

Refactoring the token list since the way it works is very different on Polkadot

✅ Checklist

🕵️‍♂️ Notes for Code Reviewer

Before: Tokens list hard-coded After: On connecting to a new chain, we fetch the list of tokens

I am not sure how to get balances for multiple tokens, need to find a way to do that.

But this is already a huge PR.

🙈 Screenshots

Switch successful

Simulator Screen Shot - iPhone 14 - 2022-11-28 at 14 49 34

Shows "DOT" token - symbol loaded from chain properties.

Simulator Screen Shot - iPhone 14 - 2022-11-28 at 14 49 44

👯‍♀️ Paired with