Migrating from Ethereum
Step-by-step guide to migrating Ethereum contracts and dApps to Seismic
Overview
Step 1: Install Seismic tools
Ethereum tool
Seismic equivalent
Purpose
# Install sfoundryup
curl -L \
-H "Accept: application/vnd.github.v3.raw" \
"https://api.github.com/repos/SeismicSystems/seismic-foundry/contents/sfoundryup/install?ref=seismic" | bash
source ~/.zshenv # or ~/.bashrc
# Install sforge, sanvil, ssolc
sfoundryup
source ~/.zshenv # or ~/.bashrcStep 2: Decide what to shield
Step 3: Update types
Standard type
Shielded type
Step 4: Handle public getters
Step 5: Update events
Step 6: Update client code
Ethereum library
Seismic equivalent
Install
Step 7: Test
Step 8: Deploy
Common pitfalls
Forgetting to use Seismic transactions for shielded writes
Using public getters on shielded types
Not encrypting events
Mixing shielded and unshielded types carelessly
Not updating the frontend
Last updated

