mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
99d4bfbb4f
* Add Ethereum * Add XRP * Add Bitcoin Cash * Add Cosmos * Add Dash * Add Tezos * Add ETC * ADA * TRX * XLM * BNB * LTC * Add template for top under 20 coins * Gen info.json script + template * Optimised images with calibre/image-actions Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
const bluebird = require("bluebird")
|
|
import {
|
|
chainsFolderPath,
|
|
getChainInfoPath,
|
|
isChainInfoExistSync,
|
|
writeFileSync,
|
|
readDirSync
|
|
} from "../src/test/helpers"
|
|
|
|
const dafaultInfoTemplate =
|
|
{
|
|
"name": "",
|
|
"website": "",
|
|
"source_code": "",
|
|
"whitepaper": "",
|
|
"explorers": [
|
|
{
|
|
"name": "",
|
|
"url": ""
|
|
}
|
|
],
|
|
"socials": [
|
|
{
|
|
"name": "Twitter",
|
|
"url": ""
|
|
},
|
|
{
|
|
"name": "Reddit",
|
|
"url": ""
|
|
}
|
|
],
|
|
"details": [
|
|
{
|
|
"language": "en",
|
|
"description": ""
|
|
}
|
|
],
|
|
"data_source": "crowd"
|
|
}
|
|
|
|
bluebird.mapSeries(readDirSync(chainsFolderPath), (chain: string) => {
|
|
const chainInfoPath = getChainInfoPath(chain)
|
|
|
|
// Create intial info.json file if doesn't exist
|
|
if (isChainInfoExistSync(chain)) {
|
|
writeFileSync(chainInfoPath, JSON.stringify(dafaultInfoTemplate, null, 4))
|
|
}
|
|
|
|
// const infoList = JSON.parse(readFileSync(chainInfoPath))
|
|
}) |