@agoric/swingset-vat 0.32.3-dev-f8abc2e.0 → 0.32.3-dev-59738aa.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 +13 -13
- package/src/kernel/state/kernelKeeper.js +1 -2
- package/src/kernel/state/vatKeeper.js +2 -2
- package/src/kernel/vat-loader/manager-helper.js +6 -6
- package/src/kernel/vat-loader/manager-subprocess-xsnap.js +8 -8
- package/src/kernel/vat-loader/vat-loader.js +1 -1
- package/src/kernel/vat-warehouse.js +14 -14
- package/src/kernel/vatTranslator.js +14 -14
- package/src/supervisors/supervisor-helper.js +4 -4
- package/src/types-ambient.js +82 -118
- package/src/vats/timer/vat-timer.js +6 -6
- package/tools/manual-timer.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/swingset-vat",
|
|
3
|
-
"version": "0.32.3-dev-
|
|
3
|
+
"version": "0.32.3-dev-59738aa.0+59738aa",
|
|
4
4
|
"description": "Vat/Container Launcher",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"@types/yargs-parser": "^21.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@agoric/assert": "0.6.1-dev-
|
|
31
|
-
"@agoric/internal": "0.3.3-dev-
|
|
32
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
33
|
-
"@agoric/store": "0.9.3-dev-
|
|
34
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
35
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
36
|
-
"@agoric/swingset-xsnap-supervisor": "0.10.3-dev-
|
|
37
|
-
"@agoric/time": "0.3.3-dev-
|
|
38
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
39
|
-
"@agoric/xsnap": "0.14.3-dev-
|
|
40
|
-
"@agoric/xsnap-lockdown": "0.14.1-dev-
|
|
30
|
+
"@agoric/assert": "0.6.1-dev-59738aa.0+59738aa",
|
|
31
|
+
"@agoric/internal": "0.3.3-dev-59738aa.0+59738aa",
|
|
32
|
+
"@agoric/kmarshal": "0.1.1-dev-59738aa.0+59738aa",
|
|
33
|
+
"@agoric/store": "0.9.3-dev-59738aa.0+59738aa",
|
|
34
|
+
"@agoric/swing-store": "0.9.2-dev-59738aa.0+59738aa",
|
|
35
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-59738aa.0+59738aa",
|
|
36
|
+
"@agoric/swingset-xsnap-supervisor": "0.10.3-dev-59738aa.0+59738aa",
|
|
37
|
+
"@agoric/time": "0.3.3-dev-59738aa.0+59738aa",
|
|
38
|
+
"@agoric/vat-data": "0.5.3-dev-59738aa.0+59738aa",
|
|
39
|
+
"@agoric/xsnap": "0.14.3-dev-59738aa.0+59738aa",
|
|
40
|
+
"@agoric/xsnap-lockdown": "0.14.1-dev-59738aa.0+59738aa",
|
|
41
41
|
"@endo/base64": "^1.0.3",
|
|
42
42
|
"@endo/bundle-source": "^3.2.1",
|
|
43
43
|
"@endo/captp": "^4.1.0",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"typeCoverage": {
|
|
103
103
|
"atLeast": 75.02
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "59738aa5d0eafdb105b63400631eb49644d555cf"
|
|
106
106
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/prefer-ts-expect-error -- https://github.com/Agoric/agoric-sdk/issues/4620 */
|
|
2
1
|
import { Nat, isNat } from '@endo/nat';
|
|
3
2
|
import { assert, Fail } from '@agoric/assert';
|
|
4
3
|
import { initializeVatState, makeVatKeeper } from './vatKeeper.js';
|
|
@@ -179,7 +178,7 @@ export default function makeKernelKeeper(kernelStorage, kernelSlog) {
|
|
|
179
178
|
*/
|
|
180
179
|
function getRequired(key) {
|
|
181
180
|
kvStore.has(key) || Fail`storage lacks required key ${key}`;
|
|
182
|
-
// @ts-
|
|
181
|
+
// @ts-expect-error already checked .has()
|
|
183
182
|
return kvStore.get(key);
|
|
184
183
|
}
|
|
185
184
|
|
|
@@ -21,8 +21,8 @@ import { enumeratePrefixedKeys } from './storageHelper.js';
|
|
|
21
21
|
* @typedef { import('../../types-internal.js').VatManager } VatManager
|
|
22
22
|
* @typedef { import('../../types-internal.js').RecordedVatOptions } RecordedVatOptions
|
|
23
23
|
* @typedef { import('../../types-internal.js').TranscriptEntry } TranscriptEntry
|
|
24
|
-
* @
|
|
25
|
-
* @
|
|
24
|
+
* @import {TranscriptDeliverySaveSnapshot} from '../../types-internal.js'
|
|
25
|
+
* @import {TranscriptDeliveryLoadSnapshot} from '../../types-internal.js'
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
// makeVatKeeper is a pure function: all state is kept in the argument object
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from '../../lib/message.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @
|
|
10
|
-
* @
|
|
11
|
-
* @
|
|
12
|
-
* @
|
|
13
|
-
* @
|
|
14
|
-
* @
|
|
9
|
+
* @import {VatDeliveryObject} from '@agoric/swingset-liveslots'
|
|
10
|
+
* @import {VatDeliveryResult} from '@agoric/swingset-liveslots'
|
|
11
|
+
* @import {VatSyscallObject} from '@agoric/swingset-liveslots'
|
|
12
|
+
* @import {VatSyscallResult} from '@agoric/swingset-liveslots'
|
|
13
|
+
* @import {VatManager} from '../../types-internal.js'
|
|
14
|
+
* @import {MakeSnapshot} from '../../types-internal.js'
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
// We use vat-centric terminology here, so "inbound" means "into a vat",
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
/// <reference path="../../types-ambient.js" />
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* @
|
|
15
|
-
* @
|
|
16
|
-
* @
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
19
|
-
* @
|
|
14
|
+
* @import {VatDeliveryObject} from '@agoric/swingset-liveslots'
|
|
15
|
+
* @import {VatDeliveryResult} from '@agoric/swingset-liveslots'
|
|
16
|
+
* @import {VatSyscallObject} from '@agoric/swingset-liveslots'
|
|
17
|
+
* @import {VatSyscallResult} from '@agoric/swingset-liveslots'
|
|
18
|
+
* @import {LiveSlotsOptions} from '@agoric/swingset-liveslots'
|
|
19
|
+
* @import {VatManagerFactory} from '../../types-internal.js'
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -214,8 +214,8 @@ export function makeXsSubprocessFactory({
|
|
|
214
214
|
parentLog(vatID, `deliverDone`, result.reply[0], result.reply.length);
|
|
215
215
|
// Attach the meterUsage to the deliver result.
|
|
216
216
|
/** @type { VatDeliveryResult } */
|
|
217
|
-
|
|
218
|
-
// @ts-
|
|
217
|
+
|
|
218
|
+
// @ts-expect-error I don't know how to appease tsc
|
|
219
219
|
const deliverResult = harden([
|
|
220
220
|
result.reply[0], // 'ok' or 'error'
|
|
221
221
|
result.reply[1] || null, // results or problem or null
|
|
@@ -5,19 +5,19 @@ import { insistVatDeliveryResult } from '../lib/message.js';
|
|
|
5
5
|
import djson from '../lib/djson.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @
|
|
9
|
-
* @
|
|
10
|
-
* @
|
|
11
|
-
* @
|
|
12
|
-
* @
|
|
13
|
-
* @
|
|
14
|
-
* @
|
|
15
|
-
* @
|
|
16
|
-
* @
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
19
|
-
* @
|
|
20
|
-
* @
|
|
8
|
+
* @import {VatDeliveryObject} from '@agoric/swingset-liveslots'
|
|
9
|
+
* @import {VatDeliveryResult} from '@agoric/swingset-liveslots'
|
|
10
|
+
* @import {VatSyscallObject} from '@agoric/swingset-liveslots'
|
|
11
|
+
* @import {VatSyscallResult} from '@agoric/swingset-liveslots'
|
|
12
|
+
* @import {VatSyscallHandler} from '@agoric/swingset-liveslots'
|
|
13
|
+
* @import {KernelDeliveryObject} from '../types-external.js'
|
|
14
|
+
* @import {VatManager} from '../types-internal.js'
|
|
15
|
+
* @import {VatID} from '../types-internal.js'
|
|
16
|
+
* @import {TranscriptDeliveryInitializeWorkerOptions} from '../types-internal.js'
|
|
17
|
+
* @import {TranscriptDeliveryInitializeWorker} from '../types-internal.js'
|
|
18
|
+
* @import {TranscriptDeliveryShutdownWorker} from '../types-internal.js'
|
|
19
|
+
* @import {TranscriptDeliveryResults} from '../types-internal.js'
|
|
20
|
+
* @import {TranscriptEntry} from '../types-internal.js'
|
|
21
21
|
* @typedef {{ body: string, slots: unknown[] }} Capdata
|
|
22
22
|
* @typedef { [unknown, ...unknown[]] } Tagged
|
|
23
23
|
* @typedef { { moduleFormat: string }} Bundle
|
|
@@ -344,7 +344,7 @@ export function makeVatWarehouse({
|
|
|
344
344
|
// initialize-worker event, to represent the vatLoader.create()
|
|
345
345
|
// we're about to do
|
|
346
346
|
if (options.useTranscript && vatKeeper.transcriptSize() === 0) {
|
|
347
|
-
/** @type {
|
|
347
|
+
/** @type { TranscriptDeliveryInitializeWorkerOptions } */
|
|
348
348
|
const initOpts = { source: {}, workerOptions: options.workerOptions };
|
|
349
349
|
// if the vat is somehow using a full bundle, we don't want that
|
|
350
350
|
// in the transcript: we only record bundleIDs
|
|
@@ -14,18 +14,18 @@ export function assertValidVatstoreKey(key) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
19
|
-
* @
|
|
20
|
-
* @
|
|
21
|
-
* @
|
|
22
|
-
* @
|
|
23
|
-
* @
|
|
24
|
-
* @
|
|
25
|
-
* @
|
|
26
|
-
* @
|
|
17
|
+
* @import {VatDeliveryObject} from '@agoric/swingset-liveslots'
|
|
18
|
+
* @import {VatDeliveryMessage} from '@agoric/swingset-liveslots'
|
|
19
|
+
* @import {VatDeliveryNotify} from '@agoric/swingset-liveslots'
|
|
20
|
+
* @import {VatDeliveryDropExports} from '@agoric/swingset-liveslots'
|
|
21
|
+
* @import {VatDeliveryRetireExports} from '@agoric/swingset-liveslots'
|
|
22
|
+
* @import {VatDeliveryRetireImports} from '@agoric/swingset-liveslots'
|
|
23
|
+
* @import {VatDeliveryChangeVatOptions} from '@agoric/swingset-liveslots'
|
|
24
|
+
* @import {VatDeliveryStartVat} from '@agoric/swingset-liveslots'
|
|
25
|
+
* @import {VatDeliveryStopVat} from '@agoric/swingset-liveslots'
|
|
26
|
+
* @import {VatDeliveryBringOutYourDead} from '@agoric/swingset-liveslots'
|
|
27
27
|
*
|
|
28
|
-
* @
|
|
28
|
+
* @import {VatOneResolution} from '@agoric/swingset-liveslots'
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
|
|
@@ -262,9 +262,9 @@ function makeTranslateKernelDeliveryToVatDelivery(vatID, kernelKeeper) {
|
|
|
262
262
|
return kernelDeliveryToVatDelivery;
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
|
-
* @
|
|
266
|
-
* @
|
|
267
|
-
* @
|
|
265
|
+
* @import {VatSyscallObject} from '@agoric/swingset-liveslots'
|
|
266
|
+
* @import {VatSyscallResult} from '@agoric/swingset-liveslots'
|
|
267
|
+
* @import {VatSyscallResultOk} from '@agoric/swingset-liveslots'
|
|
268
268
|
*/
|
|
269
269
|
|
|
270
270
|
/**
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import '../types-ambient.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @
|
|
9
|
-
* @
|
|
10
|
-
* @
|
|
11
|
-
* @
|
|
8
|
+
* @import {VatDeliveryObject} from '@agoric/swingset-liveslots'
|
|
9
|
+
* @import {VatDeliveryResult} from '@agoric/swingset-liveslots'
|
|
10
|
+
* @import {VatSyscallObject} from '@agoric/swingset-liveslots'
|
|
11
|
+
* @import {VatSyscallHandler} from '@agoric/swingset-liveslots'
|
|
12
12
|
* @typedef {import('@endo/marshal').CapData<string>} SwingSetCapData
|
|
13
13
|
* @typedef { (delivery: VatDeliveryObject) => (VatDeliveryResult | Promise<VatDeliveryResult>) } VatDispatcherSyncAsync
|
|
14
14
|
* @typedef { (delivery: VatDeliveryObject) => Promise<VatDeliveryResult> } VatDispatcher
|
package/src/types-ambient.js
CHANGED
|
@@ -1,123 +1,87 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @import {
|
|
3
|
+
* Bundle,
|
|
4
|
+
* BundleCap,
|
|
5
|
+
* BundleFormat,
|
|
6
|
+
* BundleID,
|
|
7
|
+
* BundleRef,
|
|
8
|
+
* BundleSpec,
|
|
9
|
+
* DeviceInvocation,
|
|
10
|
+
* DeviceInvocationResult,
|
|
11
|
+
* DeviceInvocationResultError,
|
|
12
|
+
* DeviceInvocationResultOk,
|
|
13
|
+
* EndoZipBase64Bundle,
|
|
14
|
+
* GetExportBundle,
|
|
15
|
+
* KernelDeliveryBringOutYourDead,
|
|
16
|
+
* KernelDeliveryChangeVatOptions,
|
|
17
|
+
* KernelDeliveryDropExports,
|
|
18
|
+
* KernelDeliveryMessage,
|
|
19
|
+
* KernelDeliveryNotify,
|
|
20
|
+
* KernelDeliveryObject,
|
|
21
|
+
* KernelDeliveryOneNotify,
|
|
22
|
+
* KernelDeliveryRetireExports,
|
|
23
|
+
* KernelDeliveryRetireImports,
|
|
24
|
+
* KernelDeliveryStartVat,
|
|
25
|
+
* KernelKeeper,
|
|
26
|
+
* KernelOneResolution,
|
|
27
|
+
* KernelOptions,
|
|
28
|
+
* KernelSlog,
|
|
29
|
+
* KernelSyscallDropImports,
|
|
30
|
+
* KernelSyscallExit,
|
|
31
|
+
* KernelSyscallInvoke,
|
|
32
|
+
* KernelSyscallObject,
|
|
33
|
+
* KernelSyscallResolve,
|
|
34
|
+
* KernelSyscallResult,
|
|
35
|
+
* KernelSyscallResultError,
|
|
36
|
+
* KernelSyscallResultOk,
|
|
37
|
+
* KernelSyscallRetireExports,
|
|
38
|
+
* KernelSyscallRetireImports,
|
|
39
|
+
* KernelSyscallSend,
|
|
40
|
+
* KernelSyscallSubscribe,
|
|
41
|
+
* KernelSyscallVatstoreDelete,
|
|
42
|
+
* KernelSyscallVatstoreGet,
|
|
43
|
+
* KernelSyscallVatstoreGetNextKey,
|
|
44
|
+
* KernelSyscallVatstoreSet,
|
|
45
|
+
* ManagerType,
|
|
46
|
+
* Message,
|
|
47
|
+
* MeteringVatPowers,
|
|
48
|
+
* NestedEvaluateBundle,
|
|
49
|
+
* PolicyInput,
|
|
50
|
+
* PolicyInputCrankComplete,
|
|
51
|
+
* PolicyInputCrankFailed,
|
|
52
|
+
* PolicyInputCreateVat,
|
|
53
|
+
* PolicyInputNone,
|
|
54
|
+
* PolicyOutput,
|
|
55
|
+
* ResolutionPolicy,
|
|
56
|
+
* RunPolicy,
|
|
57
|
+
* SlogFinishDelivery,
|
|
58
|
+
* SlogFinishSyscall,
|
|
59
|
+
* SnapshotResult,
|
|
60
|
+
* SnapStore,
|
|
61
|
+
* SourceOfBundle,
|
|
62
|
+
* SourceSpec,
|
|
63
|
+
* StaticVatPowers,
|
|
64
|
+
* SwingSetCapData,
|
|
65
|
+
* SwingSetConfig,
|
|
66
|
+
* SwingSetConfigDescriptor,
|
|
67
|
+
* SwingSetConfigProperties,
|
|
68
|
+
* SwingSetKernelConfig,
|
|
69
|
+
* TerminationVatPowers,
|
|
70
|
+
* VatKeeper,
|
|
71
|
+
* VatPowers,
|
|
72
|
+
* VatSlog,
|
|
73
|
+
* VatStats,
|
|
74
|
+
* WaitUntilQuiescent,
|
|
75
|
+
* XSnap,
|
|
76
|
+
* } from './types-external.js')
|
|
3
77
|
*/
|
|
4
78
|
|
|
5
79
|
/**
|
|
6
|
-
* @
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @typedef { import('./types-external.js').GetExportBundle } GetExportBundle
|
|
15
|
-
* @typedef { import('./types-external.js').NestedEvaluateBundle } NestedEvaluateBundle
|
|
16
|
-
* @typedef { import('./types-external.js').Bundle } Bundle
|
|
17
|
-
*
|
|
18
|
-
* @typedef { import('./types-external.js').ManagerType } ManagerType
|
|
19
|
-
* @typedef { import('./types-external.js').KernelOptions } KernelOptions
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* See ../docs/static-vats.md#vatpowers
|
|
24
|
-
*
|
|
25
|
-
* @typedef { import('./types-external.js').VatPowers } VatPowers
|
|
26
|
-
* @typedef { import('./types-external.js').StaticVatPowers } StaticVatPowers
|
|
27
|
-
* @typedef { import('./types-external.js').MeteringVatPowers } MeteringVatPowers
|
|
28
|
-
*
|
|
29
|
-
* @typedef { import('./types-external.js').TerminationVatPowers } TerminationVatPowers
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @typedef { import('./types-external.js').Message } Message
|
|
34
|
-
*
|
|
35
|
-
* @typedef { import('./types-external.js').ResolutionPolicy } ResolutionPolicy
|
|
36
|
-
*
|
|
37
|
-
* @typedef { import('./types-external.js').KernelDeliveryMessage } KernelDeliveryMessage
|
|
38
|
-
* @typedef { import('./types-external.js').KernelDeliveryOneNotify } KernelDeliveryOneNotify
|
|
39
|
-
* @typedef { import('./types-external.js').KernelDeliveryNotify } KernelDeliveryNotify
|
|
40
|
-
* @typedef { import('./types-external.js').KernelDeliveryDropExports } KernelDeliveryDropExports
|
|
41
|
-
* @typedef { import('./types-external.js').KernelDeliveryRetireExports } KernelDeliveryRetireExports
|
|
42
|
-
* @typedef { import('./types-external.js').KernelDeliveryRetireImports } KernelDeliveryRetireImports
|
|
43
|
-
* @typedef { import('./types-external.js').KernelDeliveryStartVat } KernelDeliveryStartVat
|
|
44
|
-
* @typedef { import('./types-external.js').KernelDeliveryChangeVatOptions } KernelDeliveryChangeVatOptions
|
|
45
|
-
* @typedef { import('./types-external.js').KernelDeliveryBringOutYourDead } KernelDeliveryBringOutYourDead
|
|
46
|
-
* @typedef { import('./types-external.js').KernelDeliveryObject } KernelDeliveryObject
|
|
47
|
-
* @typedef { import('./types-external.js').KernelSyscallSend } KernelSyscallSend
|
|
48
|
-
* @typedef { import('./types-external.js').KernelSyscallInvoke } KernelSyscallInvoke
|
|
49
|
-
* @typedef { import('./types-external.js').KernelSyscallSubscribe } KernelSyscallSubscribe
|
|
50
|
-
* @typedef { import('./types-external.js').KernelOneResolution } KernelOneResolution
|
|
51
|
-
* @typedef { import('./types-external.js').KernelSyscallResolve } KernelSyscallResolve
|
|
52
|
-
* @typedef { import('./types-external.js').KernelSyscallExit } KernelSyscallExit
|
|
53
|
-
* @typedef { import('./types-external.js').KernelSyscallVatstoreGet } KernelSyscallVatstoreGet
|
|
54
|
-
* @typedef { import('./types-external.js').KernelSyscallVatstoreGetNextKey } KernelSyscallVatstoreGetNextKey
|
|
55
|
-
* @typedef { import('./types-external.js').KernelSyscallVatstoreSet } KernelSyscallVatstoreSet
|
|
56
|
-
* @typedef { import('./types-external.js').KernelSyscallVatstoreDelete } KernelSyscallVatstoreDelete
|
|
57
|
-
* @typedef { import('./types-external.js').KernelSyscallDropImports } KernelSyscallDropImports
|
|
58
|
-
* @typedef { import('./types-external.js').KernelSyscallRetireImports } KernelSyscallRetireImports
|
|
59
|
-
* @typedef { import('./types-external.js').KernelSyscallRetireExports } KernelSyscallRetireExports
|
|
60
|
-
*
|
|
61
|
-
* @typedef { import('./types-external.js').KernelSyscallObject } KernelSyscallObject
|
|
62
|
-
* @typedef { import('./types-external.js').KernelSyscallResultOk } KernelSyscallResultOk
|
|
63
|
-
* @typedef { import('./types-external.js').KernelSyscallResultError } KernelSyscallResultError
|
|
64
|
-
* @typedef { import('./types-external.js').KernelSyscallResult } KernelSyscallResult
|
|
65
|
-
*
|
|
66
|
-
* @typedef { import('./types-external.js').DeviceInvocation } DeviceInvocation
|
|
67
|
-
* @typedef { import('./types-external.js').DeviceInvocationResultOk } DeviceInvocationResultOk
|
|
68
|
-
* @typedef { import('./types-external.js').DeviceInvocationResultError } DeviceInvocationResultError
|
|
69
|
-
* @typedef { import('./types-external.js').DeviceInvocationResult } DeviceInvocationResult
|
|
70
|
-
*
|
|
71
|
-
* @typedef { import('./types-external.js').VatStats } VatStats
|
|
72
|
-
* @typedef { import('./types-external.js').VatKeeper } VatKeeper
|
|
73
|
-
* @typedef { import('./types-external.js').KernelKeeper } KernelKeeper
|
|
74
|
-
* @typedef { import('./types-external.js').XSnap } XSnap
|
|
75
|
-
* @typedef { import('./types-external.js').SlogFinishDelivery } SlogFinishDelivery
|
|
76
|
-
* @typedef { import('./types-external.js').SlogFinishSyscall } SlogFinishSyscall
|
|
77
|
-
* @typedef { import('./types-external.js').KernelSlog } KernelSlog
|
|
78
|
-
* @typedef { import('./types-external.js').VatSlog } VatSlog
|
|
79
|
-
*
|
|
80
|
-
* @typedef { import('./types-external.js').SnapStore } SnapStore
|
|
81
|
-
* @typedef { import('./types-external.js').SnapshotResult } SnapshotResult
|
|
82
|
-
* @typedef { import('./types-external.js').WaitUntilQuiescent } WaitUntilQuiescent
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @typedef { import('./types-external.js').SourceSpec } SourceSpec
|
|
87
|
-
* @typedef { import('./types-external.js').BundleSpec } BundleSpec
|
|
88
|
-
* @typedef { import('./types-external.js').BundleRef } BundleRef
|
|
89
|
-
* @typedef { import('./types-external.js').SwingSetConfigProperties } SwingSetConfigProperties
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @typedef { import('./types-external.js').SwingSetConfigDescriptor } SwingSetConfigDescriptor
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @typedef { import('./types-external.js').SwingSetConfig } SwingSetConfig
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @typedef { import('./types-external.js').SwingSetKernelConfig } SwingSetKernelConfig
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @typedef { import('./types-external.js').SourceOfBundle } SourceOfBundle
|
|
106
|
-
*/
|
|
107
|
-
/**
|
|
108
|
-
* @typedef { import('@agoric/swing-store').KVStore } KVStore
|
|
109
|
-
* @typedef { import('@agoric/swing-store').TranscriptStore } TranscriptStore
|
|
110
|
-
* @typedef { import('@agoric/swing-store').SwingStore } SwingStore
|
|
111
|
-
* @typedef { import('@agoric/swing-store').SwingStoreKernelStorage } SwingStoreKernelStorage
|
|
112
|
-
* @typedef { import('@agoric/swing-store').SwingStoreHostStorage } SwingStoreHostStorage
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @typedef { import('./types-external.js').PolicyInputNone } PolicyInputNone
|
|
117
|
-
* @typedef { import('./types-external.js').PolicyInputCreateVat } PolicyInputCreateVat
|
|
118
|
-
* @typedef { import('./types-external.js').PolicyInputCrankComplete } PolicyInputCrankComplete
|
|
119
|
-
* @typedef { import('./types-external.js').PolicyInputCrankFailed } PolicyInputCrankFailed
|
|
120
|
-
* @typedef { import('./types-external.js').PolicyInput } PolicyInput
|
|
121
|
-
* @typedef { import('./types-external.js').PolicyOutput } PolicyOutput
|
|
122
|
-
* @typedef { import('./types-external.js').RunPolicy } RunPolicy
|
|
80
|
+
* @import {
|
|
81
|
+
* KVStore,
|
|
82
|
+
* TranscriptStore,
|
|
83
|
+
* SwingStore,
|
|
84
|
+
* SwingStoreKernelStorage,
|
|
85
|
+
* SwingStoreHostStorage,
|
|
86
|
+
* } from '@agoric/swing-store'
|
|
123
87
|
*/
|
|
@@ -20,12 +20,12 @@ import { TimeMath } from '@agoric/time';
|
|
|
20
20
|
// client). Everything else should remain in the DB.
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @
|
|
24
|
-
* @
|
|
25
|
-
* @
|
|
26
|
-
* @
|
|
27
|
-
* @
|
|
28
|
-
* @
|
|
23
|
+
* @import {Timestamp} from '@agoric/time'
|
|
24
|
+
* @import {TimestampRecord} from '@agoric/time'
|
|
25
|
+
* @import {TimestampValue} from '@agoric/time'
|
|
26
|
+
* @import {RelativeTime} from '@agoric/time'
|
|
27
|
+
* @import {RelativeTimeValue} from '@agoric/time'
|
|
28
|
+
* @import {TimerService} from '@agoric/time'
|
|
29
29
|
*
|
|
30
30
|
* @typedef {object} Handler
|
|
31
31
|
* Handler is a user-provided Far object with .wake(time) used for callbacks
|
package/tools/manual-timer.js
CHANGED
|
@@ -6,9 +6,9 @@ import { TimeMath } from '@agoric/time';
|
|
|
6
6
|
import { buildRootObject } from '../src/vats/timer/vat-timer.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @
|
|
10
|
-
* @
|
|
11
|
-
* @
|
|
9
|
+
* @import {Timestamp} from '@agoric/time'
|
|
10
|
+
* @import {TimerService} from '@agoric/time'
|
|
11
|
+
* @import {Waker} from '../src/devices/timer/device-timer.js'
|
|
12
12
|
*
|
|
13
13
|
* @typedef {object} ManualTimerCallbacks
|
|
14
14
|
* @property {(newTime: bigint, msg?: string) => void} [advanceTo]
|