@0xbow/privacy-pools-core-sdk 0.0.0-c084059

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 (97) hide show
  1. package/README.md +73 -0
  2. package/dist/esm/ccip-nJye9Itm.js +166 -0
  3. package/dist/esm/ccip-nJye9Itm.js.map +1 -0
  4. package/dist/esm/index-DAWUECi8.js +84043 -0
  5. package/dist/esm/index-DAWUECi8.js.map +1 -0
  6. package/dist/esm/index.mjs +4 -0
  7. package/dist/esm/index.mjs.map +1 -0
  8. package/dist/index.d.mts +666 -0
  9. package/dist/node/ccip-lPhPeJab.js +183 -0
  10. package/dist/node/ccip-lPhPeJab.js.map +1 -0
  11. package/dist/node/index-BiU5Ef8Z.js +90625 -0
  12. package/dist/node/index-BiU5Ef8Z.js.map +1 -0
  13. package/dist/node/index.mjs +21 -0
  14. package/dist/node/index.mjs.map +1 -0
  15. package/dist/types/abi/ERC20.d.ts +38 -0
  16. package/dist/types/abi/IEntrypoint.d.ts +794 -0
  17. package/dist/types/abi/IPrivacyPool.d.ts +51 -0
  18. package/dist/types/ccip-BZzz1Y5w.js +182 -0
  19. package/dist/types/circuits/circuits.impl.d.ts +108 -0
  20. package/dist/types/circuits/circuits.interface.d.ts +127 -0
  21. package/dist/types/circuits/index.d.ts +2 -0
  22. package/dist/types/constants.d.ts +2 -0
  23. package/dist/types/core/bruteForce.service.d.ts +61 -0
  24. package/dist/types/core/commitment.service.d.ts +30 -0
  25. package/dist/types/core/contracts.service.d.ts +106 -0
  26. package/dist/types/core/sdk.d.ts +44 -0
  27. package/dist/types/core/withdrawal.service.d.ts +32 -0
  28. package/dist/types/crypto.d.ts +45 -0
  29. package/dist/types/dirname.helper.d.ts +2 -0
  30. package/dist/types/errors/base.error.d.ts +52 -0
  31. package/dist/types/exceptions/circuitInitialization.exception.d.ts +3 -0
  32. package/dist/types/exceptions/fetchArtifacts.exception.d.ts +3 -0
  33. package/dist/types/exceptions/index.d.ts +4 -0
  34. package/dist/types/exceptions/invalidRpcUrl.exception.d.ts +3 -0
  35. package/dist/types/exceptions/privacyPool.exception.d.ts +13 -0
  36. package/dist/types/external.d.ts +7 -0
  37. package/dist/types/filename.helper.d.ts +2 -0
  38. package/dist/types/index-D-_1h8-n.js +90638 -0
  39. package/dist/types/index.d.ts +10 -0
  40. package/dist/types/index.js +20 -0
  41. package/dist/types/interfaces/blockchainProvider.interface.d.ts +12 -0
  42. package/dist/types/interfaces/circuits.interface.d.ts +30 -0
  43. package/dist/types/interfaces/contracts.interface.d.ts +28 -0
  44. package/dist/types/interfaces/index.d.ts +1 -0
  45. package/dist/types/internal.d.ts +6 -0
  46. package/dist/types/providers/blockchainProvider.d.ts +8 -0
  47. package/dist/types/providers/index.d.ts +1 -0
  48. package/dist/types/types/commitment.d.ts +48 -0
  49. package/dist/types/types/index.d.ts +2 -0
  50. package/dist/types/types/withdrawal.d.ts +30 -0
  51. package/package.json +81 -0
  52. package/src/abi/ERC20.ts +222 -0
  53. package/src/abi/IEntrypoint.ts +1059 -0
  54. package/src/abi/IPrivacyPool.ts +576 -0
  55. package/src/circuits/circuits.impl.ts +232 -0
  56. package/src/circuits/circuits.interface.ts +166 -0
  57. package/src/circuits/fetchArtifacts.esm.ts +12 -0
  58. package/src/circuits/fetchArtifacts.node.ts +23 -0
  59. package/src/circuits/fetchArtifacts.ts +7 -0
  60. package/src/circuits/index.ts +2 -0
  61. package/src/constants.ts +3 -0
  62. package/src/core/account.service.ts +1077 -0
  63. package/src/core/bruteForce.service.ts +120 -0
  64. package/src/core/commitment.service.ts +84 -0
  65. package/src/core/contracts.service.ts +442 -0
  66. package/src/core/data.service.ts +272 -0
  67. package/src/core/sdk.ts +92 -0
  68. package/src/core/withdrawal.service.ts +126 -0
  69. package/src/crypto.ts +226 -0
  70. package/src/dirname.helper.ts +4 -0
  71. package/src/errors/account.error.ts +49 -0
  72. package/src/errors/base.error.ts +125 -0
  73. package/src/errors/data.error.ts +34 -0
  74. package/src/errors/events.error.ts +38 -0
  75. package/src/exceptions/circuitInitialization.exception.ts +6 -0
  76. package/src/exceptions/fetchArtifacts.exception.ts +7 -0
  77. package/src/exceptions/index.ts +4 -0
  78. package/src/exceptions/invalidRpcUrl.exception.ts +6 -0
  79. package/src/exceptions/privacyPool.exception.ts +19 -0
  80. package/src/external.ts +13 -0
  81. package/src/filename.helper.ts +4 -0
  82. package/src/index.ts +21 -0
  83. package/src/interfaces/blockchainProvider.interface.ts +13 -0
  84. package/src/interfaces/circuits.interface.ts +34 -0
  85. package/src/interfaces/contracts.interface.ts +66 -0
  86. package/src/interfaces/index.ts +1 -0
  87. package/src/internal.ts +6 -0
  88. package/src/keys.ts +42 -0
  89. package/src/providers/blockchainProvider.ts +26 -0
  90. package/src/providers/index.ts +1 -0
  91. package/src/types/account.ts +35 -0
  92. package/src/types/commitment.ts +50 -0
  93. package/src/types/events.ts +82 -0
  94. package/src/types/index.ts +3 -0
  95. package/src/types/keys.ts +6 -0
  96. package/src/types/withdrawal.ts +33 -0
  97. package/src/utils/logger.ts +56 -0
