Revert "minor fixes"

This reverts commit 7f8f7c2aa1.
This commit is contained in:
FreezyEx 2022-10-13 16:03:54 +02:00
parent 7f8f7c2aa1
commit b32527e057
352 changed files with 49537 additions and 49537 deletions

View file

@ -341,7 +341,7 @@ export default {
if (currency !== this.nativeCurrency) {
this.$store.dispatch('application/setDefaultEthToReceive', { currency })
}
this.$store.dispatch('loading/updateProgress', { progress: -1 })
this.$store.dispatch('loading/updateProgress', { progress: 100 })
this.depositsPast = Number(depositsPast) <= 0 ? 0 : depositsPast
this.depositTxHash = txHash
this.depositTimestamp = timestamp

View file

@ -3,10 +3,10 @@ import ABI from '../abis/Instance.abi.json'
import { loadCachedEvents, getPastEvents } from './helpers'
const EVENTS_PATH = './static/events/'
const enabledChains = ['1', '56', '100', '137']
const enabledChains = ['1', '56', '100', '137' ]
async function main() {
for (const network in enabledChains) {
for (let network in enabledChains) {
const netId = enabledChains[network]
const config = networkConfig[`netId${netId}`]
const { constants, tokens, nativeCurrency, deployedBlock } = config
@ -46,6 +46,7 @@ async function main() {
console.log('- Notes')
console.log('cachedEvents count - ', notesCachedEvents.events.length)
console.log('lastBlock - ', notesCachedEvents.lastBlock)
}
}
}

View file

@ -2,8 +2,8 @@ import fs from 'fs'
import Jszip from 'jszip'
const compressionConfig = {
type: 'nodebuffer',
compression: 'DEFLATE',
type: "nodebuffer",
compression: "DEFLATE",
compressionOptions: {
level: 9
}
@ -11,7 +11,7 @@ const compressionConfig = {
const fileConfig = {
binary: true,
compression: 'DEFLATE'
compression: "DEFLATE"
}
export async function save(filePath) {
@ -23,8 +23,7 @@ export async function save(filePath) {
const data = fs.readFileSync(`${filePath}`)
await jszip.file(`${fileName}`, data, fileConfig)
await jszip
.generateNodeStream({
await jszip.generateNodeStream({
...compressionConfig,
streamFiles: true
})

View file

@ -9,7 +9,7 @@ import { loadCachedEvents, getPastEvents } from './helpers'
const EVENTS_PATH = './static/events/'
const EVENTS = ['Deposit', 'Withdrawal']
const enabledChains = ['1', '56', '5', '100', '137']
const enabledChains = ['1', '56', '5', '100', '137' ]
async function main(type, netId) {
const { tokens, nativeCurrency, deployedBlock } = networkConfig[`netId${netId}`]

View file

@ -14,7 +14,7 @@ const TREES_PATH = './static/trees/'
const EVENTS_PATH = './static/events/'
const EVENTS = ['deposit']
const enabledChains = ['1', '56', '100', '137']
const enabledChains = ['1', '56', '100', '137' ]
let mimcHash
const trees = {

View file

@ -58,7 +58,7 @@ async function testCommon(netId, type, filename) {
}
async function main() {
const NETWORKS = [1, 5, 56, 100, 137]
const NETWORKS = [1, 5, 56, 100, 137 ]
for await (const netId of NETWORKS) {
updateEncrypted(netId)

View file

@ -1,15 +1,15 @@
export const state = () => {
return {
message: '',
progress: -1,
progress: '',
enabled: false,
type: null
}
}
}
export const getters = {}
export const getters = {}
export const mutations = {
export const mutations = {
ENABLE(state, { message, progress, type }) {
state.message = message
state.enabled = true
@ -19,12 +19,12 @@ export const mutations = {
DISABLE(state) {
state.message = ''
state.enabled = false
state.progress = -1
state.progress = ''
state.type = null
}
}
}
export const actions = {
export const actions = {
enable({ commit }, { message = this.app.i18n.t('loading') }) {
commit('ENABLE', { message })
},
@ -45,4 +45,4 @@ export const actions = {
type: 'approve'
})
}
}
}