Deploy example contract in graph-node (#113)

* Deploy example contract in graph-node

* Add auth token in docker build for github packages

* Add steps for running tests in CI
This commit is contained in:
2022-04-29 15:11:40 +05:30
committed by GitHub
parent eca09ad66b
commit ba6b996e65
13 changed files with 257 additions and 149 deletions
@@ -0,0 +1,15 @@
//
// Copyright 2022 Vulcanize, Inc.
//
import { task } from 'hardhat/config';
import '@nomiclabs/hardhat-ethers';
task('example-deploy', 'Deploys Example contract')
.setAction(async (args, hre) => {
await hre.run('compile');
const Example = await hre.ethers.getContractFactory('Example');
const example = await Example.deploy();
console.log('Example contract deployed to:', example.address);
});