@@ -7,7 +7,9 @@ import SubgraphServiceArtifact from '../../build/contracts/contracts/SubgraphSer
7
7
import TransparentUpgradeableProxyArtifact from '@openzeppelin/contracts/build/contracts/TransparentUpgradeableProxy.json'
8
8
9
9
export default buildModule ( 'SubgraphService' , ( m ) => {
10
+ const deployer = m . getAccount ( 0 )
10
11
const governor = m . getParameter ( 'governor' )
12
+ const pauseGuardian = m . getParameter ( 'pauseGuardian' )
11
13
const controllerAddress = m . getParameter ( 'controllerAddress' )
12
14
const subgraphServiceProxyAddress = m . getParameter ( 'subgraphServiceProxyAddress' )
13
15
const subgraphServiceProxyAdminAddress = m . getParameter ( 'subgraphServiceProxyAdminAddress' )
@@ -17,6 +19,8 @@ export default buildModule('SubgraphService', (m) => {
17
19
const minimumProvisionTokens = m . getParameter ( 'minimumProvisionTokens' )
18
20
const maximumDelegationRatio = m . getParameter ( 'maximumDelegationRatio' )
19
21
const stakeToFeesRatio = m . getParameter ( 'stakeToFeesRatio' )
22
+ const maxPOIStaleness = m . getParameter ( 'maxPOIStaleness' )
23
+ const curationCut = m . getParameter ( 'curationCut' )
20
24
21
25
const SubgraphServiceProxyAdmin = m . contractAt ( 'ProxyAdmin' , ProxyAdminArtifact , subgraphServiceProxyAdminAddress )
22
26
const SubgraphServiceProxy = m . contractAt ( 'SubgraphServiceProxy' , TransparentUpgradeableProxyArtifact , subgraphServiceProxyAddress )
@@ -35,13 +39,17 @@ export default buildModule('SubgraphService', (m) => {
35
39
name : 'SubgraphService' ,
36
40
artifact : SubgraphServiceArtifact ,
37
41
initArgs : [
42
+ deployer ,
38
43
minimumProvisionTokens ,
39
44
maximumDelegationRatio ,
40
45
stakeToFeesRatio ,
41
46
] ,
42
47
} )
43
48
44
- m . call ( SubgraphServiceProxyAdmin , 'transferOwnership' , [ governor ] , { after : [ SubgraphService ] } )
49
+ const callSetPauseGuardian = m . call ( SubgraphService , 'setPauseGuardian' , [ pauseGuardian , true ] )
50
+ const callSetMaxPOIStaleness = m . call ( SubgraphService , 'setMaxPOIStaleness' , [ maxPOIStaleness ] )
51
+ const callSetCurationCut = m . call ( SubgraphService , 'setCurationCut' , [ curationCut ] )
52
+ m . call ( SubgraphServiceProxyAdmin , 'transferOwnership' , [ governor ] , { after : [ callSetPauseGuardian , callSetMaxPOIStaleness , callSetCurationCut ] } )
45
53
46
54
return {
47
55
SubgraphService,
0 commit comments