@aztec/txe 0.66.0 → 0.67.1-devnet

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/dest/bin/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env -S node --no-warnings
2
- import { createDebugLogger } from '@aztec/aztec.js';
2
+ import { createLogger } from '@aztec/aztec.js';
3
3
  import { startHttpRpcServer } from '@aztec/foundation/json-rpc/server';
4
4
  import { createTXERpcServer } from '../index.js';
5
5
  /**
@@ -7,7 +7,7 @@ import { createTXERpcServer } from '../index.js';
7
7
  */
8
8
  async function main() {
9
9
  const { TXE_PORT = 8080 } = process.env;
10
- const logger = createDebugLogger('aztec:txe_service');
10
+ const logger = createLogger('txe:service');
11
11
  logger.info(`Setting up TXE...`);
12
12
  const txeServer = createTXERpcServer(logger);
13
13
  const { port } = await startHttpRpcServer(txeServer, {
@@ -21,4 +21,4 @@ main().catch(err => {
21
21
  console.error(err);
22
22
  process.exit(1);
23
23
  });
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYmluL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUNwRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUV2RSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFakQ7O0dBRUc7QUFDSCxLQUFLLFVBQVUsSUFBSTtJQUNqQixNQUFNLEVBQUUsUUFBUSxHQUFHLElBQUksRUFBRSxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUM7SUFFeEMsTUFBTSxNQUFNLEdBQUcsaUJBQWlCLENBQU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sR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDO0lBRXhDLE1BQU0sTUFBTSxHQUFHLFlBQVksQ0FBQyxhQUFhLENBQUMsQ0FBQztJQUMzQyxNQUFNLENBQUMsSUFBSSxDQUFDLG1CQUFtQixDQUFDLENBQUM7SUFFakMsTUFBTSxTQUFTLEdBQUcsa0JBQWtCLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDN0MsTUFBTSxFQUFFLElBQUksRUFBRSxHQUFHLE1BQU0sa0JBQWtCLENBQUMsU0FBUyxFQUFFO1FBQ25ELElBQUksRUFBRSxRQUFRO1FBQ2QsU0FBUyxFQUFFLEdBQUcsR0FBRyxFQUFFLEdBQUcsQ0FBQztLQUN4QixDQUFDLENBQUM7SUFFSCxNQUFNLENBQUMsSUFBSSxDQUFDLHlCQUF5QixJQUFJLEVBQUUsQ0FBQyxDQUFDO0FBQy9DLENBQUM7QUFFRCxJQUFJLEVBQUUsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLEVBQUU7SUFDakIsc0NBQXNDO0lBQ3RDLE9BQU8sQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDbkIsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUNsQixDQUFDLENBQUMsQ0FBQyJ9
@@ -0,0 +1,349 @@
1
+ import { type ContractArtifact } from '@aztec/aztec.js';
2
+ import { type AztecNode, type EpochProofQuote, type GetUnencryptedLogsResponse, type InBlock, type L2Block, type L2BlockNumber, type L2Tips, type LogFilter, type MerkleTreeId, type NullifierMembershipWitness, type ProverConfig, type PublicDataWitness, type PublicSimulationOutput, type SequencerConfig, type SiblingPath, type Tx, type TxEffect, TxHash, type TxReceipt, TxScopedL2Log, type UnencryptedL2Log } from '@aztec/circuit-types';
3
+ import { type ARCHIVE_HEIGHT, type AztecAddress, type BlockHeader, type ContractClassPublic, type ContractInstanceWithAddress, type GasFees, type L1_TO_L2_MSG_TREE_HEIGHT, type NOTE_HASH_TREE_HEIGHT, type NULLIFIER_TREE_HEIGHT, type NodeInfo, type PUBLIC_DATA_TREE_HEIGHT, type PrivateLog, type ProtocolContractAddresses } from '@aztec/circuits.js';
4
+ import { type L1ContractAddresses } from '@aztec/ethereum';
5
+ import { Fr } from '@aztec/foundation/fields';
6
+ export declare class TXENode implements AztecNode {
7
+ #private;
8
+ constructor(blockNumber: number);
9
+ /**
10
+ * Fetches the current block number.
11
+ * @returns The block number.
12
+ */
13
+ getBlockNumber(): Promise<number>;
14
+ /**
15
+ * Sets the current block number of the node.
16
+ * @param - The block number to set.
17
+ */
18
+ setBlockNumber(blockNumber: number): void;
19
+ /**
20
+ * Get a tx effect.
21
+ * @param txHash - The hash of a transaction which resulted in the returned tx effect.
22
+ * @returns The requested tx effect.
23
+ */
24
+ getTxEffect(txHash: TxHash): Promise<InBlock<TxEffect> | undefined>;
25
+ /**
26
+ * Sets a tx effect for a given block number.
27
+ * @param blockNumber - The block number that this tx effect resides.
28
+ * @param txHash - The transaction hash of the transaction.
29
+ * @param effect - The tx effect to set.
30
+ */
31
+ setTxEffect(blockNumber: number, txHash: TxHash, effect: TxEffect): void;
32
+ /**
33
+ * Returns the indexes of the given nullifiers in the nullifier tree,
34
+ * scoped to the block they were included in.
35
+ * @param blockNumber - The block number at which to get the data.
36
+ * @param nullifiers - The nullifiers to search for.
37
+ * @returns The block scoped indexes of the given nullifiers in the nullifier tree, or undefined if not found.
38
+ */
39
+ findNullifiersIndexesWithBlock(blockNumber: L2BlockNumber, nullifiers: Fr[]): Promise<(InBlock<bigint> | undefined)[]>;
40
+ /**
41
+ * Returns the indexes of the given nullifiers in the nullifier tree,
42
+ * scoped to the block they were included in.
43
+ * @param blockNumber - The block number at which to get the data.
44
+ * @param nullifiers - The nullifiers to search for.
45
+ * @returns The block scoped indexes of the given nullifiers in the nullifier tree, or undefined if not found.
46
+ */
47
+ setNullifiersIndexesWithBlock(blockNumber: number, nullifiers: Fr[]): void;
48
+ /**
49
+ * Adds note logs to the txe node, given a block
50
+ * @param blockNumber - The block number at which to add the note logs.
51
+ * @param privateLogs - The privateLogs that contain the note logs to be added.
52
+ */
53
+ addNoteLogsByTags(blockNumber: number, privateLogs: PrivateLog[]): void;
54
+ /**
55
+ * Adds public logs to the txe node, given a block
56
+ * @param blockNumber - The block number at which to add the public logs.
57
+ * @param privateLogs - The unencrypted logs to be added.
58
+ */
59
+ addPublicLogsByTags(blockNumber: number, unencryptedLogs: UnencryptedL2Log[]): void;
60
+ /**
61
+ * Gets all logs that match any of the received tags (i.e. logs with their first field equal to a tag).
62
+ * @param tags - The tags to filter the logs by.
63
+ * @returns For each received tag, an array of matching logs and metadata (e.g. tx hash) is returned. An empty
64
+ array implies no logs match that tag.
65
+ */
66
+ getLogsByTags(tags: Fr[]): Promise<TxScopedL2Log[][]>;
67
+ /**
68
+ * Returns the tips of the L2 chain.
69
+ */
70
+ getL2Tips(): Promise<L2Tips>;
71
+ /**
72
+ * Find the indexes of the given leaves in the given tree.
73
+ * @param blockNumber - The block number at which to get the data or 'latest' for latest data
74
+ * @param treeId - The tree to search in.
75
+ * @param leafValue - The values to search for
76
+ * @returns The indexes of the given leaves in the given tree or undefined if not found.
77
+ */
78
+ findLeavesIndexes(_blockNumber: L2BlockNumber, _treeId: MerkleTreeId, _leafValues: Fr[]): Promise<(bigint | undefined)[]>;
79
+ /**
80
+ * Returns a sibling path for the given index in the nullifier tree.
81
+ * @param blockNumber - The block number at which to get the data.
82
+ * @param leafIndex - The index of the leaf for which the sibling path is required.
83
+ * @returns The sibling path for the leaf index.
84
+ */
85
+ getNullifierSiblingPath(_blockNumber: L2BlockNumber, _leafIndex: bigint): Promise<SiblingPath<typeof NULLIFIER_TREE_HEIGHT>>;
86
+ /**
87
+ * Returns a sibling path for the given index in the note hash tree.
88
+ * @param blockNumber - The block number at which to get the data.
89
+ * @param leafIndex - The index of the leaf for which the sibling path is required.
90
+ * @returns The sibling path for the leaf index.
91
+ */
92
+ getNoteHashSiblingPath(_blockNumber: L2BlockNumber, _leafIndex: bigint): Promise<SiblingPath<typeof NOTE_HASH_TREE_HEIGHT>>;
93
+ /**
94
+ * Returns the index and a sibling path for a leaf in the committed l1 to l2 data tree.
95
+ * @param blockNumber - The block number at which to get the data.
96
+ * @param l1ToL2Message - The l1ToL2Message to get the index / sibling path for.
97
+ * @returns A tuple of the index and the sibling path of the L1ToL2Message (undefined if not found).
98
+ */
99
+ getL1ToL2MessageMembershipWitness(_blockNumber: L2BlockNumber, _l1ToL2Message: Fr): Promise<[bigint, SiblingPath<typeof L1_TO_L2_MSG_TREE_HEIGHT>] | undefined>;
100
+ /**
101
+ * Returns whether an L1 to L2 message is synced by archiver and if it's ready to be included in a block.
102
+ * @param l1ToL2Message - The L1 to L2 message to check.
103
+ * @returns Whether the message is synced and ready to be included in a block.
104
+ */
105
+ isL1ToL2MessageSynced(_l1ToL2Message: Fr): Promise<boolean>;
106
+ /**
107
+ * Returns a membership witness of an l2ToL1Message in an ephemeral l2 to l1 message tree.
108
+ * @dev Membership witness is a consists of the index and the sibling path of the l2ToL1Message.
109
+ * @remarks This tree is considered ephemeral because it is created on-demand by: taking all the l2ToL1 messages
110
+ * in a single block, and then using them to make a variable depth append-only tree with these messages as leaves.
111
+ * The tree is discarded immediately after calculating what we need from it.
112
+ * @param blockNumber - The block number at which to get the data.
113
+ * @param l2ToL1Message - The l2ToL1Message to get the membership witness for.
114
+ * @returns A tuple of the index and the sibling path of the L2ToL1Message.
115
+ */
116
+ getL2ToL1MessageMembershipWitness(_blockNumber: L2BlockNumber, _l2ToL1Message: Fr): Promise<[bigint, SiblingPath<number>]>;
117
+ /**
118
+ * Returns a sibling path for a leaf in the committed historic blocks tree.
119
+ * @param blockNumber - The block number at which to get the data.
120
+ * @param leafIndex - Index of the leaf in the tree.
121
+ * @returns The sibling path.
122
+ */
123
+ getArchiveSiblingPath(_blockNumber: L2BlockNumber, _leafIndex: bigint): Promise<SiblingPath<typeof ARCHIVE_HEIGHT>>;
124
+ /**
125
+ * Returns a sibling path for a leaf in the committed public data tree.
126
+ * @param blockNumber - The block number at which to get the data.
127
+ * @param leafIndex - Index of the leaf in the tree.
128
+ * @returns The sibling path.
129
+ */
130
+ getPublicDataSiblingPath(_blockNumber: L2BlockNumber, _leafIndex: bigint): Promise<SiblingPath<typeof PUBLIC_DATA_TREE_HEIGHT>>;
131
+ /**
132
+ * Returns a nullifier membership witness for a given nullifier at a given block.
133
+ * @param blockNumber - The block number at which to get the data.
134
+ * @param nullifier - Nullifier we try to find witness for.
135
+ * @returns The nullifier membership witness (if found).
136
+ */
137
+ getNullifierMembershipWitness(_blockNumber: L2BlockNumber, _nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
138
+ /**
139
+ * Returns a low nullifier membership witness for a given nullifier at a given block.
140
+ * @param blockNumber - The block number at which to get the data.
141
+ * @param nullifier - Nullifier we try to find the low nullifier witness for.
142
+ * @returns The low nullifier membership witness (if found).
143
+ * @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
144
+ * list structure" of leaves and proving that a lower nullifier is pointing to a bigger next value than the nullifier
145
+ * we are trying to prove non-inclusion for.
146
+ */
147
+ getLowNullifierMembershipWitness(_blockNumber: L2BlockNumber, _nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
148
+ /**
149
+ * Returns a public data tree witness for a given leaf slot at a given block.
150
+ * @param blockNumber - The block number at which to get the data.
151
+ * @param leafSlot - The leaf slot we try to find the witness for.
152
+ * @returns The public data witness (if found).
153
+ * @remarks The witness can be used to compute the current value of the public data tree leaf. If the low leaf preimage corresponds to an
154
+ * "in range" slot, means that the slot doesn't exist and the value is 0. If the low leaf preimage corresponds to the exact slot, the current value
155
+ * is contained in the leaf preimage.
156
+ */
157
+ getPublicDataTreeWitness(_blockNumber: L2BlockNumber, _leafSlot: Fr): Promise<PublicDataWitness | undefined>;
158
+ /**
159
+ * Get a block specified by its number.
160
+ * @param number - The block number being requested.
161
+ * @returns The requested block.
162
+ */
163
+ getBlock(_number: number): Promise<L2Block | undefined>;
164
+ /**
165
+ * Fetches the latest proven block number.
166
+ * @returns The block number.
167
+ */
168
+ getProvenBlockNumber(): Promise<number>;
169
+ /**
170
+ * Method to determine if the node is ready to accept transactions.
171
+ * @returns - Flag indicating the readiness for tx submission.
172
+ */
173
+ isReady(): Promise<boolean>;
174
+ /**
175
+ * Method to request blocks. Will attempt to return all requested blocks but will return only those available.
176
+ * @param from - The start of the range of blocks to return.
177
+ * @param limit - The maximum number of blocks to return.
178
+ * @returns The blocks requested.
179
+ */
180
+ getBlocks(_from: number, _limit: number): Promise<L2Block[]>;
181
+ /**
182
+ * Method to fetch the version of the package.
183
+ * @returns The node package version
184
+ */
185
+ getNodeVersion(): Promise<string>;
186
+ /**
187
+ * Method to fetch the version of the rollup the node is connected to.
188
+ * @returns The rollup version.
189
+ */
190
+ getVersion(): Promise<number>;
191
+ /**
192
+ * Method to fetch the chain id of the base-layer for the rollup.
193
+ * @returns The chain id.
194
+ */
195
+ getChainId(): Promise<number>;
196
+ /**
197
+ * Method to fetch the currently deployed l1 contract addresses.
198
+ * @returns The deployed contract addresses.
199
+ */
200
+ getL1ContractAddresses(): Promise<L1ContractAddresses>;
201
+ /**
202
+ * Method to fetch the protocol contract addresses.
203
+ */
204
+ getProtocolContractAddresses(): Promise<ProtocolContractAddresses>;
205
+ /**
206
+ * Method to add a contract artifact to the database.
207
+ * @param aztecAddress
208
+ * @param artifact
209
+ */
210
+ addContractArtifact(_address: AztecAddress, _artifact: ContractArtifact): Promise<void>;
211
+ /**
212
+ * Gets unencrypted logs based on the provided filter.
213
+ * @param filter - The filter to apply to the logs.
214
+ * @returns The requested logs.
215
+ */
216
+ getUnencryptedLogs(_filter: LogFilter): Promise<GetUnencryptedLogsResponse>;
217
+ /**
218
+ * Gets contract class logs based on the provided filter.
219
+ * @param filter - The filter to apply to the logs.
220
+ * @returns The requested logs.
221
+ */
222
+ getContractClassLogs(_filter: LogFilter): Promise<GetUnencryptedLogsResponse>;
223
+ /**
224
+ * Method to submit a transaction to the p2p pool.
225
+ * @param tx - The transaction to be submitted.
226
+ * @returns Nothing.
227
+ */
228
+ sendTx(_tx: Tx): Promise<void>;
229
+ /**
230
+ * Fetches a transaction receipt for a given transaction hash. Returns a mined receipt if it was added
231
+ * to the chain, a pending receipt if it's still in the mempool of the connected Aztec node, or a dropped
232
+ * receipt if not found in the connected Aztec node.
233
+ *
234
+ * @param txHash - The transaction hash.
235
+ * @returns A receipt of the transaction.
236
+ */
237
+ getTxReceipt(_txHash: TxHash): Promise<TxReceipt>;
238
+ /**
239
+ * Method to retrieve pending txs.
240
+ * @returns The pending txs.
241
+ */
242
+ getPendingTxs(): Promise<Tx[]>;
243
+ /**
244
+ * Retrieves the number of pending txs
245
+ * @returns The number of pending txs.
246
+ */
247
+ getPendingTxCount(): Promise<number>;
248
+ /**
249
+ * Method to retrieve a single pending tx.
250
+ * @param txHash - The transaction hash to return.
251
+ * @returns The pending tx if it exists.
252
+ */
253
+ getTxByHash(_txHash: TxHash): Promise<Tx | undefined>;
254
+ /**
255
+ * Gets the storage value at the given contract storage slot.
256
+ *
257
+ * @remarks The storage slot here refers to the slot as it is defined in Noir not the index in the merkle tree.
258
+ * Aztec's version of `eth_getStorageAt`.
259
+ *
260
+ * @param contract - Address of the contract to query.
261
+ * @param slot - Slot to query.
262
+ * @param blockNumber - The block number at which to get the data or 'latest'.
263
+ * @returns Storage value at the given contract slot.
264
+ */
265
+ getPublicStorageAt(_contract: AztecAddress, _slot: Fr, _blockNumber: L2BlockNumber): Promise<Fr>;
266
+ /**
267
+ * Returns the currently committed block header.
268
+ * @returns The current committed block header.
269
+ */
270
+ getBlockHeader(_blockNumber?: L2BlockNumber): Promise<BlockHeader>;
271
+ /**
272
+ * Simulates the public part of a transaction with the current state.
273
+ * This currently just checks that the transaction execution succeeds.
274
+ * @param tx - The transaction to simulate.
275
+ **/
276
+ simulatePublicCalls(_tx: Tx): Promise<PublicSimulationOutput>;
277
+ /**
278
+ * Returns true if the transaction is valid for inclusion at the current state. Valid transactions can be
279
+ * made invalid by *other* transactions if e.g. they emit the same nullifiers, or come become invalid
280
+ * due to e.g. the max_block_number property.
281
+ * @param tx - The transaction to validate for correctness.
282
+ * @param isSimulation - True if the transaction is a simulated one without generated proofs. (Optional)
283
+ */
284
+ isValidTx(_tx: Tx, _isSimulation?: boolean): Promise<boolean>;
285
+ /**
286
+ * Updates the configuration of this node.
287
+ * @param config - Updated configuration to be merged with the current one.
288
+ */
289
+ setConfig(_config: Partial<SequencerConfig & ProverConfig>): Promise<void>;
290
+ /**
291
+ * Returns a registered contract class given its id.
292
+ * @param id - Id of the contract class.
293
+ */
294
+ getContractClass(_id: Fr): Promise<ContractClassPublic | undefined>;
295
+ /**
296
+ * Returns a publicly deployed contract instance given its address.
297
+ * @param address - Address of the deployed contract.
298
+ */
299
+ getContract(_address: AztecAddress): Promise<ContractInstanceWithAddress | undefined>;
300
+ /** Forces the next block to be built bypassing all time and pending checks. Useful for testing. */
301
+ flushTxs(): Promise<void>;
302
+ /**
303
+ * Returns the ENR of this node for peer discovery, if available.
304
+ */
305
+ getEncodedEnr(): Promise<string | undefined>;
306
+ /**
307
+ * Receives a quote for an epoch proof and stores it in its EpochProofQuotePool
308
+ * @param quote - The quote to store
309
+ */
310
+ addEpochProofQuote(_quote: EpochProofQuote): Promise<void>;
311
+ /**
312
+ * Returns the received quotes for a given epoch
313
+ * @param epoch - The epoch for which to get the quotes
314
+ */
315
+ getEpochProofQuotes(_epoch: bigint): Promise<EpochProofQuote[]>;
316
+ /**
317
+ * Adds a contract class bypassing the registerer.
318
+ * TODO(#10007): Remove this method.
319
+ * @param contractClass - The class to register.
320
+ */
321
+ addContractClass(_contractClass: ContractClassPublic): Promise<void>;
322
+ /**
323
+ * Method to fetch the current base fees.
324
+ * @returns The current base fees.
325
+ */
326
+ getCurrentBaseFees(): Promise<GasFees>;
327
+ /**
328
+ * Retrieves all private logs from up to `limit` blocks, starting from the block number `from`.
329
+ * @param from - The block number from which to begin retrieving logs.
330
+ * @param limit - The maximum number of blocks to retrieve logs from.
331
+ * @returns An array of private logs from the specified range of blocks.
332
+ */
333
+ getPrivateLogs(_from: number, _limit: number): Promise<PrivateLog[]>;
334
+ /**
335
+ * Find the block numbers of the given leaf indices in the given tree.
336
+ * @param blockNumber - The block number at which to get the data or 'latest' for latest data
337
+ * @param treeId - The tree to search in.
338
+ * @param leafIndices - The values to search for
339
+ * @returns The indexes of the given leaves in the given tree or undefined if not found.
340
+ */
341
+ findBlockNumbersForIndexes(_blockNumber: L2BlockNumber, _treeId: MerkleTreeId, _leafIndices: bigint[]): Promise<(bigint | undefined)[]>;
342
+ /**
343
+ * Returns the information about the server's node. Includes current Node version, compatible Noir version,
344
+ * L1 chain identifier, protocol version, and L1 address of the rollup contract.
345
+ * @returns - The node information.
346
+ */
347
+ getNodeInfo(): Promise<NodeInfo>;
348
+ }
349
+ //# sourceMappingURL=txe_node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"txe_node.d.ts","sourceRoot":"","sources":["../../src/node/txe_node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,iBAAiB,CAAC;AACtE,OAAO,EACL,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,EAAE,EACP,KAAK,QAAQ,EACb,MAAM,EACN,KAAK,SAAS,EACd,aAAa,EACb,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,mBAAmB,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