Skip to content

Commit e1663dd

Browse files
committed
feat: add GNS to deployments
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
1 parent 18b34c0 commit e1663dd

36 files changed

+232
-22
lines changed

packages/contracts/contracts/discovery/IGNS.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
/**
66
* @title Interface for GNS

packages/contracts/contracts/discovery/ISubgraphNFT.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
66

packages/hardhat-graph-protocol/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# hardhat-graph-protocol
22

3+
## 0.1.19
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @graphprotocol/toolshed@0.5.1
9+
310
## 0.1.18
411

512
### Patch Changes

packages/hardhat-graph-protocol/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hardhat-graph-protocol",
3-
"version": "0.1.18",
3+
"version": "0.1.19",
44
"publishConfig": {
55
"access": "public"
66
},

packages/horizon/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @graphprotocol/horizon
22

3+
## 0.3.3
4+
5+
### Patch Changes
6+
7+
- Add GNS to deployments
8+
39
## 0.3.2
410

511
### Patch Changes

packages/horizon/contracts/mocks/imports.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ import "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
1010
import "@graphprotocol/contracts/contracts/governance/Controller.sol";
1111
import "@graphprotocol/contracts/contracts/upgrades/GraphProxyAdmin.sol";
1212
import "@graphprotocol/contracts/contracts/staking/IStaking.sol";
13+
import "@graphprotocol/contracts/contracts/discovery/ISubgraphNFT.sol";
1314

1415
// Also for toolshed, solidity version in @graphprotocol/contracts does not support overriding public getters
1516
// in interface file, so we need to amend them here.
1617
import { IRewardsManager } from "@graphprotocol/contracts/contracts/rewards/IRewardsManager.sol";
1718
import { IL2Curation } from "@graphprotocol/contracts/contracts/l2/curation/IL2Curation.sol";
1819
import { IEpochManager } from "@graphprotocol/contracts/contracts/epochs/IEpochManager.sol";
20+
import { IGNS } from "@graphprotocol/contracts/contracts/discovery/IGNS.sol";
1921

2022
interface IRewardsManagerToolshed is IRewardsManager {
2123
function subgraphService() external view returns (address);
@@ -28,3 +30,7 @@ interface IL2CurationToolshed is IL2Curation {
2830
interface IEpochManagerToolshed is IEpochManager {
2931
function epochLength() external view returns (uint256);
3032
}
33+
34+
interface IGNSToolshed is IGNS {
35+
function subgraphNFT() external view returns (address);
36+
}

packages/horizon/ignition/configs/migrate.default.json5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"graphTokenGatewayAddress": "0xB24Ce0f8c18c4DdDa584A7EeC132F49C966813bb",
1313
"rewardsManagerAddress": "0x1F49caE7669086c8ba53CC35d1E9f80176d67E79",
1414
"curationAddress": "0xDe761f075200E75485F4358978FB4d1dC8644FD5",
15+
"gnsAddress": "0x3133948342F35b8699d8F94aeE064AbB76eDe965",
16+
"gnsImplementationAddress": "0x00CBF5024d454255577Bf2b0fB6A43328a6828c9",
17+
"subgraphNFTAddress": "0xF21Df5BbA7EB9b54D8F60C560aFb9bA63e6aED1A",
1518

1619
// Must be set for step 2 of the migration
1720
"graphPaymentsAddress": "",

packages/horizon/ignition/configs/migrate.fork1.json5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"graphTokenGatewayAddress": "0xB24Ce0f8c18c4DdDa584A7EeC132F49C966813bb",
1313
"rewardsManagerAddress": "0x1F49caE7669086c8ba53CC35d1E9f80176d67E79",
1414
"curationAddress": "0xDe761f075200E75485F4358978FB4d1dC8644FD5",
15+
"gnsAddress": "0x3133948342F35b8699d8F94aeE064AbB76eDe965",
16+
"gnsImplementationAddress": "0x00CBF5024d454255577Bf2b0fB6A43328a6828c9",
17+
"subgraphNFTAddress": "0xF21Df5BbA7EB9b54D8F60C560aFb9bA63e6aED1A",
1518

1619
// Must be set for step 2 of the migration
1720
"graphPaymentsAddress": "0x1A7Fb71014d4395903eC56662f32dD02344D361C",

packages/horizon/ignition/configs/migrate.integration.json5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"graphTokenGatewayAddress": "0xB24Ce0f8c18c4DdDa584A7EeC132F49C966813bb",
1313
"rewardsManagerAddress": "0x1F49caE7669086c8ba53CC35d1E9f80176d67E79",
1414
"curationAddress": "0xDe761f075200E75485F4358978FB4d1dC8644FD5",
15+
"gnsAddress": "0x3133948342F35b8699d8F94aeE064AbB76eDe965",
16+
"gnsImplementationAddress": "0x00CBF5024d454255577Bf2b0fB6A43328a6828c9",
17+
"subgraphNFTAddress": "0xF21Df5BbA7EB9b54D8F60C560aFb9bA63e6aED1A",
1518

1619
// Must be set for step 2 of the migration
1720
"graphPaymentsAddress": "",

packages/horizon/ignition/modules/deploy.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export default buildModule('GraphHorizon_Deploy', (m) => {
1717
RewardsManagerImplementation,
1818
L2Curation,
1919
L2CurationImplementation,
20+
L2GNS,
21+
L2GNSImplementation,
22+
SubgraphNFT,
2023
} = m.useModule(GraphPeripheryModule)
2124
const {
2225
HorizonStaking,
@@ -46,6 +49,9 @@ export default buildModule('GraphHorizon_Deploy', (m) => {
4649
Implementation_EpochManager: EpochManagerImplementation,
4750
Graph_Proxy_L2Curation: L2Curation,
4851
Implementation_L2Curation: L2CurationImplementation,
52+
Graph_Proxy_L2GNS: L2GNS,
53+
Implementation_L2GNS: L2GNSImplementation,
54+
SubgraphNFT,
4955
Graph_Proxy_RewardsManager: RewardsManager,
5056
Implementation_RewardsManager: RewardsManagerImplementation,
5157
Graph_Proxy_L2GraphTokenGateway: L2GraphTokenGateway,

0 commit comments

Comments
 (0)