@@ -14,24 +14,25 @@ import {
14
14
import hre , { ethers } from 'hardhat'
15
15
import { allocationKeys } from './data'
16
16
import { randomBigInt } from '@graphprotocol/toolshed/utils'
17
- const PROVISION_THAWING_PERIOD = 2419200n
18
- const PROVISION_MAX_VERIFIER_CUT = 500_000n
19
- const PROVISION_THAWING_PERIOD_B = 2419199n
20
- const PROVISION_MAX_VERIFIER_CUT_B = 900_000n
21
17
22
18
const GAS_LIMIT = process . env . GAS_LIMIT ? parseInt ( process . env . GAS_LIMIT ) : 500_000
23
19
24
20
async function main ( ) {
25
21
const graph = hre . graph ( )
26
22
const { HorizonStaking, GraphToken, PaymentsEscrow, GraphTallyCollector } = graph . horizon . contracts
27
- const { SubgraphService, Curation } = graph . subgraphService . contracts
23
+ const { SubgraphService, Curation, DisputeManager } = graph . subgraphService . contracts
28
24
29
25
const { stake, stakeToProvision, delegate, addToDelegationPool } = graph . horizon . actions
30
26
31
27
const signers = await graph . accounts . getTestAccounts ( )
32
28
const deployer = await graph . accounts . getDeployer ( )
33
29
const gateway = await graph . accounts . getGateway ( ) // note that this wont be the actual gateway address
34
30
31
+ const PROVISION_THAWING_PERIOD = await DisputeManager . disputePeriod ( )
32
+ const PROVISION_MAX_VERIFIER_CUT = await DisputeManager . fishermanRewardCut ( )
33
+ const PROVISION_THAWING_PERIOD_B = PROVISION_THAWING_PERIOD - 1n
34
+ const PROVISION_MAX_VERIFIER_CUT_B = PROVISION_MAX_VERIFIER_CUT + 1000n
35
+
35
36
const abi = new ethers . AbiCoder ( )
36
37
37
38
console . log ( '🔄 Generating protocol activity...' )
0 commit comments