@ocap/statedb-fs 1.28.9 → 1.29.1

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.
@@ -1,13 +0,0 @@
1
- const FsTable = require('./base');
2
-
3
- class RollupTable extends FsTable {
4
- async existByToken(token) {
5
- if (!token) {
6
- return false;
7
- }
8
-
9
- return this.collection.count({ tokenAddress: token, paused: false }) > 0;
10
- }
11
- }
12
-
13
- module.exports = RollupTable;
@@ -1,13 +0,0 @@
1
- const FsTable = require('./base');
2
-
3
- class TokenTable extends FsTable {
4
- async existBySymbol(symbol) {
5
- if (!symbol) {
6
- throw new Error('param symbol is required');
7
- }
8
-
9
- return this.collection.count({ symbol }) > 0;
10
- }
11
- }
12
-
13
- module.exports = TokenTable;