Skip to content

Commit c12efc1

Browse files
committed
Update readme
1 parent 895f607 commit c12efc1

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 🏗 Scaffold-ETH 2
1+
# 🏗 Scaffold-ETH 2 with Hardhat + Monad Testnet Configuration
22

33
<h4 align="center">
44
<a href="https://docs.scaffoldeth.io">Documentation</a> |
@@ -67,6 +67,40 @@ Run smart contract test with `yarn hardhat:test`
6767
- Edit your deployment scripts in `packages/hardhat/deploy`
6868

6969

70+
## Contract Verification
71+
72+
After deploying your smart contract to a testnet or mainnet, you can verify it on block explorers like Etherscan or Sourcify. This makes your contract source code publicly available and allows users to interact with it through the block explorer.
73+
74+
### Sourcify Verification (Recommended)
75+
76+
Scaffold-ETH 2 is configured to use Sourcify for contract verification by default. Sourcify is a decentralized verification platform that supports multiple block explorers.
77+
78+
#### For Monad Testnet
79+
80+
1. Deploy your contract to Monad testnet:
81+
```bash
82+
yarn deploy --network monadTestnet
83+
```
84+
85+
2. Verify your contract using the hardhat-deploy plugin:
86+
```bash
87+
yarn hardhat-verify --network monadTestnet <CONTRACT_ADDRESS>
88+
```
89+
90+
Replace `<CONTRACT_ADDRESS>` with the address of your deployed contract.
91+
92+
#### Configuration
93+
94+
The Sourcify configuration is already set up in `packages/hardhat/hardhat.config.ts`:
95+
96+
```typescript
97+
sourcify: {
98+
enabled: true,
99+
apiUrl: "https://sourcify-api-monad.blockvision.org",
100+
browserUrl: "https://testnet.monadexplorer.com",
101+
},
102+
```
103+
70104
## Documentation
71105

72106
Visit our [docs](https://docs.scaffoldeth.io) to learn how to start building with Scaffold-ETH 2.

0 commit comments

Comments
 (0)