{"size": 549, "ext": "js", "max_stars_repo_path": "migrations/5_deploy_snarkbaseextralib.js", "max_stars_repo_name": "snarkdotart/snarkcontract", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "migrations/5_deploy_snarkbaseextralib.js", "max_issues_repo_name": "snarkdotart/snarkcontract", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "migrations/5_deploy_snarkbaseextralib.js", "max_forks_repo_name": "snarkdotart/snarkcontract", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 39.2142857143, "max_line_length": 75, "alphanum_fraction": 0.7103825137}
var SafeMath            = artifacts.require("openzeppelin/SafeMath");
var SnarkBaseExtraLib   = artifacts.require("snarklibs/SnarkBaseExtraLib");

var SnarkStorage        = artifacts.require("SnarkStorage");

module.exports = function(deployer) {
    deployer.then(async () => {
        await deployer.link(SafeMath, SnarkBaseExtraLib);

        const baseExtraLib = await deployer.deploy(SnarkBaseExtraLib);
        const storage_instance = await SnarkStorage.deployed();
        await storage_instance.allowAccess(baseExtraLib.address);
    });
};