Skip to content

Commit 3adce5a

Browse files
committed
fix: proper fix for type issues with GNS and SubgraphNFT
Signed-off-by: Tomás Migone <[email protected]>
1 parent f8809ac commit 3adce5a

File tree

9 files changed

+31
-11
lines changed

9 files changed

+31
-11
lines changed

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.22
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @graphprotocol/toolshed@0.5.5
9+
310
## 0.1.21
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.21",
3+
"version": "0.1.22",
44
"publishConfig": {
55
"access": "public"
66
},

packages/horizon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"hardhat": "^2.22.18",
5656
"hardhat-contract-sizer": "^2.10.0",
5757
"hardhat-gas-reporter": "^1.0.8",
58-
"hardhat-graph-protocol": "workspace:^0.1.21",
58+
"hardhat-graph-protocol": "workspace:^0.1.22",
5959
"hardhat-secure-accounts": "^1.0.5",
6060
"lint-staged": "^15.2.2",
6161
"prettier": "^3.2.5",

packages/subgraph-service/contracts/mocks/imports.sol

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
pragma solidity ^0.7.6 || 0.8.27;
33

44
// These are needed to get artifacts for toolshed
5-
import "@graphprotocol/contracts/contracts/l2/discovery/IL2GNS.sol";
65
import "@graphprotocol/contracts/contracts/disputes/IDisputeManager.sol";
6+
import "@graphprotocol/contracts/contracts/discovery/ISubgraphNFT.sol";
77

88
// Also for toolshed, solidity version in @graphprotocol/contracts does not support overriding public getters
99
// in interface file, so we need to amend them here.
1010
import { IServiceRegistry } from "@graphprotocol/contracts/contracts/discovery/IServiceRegistry.sol";
1111
import { IL2Curation } from "@graphprotocol/contracts/contracts/l2/curation/IL2Curation.sol";
12+
import { IGNS } from "@graphprotocol/contracts/contracts/discovery/IGNS.sol";
1213

1314
interface IL2CurationToolshed is IL2Curation {
1415
function subgraphService() external view returns (address);
@@ -17,3 +18,7 @@ interface IL2CurationToolshed is IL2Curation {
1718
interface IServiceRegistryToolshed is IServiceRegistry {
1819
function services(address indexer) external view returns (IServiceRegistry.IndexerService memory);
1920
}
21+
22+
interface IGNSToolshed is IGNS {
23+
function subgraphNFT() external view returns (address);
24+
}

packages/subgraph-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"hardhat": "^2.22.18",
5757
"hardhat-contract-sizer": "^2.10.0",
5858
"hardhat-gas-reporter": "^1.0.8",
59-
"hardhat-graph-protocol": "workspace:^0.1.21",
59+
"hardhat-graph-protocol": "workspace:^0.1.22",
6060
"hardhat-secure-accounts": "^1.0.5",
6161
"json5": "^2.2.3",
6262
"lint-staged": "^15.2.2",

packages/toolshed/CHANGELOG.md

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

3+
## 0.5.5
4+
5+
### Patch Changes
6+
7+
- Properly address type issues
8+
- @graphprotocol/horizon@0.3.3
9+
- @graphprotocol/subgraph-service@0.3.5
10+
311
## 0.5.4
412

513
### Patch Changes

packages/toolshed/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/toolshed",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"publishConfig": {
55
"access": "public"
66
},

packages/toolshed/src/deployments/subgraph-service/contracts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type {
99
L2GNS,
1010
LegacyDisputeManager,
1111
LegacyServiceRegistry,
12+
SubgraphNFT,
1213
} from './types'
1314
import type { ContractList } from '../contract'
1415

@@ -49,7 +50,7 @@ export interface SubgraphServiceContracts extends ContractList<SubgraphServiceCo
4950
// @graphprotocol/contracts
5051
L2Curation: L2Curation
5152
L2GNS: L2GNS
52-
// SubgraphNFT: SubgraphNFT
53+
SubgraphNFT: SubgraphNFT
5354

5455
// @graphprotocol/subgraph-service
5556
SubgraphService: SubgraphService
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import type {
22
IDisputeManager,
3+
IGNSToolshed,
34
IL2CurationToolshed,
45
IServiceRegistryToolshed,
6+
ISubgraphNFT,
57
} from '@graphprotocol/subgraph-service'
68

7-
import {
8-
L2GNS,
9-
} from '../horizon'
10-
119
// These are just type re-declarations to keep naming conventions consistent
1210
export {
1311
IL2CurationToolshed as L2Curation,
14-
L2GNS,
12+
IGNSToolshed as L2GNS,
1513
IDisputeManager as LegacyDisputeManager,
1614
IServiceRegistryToolshed as LegacyServiceRegistry,
15+
ISubgraphNFT as SubgraphNFT,
1716
}

0 commit comments

Comments
 (0)