From 6c4b5bd88ae356a1c5b3a97427308a3ed4afd6da Mon Sep 17 00:00:00 2001 From: Gabe Rodriguez Date: Thu, 31 Oct 2024 11:58:29 -0700 Subject: [PATCH] Remove badges temporarily (#107) --- input/chains/penumbra-1.json | 45 +------- .../penumbra-testnet-deimos-8-x6de97e39.json | 6 +- npm/src/registry.test.ts | 9 +- registry/chains/penumbra-1.json | 108 ++---------------- .../penumbra-testnet-deimos-8-x6de97e39.json | 5 - 5 files changed, 19 insertions(+), 154 deletions(-) diff --git a/input/chains/penumbra-1.json b/input/chains/penumbra-1.json index 1d85eeb..ae8398a 100644 --- a/input/chains/penumbra-1.json +++ b/input/chains/penumbra-1.json @@ -137,50 +137,7 @@ "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" } }, - "badgesByBase": { - "transfer/channel-4/factory/osmo1em6xs47hd82806f5cxgyufguxrrc7l0aqx7nzzptjuqgswczk8csavdxek/alloyed/allUSDT": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1z6r6qdknhgsc0zeracktgpcxf43j6sekq07nw8sxduc9lg0qjjlqfu25e3/alloyed/allBTC": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1z0qrq605sjgcqpylfl4aa6s90x738j7m58wyatt0tdzflg2ha26q67k743/wbtc": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1k6c8jln7ejuqwtqmay3yvzrg3kueaczl96pk067ldg8u835w0yhsw27twm/alloyed/allETH": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1n3n75av8awcnw4jl62n3l48e6e4sxqmaf97w5ua6ddu4s475q5qq9udvx4/alloyed/allSOL": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo18zdw5yvs6gfp95rp74qqwug9yduw2fyr8kplk2xgs726s9axc5usa2vpgw/alloyed/allLINK": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1r53fx9fvcdzncrs7zkn4gw5vfelx5gk8k5wc6wqha2jpkh992rusr5tk02/alloyed/allDOT": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo14mafhhp337yjj2aujplawz0tks6jd2lel4hkwz4agyzhvvztzaqsqzjq8x/alloyed/allTRX": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1p7x454ex08s4f9ztmm7wfv7lvtgdkfztj2u7v7fezfcauy85q35qmqrdpk/alloyed/allARB": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1nufyzqlm8qhu2w7lm0l4rrax0ec8rsk69mga4tel8eare7c7ljaqpk2lyg/alloyed/allOP": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo12lnwf54yd30p6amzaged2atln8k0l32n7ncxf04ctg7u7ymnsy7qkqgsw4/alloyed/allTON": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1f588gk9dazpsueevdl2w6wfkmfmhg5gdvg2uerdlzl0atkasqhsq59qc6a/alloyed/allSHIB": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1nnlxegt0scm9qkzys9c874t0ntapv4epfjy2w49c0xdrp3dr0v4ssmelzx/alloyed/allPEPE": [ - "osmosis" - ], - "transfer/channel-4/factory/osmo1eqjda4pc6e09jtxzxggf6jl3jye2yn453ja58we5gxwzmf5ah28qvlnaz8/alloyed/allUNI": [ - "osmosis" - ] - } + "badgesByBase": {} } diff --git a/input/chains/penumbra-testnet-deimos-8-x6de97e39.json b/input/chains/penumbra-testnet-deimos-8-x6de97e39.json index 2c34975..3bf5539 100644 --- a/input/chains/penumbra-testnet-deimos-8-x6de97e39.json +++ b/input/chains/penumbra-testnet-deimos-8-x6de97e39.json @@ -258,9 +258,5 @@ "png": "https://raw.githubusercontent.com/prax-wallet/registry/main/images/penumbra-favicon.png" } }, - "badgesByBase": { - "wtest_usd": [ - "penumbra" - ] - } + "badgesByBase": {} } diff --git a/npm/src/registry.test.ts b/npm/src/registry.test.ts index db152ba..5edd4db 100644 --- a/npm/src/registry.test.ts +++ b/npm/src/registry.test.ts @@ -10,10 +10,11 @@ describe('Registry', () => { const usdcId = base64ToUint8Array('reum7wQmk/owgvGMWMZn/6RFPV24zIKq3W6In/WwZgg='); const res = registry.getMetadata(new AssetId({ inner: usdcId })); expect(res.base).toEqual('wtest_usd'); - expect(res.badges.length).toEqual(1); - expect(res.badges[0]?.png).toEqual( - 'https://raw.githubusercontent.com/prax-wallet/registry/main/images/penumbra-favicon.png', - ); + // TODO: Renable when badges fixed in minifront + // expect(res.badges.length).toEqual(1); + // expect(res.badges[0]?.png).toEqual( + // 'https://raw.githubusercontent.com/prax-wallet/registry/main/images/penumbra-favicon.png', + // ); }); it('gets metadata without badges', () => { diff --git a/registry/chains/penumbra-1.json b/registry/chains/penumbra-1.json index 1e97d7e..8451779 100644 --- a/registry/chains/penumbra-1.json +++ b/registry/chains/penumbra-1.json @@ -238,13 +238,7 @@ } } ], - "priorityScore": "200000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "200000000" }, "5B0jxWP9LX+U4uD7aU9OVsIk0U385uD2q+a2eEerHg0=": { "description": "Cosmos Airdrop Chat", @@ -416,13 +410,7 @@ } } ], - "priorityScore": "100000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "100000000" }, "AdlT67pUDx0wsIFBC4opbslYEOk6+QDIzWUcVtQlXgQ=": { "description": "Chain-key Bitcoin bridged via Omnity Network.", @@ -544,13 +532,7 @@ } } ], - "priorityScore": "100000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "100000000" }, "EMttUTznXaZu2d7ecHS5UC0RvJsBh9GYc79abym2ewc=": { "description": "Margined Power Token sqBTC", @@ -806,13 +788,7 @@ "theme": {} } ], - "priorityScore": "50000000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "50000000000" }, "MMDbC4jQ7GUP6yEU+Yo2xkW85LyRKJASJN4MPHAPmhE=": { "description": "Levana Well-funded Perps is a protocol for perpetual swaps, which are leveraged trading contracts.", @@ -875,12 +851,6 @@ "circle": true } } - ], - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } ] }, "Md6xXujgk0jvdUPhlf/05wvTeXDEh8X/bDurrVJw2gU=": { @@ -1139,13 +1109,7 @@ "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/allBTC.svg" } ], - "priorityScore": "70000000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "70000000000" }, "Rvh55FJrd8q3kT8xYIl5ApTOc9ErxyL8m1NS5RArHxE=": { "description": "An alloy of OP asset variants on Osmosis.", @@ -1181,13 +1145,7 @@ } } ], - "priorityScore": "100000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "100000000" }, "SBYNLMUsCQQJaZZYXbrDHD5u/q6rdo6sURKyBlGMtxE=": { "description": "An alloy of DOT asset variants on Osmosis.", @@ -1231,13 +1189,7 @@ } } ], - "priorityScore": "3000000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "3000000000" }, "SChNnza9qDQMNGqwSoQMzB2x2M5nmEBtST1EoSy29gM=": { "description": "An alloy of UNI asset variants on Osmosis.", @@ -1261,12 +1213,6 @@ { "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/uni.svg" } - ], - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } ] }, "TNHw/+5PPN0BC2U1Q80CnhoiKx3GI8ivmb2OG6m5yAI=": { @@ -1345,13 +1291,7 @@ } } ], - "priorityScore": "70000000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "70000000000" }, "UxSzPuz9XKLpnAttHgzK/j0t1YHJUtgU+2T99R+FxBE=": { "description": "Celestia is a modular blockchain network focused on data availability, allowing developers to deploy their own customizable blockchains with ease.", @@ -1738,13 +1678,7 @@ } } ], - "priorityScore": "4000000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "4000000000" }, "hOnMqQbpe5Abe7vvfHYda77fg3Zit88fatqDfPO1bgQ=": { "description": "An alloy of SHIB asset variants on Osmosis.", @@ -1780,13 +1714,7 @@ } } ], - "priorityScore": "100000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "100000000" }, "iI81O5821jqBIu4F1S2E4++UlzcvK+yI8cLEKZICgAs=": { "description": "ERIS liquid staked OSMO", @@ -2203,13 +2131,7 @@ "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/allUSDT.svg" } ], - "priorityScore": "100000000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "100000000000" }, "vSCVmtndzw2C2RYuB2vcKWfkPVZRCP9GNN8MwB6QUAU=": { "description": "Cosmus Cartol always get rich", @@ -2333,13 +2255,7 @@ "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/allETH.svg" } ], - "priorityScore": "60000000000", - "badges": [ - { - "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", - "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" - } - ] + "priorityScore": "60000000000" }, "xNdg/Pc2CvrtawUX41EBLTlgj83RTenRJaBFXxsSTwk=": { "description": "ION is the second native token of Osmosis.", diff --git a/registry/chains/penumbra-testnet-deimos-8-x6de97e39.json b/registry/chains/penumbra-testnet-deimos-8-x6de97e39.json index 14b0e67..ee0ffee 100644 --- a/registry/chains/penumbra-testnet-deimos-8-x6de97e39.json +++ b/registry/chains/penumbra-testnet-deimos-8-x6de97e39.json @@ -402,11 +402,6 @@ { "svg": "https://raw.githubusercontent.com/prax-wallet/registry/main/images/test-usd.svg" } - ], - "badges": [ - { - "png": "https://raw.githubusercontent.com/prax-wallet/registry/main/images/penumbra-favicon.png" - } ] }, "ypUT1AOtjfwMOKMATACoD9RSvi8jY/YnYGi46CZ/6Q8=": {