@umbra-privacy/sdk 2.1.0 → 3.0.0
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-GP26R377.js → chunk-AUNYA6JP.js} +2 -2
- package/dist/chunk-AUNYA6JP.js.map +1 -0
- package/dist/{chunk-BL6WXLPV.cjs → chunk-KCHHJKQN.cjs} +2 -2
- package/dist/chunk-KCHHJKQN.cjs.map +1 -0
- package/dist/{chunk-KMRROOME.js → chunk-YA66JLHI.js} +9 -4
- package/dist/chunk-YA66JLHI.js.map +1 -0
- package/dist/{chunk-3LS5P32X.cjs → chunk-YFUGKMNS.cjs} +9 -4
- package/dist/chunk-YFUGKMNS.cjs.map +1 -0
- package/dist/{client-Cb53GYes.d.cts → client-Baxe29tj.d.cts} +128 -51
- package/dist/{client-CJ5S6Qln.d.ts → client-Cqv_5hHQ.d.ts} +128 -51
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/crypto/index.cjs +142 -142
- package/dist/crypto/index.d.cts +1 -1
- package/dist/crypto/index.d.ts +1 -1
- package/dist/crypto/index.js +1 -1
- package/dist/errors/index.cjs +28 -28
- package/dist/errors/index.d.cts +1 -1
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/{errors-DAIrstEL.d.cts → errors-BqAlwXfh.d.cts} +3 -5
- package/dist/{errors-DPNMfyh0.d.ts → errors-Crx4Jf9K.d.ts} +3 -5
- package/dist/{index-B5wNTNZr.d.cts → index-BRLHQNe9.d.cts} +27 -12
- package/dist/{index-Cd76ZBHA.d.ts → index-gpTrCX61.d.ts} +27 -12
- package/dist/index.cjs +825 -1078
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -263
- package/dist/index.d.ts +12 -263
- package/dist/index.js +330 -579
- package/dist/index.js.map +1 -1
- package/dist/indexer-NHZDFABY.js +311 -0
- package/dist/indexer-NHZDFABY.js.map +1 -0
- package/dist/indexer-XOUBVRNU.cjs +316 -0
- package/dist/indexer-XOUBVRNU.cjs.map +1 -0
- package/dist/interfaces/index.d.cts +2 -2
- package/dist/interfaces/index.d.ts +2 -2
- package/dist/solana/index.d.cts +2 -2
- package/dist/solana/index.d.ts +2 -2
- package/dist/{transaction-forwarder-Dme9whAc.d.ts → transaction-forwarder-Cv3OlsaZ.d.ts} +1 -1
- package/dist/{transaction-forwarder-0GZRKXIr.d.cts → transaction-forwarder-DH07CEkG.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-3LS5P32X.cjs.map +0 -1
- package/dist/chunk-BL6WXLPV.cjs.map +0 -1
- package/dist/chunk-GP26R377.js.map +0 -1
- package/dist/chunk-KMRROOME.js.map +0 -1
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk5GUSMQ74_cjs = require('./chunk-5GUSMQ74.cjs');
|
|
4
|
+
require('./chunk-FZYWLQAF.cjs');
|
|
5
|
+
var chunkLTCKPTZC_cjs = require('./chunk-LTCKPTZC.cjs');
|
|
6
|
+
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
7
|
+
var indexerReadServiceClient = require('@umbra-privacy/indexer-read-service-client');
|
|
8
|
+
|
|
9
|
+
var DEFAULT_UTXO_LIMIT = 1000n;
|
|
10
|
+
var MAX_UTXO_LIMIT = 5000n;
|
|
11
|
+
var IndexerError = class _IndexerError extends Error {
|
|
12
|
+
static {
|
|
13
|
+
chunkPK6SKIKE_cjs.__name(this, "IndexerError");
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The indexer operation that failed.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* This is a short camelCase label identifying which high-level operation
|
|
20
|
+
* triggered the error (e.g. `"fetchMerkleProof"`, `"fetchUtxoData"`,
|
|
21
|
+
* `"base64Conversion"`).
|
|
22
|
+
*
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
25
|
+
operation;
|
|
26
|
+
/**
|
|
27
|
+
* HTTP status code if available.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Present when the server responded with an HTTP error (4xx or 5xx).
|
|
31
|
+
* `undefined` for transport-level failures such as network timeouts or
|
|
32
|
+
* DNS resolution failures.
|
|
33
|
+
*
|
|
34
|
+
* @readonly
|
|
35
|
+
*/
|
|
36
|
+
statusCode;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new IndexerError.
|
|
39
|
+
*
|
|
40
|
+
* @param operation - The operation that failed (e.g. `"fetchMerkleProof"`)
|
|
41
|
+
* @param message - Descriptive error message for display to users or logs
|
|
42
|
+
* @param statusCode - Optional HTTP status code (undefined for network failures)
|
|
43
|
+
* @param cause - Optional underlying error that triggered this one
|
|
44
|
+
*/
|
|
45
|
+
constructor(operation, message, statusCode, cause) {
|
|
46
|
+
super(`Indexer operation '${operation}' failed: ${message}`);
|
|
47
|
+
this.name = "IndexerError";
|
|
48
|
+
this.operation = operation;
|
|
49
|
+
this.statusCode = statusCode;
|
|
50
|
+
this.cause = cause;
|
|
51
|
+
if (Error.captureStackTrace !== void 0) {
|
|
52
|
+
Error.captureStackTrace(this, _IndexerError);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function base64ToBytes(base64) {
|
|
57
|
+
if (typeof Buffer !== "undefined") {
|
|
58
|
+
return Buffer.from(base64, "base64");
|
|
59
|
+
}
|
|
60
|
+
const binaryString = atob(base64);
|
|
61
|
+
const bytes = new Uint8Array(binaryString.length);
|
|
62
|
+
for (let index = 0; index < binaryString.length; index++) {
|
|
63
|
+
bytes[index] = binaryString.codePointAt(index) ?? 0;
|
|
64
|
+
}
|
|
65
|
+
return bytes;
|
|
66
|
+
}
|
|
67
|
+
chunkPK6SKIKE_cjs.__name(base64ToBytes, "base64ToBytes");
|
|
68
|
+
function base64ToU256LeBytes(base64) {
|
|
69
|
+
const bytes = base64ToBytes(base64);
|
|
70
|
+
if (bytes.length !== 32) {
|
|
71
|
+
throw new IndexerError(
|
|
72
|
+
"base64Conversion",
|
|
73
|
+
`Invalid byte length: expected 32 bytes, got ${String(bytes.length)}`
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
chunkLTCKPTZC_cjs.assertU256LeBytes(bytes);
|
|
77
|
+
return bytes;
|
|
78
|
+
}
|
|
79
|
+
chunkPK6SKIKE_cjs.__name(base64ToU256LeBytes, "base64ToU256LeBytes");
|
|
80
|
+
function base64ToX25519PublicKey(base64) {
|
|
81
|
+
const bytes = base64ToBytes(base64);
|
|
82
|
+
if (bytes.length !== 32) {
|
|
83
|
+
throw new IndexerError(
|
|
84
|
+
"base64Conversion",
|
|
85
|
+
`Invalid X25519 public key length: expected 32 bytes, got ${String(bytes.length)}`
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
return bytes;
|
|
89
|
+
}
|
|
90
|
+
chunkPK6SKIKE_cjs.__name(base64ToX25519PublicKey, "base64ToX25519PublicKey");
|
|
91
|
+
function base64ToAesCiphertext(base64) {
|
|
92
|
+
return base64ToBytes(base64);
|
|
93
|
+
}
|
|
94
|
+
chunkPK6SKIKE_cjs.__name(base64ToAesCiphertext, "base64ToAesCiphertext");
|
|
95
|
+
function splitAddressBase64(base64) {
|
|
96
|
+
const bytes = base64ToBytes(base64);
|
|
97
|
+
if (bytes.length !== 32) {
|
|
98
|
+
throw new IndexerError(
|
|
99
|
+
"addressSplit",
|
|
100
|
+
`Invalid address length: expected 32 bytes, got ${String(bytes.length)}`
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
const lowBytes = bytes.slice(0, 16);
|
|
104
|
+
const highBytes = bytes.slice(16, 32);
|
|
105
|
+
chunkLTCKPTZC_cjs.assertU128LeBytes(lowBytes);
|
|
106
|
+
chunkLTCKPTZC_cjs.assertU128LeBytes(highBytes);
|
|
107
|
+
return {
|
|
108
|
+
low: chunk5GUSMQ74_cjs.decodeU128LeBytesToU128(lowBytes),
|
|
109
|
+
high: chunk5GUSMQ74_cjs.decodeU128LeBytesToU128(highBytes)
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
chunkPK6SKIKE_cjs.__name(splitAddressBase64, "splitAddressBase64");
|
|
113
|
+
function getMerkleProofFetcher(args, deps) {
|
|
114
|
+
const { apiEndpoint } = args;
|
|
115
|
+
const client = new indexerReadServiceClient.ReadServiceClient({ endpoint: apiEndpoint, fetch: deps?.fetch });
|
|
116
|
+
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function fetchMerkleProof(treeIndex, insertionIndices) {
|
|
117
|
+
if (insertionIndices.length === 0) {
|
|
118
|
+
return /* @__PURE__ */ new Map();
|
|
119
|
+
}
|
|
120
|
+
if (treeIndex < 0n) {
|
|
121
|
+
throw new IndexerError(
|
|
122
|
+
"fetchMerkleProof",
|
|
123
|
+
`Invalid tree index: ${String(treeIndex)}. Must be non-negative.`
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
const results = /* @__PURE__ */ new Map();
|
|
127
|
+
const fetchPromises = insertionIndices.map(async (insertionIndex) => {
|
|
128
|
+
if (insertionIndex < 0n) {
|
|
129
|
+
throw new IndexerError(
|
|
130
|
+
"fetchMerkleProof",
|
|
131
|
+
`Invalid insertion index: ${String(insertionIndex)}. Must be non-negative.`
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
let data;
|
|
135
|
+
try {
|
|
136
|
+
data = await client.getProof(treeIndex, insertionIndex);
|
|
137
|
+
} catch (error) {
|
|
138
|
+
throw new IndexerError(
|
|
139
|
+
"fetchMerkleProof",
|
|
140
|
+
`Failed to fetch proof for leaf ${String(insertionIndex)}: ${error instanceof Error ? error.message : String(error)}`,
|
|
141
|
+
void 0,
|
|
142
|
+
error instanceof Error ? error : void 0
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
const merkleRoot = base64ToU256LeBytes(data.root);
|
|
146
|
+
const merklePath = data.proof.map((hash) => base64ToU256LeBytes(hash));
|
|
147
|
+
const leaf = base64ToU256LeBytes(data.leaf);
|
|
148
|
+
return {
|
|
149
|
+
insertionIndex,
|
|
150
|
+
data: {
|
|
151
|
+
merkleRoot,
|
|
152
|
+
treeIndex: data.tree_index,
|
|
153
|
+
insertionIndex: data.insertion_index,
|
|
154
|
+
merklePath,
|
|
155
|
+
leaf
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
const proofResults = await Promise.all(fetchPromises);
|
|
160
|
+
for (const { insertionIndex, data } of proofResults) {
|
|
161
|
+
results.set(insertionIndex, data);
|
|
162
|
+
}
|
|
163
|
+
return results;
|
|
164
|
+
}, "fetchMerkleProof");
|
|
165
|
+
}
|
|
166
|
+
chunkPK6SKIKE_cjs.__name(getMerkleProofFetcher, "getMerkleProofFetcher");
|
|
167
|
+
function getBatchMerkleProofFetcher(args, deps) {
|
|
168
|
+
const { apiEndpoint } = args;
|
|
169
|
+
const client = new indexerReadServiceClient.ReadServiceClient({ endpoint: apiEndpoint, fetch: deps?.fetch });
|
|
170
|
+
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function fetchBatchMerkleProof(treeIndex, insertionIndices) {
|
|
171
|
+
if (insertionIndices.length === 0) {
|
|
172
|
+
return { root: new Uint8Array(32), proofs: /* @__PURE__ */ new Map() };
|
|
173
|
+
}
|
|
174
|
+
if (treeIndex < 0n) {
|
|
175
|
+
throw new IndexerError(
|
|
176
|
+
"fetchBatchMerkleProof",
|
|
177
|
+
`Invalid tree index: ${String(treeIndex)}. Must be non-negative.`
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
for (const idx of insertionIndices) {
|
|
181
|
+
if (idx < 0n) {
|
|
182
|
+
throw new IndexerError(
|
|
183
|
+
"fetchBatchMerkleProof",
|
|
184
|
+
`Invalid insertion index: ${String(idx)}. Must be non-negative.`
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
let data;
|
|
189
|
+
try {
|
|
190
|
+
data = await client.getBatchProof(
|
|
191
|
+
treeIndex,
|
|
192
|
+
insertionIndices.map((idx) => BigInt(idx))
|
|
193
|
+
);
|
|
194
|
+
} catch (error) {
|
|
195
|
+
throw new IndexerError(
|
|
196
|
+
"fetchBatchMerkleProof",
|
|
197
|
+
`Failed to fetch batch proofs: ${error instanceof Error ? error.message : String(error)}`,
|
|
198
|
+
void 0,
|
|
199
|
+
error instanceof Error ? error : void 0
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
const root = base64ToU256LeBytes(data.root);
|
|
203
|
+
const proofs = /* @__PURE__ */ new Map();
|
|
204
|
+
for (const entry of data.proofs) {
|
|
205
|
+
proofs.set(entry.insertion_index, {
|
|
206
|
+
merklePath: entry.proof.map((hash) => base64ToU256LeBytes(hash)),
|
|
207
|
+
leaf: base64ToU256LeBytes(entry.leaf)
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
return { root, proofs };
|
|
211
|
+
}, "fetchBatchMerkleProof");
|
|
212
|
+
}
|
|
213
|
+
chunkPK6SKIKE_cjs.__name(getBatchMerkleProofFetcher, "getBatchMerkleProofFetcher");
|
|
214
|
+
function getUtxoDataFetcher(args, deps) {
|
|
215
|
+
const { apiEndpoint } = args;
|
|
216
|
+
const client = new indexerReadServiceClient.ReadServiceClient({ endpoint: apiEndpoint, fetch: deps?.fetch });
|
|
217
|
+
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function fetchUtxoData(startIndex, endIndex, limit) {
|
|
218
|
+
if (startIndex < 0n) {
|
|
219
|
+
throw new IndexerError(
|
|
220
|
+
"fetchUtxoData",
|
|
221
|
+
`Invalid start index: ${String(startIndex)}. Must be non-negative.`
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
if (endIndex !== void 0 && endIndex < startIndex) {
|
|
225
|
+
throw new IndexerError(
|
|
226
|
+
"fetchUtxoData",
|
|
227
|
+
`Invalid end index: ${String(endIndex)}. Must be >= start index (${String(startIndex)}).`
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
const effectiveLimit = limit ?? DEFAULT_UTXO_LIMIT;
|
|
231
|
+
if (effectiveLimit < 1n || effectiveLimit > MAX_UTXO_LIMIT) {
|
|
232
|
+
throw new IndexerError(
|
|
233
|
+
"fetchUtxoData",
|
|
234
|
+
`Invalid limit: ${String(effectiveLimit)}. Must be between 1 and ${String(MAX_UTXO_LIMIT)}.`
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
let response;
|
|
238
|
+
try {
|
|
239
|
+
response = await client.getUtxoData({
|
|
240
|
+
start: startIndex,
|
|
241
|
+
end: endIndex,
|
|
242
|
+
limit: effectiveLimit
|
|
243
|
+
});
|
|
244
|
+
} catch (error) {
|
|
245
|
+
throw new IndexerError(
|
|
246
|
+
"fetchUtxoData",
|
|
247
|
+
`Network error: ${error instanceof Error ? error.message : String(error)}`,
|
|
248
|
+
void 0,
|
|
249
|
+
error instanceof Error ? error : void 0
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
const items = /* @__PURE__ */ new Map();
|
|
253
|
+
for (const item of response.items) {
|
|
254
|
+
try {
|
|
255
|
+
const senderAddress = splitAddressBase64(item.h1_sender_address);
|
|
256
|
+
const mintAddress = splitAddressBase64(item.h1_mint_address);
|
|
257
|
+
const timestamp = {
|
|
258
|
+
year: item.h1_year,
|
|
259
|
+
month: item.h1_month,
|
|
260
|
+
day: item.h1_day,
|
|
261
|
+
hour: item.h1_hour,
|
|
262
|
+
minute: item.h1_minute,
|
|
263
|
+
second: item.h1_second
|
|
264
|
+
};
|
|
265
|
+
const h1Components = {
|
|
266
|
+
version: BigInt(item.h1_version),
|
|
267
|
+
commitmentIndex: BigInt(item.h1_commitment_index),
|
|
268
|
+
senderAddressLow: senderAddress.low,
|
|
269
|
+
senderAddressHigh: senderAddress.high,
|
|
270
|
+
relayerFixedSolFees: item.h1_relayer_fixed_sol_fees,
|
|
271
|
+
mintAddressLow: mintAddress.low,
|
|
272
|
+
mintAddressHigh: mintAddress.high,
|
|
273
|
+
timestamp,
|
|
274
|
+
poolVolumeSpl: item.h1_pool_volume_spl,
|
|
275
|
+
poolVolumeSol: item.h1_pool_volume_sol
|
|
276
|
+
};
|
|
277
|
+
const utxoItem = {
|
|
278
|
+
absoluteIndex: item.absolute_index,
|
|
279
|
+
treeIndex: item.tree_index,
|
|
280
|
+
insertionIndex: item.insertion_index,
|
|
281
|
+
finalCommitment: base64ToU256LeBytes(item.final_commitment),
|
|
282
|
+
h1Components,
|
|
283
|
+
h1Hash: base64ToU256LeBytes(item.h1_hash),
|
|
284
|
+
h2Hash: base64ToU256LeBytes(item.h2_hash),
|
|
285
|
+
aesEncryptedData: base64ToAesCiphertext(item.aes_encrypted_data),
|
|
286
|
+
depositorX25519PublicKey: base64ToX25519PublicKey(item.depositor_x25519_public_key),
|
|
287
|
+
timestamp: item.timestamp,
|
|
288
|
+
slot: item.slot,
|
|
289
|
+
eventType: item.event_type
|
|
290
|
+
};
|
|
291
|
+
items.set(item.insertion_index, utxoItem);
|
|
292
|
+
} catch (error) {
|
|
293
|
+
throw new IndexerError(
|
|
294
|
+
"fetchUtxoData",
|
|
295
|
+
`Failed to parse UTXO data for index ${String(item.absolute_index)}: ${error instanceof Error ? error.message : String(error)}`,
|
|
296
|
+
void 0,
|
|
297
|
+
error instanceof Error ? error : void 0
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return {
|
|
302
|
+
items,
|
|
303
|
+
hasMore: response.has_more,
|
|
304
|
+
nextCursor: response.next_cursor ?? void 0,
|
|
305
|
+
totalCount: response.total_count
|
|
306
|
+
};
|
|
307
|
+
}, "fetchUtxoData");
|
|
308
|
+
}
|
|
309
|
+
chunkPK6SKIKE_cjs.__name(getUtxoDataFetcher, "getUtxoDataFetcher");
|
|
310
|
+
|
|
311
|
+
exports.IndexerError = IndexerError;
|
|
312
|
+
exports.getBatchMerkleProofFetcher = getBatchMerkleProofFetcher;
|
|
313
|
+
exports.getMerkleProofFetcher = getMerkleProofFetcher;
|
|
314
|
+
exports.getUtxoDataFetcher = getUtxoDataFetcher;
|
|
315
|
+
//# sourceMappingURL=indexer-XOUBVRNU.cjs.map
|
|
316
|
+
//# sourceMappingURL=indexer-XOUBVRNU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/umbra/indexer.ts"],"names":["__name","assertU256LeBytes","assertU128LeBytes","decodeU128LeBytesToU128","ReadServiceClient"],"mappings":";;;;;;;;AAkFA,IAAM,kBAAA,GAAqB,KAAA;AAY3B,IAAM,cAAA,GAAiB,KAAA;AAiChB,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,KAAA,CAAM;AAAA,EA/HxC;AA+HwC,IAAAA,wBAAA,CAAA,IAAA,EAAA,cAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWtB,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUhB,WAAA,CAAY,SAAA,EAAmB,OAAA,EAAiB,UAAA,EAAqB,KAAA,EAAe;AAClF,IAAA,KAAA,CAAM,CAAA,mBAAA,EAAsB,SAAS,CAAA,UAAA,EAAa,OAAO,CAAA,CAAE,CAAA;AAC3D,IAAA,IAAA,CAAK,IAAA,GAAO,cAAA;AACZ,IAAA,IAAA,CAAK,SAAA,GAAY,SAAA;AACjB,IAAA,IAAA,CAAK,UAAA,GAAa,UAAA;AAClB,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AAGb,IAAA,IAAI,KAAA,CAAM,sBAAsB,MAAA,EAAW;AACzC,MAAA,KAAA,CAAM,iBAAA,CAAkB,MAAM,aAAY,CAAA;AAAA,IAC5C;AAAA,EACF;AACF;AAsBA,SAAS,cAAc,MAAA,EAA4B;AACjD,EAA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AAA;AAAA,UAC1D,YAAA;AAAA,UACA,MAAA,EAAQ,mBAAA,CAAoB,IAAA,CAAK,OAAO,CAAA;AAAA,UACxC,MAAA,EAAQ,mBAAA,CAAoB,IAAA,CAAK,OAAO,CAAA;AAAA,UACxC,gBAAA,EAAkB,qBAAA,CAAsB,IAAA,CAAK,kBAAkB,CAAA;AAAA,UAC/D,wBAAA,EAA0B,uBAAA,CAAwB,IAAA,CAAK,2BAA2B,CAAA;AAAA,UAClF,WAAW,IAAA,CAAK,SAAA;AAAA,UAChB,MAAM,IAAA,CAAK,IAAA;AAAA,UACX,WAAW,IAAA,CAAK;AAAA,SAClB;AAEA,QAAA,KAAA,CAAM,GAAA,CAAI,IAAA,CAAK,eAAA,EAAwB,QAAQ,CAAA;AAAA,MACjD,SAAS,KAAA,EAAO;AACd,QAAA,MAAM,IAAI,YAAA;AAAA,UACR,eAAA;AAAA,UACA,CAAA,oCAAA,EAAuC,MAAA,CAAO,IAAA,CAAK,cAAc,CAAC,CAAA,EAAA,EAAK,KAAA,YAAiB,KAAA,GAAQ,KAAA,CAAM,OAAA,GAAU,MAAA,CAAO,KAAK,CAAC,CAAA,CAAA;AAAA,UAC7H,MAAA;AAAA,UACA,KAAA,YAAiB,QAAQ,KAAA,GAAQ;AAAA,SACnC;AAAA,MACF;AAAA,IACF;AAEA,IAAA,OAAO;AAAA,MACL,KAAA;AAAA,MACA,SAAS,QAAA,CAAS,QAAA;AAAA,MAClB,UAAA,EAAY,SAAS,WAAA,IAAe,MAAA;AAAA,MACpC,YAAY,QAAA,CAAS;AAAA,KACvB;AAAA,EACF,CAAA,EAxGO,eAAA,CAAA;AAyGT;AAlIgBA,wBAAA,CAAA,kBAAA,EAAA,oBAAA,CAAA","file":"indexer-XOUBVRNU.cjs","sourcesContent":["/**\n * Indexer Factory Functions Module.\n *\n * @remarks\n * This module provides factory functions for creating indexer service fetchers.\n * Each factory takes configuration arguments and optional dependencies,\n * returning a specialized fetcher function.\n *\n * The Umbra indexer is an **untrusted** off-chain service that tracks on-chain events\n * and makes UTXO data and Merkle proofs queryable without scanning the entire chain.\n * Because the indexer is untrusted, callers are responsible for cryptographically\n * verifying all returned data against the on-chain Merkle tree before use.\n *\n * **API Endpoints (via ReadServiceClient):**\n * - `GET /v1/trees/:tree_index/proof/:insertion_index` - Merkle proof for a specific leaf\n * - `GET /v1/utxos?start=&end=&limit=` - UTXO data with pagination\n *\n * **Hash Encoding:**\n * All byte fields (hashes, keys, addresses) are base64-encoded in the read service protobuf response.\n *\n * **Dependency Injection:**\n * All factories support injecting a custom `fetch` implementation for testing\n * or environments without global fetch.\n *\n * **Trust Model:**\n * The indexer is UNTRUSTED. Callers must verify:\n * - UTXO commitments against the on-chain Indexed Merkle Tree.\n * - Merkle proof paths against the on-chain Merkle root.\n * - AES-encrypted data by decrypting with the recipient's private key and\n * checking that the decrypted plaintext re-hashes to the stored commitment.\n *\n * @packageDocumentation\n */\n\nimport type {\n U32,\n U64,\n U128,\n U256LeBytes,\n X25519PublicKey,\n AesCiphertextWithMetadata,\n U128LeBytes,\n Year,\n Month,\n Day,\n Hour,\n Minute,\n Second,\n} from \"../types\";\nimport { assertU256LeBytes, assertU128LeBytes } from \"../types\";\nimport type {\n MerkleProofFetcherFunction,\n MerkleProofData,\n GetMerkleProofFetcherArgs,\n GetMerkleProofFetcherDeps,\n BatchMerkleProofFetcherFunction,\n BatchMerkleProofResult,\n UtxoDataFetcherFunction,\n UtxoFetchResult,\n UtxoDataItem,\n GetUtxoDataFetcherArgs,\n GetUtxoDataFetcherDeps,\n H1Components,\n TimestampComponents,\n} from \"./interfaces\";\nimport { decodeU128LeBytesToU128 } from \"../common/converters/mathematics\";\nimport { ReadServiceClient } from \"@umbra-privacy/indexer-read-service-client\";\n\n// ============================================================================\n// Constants\n// ============================================================================\n\n/**\n * Default pagination limit for UTXO queries.\n *\n * @remarks\n * This value is used when no explicit `limit` parameter is provided to the\n * UTXO fetcher function. It balances network payload size against the number\n * of round-trips required to scan a full tree.\n *\n * @internal\n */\nconst DEFAULT_UTXO_LIMIT = 1000n as U32;\n\n/**\n * Maximum pagination limit for UTXO queries.\n *\n * @remarks\n * The indexer API enforces a server-side cap of 5000 items per response.\n * Requests above this value will be rejected with a validation error before\n * reaching the network.\n *\n * @internal\n */\nconst MAX_UTXO_LIMIT = 5000n as U32;\n\n// ============================================================================\n// Error Class\n// ============================================================================\n\n/**\n * Error class for indexer-related failures.\n *\n * @remarks\n * This error is thrown when indexer API calls fail due to network issues,\n * invalid responses, or server errors. It extends the standard `Error` class\n * with two additional structured fields:\n *\n * - `operation` — a machine-readable label for the failing operation, useful\n * for programmatic error handling and logging.\n * - `statusCode` — the HTTP status code returned by the indexer, when\n * applicable. This is `undefined` for network-level failures (e.g. DNS\n * resolution failure, timeout).\n *\n * @example\n * ```typescript\n * try {\n * const proofs = await fetchProof(0, [42]);\n * } catch (err) {\n * if (err instanceof IndexerError) {\n * console.error(`Operation: ${err.operation}, HTTP status: ${err.statusCode}`);\n * }\n * }\n * ```\n *\n * @public\n */\nexport class IndexerError extends Error {\n /**\n * The indexer operation that failed.\n *\n * @remarks\n * This is a short camelCase label identifying which high-level operation\n * triggered the error (e.g. `\"fetchMerkleProof\"`, `\"fetchUtxoData\"`,\n * `\"base64Conversion\"`).\n *\n * @readonly\n */\n public readonly operation: string;\n\n /**\n * HTTP status code if available.\n *\n * @remarks\n * Present when the server responded with an HTTP error (4xx or 5xx).\n * `undefined` for transport-level failures such as network timeouts or\n * DNS resolution failures.\n *\n * @readonly\n */\n public readonly statusCode: number | undefined;\n\n /**\n * Creates a new IndexerError.\n *\n * @param operation - The operation that failed (e.g. `\"fetchMerkleProof\"`)\n * @param message - Descriptive error message for display to users or logs\n * @param statusCode - Optional HTTP status code (undefined for network failures)\n * @param cause - Optional underlying error that triggered this one\n */\n constructor(operation: string, message: string, statusCode?: number, cause?: Error) {\n super(`Indexer operation '${operation}' failed: ${message}`);\n this.name = \"IndexerError\";\n this.operation = operation;\n this.statusCode = statusCode;\n this.cause = cause;\n\n \n if (Error.captureStackTrace !== undefined) {\n Error.captureStackTrace(this, IndexerError);\n }\n }\n}\n\n// ============================================================================\n// Helper Functions\n// ============================================================================\n\n/**\n * Decodes a base64 string to a raw byte array.\n *\n * @remarks\n * Uses the Node.js `Buffer` API when available (server-side / Node environments)\n * and falls back to the browser `atob` function in web environments. Both paths\n * produce an identical `Uint8Array` result.\n *\n * All byte fields returned by the indexer read service (hashes, keys, ciphertext)\n * are base64-encoded protobuf fields and must be decoded before use.\n *\n * @param base64 - The base64-encoded string to decode\n * @returns A `Uint8Array` containing the decoded raw bytes\n *\n * @internal\n */\nfunction base64ToBytes(base64: string): Uint8Array {\n if (typeof Buffer !== \"undefined\") {\n return Buffer.from(base64, \"base64\");\n }\n const binaryString = atob(base64);\n const bytes = new Uint8Array(binaryString.length);\n for (let index = 0; index < binaryString.length; index++) {\n bytes[index] = binaryString.codePointAt(index) ?? 0;\n }\n return bytes;\n}\n\n/**\n * Converts a base64-encoded 32-byte value to a `U256LeBytes` branded type.\n *\n * @remarks\n * The indexer encodes all 256-bit field elements (Merkle roots, leaf hashes,\n * Merkle path nodes) as 32-byte little-endian byte arrays transmitted as base64.\n * This helper decodes and asserts the correct length before applying the brand.\n *\n * @param base64 - A base64-encoded string representing exactly 32 bytes\n * @returns A `U256LeBytes` (Uint8Array of length 32, little-endian)\n *\n * @throws {IndexerError} If the decoded byte array is not exactly 32 bytes\n *\n * @internal\n */\nfunction base64ToU256LeBytes(base64: string): U256LeBytes {\n const bytes = base64ToBytes(base64);\n if (bytes.length !== 32) {\n throw new IndexerError(\n \"base64Conversion\",\n `Invalid byte length: expected 32 bytes, got ${String(bytes.length)}`,\n );\n }\n assertU256LeBytes(bytes);\n return bytes;\n}\n\n/**\n * Converts a base64-encoded 32-byte value to an `X25519PublicKey` branded type.\n *\n * @remarks\n * X25519 public keys are 32-byte Curve25519 field elements. The indexer stores\n * the depositor's ephemeral X25519 public key alongside each UTXO so that the\n * recipient can perform ECDH to derive the symmetric key for AES decryption.\n *\n * @param base64 - A base64-encoded string representing exactly 32 bytes\n * @returns An `X25519PublicKey` (Uint8Array of length 32)\n *\n * @throws {IndexerError} If the decoded byte array is not exactly 32 bytes\n *\n * @internal\n */\nfunction base64ToX25519PublicKey(base64: string): X25519PublicKey {\n const bytes = base64ToBytes(base64);\n if (bytes.length !== 32) {\n throw new IndexerError(\n \"base64Conversion\",\n `Invalid X25519 public key length: expected 32 bytes, got ${String(bytes.length)}`,\n );\n }\n return bytes as X25519PublicKey;\n}\n\n/**\n * Decodes a base64-encoded AES ciphertext to `AesCiphertextWithMetadata`.\n *\n * @remarks\n * Each UTXO stores AES-256-GCM ciphertext that encodes the plaintext UTXO data\n * (amount, mint, sender, purpose). Only the intended recipient — who holds the\n * private X25519 key — can derive the symmetric AES key via ECDH and decrypt it.\n *\n * The ciphertext length is variable and includes authentication tag and nonce\n * metadata embedded in the wire format.\n *\n * @param base64 - A base64-encoded string representing the full ciphertext blob\n * @returns An `AesCiphertextWithMetadata` byte array\n *\n * @internal\n */\nfunction base64ToAesCiphertext(base64: string): AesCiphertextWithMetadata {\n return base64ToBytes(base64) as AesCiphertextWithMetadata;\n}\n\n/**\n * Splits a base64-encoded 32-byte address into low and high `U128` parts.\n *\n * @remarks\n * Solana addresses (32 bytes) are too large for native circuit field elements\n * in the Arcium MPC. To fit, they are split into two 128-bit halves in\n * little-endian order:\n *\n * - `low`: bytes 0–15 interpreted as a little-endian U128\n * - `high`: bytes 16–31 interpreted as a little-endian U128\n *\n * This split is applied to the sender's wallet address and the token mint\n * address stored in the UTXO's `H1` header block.\n *\n * @param base64 - A base64-encoded string representing exactly 32 bytes\n * @returns An object with `low` and `high` U128 values\n *\n * @throws {IndexerError} If the decoded byte array is not exactly 32 bytes\n *\n * @internal\n */\nfunction splitAddressBase64(base64: string): { low: U128; high: U128 } {\n const bytes = base64ToBytes(base64);\n if (bytes.length !== 32) {\n throw new IndexerError(\n \"addressSplit\",\n `Invalid address length: expected 32 bytes, got ${String(bytes.length)}`,\n );\n }\n\n const lowBytes = bytes.slice(0, 16);\n const highBytes = bytes.slice(16, 32);\n\n assertU128LeBytes(lowBytes);\n assertU128LeBytes(highBytes);\n\n return {\n low: decodeU128LeBytesToU128(lowBytes as U128LeBytes),\n high: decodeU128LeBytesToU128(highBytes as U128LeBytes),\n };\n}\n\n// ============================================================================\n// Merkle Proof Fetcher Factory\n// ============================================================================\n\n/**\n * Creates a Merkle proof fetcher function.\n *\n * @remarks\n * This factory creates a function that fetches Merkle proofs from the indexer\n * read service via `GET /v1/trees/:tree_index/proof/:insertion_index`.\n *\n * **Purpose:**\n * Merkle proofs are required as inputs to Groth16 claim transactions. The proof\n * demonstrates that a UTXO commitment exists at a specific leaf position in the\n * on-chain Indexed Merkle Tree without revealing which UTXO is being claimed\n * (the ZK circuit hides this relationship).\n *\n * **Concurrency:**\n * When multiple `insertionIndices` are provided, all proof requests are issued\n * concurrently via `Promise.all`. The API supports only one leaf per request,\n * so N insertion indices result in N HTTP calls fired in parallel.\n *\n * **Caller Verification Requirement:**\n * Because the indexer is untrusted, callers must verify the returned `merkleRoot`\n * against the current on-chain root before submitting the Merkle path to the\n * ZK circuit. An incorrect proof will cause on-chain verification to fail.\n *\n * **API Endpoint:**\n * `GET /v1/trees/:tree_index/proof/:insertion_index`\n *\n * @param args - Required configuration\n * @param args.apiEndpoint - The base URL of the indexer read service\n * @param deps - Optional dependencies (inject a custom `fetch` for tests or non-browser envs)\n * @param deps.fetch - Custom fetch implementation; defaults to `globalThis.fetch`\n * @returns A {@link MerkleProofFetcherFunction} that, when called, fetches proofs\n * for the specified leaves and returns them keyed by insertion index\n *\n * @throws {IndexerError} If `treeIndex` or any `insertionIndex` is not a non-negative integer\n * @throws {IndexerError} If the HTTP request to the indexer fails\n *\n * @example\n * ```typescript\n * const fetchProof = getMerkleProofFetcher({\n * apiEndpoint: 'https://indexer.umbra.finance'\n * });\n *\n * // Fetch proofs for two leaves in tree 0\n * const proofs = await fetchProof(0, [42, 43]);\n * const proof = proofs.get(42);\n * if (proof !== undefined) {\n * console.log('Merkle root:', proof.merkleRoot);\n * console.log('Path length:', proof.merklePath.length);\n * }\n * ```\n *\n * @example\n * ```typescript\n * // Inject a custom fetch for unit testing\n * const fetchProof = getMerkleProofFetcher(\n * { apiEndpoint: 'https://indexer.umbra.finance' },\n * { fetch: mockFetch }\n * );\n * ```\n *\n * @see {@link MerkleProofFetcherFunction}\n * @see {@link MerkleProofData}\n * @public\n */\nexport function getMerkleProofFetcher(\n args: GetMerkleProofFetcherArgs,\n deps?: GetMerkleProofFetcherDeps,\n): MerkleProofFetcherFunction {\n const { apiEndpoint } = args;\n const client = new ReadServiceClient({ endpoint: apiEndpoint, fetch: deps?.fetch });\n\n /**\n * Fetches Merkle proofs for one or more leaf positions in a given tree.\n *\n * @param treeIndex - The zero-based index of the Indexed Merkle Tree to query\n * @param insertionIndices - The zero-based leaf positions for which to fetch proofs.\n * An empty array returns an empty Map immediately without any network calls.\n * @returns A `Map<insertionIndex, MerkleProofData>` containing one entry per requested leaf.\n * The map preserves the 1-to-1 correspondence: if a leaf is requested, it appears in the result.\n *\n * @throws {IndexerError} If `treeIndex` is negative or non-integer\n * @throws {IndexerError} If any element of `insertionIndices` is negative or non-integer\n * @throws {IndexerError} If the HTTP request for any leaf fails\n */\n return async function fetchMerkleProof(\n treeIndex: U32,\n insertionIndices: readonly U32[],\n ): Promise<Map<U32, MerkleProofData>> {\n if (insertionIndices.length === 0) {\n return new Map();\n }\n\n if (treeIndex < 0n) {\n throw new IndexerError(\n \"fetchMerkleProof\",\n `Invalid tree index: ${String(treeIndex)}. Must be non-negative.`,\n );\n }\n\n const results = new Map<U32, MerkleProofData>();\n\n // Fetch proofs for each leaf (API supports single leaf per request)\n const fetchPromises = insertionIndices.map(async (insertionIndex) => {\n if (insertionIndex < 0n) {\n throw new IndexerError(\n \"fetchMerkleProof\",\n `Invalid insertion index: ${String(insertionIndex)}. Must be non-negative.`,\n );\n }\n\n let data;\n try {\n data = await client.getProof(treeIndex, insertionIndex);\n } catch (error) {\n throw new IndexerError(\n \"fetchMerkleProof\",\n `Failed to fetch proof for leaf ${String(insertionIndex)}: ${error instanceof Error ? error.message : String(error)}`,\n undefined,\n error instanceof Error ? error : undefined,\n );\n }\n\n const merkleRoot = base64ToU256LeBytes(data.root);\n const merklePath = data.proof.map((hash) => base64ToU256LeBytes(hash));\n const leaf = base64ToU256LeBytes(data.leaf);\n\n return {\n insertionIndex,\n data: {\n merkleRoot,\n treeIndex: data.tree_index as U32,\n insertionIndex: data.insertion_index as U32,\n merklePath,\n leaf,\n },\n };\n });\n\n const proofResults = await Promise.all(fetchPromises);\n\n for (const { insertionIndex, data } of proofResults) {\n results.set(insertionIndex, data);\n }\n\n return results;\n };\n}\n\n// ============================================================================\n// Batch Merkle Proof Fetcher Factory\n// ============================================================================\n\n/**\n * Creates a batch Merkle proof fetcher function.\n *\n * @remarks\n * Unlike {@link getMerkleProofFetcher} which fires individual HTTP requests per leaf,\n * this fetcher uses the `POST /v1/trees/:tree_index/proofs` batch endpoint.\n * The indexer generates all proofs under a single tree read lock, guaranteeing\n * a consistent Merkle root across all entries. This is essential for ZK batch\n * claims where the circuit requires a single root for all proved leaves.\n *\n * @param args - Factory arguments (apiEndpoint).\n * @param deps - Optional dependency overrides (custom fetch).\n * @returns A {@link BatchMerkleProofFetcherFunction}.\n *\n * @public\n */\nexport function getBatchMerkleProofFetcher(\n args: GetMerkleProofFetcherArgs,\n deps?: GetMerkleProofFetcherDeps,\n): BatchMerkleProofFetcherFunction {\n const { apiEndpoint } = args;\n const client = new ReadServiceClient({ endpoint: apiEndpoint, fetch: deps?.fetch });\n\n return async function fetchBatchMerkleProof(\n treeIndex: U32,\n insertionIndices: readonly U32[],\n ): Promise<BatchMerkleProofResult> {\n if (insertionIndices.length === 0) {\n return { root: new Uint8Array(32) as U256LeBytes, proofs: new Map() };\n }\n\n if (treeIndex < 0n) {\n throw new IndexerError(\n \"fetchBatchMerkleProof\",\n `Invalid tree index: ${String(treeIndex)}. Must be non-negative.`,\n );\n }\n\n for (const idx of insertionIndices) {\n if (idx < 0n) {\n throw new IndexerError(\n \"fetchBatchMerkleProof\",\n `Invalid insertion index: ${String(idx)}. Must be non-negative.`,\n );\n }\n }\n\n let data;\n try {\n data = await client.getBatchProof(\n treeIndex,\n insertionIndices.map((idx) => BigInt(idx)),\n );\n } catch (error) {\n throw new IndexerError(\n \"fetchBatchMerkleProof\",\n `Failed to fetch batch proofs: ${error instanceof Error ? error.message : String(error)}`,\n undefined,\n error instanceof Error ? error : undefined,\n );\n }\n\n const root = base64ToU256LeBytes(data.root);\n\n const proofs = new Map<\n U32,\n { merklePath: U256LeBytes[]; leaf: U256LeBytes }\n >();\n for (const entry of data.proofs) {\n proofs.set(entry.insertion_index as U32, {\n merklePath: entry.proof.map((hash: string) => base64ToU256LeBytes(hash)),\n leaf: base64ToU256LeBytes(entry.leaf),\n });\n }\n\n return { root, proofs };\n };\n}\n\n// ============================================================================\n// UTXO Data Fetcher Factory\n// ============================================================================\n\n/**\n * Creates a UTXO data fetcher function.\n *\n * @remarks\n * This factory creates a function that fetches UTXO data from the indexer\n * read service via `GET /v1/utxos?start=&end=&limit=` with pagination support.\n *\n * **Purpose:**\n * Recipients use this function to scan for UTXOs sent to them. Because UTXOs\n * are encrypted, the recipient must attempt to decrypt each UTXO's AES ciphertext\n * with their private key to determine which UTXOs belong to them.\n *\n * **Absolute Index Calculation:**\n * The API uses a global \"absolute index\" that spans all trees. The formula is:\n * ```\n * absoluteIndex = treeIndex * 1,048,576 + insertionIndex\n * ```\n * where 1,048,576 = 2^20 is the capacity of each Indexed Merkle Tree.\n *\n * **Pagination:**\n * The API returns up to `limit` items per response. To scan a range larger than\n * one page, iterate using the cursor pattern:\n * - Use `startIndex` and optional `endIndex` to define the absolute index range\n * - Use `limit` to control page size (default: {@link DEFAULT_UTXO_LIMIT}, max: {@link MAX_UTXO_LIMIT})\n * - Use `nextCursor` from the result as `startIndex` for the next page\n * - Stop when `hasMore` is `false`\n *\n * **Caller Verification Requirement:**\n * Because the indexer is untrusted, callers must verify each UTXO's\n * `finalCommitment` against the on-chain Merkle tree after decryption.\n *\n * **API Endpoint:**\n * `GET /v1/utxos?start=&end=&limit=`\n *\n * @param args - Required configuration\n * @param args.apiEndpoint - The base URL of the indexer read service\n * @param deps - Optional dependencies (inject a custom `fetch` for tests or non-browser envs)\n * @param deps.fetch - Custom fetch implementation; defaults to `globalThis.fetch`\n * @returns A {@link UtxoDataFetcherFunction} that fetches one page of UTXO data\n *\n * @throws {IndexerError} If `startIndex` is negative\n * @throws {IndexerError} If `endIndex` is defined and less than `startIndex`\n * @throws {IndexerError} If `limit` is outside the range [1, {@link MAX_UTXO_LIMIT}]\n * @throws {IndexerError} If the HTTP request fails\n * @throws {IndexerError} If any item in the response cannot be parsed\n *\n * @example\n * ```typescript\n * const fetchUtxoData = getUtxoDataFetcher({\n * apiEndpoint: 'https://indexer.umbra.finance'\n * });\n *\n * // Scan all UTXOs from the beginning\n * let result = await fetchUtxoData(0n, undefined, 1000);\n * console.log(`Found ${result.items.size} UTXOs, hasMore=${result.hasMore}`);\n *\n * // Continue pagination\n * while (result.hasMore && result.nextCursor !== undefined) {\n * result = await fetchUtxoData(result.nextCursor, undefined, 1000);\n * }\n * ```\n *\n * @example\n * ```typescript\n * // Fetch only UTXOs within tree 0 (absoluteIndex 0 to 1048575)\n * const result = await fetchUtxoData(0n, 1048575n, 5000);\n * ```\n *\n * @see {@link UtxoDataFetcherFunction}\n * @see {@link UtxoFetchResult}\n * @see {@link UtxoDataItem}\n * @public\n */\nexport function getUtxoDataFetcher(\n args: GetUtxoDataFetcherArgs,\n deps?: GetUtxoDataFetcherDeps,\n): UtxoDataFetcherFunction {\n const { apiEndpoint } = args;\n const client = new ReadServiceClient({ endpoint: apiEndpoint, fetch: deps?.fetch });\n\n /**\n * Fetches one page of UTXO data from the indexer.\n *\n * @param startIndex - The inclusive lower bound of the absolute index range to query.\n * Must be a non-negative bigint. Use `0n` to start from the first ever UTXO.\n * @param endIndex - Optional inclusive upper bound of the absolute index range.\n * If omitted, the server returns all UTXOs from `startIndex` up to `limit`.\n * @param limit - The maximum number of items to return in this page.\n * @defaultValue {@link DEFAULT_UTXO_LIMIT} (1000)\n * Must be in the range [1, {@link MAX_UTXO_LIMIT}] (5000).\n * @returns A {@link UtxoFetchResult} with the parsed UTXO items, pagination cursor,\n * and `hasMore` flag.\n *\n * @throws {IndexerError} If `startIndex` is negative\n * @throws {IndexerError} If `endIndex` is defined and less than `startIndex`\n * @throws {IndexerError} If `limit` is out of range\n * @throws {IndexerError} If the HTTP request fails or any item cannot be parsed\n */\n return async function fetchUtxoData(\n startIndex: bigint,\n endIndex?: bigint,\n limit?: U32,\n ): Promise<UtxoFetchResult> {\n if (startIndex < 0n) {\n throw new IndexerError(\n \"fetchUtxoData\",\n `Invalid start index: ${String(startIndex)}. Must be non-negative.`,\n );\n }\n\n if (endIndex !== undefined && endIndex < startIndex) {\n throw new IndexerError(\n \"fetchUtxoData\",\n `Invalid end index: ${String(endIndex)}. Must be >= start index (${String(startIndex)}).`,\n );\n }\n\n const effectiveLimit = limit ?? DEFAULT_UTXO_LIMIT;\n if (effectiveLimit < 1n || effectiveLimit > MAX_UTXO_LIMIT) {\n throw new IndexerError(\n \"fetchUtxoData\",\n `Invalid limit: ${String(effectiveLimit)}. Must be between 1 and ${String(MAX_UTXO_LIMIT)}.`,\n );\n }\n\n let response;\n try {\n response = await client.getUtxoData({\n start: startIndex,\n end: endIndex,\n limit: effectiveLimit,\n });\n } catch (error) {\n throw new IndexerError(\n \"fetchUtxoData\",\n `Network error: ${error instanceof Error ? error.message : String(error)}`,\n undefined,\n error instanceof Error ? error : undefined,\n );\n }\n\n const items = new Map<U32, UtxoDataItem>();\n\n for (const item of response.items) {\n try {\n const senderAddress = splitAddressBase64(item.h1_sender_address);\n const mintAddress = splitAddressBase64(item.h1_mint_address);\n\n const timestamp: TimestampComponents = {\n year: item.h1_year as Year,\n month: item.h1_month as Month,\n day: item.h1_day as Day,\n hour: item.h1_hour as Hour,\n minute: item.h1_minute as Minute,\n second: item.h1_second as Second,\n };\n\n const h1Components: H1Components = {\n version: BigInt(item.h1_version) as U64,\n commitmentIndex: BigInt(item.h1_commitment_index) as U128,\n senderAddressLow: senderAddress.low,\n senderAddressHigh: senderAddress.high,\n relayerFixedSolFees: item.h1_relayer_fixed_sol_fees as U64,\n mintAddressLow: mintAddress.low,\n mintAddressHigh: mintAddress.high,\n timestamp,\n poolVolumeSpl: item.h1_pool_volume_spl as U64,\n poolVolumeSol: item.h1_pool_volume_sol as U64,\n };\n\n const utxoItem: UtxoDataItem = {\n absoluteIndex: item.absolute_index,\n treeIndex: item.tree_index as U32,\n insertionIndex: item.insertion_index as U32,\n finalCommitment: base64ToU256LeBytes(item.final_commitment),\n h1Components,\n h1Hash: base64ToU256LeBytes(item.h1_hash),\n h2Hash: base64ToU256LeBytes(item.h2_hash),\n aesEncryptedData: base64ToAesCiphertext(item.aes_encrypted_data),\n depositorX25519PublicKey: base64ToX25519PublicKey(item.depositor_x25519_public_key),\n timestamp: item.timestamp as U64,\n slot: item.slot as U64,\n eventType: item.event_type as \"deposit\" | \"callback\",\n };\n\n items.set(item.insertion_index as U32, utxoItem);\n } catch (error) {\n throw new IndexerError(\n \"fetchUtxoData\",\n `Failed to parse UTXO data for index ${String(item.absolute_index)}: ${error instanceof Error ? error.message : String(error)}`,\n undefined,\n error instanceof Error ? error : undefined,\n );\n }\n }\n\n return {\n items,\n hasMore: response.has_more,\n nextCursor: response.next_cursor ?? undefined,\n totalCount: response.total_count as U64,\n };\n };\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as AccountInfoProviderFunction,
|
|
1
|
+
export { A as AccountInfoProviderFunction, j as AesDecryptorFunction, k as AesEncryptorFunction, J as BatchMerkleProofFetcherFunction, B as BatchMerkleProofResult, f as ClaimableUtxoData, K as ClaimableUtxoResult, i as ClaimableUtxoScannerFunction, o as ComputationMonitorProgressEvent, C as CreateSolanaRpcFunction, b as CreateSolanaRpcSubscriptionsFunction, L as DecryptedUtxoData, M as EpochInfoResult, N as FireAndForget, O as ForwardInParallel, Q as ForwardSequentially, g as GetClaimableUtxoScannerFunctionArgs, h as GetClaimableUtxoScannerFunctionDeps, a as GetEpochInfo, G as GetLatestBlockhash, H as GetMasterSeedFunction, R as GetMerkleProofFetcherArgs, U as GetMerkleProofFetcherDeps, V as GetUtxoDataFetcherArgs, X as GetUtxoDataFetcherDeps, Y as H1Components, d as IUmbraClient, Z as IUmbraIndexer, I as IUmbraSigner, _ as LatestBlockhashResult, $ as MerkleProofData, a0 as MerkleProofFetcherFunction, e as ScannedUtxoData, a1 as ScannedUtxoResult, S as SendAndConfirmTransactionFactoryFunction, a2 as SignableTransaction, a3 as SignedMessage, a4 as TimestampComponents, T as TransactionForwarder, a5 as UtxoDataFetcherFunction, a6 as UtxoDataItem, a7 as UtxoFetchResult } from '../client-Baxe29tj.cjs';
|
|
2
2
|
export { j as ChallengePowersDeps, g as ChallengePowersFunction, C as Curve25519KeypairGeneratorFunction, D as DailyViewingKeyGeneratorFunction, E as EphemeralMasterSeedDeriverFunction, k as EphemeralRescueCommitmentBlindingFactorDeriverFunction, l as EphemeralUtxoH2RandomSecretDeriverFunction, m as EphemeralUtxoMasterViewingKeyBlindingFactorDeriverFunction, n as EphemeralUtxoMasterViewingKeyDeriverFunction, o as EphemeralUtxoNullifierDeriverFunction, p as EphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriverFunction, q as EphemeralUtxoPoseidonPrivateKeyDeriverFunction, F as FiatShamirChallengeGeneratorFunction, r as FieldArithmetic, H as H2CircuitProvableHashFunction, s as H2CircuitProvableParams, t as H2FullParams, u as H2GeneratorFns, v as H2HashFunction, w as HourlyViewingKeyGeneratorFunction, K as KeystreamCommitmentFunction, a5 as Kmac256Function, x as MasterSeedBasedFieldElementDeriverFunction, y as MasterSeedGeneratorFunction, b as MasterViewingKeyBlindingFactorDeriverFunction, a as MasterViewingKeyDeriverFunction, z as MintViewingKeyDeriverFunction, M as MintX25519KeypairDeriverFunction, A as MinuteViewingKeyGeneratorFunction, B as ModuloPowCurve25519Function, G as MonthlyViewingKeyGeneratorFunction, d as PolynomialCommitmentFactorDeriverFunction, I as PolynomialEvaluatorDeps, h as PolynomialEvaluatorFunction, i as PoseidonAggregatorHashFunction, c as PoseidonBlindingFactorDeriverFunction, J as PoseidonDecryptorFunction, L as PoseidonEncryptorFunction, N as PoseidonHashFunction, O as PoseidonKeystreamBlindingFactorDeriverFunction, Q as PoseidonKeystreamGeneratorFunction, S as PoseidonPrfFunction, P as PoseidonPrivateKeyDeriverFunction, T as PseudorandomU512DeriverFunction, a6 as RandomNonceGeneratorFunction, V as RcDecryptorFunction, W as RcEncryptorFunction, f as RcEncryptorWithNonceFunction, e as RcKeyGeneratorFunction, X as RescueCipherDeps, Y as RescueCipherInstance, R as RescueCommitmentBlindingFactorDeriverFunction, Z as RescueKeyDerivationFunction, _ as RescuePermuteFunction, $ as RescuePrimeHashDeps, a0 as RescuePrimeHashFunction, a1 as SecondViewingKeyGeneratorFunction, a2 as UserCommitmentGeneratorDeps, U as UserCommitmentGeneratorFunction, a3 as ViewingKeyGeneratorOptions, a7 as X25519GetSharedSecretFunction, a4 as YearlyViewingKeyGeneratorFunction } from '../interfaces-43cReBcS.cjs';
|
|
3
3
|
export { B as Bn254FieldElementLimb, d as Curve25519FieldElementLimb, e as Curve25519ModuloAddFunction, f as Curve25519ModuloInvFunction, g as Curve25519ModuloMulFunction, h as Curve25519ModuloPowFunction, i as Curve25519ModuloSubFunction, c as ModuloAddFunction, M as ModuloInvFunction, j as ModuloMulFunction, k as ModuloNegFunction, b as ModuloSubFunction, l as U512BasedBn254FieldElementSamplerDeps, U as U512BasedBn254FieldElementSamplerFunction, m as U512BasedCurve25519FieldElementSamplerDeps, a as U512BasedCurve25519FieldElementSamplerFunction } from '../interfaces-D2NO6kDD.cjs';
|
|
4
|
-
export { at as AwaitComputationFinalizationConfig, aH as Base85LimbTuple, c as ClaimBatchResult, aI as ClaimBatchSize, aJ as ClaimFeeProofData, aK as ClaimProgressCallback, aL as ClaimProgressEvent, aM as ClaimProofAccountData, aN as ClaimReceiverClaimableUtxoIntoEncryptedBalanceCircuitInputs, aO as ClaimRelayResponse, aP as ClaimRequest, aQ as ClaimRequestVariant, aR as ClaimSelfClaimableUtxoIntoEncryptedBalanceCircuitInputs, aS as ClaimSelfClaimableUtxoIntoPublicBalanceCircuitInputs, ad as ClaimStagedSolFromPoolFunction, ag as ClaimStagedSplFromPoolFunction, b as ClaimStatus, aT as ClaimStatusPollerFunction, C as ClaimStatusResponse, aU as ClaimSubmitResponse, aV as ClaimSubmitterFunction, f as ClaimUtxoIntoEncryptedBalanceResult, k as ClaimUtxoIntoPublicBalanceResult, aW as ClaimUtxoSlotData, M as ConvertToSharedEncryptionFunction, aX as ConvertToSharedEncryptionResult, aY as ConvertToSharedEncryptionSkipReason, n as CreateUserGrantedComplianceGrantFunction, aZ as CreateUtxoArgs, au as CreateUtxoFromEncryptedBalanceResult, a_ as CreateUtxoFromPublicBalanceOptions, av as CreateUtxoFromPublicBalanceResult, a$ as CreateUtxoOptions, D as DeleteUserGrantedComplianceGrantFunction, aw as DepositResult, b0 as EncryptedBalanceClaimRelayerForwarderFunction, ar as EncryptedBalanceToPublicBalanceDirectWithdrawerFunction, b1 as EncryptedBalanceToPublicBalanceDirectWithdrawerOptions, _ as EncryptedBalanceToReceiverClaimableUtxoCreatorFunction, X as EncryptedBalanceToSelfClaimableUtxoCreatorFunction, b2 as EphemeralSignerGeneratorFunction, ab as GetClaimStagedSolFromPoolFunctionArgs, ac as GetClaimStagedSolFromPoolFunctionDeps, ae as GetClaimStagedSplFromPoolFunctionArgs, af as GetClaimStagedSplFromPoolFunctionDeps, K as GetConvertToSharedEncryptionFunctionArgs, L as GetConvertToSharedEncryptionFunctionDeps, l as GetCreateUserGrantedComplianceGrantFunctionArgs, m as GetCreateUserGrantedComplianceGrantFunctionDeps, o as GetDeleteUserGrantedComplianceGrantFunctionArgs, p as GetDeleteUserGrantedComplianceGrantFunctionDeps, b3 as GetEncryptedBalanceClaimRelayerForwarderFunctionArgs, ap as GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionArgs, aq as GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionDeps, Y as GetEncryptedBalanceToReceiverClaimableUtxoCreatorFunctionArgs, Z as GetEncryptedBalanceToReceiverClaimableUtxoCreatorFunctionDeps, V as GetEncryptedBalanceToSelfClaimableUtxoCreatorFunctionArgs, W as GetEncryptedBalanceToSelfClaimableUtxoCreatorFunctionDeps, b4 as GetPublicBalanceClaimRelayerForwarderFunctionArgs, S as GetPublicBalanceToEncryptedBalanceDirectDepositorFunctionArgs, T as GetPublicBalanceToEncryptedBalanceDirectDepositorFunctionDeps, a2 as GetPublicBalanceToReceiverClaimableUtxoCreatorFunctionArgs, a3 as GetPublicBalanceToReceiverClaimableUtxoCreatorFunctionDeps, $ as GetPublicBalanceToSelfClaimableUtxoCreatorFunctionArgs, a0 as GetPublicBalanceToSelfClaimableUtxoCreatorFunctionDeps, b5 as GetQueryEncryptedBalanceFunction, a5 as GetQueryEncryptedBalanceFunctionArgs, a6 as GetQueryEncryptedBalanceFunctionDeps, y as GetQueryNetworkMxeComplianceGrantFunctionArgs, z as GetQueryNetworkMxeComplianceGrantFunctionDeps, A as GetQueryNetworkSharedComplianceGrantFunctionArgs, B as GetQueryNetworkSharedComplianceGrantFunctionDeps, b6 as GetQueryUserAccountFunction, a8 as GetQueryUserAccountFunctionArgs, a9 as GetQueryUserAccountFunctionDeps, F as GetQueryUserComplianceGrantFunctionArgs, H as GetQueryUserComplianceGrantFunctionDeps, d as GetReceiverClaimableUtxoToEncryptedBalanceClaimerFunctionArgs, e as GetReceiverClaimableUtxoToEncryptedBalanceClaimerFunctionDeps, s as GetReencryptMxeCiphertextsNetworkGrantV10FunctionArgs, t as GetReencryptMxeCiphertextsNetworkGrantV10FunctionDeps, v as GetReencryptSharedCiphertextsNetworkGrantV10FunctionArgs, w as GetReencryptSharedCiphertextsNetworkGrantV10FunctionDeps, q as GetReencryptSharedCiphertextsUserGrantV10FunctionArgs, r as GetReencryptSharedCiphertextsUserGrantV10FunctionDeps, b7 as GetRelayerForwarderDeps, N as GetRotateMintX25519EncryptionKeyFunctionArgs, O as GetRotateMintX25519EncryptionKeyFunctionDeps, g as GetSelfClaimableUtxoToEncryptedBalanceClaimerFunctionArgs, h as GetSelfClaimableUtxoToEncryptedBalanceClaimerFunctionDeps, i as GetSelfClaimableUtxoToPublicBalanceClaimerFunctionArgs, j as GetSelfClaimableUtxoToPublicBalanceClaimerFunctionDeps, G as GetUmbraRelayerArgs, a as GetUmbraRelayerDeps, b8 as GetUmbraRelayerFunction, aj as GetUpdateRandomGenerationSeedFunctionArgs, ak as GetUpdateRandomGenerationSeedFunctionDeps, am as GetUpdateTokenAccountRandomGenerationSeedFunctionArgs, an as GetUpdateTokenAccountRandomGenerationSeedFunctionDeps, b9 as GetZkpClaimRelayerForwarderFunctionArgs, ba as IEphemeralUmbraClient, I as IUmbraRelayer, bb as IZkProverForClaimReceiverClaimableUtxoIntoEncryptedBalance, bc as IZkProverForClaimSelfClaimableUtxoIntoEncryptedBalance, bd as IZkProverForClaimSelfClaimableUtxoIntoPublicBalance, be as IZkProverForReceiverClaimableUtxo, bf as IZkProverForSelfClaimableUtxo, ah as IZkProverForUserRegistration, bg as IZkProverSuite, bh as PostTransactionCallback, bi as PreTransactionCallback, bj as PublicBalanceClaimRelayerForwarderFunction, U as PublicBalanceToEncryptedBalanceDirectDepositorFunction, bk as PublicBalanceToEncryptedBalanceDirectDepositorOptions, a4 as PublicBalanceToReceiverClaimableUtxoCreatorFunction, bl as PublicBalanceToReceiverClaimableUtxoCreatorOptions, a1 as PublicBalanceToSelfClaimableUtxoCreatorFunction, a7 as QueryEncryptedBalanceFunction, bm as QueryEncryptedBalanceResult, Q as QueryNetworkMxeComplianceGrantFunction, E as QueryNetworkSharedComplianceGrantFunction, aa as QueryUserAccountFunction, J as QueryUserComplianceGrantFunction, bn as ReceiverClaimableUtxoCircuitInputs, bo as ReceiverClaimableUtxoFromPublicBalanceCircuitInputs, bp as ReceiverClaimableUtxoToEncryptedBalanceClaimerFunction, u as ReencryptMxeCiphertextsNetworkGrantV10Function, x as ReencryptSharedCiphertextsNetworkGrantV10Function, R as ReencryptSharedCiphertextsUserGrantV10Function, bq as RelayerInfoResponse, P as RotateMintX25519EncryptionKeyFunction, br as SelfClaimableUtxoCircuitInputs, bs as SelfClaimableUtxoFromPublicBalanceCircuitInputs, bt as SelfClaimableUtxoToEncryptedBalanceClaimerFunction, bu as SelfClaimableUtxoToPublicBalanceClaimerFunction, bv as SimpleEncryptedBalanceClaimForwarderFunction, bw as SupportedMintsResponse, bx as TransactionCallbacks, by as TransactionResult, bz as TransactionStatus, al as UpdateRandomGenerationSeedFunction, ao as UpdateTokenAccountRandomGenerationSeedFunction, bA as UserRegistrationCallbacks, bB as UserRegistrationCircuitInputs, ai as UserRegistrationFunction, bC as UserRegistrationOptionalData, bD as UserRegistrationOptions, aB as WithdrawResult, bE as ZkProverForReceiverClaimableUtxoFromPublicBalance, bF as ZkProverForSelfClaimableUtxoFromPublicBalance, bG as ZkpClaimRelayerForwarderFunction, bH as ZkpClaimResponse } from '../index-
|
|
4
|
+
export { at as AwaitComputationFinalizationConfig, aH as Base85LimbTuple, c as ClaimBatchResult, aI as ClaimBatchSize, aJ as ClaimFeeProofData, aK as ClaimProgressCallback, aL as ClaimProgressEvent, aM as ClaimProofAccountData, aN as ClaimReceiverClaimableUtxoIntoEncryptedBalanceCircuitInputs, aO as ClaimRelayResponse, aP as ClaimRequest, aQ as ClaimRequestVariant, aR as ClaimSelfClaimableUtxoIntoEncryptedBalanceCircuitInputs, aS as ClaimSelfClaimableUtxoIntoPublicBalanceCircuitInputs, ad as ClaimStagedSolFromPoolFunction, ag as ClaimStagedSplFromPoolFunction, b as ClaimStatus, aT as ClaimStatusPollerFunction, C as ClaimStatusResponse, aU as ClaimSubmitResponse, aV as ClaimSubmitterFunction, f as ClaimUtxoIntoEncryptedBalanceResult, k as ClaimUtxoIntoPublicBalanceResult, aW as ClaimUtxoSlotData, M as ConvertToSharedEncryptionFunction, aX as ConvertToSharedEncryptionResult, aY as ConvertToSharedEncryptionSkipReason, n as CreateUserGrantedComplianceGrantFunction, aZ as CreateUtxoArgs, au as CreateUtxoFromEncryptedBalanceResult, a_ as CreateUtxoFromPublicBalanceOptions, av as CreateUtxoFromPublicBalanceResult, a$ as CreateUtxoOptions, D as DeleteUserGrantedComplianceGrantFunction, aw as DepositResult, b0 as EncryptedBalanceClaimRelayerForwarderFunction, ar as EncryptedBalanceToPublicBalanceDirectWithdrawerFunction, b1 as EncryptedBalanceToPublicBalanceDirectWithdrawerOptions, _ as EncryptedBalanceToReceiverClaimableUtxoCreatorFunction, X as EncryptedBalanceToSelfClaimableUtxoCreatorFunction, b2 as EphemeralSignerGeneratorFunction, ab as GetClaimStagedSolFromPoolFunctionArgs, ac as GetClaimStagedSolFromPoolFunctionDeps, ae as GetClaimStagedSplFromPoolFunctionArgs, af as GetClaimStagedSplFromPoolFunctionDeps, K as GetConvertToSharedEncryptionFunctionArgs, L as GetConvertToSharedEncryptionFunctionDeps, l as GetCreateUserGrantedComplianceGrantFunctionArgs, m as GetCreateUserGrantedComplianceGrantFunctionDeps, o as GetDeleteUserGrantedComplianceGrantFunctionArgs, p as GetDeleteUserGrantedComplianceGrantFunctionDeps, b3 as GetEncryptedBalanceClaimRelayerForwarderFunctionArgs, ap as GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionArgs, aq as GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionDeps, Y as GetEncryptedBalanceToReceiverClaimableUtxoCreatorFunctionArgs, Z as GetEncryptedBalanceToReceiverClaimableUtxoCreatorFunctionDeps, V as GetEncryptedBalanceToSelfClaimableUtxoCreatorFunctionArgs, W as GetEncryptedBalanceToSelfClaimableUtxoCreatorFunctionDeps, b4 as GetPublicBalanceClaimRelayerForwarderFunctionArgs, S as GetPublicBalanceToEncryptedBalanceDirectDepositorFunctionArgs, T as GetPublicBalanceToEncryptedBalanceDirectDepositorFunctionDeps, a2 as GetPublicBalanceToReceiverClaimableUtxoCreatorFunctionArgs, a3 as GetPublicBalanceToReceiverClaimableUtxoCreatorFunctionDeps, $ as GetPublicBalanceToSelfClaimableUtxoCreatorFunctionArgs, a0 as GetPublicBalanceToSelfClaimableUtxoCreatorFunctionDeps, b5 as GetQueryEncryptedBalanceFunction, a5 as GetQueryEncryptedBalanceFunctionArgs, a6 as GetQueryEncryptedBalanceFunctionDeps, y as GetQueryNetworkMxeComplianceGrantFunctionArgs, z as GetQueryNetworkMxeComplianceGrantFunctionDeps, A as GetQueryNetworkSharedComplianceGrantFunctionArgs, B as GetQueryNetworkSharedComplianceGrantFunctionDeps, b6 as GetQueryUserAccountFunction, a8 as GetQueryUserAccountFunctionArgs, a9 as GetQueryUserAccountFunctionDeps, F as GetQueryUserComplianceGrantFunctionArgs, H as GetQueryUserComplianceGrantFunctionDeps, d as GetReceiverClaimableUtxoToEncryptedBalanceClaimerFunctionArgs, e as GetReceiverClaimableUtxoToEncryptedBalanceClaimerFunctionDeps, s as GetReencryptMxeCiphertextsNetworkGrantV10FunctionArgs, t as GetReencryptMxeCiphertextsNetworkGrantV10FunctionDeps, v as GetReencryptSharedCiphertextsNetworkGrantV10FunctionArgs, w as GetReencryptSharedCiphertextsNetworkGrantV10FunctionDeps, q as GetReencryptSharedCiphertextsUserGrantV10FunctionArgs, r as GetReencryptSharedCiphertextsUserGrantV10FunctionDeps, b7 as GetRelayerForwarderDeps, N as GetRotateMintX25519EncryptionKeyFunctionArgs, O as GetRotateMintX25519EncryptionKeyFunctionDeps, g as GetSelfClaimableUtxoToEncryptedBalanceClaimerFunctionArgs, h as GetSelfClaimableUtxoToEncryptedBalanceClaimerFunctionDeps, i as GetSelfClaimableUtxoToPublicBalanceClaimerFunctionArgs, j as GetSelfClaimableUtxoToPublicBalanceClaimerFunctionDeps, G as GetUmbraRelayerArgs, a as GetUmbraRelayerDeps, b8 as GetUmbraRelayerFunction, aj as GetUpdateRandomGenerationSeedFunctionArgs, ak as GetUpdateRandomGenerationSeedFunctionDeps, am as GetUpdateTokenAccountRandomGenerationSeedFunctionArgs, an as GetUpdateTokenAccountRandomGenerationSeedFunctionDeps, b9 as GetZkpClaimRelayerForwarderFunctionArgs, ba as IEphemeralUmbraClient, I as IUmbraRelayer, bb as IZkProverForClaimReceiverClaimableUtxoIntoEncryptedBalance, bc as IZkProverForClaimSelfClaimableUtxoIntoEncryptedBalance, bd as IZkProverForClaimSelfClaimableUtxoIntoPublicBalance, be as IZkProverForReceiverClaimableUtxo, bf as IZkProverForSelfClaimableUtxo, ah as IZkProverForUserRegistration, bg as IZkProverSuite, bh as PostTransactionCallback, bi as PreTransactionCallback, bj as PublicBalanceClaimRelayerForwarderFunction, U as PublicBalanceToEncryptedBalanceDirectDepositorFunction, bk as PublicBalanceToEncryptedBalanceDirectDepositorOptions, a4 as PublicBalanceToReceiverClaimableUtxoCreatorFunction, bl as PublicBalanceToReceiverClaimableUtxoCreatorOptions, a1 as PublicBalanceToSelfClaimableUtxoCreatorFunction, a7 as QueryEncryptedBalanceFunction, bm as QueryEncryptedBalanceResult, Q as QueryNetworkMxeComplianceGrantFunction, E as QueryNetworkSharedComplianceGrantFunction, aa as QueryUserAccountFunction, J as QueryUserComplianceGrantFunction, bn as ReceiverClaimableUtxoCircuitInputs, bo as ReceiverClaimableUtxoFromPublicBalanceCircuitInputs, bp as ReceiverClaimableUtxoToEncryptedBalanceClaimerFunction, u as ReencryptMxeCiphertextsNetworkGrantV10Function, x as ReencryptSharedCiphertextsNetworkGrantV10Function, R as ReencryptSharedCiphertextsUserGrantV10Function, bq as RelayerInfoResponse, P as RotateMintX25519EncryptionKeyFunction, br as SelfClaimableUtxoCircuitInputs, bs as SelfClaimableUtxoFromPublicBalanceCircuitInputs, bt as SelfClaimableUtxoToEncryptedBalanceClaimerFunction, bu as SelfClaimableUtxoToPublicBalanceClaimerFunction, bv as SimpleEncryptedBalanceClaimForwarderFunction, bw as SupportedMintsResponse, bx as TransactionCallbacks, by as TransactionResult, bz as TransactionStatus, al as UpdateRandomGenerationSeedFunction, ao as UpdateTokenAccountRandomGenerationSeedFunction, bA as UserRegistrationCallbacks, bB as UserRegistrationCircuitInputs, ai as UserRegistrationFunction, bC as UserRegistrationOptionalData, bD as UserRegistrationOptions, aB as WithdrawResult, bE as ZkProverForReceiverClaimableUtxoFromPublicBalance, bF as ZkProverForSelfClaimableUtxoFromPublicBalance, bG as ZkpClaimRelayerForwarderFunction, bH as ZkpClaimResponse } from '../index-BRLHQNe9.cjs';
|
|
5
5
|
export { G as Groth16ProofA, u as Groth16ProofB, v as Groth16ProofC } from '../cryptography-D6tPDh-Y.cjs';
|
|
6
6
|
import '@solana/kit';
|
|
7
7
|
import '../types-C_V_CaKK.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as AccountInfoProviderFunction,
|
|
1
|
+
export { A as AccountInfoProviderFunction, j as AesDecryptorFunction, k as AesEncryptorFunction, J as BatchMerkleProofFetcherFunction, B as BatchMerkleProofResult, f as ClaimableUtxoData, K as ClaimableUtxoResult, i as ClaimableUtxoScannerFunction, o as ComputationMonitorProgressEvent, C as CreateSolanaRpcFunction, b as CreateSolanaRpcSubscriptionsFunction, L as DecryptedUtxoData, M as EpochInfoResult, N as FireAndForget, O as ForwardInParallel, Q as ForwardSequentially, g as GetClaimableUtxoScannerFunctionArgs, h as GetClaimableUtxoScannerFunctionDeps, a as GetEpochInfo, G as GetLatestBlockhash, H as GetMasterSeedFunction, R as GetMerkleProofFetcherArgs, U as GetMerkleProofFetcherDeps, V as GetUtxoDataFetcherArgs, X as GetUtxoDataFetcherDeps, Y as H1Components, d as IUmbraClient, Z as IUmbraIndexer, I as IUmbraSigner, _ as LatestBlockhashResult, $ as MerkleProofData, a0 as MerkleProofFetcherFunction, e as ScannedUtxoData, a1 as ScannedUtxoResult, S as SendAndConfirmTransactionFactoryFunction, a2 as SignableTransaction, a3 as SignedMessage, a4 as TimestampComponents, T as TransactionForwarder, a5 as UtxoDataFetcherFunction, a6 as UtxoDataItem, a7 as UtxoFetchResult } from '../client-Cqv_5hHQ.js';
|
|
2
2
|
export { j as ChallengePowersDeps, g as ChallengePowersFunction, C as Curve25519KeypairGeneratorFunction, D as DailyViewingKeyGeneratorFunction, E as EphemeralMasterSeedDeriverFunction, k as EphemeralRescueCommitmentBlindingFactorDeriverFunction, l as EphemeralUtxoH2RandomSecretDeriverFunction, m as EphemeralUtxoMasterViewingKeyBlindingFactorDeriverFunction, n as EphemeralUtxoMasterViewingKeyDeriverFunction, o as EphemeralUtxoNullifierDeriverFunction, p as EphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriverFunction, q as EphemeralUtxoPoseidonPrivateKeyDeriverFunction, F as FiatShamirChallengeGeneratorFunction, r as FieldArithmetic, H as H2CircuitProvableHashFunction, s as H2CircuitProvableParams, t as H2FullParams, u as H2GeneratorFns, v as H2HashFunction, w as HourlyViewingKeyGeneratorFunction, K as KeystreamCommitmentFunction, a5 as Kmac256Function, x as MasterSeedBasedFieldElementDeriverFunction, y as MasterSeedGeneratorFunction, b as MasterViewingKeyBlindingFactorDeriverFunction, a as MasterViewingKeyDeriverFunction, z as MintViewingKeyDeriverFunction, M as MintX25519KeypairDeriverFunction, A as MinuteViewingKeyGeneratorFunction, B as ModuloPowCurve25519Function, G as MonthlyViewingKeyGeneratorFunction, d as PolynomialCommitmentFactorDeriverFunction, I as PolynomialEvaluatorDeps, h as PolynomialEvaluatorFunction, i as PoseidonAggregatorHashFunction, c as PoseidonBlindingFactorDeriverFunction, J as PoseidonDecryptorFunction, L as PoseidonEncryptorFunction, N as PoseidonHashFunction, O as PoseidonKeystreamBlindingFactorDeriverFunction, Q as PoseidonKeystreamGeneratorFunction, S as PoseidonPrfFunction, P as PoseidonPrivateKeyDeriverFunction, T as PseudorandomU512DeriverFunction, a6 as RandomNonceGeneratorFunction, V as RcDecryptorFunction, W as RcEncryptorFunction, f as RcEncryptorWithNonceFunction, e as RcKeyGeneratorFunction, X as RescueCipherDeps, Y as RescueCipherInstance, R as RescueCommitmentBlindingFactorDeriverFunction, Z as RescueKeyDerivationFunction, _ as RescuePermuteFunction, $ as RescuePrimeHashDeps, a0 as RescuePrimeHashFunction, a1 as SecondViewingKeyGeneratorFunction, a2 as UserCommitmentGeneratorDeps, U as UserCommitmentGeneratorFunction, a3 as ViewingKeyGeneratorOptions, a7 as X25519GetSharedSecretFunction, a4 as YearlyViewingKeyGeneratorFunction } from '../interfaces-z_xYJlgV.js';
|
|
3
3
|
export { B as Bn254FieldElementLimb, d as Curve25519FieldElementLimb, e as Curve25519ModuloAddFunction, f as Curve25519ModuloInvFunction, g as Curve25519ModuloMulFunction, h as Curve25519ModuloPowFunction, i as Curve25519ModuloSubFunction, c as ModuloAddFunction, M as ModuloInvFunction, j as ModuloMulFunction, k as ModuloNegFunction, b as ModuloSubFunction, l as U512BasedBn254FieldElementSamplerDeps, U as U512BasedBn254FieldElementSamplerFunction, m as U512BasedCurve25519FieldElementSamplerDeps, a as U512BasedCurve25519FieldElementSamplerFunction } from '../interfaces-B8xKNl_6.js';
|
|
4
|
-
export { at as AwaitComputationFinalizationConfig, aH as Base85LimbTuple, c as ClaimBatchResult, aI as ClaimBatchSize, aJ as ClaimFeeProofData, aK as ClaimProgressCallback, aL as ClaimProgressEvent, aM as ClaimProofAccountData, aN as ClaimReceiverClaimableUtxoIntoEncryptedBalanceCircuitInputs, aO as ClaimRelayResponse, aP as ClaimRequest, aQ as ClaimRequestVariant, aR as ClaimSelfClaimableUtxoIntoEncryptedBalanceCircuitInputs, aS as ClaimSelfClaimableUtxoIntoPublicBalanceCircuitInputs, ad as ClaimStagedSolFromPoolFunction, ag as ClaimStagedSplFromPoolFunction, b as ClaimStatus, aT as ClaimStatusPollerFunction, C as ClaimStatusResponse, aU as ClaimSubmitResponse, aV as ClaimSubmitterFunction, f as ClaimUtxoIntoEncryptedBalanceResult, k as ClaimUtxoIntoPublicBalanceResult, aW as ClaimUtxoSlotData, M as ConvertToSharedEncryptionFunction, aX as ConvertToSharedEncryptionResult, aY as ConvertToSharedEncryptionSkipReason, n as CreateUserGrantedComplianceGrantFunction, aZ as CreateUtxoArgs, au as CreateUtxoFromEncryptedBalanceResult, a_ as CreateUtxoFromPublicBalanceOptions, av as CreateUtxoFromPublicBalanceResult, a$ as CreateUtxoOptions, D as DeleteUserGrantedComplianceGrantFunction, aw as DepositResult, b0 as EncryptedBalanceClaimRelayerForwarderFunction, ar as EncryptedBalanceToPublicBalanceDirectWithdrawerFunction, b1 as EncryptedBalanceToPublicBalanceDirectWithdrawerOptions, _ as EncryptedBalanceToReceiverClaimableUtxoCreatorFunction, X as EncryptedBalanceToSelfClaimableUtxoCreatorFunction, b2 as EphemeralSignerGeneratorFunction, ab as GetClaimStagedSolFromPoolFunctionArgs, ac as GetClaimStagedSolFromPoolFunctionDeps, ae as GetClaimStagedSplFromPoolFunctionArgs, af as GetClaimStagedSplFromPoolFunctionDeps, K as GetConvertToSharedEncryptionFunctionArgs, L as GetConvertToSharedEncryptionFunctionDeps, l as GetCreateUserGrantedComplianceGrantFunctionArgs, m as GetCreateUserGrantedComplianceGrantFunctionDeps, o as GetDeleteUserGrantedComplianceGrantFunctionArgs, p as GetDeleteUserGrantedComplianceGrantFunctionDeps, b3 as GetEncryptedBalanceClaimRelayerForwarderFunctionArgs, ap as GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionArgs, aq as GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionDeps, Y as GetEncryptedBalanceToReceiverClaimableUtxoCreatorFunctionArgs, Z as GetEncryptedBalanceToReceiverClaimableUtxoCreatorFunctionDeps, V as GetEncryptedBalanceToSelfClaimableUtxoCreatorFunctionArgs, W as GetEncryptedBalanceToSelfClaimableUtxoCreatorFunctionDeps, b4 as GetPublicBalanceClaimRelayerForwarderFunctionArgs, S as GetPublicBalanceToEncryptedBalanceDirectDepositorFunctionArgs, T as GetPublicBalanceToEncryptedBalanceDirectDepositorFunctionDeps, a2 as GetPublicBalanceToReceiverClaimableUtxoCreatorFunctionArgs, a3 as GetPublicBalanceToReceiverClaimableUtxoCreatorFunctionDeps, $ as GetPublicBalanceToSelfClaimableUtxoCreatorFunctionArgs, a0 as GetPublicBalanceToSelfClaimableUtxoCreatorFunctionDeps, b5 as GetQueryEncryptedBalanceFunction, a5 as GetQueryEncryptedBalanceFunctionArgs, a6 as GetQueryEncryptedBalanceFunctionDeps, y as GetQueryNetworkMxeComplianceGrantFunctionArgs, z as GetQueryNetworkMxeComplianceGrantFunctionDeps, A as GetQueryNetworkSharedComplianceGrantFunctionArgs, B as GetQueryNetworkSharedComplianceGrantFunctionDeps, b6 as GetQueryUserAccountFunction, a8 as GetQueryUserAccountFunctionArgs, a9 as GetQueryUserAccountFunctionDeps, F as GetQueryUserComplianceGrantFunctionArgs, H as GetQueryUserComplianceGrantFunctionDeps, d as GetReceiverClaimableUtxoToEncryptedBalanceClaimerFunctionArgs, e as GetReceiverClaimableUtxoToEncryptedBalanceClaimerFunctionDeps, s as GetReencryptMxeCiphertextsNetworkGrantV10FunctionArgs, t as GetReencryptMxeCiphertextsNetworkGrantV10FunctionDeps, v as GetReencryptSharedCiphertextsNetworkGrantV10FunctionArgs, w as GetReencryptSharedCiphertextsNetworkGrantV10FunctionDeps, q as GetReencryptSharedCiphertextsUserGrantV10FunctionArgs, r as GetReencryptSharedCiphertextsUserGrantV10FunctionDeps, b7 as GetRelayerForwarderDeps, N as GetRotateMintX25519EncryptionKeyFunctionArgs, O as GetRotateMintX25519EncryptionKeyFunctionDeps, g as GetSelfClaimableUtxoToEncryptedBalanceClaimerFunctionArgs, h as GetSelfClaimableUtxoToEncryptedBalanceClaimerFunctionDeps, i as GetSelfClaimableUtxoToPublicBalanceClaimerFunctionArgs, j as GetSelfClaimableUtxoToPublicBalanceClaimerFunctionDeps, G as GetUmbraRelayerArgs, a as GetUmbraRelayerDeps, b8 as GetUmbraRelayerFunction, aj as GetUpdateRandomGenerationSeedFunctionArgs, ak as GetUpdateRandomGenerationSeedFunctionDeps, am as GetUpdateTokenAccountRandomGenerationSeedFunctionArgs, an as GetUpdateTokenAccountRandomGenerationSeedFunctionDeps, b9 as GetZkpClaimRelayerForwarderFunctionArgs, ba as IEphemeralUmbraClient, I as IUmbraRelayer, bb as IZkProverForClaimReceiverClaimableUtxoIntoEncryptedBalance, bc as IZkProverForClaimSelfClaimableUtxoIntoEncryptedBalance, bd as IZkProverForClaimSelfClaimableUtxoIntoPublicBalance, be as IZkProverForReceiverClaimableUtxo, bf as IZkProverForSelfClaimableUtxo, ah as IZkProverForUserRegistration, bg as IZkProverSuite, bh as PostTransactionCallback, bi as PreTransactionCallback, bj as PublicBalanceClaimRelayerForwarderFunction, U as PublicBalanceToEncryptedBalanceDirectDepositorFunction, bk as PublicBalanceToEncryptedBalanceDirectDepositorOptions, a4 as PublicBalanceToReceiverClaimableUtxoCreatorFunction, bl as PublicBalanceToReceiverClaimableUtxoCreatorOptions, a1 as PublicBalanceToSelfClaimableUtxoCreatorFunction, a7 as QueryEncryptedBalanceFunction, bm as QueryEncryptedBalanceResult, Q as QueryNetworkMxeComplianceGrantFunction, E as QueryNetworkSharedComplianceGrantFunction, aa as QueryUserAccountFunction, J as QueryUserComplianceGrantFunction, bn as ReceiverClaimableUtxoCircuitInputs, bo as ReceiverClaimableUtxoFromPublicBalanceCircuitInputs, bp as ReceiverClaimableUtxoToEncryptedBalanceClaimerFunction, u as ReencryptMxeCiphertextsNetworkGrantV10Function, x as ReencryptSharedCiphertextsNetworkGrantV10Function, R as ReencryptSharedCiphertextsUserGrantV10Function, bq as RelayerInfoResponse, P as RotateMintX25519EncryptionKeyFunction, br as SelfClaimableUtxoCircuitInputs, bs as SelfClaimableUtxoFromPublicBalanceCircuitInputs, bt as SelfClaimableUtxoToEncryptedBalanceClaimerFunction, bu as SelfClaimableUtxoToPublicBalanceClaimerFunction, bv as SimpleEncryptedBalanceClaimForwarderFunction, bw as SupportedMintsResponse, bx as TransactionCallbacks, by as TransactionResult, bz as TransactionStatus, al as UpdateRandomGenerationSeedFunction, ao as UpdateTokenAccountRandomGenerationSeedFunction, bA as UserRegistrationCallbacks, bB as UserRegistrationCircuitInputs, ai as UserRegistrationFunction, bC as UserRegistrationOptionalData, bD as UserRegistrationOptions, aB as WithdrawResult, bE as ZkProverForReceiverClaimableUtxoFromPublicBalance, bF as ZkProverForSelfClaimableUtxoFromPublicBalance, bG as ZkpClaimRelayerForwarderFunction, bH as ZkpClaimResponse } from '../index-
|
|
4
|
+
export { at as AwaitComputationFinalizationConfig, aH as Base85LimbTuple, c as ClaimBatchResult, aI as ClaimBatchSize, aJ as ClaimFeeProofData, aK as ClaimProgressCallback, aL as ClaimProgressEvent, aM as ClaimProofAccountData, aN as ClaimReceiverClaimableUtxoIntoEncryptedBalanceCircuitInputs, aO as ClaimRelayResponse, aP as ClaimRequest, aQ as ClaimRequestVariant, aR as ClaimSelfClaimableUtxoIntoEncryptedBalanceCircuitInputs, aS as ClaimSelfClaimableUtxoIntoPublicBalanceCircuitInputs, ad as ClaimStagedSolFromPoolFunction, ag as ClaimStagedSplFromPoolFunction, b as ClaimStatus, aT as ClaimStatusPollerFunction, C as ClaimStatusResponse, aU as ClaimSubmitResponse, aV as ClaimSubmitterFunction, f as ClaimUtxoIntoEncryptedBalanceResult, k as ClaimUtxoIntoPublicBalanceResult, aW as ClaimUtxoSlotData, M as ConvertToSharedEncryptionFunction, aX as ConvertToSharedEncryptionResult, aY as ConvertToSharedEncryptionSkipReason, n as CreateUserGrantedComplianceGrantFunction, aZ as CreateUtxoArgs, au as CreateUtxoFromEncryptedBalanceResult, a_ as CreateUtxoFromPublicBalanceOptions, av as CreateUtxoFromPublicBalanceResult, a$ as CreateUtxoOptions, D as DeleteUserGrantedComplianceGrantFunction, aw as DepositResult, b0 as EncryptedBalanceClaimRelayerForwarderFunction, ar as EncryptedBalanceToPublicBalanceDirectWithdrawerFunction, b1 as EncryptedBalanceToPublicBalanceDirectWithdrawerOptions, _ as EncryptedBalanceToReceiverClaimableUtxoCreatorFunction, X as EncryptedBalanceToSelfClaimableUtxoCreatorFunction, b2 as EphemeralSignerGeneratorFunction, ab as GetClaimStagedSolFromPoolFunctionArgs, ac as GetClaimStagedSolFromPoolFunctionDeps, ae as GetClaimStagedSplFromPoolFunctionArgs, af as GetClaimStagedSplFromPoolFunctionDeps, K as GetConvertToSharedEncryptionFunctionArgs, L as GetConvertToSharedEncryptionFunctionDeps, l as GetCreateUserGrantedComplianceGrantFunctionArgs, m as GetCreateUserGrantedComplianceGrantFunctionDeps, o as GetDeleteUserGrantedComplianceGrantFunctionArgs, p as GetDeleteUserGrantedComplianceGrantFunctionDeps, b3 as GetEncryptedBalanceClaimRelayerForwarderFunctionArgs, ap as GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionArgs, aq as GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionDeps, Y as GetEncryptedBalanceToReceiverClaimableUtxoCreatorFunctionArgs, Z as GetEncryptedBalanceToReceiverClaimableUtxoCreatorFunctionDeps, V as GetEncryptedBalanceToSelfClaimableUtxoCreatorFunctionArgs, W as GetEncryptedBalanceToSelfClaimableUtxoCreatorFunctionDeps, b4 as GetPublicBalanceClaimRelayerForwarderFunctionArgs, S as GetPublicBalanceToEncryptedBalanceDirectDepositorFunctionArgs, T as GetPublicBalanceToEncryptedBalanceDirectDepositorFunctionDeps, a2 as GetPublicBalanceToReceiverClaimableUtxoCreatorFunctionArgs, a3 as GetPublicBalanceToReceiverClaimableUtxoCreatorFunctionDeps, $ as GetPublicBalanceToSelfClaimableUtxoCreatorFunctionArgs, a0 as GetPublicBalanceToSelfClaimableUtxoCreatorFunctionDeps, b5 as GetQueryEncryptedBalanceFunction, a5 as GetQueryEncryptedBalanceFunctionArgs, a6 as GetQueryEncryptedBalanceFunctionDeps, y as GetQueryNetworkMxeComplianceGrantFunctionArgs, z as GetQueryNetworkMxeComplianceGrantFunctionDeps, A as GetQueryNetworkSharedComplianceGrantFunctionArgs, B as GetQueryNetworkSharedComplianceGrantFunctionDeps, b6 as GetQueryUserAccountFunction, a8 as GetQueryUserAccountFunctionArgs, a9 as GetQueryUserAccountFunctionDeps, F as GetQueryUserComplianceGrantFunctionArgs, H as GetQueryUserComplianceGrantFunctionDeps, d as GetReceiverClaimableUtxoToEncryptedBalanceClaimerFunctionArgs, e as GetReceiverClaimableUtxoToEncryptedBalanceClaimerFunctionDeps, s as GetReencryptMxeCiphertextsNetworkGrantV10FunctionArgs, t as GetReencryptMxeCiphertextsNetworkGrantV10FunctionDeps, v as GetReencryptSharedCiphertextsNetworkGrantV10FunctionArgs, w as GetReencryptSharedCiphertextsNetworkGrantV10FunctionDeps, q as GetReencryptSharedCiphertextsUserGrantV10FunctionArgs, r as GetReencryptSharedCiphertextsUserGrantV10FunctionDeps, b7 as GetRelayerForwarderDeps, N as GetRotateMintX25519EncryptionKeyFunctionArgs, O as GetRotateMintX25519EncryptionKeyFunctionDeps, g as GetSelfClaimableUtxoToEncryptedBalanceClaimerFunctionArgs, h as GetSelfClaimableUtxoToEncryptedBalanceClaimerFunctionDeps, i as GetSelfClaimableUtxoToPublicBalanceClaimerFunctionArgs, j as GetSelfClaimableUtxoToPublicBalanceClaimerFunctionDeps, G as GetUmbraRelayerArgs, a as GetUmbraRelayerDeps, b8 as GetUmbraRelayerFunction, aj as GetUpdateRandomGenerationSeedFunctionArgs, ak as GetUpdateRandomGenerationSeedFunctionDeps, am as GetUpdateTokenAccountRandomGenerationSeedFunctionArgs, an as GetUpdateTokenAccountRandomGenerationSeedFunctionDeps, b9 as GetZkpClaimRelayerForwarderFunctionArgs, ba as IEphemeralUmbraClient, I as IUmbraRelayer, bb as IZkProverForClaimReceiverClaimableUtxoIntoEncryptedBalance, bc as IZkProverForClaimSelfClaimableUtxoIntoEncryptedBalance, bd as IZkProverForClaimSelfClaimableUtxoIntoPublicBalance, be as IZkProverForReceiverClaimableUtxo, bf as IZkProverForSelfClaimableUtxo, ah as IZkProverForUserRegistration, bg as IZkProverSuite, bh as PostTransactionCallback, bi as PreTransactionCallback, bj as PublicBalanceClaimRelayerForwarderFunction, U as PublicBalanceToEncryptedBalanceDirectDepositorFunction, bk as PublicBalanceToEncryptedBalanceDirectDepositorOptions, a4 as PublicBalanceToReceiverClaimableUtxoCreatorFunction, bl as PublicBalanceToReceiverClaimableUtxoCreatorOptions, a1 as PublicBalanceToSelfClaimableUtxoCreatorFunction, a7 as QueryEncryptedBalanceFunction, bm as QueryEncryptedBalanceResult, Q as QueryNetworkMxeComplianceGrantFunction, E as QueryNetworkSharedComplianceGrantFunction, aa as QueryUserAccountFunction, J as QueryUserComplianceGrantFunction, bn as ReceiverClaimableUtxoCircuitInputs, bo as ReceiverClaimableUtxoFromPublicBalanceCircuitInputs, bp as ReceiverClaimableUtxoToEncryptedBalanceClaimerFunction, u as ReencryptMxeCiphertextsNetworkGrantV10Function, x as ReencryptSharedCiphertextsNetworkGrantV10Function, R as ReencryptSharedCiphertextsUserGrantV10Function, bq as RelayerInfoResponse, P as RotateMintX25519EncryptionKeyFunction, br as SelfClaimableUtxoCircuitInputs, bs as SelfClaimableUtxoFromPublicBalanceCircuitInputs, bt as SelfClaimableUtxoToEncryptedBalanceClaimerFunction, bu as SelfClaimableUtxoToPublicBalanceClaimerFunction, bv as SimpleEncryptedBalanceClaimForwarderFunction, bw as SupportedMintsResponse, bx as TransactionCallbacks, by as TransactionResult, bz as TransactionStatus, al as UpdateRandomGenerationSeedFunction, ao as UpdateTokenAccountRandomGenerationSeedFunction, bA as UserRegistrationCallbacks, bB as UserRegistrationCircuitInputs, ai as UserRegistrationFunction, bC as UserRegistrationOptionalData, bD as UserRegistrationOptions, aB as WithdrawResult, bE as ZkProverForReceiverClaimableUtxoFromPublicBalance, bF as ZkProverForSelfClaimableUtxoFromPublicBalance, bG as ZkpClaimRelayerForwarderFunction, bH as ZkpClaimResponse } from '../index-gpTrCX61.js';
|
|
5
5
|
export { G as Groth16ProofA, u as Groth16ProofB, v as Groth16ProofC } from '../cryptography-BFSJcvi6.js';
|
|
6
6
|
import '@solana/kit';
|
|
7
7
|
import '../types-C_V_CaKK.js';
|
package/dist/solana/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { O as OnTransactionConfirmed, P as PollingBasedTransactionForwarderConfig, a as PollingBasedTransactionForwarderDeps, b as PollingTransactionForwardOptions, R as RpcBasedAccountInfoProviderConfig, c as RpcBasedBlockhashProviderConfig, d as RpcBasedBlockhashProviderDeps, e as RpcBasedEpochInfoProviderConfig, f as RpcBasedEpochInfoProviderDeps, T as TransactionConfirmedInfo, g as TransactionForwardOptions, W as WebsocketBasedTransactionForwarderConfig, h as WebsocketBasedTransactionForwarderDeps, i as createInMemorySigner, j as createSignerFromKeyPair, k as createSignerFromPrivateKeyBytes, l as createSignerFromWalletAccount, m as getPollingTransactionForwarder, n as getRpcAccountInfoProvider, o as getRpcBlockhashProvider, p as getRpcEpochInfoProvider, q as getWebsocketTransactionForwarder } from '../transaction-forwarder-
|
|
1
|
+
export { O as OnTransactionConfirmed, P as PollingBasedTransactionForwarderConfig, a as PollingBasedTransactionForwarderDeps, b as PollingTransactionForwardOptions, R as RpcBasedAccountInfoProviderConfig, c as RpcBasedBlockhashProviderConfig, d as RpcBasedBlockhashProviderDeps, e as RpcBasedEpochInfoProviderConfig, f as RpcBasedEpochInfoProviderDeps, T as TransactionConfirmedInfo, g as TransactionForwardOptions, W as WebsocketBasedTransactionForwarderConfig, h as WebsocketBasedTransactionForwarderDeps, i as createInMemorySigner, j as createSignerFromKeyPair, k as createSignerFromPrivateKeyBytes, l as createSignerFromWalletAccount, m as getPollingTransactionForwarder, n as getRpcAccountInfoProvider, o as getRpcBlockhashProvider, p as getRpcEpochInfoProvider, q as getWebsocketTransactionForwarder } from '../transaction-forwarder-DH07CEkG.cjs';
|
|
2
2
|
import { Address } from '@solana/kit';
|
|
3
3
|
import { A as AltEntry } from '../networks-yAoO8peQ.cjs';
|
|
4
|
-
import '../client-
|
|
4
|
+
import '../client-Baxe29tj.cjs';
|
|
5
5
|
import '../types-C_V_CaKK.cjs';
|
|
6
6
|
import '../cryptography-D6tPDh-Y.cjs';
|
|
7
7
|
import '../types-EKuIfxTz.cjs';
|
package/dist/solana/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { O as OnTransactionConfirmed, P as PollingBasedTransactionForwarderConfig, a as PollingBasedTransactionForwarderDeps, b as PollingTransactionForwardOptions, R as RpcBasedAccountInfoProviderConfig, c as RpcBasedBlockhashProviderConfig, d as RpcBasedBlockhashProviderDeps, e as RpcBasedEpochInfoProviderConfig, f as RpcBasedEpochInfoProviderDeps, T as TransactionConfirmedInfo, g as TransactionForwardOptions, W as WebsocketBasedTransactionForwarderConfig, h as WebsocketBasedTransactionForwarderDeps, i as createInMemorySigner, j as createSignerFromKeyPair, k as createSignerFromPrivateKeyBytes, l as createSignerFromWalletAccount, m as getPollingTransactionForwarder, n as getRpcAccountInfoProvider, o as getRpcBlockhashProvider, p as getRpcEpochInfoProvider, q as getWebsocketTransactionForwarder } from '../transaction-forwarder-
|
|
1
|
+
export { O as OnTransactionConfirmed, P as PollingBasedTransactionForwarderConfig, a as PollingBasedTransactionForwarderDeps, b as PollingTransactionForwardOptions, R as RpcBasedAccountInfoProviderConfig, c as RpcBasedBlockhashProviderConfig, d as RpcBasedBlockhashProviderDeps, e as RpcBasedEpochInfoProviderConfig, f as RpcBasedEpochInfoProviderDeps, T as TransactionConfirmedInfo, g as TransactionForwardOptions, W as WebsocketBasedTransactionForwarderConfig, h as WebsocketBasedTransactionForwarderDeps, i as createInMemorySigner, j as createSignerFromKeyPair, k as createSignerFromPrivateKeyBytes, l as createSignerFromWalletAccount, m as getPollingTransactionForwarder, n as getRpcAccountInfoProvider, o as getRpcBlockhashProvider, p as getRpcEpochInfoProvider, q as getWebsocketTransactionForwarder } from '../transaction-forwarder-Cv3OlsaZ.js';
|
|
2
2
|
import { Address } from '@solana/kit';
|
|
3
3
|
import { A as AltEntry } from '../networks-RMd3abPE.js';
|
|
4
|
-
import '../client-
|
|
4
|
+
import '../client-Cqv_5hHQ.js';
|
|
5
5
|
import '../types-C_V_CaKK.js';
|
|
6
6
|
import '../cryptography-BFSJcvi6.js';
|
|
7
7
|
import '../types-CxfTIpN9.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AccountInfoProviderFunction, C as CreateSolanaRpcFunction, G as GetLatestBlockhash, a as GetEpochInfo, I as IUmbraSigner, b as CreateSolanaRpcSubscriptionsFunction, S as SendAndConfirmTransactionFactoryFunction, T as TransactionForwarder } from './client-
|
|
1
|
+
import { A as AccountInfoProviderFunction, C as CreateSolanaRpcFunction, G as GetLatestBlockhash, a as GetEpochInfo, I as IUmbraSigner, b as CreateSolanaRpcSubscriptionsFunction, S as SendAndConfirmTransactionFactoryFunction, T as TransactionForwarder } from './client-Cqv_5hHQ.js';
|
|
2
2
|
import { KeyPairSigner, Commitment } from '@solana/kit';
|
|
3
3
|
import { Wallet, WalletAccount } from '@wallet-standard/core';
|
|
4
4
|
import { T as TransactionSignature } from './types-CxfTIpN9.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AccountInfoProviderFunction, C as CreateSolanaRpcFunction, G as GetLatestBlockhash, a as GetEpochInfo, I as IUmbraSigner, b as CreateSolanaRpcSubscriptionsFunction, S as SendAndConfirmTransactionFactoryFunction, T as TransactionForwarder } from './client-
|
|
1
|
+
import { A as AccountInfoProviderFunction, C as CreateSolanaRpcFunction, G as GetLatestBlockhash, a as GetEpochInfo, I as IUmbraSigner, b as CreateSolanaRpcSubscriptionsFunction, S as SendAndConfirmTransactionFactoryFunction, T as TransactionForwarder } from './client-Baxe29tj.cjs';
|
|
2
2
|
import { KeyPairSigner, Commitment } from '@solana/kit';
|
|
3
3
|
import { Wallet, WalletAccount } from '@wallet-standard/core';
|
|
4
4
|
import { T as TransactionSignature } from './types-EKuIfxTz.cjs';
|