Skip to content

Commit 4c01fc4

Browse files
committed
chore: deploy to arbitrum-sepolia and remove sepolia
1 parent bcf6957 commit 4c01fc4

File tree

11 files changed

+56
-76
lines changed

11 files changed

+56
-76
lines changed

packages/contracts/addresses-staging.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,25 @@
203203
"runtimeCodeHash": "0xd853da2001c213dd00d674114c254f18a7b5a36aabc5452fb492b9b4faf2faa9",
204204
"txHash": "0xf868871475dc711c5c03818b16a922f740bc2fc314d24586df2255161a907422"
205205
}
206+
},
207+
"SubgraphAvailabilityManager": {
208+
"address": "0x9bDC3264596850E7F5d141A8D898dFA7001355CC",
209+
"constructorArgs": [
210+
"0x72ee30d43Fb5A90B3FE983156C5d2fBE6F6d07B3",
211+
"0x913A282574A0AD91EecAdCbaf2800fDf516E27B1",
212+
"5",
213+
"300",
214+
[
215+
"0xb4d396a40BB976118Bb2c9DB9C5539e65c7Fe64A",
216+
"0x633259dB4A33DB664d4C3Fa57BEc45E5030131E2",
217+
"0x9FC436A69E290227b99A9CE0468a1b9D73068E80",
218+
"0xC9b90ab0B9cA63fDBfB46f66BE813ea94561614d",
219+
"0xf3B8F917EcFA569089CF6A0988F9a9F5155cEF83"
220+
]
221+
],
222+
"creationCodeHash": "0x473bd948303724e315a33afd256ab83decae71a422b904a1d1592e113792bada",
223+
"runtimeCodeHash": "0x4ab7cd273062d8e7bc85ba3a1114f1c10f7c0c098caf179e09412bf92d664159",
224+
"txHash": "0x44bfe0c2e857295ec91649bff53a82ca2d9ad9d21974d01b3c56f55ebefde979"
206225
}
207226
},
208227
"11155111": {
@@ -424,25 +443,6 @@
424443
"runtimeCodeHash": "0x3cb8a7336234c7826c8f5a437ad2c6615c2e4b4201096a49cb6876264ac47182",
425444
"txHash": "0xf0765b7fe12702a7de3644bb1bcd6549bce1b8b738f2136e94bf39d10521b3e3"
426445
}
427-
},
428-
"SubgraphAvailabilityManager": {
429-
"address": "0x8fa39178Bdf76aca23635FF343BeeED7aA1D45ec",
430-
"constructorArgs": [
431-
"0x559081D91F5Ff43dfE51A07C216F8E6893805B35",
432-
"0x9a86322dEa5136C74ee6d1b06F4Ab9A6bB2724E0",
433-
"5",
434-
"300",
435-
[
436-
"0x840daec5dF962D49cf2EFd789c4E40A7b7e0117D",
437-
"0x840daec5dF962D49cf2EFd789c4E40A7b7e0117D",
438-
"0x840daec5dF962D49cf2EFd789c4E40A7b7e0117D",
439-
"0x840daec5dF962D49cf2EFd789c4E40A7b7e0117D",
440-
"0x840daec5dF962D49cf2EFd789c4E40A7b7e0117D"
441-
]
442-
],
443-
"creationCodeHash": "0x70ff001c11d5120782503f0d129f388d8800571f7e9dfbc81bbff048e3a58444",
444-
"runtimeCodeHash": "0x237aca4c61c6d9b391322c0b24e2d26d9d540787507c6d30c474c86866b15dea",
445-
"txHash": "0xf68af53d379c9ffbfa4794d5226fcd92e95bbce7017f5eefaacd147d0f5f40bc"
446446
}
447447
}
448448
}

packages/contracts/config/graph.arbitrum-hardhat.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ general:
22
arbitrator: &arbitrator "0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0" # Arbitration Council
33
governor: &governor "0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b" # Graph Council
44
authority: &authority "0xE11BA2b4D45Eaed5996Cd0823791E0C93114882d" # Authority that signs payment vouchers
5-
availabilityOracle: &availabilityOracle "0xd03ea8624C8C5987235048901fB614fDcA89b117" # Subgraph Availability Oracle
5+
availabilityOracles: &availabilityOracles # Subgraph Availability Oracles
6+
- "0xd03ea8624C8C5987235048901fB614fDcA89b117"
7+
- "0xd03ea8624C8C5987235048901fB614fDcA89b117"
8+
- "0xd03ea8624C8C5987235048901fB614fDcA89b117"
9+
- "0xd03ea8624C8C5987235048901fB614fDcA89b117"
10+
- "0xd03ea8624C8C5987235048901fB614fDcA89b117"
611
pauseGuardian: &pauseGuardian "0x95cED938F7991cd0dFcb48F0a06a40FA1aF46EBC" # Protocol pause guardian
712
allocationExchangeOwner: &allocationExchangeOwner "0x3E5e9111Ae8eB78Fe1CC3bb8915d5D461F3Ef9A9" # Allocation Exchange owner
813

