mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-10 05:18:05 +00:00
4fb0d95135
* 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>
13 lines
406 B
TypeScript
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);
|
|
});
|