@fatsolutions/privacy-pools-core-starknet-sdk 0.0.43 → 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 +44 -21
  3. package/dist/abis/EntryPoint.abi.js +267 -235
  4. package/dist/abis/EntryPoint.abi.js.map +1 -1
  5. package/dist/abis/PrivacyPool.abi.d.ts +72 -11
  6. package/dist/abis/PrivacyPool.abi.js +227 -145
  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 +5 -2
  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 +267 -235
  44. package/src/abis/PrivacyPool.abi.ts +227 -145
  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 +34 -13
@@ -40,7 +40,27 @@ export declare const EntryPointABI: readonly [{
40
40
  readonly type: "core::felt252";
41
41
  }, {
42
42
  readonly name: "pending_word_len";
43
- readonly type: "core::integer::u32";
43
+ readonly type: "core::internal::bounded_int::BoundedInt::<0, 30>";
44
+ }];
45
+ }, {
46
+ readonly type: "struct";
47
+ readonly name: "privacy_pools::interfaces::Structs::AuditorData";
48
+ readonly members: readonly [{
49
+ readonly name: "tag";
50
+ readonly type: "core::integer::u256";
51
+ }, {
52
+ readonly name: "ciphertext";
53
+ readonly type: "core::byte_array::ByteArray";
54
+ }];
55
+ }, {
56
+ readonly type: "enum";
57
+ readonly name: "core::option::Option::<privacy_pools::interfaces::Structs::AuditorData>";
58
+ readonly variants: readonly [{
59
+ readonly name: "Some";
60
+ readonly type: "privacy_pools::interfaces::Structs::AuditorData";
61
+ }, {
62
+ readonly name: "None";
63
+ readonly type: "()";
44
64
  }];
45
65
  }, {
46
66
  readonly type: "struct";
@@ -55,6 +75,9 @@ export declare const EntryPointABI: readonly [{
55
75
  readonly members: readonly [{
56
76
  readonly name: "processor";
57
77
  readonly type: "core::starknet::contract_address::ContractAddress";
78
+ }, {
79
+ readonly name: "auditorData";
80
+ readonly type: "core::option::Option::<privacy_pools::interfaces::Structs::AuditorData>";
58
81
  }, {
59
82
  readonly name: "data";
60
83
  readonly type: "core::array::Span::<core::felt252>";
@@ -74,13 +97,13 @@ export declare const EntryPointABI: readonly [{
74
97
  readonly type: "core::starknet::contract_address::ContractAddress";
75
98
  }, {
76
99
  readonly name: "minimumDepositAmount";
77
- readonly type: "core::integer::u256";
100
+ readonly type: "core::integer::u128";
78
101
  }, {
79
102
  readonly name: "vettingFeeBPS";
80
- readonly type: "core::integer::u256";
103
+ readonly type: "core::integer::u128";
81
104
  }, {
82
105
  readonly name: "maxRelayFeeBPS";
83
- readonly type: "core::integer::u256";
106
+ readonly type: "core::integer::u128";
84
107
  }];
85
108
  }, {
86
109
  readonly type: "struct";
@@ -130,7 +153,7 @@ export declare const EntryPointABI: readonly [{
130
153
  readonly type: "core::starknet::contract_address::ContractAddress";
131
154
  }, {
132
155
  readonly name: "value";
133
- readonly type: "core::integer::u256";
156
+ readonly type: "core::integer::u128";
134
157
  }, {
135
158
  readonly name: "precommitment";
136
159
  readonly type: "core::integer::u256";
@@ -147,7 +170,7 @@ export declare const EntryPointABI: readonly [{
147
170
  readonly type: "privacy_pools::interfaces::Structs::Withdrawal";
148
171
  }, {
149
172
  readonly name: "scope";
150
- readonly type: "core::integer::u256";
173
+ readonly type: "core::felt252";
151
174
  }, {
152
175
  readonly name: "proof";
153
176
  readonly type: "privacy_pools::interfaces::Structs::WithdrawGaragaProof";
@@ -165,13 +188,13 @@ export declare const EntryPointABI: readonly [{
165
188
  readonly type: "core::starknet::contract_address::ContractAddress";
166
189
  }, {
167
190
  readonly name: "minimumDepositAmount";
168
- readonly type: "core::integer::u256";
191
+ readonly type: "core::integer::u128";
169
192
  }, {
170
193
  readonly name: "vettingFeeBPS";
171
- readonly type: "core::integer::u256";
194
+ readonly type: "core::integer::u128";
172
195
  }, {
173
196
  readonly name: "maxRelayFeeBPS";
174
- readonly type: "core::integer::u256";
197
+ readonly type: "core::integer::u128";
175
198
  }];
176
199
  readonly outputs: readonly [];
177
200
  readonly state_mutability: "external";
@@ -192,13 +215,13 @@ export declare const EntryPointABI: readonly [{
192
215
  readonly type: "core::starknet::contract_address::ContractAddress";
193
216
  }, {
194
217
  readonly name: "minimumDepositAmount";
195
- readonly type: "core::integer::u256";
218
+ readonly type: "core::integer::u128";
196
219
  }, {
197
220
  readonly name: "vettingFeeBPS";
198
- readonly type: "core::integer::u256";
221
+ readonly type: "core::integer::u128";
199
222
  }, {
200
223
  readonly name: "maxRelayFeeBPS";
201
- readonly type: "core::integer::u256";
224
+ readonly type: "core::integer::u128";
202
225
  }];
203
226
  readonly outputs: readonly [];
204
227
  readonly state_mutability: "external";
@@ -228,7 +251,7 @@ export declare const EntryPointABI: readonly [{
228
251
  readonly name: "scopeToPool";
229
252
  readonly inputs: readonly [{
230
253
  readonly name: "scope";
231
- readonly type: "core::integer::u256";
254
+ readonly type: "core::felt252";
232
255
  }];
233
256
  readonly outputs: readonly [{
234
257
  readonly type: "core::starknet::contract_address::ContractAddress";
@@ -390,7 +413,7 @@ export declare const EntryPointABI: readonly [{
390
413
  readonly kind: "data";
391
414
  }, {
392
415
  readonly name: "amount";
393
- readonly type: "core::integer::u256";
416
+ readonly type: "core::integer::u128";
394
417
  readonly kind: "data";
395
418
  }];
396
419
  }, {
@@ -407,11 +430,11 @@ export declare const EntryPointABI: readonly [{
407
430
  readonly kind: "key";
408
431
  }, {
409
432
  readonly name: "amount";
410
- readonly type: "core::integer::u256";
433
+ readonly type: "core::integer::u128";
411
434
  readonly kind: "key";
412
435
  }, {
413
436
  readonly name: "feeAmount";
414
- readonly type: "core::integer::u256";
437
+ readonly type: "core::integer::u128";
415
438
  readonly kind: "data";
416
439
  }];
417
440
  }, {
@@ -454,7 +477,7 @@ export declare const EntryPointABI: readonly [{
454
477
  readonly kind: "data";
455
478
  }, {
456
479
  readonly name: "scope";
457
- readonly type: "core::integer::u256";
480
+ readonly type: "core::felt252";
458
481
  readonly kind: "data";
459
482
  }];
460
483
  }, {
@@ -471,7 +494,7 @@ export declare const EntryPointABI: readonly [{
471
494
  readonly kind: "data";
472
495
  }, {
473
496
  readonly name: "scope";
474
- readonly type: "core::integer::u256";
497
+ readonly type: "core::felt252";
475
498
  readonly kind: "data";
476
499
  }];
477
500
  }, {
@@ -488,15 +511,15 @@ export declare const EntryPointABI: readonly [{
488
511
  readonly kind: "data";
489
512
  }, {
490
513
  readonly name: "newMinimumDepositAmount";
491
- readonly type: "core::integer::u256";
514
+ readonly type: "core::integer::u128";
492
515
  readonly kind: "data";
493
516
  }, {
494
517
  readonly name: "newVettingFeeBPS";
495
- readonly type: "core::integer::u256";
518
+ readonly type: "core::integer::u128";
496
519
  readonly kind: "data";
497
520
  }, {
498
521
  readonly name: "newMaxRelayFeeBPS";
499
- readonly type: "core::integer::u256";
522
+ readonly type: "core::integer::u128";
500
523
  readonly kind: "data";
501
524
  }];
502
525
  }, {