From e483190ed654e66717cc9d47e750e5a9646a728d Mon Sep 17 00:00:00 2001 From: poma Date: Mon, 29 Mar 2021 09:35:19 +0300 Subject: [PATCH] add tornado proxy light --- .gitmodules | 3 +++ build.sh | 6 ++++++ instances.js | 21 +++++++++++++++++++++ src/generate.js | 11 +++++++++++ tornado-anonymity-mining | 1 + 5 files changed, 42 insertions(+) create mode 160000 tornado-anonymity-mining diff --git a/.gitmodules b/.gitmodules index 3c48086..8a8bdd5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -5,3 +5,6 @@ [submodule "deployer"] path = deployer url = https://github.com/tornadocash/deployer +[submodule "tornado-anonymity-mining"] + path = tornado-anonymity-mining + url = https://github.com/tornadocash/tornado-anonymity-mining diff --git a/build.sh b/build.sh index 57685e0..1110680 100755 --- a/build.sh +++ b/build.sh @@ -11,3 +11,9 @@ cd deployer yarn install yarn compile cd .. + +cd tornado-anonymity-mining +yarn install +# yarn circuit +yarn compile +cd .. diff --git a/instances.js b/instances.js index a8bee2f..1600e2d 100644 --- a/instances.js +++ b/instances.js @@ -1,4 +1,11 @@ module.exports = [ + { + isETH: true, + denomination: "100000000000000000", + domain: "eth-01.tornadocash.eth", + symbol: "ETH", + decimals: 18 + }, { isETH: true, denomination: "1000000000000000000", @@ -6,4 +13,18 @@ module.exports = [ symbol: "ETH", decimals: 18 }, + { + isETH: true, + denomination: "10000000000000000000", + domain: "eth-10.tornadocash.eth", + symbol: "ETH", + decimals: 18 + }, + { + isETH: true, + denomination: "100000000000000000000", + domain: "eth-100.tornadocash.eth", + symbol: "ETH", + decimals: 18 + }, ] diff --git a/src/generate.js b/src/generate.js index 9b035bc..810883a 100644 --- a/src/generate.js +++ b/src/generate.js @@ -13,6 +13,7 @@ const hasher = getContractData('../tornado-core/build/contracts/Hasher.json') const ethTornado = getContractData('../tornado-core/build/contracts/ETHTornado.json') const ercTornado = getContractData('../tornado-core/build/contracts/ERC20Tornado.json') const compTornado = getContractData('../tornado-core/build/contracts/cTornado.json') +const proxyLight = getContractData('../tornado-anonymity-mining/build/contracts/TornadoProxyLight.json') const actions = [] @@ -70,6 +71,16 @@ actions.push( }), ) +// Deploy proxy +actions.push( + deploy({ + domain: 'proxy-light.contract.tornadocash.eth', + contract: proxyLight, + title: 'ProxyLight', + description: 'Tornado proxy light for L2', + }), +) + // Deploy instances for (const instance of instances) { const args = [ diff --git a/tornado-anonymity-mining b/tornado-anonymity-mining new file mode 160000 index 0000000..ca446c7 --- /dev/null +++ b/tornado-anonymity-mining @@ -0,0 +1 @@ +Subproject commit ca446c79cd9d6867bc46019638062ad5d8d070bf