Workflow Skills
Optional Claude Code workflow skills for common Seismic tasks
Setup
Deploy Shielded Contract
# Deploy Shielded Contract
Deploy a Seismic smart contract using sforge.
## Steps
1. **Verify toolchain** — Run `sforge --version` to confirm the Seismic toolchain is installed. If not, run:
```bash
sfoundryup
source ~/.zshenv # or ~/.bashrc
```
2. **Compile** — Run `sforge build` and fix any compiler errors. Pay attention to:
- Shielded types (`suint256`, `saddress`, `sbool`) must not be `public`
- Events cannot emit shielded types directly — encrypt first
3. **Run tests** — Run `sforge test -vvvv` and ensure all tests pass.
4. **Choose network** — Ask which network to deploy to:
- **Local (sanvil):** `http://127.0.0.1:8545` — start sanvil first with `sanvil`
- **Testnet:** `https://gcp-1.seismictest.net/rpc` — needs funded wallet from https://faucet.seismictest.net/
5. **Deploy** — Run the deployment:
```bash
sforge create src/<ContractFile>.sol:<ContractName> \
--rpc-url <RPC_URL> \
--private-key $PRIVATE_KEY
```
Or if using a deployment script:
```bash
sforge script script/Deploy.s.sol \
--rpc-url <RPC_URL> \
--private-key $PRIVATE_KEY \
--broadcast
```
6. **Verify** — Confirm the contract address in the output. Check it on the explorer if deploying to devnet: https://seismic-testnet.socialscan.io/
7. **Update project** — Add the deployed contract address to the project's configuration or constants file.Debug Shielded Transaction
Migrate ERC20 to SRC20
Last updated

