minor fixes
This commit is contained in:
parent
e051b59a98
commit
7f8f7c2aa1
352 changed files with 49537 additions and 49537 deletions
|
@ -341,7 +341,7 @@ export default {
|
||||||
if (currency !== this.nativeCurrency) {
|
if (currency !== this.nativeCurrency) {
|
||||||
this.$store.dispatch('application/setDefaultEthToReceive', { currency })
|
this.$store.dispatch('application/setDefaultEthToReceive', { currency })
|
||||||
}
|
}
|
||||||
this.$store.dispatch('loading/updateProgress', { progress: 100 })
|
this.$store.dispatch('loading/updateProgress', { progress: -1 })
|
||||||
this.depositsPast = Number(depositsPast) <= 0 ? 0 : depositsPast
|
this.depositsPast = Number(depositsPast) <= 0 ? 0 : depositsPast
|
||||||
this.depositTxHash = txHash
|
this.depositTxHash = txHash
|
||||||
this.depositTimestamp = timestamp
|
this.depositTimestamp = timestamp
|
||||||
|
|
|
@ -3,10 +3,10 @@ import ABI from '../abis/Instance.abi.json'
|
||||||
import { loadCachedEvents, getPastEvents } from './helpers'
|
import { loadCachedEvents, getPastEvents } from './helpers'
|
||||||
|
|
||||||
const EVENTS_PATH = './static/events/'
|
const EVENTS_PATH = './static/events/'
|
||||||
const enabledChains = ['1', '56', '100', '137' ]
|
const enabledChains = ['1', '56', '100', '137']
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
for (let network in enabledChains) {
|
for (const network in enabledChains) {
|
||||||
const netId = enabledChains[network]
|
const netId = enabledChains[network]
|
||||||
const config = networkConfig[`netId${netId}`]
|
const config = networkConfig[`netId${netId}`]
|
||||||
const { constants, tokens, nativeCurrency, deployedBlock } = config
|
const { constants, tokens, nativeCurrency, deployedBlock } = config
|
||||||
|
@ -46,7 +46,6 @@ async function main() {
|
||||||
console.log('- Notes')
|
console.log('- Notes')
|
||||||
console.log('cachedEvents count - ', notesCachedEvents.events.length)
|
console.log('cachedEvents count - ', notesCachedEvents.events.length)
|
||||||
console.log('lastBlock - ', notesCachedEvents.lastBlock)
|
console.log('lastBlock - ', notesCachedEvents.lastBlock)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,8 @@ import fs from 'fs'
|
||||||
import Jszip from 'jszip'
|
import Jszip from 'jszip'
|
||||||
|
|
||||||
const compressionConfig = {
|
const compressionConfig = {
|
||||||
type: "nodebuffer",
|
type: 'nodebuffer',
|
||||||
compression: "DEFLATE",
|
compression: 'DEFLATE',
|
||||||
compressionOptions: {
|
compressionOptions: {
|
||||||
level: 9
|
level: 9
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ const compressionConfig = {
|
||||||
|
|
||||||
const fileConfig = {
|
const fileConfig = {
|
||||||
binary: true,
|
binary: true,
|
||||||
compression: "DEFLATE"
|
compression: 'DEFLATE'
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function save(filePath) {
|
export async function save(filePath) {
|
||||||
|
@ -23,7 +23,8 @@ export async function save(filePath) {
|
||||||
const data = fs.readFileSync(`${filePath}`)
|
const data = fs.readFileSync(`${filePath}`)
|
||||||
|
|
||||||
await jszip.file(`${fileName}`, data, fileConfig)
|
await jszip.file(`${fileName}`, data, fileConfig)
|
||||||
await jszip.generateNodeStream({
|
await jszip
|
||||||
|
.generateNodeStream({
|
||||||
...compressionConfig,
|
...compressionConfig,
|
||||||
streamFiles: true
|
streamFiles: true
|
||||||
})
|
})
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { loadCachedEvents, getPastEvents } from './helpers'
|
||||||
|
|
||||||
const EVENTS_PATH = './static/events/'
|
const EVENTS_PATH = './static/events/'
|
||||||
const EVENTS = ['Deposit', 'Withdrawal']
|
const EVENTS = ['Deposit', 'Withdrawal']
|
||||||
const enabledChains = ['1', '56', '5', '100', '137' ]
|
const enabledChains = ['1', '56', '5', '100', '137']
|
||||||
|
|
||||||
async function main(type, netId) {
|
async function main(type, netId) {
|
||||||
const { tokens, nativeCurrency, deployedBlock } = networkConfig[`netId${netId}`]
|
const { tokens, nativeCurrency, deployedBlock } = networkConfig[`netId${netId}`]
|
||||||
|
|
|
@ -14,7 +14,7 @@ const TREES_PATH = './static/trees/'
|
||||||
const EVENTS_PATH = './static/events/'
|
const EVENTS_PATH = './static/events/'
|
||||||
|
|
||||||
const EVENTS = ['deposit']
|
const EVENTS = ['deposit']
|
||||||
const enabledChains = ['1', '56', '100', '137' ]
|
const enabledChains = ['1', '56', '100', '137']
|
||||||
let mimcHash
|
let mimcHash
|
||||||
|
|
||||||
const trees = {
|
const trees = {
|
||||||
|
|
|
@ -58,7 +58,7 @@ async function testCommon(netId, type, filename) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const NETWORKS = [1, 5, 56, 100, 137 ]
|
const NETWORKS = [1, 5, 56, 100, 137]
|
||||||
|
|
||||||
for await (const netId of NETWORKS) {
|
for await (const netId of NETWORKS) {
|
||||||
updateEncrypted(netId)
|
updateEncrypted(netId)
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
export const state = () => {
|
export const state = () => {
|
||||||
return {
|
return {
|
||||||
message: '',
|
message: '',
|
||||||
progress: '',
|
progress: -1,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
type: null
|
type: null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getters = {}
|
export const getters = {}
|
||||||
|
|
||||||
export const mutations = {
|
export const mutations = {
|
||||||
ENABLE(state, { message, progress, type }) {
|
ENABLE(state, { message, progress, type }) {
|
||||||
state.message = message
|
state.message = message
|
||||||
state.enabled = true
|
state.enabled = true
|
||||||
|
@ -19,12 +19,12 @@ export const state = () => {
|
||||||
DISABLE(state) {
|
DISABLE(state) {
|
||||||
state.message = ''
|
state.message = ''
|
||||||
state.enabled = false
|
state.enabled = false
|
||||||
state.progress = ''
|
state.progress = -1
|
||||||
state.type = null
|
state.type = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const actions = {
|
export const actions = {
|
||||||
enable({ commit }, { message = this.app.i18n.t('loading') }) {
|
enable({ commit }, { message = this.app.i18n.t('loading') }) {
|
||||||
commit('ENABLE', { message })
|
commit('ENABLE', { message })
|
||||||
},
|
},
|
||||||
|
@ -45,4 +45,4 @@ export const state = () => {
|
||||||
type: 'approve'
|
type: 'approve'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue