mirror of
				https://github.com/Instadapp/trustwallet-assets.git
				synced 2024-07-29 22:37:31 +00:00 
			
		
		
		
	[Internal] Add info.json to Poa tokens (3) (#11739)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									6232cfe1a0
								
							
						
					
					
						commit
						96ca9f465a
					
				| 
						 | 
				
			
			@ -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": []
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -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": []
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -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": []
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -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 "";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user