Skip to content

Commit 25c9ae7

Browse files
authored
Merge pull request #18 from graphprotocol/mde/update-readme
chore: update README to latest changes
2 parents 97459ba + 2901901 commit 25c9ae7

File tree

1 file changed

+62
-16
lines changed

1 file changed

+62
-16
lines changed

README.md

Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,95 @@ The Subgraph Oracle verifies the availability of the subgraph files and does oth
33

44
```
55
USAGE:
6-
availability-oracle [FLAGS] [OPTIONS] --rewards-manager-contract <rewards-manager-contract> \
7-
--url <url> --ipfs <ipfs> --signing-key <signing-key> --subgraph <subgraph>
6+
availability-oracle [FLAGS] [OPTIONS] --ipfs <ipfs> --signing-key <signing-key> --subgraph <subgraph> --url <url>
87
98
FLAGS:
109
--dry-run log the results but not send a transaction to the rewards manager
1110
-h, --help Prints help information
1211
-V, --version Prints version information
1312
1413
OPTIONS:
15-
--rewards-manager-contract <rewards-manager-contract>
16-
Address of the Graph Protocol RewardsManager contract [env: REWARDS_MANAGER_CONTRACT=]
17-
--url <url>
18-
RPC URL for EVM-compatible netwrok, must be a valid URL [env: RPC_URL=]
1914
--grace-period <grace-period>
20-
Grace period, in seconds from subgraph creation, for which subgraphs will not be checked [env:
21-
ORACLE_GRACE_PERIOD=] [default: 0]
15+
Grace period, in seconds from subgraph creation, for which subgraphs will not be checked [env: ORACLE_GRACE_PERIOD=] [default: 0]
16+
2217
--ipfs <ipfs>
2318
IPFS endpoint with access to the subgraph files [env: ORACLE_IPFS=]
2419
2520
--ipfs-concurrency <ipfs-concurrency>
2621
Maximum concurrent calls to IPFS [env: ORACLE_IPFS_CONCURRENCY=] [default: 100]
2722
2823
--ipfs-timeout <ipfs-timeout>
29-
IPFS timeout after which a file will be considered unavailable [env: ORACLE_IPFS_TIMEOUT_SECS=] [default:
30-
30]
31-
--metrics-port <metrics-port> [env: ORACLE_METRICS_PORT=] [default: 8090]
24+
IPFS timeout after which a file will be considered unavailable [env: ORACLE_IPFS_TIMEOUT_SECS=] [default: 30]
25+
26+
--metrics-port <metrics-port>
27+
[env: ORACLE_METRICS_PORT=] [default: 8090]
28+
3229
--min-signal <min-signal>
3330
Minimum signal for a subgraph to be checked [env: ORACLE_MIN_SIGNAL=] [default: 100]
3431
32+
--oracle-index <oracle-index>
33+
Assigned index for the oracle, to be used when voting on SubgraphAvailabilityManager [env: ORACLE_INDEX=]
34+
3535
--period <period>
36-
How often the oracle should check the subgraphs. With the default value of 0, the oracle will run once and
37-
terminate [env: ORACLE_PERIOD_SECS=] [default: 0]
36+
How often the oracle should check the subgraphs. With the default value of 0, the oracle will run once and terminate [env: ORACLE_PERIOD_SECS=] [default: 0]
37+
38+
--rewards-manager-contract <rewards-manager-contract>
39+
The address of the rewards manager contract [env: REWARDS_MANAGER_CONTRACT=]
40+
3841
--signing-key <signing-key>
3942
The secret key of the oracle for signing transactions [env: ORACLE_SIGNING_KEY=]
4043
41-
--subgraph <subgraph> Graphql endpoint to the network subgraph [env: ORACLE_SUBGRAPH=]
44+
--subgraph <subgraph>
45+
Graphql endpoint to the network subgraph [env: ORACLE_SUBGRAPH=]
46+
47+
--subgraph-availability-manager-contract <subgraph-availability-manager-contract>
48+
The address of the subgraph availability manager contract [env: SUBGRAPH_AVAILABILITY_MANAGER_CONTRACT=]
49+
50+
--supported-data-source-kinds <supported-data-source-kinds>...
51+
a comma separated list of the supported data source kinds [env: SUPPORTED_DATA_SOURCE_KINDS=] [default: ethereum,ethereum/contract,file/ipfs,substreams,file/arweave]
52+
4253
-s, --supported-networks <supported-networks>...
4354
a comma separated list of the supported network ids [env: SUPPORTED_NETWORKS=] [default: mainnet]
4455
56+
--url <url>
57+
RPC url for the network [env: RPC_URL=]
58+
4559
```
4660

47-
Example command to testing with a dry run:
61+
## Examples
62+
63+
### Example command to testing with a dry run:
4864

4965
```
50-
cargo run -p availability-oracle -- --ipfs https://api.thegraph.com/ipfs --subgraph https://gateway.thegraph.com/network --dry-run --min-signal 10000
66+
cargo run -p availability-oracle -- \
67+
--ipfs https://api.thegraph.com/ipfs \
68+
--subgraph <network-subgraph-url> \
69+
--min-signal 10000 \
70+
--url <url> \
71+
--dry-run
72+
```
73+
74+
### Example command to run `SubgraphAvailabilityManager` configuration:
75+
76+
```
77+
cargo run -p availability-oracle -- \
78+
--ipfs https://api.thegraph.com/ipfs \
79+
--subgraph <network-subgraph-url> \
80+
--min-signal 10000 \
81+
--url <url> \
82+
--subgraph-availability-manager-contract <address> \
83+
--oracle-index <index> \
84+
--signing-key <signing-key>
85+
```
86+
87+
### Example command to run `RewardsManager` configuration:
88+
5189
```
90+
cargo run -p availability-oracle -- \
91+
--ipfs https://api.thegraph.com/ipfs \
92+
--subgraph <network-subgraph-url> \
93+
--min-signal 10000 \
94+
--url <url> \
95+
--rewards-manager-contract <address> \
96+
--signing-key <signing-key>
97+
```

0 commit comments

Comments
 (0)