Skip to content

Commit 638661f

Browse files
authored
chore: update address book with linear rewards upgrade (#807)
* chore: update address book with linear rewards changes Signed-off-by: Tomás Migone <[email protected]>
1 parent 23611af commit 638661f

10 files changed

+24
-18
lines changed

addresses.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@
225225
"txHash": "0xd3a4d1b3e250e606f56417fd6e43d35bc794e793b1c5be4ffbecc3a43ca1b7b6",
226226
"proxy": true,
227227
"implementation": {
228-
"address": "0x320Fe3AF387a5Fe4159b52dA62246834eCc4b0c1",
229-
"creationCodeHash": "0xfec6d35d9de8a7234e77484ee4fa5d6867697d607b591ed5a8e01679fa1f0394",
230-
"runtimeCodeHash": "0x4595f2b6c37d65ad1deed2497054b2319fb0c6419439e2e374b29a29aa9fcb81",
231-
"txHash": "0x513d322a447acd84d04001933e151156a391999c4c09c7fccad65d6573d694bb"
228+
"address": "0xE633B775790b338B8C5a9ff47aB7C5D0faf4CB7a",
229+
"creationCodeHash": "0x8e942423da51ec1fbce6834a7da57619454a48aa85efcaffb9a51cff7f655b8f",
230+
"runtimeCodeHash": "0xc231e797a4a00f5dae7a26b30c0f689ab57d9f7b47a6b1c41deb73c13f952e3a",
231+
"txHash": "0x22dc1dec76de393492ae07901e28581a93afdf6340b0fd53f58d4be81a3e61c9"
232232
}
233233
},
234234
"DisputeManager": {
@@ -324,10 +324,10 @@
324324
"txHash": "0xd327568a286d6fcda1a6b78a14c87d660523a6900be901d6a7fbc2504faff64b",
325325
"proxy": true,
326326
"implementation": {
327-
"address": "0x2bc65E92B68560851C225459a31Df6617448EC31",
328-
"creationCodeHash": "0x67f10f3d0761db9c6c45ef15b19d7ffd56ca558767aa5b960ffaeec8aa607433",
329-
"runtimeCodeHash": "0xbdb984007bd365bea1b1bee307eab5e40a9aa319c111fd7ccab29db30c19ae79",
330-
"txHash": "0xe3b69f2bb04e430d23f73933b37a22d9edb651680cf2751221240afebc274ca1"
327+
"address": "0xD41ca6A1d034D178c196DFa916f22f7D1a1B8222",
328+
"creationCodeHash": "0x7d6f46e4801d562a8c6fc37779711cce39b3544ea62c6c6517d4b06e8604e38c",
329+
"runtimeCodeHash": "0xa0c0a37340ee949d31c3d41b642c507c58f225c09da9ae3d378e5148cd27081a",
330+
"txHash": "0x25f4234807c7f09b813d4e413311bbe440c8257bc050c71678f63a7abc6e643e"
331331
}
332332
}
333333
},
@@ -905,10 +905,10 @@
905905
"txHash": "0x222e14cb6f49e3e7b76f6a523c1a3c24f96402676be8662bf1b94bb2250ddd0f",
906906
"proxy": true,
907907
"implementation": {
908-
"address": "0x225aB818cD003BB17728768e6a48c160d89C64d0",
909-
"creationCodeHash": "0x98aaabec491a17401ca37209db0613c91285de061e859574526f841a4dd60c4a",
910-
"runtimeCodeHash": "0x2795a83531898957014373bd4595f1f9a381ecfaf787bdfc64380563af06f06a",
911-
"txHash": "0x6b6f45a955e114102874d34e31106ad00e04a9dba96515a9153d60539eb9208a"
908+
"address": "0xA301deAbDADF9DBd01932Aa13739c9620FAA54Fd",
909+
"creationCodeHash": "0x8e942423da51ec1fbce6834a7da57619454a48aa85efcaffb9a51cff7f655b8f",
910+
"runtimeCodeHash": "0xc231e797a4a00f5dae7a26b30c0f689ab57d9f7b47a6b1c41deb73c13f952e3a",
911+
"txHash": "0x91c40dd8898d121a3a8d0f3f0e345f5b76157f4baab0ed9b3eb5c7ef14ab95c0"
912912
}
913913
},
914914
"DisputeManager": {

config/graph.arbitrum-goerli.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ contracts:
132132
init:
133133
controller: "${{Controller.address}}"
134134
calls:
135+
- fn: "setIssuancePerBlock"
136+
issuancePerBlock: "6036500000000000000" # per block increase of total supply, blocks in a year = 365*60*60*24/12
135137
- fn: "setSubgraphAvailabilityOracle"
136138
subgraphAvailabilityOracle: *availabilityOracle
137139
- fn: "syncAllContracts"

config/graph.arbitrum-localhost.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ contracts:
132132
init:
133133
controller: "${{Controller.address}}"
134134
calls:
135+
- fn: "setIssuancePerBlock"
136+
issuancePerBlock: "6036500000000000000" # per block increase of total supply, blocks in a year = 365*60*60*24/12
135137
- fn: "setSubgraphAvailabilityOracle"
136138
subgraphAvailabilityOracle: *availabilityOracle
137139
- fn: "syncAllContracts"

config/graph.arbitrum-one.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ contracts:
132132
init:
133133
controller: "${{Controller.address}}"
134134
calls:
135+
- fn: "setIssuancePerBlock"
136+
issuancePerBlock: "6036500000000000000" # per block increase of total supply, blocks in a year = 365*60*60*24/12
135137
- fn: "setSubgraphAvailabilityOracle"
136138
subgraphAvailabilityOracle: *availabilityOracle
137139
- fn: "syncAllContracts"

config/graph.goerli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ contracts:
134134
controller: "${{Controller.address}}"
135135
calls:
136136
- fn: "setIssuancePerBlock"
137-
issuancePerBlock: "114155251141552511415" # per block increase of total supply, blocks in a year = 365*60*60*24/12
137+
issuancePerBlock: "114693500000000000000" # per block increase of total supply, blocks in a year = 365*60*60*24/12
138138
- fn: "setSubgraphAvailabilityOracle"
139139
subgraphAvailabilityOracle: *availabilityOracle
140140
- fn: "syncAllContracts"

config/graph.localhost.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ contracts:
134134
controller: "${{Controller.address}}"
135135
calls:
136136
- fn: "setIssuancePerBlock"
137-
issuancePerBlock: "114155251141552511415" # per block increase of total supply, blocks in a year = 365*60*60*24/12
137+
issuancePerBlock: "114693500000000000000" # per block increase of total supply, blocks in a year = 365*60*60*24/12
138138
- fn: "setSubgraphAvailabilityOracle"
139139
subgraphAvailabilityOracle: *availabilityOracle
140140
- fn: "syncAllContracts"

config/graph.mainnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ contracts:
134134
controller: "${{Controller.address}}"
135135
calls:
136136
- fn: "setIssuancePerBlock"
137-
issuancePerBlock: "114155251141552511415" # per block increase of total supply, blocks in a year = 365*60*60*24/12
137+
issuancePerBlock: "114693500000000000000" # per block increase of total supply, blocks in a year = 365*60*60*24/12
138138
- fn: "setSubgraphAvailabilityOracle"
139139
subgraphAvailabilityOracle: *availabilityOracle
140140
- fn: "syncAllContracts"

e2e/deployment/config/l1/rewardsManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ describe('[L1] RewardsManager configuration', () => {
1212

1313
it('issuancePerBlock should match "issuancePerBlock" in the config file', async function () {
1414
const value = await RewardsManager.issuancePerBlock()
15-
expect(value).eq('114155251141552511415') // hardcoded as it's set with a function call rather than init parameter
15+
expect(value).eq('114693500000000000000') // hardcoded as it's set with a function call rather than init parameter
1616
})
1717
})

e2e/deployment/config/l2/rewardsManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ describe('[L2] RewardsManager configuration', () => {
1212

1313
it('issuancePerBlock should be zero', async function () {
1414
const value = await RewardsManager.issuancePerBlock()
15-
expect(value).eq('0') // hardcoded as it's set with a function call rather than init parameter
15+
expect(value).eq('6036500000000000000') // hardcoded as it's set with a function call rather than init parameter
1616
})
1717
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/contracts",
3-
"version": "2.3.0",
3+
"version": "3.0.0",
44
"description": "Contracts for the Graph Protocol",
55
"directories": {
66
"test": "test"

0 commit comments

Comments
 (0)