SkillAgentSearch skills...

Substratum

An opinionated, spec-compliant, optimized version of Optimism's contracts-bedrock package.

Install / Use

/learn @clabby/Substratum
About this skill

Quality Score

0/100

Supported Platforms

Zed

README

<img align="right" width="150" height="150" top="100" src="./assets/logo.png">

substratum • tests license

Note This project will be developed during my free time, so expect progress to be slow. See TODO for the current status. Contributions are welcome, and feel free to reach out if you're interested!

substratum seeks to be an opinionated, spec-compliant, optimized version of Optimism's contracts-bedrock package.

High-level goals

  • :broom: Clean up tech debt in contracts-bedrock
  • :zap: Optimize
  • :test_tube: Have higher test coverage than contracts-bedrock
    • :balance_scale: Differential test this implementation against contracts-bedrock
    • :crab: Rewrite periphery differential testing scripts / fuzz input generators in Rust.
    • :hammer_and_wrench: Favor forge invariants over Echidna. Echidna will be used for long-term fuzzing campaigns in the future.
      • :rock: Further define plain-english invariants, and when possible, write accompanying invariant tests.
    • :classical_building: Use halmos for properties that can benefit from bounded symbolic execution.
    • :radioactive: Use pyrometer for bound / taint analysis.
  • :scroll: Improve documentation (forge doc)
  • :bomb: Nuke OZ from the Optimism contracts codebase.
    • :house_with_garden: Also trim other dependencies in favor of in-house contracts.
  • :bangbang: Move to custom errors.
  • :dizzy: Use custom types for values such as hashes, gas limits, timestamps, balances, etc.
  • :package: Support legacy contract storage layouts, but support a cleaner upgrade scheme going forward.
  • :pancakes: Improve modularity of existing contracts.

Contributing

See CONTRIBUTING.md.

License

substratum is and will always be MIT Licensed.

TODO

Stage 0: Repo setup

  • [x] Add license (MIT)
  • [ ] Workflows
  • [ ] STYLE_GUIDE.md
  • [ ] Task list

Stage 1: Port / Rewrite Libraries

Stage 2: Universal Contracts TODO

Stage 3: L1 Contracts TODO

Stage 4: L2 Contracts TODO

Stage 5: Deployment Contracts TODO

Stage 6: Rewrite test scripts in Rust TODO

View on GitHub
GitHub Stars59
CategoryProduct
Updated4mo ago
Forks5

Languages

Solidity

Security Score

92/100

Audited on Nov 26, 2025

No findings