Skip to content

Commit ca4daad

Browse files
committed
chore: add proper ignition config files for local network
Signed-off-by: Tomás Migone <[email protected]>
1 parent 0247adb commit ca4daad

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ tx-builder-*.json
6363

6464
# Hardhat Ignition
6565
**/chain-31337/
66-
**/chain-1377/
66+
**/chain-1337/
6767
**/horizon-localhost/
6868
**/horizon-hardhat/
6969
**/subgraph-service-localhost/
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$global": {
3+
// Accounts for new deployment - derived from hardhat default mnemonic
4+
"pauseGuardian": "0xE11BA2b4D45Eaed5996Cd0823791E0C93114882d", // index 3
5+
"subgraphAvailabilityOracle": "0xd03ea8624C8C5987235048901fB614fDcA89b117", // index 4
6+
7+
// Placeholder address for a standalone Horizon deployment, see README.md for more details
8+
"subgraphServiceAddress": "0x0000000000000000000000000000000000000000",
9+
10+
// Global parameters
11+
"maxThawingPeriod": 2419200
12+
},
13+
"GraphPayments": {
14+
"protocolPaymentCut": 10000
15+
},
16+
"PaymentsEscrow": {
17+
"withdrawEscrowThawingPeriod": 10000
18+
},
19+
"GraphTallyCollector": {
20+
"eip712Name": "GraphTallyCollector",
21+
"eip712Version": "1",
22+
"revokeSignerThawingPeriod": 10000
23+
},
24+
"RewardsManager": {
25+
"issuancePerBlock": "114155251141552511415n"
26+
},
27+
"EpochManager": {
28+
"epochLength": 60, // Note that localNetwork does not auto-mine blocks, so this could be any amount of time in seconds
29+
},
30+
"L2Curation": {
31+
"curationTaxPercentage": 10000,
32+
"minimumCurationDeposit": 1
33+
},
34+
"L2GraphToken": {
35+
"initialSupply": "10000000000000000000000000000n"
36+
},
37+
38+
39+
}

packages/subgraph-service/ignition/configs/protocol.local-network.json5 renamed to packages/subgraph-service/ignition/configs/protocol.localNetwork.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"graphTallyCollectorAddress": ""
2020
},
2121
"DisputeManager": {
22-
"disputePeriod": 2419200,
22+
"disputePeriod": 7200, // 2 hours = 7200 seconds
2323
"disputeDeposit": "10000000000000000000000n",
2424
"fishermanRewardCut": 500000,
2525
"maxSlashingCut": 1000000,
@@ -28,7 +28,7 @@
2828
"minimumProvisionTokens": "100000000000000000000000n",
2929
"maximumDelegationRatio": 16,
3030
"stakeToFeesRatio": 2,
31-
"maxPOIStaleness": 2419200, // 28 days = 2419200 seconds
31+
"maxPOIStaleness": 7200, // 2 hours = 7200 seconds
3232
"curationCut": 100000,
3333
}
3434
}

0 commit comments

Comments
 (0)