diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..4689f820df --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +node_modules +.github +.idea +dist +./Dockerfile \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..89f4096c79 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +# docker image for yarn and vite: +FROM node:20.5.1-alpine as build + +WORKDIR /app + +# Install yarn +RUN apk add yarn + +# copy the package.json and yarn.lock file +COPY package.json yarn.lock ./ + +# install the dependencies +RUN yarn + +# copy the source code +COPY . . + +# build the app +RUN yarn build + +FROM nginx:1.21.1-alpine + +# copy the dist folder from build to nginx +COPY --from=build /app/dist /usr/share/nginx/html + +# expose port 80 +EXPOSE 80 + +# start nginx server +CMD ["nginx", "-g", "daemon off;"] diff --git a/chains/mainnet/cosmos.json b/chains/mainnet/cosmos.json deleted file mode 100644 index 2bd610640d..0000000000 --- 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 864e67f10b..0000000000 --- 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 81bdd48470..0000000000 --- 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 35669f39a9..0000000000 --- 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/galactica-reticulum.json b/chains/testnet/galactica-reticulum.json new file mode 100644 index 0000000000..2a520b7f6a --- /dev/null +++ b/chains/testnet/galactica-reticulum.json @@ -0,0 +1,33 @@ +{ + "chain_name": "galactica-reticulum", + "registry_name": "galactica-reticulum", + "api": [ + {"provider": "galactica", "address": "https://lcd-reticulum.galactica.com"} + ], + "rpc": [ + {"provider": "galactica", "address": "https://rpc-reticulum.galactica.com"} + ], + "sdk_version": "v0.47.3", + "coin_type": "118", + "min_tx_fee": "10", + "addr_prefix": "gala", + "logo": "/logos/galactica.png", + "cosmwasm_enabled": false, + "assets": [{ + "base": "agnet", + "symbol": "GNET", + "exponent": "18", + "coingecko_id": "galactica-network", + "logo": "/logos/galactica.png" + }], + "theme_color": "#f28056", + "keplr_features": [ + "eth-address-gen", + "eth-key-sign" + ], + "keplr_price_step": { + "low": 10, + "average": 100, + "high": 1000 + } +} diff --git a/index.html b/index.html index 3c1c9f9468..ddbe167a9b 100644 --- a/index.html +++ b/index.html @@ -4,15 +4,15 @@ - Ping Dashboard - Cosmos Blockchain Explorer And Web Wallet - + Galactica Network Dashboard - Galactica Network Explorer +
@@ -22,23 +22,6 @@
- - - - diff --git a/public/Galactica.svg b/public/Galactica.svg new file mode 100644 index 0000000000..329cb28e53 --- /dev/null +++ b/public/Galactica.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/public/favicon.ico b/public/favicon.ico index ef242a96ba..1724f8a7f8 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/logos/galactica.png b/public/logos/galactica.png new file mode 100644 index 0000000000..c08ec6d146 Binary files /dev/null and b/public/logos/galactica.png differ diff --git a/src/assets/Galactica.svg b/src/assets/Galactica.svg new file mode 100644 index 0000000000..329cb28e53 --- /dev/null +++ b/src/assets/Galactica.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/components/charts/apexChartConfig.ts b/src/components/charts/apexChartConfig.ts index 6e8a78ad77..95ea4dbeb4 100644 --- a/src/components/charts/apexChartConfig.ts +++ b/src/components/charts/apexChartConfig.ts @@ -12,7 +12,7 @@ const themeColors = (theme: string) => { surface: '#FFFFFF', 'surface-variant': '#424242', 'on-surface-variant': '#EEEEEE', - primary: chainStore.current?.themeColor || '#666CFF', + primary: chainStore.current?.themeColor || '#f28056', 'primary-darken-1': '#3700B3', secondary: '#6D788D', 'secondary-darken-1': '#018786', @@ -92,7 +92,7 @@ const themeColors = (theme: string) => { surface: '#30334E', 'surface-variant': '#BDBDBD', 'on-surface-variant': '#424242', - primary: chainStore.current?.themeColor || '#666CFF', + primary: chainStore.current?.themeColor || '#f28056', 'primary-darken-1': '#3700B3', secondary: '#6D788D', 'secondary-darken-1': '#03DAC5', diff --git a/src/components/dynamic/TextElement.vue b/src/components/dynamic/TextElement.vue index 61ee2b47a8..7fc19ae267 100644 --- a/src/components/dynamic/TextElement.vue +++ b/src/components/dynamic/TextElement.vue @@ -112,7 +112,7 @@ const isConvertable = computed(() => { margin-bottom: 1rem; } a { - color: #666cff !important; + color: #f28056 !important; } .h1 > a, .h2> a, .h3> a, .h4> a, .h5> a, .h6> a, h1> a, h2> a, h3> a, h4> a, h5> a, h6> a { color: inherit !important; diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index 31e3a47b5e..d3f4acb888 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -80,9 +80,9 @@ dayjs() >
- -

- Ping.pub + +

+ Galactica Network

- - { - meta: { - i18n: 'cosmwasm' - } - } - + + + + + + + diff --git a/src/modules/wallet/accounts.vue b/src/modules/wallet/accounts.vue index d9e4555459..32546c87ef 100644 --- a/src/modules/wallet/accounts.vue +++ b/src/modules/wallet/accounts.vue @@ -228,7 +228,7 @@ async function loadBalances(chainName: string, endpoint: string, address: string
- diff --git a/src/pages/index.vue b/src/pages/index.vue index 7e4f9e1bea..b3d8e8b0f4 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -41,28 +41,12 @@ const chainStore = useBlockchain()
- - - - - - - - +
-

- {{ $t('pages.title') }} +

+ + {{ $t('pages.title') }} +

diff --git a/src/plugins/i18n/locales/cn.json b/src/plugins/i18n/locales/cn.json index 91071eeede..94fa7b9b12 100644 --- a/src/plugins/i18n/locales/cn.json +++ b/src/plugins/i18n/locales/cn.json @@ -22,9 +22,9 @@ "links": "链接" }, "pages": { - "title": "Ping Dashboard", - "slogan": "Ping Dashboard 是一个区块链浏览器,也是一个网页钱包,还有更多 ... 🛠", - "description": "Cosmos Ecosystem Blockchains 🚀", + "title": "Galactica Network Dashboard", + "slogan": "An L1 for Cypher States and the\nfirst holistic on-chain nation", + "description": "Web3's most comprehensive #DeSoc stack", "search_placeholder": "搜索区块链", "add_to_favorite": "加入收藏夹", "title_all": "404", diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index 16f4075c55..9f505d373c 100644 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -23,12 +23,12 @@ "links": "Links" }, "pages": { - "title": "Ping Dashboard", + "title": "Galactica Network", "title_all": "404", "tag": "Beta", "tag_all": "Page Not Found", - "slogan": "Ping Dashboard is not just an explorer but also a wallet and more ... 🛠", - "description": "Cosmos Ecosystem Blockchains 🚀", + "slogan": "An L1 for Cypher States and the\nfirst holistic on-chain nation", + "description": "Web3's most comprehensive #DeSoc stack", "search_placeholder": "Search Chain", "description_all": "We couldn't find the page you are looking for.", "out_of_sync": "The latest block was produced at ", diff --git a/src/stores/useDashboard.ts b/src/stores/useDashboard.ts index 530b96a470..651e638ea0 100644 --- a/src/stores/useDashboard.ts +++ b/src/stores/useDashboard.ts @@ -266,7 +266,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, diff --git a/tailwind.config.js b/tailwind.config.js index e6acb15bf4..ed9dfab48b 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -20,13 +20,13 @@ module.exports = { { light: { ...require('daisyui/src/theming/themes')['[data-theme=light]'], - primary: '#666cff', + primary: '#f28056', }, }, { dark: { ...require('daisyui/src/theming/themes')['[data-theme=dark]'], - primary: '#666cff', + primary: '#f28056', 'base-100': '#2a334c', 'base-200': '#252d37' },