dgf-prototype/ethereum/scripts/deploy.js

22 lines
712 B
JavaScript
Raw Normal View History

require('dotenv').config();
const deployDAOContract = require('./util/deploy-dao-contract');
const deployWorkContract = require('./util/deploy-work-contract');
const deployRollableWorkContract = require('./util/deploy-rollable-work-contract');
const deployCoreContracts = require('./util/deploy-core-contracts');
2024-03-04 19:33:06 -06:00
const { ROLLUP_INTERVAL } = process.env;
2024-03-04 19:33:06 -06:00
async function main() {
await deployCoreContracts();
await deployDAOContract('Rollup', [ROLLUP_INTERVAL]);
await deployDAOContract('Proposals');
await deployWorkContract('Work1');
await deployWorkContract('Onboarding');
await deployRollableWorkContract('Work2');
2024-03-04 19:33:06 -06:00
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});