Skip to content

Commit bc4f052

Browse files
committed
separate database-version exports
1 parent d36234f commit bc4f052

File tree

8 files changed

+8
-9
lines changed

8 files changed

+8
-9
lines changed

yarn-project/kv-store/src/indexeddb/version_management.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EthAddress } from '@aztec/foundation/eth-address';
2-
import { DatabaseVersion } from '@aztec/stdlib/database-version';
2+
import { DatabaseVersion } from '@aztec/stdlib/database-version/version';
33

44
import { expect } from 'chai';
55

yarn-project/kv-store/src/lmdb-v2/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EthAddress } from '@aztec/foundation/eth-address';
22
import { type LoggerBindings, createLogger } from '@aztec/foundation/log';
3-
import { DatabaseVersionManager } from '@aztec/stdlib/database-version';
3+
import { DatabaseVersionManager } from '@aztec/stdlib/database-version/manager';
44

55
import { mkdir, mkdtemp, rm } from 'fs/promises';
66
import { tmpdir } from 'os';

yarn-project/kv-store/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EthAddress } from '@aztec/foundation/eth-address';
22
import type { Logger } from '@aztec/foundation/log';
3-
import { DatabaseVersion } from '@aztec/stdlib/database-version';
3+
import { DatabaseVersion } from '@aztec/stdlib/database-version/version';
44

55
import type { AztecAsyncSingleton, AztecSingleton } from './interfaces/singleton.js';
66
import type { AztecAsyncKVStore, AztecKVStore } from './interfaces/store.js';

yarn-project/node-lib/src/actions/snapshot-sync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { Logger } from '@aztec/foundation/log';
88
import type { DataStoreConfig } from '@aztec/kv-store/config';
99
import { P2P_STORE_NAME } from '@aztec/p2p';
1010
import type { ChainConfig } from '@aztec/stdlib/config';
11-
import { DatabaseVersionManager } from '@aztec/stdlib/database-version';
11+
import { DatabaseVersionManager } from '@aztec/stdlib/database-version/manager';
1212
import { type ReadOnlyFileStore, createReadOnlyFileStore } from '@aztec/stdlib/file-store';
1313
import {
1414
type SnapshotMetadata,

yarn-project/stdlib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"./epoch-helpers": "./dest/epoch-helpers/index.js",
5353
"./config": "./dest/config/index.js",
5454
"./testing/jest": "./dest/tests/jest.js",
55-
"./database-version": "./dest/database-version/index.js",
5655
"./database-version/version": "./dest/database-version/database_version.js",
56+
"./database-version/manager": "./dest/database-version/version_manager.js",
5757
"./validators": "./dest/validators/index.js",
5858
"./file-store": "./dest/file-store/index.js",
5959
"./snapshots": "./dest/snapshots/index.js",

yarn-project/stdlib/src/database-version/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

yarn-project/world-state/src/native/native_world_state.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import { EthAddress } from '@aztec/foundation/eth-address';
1717
import type { SiblingPath } from '@aztec/foundation/trees';
1818
import { PublicDataWrite } from '@aztec/stdlib/avm';
1919
import { L2Block } from '@aztec/stdlib/block';
20-
import { DatabaseVersion, DatabaseVersionManager } from '@aztec/stdlib/database-version';
20+
import { DatabaseVersionManager } from '@aztec/stdlib/database-version/manager';
21+
import { DatabaseVersion } from '@aztec/stdlib/database-version/version';
2122
import type { MerkleTreeLeafType, MerkleTreeWriteOperations } from '@aztec/stdlib/interfaces/server';
2223
import { makeGlobalVariables } from '@aztec/stdlib/testing';
2324
import { AppendOnlyTreeSnapshot, MerkleTreeId, PublicDataTreeLeaf } from '@aztec/stdlib/trees';

yarn-project/world-state/src/native/native_world_state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { EthAddress } from '@aztec/foundation/eth-address';
66
import { tryRmDir } from '@aztec/foundation/fs';
77
import { type Logger, type LoggerBindings, createLogger } from '@aztec/foundation/log';
88
import type { L2Block } from '@aztec/stdlib/block';
9-
import { DatabaseVersionManager } from '@aztec/stdlib/database-version';
9+
import { DatabaseVersionManager } from '@aztec/stdlib/database-version/manager';
1010
import type {
1111
IndexedTreeId,
1212
MerkleTreeReadOperations,

0 commit comments

Comments
 (0)