@aztec/txe 0.86.0 → 0.87.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.
Files changed (37) hide show
  1. package/dest/oracle/txe_oracle.d.ts +11 -6
  2. package/dest/oracle/txe_oracle.d.ts.map +1 -1
  3. package/dest/oracle/txe_oracle.js +209 -38
  4. package/dest/state_machine/archiver.d.ts +53 -0
  5. package/dest/state_machine/archiver.d.ts.map +1 -0
  6. package/dest/state_machine/archiver.js +100 -0
  7. package/dest/state_machine/dummy_p2p_client.d.ts +48 -0
  8. package/dest/state_machine/dummy_p2p_client.d.ts.map +1 -0
  9. package/dest/state_machine/dummy_p2p_client.js +122 -0
  10. package/dest/state_machine/global_variable_builder.d.ts +23 -0
  11. package/dest/state_machine/global_variable_builder.d.ts.map +1 -0
  12. package/dest/state_machine/global_variable_builder.js +29 -0
  13. package/dest/state_machine/index.d.ts +16 -0
  14. package/dest/state_machine/index.d.ts.map +1 -0
  15. package/dest/state_machine/index.js +48 -0
  16. package/dest/state_machine/synchronizer.d.ts +32 -0
  17. package/dest/state_machine/synchronizer.d.ts.map +1 -0
  18. package/dest/state_machine/synchronizer.js +58 -0
  19. package/dest/txe_service/txe_service.d.ts +12 -3
  20. package/dest/txe_service/txe_service.d.ts.map +1 -1
  21. package/dest/txe_service/txe_service.js +221 -37
  22. package/dest/util/encoding.d.ts +11 -4
  23. package/dest/util/encoding.d.ts.map +1 -1
  24. package/dest/util/encoding.js +38 -2
  25. package/package.json +18 -15
  26. package/src/oracle/txe_oracle.ts +387 -40
  27. package/src/state_machine/archiver.ts +132 -0
  28. package/src/state_machine/dummy_p2p_client.ts +167 -0
  29. package/src/state_machine/global_variable_builder.ts +55 -0
  30. package/src/state_machine/index.ts +71 -0
  31. package/src/state_machine/synchronizer.ts +87 -0
  32. package/src/txe_service/txe_service.ts +427 -31
  33. package/src/util/encoding.ts +51 -2
  34. package/dest/node/txe_node.d.ts +0 -320
  35. package/dest/node/txe_node.d.ts.map +0 -1
  36. package/dest/node/txe_node.js +0 -481
  37. package/src/node/txe_node.ts +0 -703
