-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbba756
commit 889a034
Showing
88 changed files
with
156,840 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
INFURA_API_KEY=5e0ff573346641d78bbcdb3c14d787d0 | ||
BSCSCAN_API_KEY=7EDHNKYKX7C9ZWFVARMHERF48HCMPWDWSM | ||
ETHSCAN_API_KEY=RD4JDA4IXG1ZYBU1HAAR9WXDQ2KJVMJIUA | ||
DEPLOYMENT_ACCOUNT_ADDRESS=0x79251277200C21d32769646747436Fc96BFa4620 | ||
MNEMONIC="For God so loved the world that He gave His only Son" | ||
DEPLOYMENT_ACCOUNT_KEY=bc246839d0fb53c5bfe175d0ccb79bd51da622ee94d6edb61d45954dec7fe5af | ||
ALCHEMY_MAINNET_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/MrYCHqqbnHqUSzA3u1Ci1bOy6fpSkXvU | ||
ALCHEMY_DEV_ROPSTEN_RPC_URL=https://eth-ropsten.alchemyapi.io/v2/cOeUAn5WFcwafgQMMOffqM-y7lgtBUho | ||
ALCHEMY_DEV_RINKEBY_RPC_URL=https://eth-rinkeby.alchemyapi.io/v2/4BRUrBucBl8IY6fUdtDSbb54LeqLEX5Q | ||
ALCHEMY_DEV_KOVAN___RPC_URL=https://eth-kovan.alchemyapi.io/v2/CyvfJdloMIKW_lUo02-5ch1o55d3K8To | ||
URL_BSC_TESTNET=https://data-seed-prebsc-1-s2.binance.org:8545/ | ||
URL_BSC_MAINNET=https://bsc-dataseed1.binance.org/ | ||
URL_ETH_MAINNET=https://mainnet.infura.io/v3/ | ||
URL_ETH_RINKEBY=https://rinkeby.infura.io/v3/ | ||
URL_ETH_ROPSTEN=https://ropsten.infura.io/v3/ | ||
URL_ETH_KOVAN=https://kovan.infura.io/v3/ | ||
URL_LOCAL_HOST_URL=https://127.0.0.1 | ||
URL_LOCAL_HOST=127.0.0.1 | ||
URL_LOCAL_NETWORK_ID=* | ||
URL_LOCAL_PORT=8545 | ||
SOLC_VERSION_1=0.8.0 | ||
SOLC_VERSION_2=0.8.6 | ||
SOLC_VERSION_3=0.7.0 | ||
SOLC_VERSION_4=0.6.0 | ||
SOLC_VERSION_5=0.5.0 | ||
SOLC_VERSION=0.8.6 | ||
NETWORK=bsc_testnet | ||
OPTIMIZER_ENABLED=1 | ||
OPTIMIZER_RUNS:200 | ||
MOCHA_TIMEOUT=2000 | ||
BLOCKCHAIN=BSC | ||
REPORT_GAS=1 | ||
IPFS= | ||
|
||
ADDRESS_0=0x79251277200C21d32769646747436Fc96BFa4620 | ||
ADDRESS_0_KEY=bc246839d0fb53c5bfe175d0ccb79bd51da622ee94d6edb61d45954dec7fe5af | ||
|
||
ADDRESS_1=0xDC72E097f058F7a46f27aD7b303CE9b773c9cBCe | ||
ADDRESS_1_KEY=6ceb0d8e41648ebfafaa9a8c8d2be12dea1c1e86f31fe11c0cb9a2c70c88d5d8 | ||
|
||
ADDRESS_2=0x87eDa0892b0456DBE2aaF811EBe9b96923EBc48A | ||
ADDRESS_2_KEY=ddc3a54280c01a248d05e3a120492b1bf39e4121ae8073ba59a782f65147cb62 | ||
|
||
ADDRESS_3=0x08cD062f04922765DDBc14119c381588b4e3fA49 | ||
ADDRESS_3_KEY=58e4fba7e5664eb337e686e74d939e5c0a0405dde9c6956ceb2b33762236fc3b | ||
|
||
CONTRACT_NAME=BEP20SmartContract | ||
|
||
TOKEN_NAME="Zimbabwe Token" | ||
TOKEN_SYMBOL=ZIM1 | ||
TOKEN_DECIMALS=9 | ||
TOKEN_CAP_SUPPLY=1000000 | ||
TOKEN_INI_SUPPLY=250000 | ||
TOKEN_CONTRACT_ADDRESS=0x49D28027040021896c53bf6ff122995A516C82FB | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Advanced Sample Hardhat Project | ||
|
||
This project demonstrates an advanced Hardhat use case, integrating other tools commonly used alongside Hardhat in the ecosystem. | ||
|
||
The project comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts. It also comes with a variety of other tools, preconfigured to work with the project code. | ||
|
||
Try running some of the following tasks: | ||
|
||
```shell | ||
npx hardhat accounts | ||
npx hardhat compile | ||
npx hardhat clean | ||
npx hardhat test | ||
npx hardhat node | ||
npx hardhat help | ||
REPORT_GAS=true npx hardhat test | ||
npx hardhat coverage | ||
npx hardhat run scripts/deploy.js | ||
node scripts/deploy.js | ||
npx eslint '**/*.js' | ||
npx eslint '**/*.js' --fix | ||
npx prettier '**/*.{json,sol,md}' --check | ||
npx prettier '**/*.{json,sol,md}' --write | ||
npx solhint 'contracts/**/*.sol' | ||
npx solhint 'contracts/**/*.sol' --fix | ||
``` | ||
|
||
# Etherscan verification | ||
|
||
To try out Etherscan verification, you first need to deploy a contract to an Ethereum network that's supported by Etherscan, such as Ropsten. | ||
|
||
In this project, copy the .env.example file to a file named .env, and then edit it to fill in the details. Enter your Etherscan API key, your Ropsten node URL (eg from Alchemy), and the private key of the account which will send the deployment transaction. With a valid .env file in place, first deploy your contract: | ||
|
||
```shell | ||
hardhat run --network ropsten scripts/deploy.js | ||
``` | ||
|
||
Then, copy the deployment address and paste it in to replace `DEPLOYED_CONTRACT_ADDRESS` in this command: | ||
|
||
```shell | ||
npx hardhat verify --network ropsten DEPLOYED_CONTRACT_ADDRESS "Hello, Hardhat!" | ||
``` |
4 changes: 4 additions & 0 deletions
4
artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/62096590990b609c68b98ada7de6ccdb.json" | ||
} |
63 changes: 63 additions & 0 deletions
63
artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"_format": "hh-sol-artifact-1", | ||
"contractName": "Ownable", | ||
"sourceName": "@openzeppelin/contracts/access/Ownable.sol", | ||
"abi": [ | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "previousOwner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newOwner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "OwnershipTransferred", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "owner", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "renounceOwnership", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "newOwner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "transferOwnership", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
], | ||
"bytecode": "0x", | ||
"deployedBytecode": "0x", | ||
"linkReferences": {}, | ||
"deployedLinkReferences": {} | ||
} |
4 changes: 4 additions & 0 deletions
4
artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/62096590990b609c68b98ada7de6ccdb.json" | ||
} |
194 changes: 194 additions & 0 deletions
194
artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
{ | ||
"_format": "hh-sol-artifact-1", | ||
"contractName": "IERC20", | ||
"sourceName": "@openzeppelin/contracts/token/ERC20/IERC20.sol", | ||
"abi": [ | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Approval", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "from", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "to", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Transfer", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "spender", | ||
"type": "address" | ||
} | ||
], | ||
"name": "allowance", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "approve", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "account", | ||
"type": "address" | ||
} | ||
], | ||
"name": "balanceOf", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "totalSupply", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "recipient", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "transfer", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "recipient", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "transferFrom", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
], | ||
"bytecode": "0x", | ||
"deployedBytecode": "0x", | ||
"linkReferences": {}, | ||
"deployedLinkReferences": {} | ||
} |
4 changes: 4 additions & 0 deletions
4
artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/62096590990b609c68b98ada7de6ccdb.json" | ||
} |
10 changes: 10 additions & 0 deletions
10
artifacts/@openzeppelin/contracts/utils/Address.sol/Address.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"_format": "hh-sol-artifact-1", | ||
"contractName": "Address", | ||
"sourceName": "@openzeppelin/contracts/utils/Address.sol", | ||
"abi": [], | ||
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122024dc176ff1f893ce21707b1e9f3b568e4bb018883875036daa8efa89264fc19a64736f6c63430008060033", | ||
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122024dc176ff1f893ce21707b1e9f3b568e4bb018883875036daa8efa89264fc19a64736f6c63430008060033", | ||
"linkReferences": {}, | ||
"deployedLinkReferences": {} | ||
} |
4 changes: 4 additions & 0 deletions
4
artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/62096590990b609c68b98ada7de6ccdb.json" | ||
} |
Oops, something went wrong.