@agoric/cache 0.3.3-dev-61d4577.0.61d4577 → 0.3.3-dev-12db75d.0.12db75d
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/package.json +7 -7
- package/src/store.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cache",
|
|
3
|
-
"version": "0.3.3-dev-
|
|
3
|
+
"version": "0.3.3-dev-12db75d.0.12db75d",
|
|
4
4
|
"description": "Agoric's simple cache interface",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.js",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"author": "Agoric",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@agoric/internal": "0.3.3-dev-
|
|
23
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
24
|
-
"@agoric/store": "0.9.3-dev-
|
|
25
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
22
|
+
"@agoric/internal": "0.3.3-dev-12db75d.0.12db75d",
|
|
23
|
+
"@agoric/notifier": "0.6.3-dev-12db75d.0.12db75d",
|
|
24
|
+
"@agoric/store": "0.9.3-dev-12db75d.0.12db75d",
|
|
25
|
+
"@agoric/vat-data": "0.5.3-dev-12db75d.0.12db75d",
|
|
26
26
|
"@endo/far": "^1.1.14",
|
|
27
27
|
"@endo/marshal": "^1.8.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
30
|
+
"@agoric/zoe": "0.26.3-dev-12db75d.0.12db75d",
|
|
31
31
|
"ava": "^5.3.0",
|
|
32
32
|
"c8": "^10.1.3"
|
|
33
33
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"typeCoverage": {
|
|
50
50
|
"atLeast": 94.13
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "12db75daac43c6691a8e871585a8419839ad5fa9"
|
|
53
53
|
}
|
package/src/store.js
CHANGED
|
@@ -7,6 +7,7 @@ import { withGroundState, makeState } from './state.js';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @import {ERemote} from '@agoric/internal'
|
|
10
|
+
* @import {EMarshaller} from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
10
11
|
* @import {Passable, RemotableObject} from '@endo/pass-style';
|
|
11
12
|
* @import {Key, Pattern} from '@endo/patterns';
|
|
12
13
|
*/
|
|
@@ -113,7 +114,7 @@ const applyCacheTransaction = async (
|
|
|
113
114
|
|
|
114
115
|
/**
|
|
115
116
|
* @param {MapStore<string, import('./state.js').State>} stateStore
|
|
116
|
-
* @param {ERemote<
|
|
117
|
+
* @param {ERemote<EMarshaller>} marshaller
|
|
117
118
|
* @returns {Promise<string>}
|
|
118
119
|
*/
|
|
119
120
|
const stringifyStateStore = async (stateStore, marshaller) => {
|
|
@@ -177,7 +178,7 @@ export const makeScalarStoreCoordinator = (
|
|
|
177
178
|
* Don't write any marshalled value that's older than what's already pushed
|
|
178
179
|
*
|
|
179
180
|
* @param {MapStore<string, import('./state.js').State>} stateStore
|
|
180
|
-
* @param {ERemote<
|
|
181
|
+
* @param {ERemote<EMarshaller>} marshaller
|
|
181
182
|
* @param {ERemote<StorageNode>} storageNode
|
|
182
183
|
* @returns {<T>(storedValue: T) => Promise<T>}
|
|
183
184
|
*/
|
|
@@ -207,7 +208,7 @@ const makeLastWinsUpdater = (stateStore, marshaller, storageNode) => {
|
|
|
207
208
|
* currently enforce any cache eviction, but that would be a useful feature.
|
|
208
209
|
*
|
|
209
210
|
* @param {ERemote<StorageNode>} storageNode
|
|
210
|
-
* @param {ERemote<
|
|
211
|
+
* @param {ERemote<EMarshaller>} marshaller
|
|
211
212
|
*/
|
|
212
213
|
export const makeChainStorageCoordinator = (storageNode, marshaller) => {
|
|
213
214
|
const stateStore = makeScalarBigMapStore('stateKey');
|