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

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
@@ -42,6 +42,26 @@ export declare const EntryPointABI: readonly [{
42
42
  readonly name: "pending_word_len";
43
43
  readonly type: "core::internal::bounded_int::BoundedInt::<0, 30>";
44
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: "()";
64
+ }];
45
65
  }, {
46
66
  readonly type: "struct";
47
67
  readonly name: "core::array::Span::<core::felt252>";
@@ -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";
@@ -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";
@@ -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
  }, {