async function devDeployReplicaUpgradeSetup(
  localDomain,
  controller,
  isTestDeploy,
) {
  const contractStr = isTestDeploy ? 'TestReplica' : 'Replica';

  const contracts = await optics.deployUpgradeSetup(
    contractStr,
    [localDomain],
    controller,
  );

  return contracts;
}
/*
 * Deploy the TestReplica Implementation and UpgradeBeacon
 * which will be used to spawn ReplicaProxies for each remote chain
 *
 * @param localDomain - domain that the TestReplica setup will be deployed on
 * @param controller - ethers Contract for the UpgradeBeaconController
 * @param isTestDeploy - boolean, true to deploy the test contract, false otherwise
 *
 * @return contracts - UpgradeSetup type
 */
Deploy the TestReplica Implementation and UpgradeBeacon
which will be used to spawn ReplicaProxies for each remote chain

@param localDomain - domain that the TestReplica setup will be deployed on
@param controller - ethers Contract for the UpgradeBeaconController
@param isTestDeploy - boolean, true to deploy the test contract, false otherwise

@return contracts - UpgradeSetup type
Deploy the TestReplica Implementation and UpgradeBeacon which will be used to spawn ReplicaProxies for each remote chain @param localDomain - domain that the TestReplica setup will be deployed on @param controller - ethers Contract for the UpgradeBeaconController @param isTestDeploy - boolean true to deploy the test contract false otherwise @return contracts - UpgradeSetup type
async function devDeployReplicaUpgradeSetup(
  localDomain,
  controller,
  isTestDeploy,
) {
  const contractStr = isTestDeploy ? 'TestReplica' : 'Replica';
  const contracts = await optics.deployUpgradeSetup(
    contractStr,
    [localDomain],
    controller,
  );
  return contracts;
}
async function devDeployReplicaUpgradeSetup ( localDomain , controller , isTestDeploy , ) { const contractStr = isTestDeploy ? 'TestReplica' : 'Replica' ; const contracts = await optics . deployUpgradeSetup ( contractStr , [ localDomain ] , controller , ) ; return contracts ; }
Deploy the TestReplica Implementation and UpgradeBeacon
 which will be used to spawn ReplicaProxies for each remote chain
Deploy the TestReplica Implementation and UpgradeBeacon which will be used to spawn ReplicaProxies for each remote chain