2021-04-14 23:04:28 +00:00
|
|
|
import { task } from "hardhat/config";
|
|
|
|
import "@nomiclabs/hardhat-ethers";
|
2021-04-20 21:40:27 +00:00
|
|
|
import "hardhat-tracer";
|
|
|
|
import "@nomiclabs/hardhat-waffle";
|
|
|
|
import "hardhat-ethernal";
|
2021-04-14 23:04:28 +00:00
|
|
|
|
|
|
|
task("accounts", "Prints the list of accounts", async (args, hre) => {
|
|
|
|
const accounts = await hre.ethers.getSigners();
|
|
|
|
|
|
|
|
for (const account of accounts) {
|
|
|
|
console.log(await account.address);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default {
|
|
|
|
solidity: "0.8.3",
|
2021-04-19 19:46:49 +00:00
|
|
|
networks: {
|
|
|
|
ganache: {
|
2021-04-20 21:40:27 +00:00
|
|
|
url: `http://localhost:8545`,
|
2021-04-19 19:46:49 +00:00
|
|
|
accounts: {
|
|
|
|
mnemonic: "test test test test test test test test test test test junk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-14 23:04:28 +00:00
|
|
|
};
|