Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"api": [
{
"provider": "MANTRA",
"address": "https://api.dukong.mantrachain.dev"
"address": "https://api.archive.dukong.mantrachain.io"
}
],
"rpc": [
{
"provider": "MANTRA",
"address": "https://rpc.dukong.mantrachain.dev"
"address": "https://rpc.archive.dukong.mantrachain.io"
}
],
"snapshot_provider": "",
Expand All @@ -30,4 +30,4 @@
"logo": "../assets/images/coins/om.jpg"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"logo": "../assets/images/coins/om.jpg"
}
]
}
}
33 changes: 33 additions & 0 deletions chains/internal/5_mantra-internal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"chain_name": "MANTRA-1-Internal",
"coingecko": "om",
"type": "mainnet",
"api": [
{
"provider": "MANTRA",
"address": "https://api.archive.mantrachain.io"
}
Comment on lines +8 to +9
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Verify the archive node endpoints are accessible

Ensure the new API endpoint is accessible and properly configured.


🏁 Script executed:

#!/bin/bash
# Check if the API endpoint responds with a 200 status code
curl -s -o /dev/null -w "%{http_code}" https://api.archive.mantrachain.io/node_info

Length of output: 89


Action Required: Archive Node Endpoint Misconfiguration

The verification script indicates that the API endpoint at https://api.archive.mantrachain.io/node_info returns a 403 Forbidden status rather than the expected 200 response. This suggests that either additional authentication or configuration adjustments may be required for proper accessibility.

  • Please confirm if the endpoint is intentionally secured (e.g., requiring authentication or IP whitelisting).
  • Verify the server configuration to ensure that the endpoint allows access as needed.
  • If authentication is intended, update the documentation and implementation to include the necessary credentials or headers.

],
"rpc": [
{
"provider": "MANTRA",
"address": "https://rpc.archive.mantrachain.io"
}
Comment on lines +14 to +15
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Verify the RPC endpoint is accessible

Ensure the new RPC endpoint is accessible and properly configured.


🏁 Script executed:

#!/bin/bash
# Check if the RPC endpoint responds with a 200 status code
curl -s -o /dev/null -w "%{http_code}" https://rpc.archive.mantrachain.io/status

Length of output: 86


RPC Endpoint Access Issue Detected

The verification indicates that the RPC endpoint (https://rpc.archive.mantrachain.io/status) returned an HTTP status code of 403 rather than the expected 200. This suggests that the endpoint may be misconfigured or access-restricted.

  • Confirm if the endpoint requires specific authentication or has firewall/network rules blocking access.
  • Investigate and adjust the endpoint's configuration to ensure it responds with a 200 status code when accessed.

],
"snapshot_provider": "",
"sdk_version": "0.50.0",
"coin_type": "118",
"min_tx_fee": "100000",
"addr_prefix": "mantra",
"logo": "https://assets.mantra.finance/images/networks/dukong.svg",
"theme_color": "#FF97D6",
"assets": [
{
"base": "uom",
"symbol": "OM",
"exponent": "6",
"coingecko_id": "mantra-dao",
"logo": "../assets/images/coins/om.jpg"
}
]
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@vueuse/math": "^9.12.0",
"apexcharts": "^3.37.1",
"autoprefixer": "^10.4.14",
"axios": "^1.3.2",
"axios": "^1.8.2",
"buffer": "^6.0.3",
"build": "^0.1.4",
"chain-registry": "^1.69.39",
Expand All @@ -45,13 +45,13 @@
"numeral": "^2.0.6",
"osmojs": "^14.0.0-rc.0",
"pinia": "^2.0.28",
"postcss": "^8.4.23",
"postcss": "8.4.31",
"qrcode": "^1.5.3",
"tailwindcss": "^3.3.1",
"theme-change": "^2.5.0",
"vite-plugin-vue-layouts": "^0.7.0",
"vue": "^3.2.45",
"vue-i18n": "^9.2.2",
"vue-i18n": "11.1.2",
"vue-prism-component": "^2.0.0",
"vue-router": "^4.1.6",
"vue3-apexcharts": "^1.4.1",
Expand All @@ -78,5 +78,6 @@
"vite-plugin-pages": "^0.28.0",
"vue-json-viewer": "3",
"vue-tsc": "^1.0.12"
}
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
6 changes: 4 additions & 2 deletions src/stores/useDashboard.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia';
import { get } from '../libs/http';
import { get } from '@/libs';
import type { Chain, Asset } from '@ping-pub/chain-registry-client/dist/types';
import { useBlockchain } from './useBlockchain';

