@fatsolutions/privacy-pools-core-starknet-sdk 0.0.44 → 0.0.45

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