@@ -131,7 +136,7 @@ contracts:
131136
- fn: "setIssuancePerBlock"
132137
issuancePerBlock: "114155251141552511415" # per block increase of total supply, blocks in a year = 365*60*60*24/12
133138
- fn: "setSubgraphAvailabilityOracle"
134-
subgraphAvailabilityOracle: *availabilityOracle
139+
subgraphAvailabilityOracle: "${{SubgraphAvailabilityManager.address}}"
135140
- fn: "syncAllContracts"
136141
AllocationExchange:
137142
init:
@@ -151,11 +156,8 @@ contracts:
151156
pauseGuardian: *pauseGuardian
152157
SubgraphAvailabilityManager:
153158
init:
154-
governor: "${{Env.deployer}}"
159+
governor: *governor
155160
rewardsManager: "${{RewardsManager.address}}"
156161
executionThreshold: 5
157162
voteTimeLimit: 300
158-
oracles: [*availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle]
159-
calls:
160-
- fn: "transferOwnership"
161-
owner: *governor
163+
oracles: *availabilityOracles

packages/contracts/config/graph.arbitrum-localhost.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ general:
22
arbitrator: &arbitrator "0x4237154FE0510FdE3575656B60c68a01B9dCDdF8" # Arbitration Council
33
governor: &governor "0x1257227a2ECA34834940110f7B5e341A5143A2c4" # Graph Council
44
authority: &authority "0x12B8D08b116E1E3cc29eE9Cf42bB0AA8129C3215" # Authority that signs payment vouchers
5-
availabilityOracle: &availabilityOracle "0x7694a48065f063a767a962610C6717c59F36b445" # Subgraph Availability Oracle
5+
availabilityOracles: &availabilityOracles # Subgraph Availability Oracles
6+
- "0x7694a48065f063a767a962610C6717c59F36b445"
7+
- "0x7694a48065f063a767a962610C6717c59F36b445"
8+
- "0x7694a48065f063a767a962610C6717c59F36b445"
9+
- "0x7694a48065f063a767a962610C6717c59F36b445"
10+
- "0x7694a48065f063a767a962610C6717c59F36b445"
611
pauseGuardian: &pauseGuardian "0x601060e0DC5349AA55EC73df5A58cB0FC1cD2e3C" # Protocol pause guardian
712
allocationExchangeOwner: &allocationExchangeOwner "0xbD38F7b67a591A5cc7D642e1026E5095B819d952" # Allocation Exchange owner
813

@@ -132,7 +137,7 @@ contracts:
132137
- fn: "setIssuancePerBlock"
133138
issuancePerBlock: "6036500000000000000" # per block increase of total supply, blocks in a year = 365*60*60*24/12
134139
- fn: "setSubgraphAvailabilityOracle"
135-
subgraphAvailabilityOracle: *availabilityOracle
140+
subgraphAvailabilityOracle: "${{SubgraphAvailabilityManager.address}}"
136141
- fn: "syncAllContracts"
137142
AllocationExchange:
138143
init:
@@ -152,11 +157,8 @@ contracts:
152157
pauseGuardian: *pauseGuardian
153158
SubgraphAvailabilityManager:
154159
init:
155-
governor: "${{Env.deployer}}"
160+
governor: *governor
156161
rewardsManager: "${{RewardsManager.address}}"
157162
executionThreshold: 5
158163
voteTimeLimit: 300
159-
oracles: [*availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle]
160-
calls:
161-
- fn: "transferOwnership"
162-
owner: *governor
164+
oracles: *availabilityOracles

packages/contracts/config/graph.arbitrum-sepolia.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ general:
22
arbitrator: &arbitrator "0x1726A5d52e279d02ff4732eCeB2D67BFE5Add328" # EOA (TODO: update to a multisig)
33
governor: &governor "0x72ee30d43Fb5A90B3FE983156C5d2fBE6F6d07B3" # EOA (TODO: update to a multisig)
44
authority: &authority "0x49D4CFC037430cA9355B422bAeA7E9391e1d3215" # Authority that signs payment vouchers
5-
availabilityOracle: &availabilityOracle "0x5e4e823Ed094c035133eEC5Ec0d08ae1Af04e9Fa" # Subgraph Availability Oracle
5+
availabilityOracles: &availabilityOracles # Array of Subgraph Availability Oracles
6+
- "0xb4d396a40BB976118Bb2c9DB9C5539e65c7Fe64A"
7+
- "0x633259dB4A33DB664d4C3Fa57BEc45E5030131E2"
8+
- "0x9FC436A69E290227b99A9CE0468a1b9D73068E80"
9+
- "0xC9b90ab0B9cA63fDBfB46f66BE813ea94561614d"
10+
- "0xf3B8F917EcFA569089CF6A0988F9a9F5155cEF83"
611
pauseGuardian: &pauseGuardian "0xa0444508232dA3FA6C2f96a5f105f3f0cc0d20D7" # Protocol pause guardian
712
allocationExchangeOwner: &allocationExchangeOwner "0x72ee30d43Fb5A90B3FE983156C5d2fBE6F6d07B3" # Allocation Exchange owner
813

