@libid/contracts 0.1.0 → 0.3.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.
Files changed (48) hide show
  1. package/dist/abis/gitHubIdentityVerifier.d.ts +21 -15
  2. package/dist/abis/gitHubIdentityVerifier.d.ts.map +1 -1
  3. package/dist/abis/gitHubIdentityVerifier.js +27 -19
  4. package/dist/abis/gitHubIdentityVerifier.js.map +1 -1
  5. package/dist/abis/googleOidcVerifier.d.ts +18 -60
  6. package/dist/abis/googleOidcVerifier.d.ts.map +1 -1
  7. package/dist/abis/googleOidcVerifier.js +19 -74
  8. package/dist/abis/googleOidcVerifier.js.map +1 -1
  9. package/dist/abis/identityJwksRoots.d.ts +18 -60
  10. package/dist/abis/identityJwksRoots.d.ts.map +1 -1
  11. package/dist/abis/identityJwksRoots.js +19 -74
  12. package/dist/abis/identityJwksRoots.js.map +1 -1
  13. package/dist/abis/index.d.ts +2 -1
  14. package/dist/abis/index.d.ts.map +1 -1
  15. package/dist/abis/index.js +2 -1
  16. package/dist/abis/index.js.map +1 -1
  17. package/dist/abis/libidFactory.d.ts +306 -0
  18. package/dist/abis/libidFactory.d.ts.map +1 -0
  19. package/dist/abis/libidFactory.js +401 -0
  20. package/dist/abis/libidFactory.js.map +1 -0
  21. package/dist/abis/{notaryRegistry.d.ts → notary.d.ts} +36 -45
  22. package/dist/abis/notary.d.ts.map +1 -0
  23. package/dist/abis/{notaryRegistry.js → notary.js} +44 -56
  24. package/dist/abis/notary.js.map +1 -0
  25. package/dist/abis/registry.d.ts +15 -11
  26. package/dist/abis/registry.d.ts.map +1 -1
  27. package/dist/abis/registry.js +19 -14
  28. package/dist/abis/registry.js.map +1 -1
  29. package/dist/abis/xIdentityVerifier.d.ts +21 -35
  30. package/dist/abis/xIdentityVerifier.d.ts.map +1 -1
  31. package/dist/abis/xIdentityVerifier.js +27 -46
  32. package/dist/abis/xIdentityVerifier.js.map +1 -1
  33. package/dist/abis/xZkVerifier.d.ts +11 -31
  34. package/dist/abis/xZkVerifier.d.ts.map +1 -1
  35. package/dist/abis/xZkVerifier.js +14 -41
  36. package/dist/abis/xZkVerifier.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/abis/gitHubIdentityVerifier.ts +27 -19
  39. package/src/abis/googleOidcVerifier.ts +19 -74
  40. package/src/abis/identityJwksRoots.ts +19 -74
  41. package/src/abis/index.ts +2 -1
  42. package/src/abis/libidFactory.ts +403 -0
  43. package/src/abis/{notaryRegistry.ts → notary.ts} +43 -55
  44. package/src/abis/registry.ts +19 -14
  45. package/src/abis/xIdentityVerifier.ts +27 -46
  46. package/src/abis/xZkVerifier.ts +14 -41
  47. package/dist/abis/notaryRegistry.d.ts.map +0 -1
  48. package/dist/abis/notaryRegistry.js.map +0 -1
@@ -94,19 +94,6 @@ export const googleOidcVerifierAbi = [
94
94
  "outputs": [],
95
95
  "stateMutability": "nonpayable"
96
96
  },
