@agoric/solo 0.10.4-dev-7946226.0 → 0.10.4-dev-d322e42.0
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 +16 -16
- package/src/outbound.js +3 -3
- package/src/start.js +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/solo",
|
|
3
|
-
"version": "0.10.4-dev-
|
|
3
|
+
"version": "0.10.4-dev-d322e42.0+d322e42",
|
|
4
4
|
"description": "Agoric's Solo vat runner",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/access-token": "0.4.22-dev-
|
|
26
|
-
"@agoric/cache": "0.3.3-dev-
|
|
27
|
-
"@agoric/cosmic-swingset": "0.41.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
30
|
-
"@agoric/spawner": "0.6.9-dev-
|
|
31
|
-
"@agoric/store": "0.9.3-dev-
|
|
32
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
33
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
34
|
-
"@agoric/telemetry": "0.6.3-dev-
|
|
35
|
-
"@agoric/time": "0.3.3-dev-
|
|
36
|
-
"@agoric/vats": "0.15.2-dev-
|
|
37
|
-
"@agoric/wallet": "0.18.4-dev-
|
|
25
|
+
"@agoric/access-token": "0.4.22-dev-d322e42.0+d322e42",
|
|
26
|
+
"@agoric/cache": "0.3.3-dev-d322e42.0+d322e42",
|
|
27
|
+
"@agoric/cosmic-swingset": "0.41.4-dev-d322e42.0+d322e42",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-d322e42.0+d322e42",
|
|
29
|
+
"@agoric/notifier": "0.6.3-dev-d322e42.0+d322e42",
|
|
30
|
+
"@agoric/spawner": "0.6.9-dev-d322e42.0+d322e42",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-d322e42.0+d322e42",
|
|
32
|
+
"@agoric/swing-store": "0.9.2-dev-d322e42.0+d322e42",
|
|
33
|
+
"@agoric/swingset-vat": "0.32.3-dev-d322e42.0+d322e42",
|
|
34
|
+
"@agoric/telemetry": "0.6.3-dev-d322e42.0+d322e42",
|
|
35
|
+
"@agoric/time": "0.3.3-dev-d322e42.0+d322e42",
|
|
36
|
+
"@agoric/vats": "0.15.2-dev-d322e42.0+d322e42",
|
|
37
|
+
"@agoric/wallet": "0.18.4-dev-d322e42.0+d322e42",
|
|
38
38
|
"@endo/captp": "^4.4.0",
|
|
39
39
|
"@endo/errors": "^1.2.6",
|
|
40
40
|
"@endo/eventual-send": "^1.2.6",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"ws": "^7.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
58
|
+
"@agoric/ertp": "0.16.3-dev-d322e42.0+d322e42",
|
|
59
59
|
"@endo/bundle-source": "^3.4.1",
|
|
60
60
|
"ava": "^5.3.0",
|
|
61
61
|
"c8": "^9.1.0"
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"typeCoverage": {
|
|
80
80
|
"atLeast": 73.54
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "d322e42bcb8bf53aba0468f67907464b34d9e937"
|
|
83
83
|
}
|
package/src/outbound.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-env node */
|
|
2
2
|
import anylogger from 'anylogger';
|
|
3
|
-
|
|
4
3
|
import { Fail } from '@endo/errors';
|
|
4
|
+
import { exportMailboxData } from '@agoric/swingset-vat';
|
|
5
5
|
|
|
6
6
|
// Limit the debug log length.
|
|
7
7
|
const SOLO_MAX_DEBUG_LENGTH =
|
|
@@ -22,8 +22,8 @@ const log = anylogger('outbound');
|
|
|
22
22
|
*/
|
|
23
23
|
const knownTargets = new Map();
|
|
24
24
|
|
|
25
|
-
export function deliver(
|
|
26
|
-
const data =
|
|
25
|
+
export function deliver(mailboxStorage) {
|
|
26
|
+
const data = exportMailboxData(mailboxStorage);
|
|
27
27
|
log.debug(`deliver`, data);
|
|
28
28
|
for (const target of Object.getOwnPropertyNames(data)) {
|
|
29
29
|
if (!knownTargets.has(target)) {
|
package/src/start.js
CHANGED
|
@@ -28,6 +28,8 @@ import {
|
|
|
28
28
|
buildMailbox,
|
|
29
29
|
buildPlugin,
|
|
30
30
|
buildTimer,
|
|
31
|
+
exportMailboxData,
|
|
32
|
+
makeEphemeralMailboxStorage,
|
|
31
33
|
} from '@agoric/swingset-vat';
|
|
32
34
|
import { openSwingStore } from '@agoric/swing-store';
|
|
33
35
|
import { makeWithQueue } from '@agoric/internal/src/queue.js';
|
|
@@ -110,8 +112,8 @@ const buildSwingset = async (
|
|
|
110
112
|
fs.readFileSync(mailboxStateFile, 'utf8'),
|
|
111
113
|
);
|
|
112
114
|
|
|
113
|
-
const
|
|
114
|
-
mbs
|
|
115
|
+
const mailboxStorage = makeEphemeralMailboxStorage(initialMailboxState);
|
|
116
|
+
const mbs = buildMailboxStateMap(mailboxStorage);
|
|
115
117
|
const mb = buildMailbox(mbs);
|
|
116
118
|
const cm = buildCommand(broadcast);
|
|
117
119
|
const timer = buildTimer();
|
|
@@ -235,13 +237,13 @@ const buildSwingset = async (
|
|
|
235
237
|
});
|
|
236
238
|
|
|
237
239
|
async function saveState() {
|
|
238
|
-
const ms = JSON.stringify(
|
|
240
|
+
const ms = JSON.stringify(exportMailboxData(mailboxStorage));
|
|
239
241
|
await atomicReplaceFile(mailboxStateFile, ms);
|
|
240
242
|
await hostStorage.commit();
|
|
241
243
|
}
|
|
242
244
|
|
|
243
245
|
function deliverOutbound() {
|
|
244
|
-
deliver(
|
|
246
|
+
deliver(mailboxStorage);
|
|
245
247
|
}
|
|
246
248
|
|
|
247
249
|
const policy = neverStop();
|