diff --git a/src/chains/README.md b/src/chains/README.md index 6013f393..fd241dc6 100644 --- a/src/chains/README.md +++ b/src/chains/README.md @@ -12,6 +12,7 @@ { "chain_name": "cosmos", "api": ["https://cosmos.api.ping.pub"], + "rpc": ["https://cosmos.rpc.ping.pub:443","http://your-host:26657"] "sdk_version": "0.42.6", "coin_type": "118", "min_tx_fee": "800", @@ -28,6 +29,7 @@ ``` - **chain_name** the name to identify the chain on ping.pub - **api** the rest api endpoint.(make sure that CORS is enabled: `Allow-Control-Allow-Origin: *`) +- **rpc** the rpc endpoint, make sure that the port is added. - **assets** Native Assets on blockchain. # Test diff --git a/src/chains/mainnet/akash.json b/src/chains/mainnet/akash.json index 89ce03a8..1d6d7ff8 100644 --- a/src/chains/mainnet/akash.json +++ b/src/chains/mainnet/akash.json @@ -1,6 +1,7 @@ { "chain_name": "akash-network", "api": ["https://akash.api.ping.pub"], + "rpc": ["http://rpc.akash.forbole.com:80", "http://akashsentry01.skynetvalidators.com:26657"], "sdk_version": "0.41.3", "coin_type": "118", "min_tx_fee": "8000", diff --git a/src/chains/mainnet/cosmos.json b/src/chains/mainnet/cosmos.json index ce3ba6a2..48bcf24e 100644 --- a/src/chains/mainnet/cosmos.json +++ b/src/chains/mainnet/cosmos.json @@ -1,7 +1,9 @@ { "chain_name": "cosmos", "coingecko": "cosmos", - "api": ["https://cosmos.api.ping.pub", "https://lcd-cosmoshub.blockapsis.com", "https://cosmoshub.stakesystems.io"], + "api": ["https://cosmos.api.ping.pub", "https://lcd-cosmoshub.blockapsis.com"], + "rpc": ["http://cosmos.rpc.ping.pub:26657", "https://cosmoshub.validator.network:443"], + "state_sync_interval": "1000", "sdk_version": "0.44.3", "coin_type": "118", "min_tx_fee": "800", diff --git a/src/chains/mainnet/iris.json b/src/chains/mainnet/iris.json index e17bb870..03d59bbb 100644 --- a/src/chains/mainnet/iris.json +++ b/src/chains/mainnet/iris.json @@ -1,6 +1,8 @@ { "chain_name": "iris-network", "api": "https://iris.api.ping.pub", + "rpc": ["http://34.82.96.8:26657","http://34.77.68.145:26657"], + "state_sync_interval": "400", "sdk_version": "0.42.4", "coin_type": "118", "min_tx_fee": "40000", diff --git a/src/lang/locales/en.json b/src/lang/locales/en.json index 14702c57..05aee2e2 100644 --- a/src/lang/locales/en.json +++ b/src/lang/locales/en.json @@ -39,6 +39,7 @@ "blocks": "Blocks", "blockchains": "Blockchains", "uptime": "Uptime", + "statesync": "State Sync", "trade": "Trade", "gravity": "Gravity(WIP)", diff --git a/src/navigation/vertical/index.js b/src/navigation/vertical/index.js index d53ad4e9..d1a06ea3 100644 --- a/src/navigation/vertical/index.js +++ b/src/navigation/vertical/index.js @@ -28,6 +28,11 @@ const modules = [ title: 'uptime', route: 'uptime', }, + { + scope: 'normal', + title: 'statesync', + route: 'statesync', + }, { scope: 'cos-mos', title: 'gravity', diff --git a/src/router/index.js b/src/router/index.js index a7df74b6..6bd28144 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -117,6 +117,20 @@ const router = new VueRouter({ ], }, }, + { + path: '/:chain/statesync', + name: 'statesync', + component: () => import('@/views/StateSync.vue'), + meta: { + pageTitle: 'State Sync', + breadcrumb: [ + { + text: 'State Synchronization', + active: true, + }, + ], + }, + }, { path: '/:chain/uptime', name: 'uptime', @@ -317,14 +331,6 @@ const router = new VueRouter({ }, }, // common modules - { - path: '/user/login', - name: 'login', - component: () => import('@/views/Login.vue'), - meta: { - layout: 'full', - }, - }, { path: '/error/error-404', name: 'error-404', diff --git a/src/views/StateSync.vue b/src/views/StateSync.vue new file mode 100644 index 00000000..e4e94e54 --- /dev/null +++ b/src/views/StateSync.vue @@ -0,0 +1,170 @@ + + +