@@ -0,0 +1,1059 @@
1
+ export const IEntrypointABI = [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "receive",
9
+ "stateMutability": "payable"
10
+ },
11
+ {
12
+ "type": "function",
13
+ "name": "DEFAULT_ADMIN_ROLE",
14
+ "inputs": [],
15
+ "outputs": [
16
+ {
17
+ "name": "",
18
+ "type": "bytes32",
19
+ "internalType": "bytes32"
20
+ }
21
+ ],
22
+ "stateMutability": "view"
23
+ },
24
+ {
25
+ "type": "function",
26
+ "name": "UPGRADE_INTERFACE_VERSION",
27
+ "inputs": [],
28
+ "outputs": [
29
+ {
30
+ "name": "",
31
+ "type": "string",
32
+ "internalType": "string"
33
+ }
34
+ ],
35
+ "stateMutability": "view"
36
+ },
37
+ {
38
+ "type": "function",
39
+ "name": "assetConfig",
40
+ "inputs": [
41
+ {
42
+ "name": "_asset",
43
+ "type": "address",
44
+ "internalType": "contract IERC20"
45
+ }
46
+ ],
47
+ "outputs": [
48
+ {
49
+ "name": "pool",
50
+ "type": "address",
51
+ "internalType": "contract IPrivacyPool"
52
+ },
53
+ {
54
+ "name": "minimumDepositAmount",
55
+ "type": "uint256",
56
+ "internalType": "uint256"
57
+ },
58
+ {
59
+ "name": "vettingFeeBPS",
60
+ "type": "uint256",
61
+ "internalType": "uint256"
62
+ },
63
+ {
64
+ "name": "maxRelayFeeBPS",
65
+ "type": "uint256",
66
+ "internalType": "uint256"
67
+ }
68
+ ],
69
+ "stateMutability": "view"
70
+ },
71
+ {
72
+ "type": "function",
73
+ "name": "associationSets",
74
+ "inputs": [
75
+ {
76
+ "name": "",
77
+ "type": "uint256",
78
+ "internalType": "uint256"
79
+ }
80
+ ],
81
+ "outputs": [
82
+ {
83
+ "name": "root",
84
+ "type": "uint256",
85
+ "internalType": "uint256"
86
+ },
87
+ {
88
+ "name": "ipfsCID",
89
+ "type": "string",
90
+ "internalType": "string"
91
+ },
92
+ {
93
+ "name": "timestamp",
94
+ "type": "uint256",
95
+ "internalType": "uint256"
96
+ }
97
+ ],
98
+ "stateMutability": "view"
99
+ },
100
+ {
101
+ "type": "function",
102
+ "name": "deposit",
103
+ "inputs": [
104
+ {
105
+ "name": "_asset",
106
+ "type": "address",
107
+ "internalType": "contract IERC20"
108
+ },
109
+ {
110
+ "name": "_value",
111
+ "type": "uint256",
112
+ "internalType": "uint256"
113
+ },
114
+ {
115
+ "name": "_precommitment",
116
+ "type": "uint256",
117
+ "internalType": "uint256"
118
+ }
119
+ ],
120
+ "outputs": [
121
+ {
122
+ "name": "_commitment",
123
+ "type": "uint256",
124
+ "internalType": "uint256"
125
+ }
126
+ ],
127
+ "stateMutability": "nonpayable"
128
+ },
129
+ {
130
+ "type": "function",
131
+ "name": "deposit",
132
+ "inputs": [
133
+ {
134
+ "name": "_precommitment",
135
+ "type": "uint256",
136
+ "internalType": "uint256"
137
+ }
138
+ ],
139
+ "outputs": [
140
+ {
141
+ "name": "_commitment",
142
+ "type": "uint256",
143
+ "internalType": "uint256"
144
+ }
145
+ ],
146
+ "stateMutability": "payable"
147
+ },
148
+ {
149
+ "type": "function",
150
+ "name": "getRoleAdmin",
151
+ "inputs": [
152
+ {
153
+ "name": "role",
154
+ "type": "bytes32",
155
+ "internalType": "bytes32"
156
+ }
157
+ ],
158
+ "outputs": [
159
+ {
160
+ "name": "",
161
+ "type": "bytes32",
162
+ "internalType": "bytes32"
163
+ }
164
+ ],
165
+ "stateMutability": "view"
166
+ },
167
+ {
168
+ "type": "function",
169
+ "name": "grantRole",
170
+ "inputs": [
171
+ {
172
+ "name": "role",
173
+ "type": "bytes32",
174
+ "internalType": "bytes32"
175
+ },
176
+ {
177
+ "name": "account",
178
+ "type": "address",
179
+ "internalType": "address"
180
+ }
181
+ ],
182
+ "outputs": [],
183
+ "stateMutability": "nonpayable"
184
+ },
185
+ {
186
+ "type": "function",
187
+ "name": "hasRole",
188
+ "inputs": [
189
+ {
190
+ "name": "role",
191
+ "type": "bytes32",
192
+ "internalType": "bytes32"
193
+ },
194
+ {
195
+ "name": "account",
196
+ "type": "address",
197
+ "internalType": "address"
198
+ }
199
+ ],
200
+ "outputs": [
201
+ {
202
+ "name": "",
203
+ "type": "bool",
204
+ "internalType": "bool"
205
+ }
206
+ ],
207
+ "stateMutability": "view"
208
+ },
209
+ {
210
+ "type": "function",
211
+ "name": "initialize",
212
+ "inputs": [
213
+ {
214
+ "name": "_owner",
215
+ "type": "address",
216
+ "internalType": "address"
217
+ },
218
+ {
219
+ "name": "_postman",
220
+ "type": "address",
221
+ "internalType": "address"
222
+ }
223
+ ],
224
+ "outputs": [],
225
+ "stateMutability": "nonpayable"
226
+ },
227
+ {
228
+ "type": "function",
229
+ "name": "latestRoot",
230
+ "inputs": [],
231
+ "outputs": [
232
+ {
233
+ "name": "_root",
234
+ "type": "uint256",
235
+ "internalType": "uint256"
236
+ }
237
+ ],
238
+ "stateMutability": "view"
239
+ },
240
+ {
241
+ "type": "function",
242
+ "name": "proxiableUUID",
243
+ "inputs": [],
244
+ "outputs": [
245
+ {
246
+ "name": "",
247
+ "type": "bytes32",
248
+ "internalType": "bytes32"
249
+ }
250
+ ],
251
+ "stateMutability": "view"
252
+ },
253
+ {
254
+ "type": "function",
255
+ "name": "registerPool",
256
+ "inputs": [
257
+ {
258
+ "name": "_asset",
259
+ "type": "address",
260
+ "internalType": "contract IERC20"
261
+ },
262
+ {
263
+ "name": "_pool",
264
+ "type": "address",
265
+ "internalType": "contract IPrivacyPool"
266
+ },
267
+ {
268
+ "name": "_minimumDepositAmount",
269
+ "type": "uint256",
270
+ "internalType": "uint256"
271
+ },
272
+ {
273
+ "name": "_vettingFeeBPS",
274
+ "type": "uint256",
275
+ "internalType": "uint256"
276
+ },
277
+ {
278
+ "name": "_maxRelayFeeBPS",
279
+ "type": "uint256",
280
+ "internalType": "uint256"
281
+ }
282
+ ],
283
+ "outputs": [],
284
+ "stateMutability": "nonpayable"
285
+ },
286
+ {
287
+ "type": "function",
288
+ "name": "relay",
289
+ "inputs": [
290
+ {
291
+ "name": "_withdrawal",
292
+ "type": "tuple",
293
+ "internalType": "struct IPrivacyPool.Withdrawal",
294
+ "components": [
295
+ {
296
+ "name": "processooor",
297
+ "type": "address",
298
+ "internalType": "address"
299
+ },
300
+ {
301
+ "name": "data",
302
+ "type": "bytes",
303
+ "internalType": "bytes"
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ "name": "_proof",
309
+ "type": "tuple",
310
+ "internalType": "struct ProofLib.WithdrawProof",
311
+ "components": [
312
+ {
313
+ "name": "pA",
314
+ "type": "uint256[2]",
315
+ "internalType": "uint256[2]"
316
+ },
317
+ {
318
+ "name": "pB",
319
+ "type": "uint256[2][2]",
320
+ "internalType": "uint256[2][2]"
321
+ },
322
+ {
323
+ "name": "pC",
324
+ "type": "uint256[2]",
325
+ "internalType": "uint256[2]"
326
+ },
327
+ {
328
+ "name": "pubSignals",
329
+ "type": "uint256[8]",
330
+ "internalType": "uint256[8]"
331
+ }
332
+ ]
333
+ },
334
+ {
335
+ "name": "_scope",
336
+ "type": "uint256",
337
+ "internalType": "uint256"
338
+ }
339
+ ],
340
+ "outputs": [],
341
+ "stateMutability": "nonpayable"
342
+ },
343
+ {
344
+ "type": "function",
345
+ "name": "removePool",
346
+ "inputs": [
347
+ {
348
+ "name": "_asset",
349
+ "type": "address",
350
+ "internalType": "contract IERC20"
351
+ }
352
+ ],
353
+ "outputs": [],
354
+ "stateMutability": "nonpayable"
355
+ },
356
+ {
357
+ "type": "function",
358
+ "name": "renounceRole",
359
+ "inputs": [
360
+ {
361
+ "name": "role",
362
+ "type": "bytes32",
363
+ "internalType": "bytes32"
364
+ },
365
+ {
366
+ "name": "callerConfirmation",
367
+ "type": "address",
368
+ "internalType": "address"
369
+ }
370
+ ],
371
+ "outputs": [],
372
+ "stateMutability": "nonpayable"
373
+ },
374
+ {
375
+ "type": "function",
376
+ "name": "revokeRole",
377
+ "inputs": [
378
+ {
379
+ "name": "role",
380
+ "type": "bytes32",
381
+ "internalType": "bytes32"
382
+ },
383
+ {
384
+ "name": "account",
385
+ "type": "address",
386
+ "internalType": "address"
387
+ }
388
+ ],
389
+ "outputs": [],
390
+ "stateMutability": "nonpayable"
391
+ },
392
+ {
393
+ "type": "function",
394
+ "name": "rootByIndex",
395
+ "inputs": [
396
+ {
397
+ "name": "_index",
398
+ "type": "uint256",
399
+ "internalType": "uint256"
400
+ }
401
+ ],
402
+ "outputs": [
403
+ {
404
+ "name": "_root",
405
+ "type": "uint256",
406
+ "internalType": "uint256"
407
+ }
408
+ ],
409
+ "stateMutability": "view"
410
+ },
411
+ {
412
+ "type": "function",
413
+ "name": "scopeToPool",
414
+ "inputs": [
415
+ {
416
+ "name": "_scope",
417
+ "type": "uint256",
418
+ "internalType": "uint256"
419
+ }
420
+ ],
421
+ "outputs": [
422
+ {
423
+ "name": "_pool",
424
+ "type": "address",
425
+ "internalType": "contract IPrivacyPool"
426
+ }
427
+ ],
428
+ "stateMutability": "view"
429
+ },
430
+ {
431
+ "type": "function",
432
+ "name": "supportsInterface",
433
+ "inputs": [
434
+ {
435
+ "name": "interfaceId",
436
+ "type": "bytes4",
437
+ "internalType": "bytes4"
438
+ }
439
+ ],
440
+ "outputs": [
441
+ {
442
+ "name": "",
443
+ "type": "bool",
444
+ "internalType": "bool"
445
+ }
446
+ ],
447
+ "stateMutability": "view"
448
+ },
449
+ {
450
+ "type": "function",
451
+ "name": "updatePoolConfiguration",
452
+ "inputs": [
453
+ {
454
+ "name": "_asset",
455
+ "type": "address",
456
+ "internalType": "contract IERC20"
457
+ },
458
+ {
459
+ "name": "_minimumDepositAmount",
460
+ "type": "uint256",
461
+ "internalType": "uint256"
462
+ },
463
+ {
464
+ "name": "_vettingFeeBPS",
465
+ "type": "uint256",
466
+ "internalType": "uint256"
467
+ },
468
+ {
469
+ "name": "_maxRelayFeeBPS",
470
+ "type": "uint256",
471
+ "internalType": "uint256"
472
+ }
473
+ ],
474
+ "outputs": [],
475
+ "stateMutability": "nonpayable"
476
+ },
477
+ {
478
+ "type": "function",
479
+ "name": "updateRoot",
480
+ "inputs": [
481
+ {
482
+ "name": "_root",
483
+ "type": "uint256",
484
+ "internalType": "uint256"
485
+ },
486
+ {
487
+ "name": "_ipfsCID",
488
+ "type": "string",
489
+ "internalType": "string"
490
+ }
491
+ ],
492
+ "outputs": [
493
+ {
494
+ "name": "_index",
495
+ "type": "uint256",
496
+ "internalType": "uint256"
497
+ }
498
+ ],
499
+ "stateMutability": "nonpayable"
500
+ },
501
+ {
502
+ "type": "function",
503
+ "name": "upgradeToAndCall",
504
+ "inputs": [
505
+ {
506
+ "name": "newImplementation",
507
+ "type": "address",
508
+ "internalType": "address"
509
+ },
510
+ {
511
+ "name": "data",
512
+ "type": "bytes",
513
+ "internalType": "bytes"
514
+ }
515
+ ],
516
+ "outputs": [],
517
+ "stateMutability": "payable"
518
+ },
519
+ {
520
+ "type": "function",
521
+ "name": "windDownPool",
522
+ "inputs": [
523
+ {
524
+ "name": "_pool",
525
+ "type": "address",
526
+ "internalType": "contract IPrivacyPool"
527
+ }
528
+ ],
529
+ "outputs": [],
530
+ "stateMutability": "nonpayable"
531
+ },
532
+ {
533
+ "type": "function",
534
+ "name": "withdrawFees",
535
+ "inputs": [
536
+ {
537
+ "name": "_asset",
538
+ "type": "address",
539
+ "internalType": "contract IERC20"
540
+ },
541
+ {
542
+ "name": "_recipient",
543
+ "type": "address",
544
+ "internalType": "address"
545
+ }
546
+ ],
547
+ "outputs": [],
548
+ "stateMutability": "nonpayable"
549
+ },
550
+ {
551
+ "type": "event",
552
+ "name": "Deposited",
553
+ "inputs": [
554
+ {
555
+ "name": "_depositor",
556
+ "type": "address",
557
+ "indexed": true,
558
+ "internalType": "address"
559
+ },
560
+ {
561
+ "name": "_pool",
562
+ "type": "address",
563
+ "indexed": true,
564
+ "internalType": "contract IPrivacyPool"
565
+ },
566
+ {
567
+ "name": "_commitment",
568
+ "type": "uint256",
569
+ "indexed": false,
570
+ "internalType": "uint256"
571
+ },
572
+ {
573
+ "name": "_amount",
574
+ "type": "uint256",
575
+ "indexed": false,
576
+ "internalType": "uint256"
577
+ }
578
+ ],
579
+ "anonymous": false
580
+ },
581
+ {
582
+ "type": "event",
583
+ "name": "FeesWithdrawn",
584
+ "inputs": [
585
+ {
586
+ "name": "_asset",
587
+ "type": "address",
588
+ "indexed": false,
589
+ "internalType": "contract IERC20"
590
+ },
591
+ {
592
+ "name": "_recipient",
593
+ "type": "address",
594
+ "indexed": false,
595
+ "internalType": "address"
596
+ },
597
+ {
598
+ "name": "_amount",
599
+ "type": "uint256",
600
+ "indexed": false,
601
+ "internalType": "uint256"
602
+ }
603
+ ],
604
+ "anonymous": false
605
+ },
606
+ {
607
+ "type": "event",
608
+ "name": "Initialized",
609
+ "inputs": [
610
+ {
611
+ "name": "version",
612
+ "type": "uint64",
613
+ "indexed": false,
614
+ "internalType": "uint64"
615
+ }
616
+ ],
617
+ "anonymous": false
618
+ },
619
+ {
620
+ "type": "event",
621
+ "name": "PoolConfigurationUpdated",
622
+ "inputs": [
623
+ {
624
+ "name": "_pool",
625
+ "type": "address",
626
+ "indexed": false,
627
+ "internalType": "contract IPrivacyPool"
628
+ },
629
+ {
630
+ "name": "_asset",
631
+ "type": "address",
632
+ "indexed": false,
633
+ "internalType": "contract IERC20"
634
+ },
635
+ {
636
+ "name": "_newMinimumDepositAmount",
637
+ "type": "uint256",
638
+ "indexed": false,
639
+ "internalType": "uint256"
640
+ },
641
+ {
642
+ "name": "_newVettingFeeBPS",
643
+ "type": "uint256",
644
+ "indexed": false,
645
+ "internalType": "uint256"
646
+ },
647
+ {
648
+ "name": "_newMaxRelayFeeBPS",
649
+ "type": "uint256",
650
+ "indexed": false,
651
+ "internalType": "uint256"
652
+ }
653
+ ],
654
+ "anonymous": false
655
+ },
656
+ {
657
+ "type": "event",
658
+ "name": "PoolRegistered",
659
+ "inputs": [
660
+ {
661
+ "name": "_pool",
662
+ "type": "address",
663
+ "indexed": false,
664
+ "internalType": "contract IPrivacyPool"
665
+ },
666
+ {
667
+ "name": "_asset",
668
+ "type": "address",
669
+ "indexed": false,
670
+ "internalType": "contract IERC20"
671
+ },
672
+ {
673
+ "name": "_scope",
674
+ "type": "uint256",
675
+ "indexed": false,
676
+ "internalType": "uint256"
677
+ }
678
+ ],
679
+ "anonymous": false
680
+ },
681
+ {
682
+ "type": "event",
683
+ "name": "PoolRemoved",
684
+ "inputs": [
685
+ {
686
+ "name": "_pool",
687
+ "type": "address",
688
+ "indexed": false,
689
+ "internalType": "contract IPrivacyPool"
690
+ },
691
+ {
692
+ "name": "_asset",
693
+ "type": "address",
694
+ "indexed": false,
695
+ "internalType": "contract IERC20"
696
+ },
697
+ {
698
+ "name": "_scope",
699
+ "type": "uint256",
700
+ "indexed": false,
701
+ "internalType": "uint256"
702
+ }
703
+ ],
704
+ "anonymous": false
705
+ },
706
+ {
707
+ "type": "event",
708
+ "name": "PoolWindDown",
709
+ "inputs": [
710
+ {
711
+ "name": "_pool",
712
+ "type": "address",
713
+ "indexed": false,
714
+ "internalType": "contract IPrivacyPool"
715
+ }
716
+ ],
717
+ "anonymous": false
718
+ },
719
+ {
720
+ "type": "event",
721
+ "name": "RoleAdminChanged",
722
+ "inputs": [
723
+ {
724
+ "name": "role",
725
+ "type": "bytes32",
726
+ "indexed": true,
727
+ "internalType": "bytes32"
728
+ },
729
+ {
730
+ "name": "previousAdminRole",
731
+ "type": "bytes32",
732
+ "indexed": true,
733
+ "internalType": "bytes32"
734
+ },
735
+ {
736
+ "name": "newAdminRole",
737
+ "type": "bytes32",
738
+ "indexed": true,
739
+ "internalType": "bytes32"
740
+ }
741
+ ],
742
+ "anonymous": false
743
+ },
744
+ {
745
+ "type": "event",
746
+ "name": "RoleGranted",
747
+ "inputs": [
748
+ {
749
+ "name": "role",
750
+ "type": "bytes32",
751
+ "indexed": true,
752
+ "internalType": "bytes32"
753
+ },
754
+ {
755
+ "name": "account",
756
+ "type": "address",
757
+ "indexed": true,
758
+ "internalType": "address"
759
+ },
760
+ {
761
+ "name": "sender",
762
+ "type": "address",
763
+ "indexed": true,
764
+ "internalType": "address"
765
+ }
766
+ ],
767
+ "anonymous": false
768
+ },
769
+ {
770
+ "type": "event",
771
+ "name": "RoleRevoked",
772
+ "inputs": [
773
+ {
774
+ "name": "role",
775
+ "type": "bytes32",
776
+ "indexed": true,
777
+ "internalType": "bytes32"
778
+ },
779
+ {
780
+ "name": "account",
781
+ "type": "address",
782
+ "indexed": true,
783
+ "internalType": "address"
784
+ },
785
+ {
786
+ "name": "sender",
787
+ "type": "address",
788
+ "indexed": true,
789
+ "internalType": "address"
790
+ }
791
+ ],
792
+ "anonymous": false
793
+ },
794
+ {
795
+ "type": "event",
796
+ "name": "RootUpdated",
797
+ "inputs": [
798
+ {
799
+ "name": "_root",
800
+ "type": "uint256",
801
+ "indexed": false,
802
+ "internalType": "uint256"
803
+ },
804
+ {
805
+ "name": "_ipfsCID",
806
+ "type": "string",
807
+ "indexed": false,
808
+ "internalType": "string"
809
+ },
810
+ {
811
+ "name": "_timestamp",
812
+ "type": "uint256",
813
+ "indexed": false,
814
+ "internalType": "uint256"
815
+ }
816
+ ],
817
+ "anonymous": false
818
+ },
819
+ {
820
+ "type": "event",
821
+ "name": "Upgraded",
822
+ "inputs": [
823
+ {
824
+ "name": "implementation",
825
+ "type": "address",
826
+ "indexed": true,
827
+ "internalType": "address"
828
+ }
829
+ ],
830
+ "anonymous": false
831
+ },
832
+ {
833
+ "type": "event",
834
+ "name": "WithdrawalRelayed",
835
+ "inputs": [
836
+ {
837
+ "name": "_relayer",
838
+ "type": "address",
839
+ "indexed": true,
840
+ "internalType": "address"
841
+ },
842
+ {
843
+ "name": "_recipient",
844
+ "type": "address",
845
+ "indexed": true,
846
+ "internalType": "address"
847
+ },
848
+ {
849
+ "name": "_asset",
850
+ "type": "address",
851
+ "indexed": true,
852
+ "internalType": "contract IERC20"
853
+ },
854
+ {
855
+ "name": "_amount",
856
+ "type": "uint256",
857
+ "indexed": false,
858
+ "internalType": "uint256"
859
+ },
860
+ {
861
+ "name": "_feeAmount",
862
+ "type": "uint256",
863
+ "indexed": false,
864
+ "internalType": "uint256"
865
+ }
866
+ ],
867
+ "anonymous": false
868
+ },
869
+ {
870
+ "type": "error",
871
+ "name": "AccessControlBadConfirmation",
872
+ "inputs": []
873
+ },
874
+ {
875
+ "type": "error",
876
+ "name": "AccessControlUnauthorizedAccount",
877
+ "inputs": [
878
+ {
879
+ "name": "account",
880
+ "type": "address",
881
+ "internalType": "address"
882
+ },
883
+ {
884
+ "name": "neededRole",
885
+ "type": "bytes32",
886
+ "internalType": "bytes32"
887
+ }
888
+ ]
889
+ },
890
+ {
891
+ "type": "error",
892
+ "name": "AddressEmptyCode",
893
+ "inputs": [
894
+ {
895
+ "name": "target",
896
+ "type": "address",
897
+ "internalType": "address"
898
+ }
899
+ ]
900
+ },
901
+ {
902
+ "type": "error",
903
+ "name": "AssetMismatch",
904
+ "inputs": []
905
+ },
906
+ {
907
+ "type": "error",
908
+ "name": "AssetPoolAlreadyRegistered",
909
+ "inputs": []
910
+ },
911
+ {
912
+ "type": "error",
913
+ "name": "ERC1967InvalidImplementation",
914
+ "inputs": [
915
+ {
916
+ "name": "implementation",
917
+ "type": "address",
918
+ "internalType": "address"
919
+ }
920
+ ]
921
+ },
922
+ {
923
+ "type": "error",
924
+ "name": "ERC1967NonPayable",
925
+ "inputs": []
926
+ },
927
+ {
928
+ "type": "error",
929
+ "name": "EmptyRoot",
930
+ "inputs": []
931
+ },
932
+ {
933
+ "type": "error",
934
+ "name": "FailedCall",
935
+ "inputs": []
936
+ },
937
+ {
938
+ "type": "error",
939
+ "name": "InvalidEntrypointForPool",
940
+ "inputs": []
941
+ },
942
+ {
943
+ "type": "error",
944
+ "name": "InvalidFeeBPS",
945
+ "inputs": []
946
+ },
947
+ {
948
+ "type": "error",
949
+ "name": "InvalidIPFSCIDLength",
950
+ "inputs": []
951
+ },
952
+ {
953
+ "type": "error",
954
+ "name": "InvalidIndex",
955
+ "inputs": []
956
+ },
957
+ {
958
+ "type": "error",
959
+ "name": "InvalidInitialization",
960
+ "inputs": []
961
+ },
962
+ {
963
+ "type": "error",
964
+ "name": "InvalidPoolState",
965
+ "inputs": []
966
+ },
967
+ {
968
+ "type": "error",
969
+ "name": "InvalidProcessooor",
970
+ "inputs": []
971
+ },
972
+ {
973
+ "type": "error",
974
+ "name": "InvalidWithdrawalAmount",
975
+ "inputs": []
976
+ },
977
+ {
978
+ "type": "error",
979
+ "name": "MinimumDepositAmount",
980
+ "inputs": []
981
+ },
982
+ {
983
+ "type": "error",
984
+ "name": "NativeAssetNotAccepted",
985
+ "inputs": []
986
+ },
987
+ {
988
+ "type": "error",
989
+ "name": "NativeAssetTransferFailed",
990
+ "inputs": []
991
+ },
992
+ {
993
+ "type": "error",
994
+ "name": "NoRootsAvailable",
995
+ "inputs": []
996
+ },
997
+ {
998
+ "type": "error",
999
+ "name": "NotInitializing",
1000
+ "inputs": []
1001
+ },
1002
+ {
1003
+ "type": "error",
1004
+ "name": "PoolIsDead",
1005
+ "inputs": []
1006
+ },
1007
+ {
1008
+ "type": "error",
1009
+ "name": "PoolNotFound",
1010
+ "inputs": []
1011
+ },
1012
+ {
1013
+ "type": "error",
1014
+ "name": "ReentrancyGuardReentrantCall",
1015
+ "inputs": []
1016
+ },
1017
+ {
1018
+ "type": "error",
1019
+ "name": "RelayFeeGreaterThanMax",
1020
+ "inputs": []
1021
+ },
1022
+ {
1023
+ "type": "error",
1024
+ "name": "SafeERC20FailedOperation",
1025
+ "inputs": [
1026
+ {
1027
+ "name": "token",
1028
+ "type": "address",
1029
+ "internalType": "address"
1030
+ }
1031
+ ]
1032
+ },
1033
+ {
1034
+ "type": "error",
1035
+ "name": "ScopePoolAlreadyRegistered",
1036
+ "inputs": []
1037
+ },
1038
+ {
1039
+ "type": "error",
1040
+ "name": "UUPSUnauthorizedCallContext",
1041
+ "inputs": []
1042
+ },
1043
+ {
1044
+ "type": "error",
1045
+ "name": "UUPSUnsupportedProxiableUUID",
1046
+ "inputs": [
1047
+ {
1048
+ "name": "slot",
1049
+ "type": "bytes32",
1050
+ "internalType": "bytes32"
1051
+ }
1052
+ ]
1053
+ },
1054
+ {
1055
+ "type": "error",
1056
+ "name": "ZeroAddress",
1057
+ "inputs": []
1058
+ }
1059
+ ] as const;