upgrade_light_client_v3

Function upgrade_light_client_v3 

Source
pub async fn upgrade_light_client_v3(
    provider: impl Provider,
    contracts: &mut Contracts,
    is_mock: bool,
) -> Result<TransactionReceipt>
Expand description

Upgrade the light client proxy to use LightClientV3. Internally, first detect existence of proxy, then deploy LCV3, then upgrade and initializeV3. Internal to “deploy LCV3”, we deploy PlonkVerifierV3 whose address will be used at LCV3 init time. Assumes:

  • the proxy is already deployed.
  • the proxy is owned by a regular EOA, not a multisig.
  • the proxy is not yet initialized for V3