@@ -2,18 +2,29 @@ import { task } from 'hardhat/config'
2
2
import { cliOpts } from '../../cli/defaults'
3
3
import GraphChain from '../../gre/helpers/network'
4
4
5
- task ( 'migrate:unpause' , 'Unpause protocol and bridge' )
5
+ task ( 'migrate:unpause' , 'Unpause protocol (except bridge) ' )
6
6
. addOptionalParam ( 'addressBook' , cliOpts . addressBook . description )
7
7
. addOptionalParam ( 'graphConfig' , cliOpts . graphConfig . description )
8
8
. setAction ( async ( taskArgs , hre ) => {
9
9
const graph = hre . graph ( taskArgs )
10
10
const { governor } = await graph . getNamedAccounts ( )
11
- const { Controller, L1GraphTokenGateway , L2GraphTokenGateway } = graph . contracts
11
+ const { Controller } = graph . contracts
12
12
13
13
console . log ( '> Unpausing protocol' )
14
14
const tx = await Controller . connect ( governor ) . setPaused ( false )
15
15
await tx . wait ( )
16
16
17
+ console . log ( 'Done!' )
18
+ } )
19
+
20
+ task ( 'migrate:unpause-bridge' , 'Unpause bridge' )
21
+ . addOptionalParam ( 'addressBook' , cliOpts . addressBook . description )
22
+ . addOptionalParam ( 'graphConfig' , cliOpts . graphConfig . description )
23
+ . setAction ( async ( taskArgs , hre ) => {
24
+ const graph = hre . graph ( taskArgs )
25
+ const { governor } = await graph . getNamedAccounts ( )
26
+ const { L1GraphTokenGateway, L2GraphTokenGateway } = graph . contracts
27
+
17
28
console . log ( '> Unpausing bridge' )
18
29
const GraphTokenGateway = GraphChain . isL2 ( graph . chainId )
19
30
? L2GraphTokenGateway
0 commit comments