3_adding_new_archival
🧑🎓 Instructions for adding new archival check configurations by following an example for Polygon zkEVM 🧑🎓
Overview
The process of configuring archival checks for a new chain is manual but only needs to be performed once per chain.
Service QoS Configurations
QoS configurations are stored in path/config/service_qos_config.go.
Adding an Archival Check By Example: Polygon zkEVM
Polygon zkEVMThis example uses the Polygon zkEVM chain (F029).
Find a Block Explorer
Firstly, find a publically accessible block explorer for the chain. Most EVM chain block explorers use a similar format for their browser UI.
Block Explorer for Polygon zkEVM: https://zkevm.polygonscan.com/
Add the new archival check configuration
In the path/config/service_qos_config.go file, add a new entry to the shannonServices array.
The configuration MUST be entered in this exact format:
// Polygon zkEVM
evm.NewEVMServiceQoSConfig("F029", "0x44d", evm.NewEVMArchivalCheckConfig(
// https://zkevm.polygonscan.com/address/0xee1727f5074e747716637e1776b7f7c7133f16b1
"0xee1727f5074E747716637e1776B7F7C7133f16b1",
// Contract start block
111,
)),It must contain the following elements in evm.NewEVMArchivalCheckConfig, exactly as shown above.
1
A comment containing the URL for the contract address on the block explorer as a comment
// https://zkevm.polygonscan.com/address/
0xee1727f5074e747716637e1776b7f7c7133f16b1
2
The contract address as the first parameter
"0xee1727f5074E747716637e1776B7F7C7133f16b1"
3
A comment containing // Contract start block
// Contract start block
4
A block number just slightly higher than the first transaction for that address as the second parameter
111
Additional Resources
All Service QoS Configurations
How EVM Archival Checks Work
Was this helpful?
