diff --git a/.env.example b/.env.example index 3e4e505112..4921ff88f8 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,22 @@ # rename to .env.local or .env. -VITE_REFRESH_INTERVAL=2000 -VITE_FETCH_ALL_BLOCKS=true -VITE_RECENT_BLOCK_LIMIT=100 + +# Refresh interval for the app to query api for new blocks +VITE_REFRESH_INTERVAL=6000 + +# Enable fetching all blocks (this can increase api calls to public nodes resulting in rate limiting) +VITE_FETCH_ALL_BLOCKS=false + +# Limit for recent blocks and associated transactions displayed in the UI +VITE_RECENT_BLOCK_LIMIT=50 + +# URL for CoinGecko API or custom proxy +VITE_COINGECKO_URL=https://api.coingecko.com + +# GITHUB_API_URL default +VITE_GITHUB_API_URL=https://api.github.com/repos/cosmos/chain-registry/contents + +# PINGPUB_API_URL default +VITE_PINGPUB_API_URL=https://registry.ping.pub + +# IBC use PINGPUB_API_URL by Default (false) or GITHUB_API_URL (true) +VITE_IBC_USE_GITHUB_API=false diff --git a/.gitignore b/.gitignore index 9af9c5dd8f..e4a00ae8c0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,6 @@ node_modules/ yarn-error.log dist .idea + .env* !.env.example -.DS_Store \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json index ef7e9a5394..35ff4599e7 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,12 +1,12 @@ { - "tabWidth": 2, - "singleQuote": true, - "semi": true, - "endOfLine": "auto", - "bracketSpacing": true, - "trailingComma": "es5", "arrowParens": "always", + "bracketSpacing": true, + "endOfLine": "auto", + "printWidth": 80, + "semi": true, "singleAttributePerLine": false, - "printWidth": 120, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "es5", "useTabs": false } diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..62b2818013 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM node:17-alpine as builder + +WORKDIR /app +COPY . . +RUN yarn && yarn build + +FROM nginx:alpine +COPY --from=builder /app/ping.conf /etc/nginx/conf.d/default.conf +COPY --from=builder /app/dist /usr/share/nginx/html \ No newline at end of file diff --git a/README.md b/README.md index 051bc973d9..2c7d773d74 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@
-![Ping Wallet](./public/logo.svg) +![Nibiru Explorer](./public/logo.png) -

Ping Dashboard

+

Nibiru Explorer

