Skip to content

Commit fbe2b99

Browse files
Ran prettier
1 parent 12cd35b commit fbe2b99

2 files changed

Lines changed: 26 additions & 32 deletions

File tree

website/src/pages/en/subgraphs/guides/_meta.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ export default {
99
enums: '',
1010
'secure-api-keys-nextjs': '',
1111
polymarket: '',
12+
agent0: '',
1213
'contract-analyzer': '',
1314
}

website/src/pages/en/subgraphs/guides/agent0.mdx

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Built and maintained by [Agent0](https://sdk.ag0.xyz/docs) in partnership with T
1212
## Supported networks
1313

1414
| Network | Chain ID | Status | Endpoint | Explorer |
15-
|---------|----------|--------|----------|----------|
15+
| --- | --- | --- | --- | --- |
1616
| **Ethereum Mainnet** | 1 | ✅ Deployed | [Endpoint](https://gateway.thegraph.com/api/subgraphs/id/FV6RR6y13rsnCxBAicKuQEwDp8ioEGiNaWaZUmvr1F8k) | [Explorer](https://thegraph.com/explorer/subgraphs/FV6RR6y13rsnCxBAicKuQEwDp8ioEGiNaWaZUmvr1F8k?view=Query&chain=arbitrum-one) |
1717
| **Base Mainnet** | 8453 | ✅ Deployed | [Endpoint](https://gateway.thegraph.com/api/subgraphs/id/43s9hQRurMGjuYnC1r2ZwS6xSQktbFyXMPMqGKUFJojb) | [Explorer](https://thegraph.com/explorer/subgraphs/43s9hQRurMGjuYnC1r2ZwS6xSQktbFyXMPMqGKUFJojb?view=Query&chain=arbitrum-one) |
1818
| **BSC Mainnet** | 56 | ✅ Deployed | [Endpoint](https://gateway.thegraph.com/api/subgraphs/id/D6aWqowLkWqBgcqmpNKXuNikPkob24ADXCciiP8Hvn1K) | [Explorer](https://thegraph.com/explorer/subgraphs/D6aWqowLkWqBgcqmpNKXuNikPkob24ADXCciiP8Hvn1K?view=Query&chain=arbitrum-one) |
1919
| **Polygon Mainnet** | 137 | ✅ Deployed | [Endpoint](https://gateway.thegraph.com/api/subgraphs/id/9q16PZv1JudvtnCAf44cBoxg82yK9SSsFvrjCY9xnneF) | [Explorer](https://thegraph.com/explorer/subgraphs/9q16PZv1JudvtnCAf44cBoxg82yK9SSsFvrjCY9xnneF?view=Query&chain=arbitrum-one) |
2020
| **Monad** | 143 | ✅ Deployed | [Endpoint](https://thegraph.com/explorer/subgraphs/4tvLxkczjhSaMiqRrCV1EyheYHyJ7Ad8jub1UUyukBjg?view=Query&chain=arbitrum-one) | [Explorer](https://thegraph.com/explorer/subgraphs/4tvLxkczjhSaMiqRrCV1EyheYHyJ7Ad8jub1UUyukBjg?view=Query&chain=arbitrum-one) |
21-
| **Ethereum Sepolia** | 11155111 | ✅ Deployed | [Endpoint](https://gateway.thegraph.com/api/subgraphs/id/6wQRC7geo9XYAhckfmfo8kbMRLeWU8KQd3XsJqFKmZLT) | [Explorer](https://thegraph.com/explorer/subgraphs/6wQRC7geo9XYAhckfmfo8kbMRLeWU8KQd3XsJqFKmZLT?view=Query&chain=arbitrum-one) |
21+
| **Ethereum Sepolia** | 11155111 | ✅ Deployed | [Endpoint](https://gateway.thegraph.com/api/subgraphs/id/6wQRC7geo9XYAhckfmfo8kbMRLeWU8KQd3XsJqFKmZLT) | [Explorer](https://thegraph.com/explorer/subgraphs/6wQRC7geo9XYAhckfmfo8kbMRLeWU8KQd3XsJqFKmZLT?view=Query&chain=arbitrum-one) |
2222
| **Base Sepolia** | 84532 | ✅ Deployed | [Endpoint](https://gateway.thegraph.com/api/subgraphs/id/4yYAvQLFjBhBtdRCY7eUWo181VNoTSLLFd5M7FXQAi6u) | [Explorer](https://thegraph.com/explorer/subgraphs/4yYAvQLFjBhBtdRCY7eUWo181VNoTSLLFd5M7FXQAi6u?view=Query&chain=arbitrum-one) |
2323
| **BSC Chapel** | 97 | ✅ Deployed | [Endpoint](https://gateway.thegraph.com/api/subgraphs/id/BTjind17gmRZ6YhT9peaCM13SvWuqztsmqyfjpntbg3Z) | [Explorer](https://thegraph.com/explorer/subgraphs/BTjind17gmRZ6YhT9peaCM13SvWuqztsmqyfjpntbg3Z?view=Query&chain=arbitrum-one) |
2424
| **Monad Testnet** | 10143 | ✅ Deployed | [Endpoint](https://gateway.thegraph.com/api/subgraphs/id/8iiMH9sj471jbp7AwUuuyBXvPJqCEsobuHBeUEKQSxhU) | [Explorer](https://thegraph.com/explorer/subgraphs/8iiMH9sj471jbp7AwUuuyBXvPJqCEsobuHBeUEKQSxhU?view=Query&chain=arbitrum-one) |
@@ -77,22 +77,19 @@ curl -X POST \
7777
#### TypeScript
7878

7979
```typescript
80-
const res = await fetch(
81-
`https://gateway.thegraph.com/api/${API_KEY}/subgraphs/id/${SUBGRAPH_ID}`,
82-
{
83-
method: "POST",
84-
headers: { "Content-Type": "application/json" },
85-
body: JSON.stringify({
86-
query: `{
80+
const res = await fetch(`https://gateway.thegraph.com/api/${API_KEY}/subgraphs/id/${SUBGRAPH_ID}`, {
81+
method: 'POST',
82+
headers: { 'Content-Type': 'application/json' },
83+
body: JSON.stringify({
84+
query: `{
8785
agents(first: 5) {
8886
id
8987
registrationFile { name description mcpEndpoint }
9088
}
9189
}`,
92-
}),
93-
}
94-
);
95-
const { data } = await res.json();
90+
}),
91+
})
92+
const { data } = await res.json()
9693
```
9794

9895
#### Python
@@ -118,10 +115,7 @@ res = requests.post(url, json={"query": query}).json()
118115

119116
```graphql
120117
query GetMCPAgents {
121-
agentRegistrationFiles(
122-
where: { mcpEndpoint_not: null, active: true }
123-
first: 100
124-
) {
118+
agentRegistrationFiles(where: { mcpEndpoint_not: null, active: true }, first: 100) {
125119
agentId
126120
name
127121
description
@@ -137,7 +131,8 @@ query GetMCPAgents {
137131

138132
```graphql
139133
query GetAgent {
140-
agent(id: $id) { # example: "8453:0"
134+
agent(id: $id) {
135+
# example: "8453:0"
141136
id
142137
chainId
143138
agentId
@@ -161,7 +156,9 @@ query GetAgent {
161156
tag1
162157
tag2
163158
clientAddress
164-
feedbackFile { text }
159+
feedbackFile {
160+
text
161+
}
165162
}
166163
validations(orderBy: createdAt, orderDirection: desc) {
167164
validatorAddress
@@ -179,10 +176,7 @@ The agent `id` is formatted as `chainId:agentId` (e.g. `8453:1247` for agent 124
179176

180177
```graphql
181178
query AgentsByTrust($trustModel: String!) {
182-
agentRegistrationFiles(
183-
where: { supportedTrusts_contains: [$trustModel], active: true }
184-
first: 50
185-
) {
179+
agentRegistrationFiles(where: { supportedTrusts_contains: [$trustModel], active: true }, first: 50) {
186180
agentId
187181
name
188182
description
@@ -197,20 +191,19 @@ Common values: `"reputation"`, `"cryptoeconomic"`, `"tee-attestation"`.
197191

198192
```graphql
199193
query TopFeedback {
200-
feedbacks(
201-
where: { isRevoked: false, value_gte: 1000 }
202-
first: 50
203-
orderBy: value
204-
orderDirection: desc
205-
) {
194+
feedbacks(where: { isRevoked: false, value_gte: 1000 }, first: 50, orderBy: value, orderDirection: desc) {
206195
value
207196
tag1
208197
tag2
209198
agent {
210199
id
211-
registrationFile { name }
200+
registrationFile {
201+
name
202+
}
203+
}
204+
feedbackFile {
205+
text
212206
}
213-
feedbackFile { text }
214207
}
215208
}
216209
```
@@ -234,4 +227,4 @@ Full schema: [`schema.graphql`](https://github.com/agent0lab/subgraph/blob/main/
234227
- **Agent0 SDK:** TypeScript and Python SDK for ERC-8004 registration, discovery, and reputation: [sdk.ag0.xyz/docs](https://sdk.ag0.xyz/docs)
235228
- **Subgraph repo:** Open-source mappings, schema, and multi-chain deployment config: [github.com/agent0lab/subgraph](https://github.com/agent0lab/subgraph)
236229
- **ERC-8004 spec:** The Trustless Agents standard: [eips.ethereum.org/EIPS/eip-8004](https://eips.ethereum.org/EIPS/eip-8004)
237-
- **Graph Explorer:** Browse all Agent0 Subgraphs: [thegraph.com/explorer?search=agent0](https://thegraph.com/explorer?search=agent0)
230+
- **Graph Explorer:** Browse all Agent0 Subgraphs: [thegraph.com/explorer?search=agent0](https://thegraph.com/explorer?search=agent0)

0 commit comments

Comments
 (0)