Add FinNexus Wanchain Token (FNX), #3100 (#3147)

* Add files via upload

FNX from FinNexus: https://www.finnexus.io/

* Add files via upload

FNX from FinNexus: https://www.finnexus.io/

* Add files via upload

* Create info.json

* Update info.json

* Update info.json

* More detail in checksum error message.

* Fixes, renames.

Co-authored-by: Noah Maizels <noahmaizels@protonmail.com>
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
Adam R 2020-08-08 09:33:01 +02:00 committed by GitHub
parent cb84a500c5
commit 2bd69a4fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 6 deletions

View File

@ -0,0 +1,6 @@
{
"name": "FNX Token",
"website": "https://www.finnexus.io/",
"short_description": "FNX is the token of FinNexus, the project building a network of multi-chain protocol clusters to power innovative cross-chain DeFi products.",
"explorer": "https://etherscan.io/address/0xeF9Cd7882c067686691B6fF49e650b43AFBBCC6B"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -5081,6 +5081,7 @@
"0xeF764855F98C5Ef9cbe29b908510dd4e101616d1",
"0xeF80158b7Db893E74fac82fE32415d9420e60ffd",
"0xef8CF79C21637fc6f951bcaC348915508a639a41",
"0xeF9Cd7882c067686691B6fF49e650b43AFBBCC6B",
"0xEfbB3F1058fd8E0C9d7204f532E17d7572AFfc3e",
"0xeFCAfD4A1e76d392d683d4A79cD0E4a751d0BE75",
"0xF013406A0B1d544238083DF0B93ad0d2cBE0f65f",

View File

@ -0,0 +1,6 @@
{
"name": "FNX Token",
"website": "https://www.finnexus.io/",
"short_description": "FNX is the token of FinNexus, the project building a network of multi-chain protocol clusters to power innovative cross-chain DeFi products.",
"explorer": "https://www.wanscan.org/token/0xc6f4465a6A521124c8E3096b62575C157999d361"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -3,5 +3,6 @@
"0x350BB91c9c8eF4E8c0E19FBDC6a90a24BCB1Ec2a",
"0x3beb80170272F07Aca12987af86a59888255a807",
"0x51316966907EF568689775066E97C46A4fFDE1A4",
"0xa13A41A2349d09c1e3A0Dd4D9448aF4Ad799Fc4a"
"0xa13A41A2349d09c1e3A0Dd4D9448aF4Ad799Fc4a",
"0xC6F4465A6a521124C8e3096B62575c157999D361"
]

View File

@ -19,7 +19,7 @@ import {
readDirSync,
isPathExistsSync,
} from "../common/filesystem";
import { isChecksum, toChecksum } from "../common/eth-web3";
import { toChecksum } from "../common/eth-web3";
import { ActionInterface, CheckStepInterface } from "./interface";
import { isAssetInfoOK } from "../common/asset-info";
import * as bluebird from "bluebird";
@ -41,8 +41,8 @@ async function formatInfos() {
}
function checkAddressChecksum(assetsFolderPath: string, address: string) {
if (!isChecksum(address)) {
const checksumAddress = toChecksum(address);
if (checksumAddress !== address) {
gitMove(assetsFolderPath, address, checksumAddress);
console.log(`Renamed to checksum format ${checksumAddress}`);
}
@ -84,8 +84,9 @@ export class EthForks implements ActionInterface {
if (!isPathExistsSync(assetPath)) {
error += `Expect directory at path: ${assetPath}\n`;
}
if (!isChecksum(address)) {
error += `Expect asset at path ${assetPath} in checksum\n`;
const inChecksum = toChecksum(address);
if (address !== inChecksum) {
error += `Expect asset at path ${assetPath} in checksum: '${inChecksum}'\n`;
}
const assetLogoPath = getChainAssetLogoPath(chain, address);
if (!isPathExistsSync(assetLogoPath)) {