@fatsolutions/privacy-pools-core-starknet-sdk 0.0.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.
Files changed (81) hide show
  1. package/dist/abis/ERC20.abi.d.ts +404 -0
  2. package/dist/abis/ERC20.abi.js +553 -0
  3. package/dist/abis/ERC20.abi.js.map +1 -0
  4. package/dist/abis/EntryPoint.abi.d.ts +667 -0
  5. package/dist/abis/EntryPoint.abi.js +898 -0
  6. package/dist/abis/EntryPoint.abi.js.map +1 -0
  7. package/dist/abis/PrivacyPool.abi.d.ts +388 -0
  8. package/dist/abis/PrivacyPool.abi.js +530 -0
  9. package/dist/abis/PrivacyPool.abi.js.map +1 -0
  10. package/dist/abis/index.d.ts +2 -0
  11. package/dist/abis/index.js +8 -0
  12. package/dist/abis/index.js.map +1 -0
  13. package/dist/constants.d.ts +2 -0
  14. package/dist/constants.js +6 -0
  15. package/dist/constants.js.map +1 -0
  16. package/dist/contracts/contracts.service.d.ts +286 -0
  17. package/dist/contracts/contracts.service.js +205 -0
  18. package/dist/contracts/contracts.service.js.map +1 -0
  19. package/dist/contracts/index.d.ts +2 -0
  20. package/dist/contracts/index.js +19 -0
  21. package/dist/contracts/index.js.map +1 -0
  22. package/dist/contracts/transactionHandler.d.ts +3 -0
  23. package/dist/contracts/transactionHandler.js +27 -0
  24. package/dist/contracts/transactionHandler.js.map +1 -0
  25. package/dist/data.service.d.ts +44 -0
  26. package/dist/data.service.js +166 -0
  27. package/dist/data.service.js.map +1 -0
  28. package/dist/errors/contracts.errors.d.ts +27 -0
  29. package/dist/errors/contracts.errors.js +39 -0
  30. package/dist/errors/contracts.errors.js.map +1 -0
  31. package/dist/errors/index.d.ts +31 -0
  32. package/dist/errors/index.js +61 -0
  33. package/dist/errors/index.js.map +1 -0
  34. package/dist/garaga.d.ts +2 -0
  35. package/dist/garaga.js +52 -0
  36. package/dist/garaga.js.map +1 -0
  37. package/dist/index.d.ts +14 -0
  38. package/dist/index.js +47 -0
  39. package/dist/index.js.map +1 -0
  40. package/dist/sdk.d.ts +17 -0
  41. package/dist/sdk.js +35 -0
  42. package/dist/sdk.js.map +1 -0
  43. package/dist/types/conversions.d.ts +6 -0
  44. package/dist/types/conversions.js +52 -0
  45. package/dist/types/conversions.js.map +1 -0
  46. package/dist/types/entrypoint.d.ts +12 -0
  47. package/dist/types/entrypoint.js +15 -0
  48. package/dist/types/entrypoint.js.map +1 -0
  49. package/dist/types/garaga.d.ts +26 -0
  50. package/dist/types/garaga.js +3 -0
  51. package/dist/types/garaga.js.map +1 -0
  52. package/dist/types/index.d.ts +4 -0
  53. package/dist/types/index.js +21 -0
  54. package/dist/types/index.js.map +1 -0
  55. package/dist/types/snarkjs.d.ts +51 -0
  56. package/dist/types/snarkjs.js +3 -0
  57. package/dist/types/snarkjs.js.map +1 -0
  58. package/dist/utils.d.ts +10 -0
  59. package/dist/utils.js +49 -0
  60. package/dist/utils.js.map +1 -0
  61. package/package.json +44 -0
  62. package/src/abis/ERC20.abi.ts +549 -0
  63. package/src/abis/EntryPoint.abi.ts +894 -0
  64. package/src/abis/PrivacyPool.abi.ts +526 -0
  65. package/src/abis/index.ts +2 -0
  66. package/src/constants.ts +2 -0
  67. package/src/contracts/contracts.service.ts +415 -0
  68. package/src/contracts/index.ts +2 -0
  69. package/src/contracts/transactionHandler.ts +32 -0
  70. package/src/data.service.ts +218 -0
  71. package/src/errors/contracts.errors.ts +35 -0
  72. package/src/errors/index.ts +69 -0
  73. package/src/garaga.ts +20 -0
  74. package/src/index.ts +46 -0
  75. package/src/sdk.ts +44 -0
  76. package/src/types/conversions.ts +59 -0
  77. package/src/types/entrypoint.ts +23 -0
  78. package/src/types/garaga.ts +29 -0
  79. package/src/types/index.ts +4 -0
  80. package/src/types/snarkjs.ts +26 -0
  81. package/src/utils.ts +49 -0
