@libid/contracts 0.14.0 → 0.15.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.
- package/README.md +45 -40
- package/dist/abis/handleEscrow.d.ts +25 -25
- package/dist/abis/handleEscrow.js +32 -32
- package/dist/abis/handleEscrow.js.map +1 -1
- package/dist/abis/handleResolver.d.ts +1 -1
- package/dist/abis/handleResolver.js +1 -1
- package/dist/abis/handleResolver.js.map +1 -1
- package/dist/abis/{identityNames.d.ts → identityRegistry.d.ts} +140 -158
- package/dist/abis/{identityNames.d.ts.map → identityRegistry.d.ts.map} +1 -1
- package/dist/abis/{identityNames.js → identityRegistry.js} +171 -195
- package/dist/abis/identityRegistry.js.map +1 -0
- package/dist/abis/index.d.ts +1 -1
- package/dist/abis/index.d.ts.map +1 -1
- package/dist/abis/index.js +1 -1
- package/dist/abis/index.js.map +1 -1
- package/dist/calls/{identityNames.d.ts → identityRegistry.d.ts} +12 -12
- package/dist/calls/identityRegistry.d.ts.map +1 -0
- package/dist/calls/identityRegistry.js +55 -0
- package/dist/calls/identityRegistry.js.map +1 -0
- package/dist/calls/index.d.ts +1 -1
- package/dist/calls/index.d.ts.map +1 -1
- package/dist/calls/index.js +1 -1
- package/dist/calls/index.js.map +1 -1
- package/dist/ceremony/profiles.d.ts +34 -2
- package/dist/ceremony/profiles.d.ts.map +1 -1
- package/dist/ceremony/profiles.js +52 -2
- package/dist/ceremony/profiles.js.map +1 -1
- package/dist/identity/handle.d.ts +1 -1
- package/dist/identity/handle.d.ts.map +1 -1
- package/dist/identity/handle.js +10 -9
- package/dist/identity/handle.js.map +1 -1
- package/dist/identity/handleVectors.d.ts +3 -6
- package/dist/identity/handleVectors.d.ts.map +1 -1
- package/dist/identity/handleVectors.js +3 -13
- package/dist/identity/handleVectors.js.map +1 -1
- package/dist/identity/index.js +1 -1
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/node.d.ts +1 -2
- package/dist/identity/node.d.ts.map +1 -1
- package/dist/identity/node.js +10 -9
- package/dist/identity/node.js.map +1 -1
- package/dist/identity/resolve.d.ts +14 -15
- package/dist/identity/resolve.d.ts.map +1 -1
- package/dist/identity/resolve.js +58 -65
- package/dist/identity/resolve.js.map +1 -1
- package/package.json +7 -2
- package/src/abis/handleEscrow.ts +32 -32
- package/src/abis/handleResolver.ts +1 -1
- package/src/abis/{identityNames.ts → identityRegistry.ts} +170 -194
- package/src/abis/index.ts +1 -1
- package/src/calls/identityRegistry.ts +91 -0
- package/src/calls/index.ts +1 -1
- package/src/ceremony/profiles.ts +55 -2
- package/src/identity/handle.ts +12 -8
- package/src/identity/handleVectors.ts +3 -14
- package/src/identity/index.ts +1 -1
- package/src/identity/node.ts +10 -9
- package/src/identity/resolve.ts +95 -106
- package/dist/abis/identityNames.js.map +0 -1
- package/dist/calls/identityNames.d.ts.map +0 -1
- package/dist/calls/identityNames.js +0 -55
- package/dist/calls/identityNames.js.map +0 -1
- package/src/calls/identityNames.ts +0 -88
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by ts/packages/contracts/scripts/codegen.mjs. Do not edit.
|
|
2
|
-
// Source artifact: solidity/out/
|
|
2
|
+
// Source artifact: solidity/out/IdentityRegistry.sol/IdentityRegistry.json
|
|
3
3
|
|
|
4
4
|
import type { Abi } from 'viem'
|
|
5
5
|
|
|
6
|
-
export const
|
|
6
|
+
export const identityRegistryAbi = [
|
|
7
7
|
{
|
|
8
8
|
"type": "constructor",
|
|
9
9
|
"inputs": [],
|
|
@@ -11,7 +11,7 @@ export const identityNamesAbi = [
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"type": "function",
|
|
14
|
-
"name": "
|
|
14
|
+
"name": "OPERATION_DOMAIN",
|
|
15
15
|
"inputs": [],
|
|
16
16
|
"outputs": [
|
|
17
17
|
{
|
|
@@ -61,76 +61,6 @@ export const identityNamesAbi = [
|
|
|
61
61
|
],
|
|
62
62
|
"stateMutability": "view"
|
|
63
63
|
},
|
|
64
|
-
{
|
|
65
|
-
"type": "function",
|
|
66
|
-
"name": "accountCount",
|
|
67
|
-
"inputs": [
|
|
68
|
-
{
|
|
69
|
-
"name": "wallet",
|
|
70
|
-
"type": "address",
|
|
71
|
-
"internalType": "address"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"outputs": [
|
|
75
|
-
{
|
|
76
|
-
"name": "",
|
|
77
|
-
"type": "uint256",
|
|
78
|
-
"internalType": "uint256"
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"stateMutability": "view"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"type": "function",
|
|
85
|
-
"name": "accountsOf",
|
|
86
|
-
"inputs": [
|
|
87
|
-
{
|
|
88
|
-
"name": "wallet",
|
|
89
|
-
"type": "address",
|
|
90
|
-
"internalType": "address"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "from",
|
|
94
|
-
"type": "uint256",
|
|
95
|
-
"internalType": "uint256"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"name": "limit",
|
|
99
|
-
"type": "uint256",
|
|
100
|
-
"internalType": "uint256"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"outputs": [
|
|
104
|
-
{
|
|
105
|
-
"name": "out",
|
|
106
|
-
"type": "tuple[]",
|
|
107
|
-
"internalType": "struct IdentityNames.Account[]",
|
|
108
|
-
"components": [
|
|
109
|
-
{
|
|
110
|
-
"name": "platformId",
|
|
111
|
-
"type": "bytes32",
|
|
112
|
-
"internalType": "bytes32"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "userId",
|
|
116
|
-
"type": "string",
|
|
117
|
-
"internalType": "string"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "handle",
|
|
121
|
-
"type": "string",
|
|
122
|
-
"internalType": "string"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "handleCurrent",
|
|
126
|
-
"type": "bool",
|
|
127
|
-
"internalType": "bool"
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"stateMutability": "view"
|
|
133
|
-
},
|
|
134
64
|
{
|
|
135
65
|
"type": "function",
|
|
136
66
|
"name": "bind",
|
|
@@ -151,7 +81,7 @@ export const identityNamesAbi = [
|
|
|
151
81
|
"internalType": "bytes"
|
|
152
82
|
},
|
|
153
83
|
{
|
|
154
|
-
"name": "
|
|
84
|
+
"name": "publish",
|
|
155
85
|
"type": "bool",
|
|
156
86
|
"internalType": "bool"
|
|
157
87
|
}
|
|
@@ -161,41 +91,36 @@ export const identityNamesAbi = [
|
|
|
161
91
|
},
|
|
162
92
|
{
|
|
163
93
|
"type": "function",
|
|
164
|
-
"name": "
|
|
94
|
+
"name": "digestSpent",
|
|
165
95
|
"inputs": [
|
|
166
96
|
{
|
|
167
|
-
"name": "
|
|
97
|
+
"name": "digest",
|
|
168
98
|
"type": "bytes32",
|
|
169
99
|
"internalType": "bytes32"
|
|
170
100
|
}
|
|
171
101
|
],
|
|
172
102
|
"outputs": [
|
|
173
103
|
{
|
|
174
|
-
"name": "
|
|
175
|
-
"type": "
|
|
176
|
-
"internalType": "
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"name": "observedAt",
|
|
180
|
-
"type": "uint64",
|
|
181
|
-
"internalType": "uint64"
|
|
104
|
+
"name": "",
|
|
105
|
+
"type": "bool",
|
|
106
|
+
"internalType": "bool"
|
|
182
107
|
}
|
|
183
108
|
],
|
|
184
109
|
"stateMutability": "view"
|
|
185
110
|
},
|
|
186
111
|
{
|
|
187
112
|
"type": "function",
|
|
188
|
-
"name": "
|
|
113
|
+
"name": "handleBinding",
|
|
189
114
|
"inputs": [
|
|
190
115
|
{
|
|
191
|
-
"name": "
|
|
116
|
+
"name": "handleNode",
|
|
192
117
|
"type": "bytes32",
|
|
193
118
|
"internalType": "bytes32"
|
|
194
119
|
}
|
|
195
120
|
],
|
|
196
121
|
"outputs": [
|
|
197
122
|
{
|
|
198
|
-
"name": "
|
|
123
|
+
"name": "holder",
|
|
199
124
|
"type": "address",
|
|
200
125
|
"internalType": "address"
|
|
201
126
|
},
|
|
@@ -207,25 +132,6 @@ export const identityNamesAbi = [
|
|
|
207
132
|
],
|
|
208
133
|
"stateMutability": "view"
|
|
209
134
|
},
|
|
210
|
-
{
|
|
211
|
-
"type": "function",
|
|
212
|
-
"name": "digestSpent",
|
|
213
|
-
"inputs": [
|
|
214
|
-
{
|
|
215
|
-
"name": "digest",
|
|
216
|
-
"type": "bytes32",
|
|
217
|
-
"internalType": "bytes32"
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
"outputs": [
|
|
221
|
-
{
|
|
222
|
-
"name": "",
|
|
223
|
-
"type": "bool",
|
|
224
|
-
"internalType": "bool"
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
"stateMutability": "view"
|
|
228
|
-
},
|
|
229
135
|
{
|
|
230
136
|
"type": "function",
|
|
231
137
|
"name": "handleHashOf",
|
|
@@ -252,20 +158,7 @@ export const identityNamesAbi = [
|
|
|
252
158
|
},
|
|
253
159
|
{
|
|
254
160
|
"type": "function",
|
|
255
|
-
"name": "
|
|
256
|
-
"inputs": [
|
|
257
|
-
{
|
|
258
|
-
"name": "owner_",
|
|
259
|
-
"type": "address",
|
|
260
|
-
"internalType": "address"
|
|
261
|
-
}
|
|
262
|
-
],
|
|
263
|
-
"outputs": [],
|
|
264
|
-
"stateMutability": "nonpayable"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"type": "function",
|
|
268
|
-
"name": "nodeOf",
|
|
161
|
+
"name": "handleNodeOf",
|
|
269
162
|
"inputs": [
|
|
270
163
|
{
|
|
271
164
|
"name": "platformId",
|
|
@@ -289,7 +182,7 @@ export const identityNamesAbi = [
|
|
|
289
182
|
},
|
|
290
183
|
{
|
|
291
184
|
"type": "function",
|
|
292
|
-
"name": "
|
|
185
|
+
"name": "handleNodeOfHash",
|
|
293
186
|
"inputs": [
|
|
294
187
|
{
|
|
295
188
|
"name": "platformId",
|
|
@@ -313,50 +206,133 @@ export const identityNamesAbi = [
|
|
|
313
206
|
},
|
|
314
207
|
{
|
|
315
208
|
"type": "function",
|
|
316
|
-
"name": "
|
|
317
|
-
"inputs": [
|
|
209
|
+
"name": "idBinding",
|
|
210
|
+
"inputs": [
|
|
211
|
+
{
|
|
212
|
+
"name": "idNode",
|
|
213
|
+
"type": "bytes32",
|
|
214
|
+
"internalType": "bytes32"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
318
217
|
"outputs": [
|
|
319
218
|
{
|
|
320
|
-
"name": "",
|
|
219
|
+
"name": "holder",
|
|
321
220
|
"type": "address",
|
|
322
221
|
"internalType": "address"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "observedAt",
|
|
225
|
+
"type": "uint64",
|
|
226
|
+
"internalType": "uint64"
|
|
323
227
|
}
|
|
324
228
|
],
|
|
325
229
|
"stateMutability": "view"
|
|
326
230
|
},
|
|
327
231
|
{
|
|
328
232
|
"type": "function",
|
|
329
|
-
"name": "
|
|
330
|
-
"inputs": [
|
|
233
|
+
"name": "identitiesOf",
|
|
234
|
+
"inputs": [
|
|
235
|
+
{
|
|
236
|
+
"name": "holder",
|
|
237
|
+
"type": "address",
|
|
238
|
+
"internalType": "address"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "from",
|
|
242
|
+
"type": "uint256",
|
|
243
|
+
"internalType": "uint256"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "limit",
|
|
247
|
+
"type": "uint256",
|
|
248
|
+
"internalType": "uint256"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
331
251
|
"outputs": [
|
|
332
252
|
{
|
|
333
|
-
"name": "",
|
|
253
|
+
"name": "out",
|
|
254
|
+
"type": "tuple[]",
|
|
255
|
+
"internalType": "struct IdentityRegistry.Identity[]",
|
|
256
|
+
"components": [
|
|
257
|
+
{
|
|
258
|
+
"name": "platformId",
|
|
259
|
+
"type": "bytes32",
|
|
260
|
+
"internalType": "bytes32"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "id",
|
|
264
|
+
"type": "string",
|
|
265
|
+
"internalType": "string"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "handle",
|
|
269
|
+
"type": "string",
|
|
270
|
+
"internalType": "string"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "handleCurrent",
|
|
274
|
+
"type": "bool",
|
|
275
|
+
"internalType": "bool"
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"stateMutability": "view"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"type": "function",
|
|
284
|
+
"name": "identityCount",
|
|
285
|
+
"inputs": [
|
|
286
|
+
{
|
|
287
|
+
"name": "holder",
|
|
334
288
|
"type": "address",
|
|
335
289
|
"internalType": "address"
|
|
336
290
|
}
|
|
337
291
|
],
|
|
292
|
+
"outputs": [
|
|
293
|
+
{
|
|
294
|
+
"name": "",
|
|
295
|
+
"type": "uint256",
|
|
296
|
+
"internalType": "uint256"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
338
299
|
"stateMutability": "view"
|
|
339
300
|
},
|
|
340
301
|
{
|
|
341
302
|
"type": "function",
|
|
342
|
-
"name": "
|
|
303
|
+
"name": "initialize",
|
|
343
304
|
"inputs": [
|
|
344
305
|
{
|
|
345
|
-
"name": "
|
|
306
|
+
"name": "owner_",
|
|
346
307
|
"type": "address",
|
|
347
308
|
"internalType": "address"
|
|
348
|
-
}
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"outputs": [],
|
|
312
|
+
"stateMutability": "nonpayable"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"type": "function",
|
|
316
|
+
"name": "owner",
|
|
317
|
+
"inputs": [],
|
|
318
|
+
"outputs": [
|
|
349
319
|
{
|
|
350
|
-
"name": "
|
|
351
|
-
"type": "
|
|
352
|
-
"internalType": "
|
|
320
|
+
"name": "",
|
|
321
|
+
"type": "address",
|
|
322
|
+
"internalType": "address"
|
|
353
323
|
}
|
|
354
324
|
],
|
|
325
|
+
"stateMutability": "view"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"type": "function",
|
|
329
|
+
"name": "pendingOwner",
|
|
330
|
+
"inputs": [],
|
|
355
331
|
"outputs": [
|
|
356
332
|
{
|
|
357
333
|
"name": "",
|
|
358
|
-
"type": "
|
|
359
|
-
"internalType": "
|
|
334
|
+
"type": "address",
|
|
335
|
+
"internalType": "address"
|
|
360
336
|
}
|
|
361
337
|
],
|
|
362
338
|
"stateMutability": "view"
|
|
@@ -389,38 +365,31 @@ export const identityNamesAbi = [
|
|
|
389
365
|
},
|
|
390
366
|
{
|
|
391
367
|
"type": "function",
|
|
392
|
-
"name": "
|
|
368
|
+
"name": "publishedHandleOf",
|
|
393
369
|
"inputs": [
|
|
370
|
+
{
|
|
371
|
+
"name": "holder",
|
|
372
|
+
"type": "address",
|
|
373
|
+
"internalType": "address"
|
|
374
|
+
},
|
|
394
375
|
{
|
|
395
376
|
"name": "platformId",
|
|
396
377
|
"type": "bytes32",
|
|
397
378
|
"internalType": "bytes32"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"name": "verifierVersion",
|
|
401
|
-
"type": "uint16",
|
|
402
|
-
"internalType": "uint16"
|
|
403
379
|
}
|
|
404
380
|
],
|
|
405
381
|
"outputs": [
|
|
406
382
|
{
|
|
407
383
|
"name": "",
|
|
408
|
-
"type": "
|
|
409
|
-
"internalType": "
|
|
384
|
+
"type": "string",
|
|
385
|
+
"internalType": "string"
|
|
410
386
|
}
|
|
411
387
|
],
|
|
412
388
|
"stateMutability": "view"
|
|
413
389
|
},
|
|
414
390
|
{
|
|
415
391
|
"type": "function",
|
|
416
|
-
"name": "
|
|
417
|
-
"inputs": [],
|
|
418
|
-
"outputs": [],
|
|
419
|
-
"stateMutability": "pure"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"type": "function",
|
|
423
|
-
"name": "resolveHandle",
|
|
392
|
+
"name": "quoteBind",
|
|
424
393
|
"inputs": [
|
|
425
394
|
{
|
|
426
395
|
"name": "platformId",
|
|
@@ -428,23 +397,30 @@ export const identityNamesAbi = [
|
|
|
428
397
|
"internalType": "bytes32"
|
|
429
398
|
},
|
|
430
399
|
{
|
|
431
|
-
"name": "
|
|
432
|
-
"type": "
|
|
433
|
-
"internalType": "
|
|
400
|
+
"name": "verifierVersion",
|
|
401
|
+
"type": "uint16",
|
|
402
|
+
"internalType": "uint16"
|
|
434
403
|
}
|
|
435
404
|
],
|
|
436
405
|
"outputs": [
|
|
437
406
|
{
|
|
438
407
|
"name": "",
|
|
439
|
-
"type": "
|
|
440
|
-
"internalType": "
|
|
408
|
+
"type": "uint256",
|
|
409
|
+
"internalType": "uint256"
|
|
441
410
|
}
|
|
442
411
|
],
|
|
443
412
|
"stateMutability": "view"
|
|
444
413
|
},
|
|
445
414
|
{
|
|
446
415
|
"type": "function",
|
|
447
|
-
"name": "
|
|
416
|
+
"name": "renounceOwnership",
|
|
417
|
+
"inputs": [],
|
|
418
|
+
"outputs": [],
|
|
419
|
+
"stateMutability": "pure"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"type": "function",
|
|
423
|
+
"name": "resolveHandle",
|
|
448
424
|
"inputs": [
|
|
449
425
|
{
|
|
450
426
|
"name": "platformId",
|
|
@@ -452,7 +428,7 @@ export const identityNamesAbi = [
|
|
|
452
428
|
"internalType": "bytes32"
|
|
453
429
|
},
|
|
454
430
|
{
|
|
455
|
-
"name": "
|
|
431
|
+
"name": "handle",
|
|
456
432
|
"type": "string",
|
|
457
433
|
"internalType": "string"
|
|
458
434
|
}
|
|
@@ -468,7 +444,7 @@ export const identityNamesAbi = [
|
|
|
468
444
|
},
|
|
469
445
|
{
|
|
470
446
|
"type": "function",
|
|
471
|
-
"name": "
|
|
447
|
+
"name": "resolveHandleAndId",
|
|
472
448
|
"inputs": [
|
|
473
449
|
{
|
|
474
450
|
"name": "platformId",
|
|
@@ -481,14 +457,14 @@ export const identityNamesAbi = [
|
|
|
481
457
|
"internalType": "string"
|
|
482
458
|
},
|
|
483
459
|
{
|
|
484
|
-
"name": "
|
|
460
|
+
"name": "id",
|
|
485
461
|
"type": "string",
|
|
486
462
|
"internalType": "string"
|
|
487
463
|
}
|
|
488
464
|
],
|
|
489
465
|
"outputs": [
|
|
490
466
|
{
|
|
491
|
-
"name": "
|
|
467
|
+
"name": "holder",
|
|
492
468
|
"type": "address",
|
|
493
469
|
"internalType": "address"
|
|
494
470
|
},
|
|
@@ -502,24 +478,24 @@ export const identityNamesAbi = [
|
|
|
502
478
|
},
|
|
503
479
|
{
|
|
504
480
|
"type": "function",
|
|
505
|
-
"name": "
|
|
481
|
+
"name": "resolveId",
|
|
506
482
|
"inputs": [
|
|
507
|
-
{
|
|
508
|
-
"name": "wallet",
|
|
509
|
-
"type": "address",
|
|
510
|
-
"internalType": "address"
|
|
511
|
-
},
|
|
512
483
|
{
|
|
513
484
|
"name": "platformId",
|
|
514
485
|
"type": "bytes32",
|
|
515
486
|
"internalType": "bytes32"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "id",
|
|
490
|
+
"type": "string",
|
|
491
|
+
"internalType": "string"
|
|
516
492
|
}
|
|
517
493
|
],
|
|
518
494
|
"outputs": [
|
|
519
495
|
{
|
|
520
496
|
"name": "",
|
|
521
|
-
"type": "
|
|
522
|
-
"internalType": "
|
|
497
|
+
"type": "address",
|
|
498
|
+
"internalType": "address"
|
|
523
499
|
}
|
|
524
500
|
],
|
|
525
501
|
"stateMutability": "view"
|
|
@@ -708,7 +684,7 @@ export const identityNamesAbi = [
|
|
|
708
684
|
"internalType": "bytes32"
|
|
709
685
|
},
|
|
710
686
|
{
|
|
711
|
-
"name": "
|
|
687
|
+
"name": "holder",
|
|
712
688
|
"type": "address",
|
|
713
689
|
"indexed": true,
|
|
714
690
|
"internalType": "address"
|
|
@@ -745,7 +721,7 @@ export const identityNamesAbi = [
|
|
|
745
721
|
"internalType": "bytes32"
|
|
746
722
|
},
|
|
747
723
|
{
|
|
748
|
-
"name": "
|
|
724
|
+
"name": "holder",
|
|
749
725
|
"type": "address",
|
|
750
726
|
"indexed": true,
|
|
751
727
|
"internalType": "address"
|
|
@@ -753,12 +729,31 @@ export const identityNamesAbi = [
|
|
|
753
729
|
],
|
|
754
730
|
"anonymous": false
|
|
755
731
|
},
|
|
732
|
+
{
|
|
733
|
+
"type": "event",
|
|
734
|
+
"name": "HandleUnpublished",
|
|
735
|
+
"inputs": [
|
|
736
|
+
{
|
|
737
|
+
"name": "holder",
|
|
738
|
+
"type": "address",
|
|
739
|
+
"indexed": true,
|
|
740
|
+
"internalType": "address"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"name": "platformId",
|
|
744
|
+
"type": "bytes32",
|
|
745
|
+
"indexed": true,
|
|
746
|
+
"internalType": "bytes32"
|
|
747
|
+
}
|
|
748
|
+
],
|
|
749
|
+
"anonymous": false
|
|
750
|
+
},
|
|
756
751
|
{
|
|
757
752
|
"type": "event",
|
|
758
753
|
"name": "IdentityBound",
|
|
759
754
|
"inputs": [
|
|
760
755
|
{
|
|
761
|
-
"name": "
|
|
756
|
+
"name": "holder",
|
|
762
757
|
"type": "address",
|
|
763
758
|
"indexed": true,
|
|
764
759
|
"internalType": "address"
|
|
@@ -782,7 +777,7 @@ export const identityNamesAbi = [
|
|
|
782
777
|
"internalType": "bytes32"
|
|
783
778
|
},
|
|
784
779
|
{
|
|
785
|
-
"name": "
|
|
780
|
+
"name": "id",
|
|
786
781
|
"type": "string",
|
|
787
782
|
"indexed": false,
|
|
788
783
|
"internalType": "string"
|
|
@@ -827,25 +822,6 @@ export const identityNamesAbi = [
|
|
|
827
822
|
],
|
|
828
823
|
"anonymous": false
|
|
829
824
|
},
|
|
830
|
-
{
|
|
831
|
-
"type": "event",
|
|
832
|
-
"name": "NameUnpublished",
|
|
833
|
-
"inputs": [
|
|
834
|
-
{
|
|
835
|
-
"name": "owner",
|
|
836
|
-
"type": "address",
|
|
837
|
-
"indexed": true,
|
|
838
|
-
"internalType": "address"
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
"name": "platformId",
|
|
842
|
-
"type": "bytes32",
|
|
843
|
-
"indexed": true,
|
|
844
|
-
"internalType": "bytes32"
|
|
845
|
-
}
|
|
846
|
-
],
|
|
847
|
-
"anonymous": false
|
|
848
|
-
},
|
|
849
825
|
{
|
|
850
826
|
"type": "event",
|
|
851
827
|
"name": "OwnershipTransferStarted",
|
|
@@ -1031,12 +1007,12 @@ export const identityNamesAbi = [
|
|
|
1031
1007
|
},
|
|
1032
1008
|
{
|
|
1033
1009
|
"type": "error",
|
|
1034
|
-
"name": "
|
|
1010
|
+
"name": "NoId",
|
|
1035
1011
|
"inputs": []
|
|
1036
1012
|
},
|
|
1037
1013
|
{
|
|
1038
1014
|
"type": "error",
|
|
1039
|
-
"name": "
|
|
1015
|
+
"name": "NoObservationTime",
|
|
1040
1016
|
"inputs": []
|
|
1041
1017
|
},
|
|
1042
1018
|
{
|
package/src/abis/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ts/packages/contracts/scripts/codegen.mjs. Do not edit.
|
|
2
2
|
// Source artifact: solidity/out/*
|
|
3
|
-
export {
|
|
3
|
+
export { identityRegistryAbi } from './identityRegistry.js'
|
|
4
4
|
export { handleResolverAbi } from './handleResolver.js'
|
|
5
5
|
export { handleEscrowAbi } from './handleEscrow.js'
|
|
6
6
|
export { notaryServiceAbi } from './notaryService.js'
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// Generated by ts/packages/contracts/scripts/codegen.mjs. Do not edit.
|
|
2
|
+
// Source artifact: solidity/out/IdentityRegistry.sol/IdentityRegistry.json
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
type Address,
|
|
6
|
+
type ContractFunctionArgs,
|
|
7
|
+
type ContractFunctionName,
|
|
8
|
+
encodeFunctionData,
|
|
9
|
+
} from 'viem'
|
|
10
|
+
|
|
11
|
+
import type { Call } from '../call.js'
|
|
12
|
+
import { identityRegistryAbi } from '../abis/identityRegistry.js'
|
|
13
|
+
|
|
14
|
+
type Mutability = 'nonpayable' | 'payable'
|
|
15
|
+
type IdentityRegistryFn = ContractFunctionName<typeof identityRegistryAbi, Mutability>
|
|
16
|
+
type IdentityRegistryArgs<F extends IdentityRegistryFn> = ContractFunctionArgs<
|
|
17
|
+
typeof identityRegistryAbi,
|
|
18
|
+
Mutability,
|
|
19
|
+
F
|
|
20
|
+
>
|
|
21
|
+
|
|
22
|
+
export function acceptOwnership(
|
|
23
|
+
to: Address,
|
|
24
|
+
...args: IdentityRegistryArgs<'acceptOwnership'>
|
|
25
|
+
): Call {
|
|
26
|
+
return {
|
|
27
|
+
to,
|
|
28
|
+
data: encodeFunctionData({ abi: identityRegistryAbi, functionName: 'acceptOwnership', args }),
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function bind(to: Address, value: bigint, ...args: IdentityRegistryArgs<'bind'>): Call {
|
|
33
|
+
return {
|
|
34
|
+
to,
|
|
35
|
+
value,
|
|
36
|
+
data: encodeFunctionData({ abi: identityRegistryAbi, functionName: 'bind', args }),
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function initialize(to: Address, ...args: IdentityRegistryArgs<'initialize'>): Call {
|
|
41
|
+
return {
|
|
42
|
+
to,
|
|
43
|
+
data: encodeFunctionData({ abi: identityRegistryAbi, functionName: 'initialize', args }),
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function setPlatform(to: Address, ...args: IdentityRegistryArgs<'setPlatform'>): Call {
|
|
48
|
+
return {
|
|
49
|
+
to,
|
|
50
|
+
data: encodeFunctionData({ abi: identityRegistryAbi, functionName: 'setPlatform', args }),
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function setProofVerifier(
|
|
55
|
+
to: Address,
|
|
56
|
+
...args: IdentityRegistryArgs<'setProofVerifier'>
|
|
57
|
+
): Call {
|
|
58
|
+
return {
|
|
59
|
+
to,
|
|
60
|
+
data: encodeFunctionData({ abi: identityRegistryAbi, functionName: 'setProofVerifier', args }),
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function transferOwnership(
|
|
65
|
+
to: Address,
|
|
66
|
+
...args: IdentityRegistryArgs<'transferOwnership'>
|
|
67
|
+
): Call {
|
|
68
|
+
return {
|
|
69
|
+
to,
|
|
70
|
+
data: encodeFunctionData({ abi: identityRegistryAbi, functionName: 'transferOwnership', args }),
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function unpublish(to: Address, ...args: IdentityRegistryArgs<'unpublish'>): Call {
|
|
75
|
+
return {
|
|
76
|
+
to,
|
|
77
|
+
data: encodeFunctionData({ abi: identityRegistryAbi, functionName: 'unpublish', args }),
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function upgradeToAndCall(
|
|
82
|
+
to: Address,
|
|
83
|
+
value: bigint,
|
|
84
|
+
...args: IdentityRegistryArgs<'upgradeToAndCall'>
|
|
85
|
+
): Call {
|
|
86
|
+
return {
|
|
87
|
+
to,
|
|
88
|
+
value,
|
|
89
|
+
data: encodeFunctionData({ abi: identityRegistryAbi, functionName: 'upgradeToAndCall', args }),
|
|
90
|
+
}
|
|
91
|
+
}
|