97
- {
98
- "type": "function",
99
- "name": "addNotary",
100
- "inputs": [
101
- {
102
- "name": "n",
103
- "type": "address",
104
- "internalType": "address"
105
- }
106
- ],
107
- "outputs": [],
108
- "stateMutability": "nonpayable"
109
- },
110
97
  {
111
98
  "type": "function",
112
99
  "name": "expectedAudienceHash",
@@ -154,7 +141,7 @@ export const googleOidcVerifierAbi = [
154
141
  "internalType": "address"
155
142
  },
156
143
  {
157
- "name": "initialNotary",
144
+ "name": "notaryContract_",
158
145
  "type": "address",
159
146
  "internalType": "address"
160
147
  },
@@ -169,38 +156,45 @@ export const googleOidcVerifierAbi = [
169
156
  },
170
157
  {
171
158
  "type": "function",
172
- "name": "isNotary",
159
+ "name": "modulusOfKid",
173
160
  "inputs": [
174
161
  {
175
162
  "name": "",
176
- "type": "address",
177
- "internalType": "address"
163
+ "type": "bytes32",
164
+ "internalType": "bytes32"
178
165
  }
179
166
  ],
180
167
  "outputs": [
181
168
  {
182
169
  "name": "",
183
- "type": "bool",
184
- "internalType": "bool"
170
+ "type": "bytes32",
171
+ "internalType": "bytes32"
185
172
  }
186
173
  ],
187
174
  "stateMutability": "view"
188
175
  },
189
176
  {
190
177
  "type": "function",
191
- "name": "modulusOfKid",
192
- "inputs": [
178
+ "name": "notary",
179
+ "inputs": [],
180
+ "outputs": [
193
181
  {
194
182
  "name": "",
195
- "type": "bytes32",
196
- "internalType": "bytes32"
183
+ "type": "address",
184
+ "internalType": "address"
197
185
  }
198
186
  ],
187
+ "stateMutability": "view"
188
+ },
189
+ {
190
+ "type": "function",
191
+ "name": "notaryContract",
192
+ "inputs": [],
199
193
  "outputs": [
200
194
  {
201
195
  "name": "",
202
- "type": "bytes32",
203
- "internalType": "bytes32"
196
+ "type": "address",
197
+ "internalType": "contract INotary"
204
198
  }
205
199
  ],
206
200
  "stateMutability": "view"
@@ -270,19 +264,6 @@ export const googleOidcVerifierAbi = [
270
264
  ],
271
265
  "stateMutability": "view"
272
266
  },
273
- {
274
- "type": "function",
275
- "name": "removeNotary",
276
- "inputs": [
277
- {
278
- "name": "n",
279
- "type": "address",
280
- "internalType": "address"
281
- }
282
- ],
283
- "outputs": [],
284
- "stateMutability": "nonpayable"
285
- },
286
267
  {
287
268
  "type": "function",
288
269
  "name": "renounceOwnership",
@@ -669,32 +650,6 @@ export const googleOidcVerifierAbi = [
669
650
  ],
670
651
  "anonymous": false
671
652
  },
672
- {
673
- "type": "event",
674
- "name": "NotaryAdded",
675
- "inputs": [
676
- {
677
- "name": "notary",
678
- "type": "address",
679
- "indexed": true,
680
- "internalType": "address"
681
- }
682
- ],
683
- "anonymous": false
684
- },
685
- {
686
- "type": "event",
687
- "name": "NotaryRemoved",
688
- "inputs": [
689
- {
690
- "name": "notary",
691
- "type": "address",
692
- "indexed": true,
693
- "internalType": "address"
694
- }
695
- ],
696
- "anonymous": false
697
- },
698
653
  {
699
654
  "type": "event",
700
655
  "name": "OwnershipTransferStarted",
@@ -823,21 +778,11 @@ export const googleOidcVerifierAbi = [
823
778
  "name": "InvalidModulusLength",
824
779
  "inputs": []
825
780
  },
826
- {
827
- "type": "error",
828
- "name": "InvalidSignatureV",
829
- "inputs": []
830
- },
831
781
  {
832
782
  "type": "error",
833
783
  "name": "JwtExpired",
834
784
  "inputs": []
835
785
  },
836
- {
837
- "type": "error",
838
- "name": "MalleableSignature",
839
- "inputs": []
840
- },
841
786
  {
842
787
  "type": "error",
843
788
  "name": "MerkleMismatch",
@@ -68,19 +68,6 @@ export const identityJwksRootsAbi = [
68
68
  "outputs": [],
69
69
  "stateMutability": "nonpayable"
70
70
  },
71
- {
72
- "type": "function",
73
- "name": "addNotary",
74
- "inputs": [
75
- {
76
- "name": "n",
77
- "type": "address",
78
- "internalType": "address"
79
- }
80
- ],
81
- "outputs": [],
82
- "stateMutability": "nonpayable"
83
- },
84
71
  {
85
72
  "type": "function",
86
73
  "name": "expiresAtKid",
@@ -110,7 +97,7 @@ export const identityJwksRootsAbi = [
110
97
  "internalType": "address"
111
98
  },
112
99
  {
113
- "name": "initialNotary",
100
+ "name": "notaryContract_",
114
101
  "type": "address",
115
102
  "internalType": "address"
116
103
  }
@@ -120,38 +107,45 @@ export const identityJwksRootsAbi = [
120
107
  },
121
108
  {
122
109
  "type": "function",
123
- "name": "isNotary",
110
+ "name": "modulusOfKid",
124
111
  "inputs": [
125
112
  {
126
113
  "name": "",
127
- "type": "address",
128
- "internalType": "address"
114
+ "type": "bytes32",
115
+ "internalType": "bytes32"
129
116
  }
130
117
  ],
131
118
  "outputs": [
132
119
  {
133
120
  "name": "",
134
- "type": "bool",
135
- "internalType": "bool"
121
+ "type": "bytes32",
122
+ "internalType": "bytes32"
136
123
  }
137
124
  ],
138
125
  "stateMutability": "view"
139
126
  },
140
127
  {
141
128
  "type": "function",
142
- "name": "modulusOfKid",
143
- "inputs": [
129
+ "name": "notary",
130
+ "inputs": [],
131
+ "outputs": [
144
132
  {
145
133
  "name": "",
146
- "type": "bytes32",
147
- "internalType": "bytes32"
134
+ "type": "address",
135
+ "internalType": "address"
148
136
  }
149
137
  ],
138
+ "stateMutability": "view"
139
+ },
140
+ {
141
+ "type": "function",
142
+ "name": "notaryContract",
143
+ "inputs": [],
150
144
  "outputs": [
151
145
  {
152
146
  "name": "",
153
- "type": "bytes32",
154
- "internalType": "bytes32"
147
+ "type": "address",
148
+ "internalType": "contract INotary"
155
149
  }
156
150
  ],
157
151
  "stateMutability": "view"
@@ -195,19 +189,6 @@ export const identityJwksRootsAbi = [
195
189
  ],
196
190
  "stateMutability": "view"
197
191
  },
198
- {
199
- "type": "function",
200
- "name": "removeNotary",
201
- "inputs": [
202
- {
203
- "name": "n",
204
- "type": "address",
205
- "internalType": "address"
206
- }
207
- ],
208
- "outputs": [],
209
- "stateMutability": "nonpayable"
210
- },
211
192
  {
212
193
  "type": "function",
213
194
  "name": "renounceOwnership",
@@ -441,32 +422,6 @@ export const identityJwksRootsAbi = [
441
422
  ],
442
423
  "anonymous": false
443
424
  },
444
- {
445
- "type": "event",
446
- "name": "NotaryAdded",
447
- "inputs": [
448
- {
449
- "name": "notary",
450
- "type": "address",
451
- "indexed": true,
452
- "internalType": "address"
453
- }
454
- ],
455
- "anonymous": false
456
- },
457
- {
458
- "type": "event",
459
- "name": "NotaryRemoved",
460
- "inputs": [
461
- {
462
- "name": "notary",
463
- "type": "address",
464
- "indexed": true,
465
- "internalType": "address"
466
- }
467
- ],
468
- "anonymous": false
469
- },
470
425
  {
471
426
  "type": "event",
472
427
  "name": "OwnershipTransferStarted",
@@ -575,16 +530,6 @@ export const identityJwksRootsAbi = [
575
530
  "name": "InvalidModulusLength",
576
531
  "inputs": []
577
532
  },
578
- {
579
- "type": "error",
580
- "name": "InvalidSignatureV",
581
- "inputs": []
582
- },
583
- {
584
- "type": "error",
585
- "name": "MalleableSignature",
586
- "inputs": []
587
- },
588
533
  {
589
534
  "type": "error",
590
535
  "name": "MerkleMismatch",
package/src/abis/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Generated by ts/packages/contracts/scripts/codegen.mjs. Do not edit.
2
2
  // Source artifact: solidity/out/*
3
3
  export { registryAbi } from './registry.js'
4
- export { notaryRegistryAbi } from './notaryRegistry.js'
4
+ export { notaryAbi } from './notary.js'
5
5
  export { walletFactoryAbi } from './walletFactory.js'
6
6
  export { webWalletAbi } from './webWallet.js'
7
7
  export { bankAbi } from './bank.js'
@@ -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'