{
    "Function": "initRefs",
    "File": "contracts/Referrals.sol",
    "Parent Contracts": [
        "contracts/interfaces/IReferrals.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool)",
        "onlyOwner"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function initRefs(\n        address[] memory _codeOwners,\n        bytes32[] memory _ownedCodes,\n        address[] memory _referredA,\n        bytes32[] memory _referredTo\n    ) external onlyOwner {\n        require(!isInit);\n        isInit = true;\n        uint _codeOwnersL = _codeOwners.length;\n        uint _referredAL = _referredA.length;\n        for (uint i=0; i<_codeOwnersL; i++) {\n            _referral[_ownedCodes[i]] = _codeOwners[i];\n        }\n        for (uint i=0; i<_referredAL; i++) {\n            _referred[_referredA[i]] = _referredTo[i];\n        }\n    }"
}