watcher-ts/packages/lighthouse-watcher/tasks/lighthouse-deploy.ts
Ashwin Phatak 4fb0d95135
Lighthouse watcher (#205)
* Implement watcher for Lighthouse StorageRequest event.

* Add smoke test for lighthouse watcher.

* Add fileCost as value to Lighthouse store call.

Co-authored-by: nabarun <nabarun@deepstacksoft.com>
2021-08-11 17:27:49 +05:30

13 lines
406 B
TypeScript

import { task } from 'hardhat/config';
import '@nomiclabs/hardhat-ethers';
task('lighthouse-deploy', 'Deploys Lighthouse contract')
.setAction(async (_, hre) => {
await hre.run('compile');
const lighthouseFactory = await hre.ethers.getContractFactory('Lighthouse');
const lighthouse = await lighthouseFactory.deploy();
console.log('Lighthouse deployed to:', lighthouse.address);
});