From 7029fbd0c13ea9939c412edc9ec2d776cf9bd1b6 Mon Sep 17 00:00:00 2001 From: Mubaris NK Date: Thu, 4 Feb 2021 23:39:05 +0530 Subject: [PATCH] Tenderly (test) --- .env.example | 5 ++++- hardhat.config.js | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 823d6195..b00eaa9a 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,4 @@ -ETHERSCAN_API_KEY="" \ No newline at end of file +ETHERSCAN_API_KEY="" +PRIVATE_KEY="" +TENDERLY_PROJECT="" +TENDERLY_USERNAME="" \ No newline at end of file diff --git a/hardhat.config.js b/hardhat.config.js index 6cf39aa3..8acf8b7b 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -18,7 +18,27 @@ module.exports = { } ] }, + networks: { + tenderlyMainnet: { + url: 'https://mainnet.tenderly.co', + accounts: [process.env.PRIVATE_KEY], + chainId: 1, + gasPrice: 25120000000, + timeout: 500000 + }, + tenderlyKovan: { + url: 'https://kovan.tenderly.co', + accounts: [process.env.PRIVATE_KEY], + chainId: 42, + gasPrice: 40000000000, + timeout: 50000 + } + }, etherscan: { apiKey: process.env.ETHERSCAN_API_KEY + }, + tenderly: { + project: process.env.TENDERLY_PROJECT, + username: process.env.TENDERLY_USERNAME, } };