@requestnetwork/data-access 0.29.1-next.1971 → 0.29.1-next.1974
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/README.md +0 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -139,10 +139,6 @@ Transactions are indexed with `topics`. When persisting a transaction on data-ac
|
|
|
139
139
|
|
|
140
140
|
To save on costs, transactions are batched together. This is the responsibility of Data Access layer. This package creates `blocks` that are collections of `transactions`
|
|
141
141
|
|
|
142
|
-
### Cache
|
|
143
|
-
|
|
144
|
-
In order to speed up recovery of transactions, data-access has a local cache of topics=>transaction. This is the reason why this package should be initialized with `dataAccess.initialize()` before being operational. This cache can be persisted in a file using a [Keyv store](https://github.com/lukechilds/keyv#official-storage-adapters).
|
|
145
|
-
|
|
146
142
|
### Synchronization
|
|
147
143
|
|
|
148
144
|
Blocks can be added into the storage by other peers running their own data-access instance. Therefore, to remain consistent with the global state of the network, this package need to synchronize with these new blocks.`dataAccess.synchronizeNewDataIds()` allows to synchronize manually with all unsynchronized blocks. The synchronization can also be done automatically, `dataAccess.startAutoSynchronization()` allows to automatically synchronize with new blocks, the interval time between each synchronization can be defined in data-access constructor. `dataAccess.stopAutoSynchronization()` allows to stop automatic synchronization.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@requestnetwork/data-access",
|
|
3
|
-
"version": "0.29.1-next.
|
|
3
|
+
"version": "0.29.1-next.1974+11d3ca80",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"test:watch": "yarn test --watch"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@requestnetwork/multi-format": "0.15.13-next.
|
|
43
|
-
"@requestnetwork/types": "0.38.1-next.
|
|
44
|
-
"@requestnetwork/utils": "0.38.1-next.
|
|
42
|
+
"@requestnetwork/multi-format": "0.15.13-next.1974+11d3ca80",
|
|
43
|
+
"@requestnetwork/types": "0.38.1-next.1974+11d3ca80",
|
|
44
|
+
"@requestnetwork/utils": "0.38.1-next.1974+11d3ca80",
|
|
45
45
|
"tslib": "2.5.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/jest": "29.5.6",
|
|
49
|
-
"@types/node": "
|
|
49
|
+
"@types/node": "18.11.9",
|
|
50
50
|
"jest": "29.5.0",
|
|
51
51
|
"jest-junit": "16.0.0",
|
|
52
52
|
"nyc": "15.1.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"ts-node": "10.9.1",
|
|
57
57
|
"typescript": "5.1.3"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "11d3ca80901f00b06bdd1d782676a00a210d00f0"
|
|
60
60
|
}
|