mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-02 13:23:10 +00:00
feat: etherscan verification
This commit is contained in:
parent
64174d8ce6
commit
d6cf524255
10
README.md
10
README.md
@ -62,6 +62,16 @@ The deployment files are kept under version
|
||||
control [as recommended by Hardhat](https://hardhat.org/ignition/docs/advanced/versioning), except the build files,
|
||||
which are 18 MB.
|
||||
|
||||
### Etherscan verification
|
||||
|
||||
When deploying to network supported by Etherscan, it is **strongly** recommended to submit also verification files
|
||||
to Etherscan, which then makes the contract "readable" on Etherscan. Eq. users can understand what the smart contract
|
||||
does and also potentially submit transactions and call through Etherscan UI.
|
||||
|
||||
You can enable Etherscan verification by specifying Etherscan API key with `ETHERSCAN_API_KEY` and then either submitting
|
||||
the verification after deployment with `hardhat ignition verify` or already during the deployment by adding the
|
||||
`--verify` flag (eq. `hardhat ignition deploy <module> --verify`).
|
||||
|
||||
## Smart contracts overview
|
||||
|
||||
This contract suite deploys two smart contracts:
|
||||
|
||||
@ -17,6 +17,9 @@ module.exports = {
|
||||
slow: 200,
|
||||
timeout: 30 * 1000,
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: process.env.ETHERSCAN_API_KEY,
|
||||
},
|
||||
namedAccounts: {
|
||||
deployer: { default: 0 },
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user