beamer-bridge / beamer

Beamer - Bridging rollups with L1 inherited security
https://beamerbridge.com
MIT License
45 stars 21 forks source link

token_addresses should be immutable in desired state file #2145

Closed fredo closed 1 year ago

fredo commented 1 year ago

The token_addresses mapping from symbol -> address is auto generated by on-chain data (namely token.symbol()). These mappings are used to convert the key in tokens in the request manager representation from a human readable friendly symbol to the respective address on the chain.

However, since the mapping is auto-generated (similar to checksum and block number) it should not be subject to be changed in the desired state file. In order to make it immutable, we need to do the following things.