Giter Site home page Giter Site logo

iconassets's Introduction

Iconassets

Icon repo for AlphaWallet UI improvement.

Acts as a repo for holding icons for contracts not covered by our existing sources, and is implemented on both platforms.

The icon selection look like this:

(process was re-ordered to improve wallet aesthetics)

  1. If base chain, use SVG icon from the built-in asset (eg Eth, xDai).
  2. Try iconassets here, if found use the graphic asset from this repo.
  3. Try Trust icon asset repo, if found use the graphic.
  4. If no asset found, render a text icon using the Token Symbol name if appropriate.

This applies to all chains on the basis that if contracts are the same on different networks they are owned by the same key holder.

There is no chain restriction because there should never be an address collision between chains unless the contract is created from the same key and same nonce.

The checking address should be in this format:

https://raw.githubusercontent.com/alphawallet/iconassets/master/YOUR_TOKEN_ADDRESS_HERE/logo.png

Note that the address needs to be checksummed eg:

https://raw.githubusercontent.com/alphawallet/iconassets/master/0xe52eCd3d16E7b194ad16a8C338b1805fE3F66644/logo.png

How to add new assets

  1. clone the repo > git clone https://github.com/AlphaWallet/iconassets.git
  2. add a directory with the name of your address; checksummed eg: BUSD 0xe9e7cea3dedca5984780bafc599bd69add087d56 to find checksum address enter the address into Etherscan: https://etherscan.io/address/0xe9e7cea3dedca5984780bafc599bd69add087d56 then click on the 'copy address to clipboard' icon at the top, right of the displayed address:

> mkdir 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56 <-- notice the mix of upper and lowercase. If not checksummed, lookup won't work.

  1. Copy the logo into this directory as logo.png which should be in PNG/JPG format, preferrably around 3k -> 9k size; 128 x 128 pixels is found to be ideal.
Directory: /dev/iconassets/0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         7/06/2021   5:31 PM           3128 logo.png

Then commit changes as normal.

iconassets's People

Contributors

colourfreak avatar jamessmartcell avatar hboon avatar an-ivannikov avatar oa-s avatar jinkjonks avatar espoir1989 avatar htsupk avatar worldwidetecnoplacedev avatar trytryx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.