From 6b6341b8052a35839ab59558a5a09b7197b15fae Mon Sep 17 00:00:00 2001 From: Jem <0x0xjem@gmail.com> Date: Tue, 15 Feb 2022 17:57:25 +0400 Subject: [PATCH] Add logging of ETH deposit --- scripts/constants.ts | 2 ++ scripts/deploy/testnet/001_deploy_testnet.ts | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/constants.ts b/scripts/constants.ts index 7b906c785..7124d0b2c 100644 --- a/scripts/constants.ts +++ b/scripts/constants.ts @@ -28,3 +28,5 @@ export const INITIAL_INDEX = "45000000000"; export const INITIAL_MINT = "60000" + "0".repeat(18); // 60K deposit. export const BOUNTY_AMOUNT = "100000000"; export const INITIAL_MINT_PROFIT = "1000000000000"; + +export const TEST_WALLET_ADDRESS = "0xd2F4E430F49495b23CEBb0E1C92C4b5440F6b9E3"; diff --git a/scripts/deploy/testnet/001_deploy_testnet.ts b/scripts/deploy/testnet/001_deploy_testnet.ts index bc54dd949..b715319b8 100644 --- a/scripts/deploy/testnet/001_deploy_testnet.ts +++ b/scripts/deploy/testnet/001_deploy_testnet.ts @@ -1,6 +1,6 @@ import { HardhatRuntimeEnvironment } from "hardhat/types"; import { DeployFunction } from "hardhat-deploy/types"; -import { CONTRACTS, INITIAL_MINT, INITIAL_MINT_PROFIT } from "../../constants"; +import { CONTRACTS, INITIAL_MINT, INITIAL_MINT_PROFIT, TEST_WALLET_ADDRESS } from "../../constants"; import { OlympusERC20Token__factory, OlympusTreasury__factory, DAI__factory } from "../../../types"; import { waitFor } from "../../txHelper"; import fs from "fs"; @@ -95,6 +95,10 @@ const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => { const contractFile = `${subDir}/addresses.json`; fs.writeFileSync(contractFile, JSON.stringify(addresses, null, 4)); console.log(`Wrote contract addresses to ${contractFile}`); + + console.log( + `Wallet at address ${TEST_WALLET_ADDRESS} has been seeded with 10,000 ETH. Check hardhat config for the mnemonic.` + ); }; func.tags = ["faucet", "testnet"];