[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:
Adam R 2021-05-20 14:33:44 +02:00 committed by GitHub
parent 7775ade7df
commit af1d3e1f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 69 additions and 1 deletions

View 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"
}

View 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"
}

View File

@ -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

View File

@ -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"
}

View File

@ -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"
}

View File

@ -108,12 +108,16 @@ export function chainFromAssetType(type: string): string {
case "TRC21": return "tomochain"; case "TRC21": return "tomochain";
case "TT20": return "thundertoken"; case "TT20": return "thundertoken";
case "SPL": return "solana"; case "SPL": return "solana";
case "EOS": return "eos";
case "GO20": return "gochain"; case "GO20": return "gochain";
case "KAVA": return "kava"; case "KAVA": return "kava";
case "NEP5": return "neo"; case "NEP5": return "neo";
case "NRC20": return "nuls"; case "NRC20": return "nuls";
case "VET": return "vechain"; case "VET": return "vechain";
case "ONTOLOGY": return "ontology"; case "ONTOLOGY": return "ontology";
case "THETA": return "theta";
case "TOMO": return "tomochain";
case "XDAI": return "xdai";
default: return ""; default: return "";
} }
} }
@ -139,6 +143,9 @@ export function explorerUrl(chain: string, contract: string): string {
case "smartchain": case "smartchain":
return `https://bscscan.com/token/${contract}`; return `https://bscscan.com/token/${contract}`;
case CoinType.name(CoinType.eos).toLowerCase():
return `https://bloks.io/account/${contract}`;
case CoinType.name(CoinType.neo).toLowerCase(): case CoinType.name(CoinType.neo).toLowerCase():
return `https://neo.tokenview.com/en/token/0x${contract}`; 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(): case CoinType.name(CoinType.gochain).toLowerCase():
return `https://explorer.gochain.io/addr/${contract}`; 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 CoinType.name(CoinType.thundertoken).toLowerCase():
case "thundertoken": case "thundertoken":
return `https://viewblock.io/thundercore/address/${contract}`; 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 CoinType.name(CoinType.vechain).toLowerCase():
case "vechain": case "vechain":
return `https://explore.vechain.org/accounts/${contract}`; return `https://explore.vechain.org/accounts/${contract}`;
case "xdai":
return `https://blockscout.com/xdai/mainnet/tokens/${contract}`;
} }
} }
return ""; return "";

View File

@ -89,7 +89,7 @@ export class FoldersFiles implements ActionInterface {
if (!isPathExistsSync(infoFullPath)) { if (!isPathExistsSync(infoFullPath)) {
const msg = `Missing info file for asset '${chain}/${address}' -- ${infoFullPath}`; const msg = `Missing info file for asset '${chain}/${address}' -- ${infoFullPath}`;
// enforce that info must be present (with some exceptions) // 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); //console.log(msg);
warnings.push(msg); warnings.push(msg);
} else { } else {