Add Optimism and fix Avalanche C chain (#13017)

* add optimism logo
* fix folder name
* Fix token types
* use suggest token type
* Update allowlist.json
This commit is contained in:
hewigovens 2021-08-26 15:33:24 +08:00 committed by GitHub
parent 3cb403121c
commit 92ad6bf22e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 91 additions and 28 deletions

View File

@ -1,24 +0,0 @@
{
"name": "Avalanche",
"website": "http://avax.network",
"description": "Avalanche is an open-source platform for launching highly decentralized applications, new financial primitives, and new interoperable blockchains.",
"explorer": "https://explorer.avax.network",
"research": "https://research.binance.com/en/projects/avalanche",
"symbol": "AVAX",
"type": "coin",
"decimals": 9,
"status": "active",
"tags": [
"staking-native"
],
"links": [
{
"name": "github",
"url": "https://github.com/ava-labs"
},
{
"name": "whitepaper",
"url": "https://www.avalabs.org/whitepapers"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

View File

@ -0,0 +1,3 @@
[
"0x60781C2586D68229fde47564546784ab3fACA982"
]

View File

@ -0,0 +1,13 @@
{
"name": "Pangolin",
"website": "https://pangolin.exchange/",
"description": "A community-driven decentralized exchange for Avalanche and Ethereum assets with fast settlement, low transaction fees, and a democratic distributionpowered by Avalanche",
"explorer": "https://cchain.explorer.avax.network/address/0x60781C2586D68229fde47564546784ab3fACA982",
"research": "https://research.binance.com/en/projects/avalanche",
"type": "AVALANCHE",
"symbol": "PNG",
"decimals": 18,
"status": "active",
"id": "0x60781C2586D68229fde47564546784ab3fACA982",
"links": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -0,0 +1 @@
[]

View File

@ -6,7 +6,7 @@
"research": "https://research.binance.com/en/projects/avalanche",
"symbol": "AVAX",
"type": "coin",
"decimals": 9,
"decimals": 18,
"status": "active",
"tags": [
"staking-native"

View File

@ -0,0 +1,3 @@
[
"0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4"
]

View File

@ -0,0 +1,38 @@
{
"name": "Synthetix Network",
"website": "https://synthetix.io",
"description": "Synthetix is a derivatives liquidity protocol on Ethereum that enables the issuance and trading of synthetic assets.",
"explorer": "https://optimistic.etherscan.io/address/0x8700daec35af8ff88c16bdf0418774cb3d7599b4",
"research": "https://research.binance.com/en/projects/synthetix",
"type": "OPTIMISM",
"symbol": "SNX",
"decimals": 18,
"status": "active",
"id": "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4",
"links": [
{
"name": "github",
"url": "https://github.com/havven/havven"
},
{
"name": "twitter",
"url": "https://twitter.com/synthetix_io"
},
{
"name": "reddit",
"url": "https://reddit.com/r/synthetix_io/"
},
{
"name": "blog",
"url": "https://blog.synthetix.io/"
},
{
"name": "whitepaper",
"url": "https://synthetix.io/uploads/havven_whitepaper.pdf"
},
{
"name": "coingecko",
"url": "https://coingecko.com/en/coins/havven/"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -0,0 +1 @@
[]

View File

@ -0,0 +1,12 @@
{
"name": "Optimistic Ethereum",
"website": "https://optimism.io/",
"description": "Optimism is a Layer 2 scaling solution for Ethereum.",
"explorer": "https://optimistic.etherscan.io",
"research": "https://github.com/ethereum-optimism/optimism",
"symbol": "OETH",
"type": "coin",
"decimals": 18,
"status": "active",
"links": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -1,4 +1,7 @@
[
"0x0116e28B43A358162B96f70B4De14C98A4465f25",
"0x1e16aa4Df73d29C029d94CeDa3e3114EC191E25A",
"0x71850b7E9Ee3f13Ab46d67167341E4bDc905Eef9"
"0x703120F2f2011a0D03A03a531Ac0e84e81F15989",
"0x71850b7E9Ee3f13Ab46d67167341E4bDc905Eef9",
"0xC25AF3123d2420054c8fcd144c21113aa2853F39"
]

View File

@ -7,7 +7,7 @@
"symbol": "xDAI",
"type": "coin",
"decimals": 18,
"status": "abandoned",
"status": "active",
"links": [
{
"name": "github",

View File

@ -218,6 +218,8 @@ export function chainFromAssetType(type: string): string {
case "WAVES": return "waves";
case "POA": return "poa";
case "POLYGON": return "polygon";
case "OPTIMISM": return "optimism";
case "AVALANCHE": return 'avalanchec';
default: return "";
}
}
@ -297,7 +299,12 @@ export function explorerUrl(chain: string, contract: string): string {
case CoinType.name(CoinType.polygon).toLowerCase():
case 'polygon':
return `https://polygonscan.com/token/${contract}`; }
return `https://polygonscan.com/token/${contract}`;
case 'optimism':
return `https://optimistic.etherscan.io/address/${contract}`;
case 'avalanchec':
return `https://cchain.explorer.avax.network/address/${contract}`
}
}
return "";
}

View File

@ -26,6 +26,9 @@ export const Waves = getChainName(CoinType.waves);
export const Solana = getChainName(CoinType.solana);
export const SmartChain = getChainName(CoinType.smartchain);
export const Polygon = getChainName(CoinType.polygon);
export const Optimism = "optimism";
export const xDAI = "xdai";
export const Avalanche = "avalanchec";
export const ethForkChains = [
Ethereum,
@ -37,6 +40,9 @@ export const ethForkChains = [
ThunderCore,
SmartChain,
Polygon,
Optimism,
xDAI,
Avalanche,
];
export const stakingChains = [
Tezos,