@graphprotocol/graph-cli 0.25.2 → 0.27.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.
- package/examples/basic-event-handlers/node_modules/@graphprotocol/graph-ts/chain/ethereum.ts +1 -1
- package/examples/basic-event-handlers/node_modules/@graphprotocol/graph-ts/package.json +1 -1
- package/examples/basic-event-handlers/node_modules/chalk/node_modules/supports-color/index.js +50 -0
- package/examples/basic-event-handlers/node_modules/chalk/node_modules/supports-color/license +21 -0
- package/examples/basic-event-handlers/node_modules/chalk/node_modules/supports-color/package.json +49 -0
- package/examples/basic-event-handlers/node_modules/chalk/node_modules/supports-color/readme.md +36 -0
- package/examples/basic-event-handlers/node_modules/cliui/node_modules/ansi-regex/index.js +10 -0
- package/examples/basic-event-handlers/node_modules/cliui/node_modules/ansi-regex/license +9 -0
- package/examples/basic-event-handlers/node_modules/cliui/node_modules/ansi-regex/package.json +53 -0
- package/examples/basic-event-handlers/node_modules/cliui/node_modules/ansi-regex/readme.md +46 -0
- package/examples/basic-event-handlers/node_modules/cliui/node_modules/strip-ansi/index.js +4 -0
- package/examples/basic-event-handlers/node_modules/cliui/node_modules/strip-ansi/license +9 -0
- package/examples/basic-event-handlers/node_modules/cliui/node_modules/strip-ansi/package.json +52 -0
- package/examples/basic-event-handlers/node_modules/cliui/node_modules/strip-ansi/readme.md +39 -0
- package/examples/basic-event-handlers/node_modules/keccak/build/Makefile +342 -0
- package/examples/basic-event-handlers/node_modules/keccak/build/Release/.deps/Release/obj.target/keccak/src/addon.o.d.raw +27 -0
- package/examples/basic-event-handlers/node_modules/keccak/build/binding.Makefile +6 -0
- package/examples/basic-event-handlers/node_modules/keccak/build/config.gypi +207 -0
- package/examples/basic-event-handlers/node_modules/keccak/build/gyp-mac-tool +615 -0
- package/examples/basic-event-handlers/node_modules/keccak/build/keccak.target.mk +209 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/.coveralls.yml +1 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/.eslintrc +14 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/.travis.yml +20 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/CHANGELOG.md +395 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/LICENSE +19 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/Makefile +58 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/README.md +368 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/karma.conf.js +70 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/node.js +1 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/package.json +43 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/src/browser.js +195 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/src/debug.js +225 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/src/index.js +10 -0
- package/examples/basic-event-handlers/node_modules/mocha/node_modules/debug/src/node.js +186 -0
- package/examples/basic-event-handlers/node_modules/rimraf/node_modules/glob/LICENSE +15 -0
- package/examples/basic-event-handlers/node_modules/rimraf/node_modules/glob/README.md +368 -0
- package/examples/basic-event-handlers/node_modules/rimraf/node_modules/glob/changelog.md +67 -0
- package/examples/basic-event-handlers/node_modules/rimraf/node_modules/glob/common.js +240 -0
- package/examples/basic-event-handlers/node_modules/rimraf/node_modules/glob/glob.js +790 -0
- package/examples/basic-event-handlers/node_modules/rimraf/node_modules/glob/package.json +43 -0
- package/examples/basic-event-handlers/node_modules/rimraf/node_modules/glob/sync.js +486 -0
- package/examples/basic-event-handlers/node_modules/string-width/node_modules/ansi-regex/index.js +10 -0
- package/examples/basic-event-handlers/node_modules/string-width/node_modules/ansi-regex/license +9 -0
- package/examples/basic-event-handlers/node_modules/string-width/node_modules/ansi-regex/package.json +53 -0
- package/examples/basic-event-handlers/node_modules/string-width/node_modules/ansi-regex/readme.md +46 -0
- package/examples/basic-event-handlers/node_modules/string-width/node_modules/strip-ansi/index.js +4 -0
- package/examples/basic-event-handlers/node_modules/string-width/node_modules/strip-ansi/license +9 -0
- package/examples/basic-event-handlers/node_modules/string-width/node_modules/strip-ansi/package.json +52 -0
- package/examples/basic-event-handlers/node_modules/string-width/node_modules/strip-ansi/readme.md +39 -0
- package/examples/basic-event-handlers/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/examples/basic-event-handlers/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license +21 -0
- package/examples/basic-event-handlers/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json +45 -0
- package/examples/basic-event-handlers/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/examples/basic-event-handlers/node_modules/wrap-ansi/node_modules/string-width/index.js +37 -0
- package/examples/basic-event-handlers/node_modules/wrap-ansi/node_modules/string-width/license +21 -0
- package/examples/basic-event-handlers/node_modules/wrap-ansi/node_modules/string-width/package.json +56 -0
- package/examples/basic-event-handlers/node_modules/wrap-ansi/node_modules/string-width/readme.md +42 -0
- package/examples/basic-event-handlers/package.json +4 -4
- package/examples/basic-event-handlers/yarn.lock +8 -8
- package/package.json +27 -24
- package/src/codegen/schema.js +12 -9
- package/src/codegen/schema.test.js +368 -0
- package/src/codegen/typescript.js +7 -11
- package/src/commands/deploy.js +3 -1
- package/src/commands/init.js +2 -0
- package/src/commands/test.js +82 -59
- package/src/protocols/ethereum/codegen/abi.js +72 -2
- package/src/protocols/ethereum/manifest.graphql +92 -0
- package/src/protocols/index.js +17 -7
- package/src/protocols/near/manifest.graphql +57 -0
- package/src/subgraph.js +18 -13
- package/src/validation/manifest.js +12 -8
- package/tests/cli/validation/example-values-found.stderr +2 -2
- package/tests/cli/validation/invalid-manifest/subgraph.yaml +2 -1
- package/tests/cli/validation/invalid-manifest-cannot-infer-protocol/subgraph.yaml +12 -0
- package/tests/cli/validation/invalid-manifest-cannot-infer-protocol.stderr +5 -0
- package/tests/cli/validation/invalid-manifest.stderr +0 -3
- package/tests/cli/validation.test.js +8 -0
- package/examples/basic-event-handlers/node_modules/mocha/lib/reporters/base.js.orig +0 -498
- package/examples/basic-event-handlers/node_modules/node-fetch/lib/index.js +0 -1416
- package/manifest-schema.graphql +0 -122
package/manifest-schema.graphql
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
scalar String
|
|
2
|
-
scalar File
|
|
3
|
-
scalar BigInt
|
|
4
|
-
|
|
5
|
-
type Schema {
|
|
6
|
-
file: File!
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
union DataSource =
|
|
10
|
-
EthereumContractDataSource |
|
|
11
|
-
NearContractDataSource
|
|
12
|
-
|
|
13
|
-
union DataSourceTemplate = EthereumContractDataSourceTemplate
|
|
14
|
-
|
|
15
|
-
type EthereumContractDataSource {
|
|
16
|
-
kind: String!
|
|
17
|
-
name: String!
|
|
18
|
-
network: String
|
|
19
|
-
source: EthereumContractSource!
|
|
20
|
-
mapping: EthereumContractMapping!
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
type NearContractDataSource {
|
|
24
|
-
kind: String!
|
|
25
|
-
name: String!
|
|
26
|
-
network: String
|
|
27
|
-
source: NearContractSource!
|
|
28
|
-
mapping: NearContractMapping!
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type EthereumContractSource {
|
|
32
|
-
address: String
|
|
33
|
-
abi: String!
|
|
34
|
-
startBlock: BigInt
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
type NearContractSource {
|
|
38
|
-
account: String
|
|
39
|
-
startBlock: BigInt
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
type EthereumContractMapping {
|
|
43
|
-
kind: String
|
|
44
|
-
apiVersion: String!
|
|
45
|
-
language: String!
|
|
46
|
-
file: File!
|
|
47
|
-
entities: [String!]!
|
|
48
|
-
abis: [EthereumContractAbi!]!
|
|
49
|
-
blockHandlers: [EthereumBlockHandler!]
|
|
50
|
-
callHandlers: [EthereumCallHandler!]
|
|
51
|
-
eventHandlers: [EthereumContractEventHandler!]
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
type NearContractMapping {
|
|
55
|
-
apiVersion: String!
|
|
56
|
-
language: String!
|
|
57
|
-
file: File!
|
|
58
|
-
entities: [String!]!
|
|
59
|
-
blockHandlers: [NearBlockHandler!]
|
|
60
|
-
receiptHandlers: [NearReceiptHandler!]
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
type EthereumContractAbi {
|
|
64
|
-
name: String!
|
|
65
|
-
file: File!
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
type EthereumBlockHandler {
|
|
69
|
-
handler: String!
|
|
70
|
-
filter: EthereumBlockFilter
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
type EthereumBlockFilter {
|
|
74
|
-
kind: String!
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
type NearBlockHandler {
|
|
78
|
-
handler: String!
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
type EthereumCallHandler {
|
|
82
|
-
function: String!
|
|
83
|
-
handler: String!
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
type NearReceiptHandler {
|
|
87
|
-
handler: String!
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
type EthereumContractEventHandler {
|
|
91
|
-
event: String!
|
|
92
|
-
topic0: String
|
|
93
|
-
handler: String!
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
type Graft {
|
|
97
|
-
base: String!
|
|
98
|
-
block: BigInt!
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
type SubgraphManifest {
|
|
102
|
-
specVersion: String!
|
|
103
|
-
features: [String!]
|
|
104
|
-
schema: Schema!
|
|
105
|
-
description: String
|
|
106
|
-
repository: String
|
|
107
|
-
graft: Graft
|
|
108
|
-
dataSources: [DataSource!]!
|
|
109
|
-
templates: [DataSourceTemplate!]
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
type EthereumContractDataSourceTemplate {
|
|
113
|
-
kind: String!
|
|
114
|
-
name: String!
|
|
115
|
-
network: String
|
|
116
|
-
source: EthereumContractSourceTemplate!
|
|
117
|
-
mapping: EthereumContractMapping!
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
type EthereumContractSourceTemplate {
|
|
121
|
-
abi: String!
|
|
122
|
-
}
|