This repository includes scripts to test the opcodes, precompiles, and system contracts supported by a rollup.
test-precompiles.sh
verifies whether the rollup supports all standard Ethereum precompiles as well as the P256VERIFY
precompile defined in RIP-7212
.
test-cancun.sh
verifies whether the rollup supports all opcodes from the Cancun upgrade:
BLOBHASH
BLOBBASEFEE
TSTORE
/TLOAD
MCOPY
test-beacon-root-system-contract.sh
verifies whether the rollup supports the BeaconRoot
system contract.
On Ethereum, the contract stores the last 8191 entries. The script also checks if the buffer is modified by the rollup.
test-history-storage-system-contract.sh
verifies whether the rollup supports the HistoryStorage
system contract.
On Ethereum, the contract stores the last 8191 entries. The script also checks if the buffer is modified by the rollup.
Create a .env
file that contains RPC_URL
and BLOCK_NUMBER
variables.