update config

This commit is contained in:
liangping 2022-05-12 10:46:10 +08:00
parent 139b42416a
commit ad0d66572d
5 changed files with 62 additions and 27 deletions

View File

@ -3,7 +3,6 @@
"coingecko": "bitcanna", "coingecko": "bitcanna",
"api":"https://lcd.bitcanna.io", "api":"https://lcd.bitcanna.io",
"rpc": ["https://rpc.bitcanna.io:443","https://rpc.bitcanna.ezstaking.io:443"], "rpc": ["https://rpc.bitcanna.io:443","https://rpc.bitcanna.ezstaking.io:443"],
"snapshot_provider": "29edc55748bc341224f711a05cb0a9f6d73b4da3@bitcanna.rpc.ping.pub:26656",
"sdk_version": "0.45.1", "sdk_version": "0.45.1",
"coin_type": "118", "coin_type": "118",
"min_tx_fee": "8000", "min_tx_fee": "8000",

View File

@ -3,7 +3,6 @@
"coingecko": "bitsong", "coingecko": "bitsong",
"api": "https://lcd.explorebitsong.com", "api": "https://lcd.explorebitsong.com",
"rpc": ["https://rpc-bitsong.itastakers.com:443","https://rpc-bitsong.itastakers.com:443"], "rpc": ["https://rpc-bitsong.itastakers.com:443","https://rpc-bitsong.itastakers.com:443"],
"snapshot_provider": "8dbeefed0d1e39475328d3850226063208bb8ee4@bitsong.rpc.ping.pub:26656",
"addr_prefix": "bitsong", "addr_prefix": "bitsong",
"coin_type": "639", "coin_type": "639",
"min_tx_fee": "5000", "min_tx_fee": "5000",

View File

@ -3,7 +3,6 @@
"coingecko": "", "coingecko": "",
"api": ["https://api.chihuahua.wtf", "https://chihuahua-api.mercury-nodes.net"], "api": ["https://api.chihuahua.wtf", "https://chihuahua-api.mercury-nodes.net"],
"rpc": ["https://rpc.chihuahua.wtf:443", "https://rpc.chihuahua.wtf:443"], "rpc": ["https://rpc.chihuahua.wtf:443", "https://rpc.chihuahua.wtf:443"],
"snapshot_provider": "df2dffa0560e41c682b6b2e150524859e41ec1d8@chihuahua.rpc.ping.pub:26656",
"sdk_version": "0.44.3", "sdk_version": "0.44.3",
"coin_type": "118", "coin_type": "118",
"min_tx_fee": "8000", "min_tx_fee": "8000",

View File

