@aztec/archiver 4.0.0-nightly.20260113 → 4.0.0-nightly.20260114
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/README.md +139 -22
- package/dest/archiver/archive_source_base.d.ts +75 -0
- package/dest/archiver/archive_source_base.d.ts.map +1 -0
- package/dest/archiver/archive_source_base.js +202 -0
- package/dest/archiver/archiver.d.ts +28 -167
- package/dest/archiver/archiver.d.ts.map +1 -1
- package/dest/archiver/archiver.js +46 -601
- package/dest/archiver/archiver_store_updates.d.ts +38 -0
- package/dest/archiver/archiver_store_updates.d.ts.map +1 -0
- package/dest/archiver/archiver_store_updates.js +212 -0
- package/dest/archiver/index.d.ts +3 -2
- package/dest/archiver/index.d.ts.map +1 -1
- package/dest/archiver/index.js +2 -0
- package/dest/archiver/kv_archiver_store/block_store.d.ts +1 -1
- package/dest/archiver/kv_archiver_store/block_store.js +1 -1
- package/dest/archiver/kv_archiver_store/contract_class_store.d.ts +1 -1
- package/dest/archiver/kv_archiver_store/contract_class_store.js +1 -1
- package/dest/archiver/kv_archiver_store/contract_instance_store.d.ts +1 -1
- package/dest/archiver/kv_archiver_store/contract_instance_store.js +1 -1
- package/dest/archiver/kv_archiver_store/kv_archiver_store.d.ts +169 -9
- package/dest/archiver/kv_archiver_store/kv_archiver_store.d.ts.map +1 -1
- package/dest/archiver/kv_archiver_store/kv_archiver_store.js +157 -49
- package/dest/archiver/l1/data_retrieval.d.ts +9 -11
- package/dest/archiver/l1/data_retrieval.d.ts.map +1 -1
- package/dest/archiver/l1/data_retrieval.js +32 -51
- package/dest/archiver/test/fake_l1_state.d.ts +173 -0
- package/dest/archiver/test/fake_l1_state.d.ts.map +1 -0
- package/dest/archiver/test/fake_l1_state.js +364 -0
- package/package.json +13 -13
- package/src/archiver/archive_source_base.ts +339 -0
- package/src/archiver/archiver.ts +62 -808
- package/src/archiver/archiver_store_updates.ts +321 -0
- package/src/archiver/index.ts +2 -1
- package/src/archiver/kv_archiver_store/block_store.ts +1 -1
- package/src/archiver/kv_archiver_store/contract_class_store.ts +1 -1
- package/src/archiver/kv_archiver_store/contract_instance_store.ts +1 -1
- package/src/archiver/kv_archiver_store/kv_archiver_store.ts +170 -8
- package/src/archiver/l1/data_retrieval.ts +51 -68
- package/src/archiver/test/fake_l1_state.ts +561 -0
- package/dest/archiver/archiver_store.d.ts +0 -315
- package/dest/archiver/archiver_store.d.ts.map +0 -1
- package/dest/archiver/archiver_store.js +0 -4
- package/dest/archiver/archiver_store_test_suite.d.ts +0 -8
- package/dest/archiver/archiver_store_test_suite.d.ts.map +0 -1
- package/dest/archiver/archiver_store_test_suite.js +0 -2770
- package/src/archiver/archiver_store.ts +0 -380
- package/src/archiver/archiver_store_test_suite.ts +0 -2842
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import type { L1BlockId } from '@aztec/ethereum/l1-types';
|
|
2
|
-
import type { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
|
|
3
|
-
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
4
|
-
import type { CustomRange } from '@aztec/kv-store';
|
|
5
|
-
import type { FunctionSelector } from '@aztec/stdlib/abi';
|
|
6
|
-
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
7
|
-
import type { CheckpointedL2Block, L2BlockNew, ValidateCheckpointResult } from '@aztec/stdlib/block';
|
|
8
|
-
import type { PublishedCheckpoint } from '@aztec/stdlib/checkpoint';
|
|
9
|
-
import type {
|
|
10
|
-
ContractClassPublic,
|
|
11
|
-
ContractInstanceUpdateWithAddress,
|
|
12
|
-
ContractInstanceWithAddress,
|
|
13
|
-
ExecutablePrivateFunctionWithMembershipProof,
|
|
14
|
-
UtilityFunctionWithMembershipProof,
|
|
15
|
-
} from '@aztec/stdlib/contract';
|
|
16
|
-
import type { GetContractClassLogsResponse, GetPublicLogsResponse } from '@aztec/stdlib/interfaces/client';
|
|
17
|
-
import type { LogFilter, SiloedTag, Tag, TxScopedL2Log } from '@aztec/stdlib/logs';
|
|
18
|
-
import { BlockHeader, type IndexedTxEffect, type TxHash, type TxReceipt } from '@aztec/stdlib/tx';
|
|
19
|
-
import type { UInt64 } from '@aztec/stdlib/types';
|
|
20
|
-
|
|
21
|
-
import type { CheckpointData } from './kv_archiver_store/block_store.js';
|
|
22
|
-
import type { InboxMessage } from './structs/inbox_message.js';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Represents the latest L1 block processed by the archiver for various objects in L2.
|
|
26
|
-
*/
|
|
27
|
-
export type ArchiverL1SynchPoint = {
|
|
28
|
-
/** Number of the last L1 block that added a new L2 checkpoint metadata. */
|
|
29
|
-
blocksSynchedTo?: bigint;
|
|
30
|
-
/** Last L1 block checked for L1 to L2 messages. */
|
|
31
|
-
messagesSynchedTo?: L1BlockId;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Interface describing a data store to be used by the archiver to store all its relevant data
|
|
36
|
-
* (blocks, encrypted logs, aztec contract data extended contract data).
|
|
37
|
-
*/
|
|
38
|
-
export interface ArchiverDataStore {
|
|
39
|
-
/** Opens a new transaction to the underlying store and runs all operations within it. */
|
|
40
|
-
transactionAsync<T>(callback: () => Promise<T>): Promise<T>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Append new blocks to the store's list.
|
|
44
|
-
* @param blocks - The L2 blocks to be added to the store and the last processed L1 block.
|
|
45
|
-
* @param opts - Options for the operation.
|
|
46
|
-
* @param opts.force - If true, the blocks will be added even if they have gaps.
|
|
47
|
-
* @returns True if the operation is successful.
|
|
48
|
-
*/
|
|
49
|
-
addBlocks(blocks: L2BlockNew[], opts?: { force?: boolean }): Promise<boolean>;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Appends new checkpoints, and their blocks to the store's collection
|
|
53
|
-
* @param checkpoints The collectionn of checkpoints to be added
|
|
54
|
-
* @returns True if the operation is successful
|
|
55
|
-
*/
|
|
56
|
-
addCheckpoints(checkpoints: PublishedCheckpoint[]): Promise<boolean>;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Retrieves all blocks for the requested chackpoint
|
|
60
|
-
* @param checkpointNumber Retreieves all blocks for the given checkpoint
|
|
61
|
-
* @returns The collection of blocks for the requested checkpoint if available (undefined otherwise)
|
|
62
|
-
*/
|
|
63
|
-
getBlocksForCheckpoint(checkpointNumber: CheckpointNumber): Promise<L2BlockNew[] | undefined>;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Returns an array of checkpoint objects
|
|
67
|
-
* @param from The first checkpoint number to be retrieved
|
|
68
|
-
* @param limit The maximum number of chackpoints to retrieve
|
|
69
|
-
* @returns The array of requested checkpoint data objects
|
|
70
|
-
*/
|
|
71
|
-
getRangeOfCheckpoints(from: CheckpointNumber, limit: number): Promise<CheckpointData[]>;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Unwinds checkpoints from the database
|
|
75
|
-
* @param from - The tip of the chain, passed for verification purposes,
|
|
76
|
-
* ensuring that we don't end up deleting something we did not intend
|
|
77
|
-
* @param checkpointsToUnwind - The number of checkpoints we are to unwind
|
|
78
|
-
* @returns True if the operation is successful
|
|
79
|
-
*/
|
|
80
|
-
unwindCheckpoints(from: CheckpointNumber, checkpointsToUnwind: number): Promise<boolean>;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Returns the block for the given number, or undefined if not exists.
|
|
84
|
-
* @param number - The block number to return.
|
|
85
|
-
*/
|
|
86
|
-
getCheckpointedBlock(number: number): Promise<CheckpointedL2Block | undefined>;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Gets up to `limit` amount of checkpointed L2 blocks starting from `from`.
|
|
90
|
-
* @param from - Number of the first block to return (inclusive).
|
|
91
|
-
* @param limit - The number of blocks to return.
|
|
92
|
-
* @returns The requested checkpointed L2 blocks.
|
|
93
|
-
*/
|
|
94
|
-
getCheckpointedBlocks(from: number, limit: number): Promise<CheckpointedL2Block[]>;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Returns the block for the given hash, or undefined if not exists.
|
|
98
|
-
* @param blockHash - The block hash to return.
|
|
99
|
-
*/
|
|
100
|
-
getCheckpointedBlockByHash(blockHash: Fr): Promise<CheckpointedL2Block | undefined>;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Returns the block for the given archive root, or undefined if not exists.
|
|
104
|
-
* @param archive - The archive root to return.
|
|
105
|
-
*/
|
|
106
|
-
getCheckpointedBlockByArchive(archive: Fr): Promise<CheckpointedL2Block | undefined>;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Returns checkpoint data for the requested checkpoint number
|
|
110
|
-
* @param checkpointNumber - The checkpoint requested
|
|
111
|
-
* @returns The checkpoint data or undefined if not found
|
|
112
|
-
*/
|
|
113
|
-
getCheckpointData(checkpointNumber: CheckpointNumber): Promise<CheckpointData | undefined>;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Returns the number of the latest block
|
|
117
|
-
* @returns The number of the latest block
|
|
118
|
-
*/
|
|
119
|
-
getLatestBlockNumber(): Promise<BlockNumber>;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Returns the block for the given number, or undefined if not exists.
|
|
123
|
-
* @param number - The block number to return.
|
|
124
|
-
*/
|
|
125
|
-
getBlock(number: number): Promise<L2BlockNew | undefined>;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Returns the block for the given hash, or undefined if not exists.
|
|
129
|
-
* @param blockHash - The block hash to return.
|
|
130
|
-
*/
|
|
131
|
-
getBlockByHash(blockHash: Fr): Promise<L2BlockNew | undefined>;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Returns the block for the given archive root, or undefined if not exists.
|
|
135
|
-
* @param archive - The archive root to return.
|
|
136
|
-
*/
|
|
137
|
-
getBlockByArchive(archive: Fr): Promise<L2BlockNew | undefined>;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Gets up to `limit` amount of published L2 blocks starting from `from`.
|
|
141
|
-
* @param from - Number of the first block to return (inclusive).
|
|
142
|
-
* @param limit - The number of blocks to return.
|
|
143
|
-
* @returns The requested L2 blocks.
|
|
144
|
-
*/
|
|
145
|
-
getBlocks(from: number, limit: number): Promise<L2BlockNew[]>;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Gets up to `limit` amount of L2 block headers starting from `from`.
|
|
149
|
-
* @param from - Number of the first block to return (inclusive).
|
|
150
|
-
* @param limit - The number of blocks to return.
|
|
151
|
-
* @returns The requested L2 block headers.
|
|
152
|
-
*/
|
|
153
|
-
getBlockHeaders(from: BlockNumber, limit: number): Promise<BlockHeader[]>;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Returns the block header for the given hash, or undefined if not exists.
|
|
157
|
-
* @param blockHash - The block hash to return.
|
|
158
|
-
*/
|
|
159
|
-
getBlockHeaderByHash(blockHash: Fr): Promise<BlockHeader | undefined>;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Returns the block header for the given archive root, or undefined if not exists.
|
|
163
|
-
* @param archive - The archive root to return.
|
|
164
|
-
*/
|
|
165
|
-
getBlockHeaderByArchive(archive: Fr): Promise<BlockHeader | undefined>;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Gets a tx effect.
|
|
169
|
-
* @param txHash - The hash of the tx corresponding to the tx effect.
|
|
170
|
-
* @returns The requested tx effect with block info (or undefined if not found).
|
|
171
|
-
*/
|
|
172
|
-
getTxEffect(txHash: TxHash): Promise<IndexedTxEffect | undefined>;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Gets a receipt of a settled tx.
|
|
176
|
-
* @param txHash - The hash of a tx we try to get the receipt for.
|
|
177
|
-
* @returns The requested tx receipt (or undefined if not found).
|
|
178
|
-
*/
|
|
179
|
-
getSettledTxReceipt(txHash: TxHash): Promise<TxReceipt | undefined>;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Append new logs to the store's list.
|
|
183
|
-
* @param blocks - The blocks for which to add the logs.
|
|
184
|
-
* @returns True if the operation is successful.
|
|
185
|
-
*/
|
|
186
|
-
addLogs(blocks: L2BlockNew[]): Promise<boolean>;
|
|
187
|
-
deleteLogs(blocks: L2BlockNew[]): Promise<boolean>;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Append L1 to L2 messages to the store.
|
|
191
|
-
* @param messages - The L1 to L2 messages to be added to the store.
|
|
192
|
-
* @returns True if the operation is successful.
|
|
193
|
-
*/
|
|
194
|
-
addL1ToL2Messages(messages: InboxMessage[]): Promise<void>;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Gets L1 to L2 message (to be) included in a given checkpoint.
|
|
198
|
-
* @param checkpointNumber - Checkpoint number to get messages for.
|
|
199
|
-
* @returns The L1 to L2 messages/leaves of the messages subtree (throws if not found).
|
|
200
|
-
*/
|
|
201
|
-
getL1ToL2Messages(checkpointNumber: CheckpointNumber): Promise<Fr[]>;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Gets the L1 to L2 message index in the L1 to L2 message tree.
|
|
205
|
-
* @param l1ToL2Message - The L1 to L2 message.
|
|
206
|
-
* @returns The index of the L1 to L2 message in the L1 to L2 message tree (undefined if not found).
|
|
207
|
-
*/
|
|
208
|
-
getL1ToL2MessageIndex(l1ToL2Message: Fr): Promise<bigint | undefined>;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Get the total number of L1 to L2 messages
|
|
212
|
-
* @returns The number of L1 to L2 messages in the store
|
|
213
|
-
*/
|
|
214
|
-
getTotalL1ToL2MessageCount(): Promise<bigint>;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
/**
|
|
218
|
-
* Gets all private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
|
|
219
|
-
* array implies no logs match that tag.
|
|
220
|
-
*/
|
|
221
|
-
getPrivateLogsByTags(tags: SiloedTag[]): Promise<TxScopedL2Log[][]>;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Gets all public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
|
|
225
|
-
* logs is returned. An empty array implies no logs match that tag.
|
|
226
|
-
*/
|
|
227
|
-
getPublicLogsByTagsFromContract(contractAddress: AztecAddress, tags: Tag[]): Promise<TxScopedL2Log[][]>;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Gets public logs based on the provided filter.
|
|
231
|
-
* @param filter - The filter to apply to the logs.
|
|
232
|
-
* @returns The requested logs.
|
|
233
|
-
*/
|
|
234
|
-
getPublicLogs(filter: LogFilter): Promise<GetPublicLogsResponse>;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Gets contract class logs based on the provided filter.
|
|
238
|
-
* @param filter - The filter to apply to the logs.
|
|
239
|
-
* @returns The requested logs.
|
|
240
|
-
*/
|
|
241
|
-
getContractClassLogs(filter: LogFilter): Promise<GetContractClassLogsResponse>;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Gets the number of the latest L2 block processed.
|
|
245
|
-
* @returns The number of the latest L2 block processed.
|
|
246
|
-
*/
|
|
247
|
-
getCheckpointedL2BlockNumber(): Promise<BlockNumber>;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Gets the number of the latest published checkpoint processed.
|
|
251
|
-
* @returns The number of the latest published checkpoint processed
|
|
252
|
-
*/
|
|
253
|
-
getSynchedCheckpointNumber(): Promise<CheckpointNumber>;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Gets the number of the latest proven checkpoint processed.
|
|
257
|
-
* @returns The number of the latest proven checkpoint processed.
|
|
258
|
-
*/
|
|
259
|
-
getProvenCheckpointNumber(): Promise<CheckpointNumber>;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Returns the number of the most recent proven block
|
|
263
|
-
* @returns The number of the most recent proven block
|
|
264
|
-
*/
|
|
265
|
-
getProvenBlockNumber(): Promise<BlockNumber>;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Stores the number of the latest proven checkpoint processed.
|
|
269
|
-
* @param checkpointNumber - The number of the latest proven checkpoint processed.
|
|
270
|
-
*/
|
|
271
|
-
setProvenCheckpointNumber(checkpointNumber: CheckpointNumber): Promise<void>;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Stores the l1 block number that checkpoints have been synched until
|
|
275
|
-
* @param l1BlockNumber - The l1 block number
|
|
276
|
-
*/
|
|
277
|
-
setCheckpointSynchedL1BlockNumber(l1BlockNumber: bigint): Promise<void>;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Stores the l1 block that messages have been synched until
|
|
281
|
-
*/
|
|
282
|
-
setMessageSynchedL1Block(l1Block: L1BlockId): Promise<void>;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Gets the synch point of the archiver
|
|
286
|
-
*/
|
|
287
|
-
getSynchPoint(): Promise<ArchiverL1SynchPoint>;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Add new contract classes from an L2 block to the store's list.
|
|
291
|
-
* @param data - List of contract classes to be added.
|
|
292
|
-
* @param blockNumber - Number of the L2 block the contracts were registered in.
|
|
293
|
-
* @returns True if the operation is successful.
|
|
294
|
-
*/
|
|
295
|
-
addContractClasses(
|
|
296
|
-
data: ContractClassPublic[],
|
|
297
|
-
bytecodeCommitments: Fr[],
|
|
298
|
-
blockNumber: BlockNumber,
|
|
299
|
-
): Promise<boolean>;
|
|
300
|
-
|
|
301
|
-
deleteContractClasses(data: ContractClassPublic[], blockNumber: BlockNumber): Promise<boolean>;
|
|
302
|
-
|
|
303
|
-
getBytecodeCommitment(contractClassId: Fr): Promise<Fr | undefined>;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Returns a contract class given its id, or undefined if not exists.
|
|
307
|
-
* @param id - Id of the contract class.
|
|
308
|
-
*/
|
|
309
|
-
getContractClass(id: Fr): Promise<ContractClassPublic | undefined>;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Add new contract instances from an L2 block to the store's list.
|
|
313
|
-
* @param data - List of contract instances to be added.
|
|
314
|
-
* @param blockNumber - Number of the L2 block the instances were deployed in.
|
|
315
|
-
* @returns True if the operation is successful.
|
|
316
|
-
*/
|
|
317
|
-
addContractInstances(data: ContractInstanceWithAddress[], blockNumber: BlockNumber): Promise<boolean>;
|
|
318
|
-
deleteContractInstances(data: ContractInstanceWithAddress[], blockNumber: BlockNumber): Promise<boolean>;
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Add new contract instance updates
|
|
322
|
-
* @param data - List of contract updates to be added.
|
|
323
|
-
* @param timestamp - Timestamp at which the updates were scheduled.
|
|
324
|
-
* @returns True if the operation is successful.
|
|
325
|
-
*/
|
|
326
|
-
addContractInstanceUpdates(data: ContractInstanceUpdateWithAddress[], timestamp: UInt64): Promise<boolean>;
|
|
327
|
-
deleteContractInstanceUpdates(data: ContractInstanceUpdateWithAddress[], timestamp: UInt64): Promise<boolean>;
|
|
328
|
-
/**
|
|
329
|
-
* Adds private functions to a contract class.
|
|
330
|
-
*/
|
|
331
|
-
addFunctions(
|
|
332
|
-
contractClassId: Fr,
|
|
333
|
-
privateFunctions: ExecutablePrivateFunctionWithMembershipProof[],
|
|
334
|
-
utilityFunctions: UtilityFunctionWithMembershipProof[],
|
|
335
|
-
): Promise<boolean>;
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Returns a contract instance given its address and the given timestamp, or undefined if not exists.
|
|
339
|
-
* @param address - Address of the contract.
|
|
340
|
-
* @param timestamp - Timestamp to get the contract instance at. Contract updates might change the instance.
|
|
341
|
-
* @returns The contract instance or undefined if not found.
|
|
342
|
-
*/
|
|
343
|
-
getContractInstance(address: AztecAddress, timestamp: UInt64): Promise<ContractInstanceWithAddress | undefined>;
|
|
344
|
-
|
|
345
|
-
/** Returns the list of all class ids known by the archiver. */
|
|
346
|
-
getContractClassIds(): Promise<Fr[]>;
|
|
347
|
-
|
|
348
|
-
/** Register a public function signature, so it can be looked up by selector. */
|
|
349
|
-
registerContractFunctionSignatures(signatures: string[]): Promise<void>;
|
|
350
|
-
|
|
351
|
-
/** Looks up a public function name given a selector. */
|
|
352
|
-
getDebugFunctionName(address: AztecAddress, selector: FunctionSelector): Promise<string | undefined>;
|
|
353
|
-
|
|
354
|
-
/** Estimates the size of the store in bytes. */
|
|
355
|
-
estimateSize(): Promise<{ mappingSize: number; physicalFileSize: number; actualSize: number; numItems: number }>;
|
|
356
|
-
|
|
357
|
-
/** Backups the archiver db to the target folder. Returns the path to the db file. */
|
|
358
|
-
backupTo(path: string): Promise<string>;
|
|
359
|
-
|
|
360
|
-
/** Closes the underlying data store. */
|
|
361
|
-
close(): Promise<void>;
|
|
362
|
-
|
|
363
|
-
/** Deletes all L1 to L2 messages up until (excluding) the target checkpoint number. */
|
|
364
|
-
rollbackL1ToL2MessagesToCheckpoint(targetCheckpointNumber: CheckpointNumber): Promise<void>;
|
|
365
|
-
|
|
366
|
-
/** Returns an async iterator to all L1 to L2 messages on the range. */
|
|
367
|
-
iterateL1ToL2Messages(range?: CustomRange<bigint>): AsyncIterableIterator<InboxMessage>;
|
|
368
|
-
|
|
369
|
-
/** Removes all L1 to L2 messages starting from the given index (inclusive). */
|
|
370
|
-
removeL1ToL2Messages(startIndex: bigint): Promise<void>;
|
|
371
|
-
|
|
372
|
-
/** Returns the last L1 to L2 message stored. */
|
|
373
|
-
getLastL1ToL2Message(): Promise<InboxMessage | undefined>;
|
|
374
|
-
|
|
375
|
-
/** Returns the last synced validation status of the pending chain. */
|
|
376
|
-
getPendingChainValidationStatus(): Promise<ValidateCheckpointResult | undefined>;
|
|
377
|
-
|
|
378
|
-
/** Sets the last synced validation status of the pending chain. */
|
|
379
|
-
setPendingChainValidationStatus(status: ValidateCheckpointResult | undefined): Promise<void>;
|
|
380
|
-
}
|