Foundry empowers developers with tools for smart contract development. One of the three main components of Foundry is Forge. Forge is a Foundry command-line tool that allows developers to run tests, build, and deploy smart contracts.
Foundry Key benefits:
- Write tests in Solidity & limit your context switching.
- EVM cheatcodes give you more control over smart contract development.
This series of mini-tutorials demonstrates how to set up Foundry and use Forge for seamless integration with your Hedera project to test your smart contracts & how to fork Hedera Mainnet to test against deployed contracts.
The tutorials are self-contained and can be done in any order.
{% content-ref url="setup-foundry-and-write-basic-unit-test.md" %} setup-foundry-and-write-basic-unit-test.md {% endcontent-ref %}
{% content-ref url="deploy-and-verify-smart-contract.md" %} deploy-and-verify-smart-contract.md {% endcontent-ref %}
{% content-ref url="./test-an-event-with-foundry.md" %} test-an-event-with-foundry.md {% endcontent-ref %}
{% content-ref url="fork-hedera-testnet-on-latest-block.md" %} fork-hedera-testnet-on-latest-block.md {% endcontent-ref %}
Writer: Abi Castro, DevRel Engineer | https://twitter.com/ridley___ |