This commit is contained in:
Alexey 2020-11-03 23:26:19 +03:00
parent f058d52308
commit ee9fb9dcde
5 changed files with 111 additions and 58 deletions

View File

@ -13,14 +13,27 @@
} }
], ],
"name": "deploy", "name": "deploy",
"outputs": [ "outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{ {
"internalType": "address payable", "anonymous": false,
"name": "createdContract", "inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "addr",
"type": "address" "type": "address"
} }
], ],
"stateMutability": "nonpayable", "name": "Deployed",
"type": "function" "type": "event"
} }
] ]

View File

@ -15,7 +15,6 @@ const networkConfig = {
}, },
MyCrypto: { name: 'MyCrypto', url: 'https://api.mycryptoapi.com/eth' }, MyCrypto: { name: 'MyCrypto', url: 'https://api.mycryptoapi.com/eth' },
}, },
deployerContract: '0xce0042b868300000d44a59004da54a005ffdcf9f',
pollInterval: 60, pollInterval: 60,
}, },
netId42: { netId42: {
@ -27,7 +26,6 @@ const networkConfig = {
address: 'https://kovan.etherscan.io/address/', address: 'https://kovan.etherscan.io/address/',
}, },
networkName: 'Kovan', networkName: 'Kovan',
deployerContract: '0xce0042b868300000d44a59004da54a005ffdcf9f',
rpcUrls: { rpcUrls: {
Infura: { Infura: {
name: 'Infura', name: 'Infura',

File diff suppressed because one or more lines are too long

View File

@ -10,9 +10,9 @@ const state = () => {
const getters = { const getters = {
deployerContract: (state, getters, rootState, rootGetters) => { deployerContract: (state, getters, rootState, rootGetters) => {
const { deployerContract, rpcUrls } = rootGetters['provider/getNetwork'] const { rpcUrls } = rootGetters['provider/getNetwork']
const web3 = new Web3(rpcUrls.Infura.url) const web3 = new Web3(rpcUrls.Infura.url)
return new web3.eth.Contract(deployerABI, deployerContract) return new web3.eth.Contract(deployerABI, deploymentActions.deployer)
}, },
} }

View File

@ -12,42 +12,57 @@ const state = () => {
}, },
{ {
title: 'Governance Implementation', title: 'Governance Implementation',
domain: 'governanceImpl.deploy.tornadocash.eth', domain: 'governance-impl.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
}, },
{ {
title: 'Governance Upgradable Proxy', title: 'Governance Upgradable Proxy',
domain: 'gov.deploy.tornadocash.eth', domain: 'governance.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
}, },
{ {
title: 'Anonymity mining: Verifier (1/3)', title: 'Anonymity mining: Verifier (1/3)',
domain: 'reward.verifier.deploy.tornadocash.eth', domain: 'reward-verifier.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
}, },
{ {
title: 'Anonymity mining: Verifier (2/3)', title: 'Anonymity mining: Verifier (2/3)',
domain: 'withdraw.verifier.deploy.tornadocash.eth', domain: 'withdraw-verifier.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
}, },
{ {
title: 'Anonymity mining: Verifier (3/3)', title: 'Anonymity mining: Verifier (3/3)',
domain: 'treeUpdate.verifier.deploy.tornadocash.eth', domain: 'tree-update-verifier.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
}, },
{ {
title: 'Anonymity mining: Swap contract for private points', title: 'Anonymity mining: Swap contract for private points',
domain: 'swap.deploy.tornadocash.eth', domain: 'reward-swap.deploy.tornadocash.eth',
deployerAddress: null,
},
{
title: 'Poseidon hasher for two arguments',
domain: 'poseidon2.deploy.tornadocash.eth',
deployerAddress: null,
},
{
title: 'Poseidon hasher for three arguments',
domain: 'poseidon3.deploy.tornadocash.eth',
deployerAddress: null,
},
{
title: 'A proxy contract for ETH Tornado.cash instances',
domain: 'tornado-proxy.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
}, },
{ {
title: 'Anonymity mining: TornadoTrees contract', title: 'Anonymity mining: TornadoTrees contract',
domain: 'tornadoTrees.deploy.tornadocash.eth', domain: 'tornado-trees.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
}, },
{ {
title: 'Anonymity mining: Miner contract', title: 'Anonymity mining: Miner contract',
domain: 'miningV2.deploy.tornadocash.eth', domain: 'mining-v2.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
}, },
{ {
@ -81,12 +96,12 @@ const state = () => {
deployerAddress: null, deployerAddress: null,
}, },
{ {
domain: 'mining.vesting.deploy.tornadocash.eth', domain: 'mining-v3.vesting.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
title: 'Vesting for the future anonymity mining (V3 release)', title: 'Vesting for the future anonymity mining (V3 release)',
}, },
{ {
domain: 'gov.vesting.deploy.tornadocash.eth', domain: 'governance.vesting.deploy.tornadocash.eth',
deployerAddress: null, deployerAddress: null,
title: 'Vesting for the governance itself', title: 'Vesting for the governance itself',
}, },
@ -113,6 +128,15 @@ const mutations = {
const actions = { const actions = {
async fetchDeploymentStatus({ state, dispatch, commit, rootGetters }) { async fetchDeploymentStatus({ state, dispatch, commit, rootGetters }) {
// const deployContract = rootGetters['deploy/deployerContract']
// const events = await deployContract.getPastEvents('Deployed', {
// // filter: {
// // addr: ['0xd51154a046d2af2c572e850a4ed5bd65db2d83f0'],
// // },
// fromBlock: 21895260,
// toBlock: 'latest',
// })
// console.log('events', events)
const { rpcUrls } = rootGetters['provider/getNetwork'] const { rpcUrls } = rootGetters['provider/getNetwork']
const web3 = new Web3(rpcUrls.Infura.url) const web3 = new Web3(rpcUrls.Infura.url)