@graphprotocol/graph-cli 0.59.0-alpha-20230928172030-9e0d14a → 0.59.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.
Files changed (198) hide show
  1. package/CHANGELOG.md +1 -15
  2. package/dist/{src/command-helpers → command-helpers}/abi.js +5 -7
  3. package/dist/{src/command-helpers → command-helpers}/compiler.js +1 -8
  4. package/dist/{src/command-helpers → command-helpers}/node.js +1 -2
  5. package/dist/{src/commands → commands}/create.js +1 -5
  6. package/dist/{src/commands → commands}/deploy.js +3 -13
  7. package/dist/{src/commands → commands}/remove.js +1 -5
  8. package/dist/{src/commands → commands}/test.js +4 -5
  9. package/oclif.manifest.json +865 -2
  10. package/package.json +1 -1
  11. package/dist/package.json +0 -92
  12. package/dist/src/constants.d.ts +0 -3
  13. package/dist/src/constants.js +0 -7
  14. package/dist/src/fetch.d.ts +0 -2
  15. package/dist/src/fetch.js +0 -15
  16. /package/dist/{src/codegen → codegen}/schema.d.ts +0 -0
  17. /package/dist/{src/codegen → codegen}/schema.js +0 -0
  18. /package/dist/{src/codegen → codegen}/schema.test.d.ts +0 -0
  19. /package/dist/{src/codegen → codegen}/schema.test.js +0 -0
  20. /package/dist/{src/codegen → codegen}/template.d.ts +0 -0
  21. /package/dist/{src/codegen → codegen}/template.js +0 -0
  22. /package/dist/{src/codegen → codegen}/types/conversions.d.ts +0 -0
  23. /package/dist/{src/codegen → codegen}/types/conversions.js +0 -0
  24. /package/dist/{src/codegen → codegen}/types/index.d.ts +0 -0
  25. /package/dist/{src/codegen → codegen}/types/index.js +0 -0
  26. /package/dist/{src/codegen → codegen}/types/index.test.d.ts +0 -0
  27. /package/dist/{src/codegen → codegen}/types/index.test.js +0 -0
  28. /package/dist/{src/codegen → codegen}/typescript.d.ts +0 -0
  29. /package/dist/{src/codegen → codegen}/typescript.js +0 -0
  30. /package/dist/{src/codegen → codegen}/util.d.ts +0 -0
  31. /package/dist/{src/codegen → codegen}/util.js +0 -0
  32. /package/dist/{src/codegen → codegen}/util.test.d.ts +0 -0
  33. /package/dist/{src/codegen → codegen}/util.test.js +0 -0
  34. /package/dist/{src/command-helpers → command-helpers}/abi.d.ts +0 -0
  35. /package/dist/{src/command-helpers → command-helpers}/abi.test.d.ts +0 -0
  36. /package/dist/{src/command-helpers → command-helpers}/abi.test.js +0 -0
  37. /package/dist/{src/command-helpers → command-helpers}/auth.d.ts +0 -0
  38. /package/dist/{src/command-helpers → command-helpers}/auth.js +0 -0
  39. /package/dist/{src/command-helpers → command-helpers}/compiler.d.ts +0 -0
  40. /package/dist/{src/command-helpers → command-helpers}/compiler.test.d.ts +0 -0
  41. /package/dist/{src/command-helpers → command-helpers}/compiler.test.js +0 -0
  42. /package/dist/{src/command-helpers → command-helpers}/data-sources.d.ts +0 -0
  43. /package/dist/{src/command-helpers → command-helpers}/data-sources.js +0 -0
  44. /package/dist/{src/command-helpers → command-helpers}/fs.d.ts +0 -0
  45. /package/dist/{src/command-helpers → command-helpers}/fs.js +0 -0
  46. /package/dist/{src/command-helpers → command-helpers}/ipfs.d.ts +0 -0
  47. /package/dist/{src/command-helpers → command-helpers}/ipfs.js +0 -0
  48. /package/dist/{src/command-helpers → command-helpers}/jsonrpc.d.ts +0 -0
  49. /package/dist/{src/command-helpers → command-helpers}/jsonrpc.js +0 -0
  50. /package/dist/{src/command-helpers → command-helpers}/network.d.ts +0 -0
  51. /package/dist/{src/command-helpers → command-helpers}/network.js +0 -0
  52. /package/dist/{src/command-helpers → command-helpers}/network.test.d.ts +0 -0
  53. /package/dist/{src/command-helpers → command-helpers}/network.test.js +0 -0
  54. /package/dist/{src/command-helpers → command-helpers}/node.d.ts +0 -0
  55. /package/dist/{src/command-helpers → command-helpers}/scaffold.d.ts +0 -0
  56. /package/dist/{src/command-helpers → command-helpers}/scaffold.js +0 -0
  57. /package/dist/{src/command-helpers → command-helpers}/spinner.d.ts +0 -0
  58. /package/dist/{src/command-helpers → command-helpers}/spinner.js +0 -0
  59. /package/dist/{src/command-helpers → command-helpers}/studio.d.ts +0 -0
  60. /package/dist/{src/command-helpers → command-helpers}/studio.js +0 -0
  61. /package/dist/{src/command-helpers → command-helpers}/studio.test.d.ts +0 -0
  62. /package/dist/{src/command-helpers → command-helpers}/studio.test.js +0 -0
  63. /package/dist/{src/command-helpers → command-helpers}/subgraph.d.ts +0 -0
  64. /package/dist/{src/command-helpers → command-helpers}/subgraph.js +0 -0
  65. /package/dist/{src/command-helpers → command-helpers}/version.d.ts +0 -0
  66. /package/dist/{src/command-helpers → command-helpers}/version.js +0 -0
  67. /package/dist/{src/command-helpers → command-helpers}/version.test.d.ts +0 -0
  68. /package/dist/{src/command-helpers → command-helpers}/version.test.js +0 -0
  69. /package/dist/{src/commands → commands}/add.d.ts +0 -0
  70. /package/dist/{src/commands → commands}/add.js +0 -0
  71. /package/dist/{src/commands → commands}/auth.d.ts +0 -0
  72. /package/dist/{src/commands → commands}/auth.js +0 -0
  73. /package/dist/{src/commands → commands}/build.d.ts +0 -0
  74. /package/dist/{src/commands → commands}/build.js +0 -0
  75. /package/dist/{src/commands → commands}/clean.d.ts +0 -0
  76. /package/dist/{src/commands → commands}/clean.js +0 -0
  77. /package/dist/{src/commands → commands}/codegen.d.ts +0 -0
  78. /package/dist/{src/commands → commands}/codegen.js +0 -0
  79. /package/dist/{src/commands → commands}/create.d.ts +0 -0
  80. /package/dist/{src/commands → commands}/deploy.d.ts +0 -0
  81. /package/dist/{src/commands → commands}/init.d.ts +0 -0
  82. /package/dist/{src/commands → commands}/init.js +0 -0
  83. /package/dist/{src/commands → commands}/local.d.ts +0 -0
  84. /package/dist/{src/commands → commands}/local.js +0 -0
  85. /package/dist/{src/commands → commands}/remove.d.ts +0 -0
  86. /package/dist/{src/commands → commands}/test.d.ts +0 -0
  87. /package/dist/{src/compiler → compiler}/asc.d.ts +0 -0
  88. /package/dist/{src/compiler → compiler}/asc.js +0 -0
  89. /package/dist/{src/compiler → compiler}/index.d.ts +0 -0
  90. /package/dist/{src/compiler → compiler}/index.js +0 -0
  91. /package/dist/{src/debug.d.ts → debug.d.ts} +0 -0
  92. /package/dist/{src/debug.js → debug.js} +0 -0
  93. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  94. /package/dist/{src/index.js → index.js} +0 -0
  95. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_1.d.ts +0 -0
  96. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_1.js +0 -0
  97. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_2.d.ts +0 -0
  98. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_2.js +0 -0
  99. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_3.d.ts +0 -0
  100. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_3.js +0 -0
  101. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_4.d.ts +0 -0
  102. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_4.js +0 -0
  103. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_5.d.ts +0 -0
  104. /package/dist/{src/migrations → migrations}/mapping_api_version_0_0_5.js +0 -0
  105. /package/dist/{src/migrations → migrations}/spec_version_0_0_2.d.ts +0 -0
  106. /package/dist/{src/migrations → migrations}/spec_version_0_0_2.js +0 -0
  107. /package/dist/{src/migrations → migrations}/spec_version_0_0_3.d.ts +0 -0
  108. /package/dist/{src/migrations → migrations}/spec_version_0_0_3.js +0 -0
  109. /package/dist/{src/migrations → migrations}/util/load-manifest.d.ts +0 -0
  110. /package/dist/{src/migrations → migrations}/util/load-manifest.js +0 -0
  111. /package/dist/{src/migrations → migrations}/util/versions.d.ts +0 -0
  112. /package/dist/{src/migrations → migrations}/util/versions.js +0 -0
  113. /package/dist/{src/migrations.d.ts → migrations.d.ts} +0 -0
  114. /package/dist/{src/migrations.js → migrations.js} +0 -0
  115. /package/dist/{src/protocols → protocols}/arweave/scaffold/manifest.d.ts +0 -0
  116. /package/dist/{src/protocols → protocols}/arweave/scaffold/manifest.js +0 -0
  117. /package/dist/{src/protocols → protocols}/arweave/scaffold/mapping.d.ts +0 -0
  118. /package/dist/{src/protocols → protocols}/arweave/scaffold/mapping.js +0 -0
  119. /package/dist/{src/protocols → protocols}/arweave/subgraph.d.ts +0 -0
  120. /package/dist/{src/protocols → protocols}/arweave/subgraph.js +0 -0
  121. /package/dist/{src/protocols → protocols}/contract.d.ts +0 -0
  122. /package/dist/{src/protocols → protocols}/contract.js +0 -0
  123. /package/dist/{src/protocols → protocols}/cosmos/scaffold/manifest.d.ts +0 -0
  124. /package/dist/{src/protocols → protocols}/cosmos/scaffold/manifest.js +0 -0
  125. /package/dist/{src/protocols → protocols}/cosmos/scaffold/mapping.d.ts +0 -0
  126. /package/dist/{src/protocols → protocols}/cosmos/scaffold/mapping.js +0 -0
  127. /package/dist/{src/protocols → protocols}/cosmos/subgraph.d.ts +0 -0
  128. /package/dist/{src/protocols → protocols}/cosmos/subgraph.js +0 -0
  129. /package/dist/{src/protocols → protocols}/ethereum/abi.d.ts +0 -0
  130. /package/dist/{src/protocols → protocols}/ethereum/abi.js +0 -0
  131. /package/dist/{src/protocols → protocols}/ethereum/codegen/abi.d.ts +0 -0
  132. /package/dist/{src/protocols → protocols}/ethereum/codegen/abi.js +0 -0
  133. /package/dist/{src/protocols → protocols}/ethereum/codegen/abi.test.d.ts +0 -0
  134. /package/dist/{src/protocols → protocols}/ethereum/codegen/abi.test.js +0 -0
  135. /package/dist/{src/protocols → protocols}/ethereum/codegen/template.d.ts +0 -0
  136. /package/dist/{src/protocols → protocols}/ethereum/codegen/template.js +0 -0
  137. /package/dist/{src/protocols → protocols}/ethereum/contract.d.ts +0 -0
  138. /package/dist/{src/protocols → protocols}/ethereum/contract.js +0 -0
  139. /package/dist/{src/protocols → protocols}/ethereum/scaffold/manifest.d.ts +0 -0
  140. /package/dist/{src/protocols → protocols}/ethereum/scaffold/manifest.js +0 -0
  141. /package/dist/{src/protocols → protocols}/ethereum/scaffold/mapping.d.ts +0 -0
  142. /package/dist/{src/protocols → protocols}/ethereum/scaffold/mapping.js +0 -0
  143. /package/dist/{src/protocols → protocols}/ethereum/subgraph.d.ts +0 -0
  144. /package/dist/{src/protocols → protocols}/ethereum/subgraph.js +0 -0
  145. /package/dist/{src/protocols → protocols}/ethereum/type-generator.d.ts +0 -0
  146. /package/dist/{src/protocols → protocols}/ethereum/type-generator.js +0 -0
  147. /package/dist/{src/protocols → protocols}/file_template.d.ts +0 -0
  148. /package/dist/{src/protocols → protocols}/file_template.js +0 -0
  149. /package/dist/{src/protocols → protocols}/index.d.ts +0 -0
  150. /package/dist/{src/protocols → protocols}/index.js +0 -0
  151. /package/dist/{src/protocols → protocols}/near/contract.d.ts +0 -0
  152. /package/dist/{src/protocols → protocols}/near/contract.js +0 -0
  153. /package/dist/{src/protocols → protocols}/near/scaffold/manifest.d.ts +0 -0
  154. /package/dist/{src/protocols → protocols}/near/scaffold/manifest.js +0 -0
  155. /package/dist/{src/protocols → protocols}/near/scaffold/mapping.d.ts +0 -0
  156. /package/dist/{src/protocols → protocols}/near/scaffold/mapping.js +0 -0
  157. /package/dist/{src/protocols → protocols}/near/subgraph.d.ts +0 -0
  158. /package/dist/{src/protocols → protocols}/near/subgraph.js +0 -0
  159. /package/dist/{src/protocols → protocols}/subgraph.d.ts +0 -0
  160. /package/dist/{src/protocols → protocols}/subgraph.js +0 -0
  161. /package/dist/{src/protocols → protocols}/substreams/scaffold/manifest.d.ts +0 -0
  162. /package/dist/{src/protocols → protocols}/substreams/scaffold/manifest.js +0 -0
  163. /package/dist/{src/protocols → protocols}/substreams/subgraph.d.ts +0 -0
  164. /package/dist/{src/protocols → protocols}/substreams/subgraph.js +0 -0
  165. /package/dist/{src/scaffold → scaffold}/cosmos.test.d.ts +0 -0
  166. /package/dist/{src/scaffold → scaffold}/cosmos.test.js +0 -0
  167. /package/dist/{src/scaffold → scaffold}/ethereum.test.d.ts +0 -0
  168. /package/dist/{src/scaffold → scaffold}/ethereum.test.js +0 -0
  169. /package/dist/{src/scaffold → scaffold}/index.d.ts +0 -0
  170. /package/dist/{src/scaffold → scaffold}/index.js +0 -0
  171. /package/dist/{src/scaffold → scaffold}/mapping.d.ts +0 -0
  172. /package/dist/{src/scaffold → scaffold}/mapping.js +0 -0
  173. /package/dist/{src/scaffold → scaffold}/near.test.d.ts +0 -0
  174. /package/dist/{src/scaffold → scaffold}/near.test.js +0 -0
  175. /package/dist/{src/scaffold → scaffold}/schema.d.ts +0 -0
  176. /package/dist/{src/scaffold → scaffold}/schema.js +0 -0
  177. /package/dist/{src/scaffold → scaffold}/tests.d.ts +0 -0
  178. /package/dist/{src/scaffold → scaffold}/tests.js +0 -0
  179. /package/dist/{src/schema.d.ts → schema.d.ts} +0 -0
  180. /package/dist/{src/schema.js → schema.js} +0 -0
  181. /package/dist/{src/subgraph.d.ts → subgraph.d.ts} +0 -0
  182. /package/dist/{src/subgraph.js → subgraph.js} +0 -0
  183. /package/dist/{src/type-generator.d.ts → type-generator.d.ts} +0 -0
  184. /package/dist/{src/type-generator.js → type-generator.js} +0 -0
  185. /package/dist/{src/validation → validation}/contract.d.ts +0 -0
  186. /package/dist/{src/validation → validation}/contract.js +0 -0
  187. /package/dist/{src/validation → validation}/index.d.ts +0 -0
  188. /package/dist/{src/validation → validation}/index.js +0 -0
  189. /package/dist/{src/validation → validation}/manifest.d.ts +0 -0
  190. /package/dist/{src/validation → validation}/manifest.js +0 -0
  191. /package/dist/{src/validation → validation}/schema.d.ts +0 -0
  192. /package/dist/{src/validation → validation}/schema.js +0 -0
  193. /package/dist/{src/validation → validation}/schema.test.d.ts +0 -0
  194. /package/dist/{src/validation → validation}/schema.test.js +0 -0
  195. /package/dist/{src/version.d.ts → version.d.ts} +0 -0
  196. /package/dist/{src/version.js → version.js} +0 -0
  197. /package/dist/{src/watcher.d.ts → watcher.d.ts} +0 -0
  198. /package/dist/{src/watcher.js → watcher.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.59.0-alpha-20230928172030-9e0d14a",
3
+ "version": "0.59.0",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {
package/dist/package.json DELETED
@@ -1,92 +0,0 @@
1
- {
2
- "name": "@graphprotocol/graph-cli",
3
- "version": "0.59.0-alpha-20230928172030-9e0d14a",
4
- "description": "CLI for building for and deploying to The Graph",
5
- "license": "(Apache-2.0 OR MIT)",
6
- "engines": {
7
- "node": ">=14"
8
- },
9
- "bin": {
10
- "graph": "bin/run"
11
- },
12
- "main": "dist/index.js",
13
- "files": [
14
- "CHANGELOG.md",
15
- "bin",
16
- "dist",
17
- "oclif.manifest.json",
18
- "README.md",
19
- "!dist/*.tar.gz"
20
- ],
21
- "scripts": {
22
- "build": "tsc -b tsconfig.build.json && oclif manifest && oclif readme && copyfiles -u 1 src/**/*.graphql dist/",
23
- "oclif:pack": "npm pack && pnpm oclif pack tarballs --no-xz && node scripts/rename-tarballs.mjs",
24
- "test": "jest --verbose",
25
- "test:add": "jest tests/cli/add.test.ts --verbose",
26
- "test:init": "jest tests/cli/init.test.ts --verbose",
27
- "test:validation": "jest tests/cli/validation.test.ts --verbose",
28
- "type-check": "tsc --noEmit"
29
- },
30
- "dependencies": {
31
- "@float-capital/float-subgraph-uncrashable": "^0.0.0-alpha.4",
32
- "@oclif/core": "2.8.6",
33
- "@oclif/plugin-autocomplete": "^2.3.6",
34
- "@oclif/plugin-not-found": "^2.4.0",
35
- "@whatwg-node/fetch": "^0.8.4",
36
- "assemblyscript": "0.19.23",
37
- "binary-install-raw": "0.0.13",
38
- "chalk": "3.0.0",
39
- "chokidar": "3.5.3",
40
- "debug": "4.3.4",
41
- "docker-compose": "0.23.19",
42
- "dockerode": "2.5.8",
43
- "fs-extra": "9.1.0",
44
- "glob": "9.3.5",
45
- "gluegun": "5.1.2",
46
- "graphql": "15.5.0",
47
- "immutable": "4.2.1",
48
- "ipfs-http-client": "55.0.0",
49
- "jayson": "4.0.0",
50
- "js-yaml": "3.14.1",
51
- "prettier": "1.19.1",
52
- "request": "2.88.2",
53
- "semver": "7.4.0",
54
- "sync-request": "6.1.0",
55
- "tmp-promise": "3.0.3",
56
- "web3-eth-abi": "1.7.0",
57
- "which": "2.0.2",
58
- "yaml": "1.10.2"
59
- },
60
- "devDependencies": {
61
- "@types/debug": "^4.1.7",
62
- "@types/fs-extra": "^9.0.13",
63
- "@types/jest": "^29.0.0",
64
- "@types/js-yaml": "^3.12.7",
65
- "@types/semver": "^7.3.13",
66
- "@types/which": "^2.0.1",
67
- "copyfiles": "^2.4.1",
68
- "jest": "29.7.0",
69
- "oclif": "3.8.1",
70
- "spawn-command": "0.0.2-1",
71
- "strip-ansi": "6.0.1",
72
- "tern": "0.24.3",
73
- "typescript": "^5.0.0"
74
- },
75
- "publishConfig": {
76
- "access": "public"
77
- },
78
- "oclif": {
79
- "bin": "graph",
80
- "commands": "./dist/commands",
81
- "additionalHelpFlags": [
82
- "-h"
83
- ],
84
- "additionalVersionFlags": [
85
- "-v"
86
- ],
87
- "plugins": [
88
- "@oclif/plugin-not-found",
89
- "@oclif/plugin-autocomplete"
90
- ]
91
- }
92
- }
@@ -1,3 +0,0 @@
1
- export declare const GRAPH_CLI_SHARED_HEADERS: {
2
- 'User-Agent': `@graphprotocol/graph-cli@${string}`;
3
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GRAPH_CLI_SHARED_HEADERS = void 0;
4
- const package_json_1 = require("../package.json");
5
- exports.GRAPH_CLI_SHARED_HEADERS = {
6
- 'User-Agent': `@graphprotocol/graph-cli@${package_json_1.version}`,
7
- };
@@ -1,2 +0,0 @@
1
- import { fetch } from '@whatwg-node/fetch';
2
- export default function fetchWrapper(input: Parameters<typeof fetch>[0], init?: Parameters<typeof fetch>[1]): Promise<Response>;
package/dist/src/fetch.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // eslint-disable-next-line no-restricted-imports
4
- const fetch_1 = require("@whatwg-node/fetch");
5
- const constants_1 = require("./constants");
6
- function fetchWrapper(input, init) {
7
- return (0, fetch_1.fetch)(input, {
8
- ...init,
9
- headers: {
10
- ...init?.headers,
11
- ...constants_1.GRAPH_CLI_SHARED_HEADERS,
12
- },
13
- });
14
- }
15
- exports.default = fetchWrapper;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes