op-validator is a tool for validating Standard OP Stack chain configurations and deployments to ensure they’re in compliance with the Standard Rollup Charter.
It works by calling into the StandardValidator smart contracts.
These then perform a set of checks, and return error codes for any issues found.
These checks include:
- Contract implementations and versions
- Proxy configurations
- System parameters
- Cross-component relationships
- Security settings
How to use op-validator
1
Clone the monorepo
2
Build the `op-validator` binary
3
Run the `op-validator` binary
4
Understanding the output
In the previous command, we provided a non-standard absolute prestate. The
op-validator returned the following output to describe the discrepancies between the provided absolute prestate and the expected prestate in the L1 smart contracts:Usage
The validator supports different protocol versions through subcommands:op-contracts version:
v1.8.0- For validatingop-contracts/1.8.0v2.0.0- For validatingop-contracts/2.0.0