@@ -131,7 +136,7 @@ contracts:
131136
- fn: "setIssuancePerBlock"
132137
issuancePerBlock: "6036500000000000000" # per block increase of total supply, blocks in a year = 365*60*60*24/12
133138
- fn: "setSubgraphAvailabilityOracle"
134-
subgraphAvailabilityOracle: *availabilityOracle
139+
subgraphAvailabilityOracle: "${{SubgraphAvailabilityManager.address}}"
135140
- fn: "syncAllContracts"
136141
AllocationExchange:
137142
init:
@@ -149,3 +154,10 @@ contracts:
149154
- fn: "syncAllContracts"
150155
- fn: "setPauseGuardian"
151156
pauseGuardian: *pauseGuardian
157+
SubgraphAvailabilityManager:
158+
init:
159+
governor: *governor
160+
rewardsManager: "${{RewardsManager.address}}"
161+
executionThreshold: 5
162+
voteTimeLimit: 300
163+
oracles: *availabilityOracles

packages/contracts/config/graph.hardhat.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,3 @@ contracts:
158158
controller: "${{Controller.address}}"
159159
calls:
160160
- fn: "syncAllContracts"
161-
SubgraphAvailabilityManager:
162-
init:
163-
governor: "${{Env.deployer}}"
164-
rewardsManager: "${{RewardsManager.address}}"
165-
executionThreshold: 5
166-
voteTimeLimit: 300
167-
oracles: [*availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle]
168-
calls:
169-
- fn: "transferOwnership"
170-
owner: *governor

packages/contracts/config/graph.localhost.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,3 @@ contracts:
159159
controller: "${{Controller.address}}"
160160
calls:
161161
- fn: "syncAllContracts"
162-
SubgraphAvailabilityManager:
163-
init:
164-
governor: "${{Env.deployer}}"
165-
rewardsManager: "${{RewardsManager.address}}"
166-
executionThreshold: 5
167-
voteTimeLimit: 300
168-
oracles: [*availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle]
169-
calls:
170-
- fn: "transferOwnership"
171-
owner: *governor

packages/contracts/config/graph.sepolia.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,3 @@ contracts:
159159
controller: "${{Controller.address}}"
160160
calls:
161161
- fn: "syncAllContracts"
162-
SubgraphAvailabilityManager:
163-
init:
164-
governor: "${{Env.deployer}}"
165-
rewardsManager: "${{RewardsManager.address}}"
166-
executionThreshold: 5
167-
voteTimeLimit: 300
168-
oracles: [*availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle, *availabilityOracle]
169-
calls:
170-
- fn: "transferOwnership"
171-
owner: *governor

packages/contracts/test/e2e/deployment/config/rewardsManager.test.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,16 @@ import { NamedAccounts } from '@graphprotocol/sdk/gre'
44

55
describe('RewardsManager configuration', () => {
66
const {
7-
getNamedAccounts,
8-
contracts: { RewardsManager, Controller },
7+
contracts: { RewardsManager, Controller, SubgraphAvailabilityManager },
98
} = hre.graph()
109

11-
let namedAccounts: NamedAccounts
12-
13-
before(async () => {
14-
namedAccounts = await getNamedAccounts()
15-
})
16-
1710
it('should be controlled by Controller', async function () {
1811
const controller = await RewardsManager.controller()
1912
expect(controller).eq(Controller.address)
2013
})
2114

2215
it('should allow subgraph availability oracle to deny rewards', async function () {
2316
const availabilityOracle = await RewardsManager.subgraphAvailabilityOracle()
24-
expect(availabilityOracle).eq(namedAccounts.availabilityOracle.address)
17+
expect(availabilityOracle).eq(SubgraphAvailabilityManager.address)
2518
})
2619
})

packages/sdk/src/deployments/network/deployment/contracts/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const GraphNetworkSharedContractNameList = [
1313
'RewardsManager',
1414
'DisputeManager',
1515
'AllocationExchange',
16-
'SubgraphAvailabilityManager',
1716
] as const
1817
export const GraphNetworkOptionalContractNameList = [
1918
'IENS',
@@ -35,6 +34,7 @@ export const GraphNetworkL2ContractNameList = [
3534
'L2GNS',
3635
'L2Staking',
3736
'L2GraphTokenGateway',
37+
'SubgraphAvailabilityManager',
3838
] as const
3939

4040
export const GraphNetworkContractNameList = [

packages/sdk/src/deployments/network/deployment/contracts/load.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import type {
4141
L2GNS,
4242
L2Curation,
4343
StakingExtension,
44+
SubgraphAvailabilityManager,
4445
} from '@graphprotocol/contracts'
4546
import { ContractList } from '../../../lib/types/contract'
4647
import { loadArtifact } from '../../../lib/deploy/artifacts'
@@ -63,6 +64,7 @@ export interface GraphNetworkContracts extends ContractList<GraphNetworkContract
6364
GraphCurationToken: GraphCurationToken
6465
StakingExtension: StakingExtension
6566
IENS?: IENS
67+
SubgraphAvailabilityManager: SubgraphAvailabilityManager
6668

6769
// Only L1
6870
L1GraphToken?: GraphToken

0 commit comments

Comments
 (0)