Skip to content

Commit

Permalink
Add logging of ETH deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJem committed Feb 15, 2022
1 parent 2a129d4 commit 6b6341b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
6 changes: 5 additions & 1 deletion scripts/deploy/testnet/001_deploy_testnet.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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"];
Expand Down

0 comments on commit 6b6341b

Please sign in to comment.