Skip to content

Commit 97bdc54

Browse files
committed
wip
1 parent ec8db08 commit 97bdc54

File tree

27 files changed

+1056
-3281
lines changed

27 files changed

+1056
-3281
lines changed

packages/contracts/test/e2e/horizon/abis/L2GraphToken.json

Lines changed: 0 additions & 741 deletions
This file was deleted.

packages/contracts/test/e2e/horizon/abis/L2Staking.json

Lines changed: 0 additions & 1212 deletions
This file was deleted.

packages/contracts/test/e2e/horizon/abis/StakingExtension.json

Lines changed: 0 additions & 941 deletions
This file was deleted.

packages/contracts/test/e2e/horizon/fixtures/allocations.ts

Lines changed: 0 additions & 71 deletions
This file was deleted.

packages/contracts/test/e2e/horizon/fixtures/indexers.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/contracts/test/e2e/horizon/pre-upgrade.ts

Lines changed: 0 additions & 155 deletions
This file was deleted.

packages/hardhat-graph-protocol/src/sdk/hardhat.base.config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ export const networksUserConfig: BaseNetworksUserConfig = {
6060
secureAccounts: {
6161
enabled: true,
6262
},
63-
...(vars.has('LOCALHOST_ACCOUNTS_MNEMONIC') && {
64-
accounts: { mnemonic: vars.get('LOCALHOST_ACCOUNTS_MNEMONIC') },
65-
}),
63+
...(vars.has('FORK') && vars.get('FORK') === 'true'
64+
? { accounts: 'remote' }
65+
: vars.has('LOCALHOST_ACCOUNTS_MNEMONIC')
66+
? { accounts: { mnemonic: vars.get('LOCALHOST_ACCOUNTS_MNEMONIC') } }
67+
: {}
68+
),
6669
deployments: {
6770
horizon: resolveLocalAddressBook('@graphprotocol/horizon/addresses.json'),
6871
subgraphService: resolveLocalAddressBook('@graphprotocol/subgraph-service/addresses.json'),
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { loadConfig, patchConfig, saveToAddressBook } from './ignition/ignition'
22
import { hardhatBaseConfig } from './hardhat.base.config'
3+
import { mergeABIs } from './utils/abi'
34

45
const IgnitionHelper = { saveToAddressBook, loadConfig, patchConfig }
5-
export { hardhatBaseConfig, IgnitionHelper }
6+
export { hardhatBaseConfig, IgnitionHelper, mergeABIs }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"snapshotId": "0x47",
3+
"network": "localhost",
4+
"chainId": "0x7a69",
5+
"blockNumber": 129668361,
6+
"timestamp": 1741200721016
7+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"$global": {
3+
// Accounts
4+
"governor": "0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0",
5+
6+
// Addresses for contracts deployed in the original Graph Protocol
7+
"graphProxyAdminAddress": "0x7474a6cc5fAeDEc620Db0fa8E4da6eD58477042C",
8+
"controllerAddress": "0x9DB3ee191681f092607035d9BDA6e59FbEaCa695",
9+
"horizonStakingAddress": "0x865365C425f3A593Ffe698D9c4E6707D14d51e08",
10+
"epochManagerAddress": "0x88b3C7f37253bAA1A9b95feAd69bD5320585826D",
11+
"graphTokenAddress": "0xf8c05dCF59E8B28BFD5eed176C562bEbcfc7Ac04",
12+
"graphTokenGatewayAddress": "0xB24Ce0f8c18c4DdDa584A7EeC132F49C966813bb",
13+
"rewardsManagerAddress": "0x1F49caE7669086c8ba53CC35d1E9f80176d67E79",
14+
"curationAddress": "0xDe761f075200E75485F4358978FB4d1dC8644FD5",
15+
16+
// Must be set for step 3 and 4 of the migration
17+
"subgraphServiceAddress": "",
18+
19+
// Parameters
20+
"maxThawingPeriod": 2419200
21+
},
22+
"GraphPayments": {
23+
"protocolPaymentCut": 10000
24+
},
25+
"PaymentsEscrow": {
26+
"withdrawEscrowThawingPeriod": 10000
27+
},
28+
"GraphTallyCollector": {
29+
"eip712Name": "GraphTallyCollector",
30+
"eip712Version": "1",
31+
"revokeSignerThawingPeriod": 10000
32+
},
33+
"HorizonProxiesGovernor": {
34+
// Must be set for step 2 of the migration
35+
"graphPaymentsAddress": "",
36+
"paymentsEscrowAddress": ""
37+
},
38+
"HorizonStakingGovernor": {
39+
// Must be set for step 4 of the migration
40+
"horizonStakingImplementationAddress": ""
41+
},
42+
"L2CurationGovernor": {
43+
// Must be set for step 4 of the migration
44+
"curationImplementationAddress": ""
45+
},
46+
"RewardsManagerGovernor": {
47+
// Must be set for step 4 of the migration
48+
"rewardsManagerImplementationAddress": ""
49+
}
50+
}

0 commit comments

Comments
 (0)