@permissionless-technologies/upp-sdk 0.4.16 → 0.4.19
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/{chunk-GJXJBDE5.cjs → chunk-5H27F6W6.cjs} +14 -5
- package/dist/chunk-5H27F6W6.cjs.map +1 -0
- package/dist/{chunk-HRHGZKTJ.js → chunk-7VPW5T5R.js} +3 -3
- package/dist/{chunk-HRHGZKTJ.js.map → chunk-7VPW5T5R.js.map} +1 -1
- package/dist/{chunk-7BOX7YFZ.js → chunk-C7DUABSG.js} +14 -5
- package/dist/chunk-C7DUABSG.js.map +1 -0
- package/dist/{chunk-QOMHO6FP.cjs → chunk-M7SCH6LU.cjs} +2 -2
- package/dist/{chunk-QOMHO6FP.cjs.map → chunk-M7SCH6LU.cjs.map} +1 -1
- package/dist/{chunk-KOT5MTDL.js → chunk-QGSTHXRP.js} +2 -2
- package/dist/{chunk-KOT5MTDL.js.map → chunk-QGSTHXRP.js.map} +1 -1
- package/dist/{chunk-D3XBKPQ2.cjs → chunk-V6MW5VOF.cjs} +4 -4
- package/dist/{chunk-D3XBKPQ2.cjs.map → chunk-V6MW5VOF.cjs.map} +1 -1
- package/dist/core/index.cjs +50 -50
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/{index-DKFupAA8.d.cts → index-DcfqeWvk.d.cts} +7 -2
- package/dist/{index-M91G-og3.d.ts → index-DmowSsZb.d.ts} +7 -2
- package/dist/{index-S2fzWmLW.d.ts → index-DsXMd8zh.d.ts} +1 -1
- package/dist/{index-qTwnREeK.d.cts → index-PgqOAfcc.d.cts} +1 -1
- package/dist/index.cjs +58 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/indexer/index.cjs +6 -6
- package/dist/indexer/index.d.cts +5 -5
- package/dist/indexer/index.d.ts +5 -5
- package/dist/indexer/index.js +1 -1
- package/dist/react/index.cjs +186 -23
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +60 -3
- package/dist/react/index.d.ts +60 -3
- package/dist/react/index.js +169 -7
- package/dist/react/index.js.map +1 -1
- package/dist/{transfer-BDYID3Hn.d.cts → transfer-B4q3ZTJK.d.cts} +73 -0
- package/dist/{transfer-DLukr6ed.d.ts → transfer-Cqg235q6.d.ts} +73 -0
- package/package.json +1 -1
- package/src/contracts/interfaces/IUniversalPrivatePool.sol +1 -0
- package/dist/chunk-7BOX7YFZ.js.map +0 -1
- package/dist/chunk-GJXJBDE5.cjs.map +0 -1
package/dist/core/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV6MW5VOF_cjs = require('../chunk-V6MW5VOF.cjs');
|
|
4
4
|
var chunk7Y6O4P2P_cjs = require('../chunk-7Y6O4P2P.cjs');
|
|
5
5
|
var chunkRYEYGGE7_cjs = require('../chunk-RYEYGGE7.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk5H27F6W6_cjs = require('../chunk-5H27F6W6.cjs');
|
|
7
7
|
var chunkXVIICZKW_cjs = require('../chunk-XVIICZKW.cjs');
|
|
8
8
|
var chunkSWTNJPK5_cjs = require('../chunk-SWTNJPK5.cjs');
|
|
9
9
|
require('../chunk-IIUKM5VE.cjs');
|
|
@@ -16,23 +16,23 @@ require('../chunk-G7VZBCD6.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "NOTE_VERSION", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkV6MW5VOF_cjs.NOTE_VERSION; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "createNote", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkV6MW5VOF_cjs.createNote; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "createUPPClient", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkV6MW5VOF_cjs.createUPPClient; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "decryptNote", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkV6MW5VOF_cjs.decryptNote; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "encryptNote", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkV6MW5VOF_cjs.encryptNote; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "buildTransfer", {
|
|
38
38
|
enumerable: true,
|
|
@@ -96,175 +96,175 @@ Object.defineProperty(exports, "verifyProof", {
|
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "ADDRESS_VERSION", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunk5H27F6W6_cjs.ADDRESS_VERSION; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "DirectAccountAdapter", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunk5H27F6W6_cjs.DirectAccountAdapter; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "NoteStore", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunk5H27F6W6_cjs.NoteStore; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "ProofWorkerManager", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunk5H27F6W6_cjs.ProofWorkerManager; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "RATE_PRECISION", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunk5H27F6W6_cjs.RATE_PRECISION; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "STARK_ADDRESS_VERSION", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunk5H27F6W6_cjs.STARK_ADDRESS_VERSION; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "STARK_STEALTH_ADDRESS_PREFIX", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunk5H27F6W6_cjs.STARK_STEALTH_ADDRESS_PREFIX; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "STEALTH_ADDRESS_PREFIX", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunk5H27F6W6_cjs.STEALTH_ADDRESS_PREFIX; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "SWAP_EVENTS_ABI", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunk5H27F6W6_cjs.SWAP_EVENTS_ABI; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "SWAP_ORDER_CANCELLED_EVENT", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunk5H27F6W6_cjs.SWAP_ORDER_CANCELLED_EVENT; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "SWAP_ORDER_CLAIMED_EVENT", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunk5H27F6W6_cjs.SWAP_ORDER_CLAIMED_EVENT; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "SWAP_ORDER_FILLED_EVENT", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunk5H27F6W6_cjs.SWAP_ORDER_FILLED_EVENT; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "SWAP_ORDER_PLACED_EVENT", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunk5H27F6W6_cjs.SWAP_ORDER_PLACED_EVENT; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "StorableAccountAdapter", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunk5H27F6W6_cjs.StorableAccountAdapter; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "computeCancelKeyHash", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunk5H27F6W6_cjs.computeCancelKeyHash; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "computeFillPercentage", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunk5H27F6W6_cjs.computeFillPercentage; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "computeGiveAmount", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunk5H27F6W6_cjs.computeGiveAmount; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "computeNoteEncryptionKey", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunk5H27F6W6_cjs.computeNoteEncryptionKey; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "computeRate", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunk5H27F6W6_cjs.computeRate; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "computeTakeAmount", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunk5H27F6W6_cjs.computeTakeAmount; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "computeTotalBuyAmount", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunk5H27F6W6_cjs.computeTotalBuyAmount; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "createOneTimeKeys", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunk5H27F6W6_cjs.createOneTimeKeys; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "decodeStarkStealthAddress", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunk5H27F6W6_cjs.decodeStarkStealthAddress; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "decodeStealthAddress", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunk5H27F6W6_cjs.decodeStealthAddress; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "detectAddressType", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunk5H27F6W6_cjs.detectAddressType; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "encodeStarkStealthAddress", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunk5H27F6W6_cjs.encodeStarkStealthAddress; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "encodeStealthAddress", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunk5H27F6W6_cjs.encodeStealthAddress; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "filterOrdersByASP", {
|
|
206
206
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunk5H27F6W6_cjs.filterOrdersByASP; }
|
|
208
208
|
});
|
|
209
209
|
Object.defineProperty(exports, "filterOrdersByTokenPair", {
|
|
210
210
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunk5H27F6W6_cjs.filterOrdersByTokenPair; }
|
|
212
212
|
});
|
|
213
213
|
Object.defineProperty(exports, "formatRate", {
|
|
214
214
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunk5H27F6W6_cjs.formatRate; }
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "generateCancelSecret", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunk5H27F6W6_cjs.generateCancelSecret; }
|
|
220
220
|
});
|
|
221
221
|
Object.defineProperty(exports, "generateStarkStealthAddress", {
|
|
222
222
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunk5H27F6W6_cjs.generateStarkStealthAddress; }
|
|
224
224
|
});
|
|
225
225
|
Object.defineProperty(exports, "generateStealthAddress", {
|
|
226
226
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunk5H27F6W6_cjs.generateStealthAddress; }
|
|
228
228
|
});
|
|
229
229
|
Object.defineProperty(exports, "generateUPPProofAsync", {
|
|
230
230
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunk5H27F6W6_cjs.generateUPPProofAsync; }
|
|
232
232
|
});
|
|
233
233
|
Object.defineProperty(exports, "getCancelSecret", {
|
|
234
234
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunk5H27F6W6_cjs.getCancelSecret; }
|
|
236
236
|
});
|
|
237
237
|
Object.defineProperty(exports, "getOwnOrderIds", {
|
|
238
238
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunk5H27F6W6_cjs.getOwnOrderIds; }
|
|
240
240
|
});
|
|
241
241
|
Object.defineProperty(exports, "isFillerASPAccepted", {
|
|
242
242
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunk5H27F6W6_cjs.isFillerASPAccepted; }
|
|
244
244
|
});
|
|
245
245
|
Object.defineProperty(exports, "isOrderActive", {
|
|
246
246
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunk5H27F6W6_cjs.isOrderActive; }
|
|
248
248
|
});
|
|
249
249
|
Object.defineProperty(exports, "isValidStarkStealthAddress", {
|
|
250
250
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunk5H27F6W6_cjs.isValidStarkStealthAddress; }
|
|
252
252
|
});
|
|
253
253
|
Object.defineProperty(exports, "isValidStealthAddress", {
|
|
254
254
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunk5H27F6W6_cjs.isValidStealthAddress; }
|
|
256
256
|
});
|
|
257
257
|
Object.defineProperty(exports, "removeCancelSecret", {
|
|
258
258
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunk5H27F6W6_cjs.removeCancelSecret; }
|
|
260
260
|
});
|
|
261
261
|
Object.defineProperty(exports, "storeCancelSecret", {
|
|
262
262
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunk5H27F6W6_cjs.storeCancelSecret; }
|
|
264
264
|
});
|
|
265
265
|
Object.defineProperty(exports, "verifyOwnership", {
|
|
266
266
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunk5H27F6W6_cjs.verifyOwnership; }
|
|
268
268
|
});
|
|
269
269
|
Object.defineProperty(exports, "DEMO_ASP_ID", {
|
|
270
270
|
enumerable: true,
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, V as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from '../index-
|
|
2
|
-
export { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from '../transfer-
|
|
1
|
+
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, V as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from '../index-PgqOAfcc.cjs';
|
|
2
|
+
export { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from '../transfer-B4q3ZTJK.cjs';
|
|
3
3
|
export { S as STARK_AMOUNT_SCALE } from '../stark-BcTD1OaJ.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../types-CJSbxv4q.cjs';
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, V as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from '../index-
|
|
2
|
-
export { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from '../transfer-
|
|
1
|
+
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, V as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from '../index-DsXMd8zh.js';
|
|
2
|
+
export { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from '../transfer-Cqg235q6.js';
|
|
3
3
|
export { S as STARK_AMOUNT_SCALE } from '../stark-BcTD1OaJ.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../types-mLybMxNR.js';
|
package/dist/core/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from '../chunk-
|
|
1
|
+
export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from '../chunk-7VPW5T5R.js';
|
|
2
2
|
export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getMerkleProofsForNotes, syncMerkleTree } from '../chunk-GQ6JMNJI.js';
|
|
3
3
|
export { ASP_TREE_DEPTH, STATE_TREE_DEPTH, formatProofForContract, generateProof, generateStealthProof, generateUPPProof, getStealthCircuitArtifacts, getUPPCircuitArtifacts, verifyProof } from '../chunk-KRLRJ3HN.js';
|
|
4
|
-
export { ADDRESS_VERSION, DirectAccountAdapter, NoteStore, ProofWorkerManager, RATE_PRECISION, STARK_ADDRESS_VERSION, STARK_STEALTH_ADDRESS_PREFIX, STEALTH_ADDRESS_PREFIX, SWAP_EVENTS_ABI, SWAP_ORDER_CANCELLED_EVENT, SWAP_ORDER_CLAIMED_EVENT, SWAP_ORDER_FILLED_EVENT, SWAP_ORDER_PLACED_EVENT, StorableAccountAdapter, computeCancelKeyHash, computeFillPercentage, computeGiveAmount, computeNoteEncryptionKey, computeRate, computeTakeAmount, computeTotalBuyAmount, createOneTimeKeys, decodeStarkStealthAddress, decodeStealthAddress, detectAddressType, encodeStarkStealthAddress, encodeStealthAddress, filterOrdersByASP, filterOrdersByTokenPair, formatRate, generateCancelSecret, generateStarkStealthAddress, generateStealthAddress, generateUPPProofAsync, getCancelSecret, getOwnOrderIds, isFillerASPAccepted, isOrderActive, isValidStarkStealthAddress, isValidStealthAddress, removeCancelSecret, storeCancelSecret, verifyOwnership } from '../chunk-
|
|
4
|
+
export { ADDRESS_VERSION, DirectAccountAdapter, NoteStore, ProofWorkerManager, RATE_PRECISION, STARK_ADDRESS_VERSION, STARK_STEALTH_ADDRESS_PREFIX, STEALTH_ADDRESS_PREFIX, SWAP_EVENTS_ABI, SWAP_ORDER_CANCELLED_EVENT, SWAP_ORDER_CLAIMED_EVENT, SWAP_ORDER_FILLED_EVENT, SWAP_ORDER_PLACED_EVENT, StorableAccountAdapter, computeCancelKeyHash, computeFillPercentage, computeGiveAmount, computeNoteEncryptionKey, computeRate, computeTakeAmount, computeTotalBuyAmount, createOneTimeKeys, decodeStarkStealthAddress, decodeStealthAddress, detectAddressType, encodeStarkStealthAddress, encodeStealthAddress, filterOrdersByASP, filterOrdersByTokenPair, formatRate, generateCancelSecret, generateStarkStealthAddress, generateStealthAddress, generateUPPProofAsync, getCancelSecret, getOwnOrderIds, isFillerASPAccepted, isOrderActive, isValidStarkStealthAddress, isValidStealthAddress, removeCancelSecret, storeCancelSecret, verifyOwnership } from '../chunk-C7DUABSG.js';
|
|
5
5
|
export { DEMO_ASP_ID, DEMO_ASP_NAME, buildASPTree, computeMultiOriginASPRoot, computeSingleOriginASPRoot, createDemoASPRoot, generateASPProof, generateMultiOriginASPProof, generateSingleOriginASPProof, verifyASPProof } from '../chunk-6IEYWJVS.js';
|
|
6
6
|
export { STARK_AMOUNT_SCALE } from '../chunk-7T4CUE6E.js';
|
|
7
7
|
import '../chunk-GPF72JFR.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index-
|
|
2
|
-
import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from './transfer-
|
|
1
|
+
import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index-PgqOAfcc.cjs';
|
|
2
|
+
import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from './transfer-B4q3ZTJK.cjs';
|
|
3
3
|
import { A as AuditKeyExport, D as DEFAULT_KEY_DERIVATION_CONFIG, a as DualMasterKeys, K as KeyDerivationConfig, M as MasterKeys, O as OneTimeKeys, P as ProvingSystem, S as SerializedKeys, b as StarkMasterKeys, c as StealthAddressComponents, T as TransactionViewingKey } from './types-CJSbxv4q.cjs';
|
|
4
4
|
import { NoteReference, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './keys/index.cjs';
|
|
5
5
|
import { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesToBigint, bytesToHex, fieldToAddress, hexToBytes, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, randomBytes, randomFieldElement, toFieldElement } from './utils/index.cjs';
|
|
@@ -1867,6 +1867,11 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1867
1867
|
readonly type: "uint256";
|
|
1868
1868
|
readonly indexed: false;
|
|
1869
1869
|
readonly internalType: "uint256";
|
|
1870
|
+
}, {
|
|
1871
|
+
readonly name: "remainingSellAmount";
|
|
1872
|
+
readonly type: "uint256";
|
|
1873
|
+
readonly indexed: false;
|
|
1874
|
+
readonly internalType: "uint256";
|
|
1870
1875
|
}, {
|
|
1871
1876
|
readonly name: "encryptedFillerNote";
|
|
1872
1877
|
readonly type: "bytes";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index-
|
|
2
|
-
import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from './transfer-
|
|
1
|
+
import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index-DsXMd8zh.js';
|
|
2
|
+
import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from './transfer-Cqg235q6.js';
|
|
3
3
|
import { A as AuditKeyExport, D as DEFAULT_KEY_DERIVATION_CONFIG, a as DualMasterKeys, K as KeyDerivationConfig, M as MasterKeys, O as OneTimeKeys, P as ProvingSystem, S as SerializedKeys, b as StarkMasterKeys, c as StealthAddressComponents, T as TransactionViewingKey } from './types-mLybMxNR.js';
|
|
4
4
|
import { NoteReference, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './keys/index.js';
|
|
5
5
|
import { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesToBigint, bytesToHex, fieldToAddress, hexToBytes, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, randomBytes, randomFieldElement, toFieldElement } from './utils/index.js';
|
|
@@ -1867,6 +1867,11 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1867
1867
|
readonly type: "uint256";
|
|
1868
1868
|
readonly indexed: false;
|
|
1869
1869
|
readonly internalType: "uint256";
|
|
1870
|
+
}, {
|
|
1871
|
+
readonly name: "remainingSellAmount";
|
|
1872
|
+
readonly type: "uint256";
|
|
1873
|
+
readonly indexed: false;
|
|
1874
|
+
readonly internalType: "uint256";
|
|
1870
1875
|
}, {
|
|
1871
1876
|
readonly name: "encryptedFillerNote";
|
|
1872
1877
|
readonly type: "bytes";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicClient, WalletClient, Address, Hex } from 'viem';
|
|
2
|
-
import { u as ShieldParams, h as Note, V as TransferParams, M as MergeParams, $ as WithdrawParams, E as EncryptedNote } from './transfer-
|
|
2
|
+
import { u as ShieldParams, h as Note, V as TransferParams, M as MergeParams, $ as WithdrawParams, E as EncryptedNote } from './transfer-Cqg235q6.js';
|
|
3
3
|
import { M as MasterKeys, O as OneTimeKeys, b as StarkMasterKeys } from './types-mLybMxNR.js';
|
|
4
4
|
import { a as M31Digest } from './keccak-m31-B_AqBbRF.js';
|
|
5
5
|
import { P as Point } from './merkle-mteVOlDf.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicClient, WalletClient, Address, Hex } from 'viem';
|
|
2
|
-
import { u as ShieldParams, h as Note, V as TransferParams, M as MergeParams, $ as WithdrawParams, E as EncryptedNote } from './transfer-
|
|
2
|
+
import { u as ShieldParams, h as Note, V as TransferParams, M as MergeParams, $ as WithdrawParams, E as EncryptedNote } from './transfer-B4q3ZTJK.cjs';
|
|
3
3
|
import { M as MasterKeys, O as OneTimeKeys, b as StarkMasterKeys } from './types-CJSbxv4q.cjs';
|
|
4
4
|
import { a as M31Digest } from './keccak-m31-B_AqBbRF.cjs';
|
|
5
5
|
import { P as Point } from './merkle-mteVOlDf.cjs';
|