@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.
- package/dist/abis/ERC20.abi.js +145 -145
- package/dist/abis/EntryPoint.abi.d.ts +35 -12
- package/dist/abis/EntryPoint.abi.js +262 -230
- package/dist/abis/EntryPoint.abi.js.map +1 -1
- package/dist/abis/PrivacyPool.abi.d.ts +69 -8
- package/dist/abis/PrivacyPool.abi.js +228 -146
- package/dist/abis/PrivacyPool.abi.js.map +1 -1
- package/dist/account.service.d.ts +16 -0
- package/dist/account.service.js +31 -0
- package/dist/account.service.js.map +1 -0
- package/dist/auditor.d.ts +31 -0
- package/dist/auditor.js +146 -0
- package/dist/auditor.js.map +1 -0
- package/dist/contracts/contracts.service.d.ts +3 -3
- package/dist/contracts/contracts.service.js +71 -19
- package/dist/contracts/contracts.service.js.map +1 -1
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/transactionHandler.d.ts +1 -1
- package/dist/contracts/transactionHandler.js +2 -4
- package/dist/contracts/transactionHandler.js.map +1 -1
- package/dist/data.service.d.ts +20 -6
- package/dist/data.service.js +50 -7
- package/dist/data.service.js.map +1 -1
- package/dist/errors/contracts.errors.js +1 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/garaga.js +9 -3
- package/dist/garaga.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk.js +4 -4
- package/dist/sdk.js.map +1 -1
- package/dist/types/conversions.js.map +1 -1
- package/dist/types/entrypoint.d.ts +2 -0
- package/dist/types/entrypoint.js +50 -30
- package/dist/types/entrypoint.js.map +1 -1
- package/dist/types/snarkjs.d.ts +7 -46
- package/dist/utils.d.ts +4 -1
- package/dist/utils.js +11 -2
- package/dist/utils.js.map +1 -1
- package/package.json +14 -3
- package/src/abis/ERC20.abi.ts +145 -145
- package/src/abis/EntryPoint.abi.ts +262 -230
- package/src/abis/PrivacyPool.abi.ts +228 -146
- package/src/abis/index.ts +1 -1
- package/src/account.service.ts +47 -0
- package/src/auditor.ts +219 -0
- package/src/contracts/contracts.service.ts +325 -73
- package/src/contracts/index.ts +2 -2
- package/src/contracts/transactionHandler.ts +16 -7
- package/src/data.service.ts +123 -146
- package/src/errors/contracts.errors.ts +6 -6
- package/src/errors/index.ts +18 -24
- package/src/garaga.ts +10 -4
- package/src/index.ts +17 -27
- package/src/sdk.ts +39 -26
- package/src/types/conversions.ts +11 -12
- package/src/types/entrypoint.ts +74 -41
- package/src/types/garaga.ts +32 -32
- package/src/types/index.ts +1 -1
- package/src/types/snarkjs.ts +8 -20
- 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::
|
|
100
|
+
readonly type: "core::integer::u128";
|
|
78
101
|
}, {
|
|
79
102
|
readonly name: "vettingFeeBPS";
|
|
80
|
-
readonly type: "core::integer::
|
|
103
|
+
readonly type: "core::integer::u128";
|
|
81
104
|
}, {
|
|
82
105
|
readonly name: "maxRelayFeeBPS";
|
|
83
|
-
readonly type: "core::integer::
|
|
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::
|
|
191
|
+
readonly type: "core::integer::u128";
|
|
169
192
|
}, {
|
|
170
193
|
readonly name: "vettingFeeBPS";
|
|
171
|
-
readonly type: "core::integer::
|
|
194
|
+
readonly type: "core::integer::u128";
|
|
172
195
|
}, {
|
|
173
196
|
readonly name: "maxRelayFeeBPS";
|
|
174
|
-
readonly type: "core::integer::
|
|
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::
|
|
218
|
+
readonly type: "core::integer::u128";
|
|
196
219
|
}, {
|
|
197
220
|
readonly name: "vettingFeeBPS";
|
|
198
|
-
readonly type: "core::integer::
|
|
221
|
+
readonly type: "core::integer::u128";
|
|
199
222
|
}, {
|
|
200
223
|
readonly name: "maxRelayFeeBPS";
|
|
201
|
-
readonly type: "core::integer::
|
|
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::
|
|
514
|
+
readonly type: "core::integer::u128";
|
|
492
515
|
readonly kind: "data";
|
|
493
516
|
}, {
|
|
494
517
|
readonly name: "newVettingFeeBPS";
|
|
495
|
-
readonly type: "core::integer::
|
|
518
|
+
readonly type: "core::integer::u128";
|
|
496
519
|
readonly kind: "data";
|
|
497
520
|
}, {
|
|
498
521
|
readonly name: "newMaxRelayFeeBPS";
|
|
499
|
-
readonly type: "core::integer::
|
|
522
|
+
readonly type: "core::integer::u128";
|
|
500
523
|
readonly kind: "data";
|
|
501
524
|
}];
|
|
502
525
|
}, {
|