Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PRIVATE_KEY=
ETHERSCAN_API_KEY=
MAINNET_ENDPOINT_URL=https://mainnet.infura.io/v3/9b2d9ce8681f477199d092f7e77658c5
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
coverage
coverage.json
build
.env
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

### First step
Rename `.env.example` to `.env` and put your parameters there.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"license": "MIT",
"dependencies": {
"@openzeppelin/contracts": "^3.3.0",
"dotenv": "^10.0.0",
"eth-gas-reporter": "^0.2.22",
"truffle-plugin-verify": "^0.5.7"
},
Expand Down
7 changes: 4 additions & 3 deletions truffle-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const HDWalletProvider = require('@truffle/hdwallet-provider');
const privateKey = '';
const etherscanAPIKey = ''
const mainnetEndpointUrl = 'https://mainnet.infura.io/v3/9b2d9ce8681f477199d092f7e77658c5';
require('dotenv').config();
const privateKey = process.env.PRIVATE_KEY;
const etherscanAPIKey = process.env.PRIVATE_KEY;
const mainnetEndpointUrl = process.env.MAINNET_ENDPOINT_URL;

module.exports = {
networks: {
Expand Down