Development Toolkit
Use sfoundry to write and test smart contract code locally before deployment
Mappings to foundry
// foundry tool -> seismic version of foundry tool
forge -> sforge
anvil -> sanvil
cast -> scastQuick actions
# Initializes a project called `Counter`
sforge init Counter# Run tests for the Counter contract
sforge test# Use sforge scripts to deploy the Counter contract
# Running `sanvil` @ http://localhost:8545
# Set the private key in the env
export PRIVATE_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" # Address - 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
# Run the script and broadcast the deploy transaction
sforge script script/Counter.s.sol --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEYLocal node
sanvilLast updated

