mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Fix cmc script.ts (#2736)
This commit is contained in:
parent
ce34e54b4f
commit
3f1529273d
|
@ -9,6 +9,7 @@ import {
|
|||
readFileSync,
|
||||
getChainAssetLogoPath,
|
||||
isPathExistsSync,
|
||||
getChainName,
|
||||
makeDirSync,
|
||||
getChainAssetPath,
|
||||
ethSidechains,
|
||||
|
@ -16,6 +17,7 @@ import {
|
|||
getChainWhitelist,
|
||||
} from "../../src/test/helpers";
|
||||
import { TickerType, mapTiker, PlatformType } from "../../src/test/models";
|
||||
import { CoinType } from "@trustwallet/types";
|
||||
|
||||
// Steps required to run this:
|
||||
// 1. (Optional) CMC API key already setup, use yours if needed. Install script deps "npm i" if hasn't been run before.
|
||||
|
@ -54,6 +56,7 @@ const custom: mapTiker[] = [
|
|||
]
|
||||
|
||||
const allContracts: mapTiker[] = [] // Temp storage for mapped assets
|
||||
let bip44Constants = {}
|
||||
let bnbOwnerToSymbol = {} // e.g: bnb1tawge8u97slduhhtumm03l4xl4c46dwv5m9yzk: WISH-2D5
|
||||
let bnbOriginalSymbolToSymbol = {} // e.g: WISH: WISH-2D5
|
||||
|
||||
|
@ -93,6 +96,7 @@ async function processCoin(coin) {
|
|||
id
|
||||
})
|
||||
}
|
||||
// await getImageIfMissing(getChainName(CoinType.ethereum), checksum, id)
|
||||
} catch (error) {
|
||||
console.log(`Etheruem platform error`, error)
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue
Block a user