Giter Club home page Giter Club 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 lowercased (i.e. not apply EIP55) 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, all lowercased eg: BUSD 0xe9e7cea3dedca5984780bafc599bd69add087d56, not 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56
> mkdir 0xe9e7cea3dedca5984780bafc599bd69add087d56
  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

allaboutcrypto22 avatar an-ivannikov avatar colourfreak avatar eviltofu avatar hboon avatar htsupk avatar jamessmartcell avatar jinkjonks avatar nicodfs avatar oa-s avatar pibdt avatar smcp1234 avatar trytryx avatar wobytesglobal avatar worldwidetecnoplacedev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iconassets's Issues

Add a token icon that is included in token mapping

After we did the clean up in https://github.com/AlphaWallet/tokens/issues/1#issuecomment-1014318436, the token mapping is much smaller (attached at the bottom).

Wanting to start work on AlphaWallet/alpha-wallet-ios#3636, but that aren't any tokens icons in https://github.com/AlphaWallet/iconassets for any of these icons. Would you help to add at least one? eg. add for mainnet https://etherscan.io/token/0x21bfbda47a0b4b5b1248c767ee49f7caa9b23697 and we will automatically use it for https://polygonscan.com/token/0x1631244689EC1fEcbDD22fb5916E920dFC9b8D30 (this mapping is the first entry below).

The cleaned up token mapping:

