forked from agent0lab/subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
128 lines (123 loc) · 4.09 KB
/
subgraph.yaml
File metadata and controls
128 lines (123 loc) · 4.09 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
# Identity Registry
- kind: ethereum
name: IdentityRegistry
network: sepolia
source:
address: "0x8004A818BFB912233c491871b3d84c89A494BD9e"
startBlock: 9980000
abi: IdentityRegistry
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Agent
- AgentMetadata
- Protocol
- GlobalStats
abis:
- name: IdentityRegistry
file: ./abis/IdentityRegistry_Jan232026.json
eventHandlers:
- event: Registered(indexed uint256,string,indexed address)
handler: handleAgentRegistered
- event: MetadataSet(indexed uint256,indexed string,string,bytes)
handler: handleMetadataSet
- event: URIUpdated(indexed uint256,string,indexed address)
handler: handleUriUpdated
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
file: ./src/identity-registry.ts
# Reputation Registry
- kind: ethereum
name: ReputationRegistry
network: sepolia
source:
address: "0x8004B663056A597Dffe9eCcC1965A193B7388713"
startBlock: 10080118
abi: ReputationRegistry
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Agent
- Feedback
- FeedbackResponse
- AgentStats
- GlobalStats
abis:
- name: ReputationRegistry
file: ./abis/ReputationRegistry_Jan232026.json
eventHandlers:
- event: NewFeedback(indexed uint256,indexed address,uint64,int128,uint8,indexed string,string,string,string,string,bytes32)
handler: handleNewFeedback
- event: FeedbackRevoked(indexed uint256,indexed address,indexed uint64)
handler: handleFeedbackRevoked
- event: ResponseAppended(indexed uint256,indexed address,uint64,indexed address,string,bytes32)
handler: handleResponseAppended
file: ./src/reputation-registry.ts
# Validation Registry (PAUSED: indexing disabled; keep mapping code for later re-enable)
# - kind: ethereum
# name: ValidationRegistry
# network: sepolia
# source:
# abi: ValidationRegistry
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.7
# language: wasm/assemblyscript
# entities:
# - Agent
# - Validation
# - AgentStats
# - GlobalStats
# abis:
# - name: ValidationRegistry
# file: ./abis/ValidationRegistry_Jan112026.json
# eventHandlers:
# - event: ValidationRequest(indexed address,indexed uint256,string,indexed bytes32)
# handler: handleValidationRequest
# - event: ValidationResponse(indexed address,indexed uint256,indexed bytes32,uint8,string,bytes32,string)
# handler: handleValidationResponse
# file: ./src/validation-registry.ts
# =============================================================================
# FILE DATA SOURCES (IPFS)
# =============================================================================
templates:
- kind: file/ipfs
name: RegistrationFile
network: sepolia
mapping:
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/registration-file.ts
handler: parseRegistrationFile
entities:
- AgentRegistrationFile
- Agent
abis:
- name: IdentityRegistry
file: ./abis/IdentityRegistry_Jan232026.json
- kind: file/ipfs
name: FeedbackFile
network: sepolia
mapping:
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/feedback-file.ts
handler: parseFeedbackFile
entities:
- FeedbackFile
- Feedback
abis:
- name: ReputationRegistry
file: ./abis/ReputationRegistry_Jan232026.json