From dfa2facbee1acee493d72f7841d1cc59f99b50de Mon Sep 17 00:00:00 2001 From: Marcin Rabenda Date: Fri, 8 Sep 2023 11:35:52 +0200 Subject: [PATCH 1/2] remove overlaping test --- test/index.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/test/index.js b/test/index.js index a21479bd86..9ec87beef8 100644 --- a/test/index.js +++ b/test/index.js @@ -65,7 +65,7 @@ test('logos path names should not contain space', function (t) { t.end() }) -test('symbols should be six or less characters', function (t) { +test('symbols should be eleven or less characters', function (t) { Object.keys(contractMap).forEach(address => { const contract = contractMap[address] const symbol = contract.symbol @@ -88,21 +88,3 @@ test('only permitted fields should be used', function (t) { t.end() }) - -test('symbols should not overlap', function (t) { - const symbols = Object.values(contractMap).map(contract => contract.symbol) - const symbolsCheck = new Map() - let duplicateSymbol - - symbols.forEach(symbol => { - if (symbolsCheck.has(symbol) && symbol !== undefined) { - duplicateSymbol = symbol - return - } - symbolsCheck.set(symbol, true) - }) - - const msg = duplicateSymbol ? `found overlapping symbol ${duplicateSymbol}` : 'symbols should not overlap' - t.notOk(duplicateSymbol, msg) - t.end() -}) From 51e20982546d333486acd769a5fad0dbd481376c Mon Sep 17 00:00:00 2001 From: Marcin Rabenda Date: Tue, 12 Sep 2023 14:23:33 +0200 Subject: [PATCH 2/2] Fix luna symbols --- contract-map.json | 8 ++++---- images/{shuttleLUNA.svg => lunc.svg} | 0 images/{shuttleUST.svg => ustc.svg} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename images/{shuttleLUNA.svg => lunc.svg} (100%) rename images/{shuttleUST.svg => ustc.svg} (100%) diff --git a/contract-map.json b/contract-map.json index 5b6925ca4f..ad3f8ae8e9 100644 --- a/contract-map.json +++ b/contract-map.json @@ -835,16 +835,16 @@ "0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9": { "name": "LUNA Token - Shuttle", - "logo": "shuttleLUNA.svg", + "logo": "lunc.svg", "erc20": true, - "symbol": "LUNA-S", + "symbol": "LUNC", "decimals": 18 }, "0xa47c8bf37f92aBed4A126BDA807A7b7498661acD": { "name": "UST Token - Shuttle", - "logo": "shuttleUST.svg", + "logo": "ustc.svg", "erc20": true, - "symbol": "UST-S", + "symbol": "USTC", "decimals": 18 }, "0xcAAfF72A8CbBfc5Cf343BA4e26f65a257065bFF1": { diff --git a/images/shuttleLUNA.svg b/images/lunc.svg similarity index 100% rename from images/shuttleLUNA.svg rename to images/lunc.svg diff --git a/images/shuttleUST.svg b/images/ustc.svg similarity index 100% rename from images/shuttleUST.svg rename to images/ustc.svg