@verify-network/contracts 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/contracts/IDirectVrfReceiver.sol +17 -0
- package/contracts/IVerifyNetworkRouter.sol +40 -0
- package/contracts/IVrfReceiver.sol +14 -0
- package/dist/abi/Balances.d.ts +32 -0
- package/dist/abi/Balances.js +36 -0
- package/dist/abi/BalancesFacet.d.ts +110 -0
- package/dist/abi/BalancesFacet.js +130 -0
- package/dist/abi/Config.d.ts +12 -0
- package/dist/abi/Config.js +12 -0
- package/dist/abi/ConfigFacet.d.ts +360 -0
- package/dist/abi/ConfigFacet.js +412 -0
- package/dist/abi/ECVRFVerifier.d.ts +34 -0
- package/dist/abi/ECVRFVerifier.js +38 -0
- package/dist/abi/IDirectVrfReceiver.d.ts +26 -0
- package/dist/abi/IDirectVrfReceiver.js +31 -0
- package/dist/abi/IECVRFVerifier.d.ts +30 -0
- package/dist/abi/IECVRFVerifier.js +34 -0
- package/dist/abi/IEnclaveAttestationVerifier.d.ts +26 -0
- package/dist/abi/IEnclaveAttestationVerifier.js +30 -0
- package/dist/abi/INitroEnclaveVerifier.d.ts +806 -0
- package/dist/abi/INitroEnclaveVerifier.js +941 -0
- package/dist/abi/INitroProofVerifier.d.ts +81 -0
- package/dist/abi/INitroProofVerifier.js +95 -0
- package/dist/abi/ISP1Verifier.d.ts +22 -0
- package/dist/abi/ISP1Verifier.js +26 -0
- package/dist/abi/ISP1VerifierWithHash.d.ts +32 -0
- package/dist/abi/ISP1VerifierWithHash.js +36 -0
- package/dist/abi/IVerifyNetworkRouter.d.ts +74 -0
- package/dist/abi/IVerifyNetworkRouter.js +80 -0
- package/dist/abi/IVrfReceiver.d.ts +22 -0
- package/dist/abi/IVrfReceiver.js +26 -0
- package/dist/abi/NitroAttestationVerifier.d.ts +252 -0
- package/dist/abi/NitroAttestationVerifier.js +286 -0
- package/dist/abi/NitroEnclaveVerifier.d.ts +985 -0
- package/dist/abi/NitroEnclaveVerifier.js +1146 -0
- package/dist/abi/Nodes.d.ts +60 -0
- package/dist/abi/Nodes.js +74 -0
- package/dist/abi/NodesFacet.d.ts +449 -0
- package/dist/abi/NodesFacet.js +513 -0
- package/dist/abi/Ownable.d.ts +117 -0
- package/dist/abi/Ownable.js +132 -0
- package/dist/abi/Requests.d.ts +16 -0
- package/dist/abi/Requests.js +16 -0
- package/dist/abi/Router.d.ts +343 -0
- package/dist/abi/Router.js +405 -0
- package/dist/abi/RouterInit.d.ts +40 -0
- package/dist/abi/RouterInit.js +45 -0
- package/dist/abi/SP1Verifier.d.ts +140 -0
- package/dist/abi/SP1Verifier.js +159 -0
- package/dist/abi/TrustedNodeEnclaveKeyVerifier.d.ts +130 -0
- package/dist/abi/TrustedNodeEnclaveKeyVerifier.js +146 -0
- package/dist/abi/VRF.d.ts +74 -0
- package/dist/abi/VRF.js +82 -0
- package/dist/abi/Verifier.d.ts +54 -0
- package/dist/abi/Verifier.js +60 -0
- package/dist/abi/VrfFacet.d.ts +906 -0
- package/dist/abi/VrfFacet.js +1090 -0
- package/dist/artifacts.d.ts +2385 -0
- package/dist/artifacts.js +78 -0
- package/dist/diamond.d.ts +51 -0
- package/dist/diamond.js +60 -0
- package/package.json +50 -4
- package/README.md +0 -3
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
//#region abi/ConfigFacet.ts
|
|
2
|
+
var ConfigFacet_default = [
|
|
3
|
+
{
|
|
4
|
+
"inputs": [{
|
|
5
|
+
"internalType": "bytes32",
|
|
6
|
+
"name": "role",
|
|
7
|
+
"type": "bytes32"
|
|
8
|
+
}, {
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "account",
|
|
11
|
+
"type": "address"
|
|
12
|
+
}],
|
|
13
|
+
"name": "AccessControl__Unauthorized",
|
|
14
|
+
"type": "error"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"inputs": [],
|
|
18
|
+
"name": "AdminSelfRemoval",
|
|
19
|
+
"type": "error"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"inputs": [],
|
|
23
|
+
"name": "EnumerableSet__IndexOutOfBounds",
|
|
24
|
+
"type": "error"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"inputs": [],
|
|
28
|
+
"name": "InvalidPricing",
|
|
29
|
+
"type": "error"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"inputs": [{
|
|
33
|
+
"internalType": "uint32",
|
|
34
|
+
"name": "maxCallbackGasLimit",
|
|
35
|
+
"type": "uint32"
|
|
36
|
+
}, {
|
|
37
|
+
"internalType": "uint32",
|
|
38
|
+
"name": "max",
|
|
39
|
+
"type": "uint32"
|
|
40
|
+
}],
|
|
41
|
+
"name": "MaxCallbackGasLimitTooHigh",
|
|
42
|
+
"type": "error"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"inputs": [{
|
|
46
|
+
"internalType": "uint32",
|
|
47
|
+
"name": "fulfillmentOverheadGas",
|
|
48
|
+
"type": "uint32"
|
|
49
|
+
}, {
|
|
50
|
+
"internalType": "uint32",
|
|
51
|
+
"name": "fulfillmentSettlementGas",
|
|
52
|
+
"type": "uint32"
|
|
53
|
+
}],
|
|
54
|
+
"name": "OverheadBelowSettlementGas",
|
|
55
|
+
"type": "error"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"inputs": [{
|
|
59
|
+
"internalType": "uint16",
|
|
60
|
+
"name": "premiumPercent",
|
|
61
|
+
"type": "uint16"
|
|
62
|
+
}, {
|
|
63
|
+
"internalType": "uint16",
|
|
64
|
+
"name": "max",
|
|
65
|
+
"type": "uint16"
|
|
66
|
+
}],
|
|
67
|
+
"name": "PremiumTooHigh",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [{
|
|
72
|
+
"internalType": "address",
|
|
73
|
+
"name": "verifier",
|
|
74
|
+
"type": "address"
|
|
75
|
+
}],
|
|
76
|
+
"name": "VerifierWithoutCode",
|
|
77
|
+
"type": "error"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"inputs": [],
|
|
81
|
+
"name": "ZeroNodeStake",
|
|
82
|
+
"type": "error"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"anonymous": false,
|
|
86
|
+
"inputs": [
|
|
87
|
+
{
|
|
88
|
+
"indexed": true,
|
|
89
|
+
"internalType": "bytes32",
|
|
90
|
+
"name": "role",
|
|
91
|
+
"type": "bytes32"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"indexed": true,
|
|
95
|
+
"internalType": "bytes32",
|
|
96
|
+
"name": "previousAdminRole",
|
|
97
|
+
"type": "bytes32"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"indexed": true,
|
|
101
|
+
"internalType": "bytes32",
|
|
102
|
+
"name": "newAdminRole",
|
|
103
|
+
"type": "bytes32"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"name": "RoleAdminChanged",
|
|
107
|
+
"type": "event"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"anonymous": false,
|
|
111
|
+
"inputs": [
|
|
112
|
+
{
|
|
113
|
+
"indexed": true,
|
|
114
|
+
"internalType": "bytes32",
|
|
115
|
+
"name": "role",
|
|
116
|
+
"type": "bytes32"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"indexed": true,
|
|
120
|
+
"internalType": "address",
|
|
121
|
+
"name": "account",
|
|
122
|
+
"type": "address"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"indexed": true,
|
|
126
|
+
"internalType": "address",
|
|
127
|
+
"name": "sender",
|
|
128
|
+
"type": "address"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"name": "RoleGranted",
|
|
132
|
+
"type": "event"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"anonymous": false,
|
|
136
|
+
"inputs": [
|
|
137
|
+
{
|
|
138
|
+
"indexed": true,
|
|
139
|
+
"internalType": "bytes32",
|
|
140
|
+
"name": "role",
|
|
141
|
+
"type": "bytes32"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"indexed": true,
|
|
145
|
+
"internalType": "address",
|
|
146
|
+
"name": "account",
|
|
147
|
+
"type": "address"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"indexed": true,
|
|
151
|
+
"internalType": "address",
|
|
152
|
+
"name": "sender",
|
|
153
|
+
"type": "address"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"name": "RoleRevoked",
|
|
157
|
+
"type": "event"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"inputs": [],
|
|
161
|
+
"name": "attestationVerifier",
|
|
162
|
+
"outputs": [{
|
|
163
|
+
"internalType": "contract IEnclaveAttestationVerifier",
|
|
164
|
+
"name": "",
|
|
165
|
+
"type": "address"
|
|
166
|
+
}],
|
|
167
|
+
"stateMutability": "view",
|
|
168
|
+
"type": "function"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"inputs": [],
|
|
172
|
+
"name": "ecvrfVerifier",
|
|
173
|
+
"outputs": [{
|
|
174
|
+
"internalType": "contract IECVRFVerifier",
|
|
175
|
+
"name": "",
|
|
176
|
+
"type": "address"
|
|
177
|
+
}],
|
|
178
|
+
"stateMutability": "view",
|
|
179
|
+
"type": "function"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"inputs": [{
|
|
183
|
+
"internalType": "bytes32",
|
|
184
|
+
"name": "role",
|
|
185
|
+
"type": "bytes32"
|
|
186
|
+
}],
|
|
187
|
+
"name": "getRoleAdmin",
|
|
188
|
+
"outputs": [{
|
|
189
|
+
"internalType": "bytes32",
|
|
190
|
+
"name": "",
|
|
191
|
+
"type": "bytes32"
|
|
192
|
+
}],
|
|
193
|
+
"stateMutability": "view",
|
|
194
|
+
"type": "function"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"inputs": [{
|
|
198
|
+
"internalType": "bytes32",
|
|
199
|
+
"name": "role",
|
|
200
|
+
"type": "bytes32"
|
|
201
|
+
}, {
|
|
202
|
+
"internalType": "uint256",
|
|
203
|
+
"name": "index",
|
|
204
|
+
"type": "uint256"
|
|
205
|
+
}],
|
|
206
|
+
"name": "getRoleMember",
|
|
207
|
+
"outputs": [{
|
|
208
|
+
"internalType": "address",
|
|
209
|
+
"name": "",
|
|
210
|
+
"type": "address"
|
|
211
|
+
}],
|
|
212
|
+
"stateMutability": "view",
|
|
213
|
+
"type": "function"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"inputs": [{
|
|
217
|
+
"internalType": "bytes32",
|
|
218
|
+
"name": "role",
|
|
219
|
+
"type": "bytes32"
|
|
220
|
+
}],
|
|
221
|
+
"name": "getRoleMemberCount",
|
|
222
|
+
"outputs": [{
|
|
223
|
+
"internalType": "uint256",
|
|
224
|
+
"name": "",
|
|
225
|
+
"type": "uint256"
|
|
226
|
+
}],
|
|
227
|
+
"stateMutability": "view",
|
|
228
|
+
"type": "function"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"inputs": [{
|
|
232
|
+
"internalType": "bytes32",
|
|
233
|
+
"name": "role",
|
|
234
|
+
"type": "bytes32"
|
|
235
|
+
}, {
|
|
236
|
+
"internalType": "address",
|
|
237
|
+
"name": "account",
|
|
238
|
+
"type": "address"
|
|
239
|
+
}],
|
|
240
|
+
"name": "grantRole",
|
|
241
|
+
"outputs": [],
|
|
242
|
+
"stateMutability": "nonpayable",
|
|
243
|
+
"type": "function"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"inputs": [{
|
|
247
|
+
"internalType": "bytes32",
|
|
248
|
+
"name": "role",
|
|
249
|
+
"type": "bytes32"
|
|
250
|
+
}, {
|
|
251
|
+
"internalType": "address",
|
|
252
|
+
"name": "account",
|
|
253
|
+
"type": "address"
|
|
254
|
+
}],
|
|
255
|
+
"name": "hasRole",
|
|
256
|
+
"outputs": [{
|
|
257
|
+
"internalType": "bool",
|
|
258
|
+
"name": "",
|
|
259
|
+
"type": "bool"
|
|
260
|
+
}],
|
|
261
|
+
"stateMutability": "view",
|
|
262
|
+
"type": "function"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"inputs": [],
|
|
266
|
+
"name": "nodeStake",
|
|
267
|
+
"outputs": [{
|
|
268
|
+
"internalType": "uint256",
|
|
269
|
+
"name": "",
|
|
270
|
+
"type": "uint256"
|
|
271
|
+
}],
|
|
272
|
+
"stateMutability": "view",
|
|
273
|
+
"type": "function"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"inputs": [],
|
|
277
|
+
"name": "pricing",
|
|
278
|
+
"outputs": [{
|
|
279
|
+
"components": [
|
|
280
|
+
{
|
|
281
|
+
"internalType": "uint16",
|
|
282
|
+
"name": "premiumPercent",
|
|
283
|
+
"type": "uint16"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"internalType": "uint32",
|
|
287
|
+
"name": "fulfillmentOverheadGas",
|
|
288
|
+
"type": "uint32"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"internalType": "uint32",
|
|
292
|
+
"name": "fulfillmentSettlementGas",
|
|
293
|
+
"type": "uint32"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"internalType": "uint32",
|
|
297
|
+
"name": "defaultCallbackGasLimit",
|
|
298
|
+
"type": "uint32"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"internalType": "uint32",
|
|
302
|
+
"name": "maxCallbackGasLimit",
|
|
303
|
+
"type": "uint32"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"internalType": "struct Config.Pricing",
|
|
307
|
+
"name": "",
|
|
308
|
+
"type": "tuple"
|
|
309
|
+
}],
|
|
310
|
+
"stateMutability": "view",
|
|
311
|
+
"type": "function"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"inputs": [{
|
|
315
|
+
"internalType": "bytes32",
|
|
316
|
+
"name": "role",
|
|
317
|
+
"type": "bytes32"
|
|
318
|
+
}],
|
|
319
|
+
"name": "renounceRole",
|
|
320
|
+
"outputs": [],
|
|
321
|
+
"stateMutability": "nonpayable",
|
|
322
|
+
"type": "function"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"inputs": [{
|
|
326
|
+
"internalType": "bytes32",
|
|
327
|
+
"name": "role",
|
|
328
|
+
"type": "bytes32"
|
|
329
|
+
}, {
|
|
330
|
+
"internalType": "address",
|
|
331
|
+
"name": "account",
|
|
332
|
+
"type": "address"
|
|
333
|
+
}],
|
|
334
|
+
"name": "revokeRole",
|
|
335
|
+
"outputs": [],
|
|
336
|
+
"stateMutability": "nonpayable",
|
|
337
|
+
"type": "function"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"inputs": [{
|
|
341
|
+
"internalType": "contract IEnclaveAttestationVerifier",
|
|
342
|
+
"name": "verifier",
|
|
343
|
+
"type": "address"
|
|
344
|
+
}],
|
|
345
|
+
"name": "setAttestationVerifier",
|
|
346
|
+
"outputs": [],
|
|
347
|
+
"stateMutability": "nonpayable",
|
|
348
|
+
"type": "function"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"inputs": [{
|
|
352
|
+
"internalType": "contract IECVRFVerifier",
|
|
353
|
+
"name": "verifier",
|
|
354
|
+
"type": "address"
|
|
355
|
+
}],
|
|
356
|
+
"name": "setEcvrfVerifier",
|
|
357
|
+
"outputs": [],
|
|
358
|
+
"stateMutability": "nonpayable",
|
|
359
|
+
"type": "function"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"inputs": [{
|
|
363
|
+
"internalType": "uint256",
|
|
364
|
+
"name": "stake",
|
|
365
|
+
"type": "uint256"
|
|
366
|
+
}],
|
|
367
|
+
"name": "setNodeStake",
|
|
368
|
+
"outputs": [],
|
|
369
|
+
"stateMutability": "nonpayable",
|
|
370
|
+
"type": "function"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"inputs": [{
|
|
374
|
+
"components": [
|
|
375
|
+
{
|
|
376
|
+
"internalType": "uint16",
|
|
377
|
+
"name": "premiumPercent",
|
|
378
|
+
"type": "uint16"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"internalType": "uint32",
|
|
382
|
+
"name": "fulfillmentOverheadGas",
|
|
383
|
+
"type": "uint32"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"internalType": "uint32",
|
|
387
|
+
"name": "fulfillmentSettlementGas",
|
|
388
|
+
"type": "uint32"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"internalType": "uint32",
|
|
392
|
+
"name": "defaultCallbackGasLimit",
|
|
393
|
+
"type": "uint32"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"internalType": "uint32",
|
|
397
|
+
"name": "maxCallbackGasLimit",
|
|
398
|
+
"type": "uint32"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"internalType": "struct Config.Pricing",
|
|
402
|
+
"name": "next",
|
|
403
|
+
"type": "tuple"
|
|
404
|
+
}],
|
|
405
|
+
"name": "setPricing",
|
|
406
|
+
"outputs": [],
|
|
407
|
+
"stateMutability": "nonpayable",
|
|
408
|
+
"type": "function"
|
|
409
|
+
}
|
|
410
|
+
];
|
|
411
|
+
//#endregion
|
|
412
|
+
export { ConfigFacet_default as default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region abi/ECVRFVerifier.d.ts
|
|
2
|
+
declare const _default: readonly [{
|
|
3
|
+
readonly inputs: readonly [];
|
|
4
|
+
readonly name: "InvalidProof";
|
|
5
|
+
readonly type: "error";
|
|
6
|
+
}, {
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly internalType: "uint256[2]";
|
|
9
|
+
readonly name: "publicKey";
|
|
10
|
+
readonly type: "uint256[2]";
|
|
11
|
+
}, {
|
|
12
|
+
readonly internalType: "uint256[4]";
|
|
13
|
+
readonly name: "proof";
|
|
14
|
+
readonly type: "uint256[4]";
|
|
15
|
+
}, {
|
|
16
|
+
readonly internalType: "bytes";
|
|
17
|
+
readonly name: "alpha";
|
|
18
|
+
readonly type: "bytes";
|
|
19
|
+
}];
|
|
20
|
+
readonly name: "verify";
|
|
21
|
+
readonly outputs: readonly [{
|
|
22
|
+
readonly internalType: "bool";
|
|
23
|
+
readonly name: "fulfillable";
|
|
24
|
+
readonly type: "bool";
|
|
25
|
+
}, {
|
|
26
|
+
readonly internalType: "bytes32";
|
|
27
|
+
readonly name: "randomness";
|
|
28
|
+
readonly type: "bytes32";
|
|
29
|
+
}];
|
|
30
|
+
readonly stateMutability: "pure";
|
|
31
|
+
readonly type: "function";
|
|
32
|
+
}];
|
|
33
|
+
//#endregion
|
|
34
|
+
export { _default as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region abi/ECVRFVerifier.ts
|
|
2
|
+
var ECVRFVerifier_default = [{
|
|
3
|
+
"inputs": [],
|
|
4
|
+
"name": "InvalidProof",
|
|
5
|
+
"type": "error"
|
|
6
|
+
}, {
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint256[2]",
|
|
10
|
+
"name": "publicKey",
|
|
11
|
+
"type": "uint256[2]"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256[4]",
|
|
15
|
+
"name": "proof",
|
|
16
|
+
"type": "uint256[4]"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "bytes",
|
|
20
|
+
"name": "alpha",
|
|
21
|
+
"type": "bytes"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"name": "verify",
|
|
25
|
+
"outputs": [{
|
|
26
|
+
"internalType": "bool",
|
|
27
|
+
"name": "fulfillable",
|
|
28
|
+
"type": "bool"
|
|
29
|
+
}, {
|
|
30
|
+
"internalType": "bytes32",
|
|
31
|
+
"name": "randomness",
|
|
32
|
+
"type": "bytes32"
|
|
33
|
+
}],
|
|
34
|
+
"stateMutability": "pure",
|
|
35
|
+
"type": "function"
|
|
36
|
+
}];
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ECVRFVerifier_default as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region abi/IDirectVrfReceiver.d.ts
|
|
2
|
+
declare const _default: readonly [{
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly internalType: "bytes32";
|
|
5
|
+
readonly name: "requestId";
|
|
6
|
+
readonly type: "bytes32";
|
|
7
|
+
}, {
|
|
8
|
+
readonly internalType: "address";
|
|
9
|
+
readonly name: "signer";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly internalType: "bytes32";
|
|
13
|
+
readonly name: "randomness";
|
|
14
|
+
readonly type: "bytes32";
|
|
15
|
+
}, {
|
|
16
|
+
readonly internalType: "bytes";
|
|
17
|
+
readonly name: "callbackData";
|
|
18
|
+
readonly type: "bytes";
|
|
19
|
+
}];
|
|
20
|
+
readonly name: "onDirectRandomness";
|
|
21
|
+
readonly outputs: readonly [];
|
|
22
|
+
readonly stateMutability: "nonpayable";
|
|
23
|
+
readonly type: "function";
|
|
24
|
+
}];
|
|
25
|
+
//#endregion
|
|
26
|
+
export { _default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region abi/IDirectVrfReceiver.ts
|
|
2
|
+
var IDirectVrfReceiver_default = [{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "bytes32",
|
|
6
|
+
"name": "requestId",
|
|
7
|
+
"type": "bytes32"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "address",
|
|
11
|
+
"name": "signer",
|
|
12
|
+
"type": "address"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"internalType": "bytes32",
|
|
16
|
+
"name": "randomness",
|
|
17
|
+
"type": "bytes32"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"internalType": "bytes",
|
|
21
|
+
"name": "callbackData",
|
|
22
|
+
"type": "bytes"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"name": "onDirectRandomness",
|
|
26
|
+
"outputs": [],
|
|
27
|
+
"stateMutability": "nonpayable",
|
|
28
|
+
"type": "function"
|
|
29
|
+
}];
|
|
30
|
+
//#endregion
|
|
31
|
+
export { IDirectVrfReceiver_default as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region abi/IECVRFVerifier.d.ts
|
|
2
|
+
declare const _default: readonly [{
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly internalType: "uint256[2]";
|
|
5
|
+
readonly name: "publicKey";
|
|
6
|
+
readonly type: "uint256[2]";
|
|
7
|
+
}, {
|
|
8
|
+
readonly internalType: "uint256[4]";
|
|
9
|
+
readonly name: "proof";
|
|
10
|
+
readonly type: "uint256[4]";
|
|
11
|
+
}, {
|
|
12
|
+
readonly internalType: "bytes";
|
|
13
|
+
readonly name: "alpha";
|
|
14
|
+
readonly type: "bytes";
|
|
15
|
+
}];
|
|
16
|
+
readonly name: "verify";
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly internalType: "bool";
|
|
19
|
+
readonly name: "fulfillable";
|
|
20
|
+
readonly type: "bool";
|
|
21
|
+
}, {
|
|
22
|
+
readonly internalType: "bytes32";
|
|
23
|
+
readonly name: "randomness";
|
|
24
|
+
readonly type: "bytes32";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "view";
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
}];
|
|
29
|
+
//#endregion
|
|
30
|
+
export { _default as default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region abi/IECVRFVerifier.ts
|
|
2
|
+
var IECVRFVerifier_default = [{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "uint256[2]",
|
|
6
|
+
"name": "publicKey",
|
|
7
|
+
"type": "uint256[2]"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "uint256[4]",
|
|
11
|
+
"name": "proof",
|
|
12
|
+
"type": "uint256[4]"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"internalType": "bytes",
|
|
16
|
+
"name": "alpha",
|
|
17
|
+
"type": "bytes"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"name": "verify",
|
|
21
|
+
"outputs": [{
|
|
22
|
+
"internalType": "bool",
|
|
23
|
+
"name": "fulfillable",
|
|
24
|
+
"type": "bool"
|
|
25
|
+
}, {
|
|
26
|
+
"internalType": "bytes32",
|
|
27
|
+
"name": "randomness",
|
|
28
|
+
"type": "bytes32"
|
|
29
|
+
}],
|
|
30
|
+
"stateMutability": "view",
|
|
31
|
+
"type": "function"
|
|
32
|
+
}];
|
|
33
|
+
//#endregion
|
|
34
|
+
export { IECVRFVerifier_default as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region abi/IEnclaveAttestationVerifier.d.ts
|
|
2
|
+
declare const _default: readonly [{
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly internalType: "address";
|
|
5
|
+
readonly name: "operator";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly internalType: "uint256[2]";
|
|
9
|
+
readonly name: "publicKey";
|
|
10
|
+
readonly type: "uint256[2]";
|
|
11
|
+
}, {
|
|
12
|
+
readonly internalType: "bytes";
|
|
13
|
+
readonly name: "proof";
|
|
14
|
+
readonly type: "bytes";
|
|
15
|
+
}];
|
|
16
|
+
readonly name: "verify";
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly internalType: "bool";
|
|
19
|
+
readonly name: "";
|
|
20
|
+
readonly type: "bool";
|
|
21
|
+
}];
|
|
22
|
+
readonly stateMutability: "nonpayable";
|
|
23
|
+
readonly type: "function";
|
|
24
|
+
}];
|
|
25
|
+
//#endregion
|
|
26
|
+
export { _default as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region abi/IEnclaveAttestationVerifier.ts
|
|
2
|
+
var IEnclaveAttestationVerifier_default = [{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "address",
|
|
6
|
+
"name": "operator",
|
|
7
|
+
"type": "address"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "uint256[2]",
|
|
11
|
+
"name": "publicKey",
|
|
12
|
+
"type": "uint256[2]"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"internalType": "bytes",
|
|
16
|
+
"name": "proof",
|
|
17
|
+
"type": "bytes"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"name": "verify",
|
|
21
|
+
"outputs": [{
|
|
22
|
+
"internalType": "bool",
|
|
23
|
+
"name": "",
|
|
24
|
+
"type": "bool"
|
|
25
|
+
}],
|
|
26
|
+
"stateMutability": "nonpayable",
|
|
27
|
+
"type": "function"
|
|
28
|
+
}];
|
|
29
|
+
//#endregion
|
|
30
|
+
export { IEnclaveAttestationVerifier_default as default };
|