2024-05-09 11:47:05 -05:00
|
|
|
require('dotenv').config();
|
2024-03-28 18:01:55 -05:00
|
|
|
const deployDAOContract = require('./util/deploy-dao-contract');
|
2024-04-28 20:27:25 -05:00
|
|
|
const deployWorkContract = require('./util/deploy-work-contract');
|
|
|
|
const deployRollableWorkContract = require('./util/deploy-rollable-work-contract');
|
2024-04-30 15:56:43 -05:00
|
|
|
const deployCoreContracts = require('./util/deploy-core-contracts');
|
2024-03-04 19:33:06 -06:00
|
|
|
|
2024-05-09 11:47:05 -05:00
|
|
|
const { ROLLUP_INTERVAL } = process.env;
|
|
|
|
|
2024-03-04 19:33:06 -06:00
|
|
|
async function main() {
|
2024-04-30 15:56:43 -05:00
|
|
|
await deployCoreContracts();
|
2024-05-09 11:47:05 -05:00
|
|
|
await deployDAOContract('Rollup', [ROLLUP_INTERVAL]);
|
2024-03-31 12:59:57 -05:00
|
|
|
await deployDAOContract('Proposals');
|
2024-03-23 15:11:56 -05:00
|
|
|
await deployWorkContract('Work1');
|
|
|
|
await deployWorkContract('Onboarding');
|
2024-04-28 20:27:25 -05:00
|
|
|
await deployRollableWorkContract('Work2');
|
2024-03-04 19:33:06 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
main().catch((error) => {
|
|
|
|
console.error(error);
|
|
|
|
process.exitCode = 1;
|
|
|
|
});
|