@fatsolutions/privacy-pools-core-starknet-sdk 0.0.40 → 0.0.42

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,526 +1,608 @@
1
1
  export const PrivacyPoolABI = [
2
- {
3
- "type": "impl",
4
- "name": "PrivacyPoolImpl",
5
- "interface_name": "privacy_pools::interfaces::IPool::IPrivacyPool"
6
- },
7
- {
8
- "type": "struct",
9
- "name": "core::integer::u256",
10
- "members": [
11
- {
12
- "name": "low",
13
- "type": "core::integer::u128"
14
- },
15
- {
16
- "name": "high",
17
- "type": "core::integer::u128"
18
- }
19
- ]
20
- },
21
- {
22
- "type": "struct",
23
- "name": "core::array::Span::<core::felt252>",
24
- "members": [
25
- {
26
- "name": "snapshot",
27
- "type": "@core::array::Array::<core::felt252>"
28
- }
29
- ]
30
- },
31
- {
32
- "type": "struct",
33
- "name": "privacy_pools::interfaces::Structs::Withdrawal",
34
- "members": [
35
- {
36
- "name": "processor",
37
- "type": "core::starknet::contract_address::ContractAddress"
38
- },
39
- {
40
- "name": "data",
41
- "type": "core::array::Span::<core::felt252>"
42
- }
43
- ]
44
- },
45
- {
46
- "type": "struct",
47
- "name": "privacy_pools::interfaces::Structs::WithdrawGaragaProof",
48
- "members": [
49
- {
50
- "name": "fullProof",
51
- "type": "core::array::Span::<core::felt252>"
52
- }
53
- ]
54
- },
55
- {
56
- "type": "struct",
57
- "name": "privacy_pools::interfaces::Structs::RagequitGaragaProof",
58
- "members": [
59
- {
60
- "name": "fullProof",
61
- "type": "core::array::Span::<core::felt252>"
62
- }
63
- ]
64
- },
65
- {
66
- "type": "interface",
67
- "name": "privacy_pools::interfaces::IPool::IPrivacyPool",
68
- "items": [
69
- {
70
- "type": "function",
71
- "name": "deposit",
72
- "inputs": [
73
- {
74
- "name": "depositor",
75
- "type": "core::starknet::contract_address::ContractAddress"
76
- },
77
- {
78
- "name": "value",
79
- "type": "core::integer::u256"
80
- },
81
- {
82
- "name": "preCommitmentHash",
83
- "type": "core::integer::u256"
84
- }
85
- ],
86
- "outputs": [
87
- {
88
- "type": "core::integer::u256"
89
- }
90
- ],
91
- "state_mutability": "external"
92
- },
93
- {
94
- "type": "function",
95
- "name": "withdraw",
96
- "inputs": [
97
- {
98
- "name": "withdrawal",
99
- "type": "privacy_pools::interfaces::Structs::Withdrawal"
100
- },
101
- {
102
- "name": "proof",
103
- "type": "privacy_pools::interfaces::Structs::WithdrawGaragaProof"
104
- }
105
- ],
106
- "outputs": [],
107
- "state_mutability": "external"
108
- },
109
- {
110
- "type": "function",
111
- "name": "ragequit",
112
- "inputs": [
113
- {
114
- "name": "proof",
115
- "type": "privacy_pools::interfaces::Structs::RagequitGaragaProof"
116
- }
117
- ],
118
- "outputs": [],
119
- "state_mutability": "external"
120
- },
121
- {
122
- "type": "function",
123
- "name": "windDown",
124
- "inputs": [],
125
- "outputs": [],
126
- "state_mutability": "external"
127
- }
128
- ]
129
- },
130
- {
131
- "type": "impl",
132
- "name": "IStateImpl",
133
- "interface_name": "privacy_pools::interfaces::IPool::IPoolState"
134
- },
135
- {
136
- "type": "enum",
137
- "name": "core::bool",
138
- "variants": [
139
- {
140
- "name": "False",
141
- "type": "()"
142
- },
143
- {
144
- "name": "True",
145
- "type": "()"
146
- }
147
- ]
148
- },
149
- {
150
- "type": "interface",
151
- "name": "privacy_pools::interfaces::IPool::IPoolState",
152
- "items": [
153
- {
154
- "type": "function",
155
- "name": "scope",
156
- "inputs": [],
157
- "outputs": [
158
- {
159
- "type": "core::integer::u256"
160
- }
161
- ],
162
- "state_mutability": "view"
163
- },
164
- {
165
- "type": "function",
166
- "name": "asset",
167
- "inputs": [],
168
- "outputs": [
169
- {
170
- "type": "core::starknet::contract_address::ContractAddress"
171
- }
172
- ],
173
- "state_mutability": "view"
174
- },
175
- {
176
- "type": "function",
177
- "name": "root_history_size",
178
- "inputs": [],
179
- "outputs": [
180
- {
181
- "type": "core::integer::u8"
182
- }
183
- ],
184
- "state_mutability": "view"
185
- },
186
- {
187
- "type": "function",
188
- "name": "entrypoint",
189
- "inputs": [],
190
- "outputs": [
191
- {
192
- "type": "core::starknet::contract_address::ContractAddress"
193
- }
194
- ],
195
- "state_mutability": "view"
196
- },
197
- {
198
- "type": "function",
199
- "name": "withdrawal_verifier",
200
- "inputs": [],
201
- "outputs": [
202
- {
203
- "type": "core::starknet::class_hash::ClassHash"
204
- }
205
- ],
206
- "state_mutability": "view"
207
- },
208
- {
209
- "type": "function",
210
- "name": "ragequit_verifier",
211
- "inputs": [],
212
- "outputs": [
213
- {
214
- "type": "core::starknet::class_hash::ClassHash"
215
- }
216
- ],
217
- "state_mutability": "view"
218
- },
219
- {
220
- "type": "function",
221
- "name": "currentRootIndex",
222
- "inputs": [],
223
- "outputs": [
224
- {
225
- "type": "core::integer::u8"
226
- }
227
- ],
228
- "state_mutability": "view"
229
- },
230
- {
231
- "type": "function",
232
- "name": "currentRoot",
233
- "inputs": [],
234
- "outputs": [
235
- {
236
- "type": "core::integer::u256"
237
- }
238
- ],
239
- "state_mutability": "view"
240
- },
241
- {
242
- "type": "function",
243
- "name": "currentTreeDepth",
244
- "inputs": [],
245
- "outputs": [
246
- {
247
- "type": "core::integer::u8"
248
- }
249
- ],
250
- "state_mutability": "view"
251
- },
252
- {
253
- "type": "function",
254
- "name": "currentTreeSize",
255
- "inputs": [],
256
- "outputs": [
257
- {
258
- "type": "core::integer::u32"
259
- }
260
- ],
261
- "state_mutability": "view"
262
- },
263
- {
264
- "type": "function",
265
- "name": "nonce",
266
- "inputs": [],
267
- "outputs": [
268
- {
269
- "type": "core::integer::u64"
270
- }
271
- ],
272
- "state_mutability": "view"
273
- },
274
- {
275
- "type": "function",
276
- "name": "dead",
277
- "inputs": [],
278
- "outputs": [
279
- {
280
- "type": "core::bool"
281
- }
282
- ],
283
- "state_mutability": "view"
284
- },
285
- {
286
- "type": "function",
287
- "name": "roots",
288
- "inputs": [
289
- {
290
- "name": "index",
291
- "type": "core::integer::u64"
292
- }
293
- ],
294
- "outputs": [
295
- {
296
- "type": "core::integer::u256"
297
- }
298
- ],
299
- "state_mutability": "view"
300
- },
301
- {
302
- "type": "function",
303
- "name": "nullifierHashes",
304
- "inputs": [
305
- {
306
- "name": "nullifierHash",
307
- "type": "core::integer::u256"
308
- }
309
- ],
310
- "outputs": [
311
- {
312
- "type": "core::bool"
313
- }
314
- ],
315
- "state_mutability": "view"
316
- },
317
- {
318
- "type": "function",
319
- "name": "depositor",
320
- "inputs": [
321
- {
322
- "name": "label",
323
- "type": "core::integer::u256"
324
- }
325
- ],
326
- "outputs": [
327
- {
328
- "type": "core::starknet::contract_address::ContractAddress"
329
- }
330
- ],
331
- "state_mutability": "view"
332
- },
333
- {
334
- "type": "function",
335
- "name": "deployment_block",
336
- "inputs": [],
337
- "outputs": [
338
- {
339
- "type": "core::integer::u64"
340
- }
341
- ],
342
- "state_mutability": "view"
343
- }
344
- ]
345
- },
346
- {
347
- "type": "constructor",
348
- "name": "constructor",
349
- "inputs": [
350
- {
351
- "name": "entrypoint",
352
- "type": "core::starknet::contract_address::ContractAddress"
353
- },
354
- {
355
- "name": "asset",
356
- "type": "core::starknet::contract_address::ContractAddress"
357
- },
358
- {
359
- "name": "withdrawal_verifier",
360
- "type": "core::starknet::class_hash::ClassHash"
361
- },
362
- {
363
- "name": "ragequit_verifier",
364
- "type": "core::starknet::class_hash::ClassHash"
365
- }
366
- ]
367
- },
368
- {
369
- "type": "event",
370
- "name": "privacy_pools::implementations::LeanIMT::LeanIMT::LeafInserted",
371
- "kind": "struct",
372
- "members": [
373
- {
374
- "name": "index",
375
- "type": "core::integer::u32",
376
- "kind": "data"
377
- },
378
- {
379
- "name": "leaf",
380
- "type": "core::integer::u256",
381
- "kind": "data"
382
- },
383
- {
384
- "name": "root",
385
- "type": "core::integer::u256",
386
- "kind": "data"
387
- }
388
- ]
389
- },
390
- {
391
- "type": "event",
392
- "name": "privacy_pools::implementations::LeanIMT::LeanIMT::Event",
393
- "kind": "enum",
394
- "variants": [
395
- {
396
- "name": "LeafInserted",
397
- "type": "privacy_pools::implementations::LeanIMT::LeanIMT::LeafInserted",
398
- "kind": "nested"
399
- }
400
- ]
401
- },
402
- {
403
- "type": "event",
404
- "name": "privacy_pools::interfaces::IPool::Deposited",
405
- "kind": "struct",
406
- "members": [
407
- {
408
- "name": "depositor",
409
- "type": "core::starknet::contract_address::ContractAddress",
410
- "kind": "key"
411
- },
412
- {
413
- "name": "commitment",
414
- "type": "core::integer::u256",
415
- "kind": "data"
416
- },
417
- {
418
- "name": "label",
419
- "type": "core::integer::u256",
420
- "kind": "data"
421
- },
422
- {
423
- "name": "value",
424
- "type": "core::integer::u256",
425
- "kind": "data"
426
- },
427
- {
428
- "name": "preCommitmentHash",
429
- "type": "core::integer::u256",
430
- "kind": "data"
431
- }
432
- ]
433
- },
434
- {
435
- "type": "event",
436
- "name": "privacy_pools::interfaces::IPool::Withdrawn",
437
- "kind": "struct",
438
- "members": [
439
- {
440
- "name": "procesoor",
441
- "type": "core::starknet::contract_address::ContractAddress",
442
- "kind": "key"
443
- },
444
- {
445
- "name": "newCommitmentHash",
446
- "type": "core::integer::u256",
447
- "kind": "data"
448
- },
449
- {
450
- "name": "withdrawnValue",
451
- "type": "core::integer::u256",
452
- "kind": "data"
453
- },
454
- {
455
- "name": "existingNullifierHash",
456
- "type": "core::integer::u256",
457
- "kind": "data"
458
- }
459
- ]
460
- },
461
- {
462
- "type": "event",
463
- "name": "privacy_pools::interfaces::IPool::RageQuit",
464
- "kind": "struct",
465
- "members": [
466
- {
467
- "name": "depositor",
468
- "type": "core::starknet::contract_address::ContractAddress",
469
- "kind": "key"
470
- },
471
- {
472
- "name": "commitment",
473
- "type": "core::integer::u256",
474
- "kind": "data"
475
- },
476
- {
477
- "name": "label",
478
- "type": "core::integer::u256",
479
- "kind": "data"
480
- },
481
- {
482
- "name": "value",
483
- "type": "core::integer::u256",
484
- "kind": "data"
485
- }
486
- ]
487
- },
488
- {
489
- "type": "event",
490
- "name": "privacy_pools::interfaces::IPool::PoolDied",
491
- "kind": "struct",
492
- "members": []
493
- },
494
- {
495
- "type": "event",
496
- "name": "privacy_pools::implementations::PrivacyPool::PrivacyPool::Event",
497
- "kind": "enum",
498
- "variants": [
499
- {
500
- "name": "TreeEvents",
501
- "type": "privacy_pools::implementations::LeanIMT::LeanIMT::Event",
502
- "kind": "nested"
503
- },
504
- {
505
- "name": "Deposited",
506
- "type": "privacy_pools::interfaces::IPool::Deposited",
507
- "kind": "nested"
508
- },
509
- {
510
- "name": "Withdrawn",
511
- "type": "privacy_pools::interfaces::IPool::Withdrawn",
512
- "kind": "nested"
513
- },
514
- {
515
- "name": "RageQuit",
516
- "type": "privacy_pools::interfaces::IPool::RageQuit",
517
- "kind": "nested"
518
- },
519
- {
520
- "name": "PoolDied",
521
- "type": "privacy_pools::interfaces::IPool::PoolDied",
522
- "kind": "nested"
523
- }
524
- ]
525
- }
526
- ] as const;
2
+ {
3
+ "type": "impl",
4
+ "name": "PrivacyPoolImpl",
5
+ "interface_name": "privacy_pools::interfaces::IPool::IPrivacyPool"
6
+ },
7
+ {
8
+ "type": "struct",
9
+ "name": "core::integer::u256",
10
+ "members": [
11
+ {
12
+ "name": "low",
13
+ "type": "core::integer::u128"
14
+ },
15
+ {
16
+ "name": "high",
17
+ "type": "core::integer::u128"
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ "type": "struct",
23
+ "name": "core::byte_array::ByteArray",
24
+ "members": [
25
+ {
26
+ "name": "data",
27
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
28
+ },
29
+ {
30
+ "name": "pending_word",
31
+ "type": "core::felt252"
32
+ },
33
+ {
34
+ "name": "pending_word_len",
35
+ "type": "core::integer::u32"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "type": "struct",
41
+ "name": "privacy_pools::interfaces::Structs::AuditorData",
42
+ "members": [
43
+ {
44
+ "name": "tag",
45
+ "type": "core::integer::u256"
46
+ },
47
+ {
48
+ "name": "ciphertext",
49
+ "type": "core::byte_array::ByteArray"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "type": "enum",
55
+ "name": "core::option::Option::<privacy_pools::interfaces::Structs::AuditorData>",
56
+ "variants": [
57
+ {
58
+ "name": "Some",
59
+ "type": "privacy_pools::interfaces::Structs::AuditorData"
60
+ },
61
+ {
62
+ "name": "None",
63
+ "type": "()"
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "type": "struct",
69
+ "name": "core::array::Span::<core::felt252>",
70
+ "members": [
71
+ {
72
+ "name": "snapshot",
73
+ "type": "@core::array::Array::<core::felt252>"
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "type": "struct",
79
+ "name": "privacy_pools::interfaces::Structs::Withdrawal",
80
+ "members": [
81
+ {
82
+ "name": "processor",
83
+ "type": "core::starknet::contract_address::ContractAddress"
84
+ },
85
+ {
86
+ "name": "auditorData",
87
+ "type": "core::option::Option::<privacy_pools::interfaces::Structs::AuditorData>"
88
+ },
89
+ {
90
+ "name": "data",
91
+ "type": "core::array::Span::<core::felt252>"
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "type": "struct",
97
+ "name": "privacy_pools::interfaces::Structs::WithdrawGaragaProof",
98
+ "members": [
99
+ {
100
+ "name": "fullProof",
101
+ "type": "core::array::Span::<core::felt252>"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "type": "struct",
107
+ "name": "privacy_pools::interfaces::Structs::RagequitGaragaProof",
108
+ "members": [
109
+ {
110
+ "name": "fullProof",
111
+ "type": "core::array::Span::<core::felt252>"
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "type": "interface",
117
+ "name": "privacy_pools::interfaces::IPool::IPrivacyPool",
118
+ "items": [
119
+ {
120
+ "type": "function",
121
+ "name": "deposit",
122
+ "inputs": [
123
+ {
124
+ "name": "depositor",
125
+ "type": "core::starknet::contract_address::ContractAddress"
126
+ },
127
+ {
128
+ "name": "value",
129
+ "type": "core::integer::u256"
130
+ },
131
+ {
132
+ "name": "preCommitmentHash",
133
+ "type": "core::integer::u256"
134
+ }
135
+ ],
136
+ "outputs": [
137
+ {
138
+ "type": "core::integer::u256"
139
+ }
140
+ ],
141
+ "state_mutability": "external"
142
+ },
143
+ {
144
+ "type": "function",
145
+ "name": "withdraw",
146
+ "inputs": [
147
+ {
148
+ "name": "withdrawal",
149
+ "type": "privacy_pools::interfaces::Structs::Withdrawal"
150
+ },
151
+ {
152
+ "name": "proof",
153
+ "type": "privacy_pools::interfaces::Structs::WithdrawGaragaProof"
154
+ }
155
+ ],
156
+ "outputs": [],
157
+ "state_mutability": "external"
158
+ },
159
+ {
160
+ "type": "function",
161
+ "name": "ragequit",
162
+ "inputs": [
163
+ {
164
+ "name": "proof",
165
+ "type": "privacy_pools::interfaces::Structs::RagequitGaragaProof"
166
+ }
167
+ ],
168
+ "outputs": [],
169
+ "state_mutability": "external"
170
+ },
171
+ {
172
+ "type": "function",
173
+ "name": "windDown",
174
+ "inputs": [],
175
+ "outputs": [],
176
+ "state_mutability": "external"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "type": "impl",
182
+ "name": "IStateImpl",
183
+ "interface_name": "privacy_pools::interfaces::IPool::IPoolState"
184
+ },
185
+ {
186
+ "type": "enum",
187
+ "name": "core::bool",
188
+ "variants": [
189
+ {
190
+ "name": "False",
191
+ "type": "()"
192
+ },
193
+ {
194
+ "name": "True",
195
+ "type": "()"
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "type": "interface",
201
+ "name": "privacy_pools::interfaces::IPool::IPoolState",
202
+ "items": [
203
+ {
204
+ "type": "function",
205
+ "name": "scope",
206
+ "inputs": [],
207
+ "outputs": [
208
+ {
209
+ "type": "core::integer::u256"
210
+ }
211
+ ],
212
+ "state_mutability": "view"
213
+ },
214
+ {
215
+ "type": "function",
216
+ "name": "asset",
217
+ "inputs": [],
218
+ "outputs": [
219
+ {
220
+ "type": "core::starknet::contract_address::ContractAddress"
221
+ }
222
+ ],
223
+ "state_mutability": "view"
224
+ },
225
+ {
226
+ "type": "function",
227
+ "name": "root_history_size",
228
+ "inputs": [],
229
+ "outputs": [
230
+ {
231
+ "type": "core::integer::u8"
232
+ }
233
+ ],
234
+ "state_mutability": "view"
235
+ },
236
+ {
237
+ "type": "function",
238
+ "name": "entrypoint",
239
+ "inputs": [],
240
+ "outputs": [
241
+ {
242
+ "type": "core::starknet::contract_address::ContractAddress"
243
+ }
244
+ ],
245
+ "state_mutability": "view"
246
+ },
247
+ {
248
+ "type": "function",
249
+ "name": "withdrawal_verifier",
250
+ "inputs": [],
251
+ "outputs": [
252
+ {
253
+ "type": "core::starknet::class_hash::ClassHash"
254
+ }
255
+ ],
256
+ "state_mutability": "view"
257
+ },
258
+ {
259
+ "type": "function",
260
+ "name": "ragequit_verifier",
261
+ "inputs": [],
262
+ "outputs": [
263
+ {
264
+ "type": "core::starknet::class_hash::ClassHash"
265
+ }
266
+ ],
267
+ "state_mutability": "view"
268
+ },
269
+ {
270
+ "type": "function",
271
+ "name": "currentRootIndex",
272
+ "inputs": [],
273
+ "outputs": [
274
+ {
275
+ "type": "core::integer::u8"
276
+ }
277
+ ],
278
+ "state_mutability": "view"
279
+ },
280
+ {
281
+ "type": "function",
282
+ "name": "currentRoot",
283
+ "inputs": [],
284
+ "outputs": [
285
+ {
286
+ "type": "core::integer::u256"
287
+ }
288
+ ],
289
+ "state_mutability": "view"
290
+ },
291
+ {
292
+ "type": "function",
293
+ "name": "currentTreeDepth",
294
+ "inputs": [],
295
+ "outputs": [
296
+ {
297
+ "type": "core::integer::u8"
298
+ }
299
+ ],
300
+ "state_mutability": "view"
301
+ },
302
+ {
303
+ "type": "function",
304
+ "name": "currentTreeSize",
305
+ "inputs": [],
306
+ "outputs": [
307
+ {
308
+ "type": "core::integer::u32"
309
+ }
310
+ ],
311
+ "state_mutability": "view"
312
+ },
313
+ {
314
+ "type": "function",
315
+ "name": "nonce",
316
+ "inputs": [],
317
+ "outputs": [
318
+ {
319
+ "type": "core::integer::u64"
320
+ }
321
+ ],
322
+ "state_mutability": "view"
323
+ },
324
+ {
325
+ "type": "function",
326
+ "name": "dead",
327
+ "inputs": [],
328
+ "outputs": [
329
+ {
330
+ "type": "core::bool"
331
+ }
332
+ ],
333
+ "state_mutability": "view"
334
+ },
335
+ {
336
+ "type": "function",
337
+ "name": "roots",
338
+ "inputs": [
339
+ {
340
+ "name": "index",
341
+ "type": "core::integer::u64"
342
+ }
343
+ ],
344
+ "outputs": [
345
+ {
346
+ "type": "core::integer::u256"
347
+ }
348
+ ],
349
+ "state_mutability": "view"
350
+ },
351
+ {
352
+ "type": "function",
353
+ "name": "nullifierHashes",
354
+ "inputs": [
355
+ {
356
+ "name": "nullifierHash",
357
+ "type": "core::integer::u256"
358
+ }
359
+ ],
360
+ "outputs": [
361
+ {
362
+ "type": "core::bool"
363
+ }
364
+ ],
365
+ "state_mutability": "view"
366
+ },
367
+ {
368
+ "type": "function",
369
+ "name": "depositor",
370
+ "inputs": [
371
+ {
372
+ "name": "label",
373
+ "type": "core::integer::u256"
374
+ }
375
+ ],
376
+ "outputs": [
377
+ {
378
+ "type": "core::starknet::contract_address::ContractAddress"
379
+ }
380
+ ],
381
+ "state_mutability": "view"
382
+ },
383
+ {
384
+ "type": "function",
385
+ "name": "deployment_block",
386
+ "inputs": [],
387
+ "outputs": [
388
+ {
389
+ "type": "core::integer::u64"
390
+ }
391
+ ],
392
+ "state_mutability": "view"
393
+ }
394
+ ]
395
+ },
396
+ {
397
+ "type": "constructor",
398
+ "name": "constructor",
399
+ "inputs": [
400
+ {
401
+ "name": "entrypoint",
402
+ "type": "core::starknet::contract_address::ContractAddress"
403
+ },
404
+ {
405
+ "name": "asset",
406
+ "type": "core::starknet::contract_address::ContractAddress"
407
+ },
408
+ {
409
+ "name": "withdrawal_verifier",
410
+ "type": "core::starknet::class_hash::ClassHash"
411
+ },
412
+ {
413
+ "name": "ragequit_verifier",
414
+ "type": "core::starknet::class_hash::ClassHash"
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ "type": "event",
420
+ "name": "privacy_pools::implementations::LeanIMT::LeanIMT::LeafInserted",
421
+ "kind": "struct",
422
+ "members": [
423
+ {
424
+ "name": "index",
425
+ "type": "core::integer::u32",
426
+ "kind": "data"
427
+ },
428
+ {
429
+ "name": "leaf",
430
+ "type": "core::integer::u256",
431
+ "kind": "data"
432
+ },
433
+ {
434
+ "name": "root",
435
+ "type": "core::integer::u256",
436
+ "kind": "data"
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ "type": "event",
442
+ "name": "privacy_pools::implementations::LeanIMT::LeanIMT::Event",
443
+ "kind": "enum",
444
+ "variants": [
445
+ {
446
+ "name": "LeafInserted",
447
+ "type": "privacy_pools::implementations::LeanIMT::LeanIMT::LeafInserted",
448
+ "kind": "nested"
449
+ }
450
+ ]
451
+ },
452
+ {
453
+ "type": "event",
454
+ "name": "privacy_pools::interfaces::IPool::Deposited",
455
+ "kind": "struct",
456
+ "members": [
457
+ {
458
+ "name": "depositor",
459
+ "type": "core::starknet::contract_address::ContractAddress",
460
+ "kind": "key"
461
+ },
462
+ {
463
+ "name": "label",
464
+ "type": "core::integer::u256",
465
+ "kind": "key"
466
+ },
467
+ {
468
+ "name": "commitment",
469
+ "type": "core::integer::u256",
470
+ "kind": "data"
471
+ },
472
+ {
473
+ "name": "value",
474
+ "type": "core::integer::u256",
475
+ "kind": "data"
476
+ },
477
+ {
478
+ "name": "preCommitmentHash",
479
+ "type": "core::integer::u256",
480
+ "kind": "data"
481
+ }
482
+ ]
483
+ },
484
+ {
485
+ "type": "event",
486
+ "name": "privacy_pools::interfaces::IPool::Withdrawn",
487
+ "kind": "struct",
488
+ "members": [
489
+ {
490
+ "name": "procesoor",
491
+ "type": "core::starknet::contract_address::ContractAddress",
492
+ "kind": "key"
493
+ },
494
+ {
495
+ "name": "newCommitmentHash",
496
+ "type": "core::integer::u256",
497
+ "kind": "data"
498
+ },
499
+ {
500
+ "name": "withdrawnValue",
501
+ "type": "core::integer::u256",
502
+ "kind": "data"
503
+ },
504
+ {
505
+ "name": "existingNullifierHash",
506
+ "type": "core::integer::u256",
507
+ "kind": "data"
508
+ }
509
+ ]
510
+ },
511
+ {
512
+ "type": "event",
513
+ "name": "privacy_pools::interfaces::IPool::RageQuit",
514
+ "kind": "struct",
515
+ "members": [
516
+ {
517
+ "name": "depositor",
518
+ "type": "core::starknet::contract_address::ContractAddress",
519
+ "kind": "key"
520
+ },
521
+ {
522
+ "name": "label",
523
+ "type": "core::integer::u256",
524
+ "kind": "data"
525
+ },
526
+ {
527
+ "name": "commitment",
528
+ "type": "core::integer::u256",
529
+ "kind": "data"
530
+ },
531
+ {
532
+ "name": "value",
533
+ "type": "core::integer::u256",
534
+ "kind": "data"
535
+ }
536
+ ]
537
+ },
538
+ {
539
+ "type": "event",
540
+ "name": "privacy_pools::interfaces::IPool::PoolDied",
541
+ "kind": "struct",
542
+ "members": []
543
+ },
544
+ {
545
+ "type": "event",
546
+ "name": "privacy_pools::interfaces::IPool::AuditEvent",
547
+ "kind": "struct",
548
+ "members": [
549
+ {
550
+ "name": "tag",
551
+ "type": "core::integer::u256",
552
+ "kind": "key"
553
+ },
554
+ {
555
+ "name": "ciphertext",
556
+ "type": "core::byte_array::ByteArray",
557
+ "kind": "data"
558
+ },
559
+ {
560
+ "name": "prevNullifierHash",
561
+ "type": "core::integer::u256",
562
+ "kind": "data"
563
+ },
564
+ {
565
+ "name": "newCommitment",
566
+ "type": "core::integer::u256",
567
+ "kind": "data"
568
+ }
569
+ ]
570
+ },
571
+ {
572
+ "type": "event",
573
+ "name": "privacy_pools::implementations::PrivacyPool::PrivacyPool::Event",
574
+ "kind": "enum",
575
+ "variants": [
576
+ {
577
+ "name": "TreeEvents",
578
+ "type": "privacy_pools::implementations::LeanIMT::LeanIMT::Event",
579
+ "kind": "nested"
580
+ },
581
+ {
582
+ "name": "Deposited",
583
+ "type": "privacy_pools::interfaces::IPool::Deposited",
584
+ "kind": "nested"
585
+ },
586
+ {
587
+ "name": "Withdrawn",
588
+ "type": "privacy_pools::interfaces::IPool::Withdrawn",
589
+ "kind": "nested"
590
+ },
591
+ {
592
+ "name": "RageQuit",
593
+ "type": "privacy_pools::interfaces::IPool::RageQuit",
594
+ "kind": "nested"
595
+ },
596
+ {
597
+ "name": "PoolDied",
598
+ "type": "privacy_pools::interfaces::IPool::PoolDied",
599
+ "kind": "nested"
600
+ },
601
+ {
602
+ "name": "AuditEvent",
603
+ "type": "privacy_pools::interfaces::IPool::AuditEvent",
604
+ "kind": "nested"
605
+ }
606
+ ]
607
+ }
608
+ ] as const;