const Hero = artifacts.require('tokens/erc721/BEHero') const Equip = artifacts.require('tokens/erc721/BEEquipment') const Coin = artifacts.require('tokens/erc20/BECoin') const Gold = artifacts.require('tokens/erc20/BEGold') const Chip = artifacts.require('tokens/erc1155/BEChip') const Shard = artifacts.require('tokens/erc1155/BEShard') const MarketPlace = artifacts.require('market/MarketPlace') const EvolveProxy = artifacts.require('logic/EvolveProxy') const TimelockController = artifacts.require('core/BETimelockController') module.exports = async function main(callback) { try { const timelockInstance = await TimelockController.deployed(); const marketInstance = await MarketPlace.deployed(); await marketInstance.transferOwnership(timelockInstance.address); console.log('MarketPlace onwer has change to: ', timelockInstance.address); const heroInstance = await Hero.deployed(); await heroInstance.transferOwnership(timelockInstance.address); console.log('Hero onwer has change to: ', timelockInstance.address); const equipInstance = await Equip.deployed(); await equipInstance.transferOwnership(timelockInstance.address); console.log('Equip onwer has change to: ', timelockInstance.address); const chipInstance = await Chip.deployed(); await chipInstance.transferOwnership(timelockInstance.address); console.log('Chip onwer has change to: ', timelockInstance.address); const shardInstance = await Shard.deployed(); await shardInstance.transferOwnership(timelockInstance.address); console.log('Shard onwer has change to: ', timelockInstance.address); const proxyInstance = await EvolveProxy.deployed(); await proxyInstance.transferOwnership(timelockInstance.address); console.log('EvolveProxy onwer has change to: ', timelockInstance.address); const coinInstance = await Coin.deployed(); const goldInstance = await Gold.deployed(); await goldInstance.transferOwnership(timelockInstance.address); console.log('BEGold onwer has change to: ', timelockInstance.address); callback(0) } catch (error) { console.error(error) callback(1) } }