-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteps.txt
46 lines (38 loc) · 1.59 KB
/
steps.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
deploy contract
[init]
graph init --from-contract 0x277Ae3A3d5c88563263163790a1baFDDd304a0e9 --network mainnet --abi abis/simpleStorage.json simpleStorage/First --start-block 1292313
✔ Protocol · ethereum
✔ Product for which to initialize · hosted-service
✔ Subgraph name · simpleStorage/First
✔ Directory to create the subgraph in · subgraph/simpeStorage
? Ethereum network …
✔ Ethereum network · mainnet
✔ Contract address · 0x277Ae3A3d5c88563263163790a1baFDDd304a0e9
✖ Failed to fetch ABI from Etherscan: connect ETIMEDOUT 199.59.148.20:443
✔ ABI file (path) · abis/simpleStorage.json
✔ Start Block · 1292313
✔ Contract Name · SimpleStorage
✔ Index contract events as entities (Y/n) · true
Generate subgraph
Write subgraph to directory
✔ Create subgraph scaffold
✔ Initialize networks config
✔ Initialize subgraph repository
✔ Install dependencies with yarn
✔ Generate ABI and schema types with yarn codegen
Add another contract? (y/n):
Subgraph simpleStorage/First created in First
[build the subgraph]
cd subgraph/simpeStorage
graph codegen && graph build
[registe]
registe
graph create simpleStore/First --node mxc-graph-node.mxc.com:8020
if want remove
graph remove simpleStore/First --node mxc-graph-node.mxc.com:8020
[deploy]
graph deploy simpleStore/First --ipfs mxc-graph-node.mxc.com:5001 --node mxc-graph-node.mxc.com:8020
Build completed: QmVDeMcPt7WP2Z2a5B4Md1NrEtMSSwQsgNsAFxEZyD4DAE
Deployed to mxc-graph-node.mxc.com/subgraphs/name/simpleStore/First/graphql
Subgraph endpoints:
Queries (HTTP): mxc-graph-node.mxc.com/subgraphs/name/simpleStore/First