[Internal] Add info.json to Poa tokens (3) (#11739)

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
Adam R 2021-07-14 09:20:58 +02:00 committed by GitHub
parent 6232cfe1a0
commit 96ca9f465a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,12 @@
{
"name": "User Pay",
"type": "POA",
"symbol": "UP",
"decimals": 18,
"description": "-",
"website": "",
"explorer": "https://blockscout.com/poa/core/tokens/0xA17ed5dFc62D0a3E74D69a0503AE9FdA65d9f212",
"status": "active",
"id": "0xA17ed5dFc62D0a3E74D69a0503AE9FdA65d9f212",
"links": []
}

View File

@ -0,0 +1,12 @@
{
"name": "Viktor Coin",
"type": "POA",
"symbol": "VIK",
"decimals": 0,
"description": "-",
"website": "",
"explorer": "https://blockscout.com/poa/core/tokens/0xADFE00d92e5A16e773891F59780e6e54f40B532e",
"status": "active",
"id": "0xADFE00d92e5A16e773891F59780e6e54f40B532e",
"links": []
}

View File

@ -0,0 +1,12 @@
{
"name": "POA Candy",
"type": "POA",
"symbol": "PAO",
"decimals": 0,
"description": "-",
"website": "",
"explorer": "https://blockscout.com/poa/core/tokens/0xC98a06220239818B086CD96756d4E3bC41EC848E",
"id": "0xC98a06220239818B086CD96756d4E3bC41EC848E",
"status": "active",
"links": []
}

View File

@ -208,6 +208,7 @@ export function chainFromAssetType(type: string): string {
case "TOMO": return "tomochain";
case "XDAI": return "xdai";
case "WAVES": return "waves";
case "POA": return "poa";
default: return "";
}
}
@ -280,6 +281,10 @@ export function explorerUrl(chain: string, contract: string): string {
case "xdai":
return `https://blockscout.com/xdai/mainnet/tokens/${contract}`;
case CoinType.name(CoinType.poa).toLowerCase():
case 'poa':
return `https://blockscout.com/poa/core/tokens/${contract}`;
}
}
return "";

View File

@ -93,7 +93,7 @@ export class FoldersFiles implements ActionInterface {
if (!infoExists && logoExists) {
const msg = `Missing info file for asset '${chain}/${address}' -- ${infoFullPath}`;
// enforce that info must be present (with some exceptions)
if (chain === 'classic' || chain === 'poa' || chain === 'terra') {
if (chain === 'classic' || chain === 'terra') {
//console.log(msg);
warnings.push(msg);
} else {