@@ -0,0 +1,132 @@
1
+ import { ArchiverStoreHelper, KVArchiverDataStore, type PublishedL2Block } from '@aztec/archiver';
2
+ import type { EthAddress } from '@aztec/foundation/eth-address';
3
+ import type { AztecAsyncKVStore } from '@aztec/kv-store';
4
+ import type { AztecAddress } from '@aztec/stdlib/aztec-address';
5
+ import type { L2Block, L2Tips } from '@aztec/stdlib/block';
6
+ import type { ContractInstanceWithAddress } from '@aztec/stdlib/contract';
7
+ import type { L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
8
+ import type { BlockHeader } from '@aztec/stdlib/tx';
9
+
10
+ // We are extending the ArchiverDataStoreHelper here because it provides most of the endpoints needed by the
11
+ // node for reading from and writing to state, without needing any of the extra overhead that the Archiver itself
12
+ // requires (i.e. an L1 client)
13
+ export class TXEArchiver extends ArchiverStoreHelper {
14
+ constructor(db: AztecAsyncKVStore) {
15
+ super(new KVArchiverDataStore(db, 9999));
16
+ }
17
+
18
+ public override async addBlocks(blocks: PublishedL2Block[]): Promise<boolean> {
19
+ const opResults = await Promise.all([
20
+ this.store.addLogs(blocks.map(block => block.block)),
21
+ this.store.addBlocks(blocks),
22
+ ]);
23
+
24
+ return opResults.every(Boolean);
25
+ }
26
+
27
+ /**
28
+ * Gets the number of the latest L2 block processed by the block source implementation.
29
+ * @returns The number of the latest L2 block processed by the block source implementation.
30
+ */
31
+ public getBlockNumber(): Promise<number> {
32
+ return this.store.getSynchedL2BlockNumber();
33
+ }
34
+
35
+ /**
36
+ * Gets the number of the latest L2 block proven seen by the block source implementation.
37
+ * @returns The number of the latest L2 block proven seen by the block source implementation.
38
+ */
39
+ public getProvenBlockNumber(): Promise<number> {
40
+ return this.store.getSynchedL2BlockNumber();
41
+ }
42
+
43
+ /**
44
+ * Gets a published l2 block. If a negative number is passed, the block returned is the most recent.
45
+ * @param number - The block number to return (inclusive).
46
+ * @returns The requested L2 block.
47
+ */
48
+ public override async getPublishedBlock(number: number): Promise<PublishedL2Block | undefined> {
49
+ // If the number provided is -ve, then return the latest block.
50
+ if (number < 0) {
51
+ number = await this.store.getSynchedL2BlockNumber();
52
+ }
53
+ if (number == 0) {
54
+ return undefined;
55
+ }
56
+ const blocks = await this.store.getPublishedBlocks(number, 1);
57
+ return blocks.length === 0 ? undefined : blocks[0];
58
+ }
59
+
60
+ /**
61
+ * Gets an l2 block. If a negative number is passed, the block returned is the most recent.
62
+ * @param number - The block number to return (inclusive).
63
+ * @returns The requested L2 block.
64
+ */
65
+ public getBlock(number: number): Promise<L2Block | undefined> {
66
+ return this.getPublishedBlock(number).then(block => block?.block);
67
+ }
68
+
69
+ /**
70
+ * Gets an l2 block header.
71
+ * @param number - The block number to return or 'latest' for the most recent one.
72
+ * @returns The requested L2 block header.
73
+ */
74
+ public async getBlockHeader(number: number | 'latest'): Promise<BlockHeader | undefined> {
75
+ if (number === 'latest') {
76
+ number = await this.store.getSynchedL2BlockNumber();
77
+ }
78
+ if (number === 0) {
79
+ return undefined;
80
+ }
81
+ const headers = await this.store.getBlockHeaders(number, 1);
82
+ return headers.length === 0 ? undefined : headers[0];
83
+ }
84
+
85
+ public getBlocks(from: number, limit: number, _proven?: boolean): Promise<L2Block[]> {
86
+ return this.getPublishedBlocks(from, limit).then(blocks => blocks.map(b => b.block));
87
+ }
88
+
89
+ public getL2SlotNumber(): Promise<bigint> {
90
+ throw new Error('TXE Archiver does not implement "getL2SlotNumber"');
91
+ }
92
+
93
+ public getL2EpochNumber(): Promise<bigint> {
94
+ throw new Error('TXE Archiver does not implement "getL2EpochNumber"');
95
+ }
96
+
97
+ public getBlocksForEpoch(_epochNumber: bigint): Promise<L2Block[]> {
98
+ throw new Error('TXE Archiver does not implement "getBlocksForEpoch"');
99
+ }
100
+
101
+ public getBlockHeadersForEpoch(_epochNumber: bigint): Promise<BlockHeader[]> {
102
+ throw new Error('TXE Archiver does not implement "getBlockHeadersForEpoch"');
103
+ }
104
+
105
+ public isEpochComplete(_epochNumber: bigint): Promise<boolean> {
106
+ throw new Error('TXE Archiver does not implement "isEpochComplete"');
107
+ }
108
+
109
+ public getL2Tips(): Promise<L2Tips> {
110
+ throw new Error('TXE Archiver does not implement "getL2Tips"');
111
+ }
112
+
113
+ public getL1Constants(): Promise<L1RollupConstants> {
114
+ throw new Error('TXE Archiver does not implement "getL2Constants"');
115
+ }
116
+
117
+ public syncImmediate(): Promise<void> {
118
+ throw new Error('TXE Archiver does not implement "syncImmediate"');
119
+ }
120
+
121
+ public getContract(_address: AztecAddress, _blockNumber?: number): Promise<ContractInstanceWithAddress | undefined> {
122
+ throw new Error('TXE Archiver does not implement "getContract"');
123
+ }
124
+
125
+ public getRollupAddress(): Promise<EthAddress> {
126
+ throw new Error('TXE Archiver does not implement "getRollupAddress"');
127
+ }
128
+
129
+ public getRegistryAddress(): Promise<EthAddress> {
130
+ throw new Error('TXE Archiver does not implement "getRegistryAddress"');
131
+ }
132
+ }
@@ -0,0 +1,167 @@
1
+ import type { ENR, P2P, P2PConfig, P2PSyncState } from '@aztec/p2p';
2
+ import type { L2BlockStreamEvent, L2Tips } from '@aztec/stdlib/block';
3
+ import type { PeerInfo } from '@aztec/stdlib/interfaces/server';
4
+ import type { BlockAttestation, BlockProposal } from '@aztec/stdlib/p2p';
5
+ import type { Tx, TxHash } from '@aztec/stdlib/tx';
6
+
7
+ export class DummyP2P implements P2P {
8
+ public validate(_txs: Tx[]): Promise<void> {
9
+ return Promise.resolve();
10
+ }
11
+
12
+ public clear(): Promise<void> {
13
+ throw new Error('DummyP2P does not implement "clear".');
14
+ }
15
+
16
+ public getPendingTxs(): Promise<Tx[]> {
17
+ throw new Error('DummyP2P does not implement "getPendingTxs"');
18
+ }
19
+
20
+ public getEncodedEnr(): Promise<string | undefined> {
21
+ throw new Error('DummyP2P does not implement "getEncodedEnr"');
22
+ }
23
+
24
+ public getPeers(_includePending?: boolean): Promise<PeerInfo[]> {
25
+ throw new Error('DummyP2P does not implement "getPeers"');
26
+ }
27
+
28
+ public broadcastProposal(_proposal: BlockProposal): Promise<void> {
29
+ throw new Error('DummyP2P does not implement "broadcastProposal"');
30
+ }
31
+
32
+ public registerBlockProposalHandler(_handler: (block: BlockProposal) => Promise<BlockAttestation | undefined>): void {
33
+ throw new Error('DummyP2P does not implement "registerBlockProposalHandler"');
34
+ }
35
+
36
+ public requestTxs(_txHashes: TxHash[]): Promise<(Tx | undefined)[]> {
37
+ throw new Error('DummyP2P does not implement "requestTxs"');
38
+ }
39
+
40
+ public requestTxByHash(_txHash: TxHash): Promise<Tx | undefined> {
41
+ throw new Error('DummyP2P does not implement "requestTxByHash"');
42
+ }
43
+
44
+ public sendTx(_tx: Tx): Promise<void> {
45
+ throw new Error('DummyP2P does not implement "sendTx"');
46
+ }
47
+
48
+ public deleteTxs(_txHashes: TxHash[]): Promise<void> {
49
+ throw new Error('DummyP2P does not implement "deleteTxs"');
50
+ }
51
+
52
+ public getTxByHashFromPool(_txHash: TxHash): Promise<Tx | undefined> {
53
+ throw new Error('DummyP2P does not implement "getTxByHashFromPool"');
54
+ }
55
+
56
+ public getTxByHash(_txHash: TxHash): Promise<Tx | undefined> {
57
+ throw new Error('DummyP2P does not implement "getTxByHash"');
58
+ }
59
+
60
+ public getArchivedTxByHash(_txHash: TxHash): Promise<Tx | undefined> {
61
+ throw new Error('DummyP2P does not implement "getArchivedTxByHash"');
62
+ }
63
+
64
+ public getTxStatus(_txHash: TxHash): Promise<'pending' | 'mined' | undefined> {
65
+ throw new Error('DummyP2P does not implement "getTxStatus"');
66
+ }
67
+
68
+ public iteratePendingTxs(): AsyncIterableIterator<Tx> {
69
+ throw new Error('DummyP2P does not implement "iteratePendingTxs"');
70
+ }
71
+
72
+ public getPendingTxCount(): Promise<number> {
73
+ throw new Error('DummyP2P does not implement "getPendingTxCount"');
74
+ }
75
+
76
+ public start(): Promise<void> {
77
+ throw new Error('DummyP2P does not implement "start"');
78
+ }
79
+
80
+ public stop(): Promise<void> {
81
+ throw new Error('DummyP2P does not implement "stop"');
82
+ }
83
+
84
+ public isReady(): boolean {
85
+ throw new Error('DummyP2P does not implement "isReady"');
86
+ }
87
+
88
+ public getStatus(): Promise<P2PSyncState> {
89
+ throw new Error('DummyP2P does not implement "getStatus"');
90
+ }
91
+
92
+ public getEnr(): ENR | undefined {
93
+ throw new Error('DummyP2P does not implement "getEnr"');
94
+ }
95
+
96
+ public isP2PClient(): true {
97
+ throw new Error('DummyP2P does not implement "isP2PClient"');
98
+ }
99
+
100
+ public getTxsByHash(_txHashes: TxHash[]): Promise<Tx[]> {
101
+ throw new Error('DummyP2P does not implement "getTxsByHash"');
102
+ }
103
+
104
+ public getAttestationsForSlot(_slot: bigint, _proposalId?: string): Promise<BlockAttestation[]> {
105
+ throw new Error('DummyP2P does not implement "getAttestationForSlot"');
106
+ }
107
+
108
+ public addAttestation(_attestation: BlockAttestation): Promise<void> {
109
+ throw new Error('DummyP2P does not implement "addAttestation"');
110
+ }
111
+
112
+ public getL2BlockHash(_number: number): Promise<string | undefined> {
113
+ throw new Error('DummyP2P does not implement "getL2BlockHash"');
114
+ }
115
+
116
+ public updateP2PConfig(_config: Partial<P2PConfig>): Promise<void> {
117
+ throw new Error('DummyP2P does not implement "updateP2PConfig"');
118
+ }
119
+
120
+ public getL2Tips(): Promise<L2Tips> {
121
+ throw new Error('DummyP2P does not implement "getL2Tips"');
122
+ }
123
+
124
+ public handleBlockStreamEvent(_event: L2BlockStreamEvent): Promise<void> {
125
+ throw new Error('DummyP2P does not implement "handleBlockStreamEvent"');
126
+ }
127
+
128
+ public sync() {
129
+ throw new Error('DummyP2P does not implement "sync"');
130
+ }
131
+
132
+ public requestTxsByHash(_txHashes: TxHash[]): Promise<(Tx | undefined)[]> {
133
+ throw new Error('DummyP2P does not implement "requestTxsByHash"');
134
+ }
135
+
136
+ public getTxs(_filter: 'all' | 'pending' | 'mined'): Promise<Tx[]> {
137
+ throw new Error('DummyP2P does not implement "getTxs"');
138
+ }
139
+
140
+ public getTxsByHashFromPool(_txHashes: TxHash[]): Promise<(Tx | undefined)[]> {
141
+ throw new Error('DummyP2P does not implement "getTxsByHashFromPool"');
142
+ }
143
+
144
+ public hasTxsInPool(_txHashes: TxHash[]): Promise<boolean[]> {
145
+ throw new Error('DummyP2P does not implement "hasTxsInPool"');
146
+ }
147
+
148
+ public addTxs(_txs: Tx[]): Promise<void> {
149
+ throw new Error('DummyP2P does not implement "addTxs"');
150
+ }
151
+
152
+ public getSyncedLatestBlockNum(): Promise<number> {
153
+ throw new Error('DummyP2P does not implement "getSyncedLatestBlockNum"');
154
+ }
155
+
156
+ public getSyncedProvenBlockNum(): Promise<number> {
157
+ throw new Error('DummyP2P does not implement "getSyncedProvenBlockNum"');
158
+ }
159
+
160
+ public getSyncedLatestSlot(): Promise<bigint> {
161
+ throw new Error('DummyP2P does not implement "getSyncedLatestSlot"');
162
+ }
163
+
164
+ markTxsAsNonEvictable(_: TxHash[]): Promise<void> {
165
+ throw new Error('DummyP2P does not implement "markTxsAsNonEvictable".');
166
+ }
167
+ }
@@ -0,0 +1,55 @@
1
+ import type { EthAddress } from '@aztec/foundation/eth-address';
2
+ import { Fr } from '@aztec/foundation/fields';
3
+ import type { AztecAddress } from '@aztec/stdlib/aztec-address';
4
+ import { GasFees } from '@aztec/stdlib/gas';
5
+ import { type GlobalVariableBuilder, GlobalVariables } from '@aztec/stdlib/tx';
6
+
7
+ export class TXEGlobalVariablesBuilder implements GlobalVariableBuilder {
8
+ private timestamp = new Fr(1);
9
+ private slotNumber = 1n;
10
+
11
+ // The version and chainId should match the one on txe_oracle
12
+ private version = new Fr(1);
13
+ private chainId = new Fr(1);
14
+
15
+ constructor() {}
16
+
17
+ public getCurrentBaseFees(): Promise<GasFees> {
18
+ return Promise.resolve(new GasFees(Fr.ZERO, Fr.ZERO));
19
+ }
20
+
21
+ /**
22
+ * Simple builder of global variables that use the minimum time possible.
23
+ * @param blockNumber - The block number to build global variables for.
24
+ * @param coinbase - The address to receive block reward.
25
+ * @param feeRecipient - The address to receive fees.
26
+ * @param slotNumber - The slot number to use for the global variables, if undefined it will be calculated.
27
+ * @returns The global variables for the given block number.
28
+ */
29
+ public buildGlobalVariables(
30
+ blockNumber: Fr,
31
+ coinbase: EthAddress,
32
+ feeRecipient: AztecAddress,
33
+ slotNumber?: bigint,
34
+ ): Promise<GlobalVariables> {
35
+ const gasFees = new GasFees(Fr.ZERO, Fr.ZERO);
36
+
37
+ slotNumber ??= this.slotNumber;
38
+
39
+ const globalVariables = new GlobalVariables(
40
+ this.chainId,
41
+ this.version,
42
+ blockNumber,
43
+ Fr.fromString(slotNumber.toString()),
44
+ this.timestamp,
45
+ coinbase,
46
+ feeRecipient,
47
+ gasFees,
48
+ );
49
+
50
+ this.slotNumber++;
51
+ this.timestamp = this.timestamp.add(new Fr(1));
52
+
53
+ return Promise.resolve(globalVariables);
54
+ }
55
+ }
@@ -0,0 +1,71 @@
1
+ import { type AztecNodeConfig, AztecNodeService } from '@aztec/aztec-node';
2
+ import { TestCircuitVerifier } from '@aztec/bb-prover/test';
3
+ import { createLogger } from '@aztec/foundation/log';
4
+ import type { AztecAsyncKVStore } from '@aztec/kv-store';
5
+ import { SyncDataProvider } from '@aztec/pxe/server';
6
+ import type { L2Block } from '@aztec/stdlib/block';
7
+ import type { AztecNode } from '@aztec/stdlib/interfaces/client';
8
+ import { getPackageVersion } from '@aztec/stdlib/update-checker';
9
+
10
+ import { TXEArchiver } from './archiver.js';
11
+ import { DummyP2P } from './dummy_p2p_client.js';
12
+ import { TXEGlobalVariablesBuilder } from './global_variable_builder.js';
13
+ import { TXESynchronizer } from './synchronizer.js';
14
+
15
+ export class TXEStateMachine {
16
+ constructor(
17
+ public node: AztecNode,
18
+ public synchronizer: TXESynchronizer,
19
+ public archiver: TXEArchiver,
20
+ public syncDataProvider: SyncDataProvider,
21
+ ) {}
22
+
23
+ public static async create(db: AztecAsyncKVStore) {
24
+ const archiver = new TXEArchiver(db);
25
+ const synchronizer = await TXESynchronizer.create();
26
+ const syncDataProvider = new SyncDataProvider(db);
27
+
28
+ const aztecNodeConfig = {} as AztecNodeConfig;
29
+
30
+ const log = createLogger('txe_node');
31
+ const node = new AztecNodeService(
32
+ aztecNodeConfig,
33
+ new DummyP2P(),
34
+ archiver,
35
+ archiver,
36
+ archiver,
37
+ archiver,
38
+ synchronizer,
39
+ undefined,
40
+ undefined,
41
+ // version and chainId should match the ones in txe oracle
42
+ 1,
43
+ 1,
44
+ new TXEGlobalVariablesBuilder(),
45
+ getPackageVersion() ?? '',
46
+ new TestCircuitVerifier(),
47
+ undefined,
48
+ log,
49
+ );
50
+
51
+ return new this(node, synchronizer, archiver, syncDataProvider);
52
+ }
53
+
54
+ public async handleL2Block(block: L2Block) {
55
+ await Promise.all([
56
+ this.synchronizer.handleL2Block(block),
57
+ this.archiver.addBlocks([
58
+ {
59
+ block,
60
+ l1: {
61
+ blockHash: block.header.globalVariables.blockNumber.toNumber().toString(),
62
+ blockNumber: block.header.globalVariables.blockNumber.toBigInt(),
63
+ timestamp: block.header.globalVariables.blockNumber.toBigInt(),
64
+ },
65
+ signatures: [],
66
+ },
67
+ ]),
68
+ this.syncDataProvider.setHeader(block.header),
69
+ ]);
70
+ }
71
+ }
@@ -0,0 +1,87 @@
1
+ import { NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP } from '@aztec/constants';
2
+ import { Fr } from '@aztec/foundation/fields';
3
+ import type { L2Block } from '@aztec/stdlib/block';
4
+ import type {
5
+ MerkleTreeReadOperations,
6
+ MerkleTreeWriteOperations,
7
+ SnapshotDataKeys,
8
+ WorldStateSynchronizer,
9
+ WorldStateSynchronizerStatus,
10
+ } from '@aztec/stdlib/interfaces/server';
11
+ import { NativeWorldStateService } from '@aztec/world-state/native';
12
+
13
+ export class TXESynchronizer implements WorldStateSynchronizer {
14
+ // This works when set to 1 as well.
15
+ private blockNumber = 0;
16
+
17
+ constructor(public nativeWorldStateService: NativeWorldStateService) {}
18
+
19
+ static async create() {
20
+ const nativeWorldStateService = await NativeWorldStateService.tmp();
21
+
22
+ return new this(nativeWorldStateService);
23
+ }
24
+
25
+ public async handleL2Block(block: L2Block) {
26
+ await this.nativeWorldStateService.handleL2BlockAndMessages(
27
+ block,
28
+ Array(NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP).fill(0).map(Fr.zero),
29
+ );
30
+
31
+ this.blockNumber = block.header.globalVariables.blockNumber.toNumber();
32
+ }
33
+
34
+ /**
35
+ * Forces an immediate sync to an optionally provided minimum block number
36
+ * @param targetBlockNumber - The target block number that we must sync to. Will download unproven blocks if needed to reach it.
37
+ * @param skipThrowIfTargetNotReached - Whether to skip throwing if the target block number is not reached.
38
+ * @returns A promise that resolves with the block number the world state was synced to
39
+ */
40
+ public syncImmediate(_minBlockNumber?: number, _skipThrowIfTargetNotReached?: boolean): Promise<number> {
41
+ return Promise.resolve(this.blockNumber);
42
+ }
43
+
44
+ /** Returns an instance of MerkleTreeAdminOperations that will not include uncommitted data. */
45
+ public getCommitted(): MerkleTreeReadOperations {
46
+ return this.nativeWorldStateService.getCommitted();
47
+ }
48
+
49
+ /** Forks the world state at the given block number, defaulting to the latest one. */
50
+ public fork(block?: number): Promise<MerkleTreeWriteOperations> {
51
+ return this.nativeWorldStateService.fork(block);
52
+ }
53
+
54
+ /** Gets a handle that allows reading the state as it was at the given block number. */
55
+ public getSnapshot(blockNumber: number): MerkleTreeReadOperations {
56
+ return this.nativeWorldStateService.getSnapshot(blockNumber);
57
+ }
58
+
59
+ /** Backups the db to the target path. */
60
+ public backupTo(dstPath: string, compact?: boolean): Promise<Record<Exclude<SnapshotDataKeys, 'archiver'>, string>> {
61
+ return this.nativeWorldStateService.backupTo(dstPath, compact);
62
+ }
63
+
64
+ public start(): Promise<void> {
65
+ throw new Error('TXE Synchronizer does not implement "start"');
66
+ }
67
+
68
+ public status(): Promise<WorldStateSynchronizerStatus> {
69
+ throw new Error('TXE Synchronizer does not implement "status"');
70
+ }
71
+
72
+ public stop(): Promise<void> {
73
+ throw new Error('TXE Synchronizer does not implement "stop"');
74
+ }
75
+
76
+ public stopSync(): Promise<void> {
77
+ throw new Error('TXE Synchronizer does not implement "stopSync"');
78
+ }
79
+
80
+ public resumeSync(): void {
81
+ throw new Error('TXE Synchronizer does not implement "resumeSync"');
82
+ }
83
+
84
+ public clear(): Promise<void> {
85
+ throw new Error('TXE Synchronizer does not implement "clear"');
86
+ }
87
+ }