{"size": 2555, "ext": "js", "max_stars_repo_path": "migrations/3_levels.js", "max_stars_repo_name": "PoCInnovation/PoCEther", "max_stars_repo_stars_event_min_datetime": "2022-03-19T15:01:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-19T15:01:13.000Z", "max_issues_repo_path": "migrations/3_levels.js", "max_issues_repo_name": "PoCInnovation/PoCEther", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "migrations/3_levels.js", "max_forks_repo_name": "PoCInnovation/PoCEther", "max_forks_repo_forks_event_min_datetime": "2022-03-19T14:58:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-19T14:58:03.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 60.8333333333, "max_line_length": 95, "alphanum_fraction": 0.8293542074}
const Platform = artifacts.require("Platform");
const BankFactory = artifacts.require("BankFactory");
const BecomeTheNewOwnerFactory = artifacts.require("BecomeTheNewOwnerFactory");
const BecomeTheOwnerFactory = artifacts.require("BecomeTheOwnerFactory");
const GuessMyPasswordFactory = artifacts.require("GuessMyPasswordFactory");
const GuessMyRandomPasswordFactory = artifacts.require("GuessMyRandomPasswordFactory");
const GuessMySecretPasswordFactory = artifacts.require("GuessMySecretPasswordFactory");
const AuctionBugFactory = artifacts.require("AuctionBugFactory");
const IDoNothingFactory = artifacts.require("IDoNothingFactory");
const VaultFactory = artifacts.require("VaultFactory");
const BadAssFactory = artifacts.require("BadAssFactory");
const UltimateFactory = artifacts.require("UltimateFactory");
const OpCodesFactory = artifacts.require("OpCodesFactory");

module.exports = async (deployer) => {
  let platformInstance = await Platform.deployed();

  await deployer.deploy(BankFactory);
  await platformInstance.registerLevel((await BankFactory.deployed()).address)
  await deployer.deploy(BecomeTheNewOwnerFactory);
  await platformInstance.registerLevel((await BecomeTheNewOwnerFactory.deployed()).address)
  await deployer.deploy(BecomeTheOwnerFactory);
  await platformInstance.registerLevel((await BecomeTheOwnerFactory.deployed()).address)
  await deployer.deploy(GuessMyPasswordFactory);
  await platformInstance.registerLevel((await GuessMyPasswordFactory.deployed()).address)
  await deployer.deploy(GuessMyRandomPasswordFactory);
  await platformInstance.registerLevel((await GuessMyRandomPasswordFactory.deployed()).address)
  await deployer.deploy(GuessMySecretPasswordFactory);
  await platformInstance.registerLevel((await GuessMySecretPasswordFactory.deployed()).address)
  await deployer.deploy(AuctionBugFactory);
  await platformInstance.registerLevel((await AuctionBugFactory.deployed()).address)
  await deployer.deploy(IDoNothingFactory);
  await platformInstance.registerLevel((await IDoNothingFactory.deployed()).address)
  await deployer.deploy(VaultFactory);
  await platformInstance.registerLevel((await VaultFactory.deployed()).address)
  await deployer.deploy(BadAssFactory);
  await platformInstance.registerLevel((await BadAssFactory.deployed()).address)
  await deployer.deploy(UltimateFactory);
  await platformInstance.registerLevel((await UltimateFactory.deployed()).address)
  await deployer.deploy(OpCodesFactory);
  await platformInstance.registerLevel((await OpCodesFactory.deployed()).address)
};