def METHOD_NAME():
    """
    Migrate badger registry v1 keys on a given chain to badger registry v2
    """
    key_replacements = {
        "devGovernance": "techOps",
        "timelock": "governanceTimelock",
    }
    key_lookups = {
        "techOps": r.badger_wallets.techops_multisig,
        "governanceTimelock": r.governance_timelock,
    }
    key_set = set()
    key_index = 0
    while True:
        try:
            # # some registry keys are duplicated with surrounding quotes, let's remove and dedup
            key = SAFE.badger.registry.keys(key_index).replace('"', "")
            # ignore duplicated sanitized keys, only operate on unique values
            if key not in key_set:
                should_replace = key in key_replacements
                print(
                    f"Migrating new unique key: {key} {'with' if should_replace else 'without'} replacement"
                )
                if should_replace:
                    value = SAFE.badger.registry.get(key)
                    key = key_replacements[key]
                    if key in key_lookups:
                        value = key_lookups[key]
                    SAFE.badger.set_key_on_registry(key, value)
                else:
                    SAFE.badger.migrate_key_on_registry(key)
                key_set.add(key)
            key_index += 1
        except Exception as e:
            print(e)
            break
    # try to simulate tx and see dafuq
    SAFE.post_safe_tx()