@graphprotocol/graph-cli 0.24.0-alpha.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -69,6 +69,89 @@ For examples of `graph-ts` in use take a look at one of the following subgraphs:
69
69
  * https://github.com/graphprotocol/aragon-subgraph
70
70
  * https://github.com/graphprotocol/dharma-subgraph
71
71
 
72
+ ## Release process
73
+
74
+ The steps to create a new version of the `graph-ts` are:
75
+
76
+ 1. Decide which version number you'll be rolling out. You can check the differences between the current `master` branch and the latest release.
77
+ 2. Create a PR with the commit generated by `npm version <VERSION> [<PREID>]`.
78
+ 3. Once that's approved and merged to `master`, you can publish it to `npm` and push the git tags as well.
79
+ 4. Last but not least, create a Github Release refering to the pushed git tag, linking to the PRs involved.
80
+
81
+ Helpful links:
82
+
83
+ - [Semver official docs](https://semver.org/)
84
+ - [`npm version` docs](https://docs.npmjs.com/cli/v7/commands/npm-version)
85
+ - [`npm publish` docs](https://docs.npmjs.com/cli/v7/commands/npm-publish)
86
+ - [`npm unpublish` docs](https://docs.npmjs.com/cli/v7/commands/npm-unpublish)
87
+ - [`npm deprecate` docs](https://docs.npmjs.com/cli/v7/commands/npm-deprecate)
88
+
89
+ ### Stable release example
90
+
91
+ Current version: `0.34.9`.
92
+ Desired release: `0.35.0`.
93
+
94
+ To create the PR:
95
+ ```
96
+ git checkout -b <BRANCH>
97
+
98
+ npm version minor
99
+
100
+ git push --set-upstream <REMOTE> <BRANCH>
101
+ ```
102
+
103
+ Once that's approved and merged, you can update your local `master` and:
104
+
105
+ ```
106
+ npm publish
107
+
108
+ npm push --tags
109
+ ```
110
+
111
+ ### Alpha release example
112
+
113
+ Current version: `0.29.2`.
114
+ Desired release: `0.30.0-alpha.0`.
115
+
116
+ To create the PR:
117
+ ```
118
+ git checkout -b <BRANCH>
119
+
120
+ npm version preminor --preid alpha
121
+
122
+ git push --set-upstream <REMOTE> <BRANCH>
123
+ ```
124
+
125
+ Once that's approved and merged, you can update your local `master` and:
126
+
127
+ ```
128
+ npm publish --tag alpha
129
+
130
+ npm push --tags
131
+ ```
132
+
133
+ ### Alpha pre-release example
134
+
135
+ Current version: `0.30.0-alpha.0`.
136
+ Desired release: `0.30.0-alpha.1`.
137
+
138
+ To create the PR:
139
+ ```
140
+ git checkout -b <BRANCH>
141
+
142
+ npm version prerelease --preid alpha
143
+
144
+ git push --set-upstream <REMOTE> <BRANCH>
145
+ ```
146
+
147
+ Once that's approved and merged, you can update your local `master` and:
148
+
149
+ ```
150
+ npm publish --tag alpha
151
+
152
+ npm push --tags
153
+ ```
154
+
72
155
  ## License
73
156
 
74
157
  Copyright &copy; 2018 Graph Protocol, Inc. and contributors.
@@ -339,6 +339,7 @@ export namespace ethereum {
339
339
  public difficulty: BigInt,
340
340
  public totalDifficulty: BigInt,
341
341
  public size: BigInt | null,
342
+ public baseFeePerGas: BigInt | null,
342
343
  ) {}
343
344
  }
344
345
 
@@ -355,6 +356,7 @@ export namespace ethereum {
355
356
  public gasLimit: BigInt,
356
357
  public gasPrice: BigInt,
357
358
  public input: Bytes,
359
+ public nonce: Bytes,
358
360
  ) {}
359
361
  }
360
362
 
@@ -14,13 +14,13 @@ export declare namespace json {
14
14
  }
15
15
 
16
16
  export namespace json {
17
- function fromString(data: string): JSONValue {
17
+ export function fromString(data: string): JSONValue {
18
18
  let bytes = Bytes.fromUTF8(data)
19
19
 
20
20
  return json.fromBytes(bytes)
21
21
  }
22
22
 
23
- function try_fromString(data: string): Result<JSONValue, boolean> {
23
+ export function try_fromString(data: string): Result<JSONValue, boolean> {
24
24
  let bytes = Bytes.fromUTF8(data)
25
25
 
26
26
  return json.try_fromBytes(bytes)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-ts",
3
3
  "description": "TypeScript/AssemblyScript library for writing subgraph mappings for The Graph",
4
- "version": "0.23.1",
4
+ "version": "0.24.0",
5
5
  "module": "index.ts",
6
6
  "types": "index.ts",
7
7
  "main": "index.ts",
@@ -9,16 +9,11 @@
9
9
  "assemblyscript": "0.19.10"
10
10
  },
11
11
  "devDependencies": {
12
- "glob": "^7.1.2",
13
12
  "prettier": "^2.4.1"
14
13
  },
15
14
  "scripts": {
16
15
  "lint": "prettier -c **/*.{js,ts}",
17
16
  "build": "asc --explicitStart --exportRuntime --runtime stub index.ts helper-functions.ts --lib graph-ts -b index.wasm",
18
- "test": "node test/test.js",
19
- "release:patch": "npm version patch && npm publish && git push origin master && git push --tags",
20
- "release:minor": "npm version minor && npm publish && git push origin master && git push --tags",
21
- "release:alpha:minor": "npm version preminor --preid alpha && npm publish --tag alpha && git push origin master && git push --tags",
22
- "release:alpha:prerelease": "npm version prerelease --preid alpha && npm publish --tag alpha && git push origin master && git push --tags"
17
+ "test": "node test/test.js"
23
18
  }
24
19
  }
@@ -9,7 +9,7 @@
9
9
  "deploy-test": "../../bin/graph deploy test/basic-event-handlers --version-label v0.0.1 --ipfs http://localhost:15001 --node http://127.0.0.1:18020"
10
10
  },
11
11
  "devDependencies": {
12
- "@graphprotocol/graph-ts": "0.24.0-alpha.0",
12
+ "@graphprotocol/graph-ts": "0.24.0",
13
13
  "apollo-fetch": "^0.7.0"
14
14
  },
15
15
  "dependencies": {
@@ -2,10 +2,10 @@
2
2
  # yarn lockfile v1
3
3
 
4
4
 
5
- "@graphprotocol/graph-ts@0.24.0-alpha.0":
6
- version "0.24.0-alpha.0"
7
- resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.24.0-alpha.0.tgz#8fe2b09a123adc5a65c82b823a1cb2d99f3cce2b"
8
- integrity sha512-PLhTMlFMoLZpTqJlKH5f+5VRN3yWmXfssVwWk7uauVeY8IuAWjWB3RNubS574q9uf0QjPKOacekXY5EKRWOzEA==
5
+ "@graphprotocol/graph-ts@0.24.0":
6
+ version "0.24.0"
7
+ resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.24.0.tgz#ccfa14edf015f3fc6d37b7d2a95e71ec6acc0005"
8
+ integrity sha512-XciVlalOXzS2Iv8WeAwO0jwWzPBlzEWLtwNT5FdII962TAzbgZ6fx1nNGjGZLwwq38/aUX154+tdvEmL57gZqQ==
9
9
  dependencies:
10
10
  assemblyscript "0.19.10"
11
11
 
@@ -7,7 +7,7 @@
7
7
  "build-wast": "../../bin/graph build -t wast subgraph.yaml"
8
8
  },
9
9
  "devDependencies": {
10
- "@graphprotocol/graph-ts": "0.24.0-alpha.0"
10
+ "@graphprotocol/graph-ts": "0.24.0"
11
11
  },
12
12
  "resolutions": {
13
13
  "assemblyscript": "0.19.10"
@@ -2,10 +2,10 @@
2
2
  # yarn lockfile v1
3
3
 
4
4
 
5
- "@graphprotocol/graph-ts@0.24.0-alpha.0":
6
- version "0.24.0-alpha.0"
7
- resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.24.0-alpha.0.tgz#8fe2b09a123adc5a65c82b823a1cb2d99f3cce2b"
8
- integrity sha512-PLhTMlFMoLZpTqJlKH5f+5VRN3yWmXfssVwWk7uauVeY8IuAWjWB3RNubS574q9uf0QjPKOacekXY5EKRWOzEA==
5
+ "@graphprotocol/graph-ts@0.24.0":
6
+ version "0.24.0"
7
+ resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.24.0.tgz#ccfa14edf015f3fc6d37b7d2a95e71ec6acc0005"
8
+ integrity sha512-XciVlalOXzS2Iv8WeAwO0jwWzPBlzEWLtwNT5FdII962TAzbgZ6fx1nNGjGZLwwq38/aUX154+tdvEmL57gZqQ==
9
9
  dependencies:
10
10
  assemblyscript "0.19.10"
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.24.0-alpha.0",
3
+ "version": "0.24.0",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "dependencies": {
6
6
  "assemblyscript": "0.19.10",
package/src/scaffold.js CHANGED
@@ -49,7 +49,7 @@ const generatePackageJson = ({ subgraphName, node }) =>
49
49
  },
50
50
  dependencies: {
51
51
  '@graphprotocol/graph-cli': graphCliVersion,
52
- '@graphprotocol/graph-ts': `0.24.0-alpha.0`,
52
+ '@graphprotocol/graph-ts': `0.24.0`,
53
53
  },
54
54
  }),
55
55
  { parser: 'json' },