Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create README.md in default template #5465

Merged
merged 3 commits into from Jul 25, 2023

Conversation

allwin199
Copy link
Contributor

Adding README.md in the default template to give more info on how to work with the provided template.

fixes #5456

@@ -0,0 +1,59 @@
# Foundry

Foundry is a smart contract development toolchain.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd expand this section to include what the repo readme says about the parts of foundry (forge, cast, anvil)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.

Foundry consists of:

-   Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
-   Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
-   Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
-   Chisel: Fast, utilitarian, and verbose solidity REPL.

This is what I'm planning to add, let me know your thoughts.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

### Deploy

```shell
$ forge create --rpc-url <your_rpc_url> --private-key <your_private_key> src/MyContract.sol:MyContract
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use forge script here instead of forge create.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure! I will change it to forge script

`Foundry` intro section is expanded the same as ReadMe in the Foundry repo. 
`forge create` is changed to `forge script`
@allwin199
Copy link
Contributor Author

I have made the suggested changes.
Also, I have added this file only to assets directory.
Let me know if this has to be mapped anywhere to be downloaded with forge init

Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@Evalir Evalir merged commit 41a6593 into foundry-rs:master Jul 25, 2023
20 checks passed
@allwin199 allwin199 deleted the Add-Readme-to-default-template branch July 25, 2023 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

README template can be added to forge init
2 participants