-**Ping Dashboard is not only an explorer but also a wallet and more ... 🛠** +**Nibiru Explorer is not only an explorer but also a wallet and more ... 🛠** [![version](https://img.shields.io/github/tag/ping-pub/explorer.svg)](https://github.com/ping-pub/explorer/releases/latest) [![GitHub](https://img.shields.io/github/license/ping-pub/explorer.svg)](https://github.com/ping-pub/explorer/blob/master/LICENSE) @@ -14,21 +14,21 @@
-`Ping Dashboard` is a light explorer for Cosmos-based Blockchains. https://ping.pub . +`Nibiru Explorer` is a light explorer for Cosmos-based Blockchains. https://ping.pub . -## What sets Ping Dashboard apart from other explorers? -**Ping Dashboard** stands out by providing a real-time exploration of blockchain data without relying on caching or pre-processing. It exclusively fetches data from the Cosmos full node via LCD/RPC endpoints, ensuring a truly authentic experience. This approach is referred to as the "Light Explorer." +## What sets Nibiru Explorer apart from other explorers? +**Nibiru Explorer** stands out by providing a real-time exploration of blockchain data without relying on caching or pre-processing. It exclusively fetches data from the Cosmos full node via LCD/RPC endpoints, ensuring a truly authentic experience. This approach is referred to as the "Light Explorer." ## Are you interested in listing your blockchain on https://ping.pub? To make this repository clean, please submit your request to https://github.com/ping-pub/ping.pub.git -## Why does Ping Dashboard rely on official/trusted third-party public LCD/RPC servers? +## Why does Nibiru Explorer rely on official/trusted third-party public LCD/RPC servers? There are two primary reasons for this choice: - - Trust: In a decentralized system, it is crucial to avoid relying solely on a single entity. By utilizing official/trusted third-party public LCD/RPC servers, Ping Dashboard ensures that the data is sourced from a network of trusted participants. - - Limited Resources: As Ping Dashboard plans to list hundreds of Cosmos-based blockchains in the future, it is impractical for the Ping team to operate validators or full nodes for all of them. Leveraging trusted third-party servers allows for more efficient resource allocation. + - Trust: In a decentralized system, it is crucial to avoid relying solely on a single entity. By utilizing official/trusted third-party public LCD/RPC servers, Nibiru Explorer ensures that the data is sourced from a network of trusted participants. + - Limited Resources: As Nibiru Explorer plans to list hundreds of Cosmos-based blockchains in the future, it is impractical for the Ping team to operate validators or full nodes for all of them. Leveraging trusted third-party servers allows for more efficient resource allocation. ## Donation diff --git a/chains/Kiichain b/chains/Kiichain deleted file mode 100644 index 0257d03375..0000000000 --- a/chains/Kiichain +++ /dev/null @@ -1,26 +0,0 @@ -{ - "chain_name": "kiichain", - "registry_name": "kiichain", - "api": [ - { "provider": "kiichain", "address": "https://api-kiichain.gon.world" }, - { "provider": "gamisama", "address": "https://kiichain-api.gamisama.com" } - ], - "rpc": [ - { "provider": "kiichain", "address": "https://rpc-kiichain.gon.world" }, - { "provider": "gamisama", "address": "https://kiichain-rpc.gamisama.com" } - ], - "sdk_version": "0.47.0", - "coin_type": "118", - "min_tx_fee": "100", - "addr_prefix": "ki", - "logo": "/logos/kiichain.svg", - "assets": [ - { - "base": "uki", - "symbol": "KII", - "exponent": "6", - "coingecko_id": "kiichain", - "logo": "/logos/kiichain.svg" - } - ] -} diff --git a/chains/mainnet/axelar.json b/chains/mainnet/axelar.json deleted file mode 100644 index 255f99187d..0000000000 --- a/chains/mainnet/axelar.json +++ /dev/null @@ -1,70 +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/cataclysm-1.json b/chains/mainnet/cataclysm-1.json new file mode 100644 index 0000000000..62aa56a767 --- /dev/null +++ b/chains/mainnet/cataclysm-1.json @@ -0,0 +1,43 @@ +{ + "chain_name": "cataclysm-1", + "registry_name": "cataclysm-1", + "api": [ + { + "address": "https://lcd.archive.nibiru.fi", + "provider": "Nibiru", + "archive": false + }, + { + "address": "https://lcd.nibiru.fi", + "provider": "Nibiru", + "archive": false + } + ], + "rpc": [ + { + "address": "https://rpc.archive.nibiru.fi", + "provider": "Nibiru", + "archive": false + }, + { + "address": "https://rpc.nibiru.fi", + "provider": "Nibiru", + "archive": false + } + ], + "sdk_version": "0.45.5", + "coin_type": "118", + "min_tx_fee": "2500", + "addr_prefix": "nibi", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/nibiru/images/nibiru.svg", + "theme_color": "#F294C0", + "assets": [ + { + "base": "unibi", + "symbol": "NIBI", + "exponent": "6", + "coingecko_id": "nibiru", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/nibiru/images/nibiru.svg" + } + ] +} diff --git a/chains/mainnet/cosmos.json b/chains/mainnet/cosmos.json deleted file mode 100644 index 91e03b71a2..0000000000 --- a/chains/mainnet/cosmos.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "chain_name": "cosmos", - "registry_name": "cosmoshub", - "api": [ - { "provider": "cosmos.directory", "address": "https://rest.cosmos.directory/cosmoshub" }, - { "provider": "publicnode", "address": "https://cosmos-rest.publicnode.com" }, - { "provider": "silknode", "address": "https://cosmos.api.silknodes.io" } - ], - "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 6d9594a908..0000000000 --- a/chains/mainnet/neutron.json +++ /dev/null @@ -1,43 +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://rest.cosmos.directory/cosmoshub"] - }, - "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/nibiru-devnet-1.json b/chains/mainnet/nibiru-devnet-1.json new file mode 100644 index 0000000000..43ffda4fb3 --- /dev/null +++ b/chains/mainnet/nibiru-devnet-1.json @@ -0,0 +1,43 @@ +{ + "chain_name": "nibiru-devnet-1", + "registry_name": "nibiru-devnet-1", + "api": [ + { + "address": "https://lcd.devnet-1.nibiru.fi", + "provider": "Nibiru", + "archive": false + }, + { + "address": "https://lcd.archive.devnet-1.nibiru.fi", + "provider": "Nibiru", + "archive": true + } + ], + "rpc": [ + { + "address": "https://rpc.devnet-1.nibiru.fi", + "provider": "Nibiru", + "archive": false + }, + { + "address": "https://rpc.archive.devnet-1.nibiru.fi", + "provider": "Nibiru", + "archive": true + } + ], + "sdk_version": "0.45.5", + "coin_type": "118", + "min_tx_fee": "2500", + "addr_prefix": "nibi", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/nibiru/images/nibiru.svg", + "theme_color": "#F294C0", + "assets": [ + { + "base": "unibi", + "symbol": "NIBI", + "exponent": "6", + "coingecko_id": "nibiru", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/nibiru/images/nibiru.svg" + } + ] +} diff --git a/chains/mainnet/nibiru-testnet-2.json b/chains/mainnet/nibiru-testnet-2.json new file mode 100644 index 0000000000..fa3c259254 --- /dev/null +++ b/chains/mainnet/nibiru-testnet-2.json @@ -0,0 +1,43 @@ +{ + "chain_name": "nibiru-testnet-2", + "registry_name": "nibiru-testnet-2", + "api": [ + { + "address": "https://lcd.testnet-2.nibiru.fi", + "provider": "Nibiru", + "archive": false + }, + { + "address": "https://lcd.archive.testnet-2.nibiru.fi", + "provider": "Nibiru", + "archive": true + } + ], + "rpc": [ + { + "address": "https://rpc.testnet-2.nibiru.fi", + "provider": "Nibiru", + "archive": false + }, + { + "address": "https://rpc.archive.testnet-2.nibiru.fi", + "provider": "Nibiru", + "archive": true + } + ], + "sdk_version": "0.45.5", + "coin_type": "118", + "min_tx_fee": "2500", + "addr_prefix": "nibi", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/nibiru/images/nibiru.svg", + "theme_color": "#F294C0", + "assets": [ + { + "base": "unibi", + "symbol": "NIBI", + "exponent": "6", + "coingecko_id": "nibiru", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/nibiru/images/nibiru.svg" + } + ] +} diff --git a/chains/mainnet/nolus.json b/chains/mainnet/nolus.json deleted file mode 100644 index 2c832db946..0000000000 --- a/chains/mainnet/nolus.json +++ /dev/null @@ -1,29 +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 449480d65d..0000000000 --- a/chains/mainnet/osmosis.json +++ /dev/null @@ -1,47 +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/mainnet/xion.json b/chains/mainnet/xion.json deleted file mode 100644 index 5e82d72df9..0000000000 --- a/chains/mainnet/xion.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "chain_name": "xion", - "registry_name": "xion", - "coingecko": "xion", - "network_type": "mainnet", - "rpc": [ - { - "address": "https://rpc.xion-mainnet-1.burnt.com", - "provider": "🔥BurntLabs🔥" - }, - { - "address": "https://rpc-burnt.imperator.co/", - "provider": "Imperator.co" - }, - { - "address": "https://xion-rpc.polkachu.com", - "provider": "Polkachu" - } - ], - "api": [ - { - "address": "https://api.xion-mainnet-1.burnt.com", - "provider": "🔥BurntLabs🔥" - }, - { - "address": "https://lcd-burnt.imperator.co/", - "provider": "Imperator.co" - }, - { - "address": "https://xion-api.polkachu.com", - "provider": "Polkachu" - } - ], - "snapshot_provider": "", - "sdk_version": "0.50.13", - "coin_type": "118", - "min_tx_fee": "100", - "addr_prefix": "xion", - "theme_color": "#96b325", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/xion/images/burnt-round.png", - "assets": [ - { - "base": "uxion", - "symbol": "XION", - "exponent": "6", - "coingecko_id": "xion-2", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/xion/images/burnt-round.png" - }, - { - "base": "ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B", - "symbol": "OSMO", - "exponent": "6", - "coingecko_id": "osmosis", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png" - }, - { - "base": "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349", - "symbol": "USDC", - "exponent": "6", - "coingecko_id": "usd-coin", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/noble/images/USDCoin.png" - }, - { - "base": "ibc/CC7B293B3F08EA7DB96AFD4765BD0C7F95ABD7ECEAF21C74F3ACCBF7CEFB6591", - "symbol": "OSMO", - "exponent": "6", - "coingecko_id": "osmosis", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png" - }, - { - "base": "ibc/9463E39D230614B313B487836D13A392BD1731928713D4C8427A083627048DB3", - "symbol": "AXL", - "exponent": "6", - "coingecko_id": "axelar", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/axl.png" - }, - { - "base": "ibc/6490A7EAB61059BFC1CDDEB05917DD70BDF3A611654162A1A47DB930D40D8AF4", - "symbol": "axlUSDC", - "exponent": "6", - "coingecko_id": "usd-coin", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/axlusdc.png" - }, - { - "base": "ibc/0000000000000000000000000000000000000000000000000000000000000000", - "symbol": "axlUSDT", - "exponent": "6", - "coingecko_id": "tether", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/axlusdc.png" - }, - { - "base": "ibc/0000000000000000000000000000000000000000000000000000000000000000", - "symbol": "axlDAI", - "exponent": "18", - "coingecko_id": "dai", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/axldai.png" - }, - { - "base": "ibc/0000000000000000000000000000000000000000000000000000000000000000", - "symbol": "axlFRAX", - "exponent": "6", - "coingecko_id": "frax", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/axlfrax.png" - }, - { - "base": "ibc/AAD7136DD626569C3DDE7C5F764968BB2E939875EFC568AE5712B62081850814", - "symbol": "axlWETH", - "exponent": "18", - "coingecko_id": "axlweth", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/weth.png" - }, - { - "base": "ibc/056EA54C3D9B49B3C0418955A27980A91DD4F210914BFE240A1DB19E27895ECA", - "symbol": "KYVE", - "exponent": "6", - "coingecko_id": "kyve-network", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kyve/images/kyve-token.png" - }, - { - "base": "ibc/DBE9697AC1044255A305A2034AD360B4152632BFBFB5785234731F60196B9645", - "symbol": "ELYS", - "exponent": "6", - "coingecko_id": "elys", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/elys/images/elys.png" - }, - { - "base": "ibc/E706A0C6CACB374ADC2BCF6A74FE1B260840FC822E45DCB776DEA962A57FED30", - "symbol": "axlARB", - "exponent": "18", - "coingecko_id": "arb", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/arbitrum/images/arb.png" - } - ], - "features": [ - "dashboard", - "governance", - "staking", - "blocks", - "tx", - "uptime", - "ibc", - "supply", - "parameters", - "consensus", - "cosmwasm", - "account" - ], - "keplr_features": ["ibc-go", "ibc-transfer", "no-legacy-stdTx"] -} diff --git a/chains/testnet/bfhevm.json b/chains/testnet/bfhevm.json deleted file mode 100644 index c136f030db..0000000000 --- a/chains/testnet/bfhevm.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "chain_name": "bfhevm_777-1", - "api": ["https://rest-testnet-bfhevm.xyz:443"], - "rpc": ["https://rpc-bfhevm.xyz:8443"], - "coingecko": "", - "snapshot_provider": "", - "sdk_version": "0.45.7", - "coin_type": "60", - "min_tx_fee": "700", - "addr_prefix": "bfh", - "logo": "", - "assets": [ - { - "base": "abfh", - "symbol": "BFH", - "exponent": "18", - "coingecko_id": "", - "logo": "" - } - ] -} diff --git a/chains/testnet/crossfi.json b/chains/testnet/crossfi.json deleted file mode 100644 index d602617509..0000000000 --- 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" -} diff --git a/docker.sh b/docker.sh new file mode 100644 index 0000000000..8835b502e7 --- /dev/null +++ b/docker.sh @@ -0,0 +1,7 @@ +# chmod 755 docker.sh + +yarn --ignore-engines add +yarn --ignore-engines build +docker build -t "ping.pub/dashboard" . + +# then you can run "docker run -d -p 8080:80 ping.pub/dashboard" \ No newline at end of file diff --git a/env.d.ts b/env.d.ts index 33f49a00af..68dc2b9756 100644 --- a/env.d.ts +++ b/env.d.ts @@ -1,3 +1,16 @@ /// declare module '@personaxyz/ad-sdk'; +interface ImportMetaEnv { + readonly VITE_REFRESH_INTERVAL?: number, + readonly VITE_FETCH_ALL_BLOCKS?: boolean, + readonly VITE_RECENT_BLOCK_LIMIT?: number, + readonly VITE_COINGECKO_URL?: string, + readonly VITE_GITHUB_API_URL?: string, + readonly VITE_PINGPUB_API_URL?: string, + readonly VITE_IBC_USE_GITHUB_API?: string, +} + +interface ImportMeta { + readonly env: ImportMetaEnv; +} diff --git a/index.html b/index.html index 071071a5e5..8c02d8f1c7 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + @@ -10,13 +10,26 @@ content="Nibiru Explorer is a block explorer/web wallet for Nibiru Chain." /> + + + +
-
@@ -25,27 +38,9 @@
- - - diff --git a/package.json b/package.json index ef0ebd1097..a137ce174c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "ping.pub", + "name": "nibiru-explorer", "version": "3.0.0", "private": true, "target": "", @@ -13,19 +13,20 @@ "type-check": "vue-tsc --noEmit" }, "dependencies": { - "@chain-registry/types": "^0.50.162", + "@chain-registry/client": "^1.53.184", + "@chain-registry/types": "^0.50.184", "@chenfengyuan/vue-countdown": "2", "@cosmjs/amino": "^0.32.3", "@cosmjs/crypto": "^0.32.3", "@cosmjs/encoding": "^0.32.3", "@cosmjs/stargate": "^0.32.3", + "@cosmjs/cosmwasm-stargate": "^0.30.0", "@iconify/vue": "^4.1.0", "@intlify/unplugin-vue-i18n": "^0.8.2", "@leapwallet/cosmos-snap-provider": "^0.1.20", "@leapwallet/name-matcha": "^2.0.0", "@osmonauts/lcd": "^0.8.0", "@personaxyz/ad-sdk": "0.0.25", - "@ping-pub/chain-registry-client": "^0.0.25", "@vitejs/plugin-vue-jsx": "^3.0.0", "@vueuse/core": "^9.12.0", "@vueuse/integrations": "^10.1.2", @@ -33,11 +34,14 @@ "apexcharts": "^3.37.1", "autoprefixer": "^10.4.14", "axios": "^1.3.2", + "bech32": "^1.1.4", "buffer": "^6.0.3", "build": "^0.1.4", "cross-fetch": "^3.1.5", "daisyui": "^3.1.0", "dayjs": "^1.11.7", + "idna-uts46-hx": "^5.0.7", + "js-sha3": "^0.8.0", "lazy-load-vue3": "^1.3.0", "long": "^5.2.1", "md-editor-v3": "^2.8.1", @@ -67,7 +71,7 @@ "@vue/tsconfig": "^0.1.3", "husky": "^9.1.7", "npm-run-all": "^4.1.5", - "prettier": "^2.7.1", + "prettier": "^3.0.0", "pretty-quick": "^4.2.2", "sass": "^1.58.0", "shiki": "^1.0.0-beta.0", diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000000..a5750dd2bf Binary files /dev/null and b/public/logo.png differ diff --git a/public/logo.svg b/public/logo.svg deleted file mode 100644 index a620f52a3e..0000000000 --- a/public/logo.svg +++ /dev/null @@ -1,82 +0,0 @@ - - - - diff --git a/public/logos/nibiru.png b/public/logos/nibiru.png new file mode 100644 index 0000000000..a5750dd2bf Binary files /dev/null and b/public/logos/nibiru.png differ diff --git a/public/test.html b/public/test.html deleted file mode 100644 index 6edc088dc8..0000000000 --- a/public/test.html +++ /dev/null @@ -1,17 +0,0 @@ - - - Widget Test - - - -
-
- -
-
- - -
-
- - diff --git a/src/assets/logo.png b/src/assets/logo.png new file mode 100644 index 0000000000..a5750dd2bf Binary files /dev/null and b/src/assets/logo.png differ diff --git a/src/assets/logo.svg b/src/assets/logo.svg deleted file mode 100644 index a620f52a3e..0000000000 --- a/src/assets/logo.svg +++ /dev/null @@ -1,82 +0,0 @@ - - - - diff --git a/src/assets/nibiru.svg b/src/assets/nibiru.svg deleted file mode 100644 index 15eabe343f..0000000000 --- a/src/assets/nibiru.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/assets/wallets/keplr.png b/src/assets/wallets/keplr.png index 23bf042e3e..b3ba88a678 100644 Binary files a/src/assets/wallets/keplr.png and b/src/assets/wallets/keplr.png differ diff --git a/src/components/CardStatisticsVertical.vue b/src/components/CardStatisticsVertical.vue index 7bc36b5e2f..2adf173889 100644 --- a/src/components/CardStatisticsVertical.vue +++ b/src/components/CardStatisticsVertical.vue @@ -24,9 +24,15 @@ const isPositive = controlledComputed(