/networklist-org

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Description

This is the repo for TokenPocket to add public chains according to the community requirements. Once the PR is merged, the chain will be included on TokenPocket's Easy Add feature. You can also visit the entrance of the custom network in https://chainlist.tokenpocket.pro/. For adding more network data, please read the following tutorials.

Listing and donation standard

https://help.tokenpocket.pro/developer-en/network/add-chain

A donation is needed for your PR to be merged. If your PR is not compatible with the Review Rules, it won't be merged and the donation won't be refunded. Please be cautious.

简介

本仓库为TokenPocket根据社区需求进行自定义网络(公链)更新,只要PR被合并就可以在自定义网络--快捷加链的列表中收录,同时,你也可在 https://chainlist.tokenpocket.pro/ 中查看自定义网络的添加入口。添加更多网络信息,请根据以下指引进行提交。

公链收录审核及捐赠标准

https://help.tokenpocket.pro/developer-cn/public-chain/add-chain

提交PR合并需要捐赠,如果不满足审核要求,则不进行合并,捐赠不会进行退回,请您按需进行提交。

How to add a new chain

Fork this repo and add your evm chain info into chains.json

Example:

{
    "name": "xDAI Chain",
    "chainId": 100,
    "shortName": "xdai",
    "chain": "XDAI",
    "network": "mainnet",
    "networkId": 100,
    "nativeCurrency": {
        "name": "xDAI",
        "symbol": "xDAI",
        "decimals": 18
    },
    "rpc": [
        "https://rpc.xdaichain.com",
        "https://xdai.poanetwork.dev",
        "wss://rpc.xdaichain.com/wss",
        "wss://xdai.poanetwork.dev/wss",
        "http://xdai.poanetwork.dev",
        "https://dai.poa.network",
        "ws://xdai.poanetwork.dev:8546"
    ],
    "faucets": [],
    "infoURL": "https://forum.poa.network/c/xdai-chain",
    "app_resource": {
        "ic_chain_select": "https://tp-upload.cdn.bcebos.com/v1/blockChain/xDAI/1.png",//network icon selected status
        "ic_chain_unselect": "https://tp-upload.cdn.bcebos.com/v1/blockChain/xDAI/0.png",//network icon unselected status in light mode
        "ic_chain_unselect_dark": "",//network icon unselected status in dark mode
        "color_chain_bg": "0x58B2AF",//wallet card backgroud color
        "color_chain_text": "0xFFFFFF",//wallet card text color
        "ic_home_logo":""//logo on top of asset page
    }
}

如何添加一个新链

Fork该仓库并在chains.json 中加入您的EVM链信息

示例:

{
    "name": "xDAI Chain",
    "chainId": 100,
    "shortName": "xdai",
    "chain": "XDAI",
    "network": "mainnet",
    "networkId": 100,
    "nativeCurrency": {
        "name": "xDAI",
        "symbol": "xDAI",
        "decimals": 18
    },
    "rpc": [
        "https://rpc.xdaichain.com",
        "https://xdai.poanetwork.dev",
        "wss://rpc.xdaichain.com/wss",
        "wss://xdai.poanetwork.dev/wss",
        "http://xdai.poanetwork.dev",
        "https://dai.poa.network",
        "ws://xdai.poanetwork.dev:8546"
    ],
    "faucets": [],
    "infoURL": "https://forum.poa.network/c/xdai-chain",
    "app_resource": {
        "ic_chain_select": "https://tp-upload.cdn.bcebos.com/v1/blockChain/xDAI/1.png", //链icon选中状态
        "ic_chain_unselect": "https://tp-upload.cdn.bcebos.com/v1/blockChain/xDAI/0.png", //链icon白天模式的未选择状态
        "ic_chain_unselect_dark": "", //链icon黑夜模式的未选择状态
        "color_chain_bg": "0x58B2AF", //选择钱包时,卡片的背景颜色
        "color_chain_text": "0xFFFFFF", //选择钱包时,卡片的文字颜色
        "ic_home_logo":"" //首页卡片显示的logo
    }
}

app_resource is optional, which is only affect the appearance in TokenPocket Wallet. You can follow the standard below:

standard standard standard standard standard