dione/eth-contracts/scripts/deploy.ts

25 lines
540 B
TypeScript
Raw Normal View History

2021-04-22 18:30:51 +00:00
import { run } from "hardhat";
2021-04-14 23:14:13 +00:00
import "@nomiclabs/hardhat-ethers";
2021-04-22 18:30:51 +00:00
import deploy from "../common/deployment";
async function main() {
await run("compile");
2021-04-22 18:30:51 +00:00
await deploy({
reward: 100,
minStake: 5000,
voteWindowTime: 5,
randomizeStake: false,
maxStake: 0, // don't use this deployment feature
actualStake: 5000,
nodeCount: 4,
logging: true
2021-04-22 18:30:51 +00:00
});
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});