@manahippo/coin-list
v4.1.32
Published
1. fork repo 2. add `TOKEN_ICON.svg` (no larger than 100x100) to `icons` folder 3. add `RawCoinInfo` to [requestList.ts](https://github.com/hippospace/aptos-coin-list/blob/main/src/requestList.ts) - try adding it to a random location in `requestList.ts`
Downloads
1,821
Readme
How to add to this coin list
- fork repo
- add
TOKEN_ICON.svg
(no larger than 100x100) toicons
folder - add
RawCoinInfo
to requestList.ts
- try adding it to a random location in
requestList.ts
, otherwise it will cause merge conflict - for
unique_index
, just pick a random number that hasn't been used yet
- PR
- Shout in TG
Permissioned v.s. Permissionless listing
Getting into the permissionless list is easy. Just follow the steps above. Do note that, to avoid spam, we may require a small fee in the future for permissionless listing.
Getting into the permissioned list requires that you establish enough brand presence and credibility within the Aptos ecosystem first. For example, you need to have been at least active enough to have already been added to one of those private Aptos Ecosystem telegram groups.
Fetching list
You can use the client provided to fetch an updated list from the chain, or you could fetch the json file from github directly:
Displaying RawCoinInfo
We recommend frontends display the following information for each coin:
name
: full coin name, usually includes project nameofficial_symbol
orsymbol
orhippo_symbol
orpancake_symbol
logo_url
: coin logo
official_symbol
or symbol
or hippo_symbol
or pancake_symbol
Aptos started out in a state where different protocols used different symbols for the same bridged token. This set of four symbols tries to capture all that variety in how coin symbols are displayed across the aptos ecosystem.
official_symbol
: this is the symbol registered by the token minter onchainsymbol
: similar toofficial_symbol
, except if the coin is bridged from wormhole or layerzero. Layerzero coins are prefixed withz
and many wormhole symbols are unprefixedhippo_symbol
: similar toofficial_symbol
, except: layerzero symbols usez
prefix and wormhole symbols usew
prefixpancake_symbol
: similar toofficial_symbol
, except: layerzero symbols uselz
prefix and wormhole symbols usewh
prefix
RawCoininfo
In a complete RawCoinInfo
, we have these fields:
name
: coin name, preferrably include project namesymbol
: globally unique symbol within this coin registryofficial_symbol
: same asaptos_framework::coin::CoinInfo.symbol
, duplicates allowedcoingecko_id
: coingecko id. May be used by various clients to look up coin pricelogo_url
: URL to token logo, preferrably a githubusercontent urlproject_url
: URL to projecttoken_type
: token address infoextensions
: other informal info that you want to add, in the form of a list of string-string key-value pairs. Obsolete, no maintenance requiredunique_index
: a unique numeric index within this list. There is any logical relationship with the token information, only need to ensure the uniquenesssource
: indicates if the token is from a bridge or nativehippo_symbol
: hippo-style prefixed symbols (wormhole uses "w" prefix, layerzero uses "z" prefix)pancake_symbol
: pancake-style prefixed symbols (wormhole uses "wh" prefix, layerzero uses "lz" prefix)
Example:
{
"name": "Aptos Coin",
"symbol": "APT",
"official_symbol": "APT",
"coingecko_id": "aptos",
"decimals": 8,
"logo_url": "https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/APT.webp",
"project_url": "https://aptoslabs.com/",
"token_type": {
"type": "0x1::aptos_coin::AptosCoin",
"account_address": "0x1",
"module_name": "aptos_coin",
"struct_name": "AptosCoin"
},
"extensions": {
"data": [
[
"bridge",
"native"
]
]
},
"unique_index": 1,
"source": "native",
"permissioned_listing": true
},