Skip to content

Commit 3541624

Browse files
committed
v1.10.4
- Update license in package.json - Print selector hashes for GNS
1 parent c808ed8 commit 3541624

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
![License: GPL](https://img.shields.io/badge/license-GPL-blue)
2-
![Version Badge](https://img.shields.io/badge/version-1.6.0-lightgrey.svg)
1+
![License: GPL](https://img.shields.io/badge/license-GPLv2-blue)
2+
![Version Badge](https://img.shields.io/badge/version-1.10.4-lightgrey.svg)
33
![CI Status](https://github.com/graphprotocol/contracts/actions/workflows/npmtest.yml/badge.svg)
44
[![codecov](https://codecov.io/gh/graphprotocol/contracts/branch/dev/graph/badge.svg?token=S8JWGR9SBN)](https://codecov.io/gh/graphprotocol/contracts)
55

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/contracts",
3-
"version": "1.10.3",
3+
"version": "1.10.4",
44
"description": "Contracts for the Graph Protocol",
55
"directories": {
66
"test": "test"
@@ -103,7 +103,7 @@
103103
"lint": "yarn lint:ts && yarn lint:sol",
104104
"lint:fix": "yarn lint:ts:fix && yarn lint:sol:fix",
105105
"lint:ts": "eslint '*/**/*.{js,ts}'",
106-
"lint:ts:fix": "prettier:ts && eslint '*/**/*.{js,ts}' --fix",
106+
"lint:ts:fix": "yarn prettier:ts && eslint '*/**/*.{js,ts}' --fix",
107107
"lint:sol": "solhint './contracts/**/*.sol'",
108108
"lint:sol:fix": "yarn prettier:sol && solhint --fix './contracts/**/*.sol'",
109109
"prettier": "yarn prettier:ts && yarn prettier:sol",
@@ -134,8 +134,8 @@
134134
"type": "git",
135135
"url": "git+https://github.com/graphprotocol/contracts.git"
136136
},
137-
"author": "TheGraph Team",
138-
"license": "MIT",
137+
"author": "The Graph Team",
138+
"license": "GPL-2.0-or-later",
139139
"bugs": {
140140
"url": "https://github.com/graphprotocol/contracts/issues"
141141
},

tasks/contracts/functions.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ task('contracts:functions', 'Print function hashes for contracts')
2020
console.log(fnSig, '->', hre.ethers.utils.id(fnSig).slice(0, 10))
2121
}
2222
}
23+
24+
console.log('## GNS ##')
25+
for (const fn of Object.entries(env.contracts.GNS.functions)) {
26+
const [fnSig] = fn
27+
if (fnSig.indexOf('(') != -1) {
28+
console.log(fnSig, '->', hre.ethers.utils.id(fnSig).slice(0, 10))
29+
}
30+
}
2331
})
2432

2533
task('contracts:layout', 'Display storage layout').setAction(async (_, hre) => {

0 commit comments

Comments
 (0)