@ -1,8 +1,7 @@
{ {
"chain_name": "rizon", "chain_name": "rizon",
"api": ["https://rizon.api.ping.pub"], "api": ["https://rizon.api.ping.pub"],
"rpc": ["http://rizon.rpc.ping.pub:26657", "http://seed-1.mainnet.rizon.world:26657"], "rpc": ["http://seed-1.mainnet.rizon.world:26657"],
"snapshot_provider": "66083d10fc1b79c584362dc266f87836455a9169@rizon.rpc.ping.pub:26656",
"sdk_version": "v0.45.0", "sdk_version": "v0.45.0",
"coin_type": "118", "coin_type": "118",
"min_tx_fee": "8000", "min_tx_fee": "8000",

View File

@ -6,8 +6,11 @@
</b-card> </b-card>
<b-card> <b-card>
<b-input-group> <b-row>
<b-input-group-prepend> <b-col
sm="12"
md="4"
>
<v-select <v-select
v-model="selected" v-model="selected"
:options="Object.values(chains)" :options="Object.values(chains)"
@ -24,10 +27,12 @@
variant="light-primary" variant="light-primary"
class="align-middle mr-50" class="align-middle mr-50"
/> />
<span> {{ chain_name }}</span> <span> {{ chain_name.toUpperCase() }}</span>
</template> </template>
</v-select> </v-select>
</b-input-group-prepend> </b-col>
<b-col>
<b-input-group>
<b-form-input <b-form-input
v-model="rpc" v-model="rpc"
placeholder="Button on both side" placeholder="Button on both side"
@ -41,6 +46,8 @@
</b-button> </b-button>
</b-input-group-append> </b-input-group-append>
</b-input-group> </b-input-group>
</b-col>
</b-row>
<div <div
v-if="httpstatus !== 200" v-if="httpstatus !== 200"
class="text-danger" class="text-danger"
@ -69,38 +76,62 @@
</b-button> </b-button>
</b-card-body> </b-card-body>
</div> </div>
<b-card-footer>
<b-button
variant="primary"
size="sm"
/> Proposer Signed
<b-button
variant="outline-primary"
size="sm"
/> Proposer Not Signed
<b-button
variant="success"
size="sm"
/> Signed
<b-button
variant="outline-secondary"
size="sm"
/> Not Signed
</b-card-footer>
</b-card> </b-card>
<app-footer class="mb-1" />
</div> </div>
</template> </template>
<script> <script>
import { import {
BAvatar, BAvatar, BCardFooter, BRow, BCol,
BBreadcrumb, BCard, BCardBody, BInputGroup, BFormInput, BInputGroupAppend, BInputGroupPrepend, BButton, BBreadcrumb, BCard, BCardBody, BInputGroup, BFormInput, BInputGroupAppend, BButton,
} from 'bootstrap-vue' } from 'bootstrap-vue'
import fetch from 'node-fetch' import fetch from 'node-fetch'
import { consensusPubkeyToHexAddress, getLocalChains } from '@/libs/utils' import { consensusPubkeyToHexAddress, getLocalChains } from '@/libs/utils'
import vSelect from 'vue-select' import vSelect from 'vue-select'
import AppFooter from '@/@core/layouts/components/AppFooter.vue'
import FullHeader from './components/FullHeader.vue' import FullHeader from './components/FullHeader.vue'
export default { export default {
components: { components: {
FullHeader, FullHeader,
BBreadcrumb, BBreadcrumb,
BRow,
BCol,
BCard, BCard,
BCardBody, BCardBody,
BCardFooter,
BInputGroup, BInputGroup,
BFormInput, BFormInput,
BInputGroupAppend, BInputGroupAppend,
BInputGroupPrepend,
BButton, BButton,
BAvatar, BAvatar,
vSelect, vSelect,
AppFooter,
}, },
data() { data() {
const chains = getLocalChains() const chains = getLocalChains()
const selected = 'cosmos' const selected = 'agoric'
return { return {
navs: [ navs: [
{ {
@ -111,7 +142,7 @@ export default {
}, },
], ],
showPrevote: false, showPrevote: false,
rpc: chains[selected].rpc[0], rpc: `${chains[selected].rpc[0]}/consensus_state`,
httpstatus: 200, httpstatus: 200,
httpStatusText: '', httpStatusText: '',
roundState: {}, roundState: {},
@ -138,6 +169,9 @@ export default {
return data.json() return data.json()
}).then(res => { }).then(res => {
this.roundState = res.result.round_state this.roundState = res.result.round_state
}).catch(err => {
this.httpstatus = 500
this.httpStatusText = err
}) })
}, },
validators() { validators() {
@ -151,6 +185,8 @@ export default {
}) })
}, },
onchange(v) { onchange(v) {
this.httpstatus = 200
this.httpStatusText = ''
this.roundState = {} this.roundState = {}
this.selected = v.chain_name this.selected = v.chain_name
this.rpc = `${v.rpc[0]}/consensus_state` this.rpc = `${v.rpc[0]}/consensus_state`
@ -162,6 +198,9 @@ export default {
this.positions = this.positions.concat(res.result.validators) this.positions = this.positions.concat(res.result.validators)
}) })
} }
}).catch(err => {
this.httpstatus = 500
this.httpStatusText = err
}) })
this.validators() this.validators()
}, },