Foundry
Foundry is a fast toolkit for application development written in Rust equipped with a testing framework, as well as utilities for interacting with smart contracts and getting chain data.
Last updated
Was this helpful?
Foundry is a fast toolkit for application development written in Rust equipped with a testing framework, as well as utilities for interacting with smart contracts and getting chain data.
Last updated
Was this helpful?
The template repository contains submodules and remappings for ds-test assertions for testing, solmate building blocks for contracts, and forge-std to layer on top of EVM cheat codes to improve UX.
You must have the following installed:
You should also have an address on the Filecoin Calibration testnet. See the for information on how to get an address. You also need test tFIL
in your wallet.
Clone the xBalbinus/fevm-foundry-kit
repository and move into the fevm-foundry-kit
directory:
Install the project dependencies with Yarn:
Export your private key from MetaMask. See the to find out how to export your private key.
In your .env.example
, create an environment variable called PRIVATE_KEY
and paste in the private key from MetaMask. Also, do the same for the HYPERSPACE_RPC_URL
. Then rename the file to .env
:
Inside the src
folder in a contract called SimpleCoin.sol
. Deploy this contract using Foundry:
Alternatively, you can do the same using the forge create
command:
You can now interact with your contract using the contract address given by Foundry.
Done! For more information, see the .