{
    "Function": "setup",
    "File": "contracts/AxelarGateway.sol",
    "Parent Contracts": [
        "contracts/AdminMultisigBase.sol",
        "contracts/EternalStorage.sol",
        "contracts/interfaces/IAxelarGateway.sol"
    ],
    "High-Level Calls": [
        "IAxelarAuth"
    ],
    "Internal Calls": [
        "_setAdminEpoch",
        "abi.decode()",
        "implementation",
        "_setAdmins",
        "_adminEpoch",
        "revert NotProxy()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function setup(bytes calldata params) external override {\n        // Prevent setup from being called on a non-proxy (the implementation).\n        if (implementation() == address(0)) revert NotProxy();\n\n        (address[] memory adminAddresses, uint256 newAdminThreshold, bytes memory newOperatorsData) = abi.decode(\n            params,\n            (address[], uint256, bytes)\n        );\n\n        // NOTE: Admin epoch is incremented to easily invalidate current admin-related state.\n        uint256 newAdminEpoch = _adminEpoch() + uint256(1);\n        _setAdminEpoch(newAdminEpoch);\n        _setAdmins(newAdminEpoch, adminAddresses, newAdminThreshold);\n\n        if (newOperatorsData.length > 0) {\n            IAxelarAuth(AUTH_MODULE).transferOperatorship(newOperatorsData);\n\n            emit OperatorshipTransferred(newOperatorsData);\n        }\n    }"
}