Git Product home page Git Product logo

cryptometa's Introduction

cryptometa

Public repository used by ViewBlock to display token information and compute score

How to use in your app

Thanks to our auto-updated CDN, you can add any chain and token icons in your app seamlessly using the following url:

https://meta.viewblock.io/{key}/logo

The key accepts different formats chainSymbol, chainName, chainSymbol.tokenHash, for example:

<img src="https://meta.viewblock.io/BTC/logo" />
<img src="https://meta.viewblock.io/zilliqa/logo" />
<img src="https://meta.viewblock.io/AR.usjm4PCxUd5mtaon7zc97-dt-3qf67yPyqgzLnLqk5A/logo" />

The CDN will automatically route to the right icon, SVG if existing or PNG fallback.

Another cool thing is our dark support. Let's say you have a dark theme, we have some icons specially made for this case. You simply need to add the ?t=dark query parameter:

<img src="https://meta.viewblock.io/AR.usjm4PCxUd5mtaon7zc97-dt-3qf67yPyqgzLnLqk5A/logo?t=dark" />

If the image has a dark alternative, that's what you will get otherwise it will fallback to the default one.

How to add/update your token

  • Fork the repo
  • Create a folder in the appropriate chain folder named after your contract address
  • Your image must be either SVG or PNG 100x100 to 500x500 (max 40kb) and named logo.<extension> (do not base64 encode your PNG in a SVG)
  • Add information of your project using the following spec:
Param Type Required Points Notes
name String true
symbol String true
web String false 5
decimals Number false
supply Number false
email String false Email of the team
whitepaper String false 10 Link to the WP
holders Bool false 10 Only specify if more than 1000 holders without airdrops
publicTeam Bool false 20 Teams members with public profiles, non-anon
product Bool false 30 Usable product on mainnet with decent activity and users giving token utility
links.research String false 10 Either binance research, TokenData or the like
links.github String false 10 Org or account with repos related to the project
links.linkedin String false 10
links.twitter String false 5
links.coinmarketcap String false
links.coingecko String false
links.medium String false
links.blog String false
links.telegram String false
links.discord String false
links.facebook String false
links.reddit String false
links.youtube String false
links.instagram String false
  • No need to calculate and specify the score yourself, as it will be automatically generated based on the provided properties
  • Create and submit a PR

Upon disagreements as to which property a token has/deserves, remember that we ultimately have the final say in order to protect people as much as we can.

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.