Expand Down Expand Up @@ -347,12 +347,14 @@ export const useDashboard = defineStore('dashboard', {
},
async loadingFromLocal() {
let testnets: Record<string, LocalConfig> = {};
let internals: Record<string, LocalConfig> = {};
if (window.location.hostname.search('.int.') > -1 || window.location.hostname.search('localhost') > -1) {
testnets = import.meta.glob('../../chains/testnet/*.json', { eager: true });
internals = import.meta.glob('../../chains/internal/*.json', { eager: true });
}
const mainnets: Record<string, LocalConfig> = import.meta.glob('../../chains/mainnet/*.json', { eager: true });

const source = { ...mainnets, ...testnets };
const source = { ...mainnets, ...testnets, ...internals };

Object.values<LocalConfig>(source).forEach((x: LocalConfig) => {
this.chains[x.chain_name] = fromLocal(x);
Expand Down
82 changes: 43 additions & 39 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2000,31 +2000,35 @@
source-map "0.6.1"
yaml-eslint-parser "^0.3.2"

"@intlify/core-base@9.3.0":
version "9.3.0"
resolved "https://registry.yarnpkg.com/@intlify/core-base/-/core-base-9.3.0.tgz#fa42e32f89f06d421772fcedeec7dfba845ba98f"
integrity sha512-SRzn8TMnPZ6MY8OFrgouRq4DGaf01SHcJEF6FglYFYvRkgPzziEcQe+v2PD+O5lUp/rJafP4dabm1CmsVAA7rA==
"@intlify/core-base@11.1.2":
version "11.1.2"
resolved "https://registry.yarnpkg.com/@intlify/core-base/-/core-base-11.1.2.tgz#f924d60a94b6ab5222848ff0af678c461a1b6a7d"
integrity sha512-nmG512G8QOABsserleechwHGZxzKSAlggGf9hQX0nltvSwyKNVuB/4o6iFeG2OnjXK253r8p8eSDOZf8PgFdWw==
dependencies:
"@intlify/devtools-if" "9.3.0"
"@intlify/message-compiler" "9.3.0"
"@intlify/shared" "9.3.0"
"@intlify/vue-devtools" "9.3.0"
"@intlify/message-compiler" "11.1.2"
"@intlify/shared" "11.1.2"

"@intlify/devtools-if@9.3.0":
version "9.3.0"
resolved "https://registry.yarnpkg.com/@intlify/devtools-if/-/devtools-if-9.3.0.tgz#ae5a4d3577e05577e65bb6abbb0506d8af9309f6"
integrity sha512-5aKZnqj0Ff4dfwBX2Oo+MheVs00CBnC0RzWK26aT2M4AF0cxdFLOJAs51/eHT01jmzrxSvfBMjdArUWHwgetfg==
"@intlify/message-compiler@11.1.2":
version "11.1.2"
resolved "https://registry.yarnpkg.com/@intlify/message-compiler/-/message-compiler-11.1.2.tgz#711af9421fa8c0339501eb67fa90ebe00cbd3725"
integrity sha512-T/xbNDzi+Yv0Qn2Dfz2CWCAJiwNgU5d95EhhAEf4YmOgjCKktpfpiUSmLcBvK1CtLpPQ85AMMQk/2NCcXnNj1g==
dependencies:
"@intlify/shared" "9.3.0"
"@intlify/shared" "11.1.2"
source-map-js "^1.0.2"

"@intlify/message-compiler@9.3.0", "@intlify/message-compiler@next":
"@intlify/message-compiler@next":
version "9.3.0"
resolved "https://registry.yarnpkg.com/@intlify/message-compiler/-/message-compiler-9.3.0.tgz#203366fe7448255731e951507c4d79093bf898b1"
integrity sha512-D8tSJEhTCSFcCzkThjE4Sbk1tIdvzkYa1FaVIzUtZ8hKPATvokNrOiDw1i/h671m8A80l9Ywq594i/LPTB6EJA==
dependencies:
"@intlify/shared" "9.3.0"
source-map-js "^1.0.2"

"@intlify/shared@11.1.2":
version "11.1.2"
resolved "https://registry.yarnpkg.com/@intlify/shared/-/shared-11.1.2.tgz#d780bc8eb4e3c3ef8a3e45c421f0f5ecf59651f2"
integrity sha512-dF2iMMy8P9uKVHV/20LA1ulFLL+MKSbfMiixSmn6fpwqzvix38OIc7ebgnFbBqElvghZCW9ACtzKTGKsTGTWGA==

"@intlify/shared@9.3.0", "@intlify/shared@next":
version "9.3.0"
resolved "https://registry.yarnpkg.com/@intlify/shared/-/shared-9.3.0.tgz#8875120f1e6826be0e99b623e2618167402bfe41"
Expand All @@ -2048,14 +2052,6 @@
source-map "0.6.1"
unplugin "^1.0.0"

"@intlify/vue-devtools@9.3.0":
version "9.3.0"
resolved "https://registry.yarnpkg.com/@intlify/vue-devtools/-/vue-devtools-9.3.0.tgz#f3137319fadaa92686de11be5ef28209dc828455"
integrity sha512-kEaxIz1VEgsz2q5RhoS+fBGTkXr/4+pxmK9mN14+speVGb82HPRntKBmz0GO18I1JisD4Z0vAva+KCTHGeAqbQ==
dependencies:
"@intlify/core-base" "9.3.0"
"@intlify/shared" "9.3.0"

"@istanbuljs/load-nyc-config@^1.0.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced"
Expand Down Expand Up @@ -3224,15 +3220,6 @@ axios@^0.21.2:
dependencies:
follow-redirects "^1.14.0"

axios@^1.3.2:
version "1.5.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.5.0.tgz#f02e4af823e2e46a9768cfc74691fdd0517ea267"
integrity sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==
dependencies:
follow-redirects "^1.15.0"
form-data "^4.0.0"
proxy-from-env "^1.1.0"

axios@^1.6.0:
version "1.6.8"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.8.tgz#66d294951f5d988a00e87a0ffb955316a619ea66"
Expand All @@ -3242,6 +3229,15 @@ axios@^1.6.0:
form-data "^4.0.0"
proxy-from-env "^1.1.0"

axios@^1.8.2:
version "1.8.3"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.8.3.tgz#9ebccd71c98651d547162a018a1a95a4b4ed4de8"
integrity sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==
dependencies:
follow-redirects "^1.15.6"
form-data "^4.0.0"
proxy-from-env "^1.1.0"

babel-plugin-istanbul@^6.1.1:
version "6.1.1"
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73"
Expand Down Expand Up @@ -4410,7 +4406,7 @@ fn.name@1.x.x:
resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc"
integrity sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==

follow-redirects@^1.14.0, follow-redirects@^1.14.9, follow-redirects@^1.15.0:
follow-redirects@^1.14.0, follow-redirects@^1.14.9:
version "1.15.2"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13"
integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==
Expand Down Expand Up @@ -6203,6 +6199,15 @@ postcss-value-parser@^4.0.0, postcss-value-parser@^4.2.0:
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==

postcss@8.4.31:
version "8.4.31"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d"
integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==
dependencies:
nanoid "^3.3.6"
picocolors "^1.0.0"
source-map-js "^1.0.2"

postcss@^7.0.1:
version "7.0.39"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309"
Expand Down Expand Up @@ -7372,14 +7377,13 @@ vue-demi@*, vue-demi@>=0.14.5:
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.14.6.tgz#dc706582851dc1cdc17a0054f4fec2eb6df74c92"
integrity sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==

vue-i18n@^9.2.2:
version "9.3.0"
resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-9.3.0.tgz#d85551098ab377e4237a101c77bfc05fd4887ff5"
integrity sha512-+2L+ae/e4+fixhjym3lgzGCGQG8wVGlGrDHzjfdgUudheHvbVHu5i6tn6FF+buH75UFA7T5ZO2ZO7zrh6CzuaA==
vue-i18n@11.1.2:
version "11.1.2"
resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-11.1.2.tgz#187ded4132027a58045cb7ab7e65756575045bca"
integrity sha512-MfdkdKGUHN+jkkaMT5Zbl4FpRmN7kfelJIwKoUpJ32ONIxdFhzxZiLTVaAXkAwvH3y9GmWpoiwjDqbPIkPIMFA==
dependencies:
"@intlify/core-base" "9.3.0"
"@intlify/shared" "9.3.0"
"@intlify/vue-devtools" "9.3.0"
"@intlify/core-base" "11.1.2"
"@intlify/shared" "11.1.2"
"@vue/devtools-api" "^6.5.0"

vue-json-viewer@3:
Expand Down