Skip to content

Commit 7f4dc30

Browse files
committed
cli: add GraphGovernance to network contracts
1 parent f084b28 commit 7f4dc30

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cli/commands/contracts/governance.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
import consola from 'consola'
21
import yargs, { Argv } from 'yargs'
32

43
import { sendTransaction } from '../../network'
54
import { loadEnv, CLIArgs, CLIEnvironment } from '../../env'
6-
7-
const logger = consola.create({})
5+
import { logger } from '../../logging'
86

97
export const createProposal = async (cli: CLIEnvironment, cliArgs: CLIArgs): Promise<void> => {
108
const id = cliArgs.id
119
const votes = cliArgs.votes
1210
const metadata = cliArgs.metadata
1311
const resolution = cliArgs.resolution
14-
const governance = cli.contracts.Governance
12+
const governance = cli.contracts.GraphGovernance
1513

1614
logger.info(`Creating proposal ${id}...`)
1715
await sendTransaction(cli.wallet, governance, 'createProposal', [id, votes, metadata, resolution])
@@ -22,7 +20,7 @@ export const upgradeProposal = async (cli: CLIEnvironment, cliArgs: CLIArgs): Pr
2220
const votes = cliArgs.votes
2321
const metadata = cliArgs.metadata
2422
const resolution = cliArgs.resolution
25-
const governance = cli.contracts.Governance
23+
const governance = cli.contracts.GraphGovernance
2624

2725
logger.info(`Upgrade proposal ${id}...`)
2826
await sendTransaction(cli.wallet, governance, 'upgradeProposal', [

cli/contracts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { Controller } from '../build/types/Controller'
1717
import { BancorFormula } from '../build/types/BancorFormula'
1818
import { IENS } from '../build/types/IENS'
1919
import { IEthereumDIDRegistry } from '../build/types/IEthereumDIDRegistry'
20+
import { GraphGovernance } from '../build/types/GraphGovernance'
2021

2122
export interface NetworkContracts {
2223
EpochManager: EpochManager
@@ -32,6 +33,7 @@ export interface NetworkContracts {
3233
BancorFormula: BancorFormula
3334
IENS: IENS
3435
IEthereumDIDRegistry: IEthereumDIDRegistry
36+
GraphGovernance: GraphGovernance
3537
}
3638

3739
export const loadContracts = (

0 commit comments

Comments
 (0)