@graphprotocol/graph-cli 0.28.2 → 0.28.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.28.2",
3
+ "version": "0.28.3",
4
4
  "license": "(Apache-2.0 OR MIT)",
5
5
  "description": "CLI for building for and deploying to The Graph",
6
6
  "dependencies": {
@@ -212,11 +212,16 @@ module.exports = class AbiCodeGenerator {
212
212
  `parameters`,
213
213
  )
214
214
  paramsClass.addMethod(paramObject.getter)
215
- let ethType = typesCodegen.ethereumTypeForAsc(paramObject.getter.returnType)
216
- if (typeof ethType === typeof {} && (ethType.test("int256") || ethType.test("uint256"))) {
217
- ethType = "int32"
215
+
216
+ // Fixture generation
217
+ if (doFixtureCodegen) {
218
+ let ethType = typesCodegen.ethereumTypeForAsc(paramObject.getter.returnType)
219
+ if (typeof ethType === typeof {} && (ethType.test("int256") || ethType.test("uint256"))) {
220
+ ethType = "int32"
221
+ }
222
+ namesAndTypes.push({name: paramObject.getter.name.slice(4), type: ethType})
218
223
  }
219
- namesAndTypes.push({name: paramObject.getter.name.slice(4), type: ethType})
224
+
220
225
  tupleClasses.push(...paramObject.classes)
221
226
  })
222
227
 
@@ -0,0 +1,7 @@
1
+ {
2
+ "mainnet": {
3
+ "Gravity": {
4
+ "address": "0x2E645469f354BB4F5c8a05B3b30A929361cf77eC"
5
+ }
6
+ }
7
+ }