{
    "Function": "swapValidator",
    "File": "src/OperatorRegistry.sol",
    "Parent Contracts": [
        "src/Utils/Owned.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "onlyByOwnGov"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function swapValidator(uint256 from_idx, uint256 to_idx) public onlyByOwnGov {\n        // Get the original values\n        Validator memory fromVal = validators[from_idx];\n        Validator memory toVal = validators[to_idx];\n\n        // Set the swapped values\n        validators[to_idx] = fromVal;\n        validators[from_idx] = toVal;\n\n        emit ValidatorsSwapped(fromVal.pubKey, toVal.pubKey, from_idx, to_idx);\n    }"
}