keyboard-brightnessDevelopment Toolkit

Use sfoundry to write and test smart contract code locally before deployment


Mappings to foundry

Seismic's development toolkit closely mirrors Foundryarrow-up-right (it's a forkarrow-up-right!). The mapping is as follows:

// foundry tool -> seismic version of foundry tool
forge -> sforge
anvil -> sanvil
cast -> scast

You should use the righthand version of all tools when developing for Seismic to get expected behavior. Our documentation assumes familiarity with foundry.


Quick actions

Substitute sforge for forge to execute against Seismic's superset of the EVM. More on this in the next section.

# Initializes a project called `Counter`
sforge init Counter

Local node

Use sanvil to run a local Seismic node for development and testing:

sanvil

This starts a local node at http://localhost:8545 with pre-funded accounts, similar to Foundry's anvil.

Last updated