{
    "Function": "addMerkleRoot",
    "File": "contracts/MerkleVesting.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "depositTokens"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function addMerkleRoot(bytes32 newRoot, bytes32 ipfsHash, address tokenAddress, uint tokenBalance) public {\n        // prefix operator ++ increments then evaluates\n        merkleTrees[++numTrees] = MerkleTree(\n            newRoot,\n            ipfsHash,\n            tokenAddress,\n            0    // no funds have been allocated to the tree yet\n        );\n        // fund the tree now\n        depositTokens(numTrees, tokenBalance);\n        emit MerkleRootAdded(numTrees, tokenAddress, newRoot, ipfsHash);\n    }"
}