@ocap/indexdb 1.29.13 → 1.29.15
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/esm/db.d.mts +2 -1
- package/esm/db.mjs +3 -0
- package/lib/db.cjs +3 -0
- package/lib/db.d.cts +2 -1
- package/package.json +4 -4
package/esm/db.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ready } from "@ocap/util/lib/ready";
|
|
2
|
-
import { IIndexDB, IIndexTable, IListAccountsResult, IListAssetsResult, IListDelegationsResult, IListFactoriesResult, IListRollupBlocksResult, IListRollupValidatorsResult, IListRollupsResult, IListStakesResult, IListTokenFactoriesResult, IListTokensResult, IListTransactionsResult, IndexTableTypeMap, Promisable, TRequestListAssets, TRequestListDelegations, TRequestListFactories, TRequestListRollupBlocks, TRequestListRollupValidators, TRequestListRollups, TRequestListStakes, TRequestListTokenFactories, TRequestListTokens, TRequestListTopAccounts, TRequestListTransactions } from "@ocap/types";
|
|
2
|
+
import { IIndexDB, IIndexTable, IListAccountsResult, IListAssetsResult, IListDelegationsResult, IListFactoriesResult, IListRollupBlocksResult, IListRollupValidatorsResult, IListRollupsResult, IListStakesResult, IListTokenFactoriesResult, IListTokensResult, IListTransactionsResult, IndexTableTypeMap, Promisable, TRequestListAssets, TRequestListDelegations, TRequestListFactories, TRequestListRollupBlocks, TRequestListRollupValidators, TRequestListRollups, TRequestListStakes, TRequestListTokenFactories, TRequestListTokens, TRequestListTopAccounts, TRequestListTransactions, TSearchResult } from "@ocap/types";
|
|
3
3
|
|
|
4
4
|
//#region src/db.d.ts
|
|
5
5
|
declare class BaseIndexDB extends Ready implements IIndexDB {
|
|
@@ -33,6 +33,7 @@ declare class BaseIndexDB extends Ready implements IIndexDB {
|
|
|
33
33
|
listRollupBlocks(_params?: Partial<TRequestListRollupBlocks>): Promisable<IListRollupBlocksResult>;
|
|
34
34
|
listRollupValidators(_params?: Partial<TRequestListRollupValidators>): Promisable<IListRollupValidatorsResult>;
|
|
35
35
|
listTokenFactories(_params?: Partial<TRequestListTokenFactories>): Promisable<IListTokenFactoriesResult>;
|
|
36
|
+
search(_keyword: string): TSearchResult[];
|
|
36
37
|
getRelatedAddresses(_address: string): Promisable<string[]>;
|
|
37
38
|
listBlocks(): unknown[];
|
|
38
39
|
close(): Promise<void>;
|
package/esm/db.mjs
CHANGED
package/lib/db.cjs
CHANGED
|
@@ -51,6 +51,9 @@ var BaseIndexDB = class extends _ocap_util_lib_ready.Ready {
|
|
|
51
51
|
listTokenFactories(_params) {
|
|
52
52
|
throw new Error("listTokenFactories should be implemented in adapter");
|
|
53
53
|
}
|
|
54
|
+
search(_keyword) {
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
54
57
|
getRelatedAddresses(_address) {
|
|
55
58
|
return [];
|
|
56
59
|
}
|
package/lib/db.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IIndexDB, IIndexTable, IListAccountsResult, IListAssetsResult, IListDelegationsResult, IListFactoriesResult, IListRollupBlocksResult, IListRollupValidatorsResult, IListRollupsResult, IListStakesResult, IListTokenFactoriesResult, IListTokensResult, IListTransactionsResult, IndexTableTypeMap, Promisable, TRequestListAssets, TRequestListDelegations, TRequestListFactories, TRequestListRollupBlocks, TRequestListRollupValidators, TRequestListRollups, TRequestListStakes, TRequestListTokenFactories, TRequestListTokens, TRequestListTopAccounts, TRequestListTransactions } from "@ocap/types";
|
|
1
|
+
import { IIndexDB, IIndexTable, IListAccountsResult, IListAssetsResult, IListDelegationsResult, IListFactoriesResult, IListRollupBlocksResult, IListRollupValidatorsResult, IListRollupsResult, IListStakesResult, IListTokenFactoriesResult, IListTokensResult, IListTransactionsResult, IndexTableTypeMap, Promisable, TRequestListAssets, TRequestListDelegations, TRequestListFactories, TRequestListRollupBlocks, TRequestListRollupValidators, TRequestListRollups, TRequestListStakes, TRequestListTokenFactories, TRequestListTokens, TRequestListTopAccounts, TRequestListTransactions, TSearchResult } from "@ocap/types";
|
|
2
2
|
import { Ready } from "@ocap/util/lib/ready";
|
|
3
3
|
|
|
4
4
|
//#region src/db.d.ts
|
|
@@ -33,6 +33,7 @@ declare class BaseIndexDB extends Ready implements IIndexDB {
|
|
|
33
33
|
listRollupBlocks(_params?: Partial<TRequestListRollupBlocks>): Promisable<IListRollupBlocksResult>;
|
|
34
34
|
listRollupValidators(_params?: Partial<TRequestListRollupValidators>): Promisable<IListRollupValidatorsResult>;
|
|
35
35
|
listTokenFactories(_params?: Partial<TRequestListTokenFactories>): Promisable<IListTokenFactoriesResult>;
|
|
36
|
+
search(_keyword: string): TSearchResult[];
|
|
36
37
|
getRelatedAddresses(_address: string): Promisable<string[]>;
|
|
37
38
|
listBlocks(): unknown[];
|
|
38
39
|
close(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.29.
|
|
6
|
+
"version": "1.29.15",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"description": "Defines the basic interface for OCAP IndexDB",
|
|
9
9
|
"main": "./lib/main.cjs",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"tsdown": "^0.18.4"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@ocap/state": "1.29.
|
|
56
|
-
"@ocap/types": "1.29.
|
|
57
|
-
"@ocap/util": "1.29.
|
|
55
|
+
"@ocap/state": "1.29.15",
|
|
56
|
+
"@ocap/types": "1.29.15",
|
|
57
|
+
"@ocap/util": "1.29.15",
|
|
58
58
|
"kareem": "^2.4.1",
|
|
59
59
|
"lodash": "^4.17.23"
|
|
60
60
|
}
|