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
- name: deploy
run: yarn install
run: yarn run vue-cli-service build

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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
}
}

View File

@ -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 {

View File

@ -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

View File

@ -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
})

View File

@ -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