diff --git a/blockchains/ethereum/assets/0xeF9Cd7882c067686691B6fF49e650b43AFBBCC6B/info.json b/blockchains/ethereum/assets/0xeF9Cd7882c067686691B6fF49e650b43AFBBCC6B/info.json new file mode 100644 index 000000000..61f1fb67c --- /dev/null +++ b/blockchains/ethereum/assets/0xeF9Cd7882c067686691B6fF49e650b43AFBBCC6B/info.json @@ -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" +} \ No newline at end of file diff --git a/blockchains/ethereum/assets/0xeF9Cd7882c067686691B6fF49e650b43AFBBCC6B/logo.png b/blockchains/ethereum/assets/0xeF9Cd7882c067686691B6fF49e650b43AFBBCC6B/logo.png new file mode 100644 index 000000000..3564bf8ed Binary files /dev/null and b/blockchains/ethereum/assets/0xeF9Cd7882c067686691B6fF49e650b43AFBBCC6B/logo.png differ diff --git a/blockchains/ethereum/whitelist.json b/blockchains/ethereum/whitelist.json index 6f08ecbdb..66498b273 100644 --- a/blockchains/ethereum/whitelist.json +++ b/blockchains/ethereum/whitelist.json @@ -5081,6 +5081,7 @@ "0xeF764855F98C5Ef9cbe29b908510dd4e101616d1", "0xeF80158b7Db893E74fac82fE32415d9420e60ffd", "0xef8CF79C21637fc6f951bcaC348915508a639a41", + "0xeF9Cd7882c067686691B6fF49e650b43AFBBCC6B", "0xEfbB3F1058fd8E0C9d7204f532E17d7572AFfc3e", "0xeFCAfD4A1e76d392d683d4A79cD0E4a751d0BE75", "0xF013406A0B1d544238083DF0B93ad0d2cBE0f65f", diff --git a/blockchains/wanchain/assets/0xC6F4465A6a521124C8e3096B62575c157999D361/info.json b/blockchains/wanchain/assets/0xC6F4465A6a521124C8e3096B62575c157999D361/info.json new file mode 100644 index 000000000..b08174acf --- /dev/null +++ b/blockchains/wanchain/assets/0xC6F4465A6a521124C8e3096B62575c157999D361/info.json @@ -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" +} \ No newline at end of file diff --git a/blockchains/wanchain/assets/0xC6F4465A6a521124C8e3096B62575c157999D361/logo.png b/blockchains/wanchain/assets/0xC6F4465A6a521124C8e3096B62575c157999D361/logo.png new file mode 100644 index 000000000..3564bf8ed Binary files /dev/null and b/blockchains/wanchain/assets/0xC6F4465A6a521124C8e3096B62575c157999D361/logo.png differ diff --git a/blockchains/wanchain/whitelist.json b/blockchains/wanchain/whitelist.json index e1f83adf3..28d8f1da6 100644 --- a/blockchains/wanchain/whitelist.json +++ b/blockchains/wanchain/whitelist.json @@ -3,5 +3,6 @@ "0x350BB91c9c8eF4E8c0E19FBDC6a90a24BCB1Ec2a", "0x3beb80170272F07Aca12987af86a59888255a807", "0x51316966907EF568689775066E97C46A4fFDE1A4", - "0xa13A41A2349d09c1e3A0Dd4D9448aF4Ad799Fc4a" + "0xa13A41A2349d09c1e3A0Dd4D9448aF4Ad799Fc4a", + "0xC6F4465A6a521124C8e3096B62575c157999D361" ] \ No newline at end of file diff --git a/script/action/eth-forks.ts b/script/action/eth-forks.ts index 1e7773de4..de1d7f6cd 100644 --- a/script/action/eth-forks.ts +++ b/script/action/eth-forks.ts @@ -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); + 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)) {