@libid/contracts 0.2.0 → 0.3.1

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.
@@ -48,6 +48,32 @@ export const identityJwksRootsAbi = [
48
48
  ],
49
49
  "stateMutability": "view"
50
50
  },
51
+ {
52
+ "type": "function",
53
+ "name": "MAX_TRACKED_KIDS",
54
+ "inputs": [],
55
+ "outputs": [
56
+ {
57
+ "name": "",
58
+ "type": "uint256",
59
+ "internalType": "uint256"
60
+ }
61
+ ],
62
+ "stateMutability": "view"
63
+ },
64
+ {
65
+ "type": "function",
66
+ "name": "RENEWAL_MARGIN",
67
+ "inputs": [],
68
+ "outputs": [
69
+ {
70
+ "name": "",
71
+ "type": "uint256",
72
+ "internalType": "uint256"
73
+ }
74
+ ],
75
+ "stateMutability": "view"
76
+ },
51
77
  {
52
78
  "type": "function",
53
79
  "name": "UPGRADE_INTERFACE_VERSION",
@@ -68,6 +94,41 @@ export const identityJwksRootsAbi = [
68
94
  "outputs": [],
69
95
  "stateMutability": "nonpayable"
70
96
  },
97
+ {
98
+ "type": "function",
99
+ "name": "currentRoots",
100
+ "inputs": [],
101
+ "outputs": [
102
+ {
103
+ "name": "infos",
104
+ "type": "tuple[]",
105
+ "internalType": "struct IdentityJwksRoots.RootInfo[]",
106
+ "components": [
107
+ {
108
+ "name": "kidHash",
109
+ "type": "bytes32",
110
+ "internalType": "bytes32"
111
+ },
112
+ {
113
+ "name": "modulusHash",
114
+ "type": "bytes32",
115
+ "internalType": "bytes32"
116
+ },
117
+ {
118
+ "name": "observedAt",
119
+ "type": "uint256",
120
+ "internalType": "uint256"
121
+ },
122
+ {
123
+ "name": "expiresAt",
124
+ "type": "uint256",
125
+ "internalType": "uint256"
126
+ }
127
+ ]
128
+ }
129
+ ],
130
+ "stateMutability": "view"
131
+ },
71
132
  {
72
133
  "type": "function",
73
134
  "name": "expiresAtKid",
@@ -87,6 +148,19 @@ export const identityJwksRootsAbi = [
87
148
  ],
88
149
  "stateMutability": "view"
89
150
  },
151
+ {
152
+ "type": "function",
153
+ "name": "freshestObservedAt",
154
+ "inputs": [],
155
+ "outputs": [
156
+ {
157
+ "name": "",
158
+ "type": "uint256",
159
+ "internalType": "uint256"
160
+ }
161
+ ],
162
+ "stateMutability": "view"
163
+ },
90
164
  {
91
165
  "type": "function",
92
166
  "name": "initialize",
@@ -124,6 +198,19 @@ export const identityJwksRootsAbi = [
124
198
  ],
125
199
  "stateMutability": "view"
126
200
  },
201
+ {
202
+ "type": "function",
203
+ "name": "needsRotation",
204
+ "inputs": [],
205
+ "outputs": [
206
+ {
207
+ "name": "",
208
+ "type": "bool",
209
+ "internalType": "bool"
210
+ }
211
+ ],
212
+ "stateMutability": "view"
213
+ },
127
214
  {
128
215
  "type": "function",
129
216
  "name": "notary",
@@ -189,6 +276,13 @@ export const identityJwksRootsAbi = [
189
276
  ],
190
277
  "stateMutability": "view"
191
278
  },
279
+ {
280
+ "type": "function",
281
+ "name": "prune",
282
+ "inputs": [],
283
+ "outputs": [],
284
+ "stateMutability": "nonpayable"
285
+ },
192
286
  {
193
287
  "type": "function",
194
288
  "name": "renounceOwnership",
@@ -460,6 +554,56 @@ export const identityJwksRootsAbi = [
460
554
  ],
461
555
  "anonymous": false
462
556
  },
557
+ {
558
+ "type": "event",
559
+ "name": "RootApplied",
560
+ "inputs": [
561
+ {
562
+ "name": "kidHash",
563
+ "type": "bytes32",
564
+ "indexed": true,
565
+ "internalType": "bytes32"
566
+ },
567
+ {
568
+ "name": "modulusHash",
569
+ "type": "bytes32",
570
+ "indexed": true,
571
+ "internalType": "bytes32"
572
+ },
573
+ {
574
+ "name": "observedAt",
575
+ "type": "uint256",
576
+ "indexed": false,
577
+ "internalType": "uint256"
578
+ },
579
+ {
580
+ "name": "expiresAt",
581
+ "type": "uint256",
582
+ "indexed": false,
583
+ "internalType": "uint256"
584
+ }
585
+ ],
586
+ "anonymous": false
587
+ },
588
+ {
589
+ "type": "event",
590
+ "name": "RootPruned",
591
+ "inputs": [
592
+ {
593
+ "name": "kidHash",
594
+ "type": "bytes32",
595
+ "indexed": true,
596
+ "internalType": "bytes32"
597
+ },
598
+ {
599
+ "name": "modulusHash",
600
+ "type": "bytes32",
601
+ "indexed": false,
602
+ "internalType": "bytes32"
603
+ }
604
+ ],
605
+ "anonymous": false
606
+ },
463
607
  {
464
608
  "type": "event",
465
609
  "name": "Upgraded",
@@ -582,6 +726,11 @@ export const identityJwksRootsAbi = [
582
726
  "name": "StaleProof",
583
727
  "inputs": []
584
728
  },
729
+ {
730
+ "type": "error",
731
+ "name": "TooManyKids",
732
+ "inputs": []
733
+ },
585
734
  {
586
735
  "type": "error",
587
736
  "name": "UUPSUnauthorizedCallContext",
package/src/abis/index.ts CHANGED
@@ -16,5 +16,6 @@ export { xIdentityVerifierAbi } from './xIdentityVerifier.js'
16
16
  export { identityJwksRootsAbi } from './identityJwksRoots.js'
17
17
  export { xZkVerifierAbi } from './xZkVerifier.js'
18
18
  export { googleOidcVerifierAbi } from './googleOidcVerifier.js'
19
+ export { libidFactoryAbi } from './libidFactory.js'
19
20
  export { mockErc20Abi } from './mockErc20.js'
20
21
  export { wtia9Abi } from './wtia9.js'
@@ -0,0 +1,403 @@
1
+ // Generated by ts/packages/contracts/scripts/codegen.mjs. Do not edit.
2
+ // Source artifact: solidity/out/LibidFactory.sol/LibidFactory.json
3
+
4
+ import type { Abi } from 'viem'
5
+
6
+ export const libidFactoryAbi = [
7
+ {
8
+ "type": "constructor",
9
+ "inputs": [],
10
+ "stateMutability": "nonpayable"
11
+ },
12
+ {
13
+ "type": "function",
14
+ "name": "UPGRADE_INTERFACE_VERSION",
15
+ "inputs": [],
16
+ "outputs": [
17
+ {
18
+ "name": "",
19
+ "type": "string",
20
+ "internalType": "string"
21
+ }
22
+ ],
23
+ "stateMutability": "view"
24
+ },
25
+ {
26
+ "type": "function",
27
+ "name": "acceptOwnership",
28
+ "inputs": [],
29
+ "outputs": [],
30
+ "stateMutability": "nonpayable"
31
+ },
32
+ {
33
+ "type": "function",
34
+ "name": "deploy",
35
+ "inputs": [
36
+ {
37
+ "name": "name",
38
+ "type": "string",
39
+ "internalType": "string"
40
+ },
41
+ {
42
+ "name": "creationCode",
43
+ "type": "bytes",
44
+ "internalType": "bytes"
45
+ }
46
+ ],
47
+ "outputs": [
48
+ {
49
+ "name": "addr",
50
+ "type": "address",
51
+ "internalType": "address"
52
+ }
53
+ ],
54
+ "stateMutability": "nonpayable"
55
+ },
56
+ {
57
+ "type": "function",
58
+ "name": "deployedAt",
59
+ "inputs": [
60
+ {
61
+ "name": "name",
62
+ "type": "string",
63
+ "internalType": "string"
64
+ }
65
+ ],
66
+ "outputs": [
67
+ {
68
+ "name": "",
69
+ "type": "address",
70
+ "internalType": "address"
71
+ }
72
+ ],
73
+ "stateMutability": "view"
74
+ },
75
+ {
76
+ "type": "function",
77
+ "name": "deployments",
78
+ "inputs": [
79
+ {
80
+ "name": "nameHash",
81
+ "type": "bytes32",
82
+ "internalType": "bytes32"
83
+ }
84
+ ],
85
+ "outputs": [
86
+ {
87
+ "name": "addr",
88
+ "type": "address",
89
+ "internalType": "address"
90
+ }
91
+ ],
92
+ "stateMutability": "view"
93
+ },
94
+ {
95
+ "type": "function",
96
+ "name": "initialize",
97
+ "inputs": [
98
+ {
99
+ "name": "owner_",
100
+ "type": "address",
101
+ "internalType": "address"
102
+ }
103
+ ],
104
+ "outputs": [],
105
+ "stateMutability": "nonpayable"
106
+ },
107
+ {
108
+ "type": "function",
109
+ "name": "owner",
110
+ "inputs": [],
111
+ "outputs": [
112
+ {
113
+ "name": "",
114
+ "type": "address",
115
+ "internalType": "address"
116
+ }
117
+ ],
118
+ "stateMutability": "view"
119
+ },
120
+ {
121
+ "type": "function",
122
+ "name": "pendingOwner",
123
+ "inputs": [],
124
+ "outputs": [
125
+ {
126
+ "name": "",
127
+ "type": "address",
128
+ "internalType": "address"
129
+ }
130
+ ],
131
+ "stateMutability": "view"
132
+ },
133
+ {
134
+ "type": "function",
135
+ "name": "predict",
136
+ "inputs": [
137
+ {
138
+ "name": "name",
139
+ "type": "string",
140
+ "internalType": "string"
141
+ }
142
+ ],
143
+ "outputs": [
144
+ {
145
+ "name": "",
146
+ "type": "address",
147
+ "internalType": "address"
148
+ }
149
+ ],
150
+ "stateMutability": "view"
151
+ },
152
+ {
153
+ "type": "function",
154
+ "name": "proxiableUUID",
155
+ "inputs": [],
156
+ "outputs": [
157
+ {
158
+ "name": "",
159
+ "type": "bytes32",
160
+ "internalType": "bytes32"
161
+ }
162
+ ],
163
+ "stateMutability": "view"
164
+ },
165
+ {
166
+ "type": "function",
167
+ "name": "renounceOwnership",
168
+ "inputs": [],
169
+ "outputs": [],
170
+ "stateMutability": "pure"
171
+ },
172
+ {
173
+ "type": "function",
174
+ "name": "transferOwnership",
175
+ "inputs": [
176
+ {
177
+ "name": "newOwner",
178
+ "type": "address",
179
+ "internalType": "address"
180
+ }
181
+ ],
182
+ "outputs": [],
183
+ "stateMutability": "nonpayable"
184
+ },
185
+ {
186
+ "type": "function",
187
+ "name": "upgradeToAndCall",
188
+ "inputs": [
189
+ {
190
+ "name": "newImplementation",
191
+ "type": "address",
192
+ "internalType": "address"
193
+ },
194
+ {
195
+ "name": "data",
196
+ "type": "bytes",
197
+ "internalType": "bytes"
198
+ }
199
+ ],
200
+ "outputs": [],
201
+ "stateMutability": "payable"
202
+ },
203
+ {
204
+ "type": "event",
205
+ "name": "Deployed",
206
+ "inputs": [
207
+ {
208
+ "name": "nameHash",
209
+ "type": "bytes32",
210
+ "indexed": true,
211
+ "internalType": "bytes32"
212
+ },
213
+ {
214
+ "name": "name",
215
+ "type": "string",
216
+ "indexed": false,
217
+ "internalType": "string"
218
+ },
219
+ {
220
+ "name": "addr",
221
+ "type": "address",
222
+ "indexed": false,
223
+ "internalType": "address"
224
+ }
225
+ ],
226
+ "anonymous": false
227
+ },
228
+ {
229
+ "type": "event",
230
+ "name": "Initialized",
231
+ "inputs": [
232
+ {
233
+ "name": "version",
234
+ "type": "uint64",
235
+ "indexed": false,
236
+ "internalType": "uint64"
237
+ }
238
+ ],
239
+ "anonymous": false
240
+ },
241
+ {
242
+ "type": "event",
243
+ "name": "OwnershipTransferStarted",
244
+ "inputs": [
245
+ {
246
+ "name": "previousOwner",
247
+ "type": "address",
248
+ "indexed": true,
249
+ "internalType": "address"
250
+ },
251
+ {
252
+ "name": "newOwner",
253
+ "type": "address",
254
+ "indexed": true,
255
+ "internalType": "address"
256
+ }
257
+ ],
258
+ "anonymous": false
259
+ },
260
+ {
261
+ "type": "event",
262
+ "name": "OwnershipTransferred",
263
+ "inputs": [
264
+ {
265
+ "name": "previousOwner",
266
+ "type": "address",
267
+ "indexed": true,
268
+ "internalType": "address"
269
+ },
270
+ {
271
+ "name": "newOwner",
272
+ "type": "address",
273
+ "indexed": true,
274
+ "internalType": "address"
275
+ }
276
+ ],
277
+ "anonymous": false
278
+ },
279
+ {
280
+ "type": "event",
281
+ "name": "Upgraded",
282
+ "inputs": [
283
+ {
284
+ "name": "implementation",
285
+ "type": "address",
286
+ "indexed": true,
287
+ "internalType": "address"
288
+ }
289
+ ],
290
+ "anonymous": false
291
+ },
292
+ {
293
+ "type": "error",
294
+ "name": "AddressEmptyCode",
295
+ "inputs": [
296
+ {
297
+ "name": "target",
298
+ "type": "address",
299
+ "internalType": "address"
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "type": "error",
305
+ "name": "AlreadyDeployed",
306
+ "inputs": [
307
+ {
308
+ "name": "name",
309
+ "type": "string",
310
+ "internalType": "string"
311
+ },
312
+ {
313
+ "name": "addr",
314
+ "type": "address",
315
+ "internalType": "address"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "type": "error",
321
+ "name": "ERC1967InvalidImplementation",
322
+ "inputs": [
323
+ {
324
+ "name": "implementation",
325
+ "type": "address",
326
+ "internalType": "address"
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "type": "error",
332
+ "name": "ERC1967NonPayable",
333
+ "inputs": []
334
+ },
335
+ {
336
+ "type": "error",
337
+ "name": "EmptyName",
338
+ "inputs": []
339
+ },
340
+ {
341
+ "type": "error",
342
+ "name": "FailedCall",
343
+ "inputs": []
344
+ },
345
+ {
346
+ "type": "error",
347
+ "name": "InvalidInitialization",
348
+ "inputs": []
349
+ },
350
+ {
351
+ "type": "error",
352
+ "name": "NotInitializing",
353
+ "inputs": []
354
+ },
355
+ {
356
+ "type": "error",
357
+ "name": "OwnableInvalidOwner",
358
+ "inputs": [
359
+ {
360
+ "name": "owner",
361
+ "type": "address",
362
+ "internalType": "address"
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ "type": "error",
368
+ "name": "OwnableUnauthorizedAccount",
369
+ "inputs": [
370
+ {
371
+ "name": "account",
372
+ "type": "address",
373
+ "internalType": "address"
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "type": "error",
379
+ "name": "ProxyDeployFailed",
380
+ "inputs": []
381
+ },
382
+ {
383
+ "type": "error",
384
+ "name": "TargetDeployFailed",
385
+ "inputs": []
386
+ },
387
+ {
388
+ "type": "error",
389
+ "name": "UUPSUnauthorizedCallContext",
390
+ "inputs": []
391
+ },
392
+ {
393
+ "type": "error",
394
+ "name": "UUPSUnsupportedProxiableUUID",
395
+ "inputs": [
396
+ {
397
+ "name": "slot",
398
+ "type": "bytes32",
399
+ "internalType": "bytes32"
400
+ }
401
+ ]
402
+ }
403
+ ] as const satisfies Abi