From 6b3b44f455a860c13d2f848a1366f2950a378990 Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Tue, 17 Aug 2021 13:09:47 +1000 Subject: [PATCH] xDai --- .env.example | 4 ++-- README.md | 2 +- instances.js | 16 ++++++++-------- src/execute.js | 1 + 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index 8879d77..3124bfb 100644 --- a/.env.example +++ b/.env.example @@ -6,6 +6,6 @@ SALT=0x1234000000000000000000000000000000000000000000000000000047941987 PRIVATE_KEY=0x -RPC_URL= -NET_ID=137 +RPC_URL=https://rpc.xdaichain.com/ +NET_ID=100 GAS_PRICE_IN_WEI=5000000000 diff --git a/README.md b/README.md index d2329a4..b5c04d5 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Usage ``` -git clone --recursive https://github.com/tornadocash/tornado-deploy -b polygon +git clone --recursive https://github.com/tornadocash/tornado-deploy -b xDai cd tornado-deploy cp .env.example .env yarn diff --git a/instances.js b/instances.js index 3f2b9e1..6562857 100644 --- a/instances.js +++ b/instances.js @@ -2,29 +2,29 @@ module.exports = [ { isETH: true, denomination: '100000000000000000000', - domain: 'matic-100.tornadocash.eth', - symbol: 'MATIC', + domain: 'xdai-100.tornadocash.eth', + symbol: 'xDAI', decimals: 18, }, { isETH: true, denomination: '1000000000000000000000', - domain: 'matic-1000.tornadocash.eth', - symbol: 'MATIC', + domain: 'xdai-1000.tornadocash.eth', + symbol: 'xDAI', decimals: 18, }, { isETH: true, denomination: '10000000000000000000000', - domain: 'matic-10000.tornadocash.eth', - symbol: 'MATIC', + domain: 'xdai-10000.tornadocash.eth', + symbol: 'xDAI', decimals: 18, }, { isETH: true, denomination: '100000000000000000000000', - domain: 'matic-100000.tornadocash.eth', - symbol: 'MATIC', + domain: 'xdai-100000.tornadocash.eth', + symbol: 'xDAI', decimals: 18, }, ] diff --git a/src/execute.js b/src/execute.js index a180479..105fd09 100644 --- a/src/execute.js +++ b/src/execute.js @@ -8,6 +8,7 @@ const prefix = { 42: 'kovan.etherscan.io', 5: 'goerli.etherscan.io', 56: 'bscscan.com', + 100: 'blockscout.com/xdai/mainnet', 137: 'polygonscan.com', }