mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
[Internal] Infra for Polygon tokens (#12244)
* Infra for Polygon tokens. * Placeholer for assets fo * Add CRO/polygon token * Update CRO website Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
parent
69adf6a795
commit
439db849d7
3
blockchains/polygon/allowlist.json
Normal file
3
blockchains/polygon/allowlist.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[
|
||||||
|
"0xAdA58DF0F643D959C2A47c9D4d4c1a4deFe3F11C"
|
||||||
|
]
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"name": "Crypto.com Coin",
|
||||||
|
"website": "https://crypto.com/",
|
||||||
|
"description": "The most profitable and secure platform to entrust your digital assets. Absolutely safe with multi-layer encrypted protection.",
|
||||||
|
"explorer": "https://polygonscan.com/token/0xAdA58DF0F643D959C2A47c9D4d4c1a4deFe3F11C",
|
||||||
|
"type": "POLYGON-ERC20",
|
||||||
|
"symbol": "CRO",
|
||||||
|
"decimals": 8,
|
||||||
|
"status": "active",
|
||||||
|
"id": "0xAdA58DF0F643D959C2A47c9D4d4c1a4deFe3F11C"
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
1
blockchains/polygon/denylist.json
Normal file
1
blockchains/polygon/denylist.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
[]
|
|
@ -3,7 +3,7 @@
|
||||||
"website": "https://polygon.technology/",
|
"website": "https://polygon.technology/",
|
||||||
"short_description": "Polygon (Matic) strives to solve the scalability and usability issues, while not compromising on decentralization and leveraging the existing developer community and ecosystem",
|
"short_description": "Polygon (Matic) strives to solve the scalability and usability issues, while not compromising on decentralization and leveraging the existing developer community and ecosystem",
|
||||||
"description": "Polygon (Matic) strives to solve the scalability and usability issues, while not compromising on decentralization and leveraging the existing developer community and ecosystem",
|
"description": "Polygon (Matic) strives to solve the scalability and usability issues, while not compromising on decentralization and leveraging the existing developer community and ecosystem",
|
||||||
"explorer": "https://explorer.matic.network/",
|
"explorer": "https://polygonscan.com/",
|
||||||
"research": "https://docs.matic.network/",
|
"research": "https://docs.matic.network/",
|
||||||
"type": "coin",
|
"type": "coin",
|
||||||
"symbol": "MATIC",
|
"symbol": "MATIC",
|
||||||
|
|
|
@ -209,6 +209,7 @@ export function chainFromAssetType(type: string): string {
|
||||||
case "XDAI": return "xdai";
|
case "XDAI": return "xdai";
|
||||||
case "WAVES": return "waves";
|
case "WAVES": return "waves";
|
||||||
case "POA": return "poa";
|
case "POA": return "poa";
|
||||||
|
case "POLYGON-ERC20": return "polygon";
|
||||||
default: return "";
|
default: return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -285,7 +286,10 @@ export function explorerUrl(chain: string, contract: string): string {
|
||||||
case CoinType.name(CoinType.poa).toLowerCase():
|
case CoinType.name(CoinType.poa).toLowerCase():
|
||||||
case 'poa':
|
case 'poa':
|
||||||
return `https://blockscout.com/poa/core/tokens/${contract}`;
|
return `https://blockscout.com/poa/core/tokens/${contract}`;
|
||||||
}
|
|
||||||
|
case CoinType.name(CoinType.polygon).toLowerCase():
|
||||||
|
case 'polygon':
|
||||||
|
return `https://polygonscan.com/token/${contract}`; }
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ export const Wanchain = getChainName(CoinType.wanchain);
|
||||||
export const Waves = getChainName(CoinType.waves);
|
export const Waves = getChainName(CoinType.waves);
|
||||||
export const Solana = getChainName(CoinType.solana);
|
export const Solana = getChainName(CoinType.solana);
|
||||||
export const SmartChain = getChainName(CoinType.smartchain);
|
export const SmartChain = getChainName(CoinType.smartchain);
|
||||||
|
export const Polygon = getChainName(CoinType.polygon);
|
||||||
|
|
||||||
export const ethForkChains = [
|
export const ethForkChains = [
|
||||||
Ethereum,
|
Ethereum,
|
||||||
|
@ -35,6 +36,7 @@ export const ethForkChains = [
|
||||||
Wanchain,
|
Wanchain,
|
||||||
ThunderCore,
|
ThunderCore,
|
||||||
SmartChain,
|
SmartChain,
|
||||||
|
Polygon,
|
||||||
];
|
];
|
||||||
export const stakingChains = [
|
export const stakingChains = [
|
||||||
Tezos,
|
Tezos,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user