{
    "Function": "addMerkleTree",
    "File": "contracts/MerkleIdentity.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function addMerkleTree(\n        bytes32 metadataMerkleRoot,\n        bytes32 ipfsHash,\n        address nftAddress,\n        address priceGateAddress,\n        address eligibilityAddress,\n        uint eligibilityIndex,\n        uint priceIndex) external {\n        require(msg.sender == treeAdder, 'Only treeAdder can add trees');\n        MerkleTree storage tree = merkleTrees[++numTrees];\n        tree.metadataMerkleRoot = metadataMerkleRoot;\n        tree.ipfsHash = ipfsHash;\n        tree.nftAddress = nftAddress;\n        tree.priceGateAddress = priceGateAddress;\n        tree.eligibilityAddress = eligibilityAddress;\n        tree.eligibilityIndex = eligibilityIndex;\n        tree.priceIndex = priceIndex;\n        emit MerkleTreeAdded(numTrees, nftAddress);\n    }"
}