Setting the scene

The first step is to understand what we’re trying to do:

  • You want to check the total supply of USDC on Optimism from Gnosis Chain.

  • We’ll do this by using HashiProver, which will verify the state of a specific storage slot (holding the USDC total supply) on Optimism.

  • The proof will be verified using the latest block header that was relayed to Hashi from Optimism to Gnosis Chain.

Here’s what we need to accomplish:

  • Fetch the storage proof for the USDC total supply from Optimism.

  • Deploy a contract on Gnosis Chain that will verify the storage proof using HashiProver.

  • Submit the proof to this contract to validate the total supply on Optimism.

Last updated