@pearldigital/p3-abis 4.0.2 → 4.0.3

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.
@@ -1,781 +0,0 @@
1
- // Auto-generated by scripts/build-abis.mjs. Do not edit by hand.
2
- export declare const abi: [
3
- {
4
- "type": "function",
5
- "name": "getAgentEpoch",
6
- "inputs": [],
7
- "outputs": [
8
- {
9
- "name": "",
10
- "type": "uint256",
11
- "internalType": "uint256"
12
- }
13
- ],
14
- "stateMutability": "view"
15
- },
16
- {
17
- "type": "function",
18
- "name": "getAgentRecord",
19
- "inputs": [
20
- {
21
- "name": "wallet_",
22
- "type": "address",
23
- "internalType": "address"
24
- }
25
- ],
26
- "outputs": [
27
- {
28
- "name": "",
29
- "type": "tuple",
30
- "internalType": "struct IP3RegistryMirror.AgentMirrorRecord",
31
- "components": [
32
- {
33
- "name": "isAgent",
34
- "type": "bool",
35
- "internalType": "bool"
36
- },
37
- {
38
- "name": "capabilities",
39
- "type": "uint16",
40
- "internalType": "uint16"
41
- },
42
- {
43
- "name": "singleSendLimit",
44
- "type": "uint128",
45
- "internalType": "uint128"
46
- },
47
- {
48
- "name": "rollingWindowLimit",
49
- "type": "uint128",
50
- "internalType": "uint128"
51
- },
52
- {
53
- "name": "windowDuration",
54
- "type": "uint32",
55
- "internalType": "uint32"
56
- },
57
- {
58
- "name": "bufferSize",
59
- "type": "uint8",
60
- "internalType": "uint8"
61
- },
62
- {
63
- "name": "attestedAt",
64
- "type": "uint256",
65
- "internalType": "uint256"
66
- }
67
- ]
68
- }
69
- ],
70
- "stateMutability": "view"
71
- },
72
- {
73
- "type": "function",
74
- "name": "getAttestationSigner",
75
- "inputs": [],
76
- "outputs": [
77
- {
78
- "name": "",
79
- "type": "address",
80
- "internalType": "address"
81
- }
82
- ],
83
- "stateMutability": "view"
84
- },
85
- {
86
- "type": "function",
87
- "name": "getBridgeContract",
88
- "inputs": [],
89
- "outputs": [
90
- {
91
- "name": "",
92
- "type": "address",
93
- "internalType": "address"
94
- }
95
- ],
96
- "stateMutability": "view"
97
- },
98
- {
99
- "type": "function",
100
- "name": "getChainId",
101
- "inputs": [],
102
- "outputs": [
103
- {
104
- "name": "",
105
- "type": "uint256",
106
- "internalType": "uint256"
107
- }
108
- ],
109
- "stateMutability": "view"
110
- },
111
- {
112
- "type": "function",
113
- "name": "getEffectiveAgentLimits",
114
- "inputs": [
115
- {
116
- "name": "agentAddress_",
117
- "type": "address",
118
- "internalType": "address"
119
- }
120
- ],
121
- "outputs": [
122
- {
123
- "name": "singleSendLimit",
124
- "type": "uint128",
125
- "internalType": "uint128"
126
- },
127
- {
128
- "name": "rollingWindowLimit",
129
- "type": "uint128",
130
- "internalType": "uint128"
131
- },
132
- {
133
- "name": "windowDuration",
134
- "type": "uint32",
135
- "internalType": "uint32"
136
- },
137
- {
138
- "name": "bufferSize",
139
- "type": "uint8",
140
- "internalType": "uint8"
141
- }
142
- ],
143
- "stateMutability": "view"
144
- },
145
- {
146
- "type": "function",
147
- "name": "getEpoch",
148
- "inputs": [],
149
- "outputs": [
150
- {
151
- "name": "",
152
- "type": "uint256",
153
- "internalType": "uint256"
154
- }
155
- ],
156
- "stateMutability": "view"
157
- },
158
- {
159
- "type": "function",
160
- "name": "getIdentityRecord",
161
- "inputs": [
162
- {
163
- "name": "wallet_",
164
- "type": "address",
165
- "internalType": "address"
166
- }
167
- ],
168
- "outputs": [
169
- {
170
- "name": "kycHash",
171
- "type": "bytes32",
172
- "internalType": "bytes32"
173
- },
174
- {
175
- "name": "attestedAt",
176
- "type": "uint256",
177
- "internalType": "uint256"
178
- }
179
- ],
180
- "stateMutability": "view"
181
- },
182
- {
183
- "type": "function",
184
- "name": "getMerkleRoot",
185
- "inputs": [],
186
- "outputs": [
187
- {
188
- "name": "",
189
- "type": "bytes32",
190
- "internalType": "bytes32"
191
- }
192
- ],
193
- "stateMutability": "view"
194
- },
195
- {
196
- "type": "function",
197
- "name": "getMirrorMode",
198
- "inputs": [],
199
- "outputs": [
200
- {
201
- "name": "",
202
- "type": "uint8",
203
- "internalType": "enum IP3RegistryMirror.MirrorMode"
204
- }
205
- ],
206
- "stateMutability": "view"
207
- },
208
- {
209
- "type": "function",
210
- "name": "getWalletAgentValidation",
211
- "inputs": [
212
- {
213
- "name": "wallet_",
214
- "type": "address",
215
- "internalType": "address"
216
- }
217
- ],
218
- "outputs": [
219
- {
220
- "name": "isAgent_",
221
- "type": "bool",
222
- "internalType": "bool"
223
- },
224
- {
225
- "name": "capabilities_",
226
- "type": "uint16",
227
- "internalType": "uint16"
228
- },
229
- {
230
- "name": "singleSendLimit_",
231
- "type": "uint128",
232
- "internalType": "uint128"
233
- },
234
- {
235
- "name": "rollingWindowLimit_",
236
- "type": "uint128",
237
- "internalType": "uint128"
238
- },
239
- {
240
- "name": "windowDuration_",
241
- "type": "uint32",
242
- "internalType": "uint32"
243
- },
244
- {
245
- "name": "bufferSize_",
246
- "type": "uint8",
247
- "internalType": "uint8"
248
- }
249
- ],
250
- "stateMutability": "view"
251
- },
252
- {
253
- "type": "function",
254
- "name": "getWalletAttestation",
255
- "inputs": [
256
- {
257
- "name": "wallet_",
258
- "type": "address",
259
- "internalType": "address"
260
- }
261
- ],
262
- "outputs": [
263
- {
264
- "name": "",
265
- "type": "tuple",
266
- "internalType": "struct IP3RegistryMirror.WalletAttestation",
267
- "components": [
268
- {
269
- "name": "roles",
270
- "type": "uint16",
271
- "internalType": "uint16"
272
- },
273
- {
274
- "name": "isoCountry",
275
- "type": "uint16",
276
- "internalType": "uint16"
277
- },
278
- {
279
- "name": "active",
280
- "type": "bool",
281
- "internalType": "bool"
282
- },
283
- {
284
- "name": "attestedAt",
285
- "type": "uint256",
286
- "internalType": "uint256"
287
- },
288
- {
289
- "name": "kycHash",
290
- "type": "bytes32",
291
- "internalType": "bytes32"
292
- }
293
- ]
294
- }
295
- ],
296
- "stateMutability": "view"
297
- },
298
- {
299
- "type": "function",
300
- "name": "isPermissioned",
301
- "inputs": [
302
- {
303
- "name": "wallet_",
304
- "type": "address",
305
- "internalType": "address"
306
- }
307
- ],
308
- "outputs": [
309
- {
310
- "name": "",
311
- "type": "bool",
312
- "internalType": "bool"
313
- }
314
- ],
315
- "stateMutability": "view"
316
- },
317
- {
318
- "type": "function",
319
- "name": "isVerified",
320
- "inputs": [
321
- {
322
- "name": "wallet_",
323
- "type": "address",
324
- "internalType": "address"
325
- }
326
- ],
327
- "outputs": [
328
- {
329
- "name": "",
330
- "type": "bool",
331
- "internalType": "bool"
332
- }
333
- ],
334
- "stateMutability": "view"
335
- },
336
- {
337
- "type": "function",
338
- "name": "isVerifiedWithProof",
339
- "inputs": [
340
- {
341
- "name": "wallet_",
342
- "type": "address",
343
- "internalType": "address"
344
- },
345
- {
346
- "name": "roles_",
347
- "type": "uint16",
348
- "internalType": "uint16"
349
- },
350
- {
351
- "name": "isoCountry_",
352
- "type": "uint16",
353
- "internalType": "uint16"
354
- },
355
- {
356
- "name": "proof_",
357
- "type": "bytes32[]",
358
- "internalType": "bytes32[]"
359
- }
360
- ],
361
- "outputs": [
362
- {
363
- "name": "",
364
- "type": "bool",
365
- "internalType": "bool"
366
- }
367
- ],
368
- "stateMutability": "view"
369
- },
370
- {
371
- "type": "function",
372
- "name": "provisionFromBridge",
373
- "inputs": [
374
- {
375
- "name": "wallet_",
376
- "type": "address",
377
- "internalType": "address"
378
- },
379
- {
380
- "name": "roles_",
381
- "type": "uint16",
382
- "internalType": "uint16"
383
- },
384
- {
385
- "name": "isoCountry_",
386
- "type": "uint16",
387
- "internalType": "uint16"
388
- },
389
- {
390
- "name": "kycHash_",
391
- "type": "bytes32",
392
- "internalType": "bytes32"
393
- }
394
- ],
395
- "outputs": [],
396
- "stateMutability": "nonpayable"
397
- },
398
- {
399
- "type": "function",
400
- "name": "pushAgentBatch",
401
- "inputs": [
402
- {
403
- "name": "agentEpoch_",
404
- "type": "uint256",
405
- "internalType": "uint256"
406
- },
407
- {
408
- "name": "agents_",
409
- "type": "tuple[]",
410
- "internalType": "struct IP3RegistryMirror.AgentAttestationInput[]",
411
- "components": [
412
- {
413
- "name": "agent",
414
- "type": "address",
415
- "internalType": "address"
416
- },
417
- {
418
- "name": "isAgent",
419
- "type": "bool",
420
- "internalType": "bool"
421
- },
422
- {
423
- "name": "capabilities",
424
- "type": "uint16",
425
- "internalType": "uint16"
426
- },
427
- {
428
- "name": "singleSendLimit",
429
- "type": "uint128",
430
- "internalType": "uint128"
431
- },
432
- {
433
- "name": "rollingWindowLimit",
434
- "type": "uint128",
435
- "internalType": "uint128"
436
- },
437
- {
438
- "name": "windowDuration",
439
- "type": "uint32",
440
- "internalType": "uint32"
441
- },
442
- {
443
- "name": "bufferSize",
444
- "type": "uint8",
445
- "internalType": "uint8"
446
- }
447
- ]
448
- },
449
- {
450
- "name": "pearlSignature_",
451
- "type": "bytes",
452
- "internalType": "bytes"
453
- }
454
- ],
455
- "outputs": [],
456
- "stateMutability": "nonpayable"
457
- },
458
- {
459
- "type": "function",
460
- "name": "pushWalletBatch",
461
- "inputs": [
462
- {
463
- "name": "epoch_",
464
- "type": "uint256",
465
- "internalType": "uint256"
466
- },
467
- {
468
- "name": "wallets_",
469
- "type": "tuple[]",
470
- "internalType": "struct IP3RegistryMirror.WalletAttestationInput[]",
471
- "components": [
472
- {
473
- "name": "wallet",
474
- "type": "address",
475
- "internalType": "address"
476
- },
477
- {
478
- "name": "roles",
479
- "type": "uint16",
480
- "internalType": "uint16"
481
- },
482
- {
483
- "name": "isoCountry",
484
- "type": "uint16",
485
- "internalType": "uint16"
486
- },
487
- {
488
- "name": "active",
489
- "type": "bool",
490
- "internalType": "bool"
491
- },
492
- {
493
- "name": "kycHash",
494
- "type": "bytes32",
495
- "internalType": "bytes32"
496
- }
497
- ]
498
- },
499
- {
500
- "name": "pearlSignature_",
501
- "type": "bytes",
502
- "internalType": "bytes"
503
- }
504
- ],
505
- "outputs": [],
506
- "stateMutability": "nonpayable"
507
- },
508
- {
509
- "type": "function",
510
- "name": "rotateAttestationSigner",
511
- "inputs": [
512
- {
513
- "name": "newSigner_",
514
- "type": "address",
515
- "internalType": "address"
516
- }
517
- ],
518
- "outputs": [],
519
- "stateMutability": "nonpayable"
520
- },
521
- {
522
- "type": "function",
523
- "name": "setBridgeContract",
524
- "inputs": [
525
- {
526
- "name": "bridge_",
527
- "type": "address",
528
- "internalType": "address"
529
- }
530
- ],
531
- "outputs": [],
532
- "stateMutability": "nonpayable"
533
- },
534
- {
535
- "type": "function",
536
- "name": "setMerkleRoot",
537
- "inputs": [
538
- {
539
- "name": "epoch_",
540
- "type": "uint256",
541
- "internalType": "uint256"
542
- },
543
- {
544
- "name": "root_",
545
- "type": "bytes32",
546
- "internalType": "bytes32"
547
- },
548
- {
549
- "name": "pearlSignature_",
550
- "type": "bytes",
551
- "internalType": "bytes"
552
- }
553
- ],
554
- "outputs": [],
555
- "stateMutability": "nonpayable"
556
- },
557
- {
558
- "type": "event",
559
- "name": "AgentBatchAttested",
560
- "inputs": [
561
- {
562
- "name": "epoch",
563
- "type": "uint256",
564
- "indexed": true,
565
- "internalType": "uint256"
566
- },
567
- {
568
- "name": "batchSize",
569
- "type": "uint256",
570
- "indexed": false,
571
- "internalType": "uint256"
572
- },
573
- {
574
- "name": "pushedBy",
575
- "type": "address",
576
- "indexed": true,
577
- "internalType": "address"
578
- }
579
- ],
580
- "anonymous": false
581
- },
582
- {
583
- "type": "event",
584
- "name": "AttestationSignerRotated",
585
- "inputs": [
586
- {
587
- "name": "oldSigner",
588
- "type": "address",
589
- "indexed": true,
590
- "internalType": "address"
591
- },
592
- {
593
- "name": "newSigner",
594
- "type": "address",
595
- "indexed": true,
596
- "internalType": "address"
597
- }
598
- ],
599
- "anonymous": false
600
- },
601
- {
602
- "type": "event",
603
- "name": "BridgeContractSet",
604
- "inputs": [
605
- {
606
- "name": "oldBridge",
607
- "type": "address",
608
- "indexed": true,
609
- "internalType": "address"
610
- },
611
- {
612
- "name": "newBridge",
613
- "type": "address",
614
- "indexed": true,
615
- "internalType": "address"
616
- }
617
- ],
618
- "anonymous": false
619
- },
620
- {
621
- "type": "event",
622
- "name": "MerkleRootUpdated",
623
- "inputs": [
624
- {
625
- "name": "epoch",
626
- "type": "uint256",
627
- "indexed": true,
628
- "internalType": "uint256"
629
- },
630
- {
631
- "name": "root",
632
- "type": "bytes32",
633
- "indexed": true,
634
- "internalType": "bytes32"
635
- },
636
- {
637
- "name": "pushedBy",
638
- "type": "address",
639
- "indexed": true,
640
- "internalType": "address"
641
- }
642
- ],
643
- "anonymous": false
644
- },
645
- {
646
- "type": "event",
647
- "name": "WalletBatchAttested",
648
- "inputs": [
649
- {
650
- "name": "epoch",
651
- "type": "uint256",
652
- "indexed": true,
653
- "internalType": "uint256"
654
- },
655
- {
656
- "name": "batchSize",
657
- "type": "uint256",
658
- "indexed": false,
659
- "internalType": "uint256"
660
- },
661
- {
662
- "name": "pushedBy",
663
- "type": "address",
664
- "indexed": true,
665
- "internalType": "address"
666
- }
667
- ],
668
- "anonymous": false
669
- },
670
- {
671
- "type": "event",
672
- "name": "WalletProvisionedByBridge",
673
- "inputs": [
674
- {
675
- "name": "wallet",
676
- "type": "address",
677
- "indexed": true,
678
- "internalType": "address"
679
- },
680
- {
681
- "name": "roles",
682
- "type": "uint16",
683
- "indexed": false,
684
- "internalType": "uint16"
685
- },
686
- {
687
- "name": "isoCountry",
688
- "type": "uint16",
689
- "indexed": false,
690
- "internalType": "uint16"
691
- }
692
- ],
693
- "anonymous": false
694
- },
695
- {
696
- "type": "error",
697
- "name": "P3AttestationSignerIsZero",
698
- "inputs": []
699
- },
700
- {
701
- "type": "error",
702
- "name": "P3EmptyAttestationBatch",
703
- "inputs": []
704
- },
705
- {
706
- "type": "error",
707
- "name": "P3InvalidAttestationSignature",
708
- "inputs": []
709
- },
710
- {
711
- "type": "error",
712
- "name": "P3InvalidMerkleProof",
713
- "inputs": [
714
- {
715
- "name": "wallet",
716
- "type": "address",
717
- "internalType": "address"
718
- }
719
- ]
720
- },
721
- {
722
- "type": "error",
723
- "name": "P3RegistryMirrorBridgeIsZero",
724
- "inputs": []
725
- },
726
- {
727
- "type": "error",
728
- "name": "P3RegistryMirrorNotBridge",
729
- "inputs": [
730
- {
731
- "name": "caller",
732
- "type": "address",
733
- "internalType": "address"
734
- }
735
- ]
736
- },
737
- {
738
- "type": "error",
739
- "name": "P3StaleAttestationEpoch",
740
- "inputs": [
741
- {
742
- "name": "provided",
743
- "type": "uint256",
744
- "internalType": "uint256"
745
- },
746
- {
747
- "name": "current",
748
- "type": "uint256",
749
- "internalType": "uint256"
750
- }
751
- ]
752
- },
753
- {
754
- "type": "error",
755
- "name": "P3WalletAlreadyProvisioned",
756
- "inputs": [
757
- {
758
- "name": "wallet",
759
- "type": "address",
760
- "internalType": "address"
761
- }
762
- ]
763
- },
764
- {
765
- "type": "error",
766
- "name": "P3WrongMirrorMode",
767
- "inputs": [
768
- {
769
- "name": "required",
770
- "type": "uint8",
771
- "internalType": "enum IP3RegistryMirror.MirrorMode"
772
- },
773
- {
774
- "name": "actual",
775
- "type": "uint8",
776
- "internalType": "enum IP3RegistryMirror.MirrorMode"
777
- }
778
- ]
779
- }
780
- ];
781
- export default abi;