@libid/contracts 0.3.0 → 0.4.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/dist/abis/googleOidcVerifier.d.ts +137 -0
- package/dist/abis/googleOidcVerifier.d.ts.map +1 -1
- package/dist/abis/googleOidcVerifier.js +175 -0
- package/dist/abis/googleOidcVerifier.js.map +1 -1
- package/dist/abis/identityJwksRoots.d.ts +117 -0
- package/dist/abis/identityJwksRoots.d.ts.map +1 -1
- package/dist/abis/identityJwksRoots.js +149 -0
- package/dist/abis/identityJwksRoots.js.map +1 -1
- package/dist/abis/identityNames.d.ts +197 -14
- package/dist/abis/identityNames.d.ts.map +1 -1
- package/dist/abis/identityNames.js +249 -14
- package/dist/abis/identityNames.js.map +1 -1
- package/dist/identity/bind.d.ts +1 -0
- package/dist/identity/bind.d.ts.map +1 -1
- package/dist/identity/bind.js +31 -0
- package/dist/identity/bind.js.map +1 -1
- package/package.json +1 -1
- package/src/abis/googleOidcVerifier.ts +175 -0
- package/src/abis/identityJwksRoots.ts +149 -0
- package/src/abis/identityNames.ts +249 -14
- package/src/identity/bind.ts +38 -0
|
@@ -61,6 +61,32 @@ export const googleOidcVerifierAbi = [
|
|
|
61
61
|
],
|
|
62
62
|
"stateMutability": "view"
|
|
63
63
|
},
|
|
64
|
+
{
|
|
65
|
+
"type": "function",
|
|
66
|
+
"name": "MAX_TRACKED_KIDS",
|
|
67
|
+
"inputs": [],
|
|
68
|
+
"outputs": [
|
|
69
|
+
{
|
|
70
|
+
"name": "",
|
|
71
|
+
"type": "uint256",
|
|
72
|
+
"internalType": "uint256"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"stateMutability": "view"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "function",
|
|
79
|
+
"name": "RENEWAL_MARGIN",
|
|
80
|
+
"inputs": [],
|
|
81
|
+
"outputs": [
|
|
82
|
+
{
|
|
83
|
+
"name": "",
|
|
84
|
+
"type": "uint256",
|
|
85
|
+
"internalType": "uint256"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"stateMutability": "view"
|
|
89
|
+
},
|
|
64
90
|
{
|
|
65
91
|
"type": "function",
|
|
66
92
|
"name": "TOTAL_PUBLIC_INPUTS",
|
|
@@ -94,6 +120,41 @@ export const googleOidcVerifierAbi = [
|
|
|
94
120
|
"outputs": [],
|
|
95
121
|
"stateMutability": "nonpayable"
|
|
96
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"type": "function",
|
|
125
|
+
"name": "currentRoots",
|
|
126
|
+
"inputs": [],
|
|
127
|
+
"outputs": [
|
|
128
|
+
{
|
|
129
|
+
"name": "infos",
|
|
130
|
+
"type": "tuple[]",
|
|
131
|
+
"internalType": "struct GoogleOidcVerifier.RootInfo[]",
|
|
132
|
+
"components": [
|
|
133
|
+
{
|
|
134
|
+
"name": "kidHash",
|
|
135
|
+
"type": "bytes32",
|
|
136
|
+
"internalType": "bytes32"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "modulusHash",
|
|
140
|
+
"type": "bytes32",
|
|
141
|
+
"internalType": "bytes32"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "observedAt",
|
|
145
|
+
"type": "uint256",
|
|
146
|
+
"internalType": "uint256"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "expiresAt",
|
|
150
|
+
"type": "uint256",
|
|
151
|
+
"internalType": "uint256"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"stateMutability": "view"
|
|
157
|
+
},
|
|
97
158
|
{
|
|
98
159
|
"type": "function",
|
|
99
160
|
"name": "expectedAudienceHash",
|
|
@@ -126,6 +187,19 @@ export const googleOidcVerifierAbi = [
|
|
|
126
187
|
],
|
|
127
188
|
"stateMutability": "view"
|
|
128
189
|
},
|
|
190
|
+
{
|
|
191
|
+
"type": "function",
|
|
192
|
+
"name": "freshestObservedAt",
|
|
193
|
+
"inputs": [],
|
|
194
|
+
"outputs": [
|
|
195
|
+
{
|
|
196
|
+
"name": "",
|
|
197
|
+
"type": "uint256",
|
|
198
|
+
"internalType": "uint256"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"stateMutability": "view"
|
|
202
|
+
},
|
|
129
203
|
{
|
|
130
204
|
"type": "function",
|
|
131
205
|
"name": "initialize",
|
|
@@ -173,6 +247,19 @@ export const googleOidcVerifierAbi = [
|
|
|
173
247
|
],
|
|
174
248
|
"stateMutability": "view"
|
|
175
249
|
},
|
|
250
|
+
{
|
|
251
|
+
"type": "function",
|
|
252
|
+
"name": "needsRotation",
|
|
253
|
+
"inputs": [],
|
|
254
|
+
"outputs": [
|
|
255
|
+
{
|
|
256
|
+
"name": "",
|
|
257
|
+
"type": "bool",
|
|
258
|
+
"internalType": "bool"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"stateMutability": "view"
|
|
262
|
+
},
|
|
176
263
|
{
|
|
177
264
|
"type": "function",
|
|
178
265
|
"name": "notary",
|
|
@@ -251,6 +338,13 @@ export const googleOidcVerifierAbi = [
|
|
|
251
338
|
],
|
|
252
339
|
"stateMutability": "view"
|
|
253
340
|
},
|
|
341
|
+
{
|
|
342
|
+
"type": "function",
|
|
343
|
+
"name": "prune",
|
|
344
|
+
"inputs": [],
|
|
345
|
+
"outputs": [],
|
|
346
|
+
"stateMutability": "nonpayable"
|
|
347
|
+
},
|
|
254
348
|
{
|
|
255
349
|
"type": "function",
|
|
256
350
|
"name": "registry",
|
|
@@ -461,6 +555,19 @@ export const googleOidcVerifierAbi = [
|
|
|
461
555
|
],
|
|
462
556
|
"stateMutability": "view"
|
|
463
557
|
},
|
|
558
|
+
{
|
|
559
|
+
"type": "function",
|
|
560
|
+
"name": "untrustModulus",
|
|
561
|
+
"inputs": [
|
|
562
|
+
{
|
|
563
|
+
"name": "modulusHash",
|
|
564
|
+
"type": "bytes32",
|
|
565
|
+
"internalType": "bytes32"
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"outputs": [],
|
|
569
|
+
"stateMutability": "nonpayable"
|
|
570
|
+
},
|
|
464
571
|
{
|
|
465
572
|
"type": "function",
|
|
466
573
|
"name": "upgradeToAndCall",
|
|
@@ -650,6 +757,19 @@ export const googleOidcVerifierAbi = [
|
|
|
650
757
|
],
|
|
651
758
|
"anonymous": false
|
|
652
759
|
},
|
|
760
|
+
{
|
|
761
|
+
"type": "event",
|
|
762
|
+
"name": "ModulusUntrusted",
|
|
763
|
+
"inputs": [
|
|
764
|
+
{
|
|
765
|
+
"name": "modulusHash",
|
|
766
|
+
"type": "bytes32",
|
|
767
|
+
"indexed": true,
|
|
768
|
+
"internalType": "bytes32"
|
|
769
|
+
}
|
|
770
|
+
],
|
|
771
|
+
"anonymous": false
|
|
772
|
+
},
|
|
653
773
|
{
|
|
654
774
|
"type": "event",
|
|
655
775
|
"name": "OwnershipTransferStarted",
|
|
@@ -688,6 +808,56 @@ export const googleOidcVerifierAbi = [
|
|
|
688
808
|
],
|
|
689
809
|
"anonymous": false
|
|
690
810
|
},
|
|
811
|
+
{
|
|
812
|
+
"type": "event",
|
|
813
|
+
"name": "RootApplied",
|
|
814
|
+
"inputs": [
|
|
815
|
+
{
|
|
816
|
+
"name": "kidHash",
|
|
817
|
+
"type": "bytes32",
|
|
818
|
+
"indexed": true,
|
|
819
|
+
"internalType": "bytes32"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "modulusHash",
|
|
823
|
+
"type": "bytes32",
|
|
824
|
+
"indexed": true,
|
|
825
|
+
"internalType": "bytes32"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"name": "observedAt",
|
|
829
|
+
"type": "uint256",
|
|
830
|
+
"indexed": false,
|
|
831
|
+
"internalType": "uint256"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "expiresAt",
|
|
835
|
+
"type": "uint256",
|
|
836
|
+
"indexed": false,
|
|
837
|
+
"internalType": "uint256"
|
|
838
|
+
}
|
|
839
|
+
],
|
|
840
|
+
"anonymous": false
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"type": "event",
|
|
844
|
+
"name": "RootPruned",
|
|
845
|
+
"inputs": [
|
|
846
|
+
{
|
|
847
|
+
"name": "kidHash",
|
|
848
|
+
"type": "bytes32",
|
|
849
|
+
"indexed": true,
|
|
850
|
+
"internalType": "bytes32"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"name": "modulusHash",
|
|
854
|
+
"type": "bytes32",
|
|
855
|
+
"indexed": false,
|
|
856
|
+
"internalType": "bytes32"
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
"anonymous": false
|
|
860
|
+
},
|
|
691
861
|
{
|
|
692
862
|
"type": "event",
|
|
693
863
|
"name": "Upgraded",
|
|
@@ -835,6 +1005,11 @@ export const googleOidcVerifierAbi = [
|
|
|
835
1005
|
"name": "StaleProof",
|
|
836
1006
|
"inputs": []
|
|
837
1007
|
},
|
|
1008
|
+
{
|
|
1009
|
+
"type": "error",
|
|
1010
|
+
"name": "TooManyKids",
|
|
1011
|
+
"inputs": []
|
|
1012
|
+
},
|
|
838
1013
|
{
|
|
839
1014
|
"type": "error",
|
|
840
1015
|
"name": "UUPSUnauthorizedCallContext",
|
|
@@ -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",
|