@ocap/statedb-memory 1.29.3 → 1.29.4
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/lib/db.d.cts +2 -2
- package/lib/table/base.d.cts +2 -2
- package/package.json +5 -5
package/lib/db.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StateDB } from "@ocap/statedb";
|
|
2
2
|
import { IAccountState, IAssetFactoryState, IAssetState, IBalanceTable, IChainState, IDelegateState, IEvidenceState, IRollupBlock, IRollupTable, IStakeState, IStateTable, ITokenFactoryState, ITokenTable, ITxState } from "@ocap/types";
|
|
3
|
-
import
|
|
3
|
+
import Lokijs from "lokijs";
|
|
4
4
|
|
|
5
5
|
//#region src/db.d.ts
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ import Loki from "lokijs";
|
|
|
11
11
|
declare class MemoryStateDB extends StateDB {
|
|
12
12
|
name: string;
|
|
13
13
|
version: string;
|
|
14
|
-
db:
|
|
14
|
+
db: Lokijs;
|
|
15
15
|
balance: IBalanceTable;
|
|
16
16
|
account: IStateTable<IAccountState>;
|
|
17
17
|
factory: IStateTable<IAssetFactoryState>;
|
package/lib/table/base.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StateDBTable } from "@ocap/statedb";
|
|
2
2
|
import { IBalanceTable, IOperationContext } from "@ocap/types";
|
|
3
|
-
import
|
|
3
|
+
import Lokijs from "lokijs";
|
|
4
4
|
|
|
5
5
|
//#region src/table/base.d.ts
|
|
6
6
|
interface TableOptions {
|
|
@@ -8,7 +8,7 @@ interface TableOptions {
|
|
|
8
8
|
uniqIndex: string | string[];
|
|
9
9
|
syncBalance?: boolean;
|
|
10
10
|
balanceTable?: IBalanceTable;
|
|
11
|
-
db:
|
|
11
|
+
db: Lokijs;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* 内存表基类
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/statedb-memory",
|
|
3
3
|
"description": "OCAP statedb adapter that uses memory as backend statedb, just for test purpose",
|
|
4
|
-
"version": "1.29.
|
|
4
|
+
"version": "1.29.4",
|
|
5
5
|
"author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/ArcBlock/blockchain/issues",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
},
|
|
63
63
|
"gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e",
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@ocap/state": "1.29.
|
|
66
|
-
"@ocap/statedb": "1.29.
|
|
67
|
-
"@ocap/types": "1.29.
|
|
68
|
-
"@ocap/util": "1.29.
|
|
65
|
+
"@ocap/state": "1.29.4",
|
|
66
|
+
"@ocap/statedb": "1.29.4",
|
|
67
|
+
"@ocap/types": "1.29.4",
|
|
68
|
+
"@ocap/util": "1.29.4",
|
|
69
69
|
"debug": "^4.4.3",
|
|
70
70
|
"lodash": "^4.17.23",
|
|
71
71
|
"lokijs": "^1.5.12"
|