This commit is contained in:
liangping 2021-08-05 21:11:11 +08:00
parent 79b4bc671b
commit eb7d943691
12 changed files with 5 additions and 31 deletions

View File

@ -16,4 +16,5 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: deploy - name: deploy
run: yarn install
run: yarn run vue-cli-service build run: yarn run vue-cli-service build

View File

@ -11,8 +11,4 @@ export default class Deposit {
this.amount = element.amount this.amount = element.amount
return this return this
} }
debug() {
return console.log(this)
}
} }

View File

@ -11,8 +11,4 @@ export default class Proposer {
} }
return this return this
} }
debug() {
return console.log(this)
}
} }

View File

@ -17,8 +17,4 @@ export default class StakingParameters {
} }
return this return this
} }
debug() {
return console.log(this)
}
} }

View File

@ -17,8 +17,4 @@ export default class ValidatorDescription {
} }
return this return this
} }
debug() {
return console.log(this)
}
} }

View File

@ -15,8 +15,4 @@ export default class ValidatorCommission {
} }
return this return this
} }
debug() {
return console.log(this)
}
} }

View File

@ -11,8 +11,4 @@ export default class Votes {
this.option = element.option this.option = element.option
return this return this
} }
debug() {
return console.log(this)
}
} }

View File

@ -25,7 +25,6 @@ async function refetchVersion(chain) {
const version = sdk.match(re) const version = sdk.match(re)
return version[0] return version[0]
}) })
.catch(e => console.error(e))
} }
const chainAPI = class ChainFetch { const chainAPI = class ChainFetch {
@ -135,7 +134,7 @@ const chainAPI = class ChainFetch {
} }
async getGovernanceProposer(pid) { 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) { async getGovernanceDeposits(pid) {
@ -164,7 +163,7 @@ const chainAPI = class ChainFetch {
async get(url) { async get(url) {
this.getSelectedConfig() 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 return ret
} }
} }

View File

@ -25,7 +25,6 @@ Object.keys(chains).forEach(key => {
chain.sdk_version = version[0] chain.sdk_version = version[0]
localStorage.setItem('chains', JSON.stringify(chains)) localStorage.setItem('chains', JSON.stringify(chains))
}) })
.catch(e => console.error(`Failed get api vesion of ${key}`, e))
}) })
export default { export default {

View File

@ -79,7 +79,7 @@ export default {
tx.setHash(txs[i]) tx.setHash(txs[i])
array.push(tx) array.push(tx)
} catch (e) { } catch (e) {
console.error(e) // catch errors
} }
} }
if (array.length > 0) this.txs = array if (array.length > 0) this.txs = array

View File

@ -265,7 +265,7 @@ export default {
this.$http.getGovernance(pid).then(p => { this.$http.getGovernance(pid).then(p => {
if (p.status === 2) { 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 this.proposal = p
}) })

View File

@ -388,7 +388,6 @@ export default {
}, },
fetch_latest() { fetch_latest() {
this.$http.getLatestBlock().then(res => { 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 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) const block = this.blocks.find(b => b[1] === res.block.last_commit.height)
if (typeof block === 'undefined') { // mei if (typeof block === 'undefined') { // mei