From 1462313b141a28c0b3e2eace1f9b5c23180a2e06 Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 22 Jul 2019 14:22:47 +0300 Subject: [PATCH] new kovan contract --- .env.example | 2 +- index.js | 2 +- mixerABI.json | 27 +++++---------------------- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/.env.example b/.env.example index 3d1bbd9..90d859c 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ NET_ID=42 RPC_URL=https://kovan.infura.io/v3/a3f4d001c1fc4a359ea70dd27fd9cb51 PRIVATE_KEY= -MIXER_ADDRESS=0x30AF2e92263C5387A8A689322BbfE60b6B0855C4 +MIXER_ADDRESS=0xa01dCfABF44674f2f60e064e9F4B1300a87753c8 # in wei DESIRED_FEE=10000000000000000 \ No newline at end of file diff --git a/index.js b/index.js index 8efa9a0..dc079f6 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ const gasPrices = { fast: defaultGasPrice } app.get('/', function (req, res) { // just for testing purposes - res.send(`Tornado mixer relayer. Gas Price is ${JSON.stringify(gasPrices)}`) + res.send(`Tornado mixer relayer. Gas Price is ${JSON.stringify(gasPrices)}. Mixer address is ${mixerAddress}`) }) app.post('/relay', async (req, resp) => { diff --git a/mixerABI.json b/mixerABI.json index f48cd4e..c81ce38 100644 --- a/mixerABI.json +++ b/mixerABI.json @@ -218,13 +218,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, - "name": "from", - "type": "address" + "indexed": true, + "name": "commitment", + "type": "uint256" }, { "indexed": false, - "name": "commitment", + "name": "leafIndex", "type": "uint256" } ], @@ -253,23 +253,6 @@ "name": "Withdraw", "type": "event" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "leaf", - "type": "uint256" - }, - { - "indexed": false, - "name": "leaf_index", - "type": "uint32" - } - ], - "name": "LeafAdded", - "type": "event" - }, { "constant": false, "inputs": [ @@ -329,4 +312,4 @@ "stateMutability": "view", "type": "function" } -] +] \ No newline at end of file