diff --git a/.env.example b/.env.example index 3124bfb..8d7f5d0 100644 --- a/.env.example +++ b/.env.example @@ -6,6 +6,6 @@ SALT=0x1234000000000000000000000000000000000000000000000000000047941987 PRIVATE_KEY=0x -RPC_URL=https://rpc.xdaichain.com/ -NET_ID=100 +RPC_URL=https://api.avax.network/ext/bc/C/rpc +NET_ID=43114 GAS_PRICE_IN_WEI=5000000000 diff --git a/README.md b/README.md index b5c04d5..c25307e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Usage ``` -git clone --recursive https://github.com/tornadocash/tornado-deploy -b xDai +git clone --recursive https://github.com/tornadocash/tornado-deploy -b avalanche cd tornado-deploy cp .env.example .env yarn diff --git a/instances.js b/instances.js index 6562857..8b94c74 100644 --- a/instances.js +++ b/instances.js @@ -1,30 +1,30 @@ module.exports = [ + { + isETH: true, + denomination: '100000000000000000', + domain: 'avax-01.tornadocash.eth', + symbol: 'AVAX', + decimals: 18, + }, + { + isETH: true, + denomination: '10000000000000000000', + domain: 'avax-10.tornadocash.eth', + symbol: 'AVAX', + decimals: 18, + }, { isETH: true, denomination: '100000000000000000000', - domain: 'xdai-100.tornadocash.eth', - symbol: 'xDAI', + domain: 'avax-100.tornadocash.eth', + symbol: 'AVAX', decimals: 18, }, { isETH: true, - denomination: '1000000000000000000000', - domain: 'xdai-1000.tornadocash.eth', - symbol: 'xDAI', - decimals: 18, - }, - { - isETH: true, - denomination: '10000000000000000000000', - domain: 'xdai-10000.tornadocash.eth', - symbol: 'xDAI', - decimals: 18, - }, - { - isETH: true, - denomination: '100000000000000000000000', - domain: 'xdai-100000.tornadocash.eth', - symbol: 'xDAI', + denomination: '500000000000000000000', + domain: 'avax-500.tornadocash.eth', + symbol: 'AVAX', decimals: 18, }, ] diff --git a/src/execute.js b/src/execute.js index 105fd09..4f1fbf1 100644 --- a/src/execute.js +++ b/src/execute.js @@ -10,6 +10,7 @@ const prefix = { 56: 'bscscan.com', 100: 'blockscout.com/xdai/mainnet', 137: 'polygonscan.com', + 43114: 'cchain.explorer.avax.network', } const explorer = `https://${prefix[process.env.NET_ID]}`