AlphaWallet / alpha-wallet-ios

An advanced Ethereum/EVM mobile wallet
https://www.alphawallet.com
MIT License
597 stars 372 forks source link

Umbrella issue for using token mapping #3496

Open hboon opened 2 years ago

hboon commented 2 years ago

More:

colourfreak commented 2 years ago

First usage: A network icon in a corner of each token

So we have this small network icon in the bottom left corner of each token.

https://zpl.io/aB3X98k

Screenshot 2021-12-01 at 10 03 42

It's 16x16.

This is an example:

Screenshot 2021-12-01 at 09 41 19

And this is our goal:

Screenshot 2021-12-01 at 09 28 37

Network icons: https://zpl.io/agE1LeZ

colourfreak commented 2 years ago

Second usage The token symbol is only uploaded once and reused if there is the same token on a different network.

That means that I can remove all uploads from iconassets that were related to BSC, Polygon, Heco, etc. and upload only one token icon without any network icon in a corner (Mainnet Ethereum).

hboon commented 2 years ago

@JamesSmartCell umbrella issue

colourfreak commented 2 years ago

@hboon Can you go ahead and make an order with current iconsets? Let's chat about it on Discord.

hboon commented 2 years ago

Sure, let's chat. But what do you mean by "make an order with current iconsets" ?

colourfreak commented 2 years ago

Sure, let's chat. But what do you mean by "make an order with current iconsets" ?

So currently all BSC, Heco, Polygon tokens uploaded to iconassets (sorry, missed this with iconsets) have this small network icon already there. It might look weird sometimes if we have this network icon inside a graphical file and as another layer.

Example: https://github.com/AlphaWallet/iconassets/blob/master/0x2170Ed0880ac9A755fd29B2688956BD959F933F8/logo.png

hboon commented 2 years ago

@colourfreak ok. Let me think a bit about what’s the easiest way to do this. Will get back to you tomorrow. Feel free to update the icons locally first, but don’t upload yet.

hboon commented 2 years ago

Here's how I suggest we do it.

Tomek:

  1. Download the entire iconassets repo by going to https://github.com/AlphaWallet/iconassets, click the green Code button, Download ZIP.
  2. Modify the relevant icon files to remove the chain overlay
  3. Zip it up, send it to Boon
  4. Also update the native token icons (e.g Ethereum) to remove the chain overlays. These are bundled with the apps.

Boon:

  1. Create a single commit based on the updated image files to update the iconassets repo based on the updated zip

Boon and James

  1. Update the app to overlay the chain icons for both icons from iconsassets repo and those embedded in the app
  2. Ship updated apps

I had thought to do this in a proper way because doing it like above will result in a window between 5 and 7 where the icons from iconassets don't have their chain overlay, but I think it's too slow and we are dragging it out, so let's just get it done.

How does that sound @colourfreak?

colourfreak commented 2 years ago

Sounds good. I am on it. @hboon

hboon commented 2 years ago

@colourfreak sorry, one more (on mobile). The little chain icons to bundle with the app. Not sure we already have them in the app.

colourfreak commented 2 years ago

Network icons: https://zpl.io/agE1LeZ

This one?

hboon commented 2 years ago

This one?

@colourfreak yes. Thanks.

colourfreak commented 2 years ago

iconassets-master.zip

@hboon

hboon commented 2 years ago

@colourfreak got it. Thanks!