forked from cerc-io/cosmos-explorer
Debug CI
This commit is contained in:
parent
79b4bc671b
commit
eb7d943691
1
.github/workflows/deploy.yaml
vendored
1
.github/workflows/deploy.yaml
vendored
@ -16,4 +16,5 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: deploy
|
||||
run: yarn install
|
||||
run: yarn run vue-cli-service build
|
@ -11,8 +11,4 @@ export default class Deposit {
|
||||
this.amount = element.amount
|
||||
return this
|
||||
}
|
||||
|
||||
debug() {
|
||||
return console.log(this)
|
||||
}
|
||||
}
|
||||
|
@ -11,8 +11,4 @@ export default class Proposer {
|
||||
}
|
||||
return this
|
||||
}
|
||||
|
||||
debug() {
|
||||
return console.log(this)
|
||||
}
|
||||
}
|
||||
|
@ -17,8 +17,4 @@ export default class StakingParameters {
|
||||
}
|
||||
return this
|
||||
}
|
||||
|
||||
debug() {
|
||||
return console.log(this)
|
||||
}
|
||||
}
|
||||
|
@ -17,8 +17,4 @@ export default class ValidatorDescription {
|
||||
}
|
||||
return this
|
||||
}
|
||||
|
||||
debug() {
|
||||
return console.log(this)
|
||||
}
|
||||
}
|
||||
|
@ -15,8 +15,4 @@ export default class ValidatorCommission {
|
||||
}
|
||||
return this
|
||||
}
|
||||
|
||||
debug() {
|
||||
return console.log(this)
|
||||
}
|
||||
}
|
||||
|
@ -11,8 +11,4 @@ export default class Votes {
|
||||
this.option = element.option
|
||||
return this
|
||||
}
|
||||
|
||||
debug() {
|
||||
return console.log(this)
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ async function refetchVersion(chain) {
|
||||
const version = sdk.match(re)
|
||||
return version[0]
|
||||
})
|
||||
.catch(e => console.error(e))
|
||||
}
|
||||
|
||||
const chainAPI = class ChainFetch {
|
||||
@ -135,7 +134,7 @@ const chainAPI = class ChainFetch {
|
||||
}
|
||||
|
||||
async getGovernanceProposer(pid) {
|
||||
return this.get(`/gov/proposals/${pid}/proposer`).then(data => new Proposer().init(commonProcess(data))).catch(e => console.log(e))
|
||||
return this.get(`/gov/proposals/${pid}/proposer`).then(data => new Proposer().init(commonProcess(data)))
|
||||
}
|
||||
|
||||
async getGovernanceDeposits(pid) {
|
||||
@ -164,7 +163,7 @@ const chainAPI = class ChainFetch {
|
||||
|
||||
async get(url) {
|
||||
this.getSelectedConfig()
|
||||
const ret = await fetch(this.config.api + url).then(response => response.json()).catch(e => console.error(e))
|
||||
const ret = await fetch(this.config.api + url).then(response => response.json())
|
||||
return ret
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ Object.keys(chains).forEach(key => {
|
||||
chain.sdk_version = version[0]
|
||||
localStorage.setItem('chains', JSON.stringify(chains))
|
||||
})
|
||||
.catch(e => console.error(`Failed get api vesion of ${key}`, e))
|
||||
})
|
||||
|
||||
export default {
|
||||
|
@ -79,7 +79,7 @@ export default {
|
||||
tx.setHash(txs[i])
|
||||
array.push(tx)
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
// catch errors
|
||||
}
|
||||
}
|
||||
if (array.length > 0) this.txs = array
|
||||
|
@ -265,7 +265,7 @@ export default {
|
||||
|
||||
this.$http.getGovernance(pid).then(p => {
|
||||
if (p.status === 2) {
|
||||
this.$http.getGovernanceTally(pid, 0).then(t => p.updateTally(t)).catch(e => console.error('failed on update voting tally:', e))
|
||||
this.$http.getGovernanceTally(pid, 0).then(t => p.updateTally(t))
|
||||
}
|
||||
this.proposal = p
|
||||
})
|
||||
|
@ -388,7 +388,6 @@ export default {
|
||||
},
|
||||
fetch_latest() {
|
||||
this.$http.getLatestBlock().then(res => {
|
||||
console.log('fetched: ', res.block.last_commit.height)
|
||||
const sigs = res.block.last_commit.signatures.find(s => s.validator_address === this.hexAddress)
|
||||
const block = this.blocks.find(b => b[1] === res.block.last_commit.height)
|
||||
if (typeof block === 'undefined') { // mei
|
||||
|
Loading…
Reference in New Issue
Block a user