Compare commits

...
34 Commits
Author SHA1 Message Date
liangping 1e0342423b rename actions 2022-10-29 13:16:48 +08:00
liangping ba743e2085 reorder links 2022-10-29 09:52:32 +08:00
liangping a695db9320 remove social links 2022-10-29 09:25:00 +08:00
ping 9c900bcd54 Merge pull request #246 from effofxprime/master
Adding Rebus Chain
2022-10-29 08:40:48 +08:00
Erialos 4b13fb7291 Update rebus.json 2022-10-28 08:47:25 -06:00
Erialos f27bbec54c Merge branch 'master' of https://github.com/effofxprime/pingpub_explorer 2022-10-28 08:44:11 -06:00
Erialos 1f9645dc35 Update rebus.json 2022-10-28 08:43:57 -06:00
Erialos ca2d2314d8 Merge branch 'ping-pub:master' into master 2022-10-28 08:43:15 -06:00
ping a6419a0a11 Merge pull request #245 from nodestake/ping-PR
Add jackal rpc/api by NodeStake
2022-10-28 17:33:39 +08:00
NodeStake 43681f3251 Add jackal rpc/api by NodeStake 2022-10-28 15:40:07 +08:00
liangping f11c119f43 add autoclean storage 2022-10-28 14:10:03 +08:00
liangping f03ee64cfa remove validator cache 2022-10-28 13:39:18 +08:00
liangping cb7a3321d6 Merge branch 'master' of https://github.com/ping-pub/explorer 2022-10-28 13:31:39 +08:00
liangping 427d6bb241 remove quotos 2022-10-28 13:10:47 +08:00
ping fb9959b7b5 Merge pull request #244 from polkachu/master
fix jackal endpoints
2022-10-28 13:02:53 +08:00
Polkachu 0bdfb30705 fix bad code 2022-10-27 21:59:28 -07:00
liangping f309b899fc remove console 2022-10-28 12:21:37 +08:00
liangping 676e19ed1d remove price cache 2022-10-28 12:11:46 +08:00
liangping b684059eb0 Merge branch 'master' of https://github.com/ping-pub/explorer 2022-10-28 11:18:41 +08:00
liangping c4cf50b4ca add frequency 2022-10-28 11:18:30 +08:00
liangping af061b553d fix typo 2022-10-28 11:18:20 +08:00
Polkachu 057f842544 fix jackal endpoints 2022-10-27 18:11:30 -07:00
Erialos e8006eb966 Update rebus.json 2022-10-27 17:40:46 -06:00
ping d469b394b4 Merge pull request #243 from polkachu/master
add polkachu endpoint for jackal
2022-10-28 07:21:30 +08:00
Erialos 6988f2e1db rebus network 2022-10-27 17:03:31 -06:00
Polkachu 70a29ce9f7 update 2022-10-27 10:45:02 -07:00
Polkachu 644f0fd946 update 2022-10-27 09:15:44 -07:00
Polkachu 10e58ea7d4 add polkachu endpoint for jackal 2022-10-26 11:05:12 -07:00
liangping 44be3478fa upgrade github action 2022-10-26 18:49:52 +08:00
ping 937ef1c880 Merge pull request #242 from ping-pub/check
add config workflow
2022-10-26 18:28:26 +08:00
ping a6d3762cc0 Merge pull request #240 from manolius148/master
Rename lumenx.json.disabled to lumenx.json
2022-10-26 09:29:31 +08:00
ping 9779585eeb Merge pull request #241 from JackalLabs/jackal-main
Jackal goes Mainnet
2022-10-26 09:27:03 +08:00
Marston Connell 0618336741 jackal mainnet 2022-10-25 21:17:05 -04:00
manolius148 92f7fd9275 Rename lumenx.json.disabled to lumenx.json
It's of the community interest to get the highest visibility for this Blockchain. Please do not comply with malintentioned or interested petitions to shut down networks. Fair play.
2022-10-25 10:31:17 +02:00
14 changed files with 125 additions and 36 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: Deploy to ping.pub
name: Config Checker
on:
# push:
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- name: print
run: echo ${GITHUB_REF#refs/heads/}
- name: Git Checkout Latest
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install
run: yarn install
+1 -1
View File
@@ -1,5 +1,5 @@
name: Ping Deploy
name: Testnet Deploy
on:
push:
Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

+18
View File
@@ -0,0 +1,18 @@
{
"chain_name": "jackal",
"coingecko": "",
"api": ["https://api.jackalprotocol.com", "https://jackal-api.polkachu.com","https://api.jackal.nodestake.top"],
"rpc": ["https://rpc.jackalprotocol.com", "https://jackal-rpc.polkachu.com","https://rpc.jackal.nodestake.top"],
"snapshot_provider": "",
"coin_type": "118",
"sdk_version": "0.45.9",
"addr_prefix": "jkl",
"logo": "/logos/jackal.png",
"assets": [{
"base": "ujkl",
"symbol": "JKL",
"exponent": "6",
"coingecko_id": "jackal",
"logo": "/logos/jackal.png"
}]
}
+20
View File
@@ -0,0 +1,20 @@
{
"chain_name": "rebus",
"api": ["https://api.mainnet.rebus.money:1317"],
"rpc": ["https://api.mainnet.rebus.money:26657"],
"snapshot_provider": "",
"sdk_version": "0.45.6",
"coin_type": "118",
"min_tx_fee": "5000",
"addr_prefix": "rebus",
"logo": "/logos/rebus.png",
"assets": [
{
"base": "arebus",
"symbol": "REBUS",
"exponent": "18",
"coingecko_id": "rebus",
"logo": "/logos/rebus.png"
}
]
}
+2 -2
View File
@@ -1,8 +1,8 @@
{
"chain_name": "jackal",
"coingecko": "jackal",
"api": "https://api.jackalprotocol.com",
"rpc": "https://rpc.jackalprotocol.com",
"api": "https://testnet-api.jackalprotocol.com",
"rpc": "https://testnet-rpc.jackalprotocol.com",
"coin_type": "118",
"sdk_version": "0.45.9",
"addr_prefix": "jkl",
+13 -1
View File
@@ -185,7 +185,19 @@ export default class ChainFetch {
async getValidatorList(config = null) {
return this.get('/cosmos/staking/v1beta1/validators?pagination.limit=200&status=BOND_STATUS_BONDED', config).then(data => {
const vals = commonProcess(data.validators).map(i => new Validator().init(i))
localStorage.setItem(`validators-${this.config.chain_name}`, JSON.stringify(vals))
try {
localStorage.setItem(`validators-${this.config.chain_name}`, JSON.stringify(vals))
} catch (err) {
// clear cache
for (let i = 0; i < localStorage.length; i += 1) {
const key = localStorage.key(i)
if (key.startsWith('validators')) {
localStorage.removeItem(key)
}
}
// set again
localStorage.setItem(`validators-${this.config.chain_name}`, JSON.stringify(vals))
}
return vals
})
}
+8 -13
View File
@@ -36,25 +36,20 @@ function processMenu() {
icon: 'LifeBuoyIcon',
})
}
chainMenus.push({
title: 'Github',
href: 'https://github.com/ping-pub/explorer',
icon: 'GithubIcon',
})
chainMenus.push({
title: 'Discord',
href: 'https://discord.gg/CmjYVSr6GW',
icon: 'EyeIcon',
})
chainMenus.push({
title: 'Twitter',
href: 'https://twitter.com/ping_pub',
icon: 'TwitterIcon',
})
chainMenus.push({
title: 'Telegram',
href: 'https://t.me/pingpub',
icon: 'SendIcon',
title: 'FAQ',
href: 'https://github.com/ping-pub/explorer/discussions',
icon: 'MessageSquareIcon',
})
chainMenus.push({
title: 'Github',
href: 'https://github.com/ping-pub/explorer',
icon: 'GithubIcon',
})
return chainMenus
+19 -4
View File
@@ -10,7 +10,7 @@ import { sha256 } from '@cosmjs/crypto'
import { toHex } from '@cosmjs/encoding'
let chains = {}
const coingecko = {}
let configs = require.context('../../chains/mainnet', false, /\.json$/)
if (isTestnet()) {
configs = require.context('../../chains/testnet', false, /\.json$/)
@@ -21,6 +21,9 @@ configs.keys().forEach(k => {
const c = configs(k)
c.chain_name = String(c.chain_name).toLowerCase()
update[c.chain_name] = c
c.assets.forEach(x => {
if (x.coingecko_id && x.coingecko_id !== '') coingecko[x.coingecko_id] = String(x.symbol).toUpperCase()
})
})
chains = update
@@ -83,9 +86,21 @@ export default {
},
actions: {
async getQuotes(context) {
fetch('https://price.ping.pub/quotes').then(data => data.json()).then(data => {
context.commit('setQuotes', data)
})
// fetch('https://price.ping.pub/quotes').then(data => data.json()).then(data => {
// context.commit('setQuotes', data)
// })
const keys = Object.keys(coingecko)
if (keys.length > 0) {
const currencies = 'usd,cny,eur,jpy,krw,sgd,hkd'
fetch(`https://api.coingecko.com/api/v3/simple/price?vs_currencies=${currencies}&ids=${keys.join(',')}`).then(data => data.json()).then(data => {
// use symbol as key instead of coingecko id
const quotes = {}
Object.keys(data).forEach(k => {
quotes[coingecko[k]] = data[k]
})
context.commit('setQuotes', quotes)
})
}
},
async getAllIBCDenoms(context, _this) {
+1 -1
View File
@@ -319,7 +319,7 @@
<feather-icon
icon="PlusCircleIcon"
/>
receive
Receive
</b-button>
</b-col>
</b-row>
+41 -4
View File
@@ -118,8 +118,33 @@
<h4>#{{ height }}</h4>
</b-col>
<b-col
md="3"
sm="12"
md="9"
>
<b-input-group
prepend="Fetch Frequency"
>
<b-form-select
id="frequency"
v-model="frequency"
placeholder="Frequency to fetch data"
@change="onFrequencyChange()"
>
<b-form-select-option value="6000">
6s
</b-form-select-option>
<b-form-select-option value="2000">
2s
</b-form-select-option>
<b-form-select-option value="1000">
1s
</b-form-select-option>
</b-form-select>
</b-input-group>
</b-col>
<b-col
sm="12"
md="6"
>
<b-input-group
prepend="Qty of absent validators"
@@ -144,7 +169,12 @@
class="text-truncate"
>
{{ x.name }}
<b-badge :variant="x.counter > 0 ? 'light-danger': 'light-success'">
<b-badge
v-if="x.proposed > 0"
v-b-tooltip.hover.v-second
:title="x.proposed > 0?`${ Number(x.counter / x.proposed * 100).toFixed(2) } %`:''"
:variant="x.counter > 0 ? 'light-danger': 'light-success'"
>
{{ x.counter }} / {{ x.proposed }}
</b-badge>
</b-col>
@@ -157,7 +187,7 @@
<script>
import {
BSkeleton, BSkeletonWrapper, BInputGroupAppend, BTabs, BTab, BFormGroup,
BSkeleton, BSkeletonWrapper, BInputGroupAppend, BTabs, BTab, BFormGroup, BFormSelect, BFormSelectOption,
BRow, BCol, VBTooltip, BFormInput, BCard, BAlert, BFormCheckbox, BButton, BBadge, BInputGroup, BInputGroupPrepend,
} from 'bootstrap-vue'
@@ -177,6 +207,8 @@ export default {
BButton,
BBadge,
BFormCheckbox,
BFormSelect,
BFormSelectOption,
BInputGroup,
BSkeleton,
BSkeletonWrapper,
@@ -208,6 +240,7 @@ export default {
absentValsInBlock: {},
numOfBlock: 1000,
temp: 0,
frequency: 6000,
}
},
computed: {
@@ -302,7 +335,7 @@ export default {
blocks.push({ sigs, height })
this.blocks = blocks
this.timer = setInterval(this.fetch_latest, 6000)
this.timer = setInterval(this.fetch_latest, this.frequency)
this.loading = false
})
},
@@ -313,6 +346,10 @@ export default {
})
return sigs
},
onFrequencyChange() {
clearInterval(this.timer)
this.timer = setInterval(this.fetch_latest, this.frequency)
},
hex2base64(v) {
return toBase64(fromHex(v))
},
-8
View File
@@ -673,14 +673,6 @@ export default {
initial() {
this.$http.getBankAccountBalance(this.address).then(bal => {
this.assets = bal
bal.forEach(x => {
const symbol = formatTokenDenom(x.denom)
if (!this.quotes[symbol] && symbol.indexOf('/') === -1) {
chainAPI.fetchTokenQuote(symbol).then(quote => {
this.$set(this.quotes, symbol, quote)
})
}
})
})
this.$http.getStakingReward(this.address).then(res => {
this.reward = res