24 lines
815 B
JavaScript
24 lines
815 B
JavaScript
require('dotenv').config();
|
|
const deployContract = require('./util/deploy-contract');
|
|
const deployDAOContract = require('./util/deploy-dao-contract');
|
|
const deployWorkContract = require('./util/deploy-work-contract');
|
|
const deployRollableWorkContract = require('./util/deploy-rollable-work-contract');
|
|
const deployDAOCoreContracts = require('./util/deploy-core-contracts');
|
|
|
|
const { ROLLUP_INTERVAL } = process.env;
|
|
|
|
async function main() {
|
|
await deployContract('GlobalForum');
|
|
await deployDAOCoreContracts();
|
|
await deployDAOContract('Rollup', [ROLLUP_INTERVAL]);
|
|
await deployDAOContract('Proposals');
|
|
await deployWorkContract('Work1');
|
|
await deployWorkContract('Onboarding');
|
|
await deployRollableWorkContract('Work2');
|
|
}
|
|
|
|
main().catch((error) => {
|
|
console.error(error);
|
|
process.exitCode = 1;
|
|
});
|