Skip to content

Commit 0088d0e

Browse files
authored
Merge pull request #1222 from graphprotocol/tmigone/local-network-ignition
2 parents 55d16c3 + 8937313 commit 0088d0e

File tree

4 files changed

+87
-13
lines changed

4 files changed

+87
-13
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,6 @@ tx-builder-*.json
9292
**/horizon-hardhat/
9393
**/subgraph-service-localhost/
9494
**/subgraph-service-hardhat/
95+
**/horizon-localNetwork/
96+
**/subgraph-service-localNetwork/
9597
!**/ignition/**/artifacts/
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$global": {
3+
// Accounts already configured in the original Graph Protocol - Local Network values
4+
"governor": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
5+
6+
// Addresses for contracts deployed in the original Graph Protocol - Local Network values
7+
"graphProxyAdminAddress": "0x5FbDB2315678afecb367f032d93F642f64180aa3",
8+
"controllerAddress": "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",
9+
"horizonStakingAddress": "0xc5a5C42992dECbae36851359345FE25997F5C42d",
10+
"epochManagerAddress": "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",
11+
"graphTokenAddress": "0x3Aa5ebB10DC797CAC828524e59A333d0A371443c",
12+
"graphTokenGatewayAddress": "0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690",
13+
"rewardsManagerAddress": "0x9A676e781A523b5d0C0e43731313A708CB607508",
14+
"curationAddress": "0x59b670e9fA9D0A427751Af201D676719a970857b",
15+
"gnsAddress": "0xa85233C63b9Ee964Add6F2cffe00Fd84eb32338f",
16+
"gnsImplementationAddress": "0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44",
17+
"subgraphNFTAddress": "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e",
18+
19+
// Must be set for step 2 of the migration
20+
"graphPaymentsAddress": "",
21+
"paymentsEscrowAddress": "",
22+
23+
// Must be set for step 3 and 4 of the migration
24+
"subgraphServiceAddress": "",
25+
26+
// Must be set for step 4 of the migration
27+
"horizonStakingImplementationAddress": "",
28+
"curationImplementationAddress": "",
29+
"rewardsManagerImplementationAddress": "",
30+
31+
// Global parameters
32+
"maxThawingPeriod": 2419200
33+
},
34+
"GraphPayments": {
35+
"protocolPaymentCut": 10000
36+
},
37+
"PaymentsEscrow": {
38+
"withdrawEscrowThawingPeriod": 10000
39+
},
40+
"GraphTallyCollector": {
41+
"eip712Name": "GraphTallyCollector",
42+
"eip712Version": "1",
43+
"revokeSignerThawingPeriod": 10000
44+
}
45+
}

packages/horizon/ignition/modules/migrate/migrate-4.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,9 @@ import { MigrateCurationGovernorModule } from '../periphery/Curation'
55
import { MigrateRewardsManagerGovernorModule } from '../periphery/RewardsManager'
66

77
export default buildModule('GraphHorizon_Migrate_4', (m) => {
8-
const { L2Curation, L2CurationImplementation } = m.useModule(MigrateCurationGovernorModule)
8+
m.useModule(MigrateCurationGovernorModule)
9+
m.useModule(MigrateRewardsManagerGovernorModule)
10+
m.useModule(MigrateHorizonStakingGovernorModule)
911

10-
const { RewardsManager, RewardsManagerImplementation } = m.useModule(MigrateRewardsManagerGovernorModule)
11-
12-
const { HorizonStaking, HorizonStakingImplementation } = m.useModule(MigrateHorizonStakingGovernorModule)
13-
14-
return {
15-
Graph_Proxy_L2Curation: L2Curation,
16-
Implementation_L2Curation: L2CurationImplementation,
17-
Graph_Proxy_RewardsManager: RewardsManager,
18-
Implementation_RewardsManager: RewardsManagerImplementation,
19-
Graph_Proxy_HorizonStaking: HorizonStaking,
20-
Implementation_HorizonStaking: HorizonStakingImplementation,
21-
}
12+
return {}
2213
})
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$global": {
3+
// Accounts already configured in the original Graph Protocol - Local Network values
4+
"governor": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", // index 0
5+
"arbitrator": "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC", // index 2
6+
"pauseGuardian": "0x90F79bf6EB2c4f870365E785982E1f101E93b906", // index 3
7+
8+
// Addresses for contracts deployed in the original Graph Protocol - Local Network values
9+
"controllerAddress": "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",
10+
"curationProxyAddress": "0x59b670e9fA9D0A427751Af201D676719a970857b",
11+
"curationImplementationAddress": "0xc6e7DF5E7b4f2A278906862b61205850344D4e7d",
12+
"gnsProxyAddress": "0xa85233C63b9Ee964Add6F2cffe00Fd84eb32338f",
13+
"gnsImplementationAddress": "0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44",
14+
"subgraphNFTAddress": "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e",
15+
16+
// Must be set for step 2 of the deployment
17+
"disputeManagerProxyAddress": "",
18+
"disputeManagerProxyAdminAddress": "",
19+
"subgraphServiceProxyAddress": "",
20+
"subgraphServiceProxyAdminAddress": "",
21+
"graphTallyCollectorAddress": ""
22+
},
23+
"DisputeManager": {
24+
"disputePeriod": 7200,
25+
"disputeDeposit": "10000000000000000000000n",
26+
"fishermanRewardCut": 500000,
27+
"maxSlashingCut": 1000000,
28+
},
29+
"SubgraphService": {
30+
"minimumProvisionTokens": "100000000000000000000000n",
31+
"maximumDelegationRatio": 16,
32+
"stakeToFeesRatio": 2,
33+
"maxPOIStaleness": 7200, // 28 days = 2419200 seconds
34+
"curationCut": 100000,
35+
}
36+
}

0 commit comments

Comments
 (0)