{
    "Function": "formatUpdateTrancheTokenMetadata",
    "File": "src/gateway/Messages.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "_stringToBytes32",
        "_stringToBytes128",
        "abi.encodePacked()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function formatUpdateTrancheTokenMetadata(\n        uint64 poolId,\n        bytes16 trancheId,\n        string memory tokenName,\n        string memory tokenSymbol\n    ) internal pure returns (bytes memory) {\n        // TODO(nuno): Now, we encode `tokenName` as a 128-bytearray by first encoding `tokenName`\n        // to bytes32 and then we encode three empty bytes32's, which sum up to a total of 128 bytes.\n        // Add support to actually encode `tokenName` fully as a 128 bytes string.\n        return abi.encodePacked(\n            uint8(Call.UpdateTrancheTokenMetadata),\n            poolId,\n            trancheId,\n            _stringToBytes128(tokenName),\n            _stringToBytes32(tokenSymbol)\n        );\n    }"
}