@@ -0,0 +1,894 @@
1
+ export const EntryPointABI = [
2
+ {
3
+ "type": "impl",
4
+ "name": "UpgradeableImpl",
5
+ "interface_name": "openzeppelin_upgrades::interface::IUpgradeable"
6
+ },
7
+ {
8
+ "type": "interface",
9
+ "name": "openzeppelin_upgrades::interface::IUpgradeable",
10
+ "items": [
11
+ {
12
+ "type": "function",
13
+ "name": "upgrade",
14
+ "inputs": [
15
+ {
16
+ "name": "new_class_hash",
17
+ "type": "core::starknet::class_hash::ClassHash"
18
+ }
19
+ ],
20
+ "outputs": [],
21
+ "state_mutability": "external"
22
+ }
23
+ ]
24
+ },
25
+ {
26
+ "type": "impl",
27
+ "name": "EntryPointImpl",
28
+ "interface_name": "privacy_pools::interfaces::IEntryPoint::IEntryPoint"
29
+ },
30
+ {
31
+ "type": "struct",
32
+ "name": "core::integer::u256",
33
+ "members": [
34
+ {
35
+ "name": "low",
36
+ "type": "core::integer::u128"
37
+ },
38
+ {
39
+ "name": "high",
40
+ "type": "core::integer::u128"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "type": "struct",
46
+ "name": "core::byte_array::ByteArray",
47
+ "members": [
48
+ {
49
+ "name": "data",
50
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
51
+ },
52
+ {
53
+ "name": "pending_word",
54
+ "type": "core::felt252"
55
+ },
56
+ {
57
+ "name": "pending_word_len",
58
+ "type": "core::integer::u32"
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "type": "struct",
64
+ "name": "core::array::Span::<core::felt252>",
65
+ "members": [
66
+ {
67
+ "name": "snapshot",
68
+ "type": "@core::array::Array::<core::felt252>"
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "type": "struct",
74
+ "name": "privacy_pools::interfaces::Structs::Withdrawal",
75
+ "members": [
76
+ {
77
+ "name": "processor",
78
+ "type": "core::starknet::contract_address::ContractAddress"
79
+ },
80
+ {
81
+ "name": "data",
82
+ "type": "core::array::Span::<core::felt252>"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "type": "struct",
88
+ "name": "privacy_pools::interfaces::Structs::WithdrawGaragaProof",
89
+ "members": [
90
+ {
91
+ "name": "fullProof",
92
+ "type": "core::array::Span::<core::felt252>"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "type": "struct",
98
+ "name": "privacy_pools::interfaces::IEntryPoint::AssetConfig",
99
+ "members": [
100
+ {
101
+ "name": "pool",
102
+ "type": "core::starknet::contract_address::ContractAddress"
103
+ },
104
+ {
105
+ "name": "minimumDepositAmount",
106
+ "type": "core::integer::u256"
107
+ },
108
+ {
109
+ "name": "vettingFeeBPS",
110
+ "type": "core::integer::u256"
111
+ },
112
+ {
113
+ "name": "maxRelayFeeBPS",
114
+ "type": "core::integer::u256"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "type": "struct",
120
+ "name": "privacy_pools::interfaces::IEntryPoint::AssociationSetData",
121
+ "members": [
122
+ {
123
+ "name": "root",
124
+ "type": "core::integer::u256"
125
+ },
126
+ {
127
+ "name": "ipfsCID",
128
+ "type": "core::byte_array::ByteArray"
129
+ },
130
+ {
131
+ "name": "timestamp",
132
+ "type": "core::integer::u64"
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ "type": "enum",
138
+ "name": "core::bool",
139
+ "variants": [
140
+ {
141
+ "name": "False",
142
+ "type": "()"
143
+ },
144
+ {
145
+ "name": "True",
146
+ "type": "()"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "type": "interface",
152
+ "name": "privacy_pools::interfaces::IEntryPoint::IEntryPoint",
153
+ "items": [
154
+ {
155
+ "type": "function",
156
+ "name": "updateRoot",
157
+ "inputs": [
158
+ {
159
+ "name": "root",
160
+ "type": "core::integer::u256"
161
+ },
162
+ {
163
+ "name": "ipfsCID",
164
+ "type": "core::byte_array::ByteArray"
165
+ }
166
+ ],
167
+ "outputs": [
168
+ {
169
+ "type": "core::integer::u64"
170
+ }
171
+ ],
172
+ "state_mutability": "external"
173
+ },
174
+ {
175
+ "type": "function",
176
+ "name": "deposit",
177
+ "inputs": [
178
+ {
179
+ "name": "asset",
180
+ "type": "core::starknet::contract_address::ContractAddress"
181
+ },
182
+ {
183
+ "name": "value",
184
+ "type": "core::integer::u256"
185
+ },
186
+ {
187
+ "name": "precommitment",
188
+ "type": "core::integer::u256"
189
+ }
190
+ ],
191
+ "outputs": [
192
+ {
193
+ "type": "core::integer::u256"
194
+ }
195
+ ],
196
+ "state_mutability": "external"
197
+ },
198
+ {
199
+ "type": "function",
200
+ "name": "relay",
201
+ "inputs": [
202
+ {
203
+ "name": "withdrawal",
204
+ "type": "privacy_pools::interfaces::Structs::Withdrawal"
205
+ },
206
+ {
207
+ "name": "scope",
208
+ "type": "core::integer::u256"
209
+ },
210
+ {
211
+ "name": "proof",
212
+ "type": "privacy_pools::interfaces::Structs::WithdrawGaragaProof"
213
+ }
214
+ ],
215
+ "outputs": [],
216
+ "state_mutability": "external"
217
+ },
218
+ {
219
+ "type": "function",
220
+ "name": "registerPool",
221
+ "inputs": [
222
+ {
223
+ "name": "asset",
224
+ "type": "core::starknet::contract_address::ContractAddress"
225
+ },
226
+ {
227
+ "name": "pool",
228
+ "type": "core::starknet::contract_address::ContractAddress"
229
+ },
230
+ {
231
+ "name": "minimumDepositAmount",
232
+ "type": "core::integer::u256"
233
+ },
234
+ {
235
+ "name": "vettingFeeBPS",
236
+ "type": "core::integer::u256"
237
+ },
238
+ {
239
+ "name": "maxRelayFeeBPS",
240
+ "type": "core::integer::u256"
241
+ }
242
+ ],
243
+ "outputs": [],
244
+ "state_mutability": "external"
245
+ },
246
+ {
247
+ "type": "function",
248
+ "name": "removePool",
249
+ "inputs": [
250
+ {
251
+ "name": "asset",
252
+ "type": "core::starknet::contract_address::ContractAddress"
253
+ }
254
+ ],
255
+ "outputs": [],
256
+ "state_mutability": "external"
257
+ },
258
+ {
259
+ "type": "function",
260
+ "name": "updatePoolConfiguration",
261
+ "inputs": [
262
+ {
263
+ "name": "asset",
264
+ "type": "core::starknet::contract_address::ContractAddress"
265
+ },
266
+ {
267
+ "name": "minimumDepositAmount",
268
+ "type": "core::integer::u256"
269
+ },
270
+ {
271
+ "name": "vettingFeeBPS",
272
+ "type": "core::integer::u256"
273
+ },
274
+ {
275
+ "name": "maxRelayFeeBPS",
276
+ "type": "core::integer::u256"
277
+ }
278
+ ],
279
+ "outputs": [],
280
+ "state_mutability": "external"
281
+ },
282
+ {
283
+ "type": "function",
284
+ "name": "windDownPool",
285
+ "inputs": [
286
+ {
287
+ "name": "pool",
288
+ "type": "core::starknet::contract_address::ContractAddress"
289
+ }
290
+ ],
291
+ "outputs": [],
292
+ "state_mutability": "external"
293
+ },
294
+ {
295
+ "type": "function",
296
+ "name": "withdrawFees",
297
+ "inputs": [
298
+ {
299
+ "name": "asset",
300
+ "type": "core::starknet::contract_address::ContractAddress"
301
+ },
302
+ {
303
+ "name": "recipient",
304
+ "type": "core::starknet::contract_address::ContractAddress"
305
+ }
306
+ ],
307
+ "outputs": [],
308
+ "state_mutability": "external"
309
+ },
310
+ {
311
+ "type": "function",
312
+ "name": "scopeToPool",
313
+ "inputs": [
314
+ {
315
+ "name": "scope",
316
+ "type": "core::integer::u256"
317
+ }
318
+ ],
319
+ "outputs": [
320
+ {
321
+ "type": "core::starknet::contract_address::ContractAddress"
322
+ }
323
+ ],
324
+ "state_mutability": "view"
325
+ },
326
+ {
327
+ "type": "function",
328
+ "name": "assetConfig",
329
+ "inputs": [
330
+ {
331
+ "name": "asset",
332
+ "type": "core::starknet::contract_address::ContractAddress"
333
+ }
334
+ ],
335
+ "outputs": [
336
+ {
337
+ "type": "privacy_pools::interfaces::IEntryPoint::AssetConfig"
338
+ }
339
+ ],
340
+ "state_mutability": "view"
341
+ },
342
+ {
343
+ "type": "function",
344
+ "name": "associationSets",
345
+ "inputs": [
346
+ {
347
+ "name": "index",
348
+ "type": "core::integer::u64"
349
+ }
350
+ ],
351
+ "outputs": [
352
+ {
353
+ "type": "privacy_pools::interfaces::IEntryPoint::AssociationSetData"
354
+ }
355
+ ],
356
+ "state_mutability": "view"
357
+ },
358
+ {
359
+ "type": "function",
360
+ "name": "latestRoot",
361
+ "inputs": [],
362
+ "outputs": [
363
+ {
364
+ "type": "core::integer::u256"
365
+ }
366
+ ],
367
+ "state_mutability": "view"
368
+ },
369
+ {
370
+ "type": "function",
371
+ "name": "usedPrecommitment",
372
+ "inputs": [
373
+ {
374
+ "name": "precommitment",
375
+ "type": "core::integer::u256"
376
+ }
377
+ ],
378
+ "outputs": [
379
+ {
380
+ "type": "core::bool"
381
+ }
382
+ ],
383
+ "state_mutability": "view"
384
+ }
385
+ ]
386
+ },
387
+ {
388
+ "type": "impl",
389
+ "name": "AccessControlImpl",
390
+ "interface_name": "openzeppelin_access::accesscontrol::interface::IAccessControl"
391
+ },
392
+ {
393
+ "type": "interface",
394
+ "name": "openzeppelin_access::accesscontrol::interface::IAccessControl",
395
+ "items": [
396
+ {
397
+ "type": "function",
398
+ "name": "has_role",
399
+ "inputs": [
400
+ {
401
+ "name": "role",
402
+ "type": "core::felt252"
403
+ },
404
+ {
405
+ "name": "account",
406
+ "type": "core::starknet::contract_address::ContractAddress"
407
+ }
408
+ ],
409
+ "outputs": [
410
+ {
411
+ "type": "core::bool"
412
+ }
413
+ ],
414
+ "state_mutability": "view"
415
+ },
416
+ {
417
+ "type": "function",
418
+ "name": "get_role_admin",
419
+ "inputs": [
420
+ {
421
+ "name": "role",
422
+ "type": "core::felt252"
423
+ }
424
+ ],
425
+ "outputs": [
426
+ {
427
+ "type": "core::felt252"
428
+ }
429
+ ],
430
+ "state_mutability": "view"
431
+ },
432
+ {
433
+ "type": "function",
434
+ "name": "grant_role",
435
+ "inputs": [
436
+ {
437
+ "name": "role",
438
+ "type": "core::felt252"
439
+ },
440
+ {
441
+ "name": "account",
442
+ "type": "core::starknet::contract_address::ContractAddress"
443
+ }
444
+ ],
445
+ "outputs": [],
446
+ "state_mutability": "external"
447
+ },
448
+ {
449
+ "type": "function",
450
+ "name": "revoke_role",
451
+ "inputs": [
452
+ {
453
+ "name": "role",
454
+ "type": "core::felt252"
455
+ },
456
+ {
457
+ "name": "account",
458
+ "type": "core::starknet::contract_address::ContractAddress"
459
+ }
460
+ ],
461
+ "outputs": [],
462
+ "state_mutability": "external"
463
+ },
464
+ {
465
+ "type": "function",
466
+ "name": "renounce_role",
467
+ "inputs": [
468
+ {
469
+ "name": "role",
470
+ "type": "core::felt252"
471
+ },
472
+ {
473
+ "name": "account",
474
+ "type": "core::starknet::contract_address::ContractAddress"
475
+ }
476
+ ],
477
+ "outputs": [],
478
+ "state_mutability": "external"
479
+ }
480
+ ]
481
+ },
482
+ {
483
+ "type": "constructor",
484
+ "name": "constructor",
485
+ "inputs": [
486
+ {
487
+ "name": "owner",
488
+ "type": "core::starknet::contract_address::ContractAddress"
489
+ },
490
+ {
491
+ "name": "postman",
492
+ "type": "core::starknet::contract_address::ContractAddress"
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "type": "event",
498
+ "name": "privacy_pools::interfaces::IEntryPoint::RootUpdated",
499
+ "kind": "struct",
500
+ "members": [
501
+ {
502
+ "name": "root",
503
+ "type": "core::integer::u256",
504
+ "kind": "data"
505
+ },
506
+ {
507
+ "name": "ipfsCID",
508
+ "type": "core::byte_array::ByteArray",
509
+ "kind": "data"
510
+ },
511
+ {
512
+ "name": "timestamp",
513
+ "type": "core::integer::u64",
514
+ "kind": "data"
515
+ }
516
+ ]
517
+ },
518
+ {
519
+ "type": "event",
520
+ "name": "privacy_pools::interfaces::IEntryPoint::Deposited",
521
+ "kind": "struct",
522
+ "members": [
523
+ {
524
+ "name": "depositor",
525
+ "type": "core::starknet::contract_address::ContractAddress",
526
+ "kind": "key"
527
+ },
528
+ {
529
+ "name": "pool",
530
+ "type": "core::starknet::contract_address::ContractAddress",
531
+ "kind": "key"
532
+ },
533
+ {
534
+ "name": "commitment",
535
+ "type": "core::integer::u256",
536
+ "kind": "data"
537
+ },
538
+ {
539
+ "name": "amount",
540
+ "type": "core::integer::u256",
541
+ "kind": "data"
542
+ }
543
+ ]
544
+ },
545
+ {
546
+ "type": "event",
547
+ "name": "privacy_pools::interfaces::IEntryPoint::WithdrawalRelayed",
548
+ "kind": "struct",
549
+ "members": [
550
+ {
551
+ "name": "relayer",
552
+ "type": "core::starknet::contract_address::ContractAddress",
553
+ "kind": "key"
554
+ },
555
+ {
556
+ "name": "recipient",
557
+ "type": "core::starknet::contract_address::ContractAddress",
558
+ "kind": "key"
559
+ },
560
+ {
561
+ "name": "amount",
562
+ "type": "core::integer::u256",
563
+ "kind": "key"
564
+ },
565
+ {
566
+ "name": "feeAmount",
567
+ "type": "core::integer::u256",
568
+ "kind": "data"
569
+ }
570
+ ]
571
+ },
572
+ {
573
+ "type": "event",
574
+ "name": "privacy_pools::interfaces::IEntryPoint::FeesWithdrawn",
575
+ "kind": "struct",
576
+ "members": [
577
+ {
578
+ "name": "asset",
579
+ "type": "core::starknet::contract_address::ContractAddress",
580
+ "kind": "data"
581
+ },
582
+ {
583
+ "name": "recipient",
584
+ "type": "core::starknet::contract_address::ContractAddress",
585
+ "kind": "data"
586
+ },
587
+ {
588
+ "name": "amount",
589
+ "type": "core::integer::u256",
590
+ "kind": "data"
591
+ }
592
+ ]
593
+ },
594
+ {
595
+ "type": "event",
596
+ "name": "privacy_pools::interfaces::IEntryPoint::PoolWindDown",
597
+ "kind": "struct",
598
+ "members": [
599
+ {
600
+ "name": "pool",
601
+ "type": "core::starknet::contract_address::ContractAddress",
602
+ "kind": "data"
603
+ }
604
+ ]
605
+ },
606
+ {
607
+ "type": "event",
608
+ "name": "privacy_pools::interfaces::IEntryPoint::PoolRegistered",
609
+ "kind": "struct",
610
+ "members": [
611
+ {
612
+ "name": "pool",
613
+ "type": "core::starknet::contract_address::ContractAddress",
614
+ "kind": "data"
615
+ },
616
+ {
617
+ "name": "asset",
618
+ "type": "core::starknet::contract_address::ContractAddress",
619
+ "kind": "data"
620
+ },
621
+ {
622
+ "name": "scope",
623
+ "type": "core::integer::u256",
624
+ "kind": "data"
625
+ }
626
+ ]
627
+ },
628
+ {
629
+ "type": "event",
630
+ "name": "privacy_pools::interfaces::IEntryPoint::PoolRemoved",
631
+ "kind": "struct",
632
+ "members": [
633
+ {
634
+ "name": "pool",
635
+ "type": "core::starknet::contract_address::ContractAddress",
636
+ "kind": "data"
637
+ },
638
+ {
639
+ "name": "asset",
640
+ "type": "core::starknet::contract_address::ContractAddress",
641
+ "kind": "data"
642
+ },
643
+ {
644
+ "name": "scope",
645
+ "type": "core::integer::u256",
646
+ "kind": "data"
647
+ }
648
+ ]
649
+ },
650
+ {
651
+ "type": "event",
652
+ "name": "privacy_pools::interfaces::IEntryPoint::PoolConfigurationUpdated",
653
+ "kind": "struct",
654
+ "members": [
655
+ {
656
+ "name": "pool",
657
+ "type": "core::starknet::contract_address::ContractAddress",
658
+ "kind": "data"
659
+ },
660
+ {
661
+ "name": "asset",
662
+ "type": "core::starknet::contract_address::ContractAddress",
663
+ "kind": "data"
664
+ },
665
+ {
666
+ "name": "newMinimumDepositAmount",
667
+ "type": "core::integer::u256",
668
+ "kind": "data"
669
+ },
670
+ {
671
+ "name": "newVettingFeeBPS",
672
+ "type": "core::integer::u256",
673
+ "kind": "data"
674
+ },
675
+ {
676
+ "name": "newMaxRelayFeeBPS",
677
+ "type": "core::integer::u256",
678
+ "kind": "data"
679
+ }
680
+ ]
681
+ },
682
+ {
683
+ "type": "event",
684
+ "name": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGranted",
685
+ "kind": "struct",
686
+ "members": [
687
+ {
688
+ "name": "role",
689
+ "type": "core::felt252",
690
+ "kind": "data"
691
+ },
692
+ {
693
+ "name": "account",
694
+ "type": "core::starknet::contract_address::ContractAddress",
695
+ "kind": "data"
696
+ },
697
+ {
698
+ "name": "sender",
699
+ "type": "core::starknet::contract_address::ContractAddress",
700
+ "kind": "data"
701
+ }
702
+ ]
703
+ },
704
+ {
705
+ "type": "event",
706
+ "name": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGrantedWithDelay",
707
+ "kind": "struct",
708
+ "members": [
709
+ {
710
+ "name": "role",
711
+ "type": "core::felt252",
712
+ "kind": "data"
713
+ },
714
+ {
715
+ "name": "account",
716
+ "type": "core::starknet::contract_address::ContractAddress",
717
+ "kind": "data"
718
+ },
719
+ {
720
+ "name": "sender",
721
+ "type": "core::starknet::contract_address::ContractAddress",
722
+ "kind": "data"
723
+ },
724
+ {
725
+ "name": "delay",
726
+ "type": "core::integer::u64",
727
+ "kind": "data"
728
+ }
729
+ ]
730
+ },
731
+ {
732
+ "type": "event",
733
+ "name": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleRevoked",
734
+ "kind": "struct",
735
+ "members": [
736
+ {
737
+ "name": "role",
738
+ "type": "core::felt252",
739
+ "kind": "data"
740
+ },
741
+ {
742
+ "name": "account",
743
+ "type": "core::starknet::contract_address::ContractAddress",
744
+ "kind": "data"
745
+ },
746
+ {
747
+ "name": "sender",
748
+ "type": "core::starknet::contract_address::ContractAddress",
749
+ "kind": "data"
750
+ }
751
+ ]
752
+ },
753
+ {
754
+ "type": "event",
755
+ "name": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleAdminChanged",
756
+ "kind": "struct",
757
+ "members": [
758
+ {
759
+ "name": "role",
760
+ "type": "core::felt252",
761
+ "kind": "data"
762
+ },
763
+ {
764
+ "name": "previous_admin_role",
765
+ "type": "core::felt252",
766
+ "kind": "data"
767
+ },
768
+ {
769
+ "name": "new_admin_role",
770
+ "type": "core::felt252",
771
+ "kind": "data"
772
+ }
773
+ ]
774
+ },
775
+ {
776
+ "type": "event",
777
+ "name": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::Event",
778
+ "kind": "enum",
779
+ "variants": [
780
+ {
781
+ "name": "RoleGranted",
782
+ "type": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGranted",
783
+ "kind": "nested"
784
+ },
785
+ {
786
+ "name": "RoleGrantedWithDelay",
787
+ "type": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGrantedWithDelay",
788
+ "kind": "nested"
789
+ },
790
+ {
791
+ "name": "RoleRevoked",
792
+ "type": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleRevoked",
793
+ "kind": "nested"
794
+ },
795
+ {
796
+ "name": "RoleAdminChanged",
797
+ "type": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleAdminChanged",
798
+ "kind": "nested"
799
+ }
800
+ ]
801
+ },
802
+ {
803
+ "type": "event",
804
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
805
+ "kind": "enum",
806
+ "variants": []
807
+ },
808
+ {
809
+ "type": "event",
810
+ "name": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded",
811
+ "kind": "struct",
812
+ "members": [
813
+ {
814
+ "name": "class_hash",
815
+ "type": "core::starknet::class_hash::ClassHash",
816
+ "kind": "data"
817
+ }
818
+ ]
819
+ },
820
+ {
821
+ "type": "event",
822
+ "name": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event",
823
+ "kind": "enum",
824
+ "variants": [
825
+ {
826
+ "name": "Upgraded",
827
+ "type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded",
828
+ "kind": "nested"
829
+ }
830
+ ]
831
+ },
832
+ {
833
+ "type": "event",
834
+ "name": "privacy_pools::implementations::Entrypoint::EntryPoint::Event",
835
+ "kind": "enum",
836
+ "variants": [
837
+ {
838
+ "name": "RootUpdated",
839
+ "type": "privacy_pools::interfaces::IEntryPoint::RootUpdated",
840
+ "kind": "nested"
841
+ },
842
+ {
843
+ "name": "Deposited",
844
+ "type": "privacy_pools::interfaces::IEntryPoint::Deposited",
845
+ "kind": "nested"
846
+ },
847
+ {
848
+ "name": "WithdrawalRelayed",
849
+ "type": "privacy_pools::interfaces::IEntryPoint::WithdrawalRelayed",
850
+ "kind": "nested"
851
+ },
852
+ {
853
+ "name": "FeesWithdrawn",
854
+ "type": "privacy_pools::interfaces::IEntryPoint::FeesWithdrawn",
855
+ "kind": "nested"
856
+ },
857
+ {
858
+ "name": "PoolWindDown",
859
+ "type": "privacy_pools::interfaces::IEntryPoint::PoolWindDown",
860
+ "kind": "nested"
861
+ },
862
+ {
863
+ "name": "PoolRegistered",
864
+ "type": "privacy_pools::interfaces::IEntryPoint::PoolRegistered",
865
+ "kind": "nested"
866
+ },
867
+ {
868
+ "name": "PoolRemoved",
869
+ "type": "privacy_pools::interfaces::IEntryPoint::PoolRemoved",
870
+ "kind": "nested"
871
+ },
872
+ {
873
+ "name": "PoolConfigurationUpdated",
874
+ "type": "privacy_pools::interfaces::IEntryPoint::PoolConfigurationUpdated",
875
+ "kind": "nested"
876
+ },
877
+ {
878
+ "name": "AccessControlEvent",
879
+ "type": "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::Event",
880
+ "kind": "flat"
881
+ },
882
+ {
883
+ "name": "SRC5Event",
884
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
885
+ "kind": "flat"
886
+ },
887
+ {
888
+ "name": "UpgradeableEvent",
889
+ "type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event",
890
+ "kind": "flat"
891
+ }
892
+ ]
893
+ }
894
+ ] as const;