mirror of
				https://github.com/cerc-io/watcher-ts
				synced 2025-11-03 21:54:08 +00:00 
			
		
		
		
	* Deploy example contract in graph-node * Add auth token in docker build for github packages * Add steps for running tests in CI
		
			
				
	
	
		
			16 lines
		
	
	
		
			420 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			420 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
//
 | 
						|
// 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);
 | 
						|
  });
 |