[
    {
        "contracts": [
            {"address": "0x21bfbda47a0b4b5b1248c767ee49f7caa9b23697", "chainId": 1},
            {"address": "0x1631244689EC1fEcbDD22fb5916E920dFC9b8D30", "chainId": 137},
            {
                "address": "0x55704A0e9E2eb59E176C5b69655DbD3DCDCFc0F0",
                "chainId": 42161
            }
        ],
        "group": "Governance"
    },
    {
        "contracts": [
            {"address": "0x7f3edcdd180dbe4819bd98fee8929b5cedb3adeb", "chainId": 1},
            {"address": "0x22308317A4aA9e8196065E0b3647e582d44c4d7b", "chainId": 137},
            {
                "address": "0xF0A5717Ec0883eE56438932b0fe4A20822735fBa",
                "chainId": 42161
            }
        ],
        "group": "DeFi"
    },
    {
        "contracts": [
            {"address": "0x429876c4a6f89fb470e92456b8313879df98b63c", "chainId": 1},
            {"address": "0xD1e6354fb05bF72A8909266203dAb80947dcEccF", "chainId": 137},
            {
                "address": "0x989D099d29F62b839C8CbD41c82c6554a5515752",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x12d102f06da35cc0111eb58017fd2cd28537d0e1", "chainId": 1},
            {"address": "0x7Dd3D9E1868A7dA87509A601E7dbBf938c819a32", "chainId": 137},
            {
                "address": "0x2eD14d1788dfB780fD216706096AeD018514ECcd",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x8185bc4757572da2a610f887561c32298f1a5748", "chainId": 1},
            {"address": "0xa8fcEe762642f156b5D757b6FabC36E06b6d4A1A", "chainId": 137},
            {
                "address": "0x9b3fa2A7C3EB36d048A5d38d81E7fAFC6bc47B25",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x595832f8fc6bf59c85c527fec3740a1b7a361269", "chainId": 1},
            {"address": "0x0AaB8DC887D34f00D50E19aee48371a941390d14", "chainId": 137},
            {
                "address": "0x4e91F2AF1ee0F84B529478f19794F5AFD423e4A6",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x03ab458634910aad20ef5f1c8ee96f1d6ac54919", "chainId": 1},
            {"address": "0x00e5646f60AC6Fb446f621d146B6E1886f002905", "chainId": 137},
            {
                "address": "0xaeF5bbcbFa438519a5ea80B4c7181B4E78d419f2",
                "chainId": 42161
            },
            {"address": "0xa71353bb71dda105d383b02fc2dd172c4d39ef8b", "chainId": 250}
        ],
        "group": "DeFi"
    },
    {
        "contracts": [
            {"address": "0x7b35ce522cb72e4077baeb96cb923a5529764a00", "chainId": 1},
            {"address": "0x60bB3D364B765C497C8cE50AE0Ae3f0882c5bD05", "chainId": 137},
            {
                "address": "0x9c67eE39e3C4954396b9142010653F17257dd39C",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0xa2120b9e674d3fc3875f415a7df52e382f141225", "chainId": 1},
            {"address": "0x0df0f72EE0e5c9B7ca761ECec42754992B2Da5BF", "chainId": 137},
            {
                "address": "0xAC9Ac2C17cdFED4AbC80A53c5553388575714d03",
                "chainId": 42161
            }
        ],
        "group": "DeFi"
    },
    {
        "contracts": [
            {"address": "0xddb3422497e61e13543bea06989c0789117555c5", "chainId": 1},
            {
                "address": "0x6FE14d3CC2f7bDdffBa5CdB3BBE7467dd81ea101",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x4e0fca55a6c3a94720ded91153a27f60e26b9aa8", "chainId": 1},
            {
                "address": "0xd44e8F8768D4ed25119921a53802D8758A5b20dD",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0xd33526068d116ce69f19a9ee46f0bd304f21a51f", "chainId": 1},
            {
                "address": "0xB766039cc6DB368759C1E56B79AFfE831d0Cc507",
                "chainId": 42161
            }
        ],
        "group": "DeFi"
    },
    {
        "contracts": [
            {"address": "0x0000000000095413afc295d19edeb1ad7b71c952", "chainId": 1},
            {
                "address": "0x55678cd083fcDC2947a0Df635c93C838C89454A3",
                "chainId": 42161
            }
        ],
        "group": "DeFi"
    },
    {
        "contracts": [
            {"address": "0xfc82bb4ba86045af6f327323a46e80412b91b27d", "chainId": 1},
            {
                "address": "0xCd0Bb43a0d0497dB701C9147588A12666155010a",
                "chainId": 42161
            },
            {"address": "0xaf53d56ff99f1322515e54fdde93ff8b3b7dafd5", "chainId": 56}
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0xc40f23a3e9613e012944f7957edce97899fa920d", "chainId": 1},
            {
                "address": "0x02DB1d8f4acE29eF744E5B6A96a534732Ab1f922",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0xdecade1c6bf2cd9fb89afad73e4a519c867adcf5", "chainId": 1},
            {
                "address": "0xA0459eDcAd5AAC14dC32775d22fF7Bd33027cAc7",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x043c308bb8a5ae96d0093444be7f56459f1340b1", "chainId": 1},
            {
                "address": "0x20f9628a485ebCc566622314f6e07E7Ee61fF332",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x97872eafd79940c7b24f7bcc1eadb1457347adc9", "chainId": 1},
            {
                "address": "0x326c33FD1113c1F29B35B4407F3d6312a8518431",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x8d610e20481f4c4f3acb87bba9c46bef7795fdfe", "chainId": 1},
            {
                "address": "0x250F471385894fc81183a99d6fDe8CE9C5B142d6",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x9b99cca871be05119b2012fd4474731dd653febe", "chainId": 1},
            {
                "address": "0xaaA62D9584Cbe8e4D68A43ec91BfF4fF1fAdB202",
                "chainId": 42161
            }
        ],
        "group": "Governance"
    },
    {
        "contracts": [
            {"address": "0x0e192d382a36de7011f795acc4391cd302003606", "chainId": 1},
            {
                "address": "0x488cc08935458403a0458e45E20c0159c8AB2c92",
                "chainId": 42161
            }
        ],
        "group": "Governance"
    },
    {
        "contracts": [
            {"address": "0x9c4a4204b79dd291d6b6571c5be8bbcd0622f050", "chainId": 1},
            {
                "address": "0xA72159FC390f0E3C6D415e658264c7c4051E9b87",
                "chainId": 42161
            }
        ],
        "group": "Governance"
    },
    {
        "contracts": [
            {"address": "0x431ad2ff6a9c365805ebad47ee021148d6f7dbe0", "chainId": 1},
            {
                "address": "0xaE6aab43C4f3E0cea4Ab83752C278f8dEbabA689",
                "chainId": 42161
            }
        ],
        "group": "DeFi"
    },
    {
        "contracts": [
            {"address": "0x3af33bef05c2dcb3c7288b77fe1c8d2aeba4d789", "chainId": 1},
            {
                "address": "0x55fF62567f09906A85183b866dF84bf599a4bf70",
                "chainId": 42161
            }
        ],
        "group": "Assets"
    },
    {
        "contracts": [
            {"address": "0x0ff5a8451a839f5f0bb3562689d9a44089738d11", "chainId": 1},
            {
                "address": "0x32Eb7902D4134bf98A28b963D26de779AF92A212",
                "chainId": 42161
            }
        ],
        "group": "DeFi"
    },
    {
        "contracts": [
            {"address": "0xeec2be5c91ae7f8a338e1e5f3b5de49d07afdc81", "chainId": 1},
            {
                "address": "0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55",
                "chainId": 42161
            }
        ],
        "group": "DeFi"
    },
    {
        "contracts": [
            {"address": "0xb0c7a3ba49c7a6eaba6cd4a96c55a1391070ac9a", "chainId": 1},
            {
                "address": "0x539bdE0d7Dbd336b79148AA742883198BBF60342",
                "chainId": 42161
            }
        ],
        "group": "Governance"
    },
    {
        "contracts": [
            {"address": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "chainId": 1},
            {"address": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", "chainId": 10}
        ]
    },
    {
        "contracts": [
            {"address": "0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919", "chainId": 1},
            {"address": "0x7FB688CCf682d58f86D7e38e03f9D22e7705448B", "chainId": 10}
        ]
    },
    {
        "contracts": [
            {"address": "0xD533a949740bb3306d119CC777fa900bA034cd52", "chainId": 1},
            {"address": "0x1e4f97b9f9f913c46f1632781732927b9019c68b", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0xA8e7AD77C60eE6f30BaC54E2E7c0617Bd7B5A03E", "chainId": 1},
            {"address": "0x2f60c28fb2fdc90a2a5644442d0f6d8998101e76", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x0c7D5ae016f806603CB1782bEa29AC69471CAb9c", "chainId": 1},
            {"address": "0x84c882a4d8eb448ce086ea19418ca0f32f106117", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0xa283aA7CfBB27EF0cfBcb2493dD9F4330E0fd304", "chainId": 1},
            {"address": "0xbfaf328fe059c53d936876141f38089df0d1503d", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x2ba592F78dB6436527729929AAf6c908497cB200", "chainId": 1},
            {"address": "0x657a1861c15a3ded9af0b6799a195a249ebdcbc6", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x584bC13c7D411c00c01A62e8019472dE68768430", "chainId": 1},
            {"address": "0x44b26e839eb3572c5e959f994804a5de66600349", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0xD291E7a03283640FDc51b121aC401383A46cC623", "chainId": 1},
            {"address": "0xcf726a06f3dcec8ef2b033336d138caa0eae5af2", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x3fa400483487A489EC9b1dB29C4129063EEC4654", "chainId": 1},
            {"address": "0x627524d78b4fc840c887ffec90563c7a42b671fd", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x4D2eE5DAe46C86DA2FF521F7657dad98834f97b8", "chainId": 1},
            {"address": "0x8063115941e612021692f28748ab1ff56c23e4c6", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x19D97D8fA813EE2f51aD4B4e04EA08bAf4DFfC28", "chainId": 1},
            {"address": "0x1f7216fdb338247512ec99715587bb97bbf96eae", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x3472A5A71965499acd81997a54BBA8D852C6E53d", "chainId": 1},
            {"address": "0x753fbc5800a8c8e3fb6dc6415810d627a387dfc9", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e", "chainId": 1},
            {"address": "0x29b0da86e484e1c0029b56e817912d778ac0ec69", "chainId": 250},
            {"address": "0xc396b190f251d7f79c583fd06347a09781f085c9", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "", "chainId": 1},
            {"address": "0xb688e18f34e6e424c44b247318f22367ed7df3e2", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x12D102F06da35cC0111EB58017fd2Cd28537d0e1", "chainId": 1},
            {"address": "0x74b4db963738a2a95bfcb1833b123495ccc220e2", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0xa7DE087329BFcda5639247F96140f9DAbe3DeED1", "chainId": 1},
            {"address": "0x89d5e71e275b4be094df9551627bcf4e3b24ce22", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x054D64b73d3D8A21Af3D764eFd76bCaA774f3Bb2", "chainId": 1},
            {"address": "0x3b42fd538597fd049648c9f017208bf712195b73", "chainId": 250}
        ]
    },
    {
        "contracts": [
            {"address": "0x4AaC461C86aBfA71e9d00d9a2cde8d74E4E1aeEa", "chainId": 1},
            {
                "address": "0x14B1f37c46ECf29C9657585DF0Dd7CEe1eC7C569",
                "chainId": 43114
            }
        ]
    }
]

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.