Our great sponsors
-
hardhat
Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
// hardhat.config.ts import * as dotenv from 'dotenv'; import { HardhatUserConfig, task } from 'hardhat/config'; import '@nomiclabs/hardhat-etherscan'; import '@nomiclabs/hardhat-waffle'; import '@typechain/hardhat'; import 'hardhat-gas-reporter'; import 'solidity-coverage'; import '@nomiclabs/hardhat-ethers'; // Tasks import './tasks/faucet.ts'; // <--IMPORTED FAUCET TASK dotenv.config(); // This is a sample Hardhat task. To learn how to create your own go to // https://hardhat.org/guides/create-task.html task('accounts', 'Prints the list of accounts', async (taskArgs, hre) => { const accounts = await hre.ethers.getSigners(); for (const account of accounts) { console.log(account.address); } }); // You need to export an object to set up your config // Go to https://hardhat.org/config/ to learn more const config: HardhatUserConfig = { solidity: { version: '0.8.4', }, networks: { hardhat: { chainId: 1337, }, ropsten: { url: process.env.ROPSTEN_URL || '', accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [], }, }, gasReporter: { enabled: process.env.REPORT_GAS !== undefined, currency: 'USD', }, etherscan: { apiKey: process.env.ETHERSCAN_API_KEY, }, }; export default config;
Related posts
- Upgradeable smart contracts
- How do I deploy an ethereum contract with hardhat and my Trezor wallet?
- Hardhat Smartcontract Lottery (Raffle) Using TypeScript and latest versions of everything
- What is the best way to test dapps?
- BlockX is the first to offer block rewards and gas fees to developers. Whether you are a dApp or Protocol developer, grabbing this opportunity by its horns will be worth it. Join Now.