mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
[Internal] Token missing info cleanup: eos, theta, tomochain, xdai, tron (#8444)
* [Internal] Token missing info cleanup: eos, theta, tomochain, xdai, tron * Add explorerUrl generation Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
parent
7775ade7df
commit
af1d3e1f4e
11
blockchains/eos/assets/volentixgsys/info.json
Normal file
11
blockchains/eos/assets/volentixgsys/info.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "volentixgsys",
|
||||
"type": "EOS",
|
||||
"symbol": "VTX",
|
||||
"decimals": 8,
|
||||
"website": "",
|
||||
"description": "-",
|
||||
"explorer": "https://bloks.io/account/volentixgsys",
|
||||
"status": "active",
|
||||
"id": "volentixgsys"
|
||||
}
|
11
blockchains/theta/assets/tfuel/info.json
Normal file
11
blockchains/theta/assets/tfuel/info.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "TFuel",
|
||||
"type": "THETA",
|
||||
"symbol": "TFUEL",
|
||||
"decimals": 18,
|
||||
"website": "https://community.theta.tv/tfuel-on-sliver-faq/?utm_campaign=tfuel",
|
||||
"description": "Theta Fuel (TFUEL) is one of the two native tokens on the Theta blockchain",
|
||||
"explorer": "https://explorer.thetatoken.org/",
|
||||
"status": "active",
|
||||
"id": "tfuel"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "TOMO",
|
||||
"type": "TOMO",
|
||||
"symbol": "TOMO",
|
||||
"decimals": 18,
|
||||
"website": "",
|
||||
"description": "-",
|
||||
"explorer": "https://scan.tomochain.com/address/0x17B26400621695c2D8C2D8869f6259E82D7544c4",
|
||||
"status": "active",
|
||||
"id": "0x17B26400621695c2D8C2D8869f6259E82D7544c4"
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 21 KiB |
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "Moons",
|
||||
"type": "XDAI",
|
||||
"symbol": "XMOON",
|
||||
"decimals": 18,
|
||||
"website": "",
|
||||
"description": "-",
|
||||
"explorer": "https://blockscout.com/xdai/mainnet/tokens/0x1e16aa4Df73d29C029d94CeDa3e3114EC191E25A",
|
||||
"status": "active",
|
||||
"id": "0x1e16aa4Df73d29C029d94CeDa3e3114EC191E25A"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "Honey",
|
||||
"type": "XDAI",
|
||||
"symbol": "HNY",
|
||||
"decimals": 18,
|
||||
"website": "",
|
||||
"description": "-",
|
||||
"explorer": "https://blockscout.com/xdai/mainnet/tokens/0x71850b7E9Ee3f13Ab46d67167341E4bDc905Eef9",
|
||||
"status": "active",
|
||||
"id": "0x71850b7E9Ee3f13Ab46d67167341E4bDc905Eef9"
|
||||
}
|
|
@ -108,12 +108,16 @@ export function chainFromAssetType(type: string): string {
|
|||
case "TRC21": return "tomochain";
|
||||
case "TT20": return "thundertoken";
|
||||
case "SPL": return "solana";
|
||||
case "EOS": return "eos";
|
||||
case "GO20": return "gochain";
|
||||
case "KAVA": return "kava";
|
||||
case "NEP5": return "neo";
|
||||
case "NRC20": return "nuls";
|
||||
case "VET": return "vechain";
|
||||
case "ONTOLOGY": return "ontology";
|
||||
case "THETA": return "theta";
|
||||
case "TOMO": return "tomochain";
|
||||
case "XDAI": return "xdai";
|
||||
default: return "";
|
||||
}
|
||||
}
|
||||
|
@ -139,6 +143,9 @@ export function explorerUrl(chain: string, contract: string): string {
|
|||
case "smartchain":
|
||||
return `https://bscscan.com/token/${contract}`;
|
||||
|
||||
case CoinType.name(CoinType.eos).toLowerCase():
|
||||
return `https://bloks.io/account/${contract}`;
|
||||
|
||||
case CoinType.name(CoinType.neo).toLowerCase():
|
||||
return `https://neo.tokenview.com/en/token/0x${contract}`;
|
||||
|
||||
|
@ -163,6 +170,9 @@ export function explorerUrl(chain: string, contract: string): string {
|
|||
case CoinType.name(CoinType.gochain).toLowerCase():
|
||||
return `https://explorer.gochain.io/addr/${contract}`;
|
||||
|
||||
case CoinType.name(CoinType.theta).toLowerCase():
|
||||
return 'https://explorer.thetatoken.org/';
|
||||
|
||||
case CoinType.name(CoinType.thundertoken).toLowerCase():
|
||||
case "thundertoken":
|
||||
return `https://viewblock.io/thundercore/address/${contract}`;
|
||||
|
@ -174,6 +184,9 @@ export function explorerUrl(chain: string, contract: string): string {
|
|||
case CoinType.name(CoinType.vechain).toLowerCase():
|
||||
case "vechain":
|
||||
return `https://explore.vechain.org/accounts/${contract}`;
|
||||
|
||||
case "xdai":
|
||||
return `https://blockscout.com/xdai/mainnet/tokens/${contract}`;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
|
|
|
@ -89,7 +89,7 @@ export class FoldersFiles implements ActionInterface {
|
|||
if (!isPathExistsSync(infoFullPath)) {
|
||||
const msg = `Missing info file for asset '${chain}/${address}' -- ${infoFullPath}`;
|
||||
// enforce that info must be present (with some exceptions)
|
||||
if (chain === 'classic' || chain === 'eos' || chain === 'poa' || chain === 'terra' || chain === 'theta' || chain === 'thundertoken' || chain === 'tomochain' || chain === 'tron' || chain === 'waves' || chain === 'xdai') {
|
||||
if (chain === 'classic' || chain === 'poa' || chain === 'terra' || chain === 'thundertoken' || chain === 'waves') {
|
||||
//console.log(msg);
|
||||
warnings.push(msg);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user