mirror of
https://github.com/tornadocash/tornado-initiation-ui.git
synced 2024-11-29 23:48:05 +01:00
126 lines
3.3 KiB
JavaScript
126 lines
3.3 KiB
JavaScript
|
/* eslint-disable no-console */
|
||
|
|
||
|
const state = () => {
|
||
|
return {
|
||
|
steps: [
|
||
|
{
|
||
|
title: 'TORN token',
|
||
|
domain: 'torn.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Governance Implementation',
|
||
|
domain: 'governanceImpl.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Governance Upgradable Proxy',
|
||
|
domain: 'gov.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Anonymity mining: Verifier (1/3)',
|
||
|
domain: 'reward.verifier.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Anonymity mining: Verifier (2/3)',
|
||
|
domain: 'withdraw.verifier.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Anonymity mining: Verifier (3/3)',
|
||
|
domain: 'treeUpdate.verifier.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Anonymity mining: Swap contract for private points',
|
||
|
domain: 'swap.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Anonymity mining: TornadoTrees contract',
|
||
|
domain: 'tornadoTrees.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Anonymity mining: Miner contract',
|
||
|
domain: 'miningV2.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Airdrop contract',
|
||
|
domain: 'voucher.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Team vestings (1/5)',
|
||
|
domain: 'team1.vesting.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Team vestings (2/5)',
|
||
|
domain: 'team2.vesting.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Team vestings (3/5)',
|
||
|
domain: 'team2.vesting.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Team vestings (4/5)',
|
||
|
domain: 'team2.vesting.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
title: 'Team vestings (5/5)',
|
||
|
domain: 'team2.vesting.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
},
|
||
|
{
|
||
|
domain: 'mining.vesting.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
title: 'Vesting for the future anonymity mining (V3 release)',
|
||
|
},
|
||
|
{
|
||
|
domain: 'gov.vesting.deploy.tornadocash.eth',
|
||
|
deployerAddress: null,
|
||
|
title: 'Vesting for the governance itself',
|
||
|
},
|
||
|
],
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const getters = {}
|
||
|
|
||
|
const SET_DEPLOYER = 'SET_DEPLOYER'
|
||
|
const mutations = {
|
||
|
[SET_DEPLOYER](state, { stepIndex, deployerAddress }) {
|
||
|
console.log('SET_DEPLOYER', stepIndex, deployerAddress)
|
||
|
console.log('state.steps[stepIndex]', state.steps[stepIndex])
|
||
|
this._vm.$set(state.steps[stepIndex], 'deployerAddress', deployerAddress)
|
||
|
},
|
||
|
}
|
||
|
|
||
|
const actions = {
|
||
|
fetchDeploymentStatus({ state, dispatch, commit }) {
|
||
|
try {
|
||
|
// todo collect data from chain
|
||
|
commit(SET_DEPLOYER, {
|
||
|
stepIndex: 0,
|
||
|
deployerAddress: '0x03Ebd0748Aa4D1457cF479cce56309641e0a98F5',
|
||
|
})
|
||
|
} catch (e) {
|
||
|
console.error('fetchDeploymentStatus', e.message)
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
export default {
|
||
|
namespaced: true,
|
||
|
state,
|
||
|
getters,
|
||
|
mutations,
|
||
|
actions,
|
||
|
}
|