{
    "Function": "setup",
    "File": "contracts/its/token-manager/TokenManager.sol",
    "Parent Contracts": [
        "contracts/its/utils/Implementation.sol",
        "contracts/its/utils/FlowLimit.sol",
        "contracts/its/utils/Operatable.sol",
        "contracts/its/interfaces/ITokenManager.sol",
        "contracts/its/interfaces/IImplementation.sol",
        "contracts/its/interfaces/IFlowLimit.sol",
        "contracts/its/interfaces/IOperatable.sol",
        "contracts/its/interfaces/ITokenManagerType.sol"
    ],
    "High-Level Calls": [
        "AddressBytesUtils"
    ],
    "Internal Calls": [
        "_setOperator",
        "_setup",
        "onlyProxy",
        "abi.decode()"
    ],
    "Library Calls": [
        "toAddress"
    ],
    "Low-Level Calls": [],
    "Code": "function setup(bytes calldata params) external override onlyProxy {\n        bytes memory operatorBytes = abi.decode(params, (bytes));\n        address operator_;\n        /**\n         * @dev Specifying an empty operator will default to the service being the operator. This makes it easy to deploy\n         * remote standardized tokens without knowing anything about the service address at the destination.\n         */\n        if (operatorBytes.length == 0) {\n            operator_ = address(interchainTokenService);\n        } else {\n            operator_ = operatorBytes.toAddress();\n        }\n        _setOperator(operator_);\n        _setup(params);\n    }"
}