From d19c8c089b6158b911f0235f1ee29283a1fd173e Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Tue, 28 May 2024 11:44:00 +0200 Subject: [PATCH 01/15] refactor: only use tesnet directory --- src/stores/useDashboard.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stores/useDashboard.ts b/src/stores/useDashboard.ts index a841010..d6ffd6d 100644 --- a/src/stores/useDashboard.ts +++ b/src/stores/useDashboard.ts @@ -268,7 +268,7 @@ export const useDashboard = defineStore('dashboard', { return { status: LoadingStatus.Empty, source: ConfigSource.MainnetCosmosDirectory, - networkType: NetworkType.Mainnet, + networkType: NetworkType.Testnet, favoriteMap: favMap as Record, chains: {} as Record, prices: {} as Record, @@ -321,9 +321,9 @@ export const useDashboard = defineStore('dashboard', { } }, async loadingFromLocal() { - if(window.location.hostname.search("testnet") > -1) { - this.networkType = NetworkType.Testnet - } + // if(window.location.hostname.search("testnet") > -1) { + // this.networkType = NetworkType.Testnet + // } const source: Record = this.networkType === NetworkType.Mainnet ? import.meta.glob('../../chains/mainnet/*.json', { eager: true }) From c5f108b206f425b66366f934fd1d1dbc61052807 Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Tue, 28 May 2024 12:02:20 +0200 Subject: [PATCH 02/15] refactor: remove other chain and add axone testnet --- .gitignore | 3 +- chains/mainnet/axelar.json | 74 ------------------------------------- chains/mainnet/cosmos.json | 31 ---------------- chains/mainnet/neutron.json | 30 --------------- chains/mainnet/nolus.json | 27 -------------- chains/mainnet/osmosis.json | 32 ---------------- chains/testnet/axone.json | 20 ++++++++++ chains/testnet/crossfi.json | 11 ------ 8 files changed, 22 insertions(+), 206 deletions(-) delete mode 100644 chains/mainnet/axelar.json delete mode 100644 chains/mainnet/cosmos.json delete mode 100644 chains/mainnet/neutron.json delete mode 100644 chains/mainnet/nolus.json delete mode 100644 chains/mainnet/osmosis.json create mode 100644 chains/testnet/axone.json delete mode 100644 chains/testnet/crossfi.json diff --git a/.gitignore b/.gitignore index 212ccd2..7c9d5db 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules/ **/.vscode yarn-error.log dist -.idea \ No newline at end of file +.idea +.DS_Store \ No newline at end of file diff --git a/chains/mainnet/axelar.json b/chains/mainnet/axelar.json deleted file mode 100644 index 28bd6d9..0000000 --- a/chains/mainnet/axelar.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "chain_name": "axelar", - "api": [ - "https://rest.axelar.lava.build/lava-referer-97409c72-1a82-4861-8651-119c15151cbe" - ], - "rpc": [ - "https://tm.axelar.lava.build/lava-referer-97409c72-1a82-4861-8651-119c15151cbe" - ], - "snapshot_provider": "", - "sdk_version": "0.45.6", - "coin_type": "118", - "min_tx_fee": "800", - "addr_prefix": "axelar", - "logo": "/logos/axelar.svg", - "theme_color": "#161723", - "assets": [ - { - "base": "uaxl", - "symbol": "AXL", - "exponent": "6", - "coingecko_id": "axelar", - "logo": "/logos/axelar.svg" - }, - { - "base": "uusdc", - "symbol": "axlUSDC", - "exponent": "6", - "coingecko_id": "usd-coin", - "logo": "/logos/usdc.svg" - }, - { - "base": "uusdt", - "symbol": "axlUSDT", - "exponent": "6", - "coingecko_id": "tether", - "logo": "/logos/usdt.svg" - }, - { - "base": "dai-wei", - "symbol": "axlDAI", - "exponent": "18", - "coingecko_id": "dai", - "logo": "/logos/dai.svg" - }, - { - "base": "weth-wei", - "symbol": "axlWETH", - "exponent": "18", - "coingecko_id": "ethereum", - "logo": "/logos/weth.svg" - }, - { - "base": "wmatic-wei", - "symbol": "axlWMATIC", - "exponent": "18", - "coingecko_id": "matic-network", - "logo": "/logos/wmatic.svg" - }, - { - "base": "wavax-wei", - "symbol": "axlWAVAX", - "exponent": "18", - "coingecko_id": "avalanche-2", - "logo": "/logos/wavax.svg" - }, - { - "base": "dot-planck", - "symbol": "axlDOT", - "exponent": "10", - "coingecko_id": "polkadot", - "logo": "/logos/dot.svg" - } - ] -} diff --git a/chains/mainnet/cosmos.json b/chains/mainnet/cosmos.json deleted file mode 100644 index 2bd6106..0000000 --- a/chains/mainnet/cosmos.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "chain_name": "cosmos", - "registry_name": "cosmoshub", - "api": [ - {"provider": "notional", "address": "https://api-cosmoshub-ia.cosmosia.notional.ventures"}, - {"provider": "blockapsis", "address": "https://lcd-cosmoshub.blockapsis.com:443"}, - {"provider": "WhisperNode🤐", "address": "https://lcd-cosmoshub.whispernode.com:443"}, - {"provider": "pupmos", "address": "https://api-cosmoshub.pupmos.network"}, - {"provider": "publicnode", "address": "https://cosmos-rest.publicnode.com"}, - {"provider": "staketab", "address": "https://cosmos-rest.staketab.org"}, - {"provider": "nodestake", "address": "https://api.cosmos.nodestake.top"}, - {"provider": "Golden Ratio Staking", "address": "https://rest-cosmoshub.goldenratiostaking.net"} - ], - "rpc": [ - {"provider": "icycro", "address": "https://cosmos-rpc.icycro.org"}, - {"provider": "dragonstake", "address": "https://rpc.cosmos.dragonstake.io"}, - {"provider": "Golden Ratio Staking", "address": "https://rpc-cosmoshub.goldenratiostaking.net"} - ], - "sdk_version": "0.45.1", - "coin_type": "118", - "min_tx_fee": "800", - "addr_prefix": "cosmos", - "logo": "/logos/cosmos.svg", - "assets": [{ - "base": "uatom", - "symbol": "ATOM", - "exponent": "6", - "coingecko_id": "cosmos", - "logo": "/logos/cosmos.svg" - }] -} diff --git a/chains/mainnet/neutron.json b/chains/mainnet/neutron.json deleted file mode 100644 index 864e67f..0000000 --- a/chains/mainnet/neutron.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "chain_name": "neutron", - "api": [ - {"provider": "Polkachu", "address": "https://neutron-api.polkachu.com"}, - {"provider": "NodeStake", "address": "https://api.neutron.nodestake.top"}, - {"provider": "Allnodes", "address": "https://neutron-rest.publicnode.com"} - ], - "rpc": [ - {"provider": "Polkachu", "address": "https://neutron-rpc.polkachu.com"}, - {"provider": "NodeStake", "address": "https://rpc.neutron.nodestake.top"}, - {"provider": "Allnodes", "address": "https://neutron-rpc.publicnode.com:443"} - ], - "provider_chain": { - "api": ["https://api-cosmoshub-ia.cosmosia.notional.ventures"] - }, - "features": ["dashboard", "blocks", "ibc", "cosmwasm", "uptime", "parameters", "state-sync", "consensus", "supply", "widget"], - "sdk_version": "0.45.1", - "coin_type": "118", - "min_tx_fee": "8000", - "assets": [{ - "base": "untrn", - "symbol": "NTRN", - "exponent": "6", - "coingecko_id": "neutron", - "logo": "/logos/neutron.svg" - }], - "addr_prefix": "neutron", - "theme_color": "#161723", - "logo": "/logos/neutron.svg" -} diff --git a/chains/mainnet/nolus.json b/chains/mainnet/nolus.json deleted file mode 100644 index 81bdd48..0000000 --- a/chains/mainnet/nolus.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "chain_name": "nolus", - "coingecko": "nolus", - "api": [ - {"provider": "Nolus", "address": "https://pirin-cl.nolus.network:1317"}, - {"provider": "LavenderFive", "address": "https://nolus-api.lavenderfive.com:443"}, - {"provider": "Allnodes", "address": "https://nolus-rest.publicnode.com"} - ], - "rpc": [ - {"provider": "Nolus", "address": "https://pirin-cl.nolus.network:26657"}, - {"provider": "LavenderFive", "address": "https://nolus-rpc.lavenderfive.com:443"}, - {"provider": "Allnodes", "address": "https://nolus-rpc.publicnode.com:443"} - ], - "snapshot_provider": "", - "sdk_version": "v0.47.6", - "coin_type": "118", - "min_tx_fee": "0", - "addr_prefix": "nolus", - "logo": "/logos/nolus.svg", - "assets": [{ - "base": "unls", - "symbol": "NLS", - "exponent": "6", - "coingecko_id": "nolus", - "logo": "/logos/nolus.svg" - }] -} diff --git a/chains/mainnet/osmosis.json b/chains/mainnet/osmosis.json deleted file mode 100644 index 35669f3..0000000 --- a/chains/mainnet/osmosis.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "chain_name": "osmosis", - "coingecko": "osmosis", - "api": ["https://lcd.osmosis.zone","https://api-osmosis-ia.cosmosia.notional.ventures", "https://osmosis-api.polkachu.com", "https://lcd-osmosis.blockapsis.com"], - "rpc": ["https://rpc.osmosis.zone", "https://rpc-osmosis-ia.cosmosia.notional.ventures:443", "https://osmosis-rpc.polkachu.com:443", "https://osmosis.validator.network:443", "https://rpc-osmosis.blockapsis.com:443"], - "snapshot_provider": "", - "sdk_version": "0.46.1", - "coin_type": "118", - "min_tx_fee": "800", - "addr_prefix": "osmo", - "logo": "/logos/osmosis.jpg", - "theme_color": "#812cd6", - "assets": [{ - "base": "uosmo", - "symbol": "OSMO", - "exponent": "6", - "coingecko_id": "osmosis", - "logo": "/logos/osmosis.jpg" - },{ - "base": "uion", - "symbol": "ION", - "exponent": "6", - "coingecko_id": "ion", - "logo": "/logos/osmosis.jpg" - },{ - "base": "usomm", - "symbol": "SOMM", - "exponent": "6", - "coingecko_id": "somm", - "logo": "" - }] -} diff --git a/chains/testnet/axone.json b/chains/testnet/axone.json new file mode 100644 index 0000000..e00db73 --- /dev/null +++ b/chains/testnet/axone.json @@ -0,0 +1,20 @@ +{ + "chain_name": "axone-testnet-1", + "api": ["https://api.testnet.axone.xyz"], + "rpc": ["https://api.testnet.axone.xyz:443/rpc"], + "coingecko": "", + "snapshot_provider": "", + "sdk_version": "0.50.6", + "coin_type": "118", + "min_tx_fee": "800", + "addr_prefix": "axone", + "logo": "/logos/axone.png", + "assets": [ + { + "base": "uaxone", + "symbol": "AXONE", + "exponent": "6", + "logo": "/logos/axone.png" + } + ] + } \ No newline at end of file diff --git a/chains/testnet/crossfi.json b/chains/testnet/crossfi.json deleted file mode 100644 index 5414f3f..0000000 --- a/chains/testnet/crossfi.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "chain_name": "crossfi-testnet-1", - "api": ["https://crossfi-testnet-api.forpeaky.xyz"], - "rpc": ["https://crossfi-testnet-rpc.forpeaky.xyz"], - "coingecko": "", - "snapshot_provider": "", - "sdk_version": "0.47.1", - "coin_type": "118", - "min_tx_fee": "500", - "addr_prefix": "crossfi" - } \ No newline at end of file From a4927e750c0cb86ce45c8c7809c4a77d39dab3ba Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Tue, 28 May 2024 14:30:17 +0200 Subject: [PATCH 03/15] refactor: change explorer name --- chains/testnet/axone.json | 6 +++--- index.html | 4 ++-- src/layouts/components/DefaultLayout.vue | 2 +- src/plugins/i18n/locales/en.json | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/chains/testnet/axone.json b/chains/testnet/axone.json index e00db73..75154a9 100644 --- a/chains/testnet/axone.json +++ b/chains/testnet/axone.json @@ -1,5 +1,5 @@ { - "chain_name": "axone-testnet-1", + "chain_name": "Axone testnet", "api": ["https://api.testnet.axone.xyz"], "rpc": ["https://api.testnet.axone.xyz:443/rpc"], "coingecko": "", @@ -8,13 +8,13 @@ "coin_type": "118", "min_tx_fee": "800", "addr_prefix": "axone", - "logo": "/logos/axone.png", + "logo": "/logos/axone.svg", "assets": [ { "base": "uaxone", "symbol": "AXONE", "exponent": "6", - "logo": "/logos/axone.png" + "logo": "/logos/axone.svg" } ] } \ No newline at end of file diff --git a/index.html b/index.html index 3c1c9f9..ed48032 100644 --- a/index.html +++ b/index.html @@ -4,8 +4,8 @@ - Ping Dashboard - Cosmos Blockchain Explorer And Web Wallet - + Axone explorer - Cosmos Blockchain Explorer And Web Wallet for Axone blockchain + diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index 31e3a47..d1c329b 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -82,7 +82,7 @@ dayjs()

- Ping.pub + Explorer

Date: Tue, 28 May 2024 14:38:22 +0200 Subject: [PATCH 04/15] refactor: add axone logo on side and configure dark mode --- public/logo.svg | 83 +----------------------- src/assets/images/logo.svg | 19 +----- src/assets/logo-dark.svg | 1 + src/assets/logo-white.svg | 1 + src/assets/logo.svg | 82 ----------------------- src/layouts/components/DefaultLayout.vue | 7 +- 6 files changed, 10 insertions(+), 183 deletions(-) create mode 100644 src/assets/logo-dark.svg create mode 100644 src/assets/logo-white.svg delete mode 100644 src/assets/logo.svg diff --git a/public/logo.svg b/public/logo.svg index a620f52..61f98be 100644 --- a/public/logo.svg +++ b/public/logo.svg @@ -1,82 +1 @@ - - - - + \ No newline at end of file diff --git a/src/assets/images/logo.svg b/src/assets/images/logo.svg index 633839f..61f98be 100644 --- a/src/assets/images/logo.svg +++ b/src/assets/images/logo.svg @@ -1,18 +1 @@ - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/src/assets/logo-dark.svg b/src/assets/logo-dark.svg new file mode 100644 index 0000000..6dceeed --- /dev/null +++ b/src/assets/logo-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/logo-white.svg b/src/assets/logo-white.svg new file mode 100644 index 0000000..8eafcc7 --- /dev/null +++ b/src/assets/logo-white.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/logo.svg b/src/assets/logo.svg deleted file mode 100644 index a620f52..0000000 --- a/src/assets/logo.svg +++ /dev/null @@ -1,82 +0,0 @@ - - - - diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index d1c329b..8815422 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -69,6 +69,10 @@ const behind = computed(() => { dayjs() +function isDarkMode() { + return baseStore.theme == 'dark' +} +