Skip to content

Commit 6c3bb7e

Browse files
committed
feat: Create Tap V2 Subgraph
1 parent 78c5ef6 commit 6c3bb7e

13 files changed

+5489
-0
lines changed

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Graph CLI generated artifacts
2+
build/
3+
generated/
4+
5+
# Dependency directories
6+
node_modules/
7+
jspm_packages/
8+
9+
# Logs
10+
logs
11+
*.log
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
16+
# Optional npm cache directory
17+
.npm
18+
19+
# Optional eslint cache
20+
.eslintcache
21+
22+
# dotenv environment variables file
23+
.env
24+
25+
# Testing
26+
coverage
27+
coverage.json
28+
29+
# Typechain
30+
typechain
31+
typechain-types
32+
33+
# Hardhat files
34+
cache

abis/GraphPayments.json

+233
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
[
2+
{
3+
"type": "constructor",
4+
"inputs": [
5+
{ "name": "controller", "type": "address", "internalType": "address" },
6+
{
7+
"name": "protocolPaymentCut",
8+
"type": "uint256",
9+
"internalType": "uint256"
10+
}
11+
],
12+
"stateMutability": "nonpayable"
13+
},
14+
{
15+
"type": "function",
16+
"name": "PROTOCOL_PAYMENT_CUT",
17+
"inputs": [],
18+
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
19+
"stateMutability": "view"
20+
},
21+
{
22+
"type": "function",
23+
"name": "collect",
24+
"inputs": [
25+
{
26+
"name": "paymentType",
27+
"type": "uint8",
28+
"internalType": "enum IGraphPayments.PaymentTypes"
29+
},
30+
{ "name": "receiver", "type": "address", "internalType": "address" },
31+
{ "name": "tokens", "type": "uint256", "internalType": "uint256" },
32+
{ "name": "dataService", "type": "address", "internalType": "address" },
33+
{
34+
"name": "tokensDataService",
35+
"type": "uint256",
36+
"internalType": "uint256"
37+
}
38+
],
39+
"outputs": [],
40+
"stateMutability": "nonpayable"
41+
},
42+
{
43+
"type": "function",
44+
"name": "initialize",
45+
"inputs": [],
46+
"outputs": [],
47+
"stateMutability": "nonpayable"
48+
},
49+
{
50+
"type": "function",
51+
"name": "multicall",
52+
"inputs": [
53+
{ "name": "data", "type": "bytes[]", "internalType": "bytes[]" }
54+
],
55+
"outputs": [
56+
{ "name": "results", "type": "bytes[]", "internalType": "bytes[]" }
57+
],
58+
"stateMutability": "nonpayable"
59+
},
60+
{
61+
"type": "event",
62+
"name": "GraphDirectoryInitialized",
63+
"inputs": [
64+
{
65+
"name": "graphToken",
66+
"type": "address",
67+
"indexed": true,
68+
"internalType": "address"
69+
},
70+
{
71+
"name": "graphStaking",
72+
"type": "address",
73+
"indexed": true,
74+
"internalType": "address"
75+
},
76+
{
77+
"name": "graphPayments",
78+
"type": "address",
79+
"indexed": false,
80+
"internalType": "address"
81+
},
82+
{
83+
"name": "graphEscrow",
84+
"type": "address",
85+
"indexed": false,
86+
"internalType": "address"
87+
},
88+
{
89+
"name": "graphController",
90+
"type": "address",
91+
"indexed": true,
92+
"internalType": "address"
93+
},
94+
{
95+
"name": "graphEpochManager",
96+
"type": "address",
97+
"indexed": false,
98+
"internalType": "address"
99+
},
100+
{
101+
"name": "graphRewardsManager",
102+
"type": "address",
103+
"indexed": false,
104+
"internalType": "address"
105+
},
106+
{
107+
"name": "graphTokenGateway",
108+
"type": "address",
109+
"indexed": false,
110+
"internalType": "address"
111+
},
112+
{
113+
"name": "graphProxyAdmin",
114+
"type": "address",
115+
"indexed": false,
116+
"internalType": "address"
117+
},
118+
{
119+
"name": "graphCuration",
120+
"type": "address",
121+
"indexed": false,
122+
"internalType": "address"
123+
}
124+
],
125+
"anonymous": false
126+
},
127+
{
128+
"type": "event",
129+
"name": "Initialized",
130+
"inputs": [
131+
{
132+
"name": "version",
133+
"type": "uint64",
134+
"indexed": false,
135+
"internalType": "uint64"
136+
}
137+
],
138+
"anonymous": false
139+
},
140+
{
141+
"type": "event",
142+
"name": "PaymentCollected",
143+
"inputs": [
144+
{
145+
"name": "payer",
146+
"type": "address",
147+
"indexed": true,
148+
"internalType": "address"
149+
},
150+
{
151+
"name": "receiver",
152+
"type": "address",
153+
"indexed": true,
154+
"internalType": "address"
155+
},
156+
{
157+
"name": "dataService",
158+
"type": "address",
159+
"indexed": true,
160+
"internalType": "address"
161+
},
162+
{
163+
"name": "tokensReceiver",
164+
"type": "uint256",
165+
"indexed": false,
166+
"internalType": "uint256"
167+
},
168+
{
169+
"name": "tokensDelegationPool",
170+
"type": "uint256",
171+
"indexed": false,
172+
"internalType": "uint256"
173+
},
174+
{
175+
"name": "tokensDataService",
176+
"type": "uint256",
177+
"indexed": false,
178+
"internalType": "uint256"
179+
},
180+
{
181+
"name": "tokensProtocol",
182+
"type": "uint256",
183+
"indexed": false,
184+
"internalType": "uint256"
185+
}
186+
],
187+
"anonymous": false
188+
},
189+
{
190+
"type": "error",
191+
"name": "AddressEmptyCode",
192+
"inputs": [
193+
{ "name": "target", "type": "address", "internalType": "address" }
194+
]
195+
},
196+
{ "type": "error", "name": "FailedInnerCall", "inputs": [] },
197+
{
198+
"type": "error",
199+
"name": "GraphDirectoryInvalidZeroAddress",
200+
"inputs": [
201+
{ "name": "contractName", "type": "bytes", "internalType": "bytes" }
202+
]
203+
},
204+
{
205+
"type": "error",
206+
"name": "GraphPaymentsInsufficientTokens",
207+
"inputs": [
208+
{ "name": "tokens", "type": "uint256", "internalType": "uint256" },
209+
{ "name": "minTokens", "type": "uint256", "internalType": "uint256" }
210+
]
211+
},
212+
{
213+
"type": "error",
214+
"name": "GraphPaymentsInvalidProtocolPaymentCut",
215+
"inputs": [
216+
{
217+
"name": "protocolPaymentCut",
218+
"type": "uint256",
219+
"internalType": "uint256"
220+
}
221+
]
222+
},
223+
{ "type": "error", "name": "InvalidInitialization", "inputs": [] },
224+
{ "type": "error", "name": "NotInitializing", "inputs": [] },
225+
{
226+
"type": "error",
227+
"name": "PPMMathInvalidMulPPM",
228+
"inputs": [
229+
{ "name": "a", "type": "uint256", "internalType": "uint256" },
230+
{ "name": "b", "type": "uint256", "internalType": "uint256" }
231+
]
232+
}
233+
]

0 commit comments

Comments
 (0)