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",
"api":"https://lcd.bitcanna.io",
"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",
"coin_type": "118",
"min_tx_fee": "8000",

View File

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

View File

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

View File

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

View File

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