From 48b87cde5127064a861243699498b263463fb3f2 Mon Sep 17 00:00:00 2001 From: mattverse Date: Tue, 27 Aug 2024 13:01:24 -0400 Subject: [PATCH 1/2] feat: try replacing asset list link --- docs/osmosis-core/AssetData.js | 134 ++++++++++++++++----------------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/docs/osmosis-core/AssetData.js b/docs/osmosis-core/AssetData.js index d0b4a28fe..c1beb1f9e 100644 --- a/docs/osmosis-core/AssetData.js +++ b/docs/osmosis-core/AssetData.js @@ -5,12 +5,12 @@ const AssetData = () => { const [selectedUrl, setSelectedUrl] = useState('https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/osmosis-1.assetlist.json'); const assetUrls = { - mainnet: 'https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/osmosis-1.assetlist.json', + mainnet: 'https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/generated/chain_registry/assetlist.json', osmo_test_4: 'https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmo-test-5/osmo-test-5.assetlist.json', osmo_test_5: 'https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmo-test-5/osmo-test-5.assetlist.json', }; - + const chainButtonStyle = { backgroundColor: '#322dc2', border: 'none', @@ -22,13 +22,13 @@ const AssetData = () => { fontSize: '16px', margin: '4px 2px', borderRadius: '8px', - transition: 'background-color 0.2s ease-in-out', + transition: 'background-color 0.2s ease-in-out', ':hover': { backgroundColor: '#5f4bea', } }; - - + + useEffect(() => { const fetchAssets = () => { @@ -48,74 +48,74 @@ const AssetData = () => { <>

Select a chain

{Object.entries(assetUrls).map(([key, url]) => ( - ))}
{assets ? ( - - - - - - - - {assets.map((asset) => ( - - - - - ))} - - - - -
- Name - - Information -
{asset.name} -
- Symbol: {asset.symbol} -
IBC Denom: {asset.base} -
- {asset.traces?.map((trace, index) => ( -
- {trace.provider && Provider: {trace.provider}} - -
- -
    -
  • {trace.type} -
      -
    • Destination Chain: {trace.counterparty.chain_name} Denom:{trace.counterparty.base_denom}
    • - - - {trace.type === "ibc" ? ( - <> -
    • - Destination Channel: {trace.counterparty.channel_id} -
    • -
    • - Source Channel: {trace.chain.channel_id} -
    • - - ) : null} - - -
    • Base Denom: {trace.counterparty.base_denom}
    • -
    -
  • -
- -
- -
- ))} - -
+ + + + Name + + + Information + + + + + {assets.map((asset) => ( + + {asset.name} + +
+ Symbol: {asset.symbol} +
IBC Denom: {asset.base} +
+ {asset.traces?.map((trace, index) => ( +
+ {trace.provider && Provider: {trace.provider}} + +
+ +
    +
  • {trace.type} +
      +
    • Destination Chain: {trace.counterparty.chain_name} Denom:{trace.counterparty.base_denom}
    • + + + {trace.type === "ibc" ? ( + <> +
    • + Destination Channel: {trace.counterparty.channel_id} +
    • +
    • + Source Channel: {trace.chain.channel_id} +
    • + + ) : null} + + +
    • Base Denom: {trace.counterparty.base_denom}
    • +
    +
  • +
+ +
+ +
+ ))} + + + + ))} + + + + + ) : (

Fetching Assets...

)} From 022464cbc441cb4fa42d9c7d06e98a2aef32a920 Mon Sep 17 00:00:00 2001 From: mattverse Date: Tue, 27 Aug 2024 13:10:36 -0400 Subject: [PATCH 2/2] feat: some more change --- docs/osmosis-core/AssetData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/osmosis-core/AssetData.js b/docs/osmosis-core/AssetData.js index c1beb1f9e..d16abf5c4 100644 --- a/docs/osmosis-core/AssetData.js +++ b/docs/osmosis-core/AssetData.js @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; const AssetData = () => { const [assets, setAssets] = useState(null); - const [selectedUrl, setSelectedUrl] = useState('https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/osmosis-1.assetlist.json'); + const [selectedUrl, setSelectedUrl] = useState('https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/generated/chain_registry/assetlist.json'); const assetUrls = { mainnet: 'https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/generated/chain_registry/assetlist.json',