1- ## Monad flavored Foundry
1+ ## Monad-flavored Foundry
2+
3+ > [ !NOTE]
4+ > In this Foundry template, the default chain is ` monadTestnet ` , If you wish to change it, change the network in ` foundry.toml `
5+
6+ <h4 align =" center " >
7+ <a href =" https://docs.monad.xyz " >Monad Documentation</a > | <a href =" https://book.getfoundry.sh/ " >Foundry Documentation</a > |
8+ <a href =" https://github.com/monad-developers/foundry-monad/issues " >Report Issue</a >
9+ </h4 >
10+
211
312** Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**
413
514Foundry consists of:
615
7- - ** Forge** : Ethereum testing framework (like Truffle, Hardhat and DappTools).
8- - ** Cast** : Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
16+ - ** Forge** : Ethereum testing framework (like Truffle, Hardhat, and DappTools).
17+ - ** Cast** : Swiss army knife for interacting with EVM smart contracts, sending transactions, and getting chain data.
918- ** Anvil** : Local Ethereum node, akin to Ganache, Hardhat Network.
1019- ** Chisel** : Fast, utilitarian, and verbose solidity REPL.
1120
@@ -67,14 +76,19 @@ Then, you can deploy your contract to the Monad Testnet using the keystore file
6776forge create src/Counter.sol:Counter --account monad-deployer --broadcast
6877```
6978
70- ### Verify your contract on Monad Testnet
79+ ### Verify Contract
7180
7281``` shell
73- forge verify-contract < contract_address> < contract_name> --chain-id 10143 --verifier sourcify --verifier-url https://sourcify-api-monad.blockvision.org
82+ forge verify-contract \
83+ < contract_address> \
84+ src/Counter.sol:Counter \
85+ --chain 10143 \
86+ --verifier sourcify \
87+ --verifier-url https://sourcify-api-monad.blockvision.org
7488```
7589
7690### Cast
77-
91+ [ Cast reference ] ( https://book.getfoundry.sh/cast/ )
7892``` shell
7993cast < subcommand>
8094```
@@ -98,13 +112,13 @@ This error happens when you don't have enough balance to deploy your contract. Y
98112cast wallet address --account monad-deployer
99113```
100114
101- ### I have constructor arguments, how do I deploy my contract?
115+ ### I have constructor arguments, how do I deploy my contract?
102116
103117``` shell
104118forge create src/Counter.sol:Counter --account monad-deployer --broadcast --constructor-args < constructor_arguments>
105119```
106120
107- ### I have constructor arguments, how do I verify my contract?
121+ ### I have constructor arguments, how do I verify my contract?
108122
109123``` shell
110124forge verify-contract < contract_address> < contract_name> --chain-id 10143 --verifier sourcify --verifier-url https://sourcify-api-monad.blockvision.org --constructor-args < abi_encoded_constructor_arguments>
0 commit comments