@agoric/vats 0.15.2-dev-d54b98a.0 → 0.15.2-dev-fbd8633.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/proposals/network-proposal.d.ts +17 -23
- package/src/proposals/network-proposal.d.ts.map +1 -1
- package/src/proposals/network-proposal.js +23 -23
- package/src/vat-network.d.ts +10 -4
- package/src/vat-network.d.ts.map +1 -1
- package/src/vat-network.js +9 -2
- package/tools/boot-test-utils.d.ts +8 -18
- package/tools/boot-test-utils.d.ts.map +1 -1
- package/tools/boot-test-utils.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vats",
|
|
3
|
-
"version": "0.15.2-dev-
|
|
3
|
+
"version": "0.15.2-dev-fbd8633.0+fbd8633",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/assert": "0.6.1-dev-
|
|
26
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
27
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
28
|
-
"@agoric/governance": "0.10.4-dev-
|
|
29
|
-
"@agoric/internal": "0.3.3-dev-
|
|
30
|
-
"@agoric/network": "0.1.1-dev-
|
|
31
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
32
|
-
"@agoric/store": "0.9.3-dev-
|
|
33
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
34
|
-
"@agoric/time": "0.3.3-dev-
|
|
35
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
36
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
37
|
-
"@agoric/zone": "0.2.3-dev-
|
|
25
|
+
"@agoric/assert": "0.6.1-dev-fbd8633.0+fbd8633",
|
|
26
|
+
"@agoric/cosmic-proto": "0.4.1-dev-fbd8633.0+fbd8633",
|
|
27
|
+
"@agoric/ertp": "0.16.3-dev-fbd8633.0+fbd8633",
|
|
28
|
+
"@agoric/governance": "0.10.4-dev-fbd8633.0+fbd8633",
|
|
29
|
+
"@agoric/internal": "0.3.3-dev-fbd8633.0+fbd8633",
|
|
30
|
+
"@agoric/network": "0.1.1-dev-fbd8633.0+fbd8633",
|
|
31
|
+
"@agoric/notifier": "0.6.3-dev-fbd8633.0+fbd8633",
|
|
32
|
+
"@agoric/store": "0.9.3-dev-fbd8633.0+fbd8633",
|
|
33
|
+
"@agoric/swingset-vat": "0.32.3-dev-fbd8633.0+fbd8633",
|
|
34
|
+
"@agoric/time": "0.3.3-dev-fbd8633.0+fbd8633",
|
|
35
|
+
"@agoric/vat-data": "0.5.3-dev-fbd8633.0+fbd8633",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-fbd8633.0+fbd8633",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-fbd8633.0+fbd8633",
|
|
38
38
|
"@endo/base64": "^1.0.4",
|
|
39
39
|
"@endo/far": "^1.1.1",
|
|
40
40
|
"@endo/import-bundle": "^1.1.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"jessie.js": "^0.3.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
49
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-fbd8633.0+fbd8633",
|
|
50
50
|
"@endo/bundle-source": "^3.2.2",
|
|
51
51
|
"@endo/init": "^1.1.1",
|
|
52
52
|
"ava": "^5.3.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"typeCoverage": {
|
|
80
80
|
"atLeast": 91.5
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "fbd8633ae9f8420a589dd9bc32925418f2dde060"
|
|
83
83
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export function registerNetworkProtocols(vats: SoloVats | NetVats, dibcBridgeManager?: ERef<import("../types.js").ScopedBridgeManager> | undefined): Promise<void>;
|
|
2
|
-
export function setupNetworkProtocols({ consume: { client, loadCriticalVat, bridgeManager: bridgeManagerP, provisioning, vatUpgradeInfo: vatUpgradeInfoP, }, produce: {
|
|
2
|
+
export function setupNetworkProtocols({ consume: { client, loadCriticalVat, bridgeManager: bridgeManagerP, provisioning, vatUpgradeInfo: vatUpgradeInfoP, }, produce: { portAllocator, vatUpgradeInfo: produceVatUpgradeInfo }, }: BootstrapPowers & {
|
|
3
3
|
consume: {
|
|
4
4
|
loadCriticalVat: VatLoader<any>;
|
|
5
5
|
};
|
|
6
6
|
produce: {
|
|
7
|
-
|
|
7
|
+
portAllocator: Producer<any>;
|
|
8
8
|
};
|
|
9
9
|
}, options: {
|
|
10
10
|
options: {
|
|
@@ -27,7 +27,7 @@ export function getManifestForNetwork(_powers: any, { networkRef, ibcRef }: {
|
|
|
27
27
|
vatUpgradeInfo: boolean;
|
|
28
28
|
};
|
|
29
29
|
produce: {
|
|
30
|
-
|
|
30
|
+
portAllocator: string;
|
|
31
31
|
vatUpgradeInfo: boolean;
|
|
32
32
|
};
|
|
33
33
|
zone: boolean;
|
|
@@ -39,43 +39,37 @@ export function getManifestForNetwork(_powers: any, { networkRef, ibcRef }: {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
|
-
* Create the network and IBC vats; produce `
|
|
43
|
-
* space.
|
|
42
|
+
* Create the network and IBC vats; produce `portAllocator` in the core /
|
|
43
|
+
* bootstrap space.
|
|
44
44
|
*
|
|
45
|
-
* The `
|
|
46
|
-
* ports using `E(
|
|
47
|
-
* `ProtocolHandler` docs, _path_ is:
|
|
48
|
-
*
|
|
49
|
-
* - /ibc-port/NAME for an IBC port with a known name or,
|
|
50
|
-
* - /ibc-port/ for an IBC port with a fresh name.
|
|
45
|
+
* The `portAllocator` is CLOSELY HELD in the core space, where later, we claim
|
|
46
|
+
* ports using `E(portAllocator).allocateCustomIBCPort`, for example.
|
|
51
47
|
*
|
|
52
48
|
* Contracts are expected to use the services of the network and IBC vats by way
|
|
53
49
|
* of such ports.
|
|
54
50
|
*
|
|
55
51
|
* Testing facilities include:
|
|
56
52
|
*
|
|
57
|
-
* - loopback ports: `E(
|
|
58
|
-
* - an echo port: `E(
|
|
53
|
+
* - loopback ports: `E(portAllocator).allocateCustomLocalPort()`
|
|
54
|
+
* - an echo port: `E(portAllocator).allocateCustomIBCPort("echo")`
|
|
55
|
+
* - echo port addrees: /ibc-port/custom-echo
|
|
59
56
|
*/
|
|
60
57
|
export type VatLoader2 = ((name: "network") => NetworkVat) & ((name: "ibc") => IBCVat);
|
|
61
58
|
/**
|
|
62
|
-
* Create the network and IBC vats; produce `
|
|
63
|
-
* space.
|
|
64
|
-
*
|
|
65
|
-
* The `networkVat` is CLOSELY HELD in the core space, where later, we claim
|
|
66
|
-
* ports using `E(networkVat).bindPort(_path_)`. As discussed in
|
|
67
|
-
* `ProtocolHandler` docs, _path_ is:
|
|
59
|
+
* Create the network and IBC vats; produce `portAllocator` in the core /
|
|
60
|
+
* bootstrap space.
|
|
68
61
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
62
|
+
* The `portAllocator` is CLOSELY HELD in the core space, where later, we claim
|
|
63
|
+
* ports using `E(portAllocator).allocateCustomIBCPort`, for example.
|
|
71
64
|
*
|
|
72
65
|
* Contracts are expected to use the services of the network and IBC vats by way
|
|
73
66
|
* of such ports.
|
|
74
67
|
*
|
|
75
68
|
* Testing facilities include:
|
|
76
69
|
*
|
|
77
|
-
* - loopback ports: `E(
|
|
78
|
-
* - an echo port: `E(
|
|
70
|
+
* - loopback ports: `E(portAllocator).allocateCustomLocalPort()`
|
|
71
|
+
* - an echo port: `E(portAllocator).allocateCustomIBCPort("echo")`
|
|
72
|
+
* - echo port addrees: /ibc-port/custom-echo
|
|
79
73
|
*/
|
|
80
74
|
export type NetVats = {
|
|
81
75
|
network: ERef<NetworkVat>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-proposal.d.ts","sourceRoot":"","sources":["network-proposal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"network-proposal.d.ts","sourceRoot":"","sources":["network-proposal.js"],"names":[],"mappings":"AAmBO,+CAHI,QAAQ,GAAG,OAAO,kGAuC5B;AAkCM,mOAhBI,eAAe,GAAG;IAC5B,OAAW,EAAE;QAAE,eAAe,EAAE,SAAS,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;IACjD,OAAW,EAAE;QAAE,aAAa,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;CAC3C;IAEmE,OAAO,EAAnE;QAAE,UAAU,EAAE,YAAY,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE;kBAgF5D;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;EAsBL;;;;;;;;;;;;;;;;;yBArGW,CAAC,CAAC,IAAI,EAAE,SAAS,KAAK,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC"}
|
|
@@ -12,7 +12,6 @@ import { makeScalarBigMapStore } from '@agoric/vat-data';
|
|
|
12
12
|
import { when } from '@agoric/vat-data/vow.js';
|
|
13
13
|
|
|
14
14
|
const NUM_IBC_PORTS_PER_CLIENT = 3;
|
|
15
|
-
const INTERCHAIN_ACCOUNT_CONTROLLER_PORT_PREFIX = 'icacontroller-';
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* @param {SoloVats | NetVats} vats
|
|
@@ -57,27 +56,24 @@ export const registerNetworkProtocols = async (vats, dibcBridgeManager) => {
|
|
|
57
56
|
};
|
|
58
57
|
|
|
59
58
|
/**
|
|
60
|
-
* Create the network and IBC vats; produce `
|
|
61
|
-
* space.
|
|
59
|
+
* Create the network and IBC vats; produce `portAllocator` in the core /
|
|
60
|
+
* bootstrap space.
|
|
62
61
|
*
|
|
63
|
-
* The `
|
|
64
|
-
* ports using `E(
|
|
65
|
-
* `ProtocolHandler` docs, _path_ is:
|
|
66
|
-
*
|
|
67
|
-
* - /ibc-port/NAME for an IBC port with a known name or,
|
|
68
|
-
* - /ibc-port/ for an IBC port with a fresh name.
|
|
62
|
+
* The `portAllocator` is CLOSELY HELD in the core space, where later, we claim
|
|
63
|
+
* ports using `E(portAllocator).allocateCustomIBCPort`, for example.
|
|
69
64
|
*
|
|
70
65
|
* Contracts are expected to use the services of the network and IBC vats by way
|
|
71
66
|
* of such ports.
|
|
72
67
|
*
|
|
73
68
|
* Testing facilities include:
|
|
74
69
|
*
|
|
75
|
-
* - loopback ports: `E(
|
|
76
|
-
* - an echo port: `E(
|
|
70
|
+
* - loopback ports: `E(portAllocator).allocateCustomLocalPort()`
|
|
71
|
+
* - an echo port: `E(portAllocator).allocateCustomIBCPort("echo")`
|
|
72
|
+
* - echo port addrees: /ibc-port/custom-echo
|
|
77
73
|
*
|
|
78
74
|
* @param {BootstrapPowers & {
|
|
79
75
|
* consume: { loadCriticalVat: VatLoader<any> };
|
|
80
|
-
* produce: {
|
|
76
|
+
* produce: { portAllocator: Producer<any> };
|
|
81
77
|
* }} powers
|
|
82
78
|
* @param {object} options
|
|
83
79
|
* @param {{ networkRef: VatSourceRef; ibcRef: VatSourceRef }} options.options
|
|
@@ -100,7 +96,7 @@ export const setupNetworkProtocols = async (
|
|
|
100
96
|
provisioning,
|
|
101
97
|
vatUpgradeInfo: vatUpgradeInfoP,
|
|
102
98
|
},
|
|
103
|
-
produce: {
|
|
99
|
+
produce: { portAllocator, vatUpgradeInfo: produceVatUpgradeInfo },
|
|
104
100
|
},
|
|
105
101
|
options,
|
|
106
102
|
) => {
|
|
@@ -121,27 +117,31 @@ export const setupNetworkProtocols = async (
|
|
|
121
117
|
info.init('ibc', ibcRef);
|
|
122
118
|
info.init('network', networkRef);
|
|
123
119
|
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
const portAllocatorP = E(vats.network).getPortAllocator();
|
|
121
|
+
|
|
122
|
+
portAllocator.reset();
|
|
123
|
+
portAllocator.resolve(portAllocatorP);
|
|
124
|
+
|
|
125
|
+
const allocator = await portAllocatorP;
|
|
126
|
+
|
|
126
127
|
const bridgeManager = await bridgeManagerP;
|
|
127
128
|
const dibcBridgeManager =
|
|
128
129
|
bridgeManager && E(bridgeManager).register(BRIDGE_ID.DIBC);
|
|
129
130
|
|
|
130
131
|
// The Interchain Account (ICA) Controller must be bound to a port that starts
|
|
131
132
|
// with 'icacontroller', so we provide one such port to each client.
|
|
132
|
-
let lastICAPort = 0;
|
|
133
133
|
const makePorts = async () => {
|
|
134
134
|
// Bind to some fresh ports (either unspecified name or `icacontroller-*`)
|
|
135
135
|
// on the IBC implementation and provide them for the user to have.
|
|
136
136
|
const ibcportP = [];
|
|
137
137
|
for (let i = 0; i < NUM_IBC_PORTS_PER_CLIENT; i += 1) {
|
|
138
|
-
let bindAddr = '/ibc-port/';
|
|
139
138
|
if (i === NUM_IBC_PORTS_PER_CLIENT - 1) {
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
const portP = when(E(allocator).allocateICAControllerPort());
|
|
140
|
+
ibcportP.push(portP);
|
|
141
|
+
} else {
|
|
142
|
+
const portP = when(E(allocator).allocateCustomIBCPort());
|
|
143
|
+
ibcportP.push(portP);
|
|
142
144
|
}
|
|
143
|
-
const port = when(E(vats.network).bindPort(bindAddr));
|
|
144
|
-
ibcportP.push(port);
|
|
145
145
|
}
|
|
146
146
|
return Promise.all(ibcportP);
|
|
147
147
|
};
|
|
@@ -152,7 +152,7 @@ export const setupNetworkProtocols = async (
|
|
|
152
152
|
await registerNetworkProtocols(vats, dibcBridgeManager);
|
|
153
153
|
|
|
154
154
|
// Add an echo listener on our ibc-port network (whether real or virtual).
|
|
155
|
-
const echoPort = await when(E(
|
|
155
|
+
const echoPort = await when(E(allocator).allocateCustomIBCPort('echo'));
|
|
156
156
|
const { listener } = await E(vats.network).makeEchoConnectionKit();
|
|
157
157
|
await when(E(echoPort).addListener(listener));
|
|
158
158
|
return E(client).assignBundle([_a => ({ ibcport: makePorts() })]);
|
|
@@ -170,7 +170,7 @@ export const getManifestForNetwork = (_powers, { networkRef, ibcRef }) => ({
|
|
|
170
170
|
vatUpgradeInfo: true,
|
|
171
171
|
},
|
|
172
172
|
produce: {
|
|
173
|
-
|
|
173
|
+
portAllocator: 'portAllocator',
|
|
174
174
|
vatUpgradeInfo: true,
|
|
175
175
|
},
|
|
176
176
|
zone: true,
|
package/src/vat-network.d.ts
CHANGED
|
@@ -26,8 +26,11 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
26
26
|
registerProtocolHandler: (paths: string[], protocolHandler: Remote<ProtocolHandler>) => void;
|
|
27
27
|
/** @param {Parameters<typeof protocol.unregisterProtocolHandler>} args */
|
|
28
28
|
unregisterProtocolHandler: (prefix: string, protocolHandler: Remote<ProtocolHandler>) => void;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
getPortAllocator(): import("@endo/exo").Guarded<{
|
|
30
|
+
allocateCustomIBCPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
|
|
31
|
+
allocateICAControllerPort(): import("@agoric/vow").Vow<any>;
|
|
32
|
+
allocateCustomLocalPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
|
|
33
|
+
}>;
|
|
31
34
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
32
35
|
makeLoopbackProtocolHandler: (instancePrefix?: string | undefined) => import("@endo/exo").Guarded<{
|
|
33
36
|
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
|
|
@@ -56,7 +59,10 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
56
59
|
registerProtocolHandler: (paths: string[], protocolHandler: Remote<ProtocolHandler>) => void;
|
|
57
60
|
/** @param {Parameters<typeof protocol.unregisterProtocolHandler>} args */
|
|
58
61
|
unregisterProtocolHandler: (prefix: string, protocolHandler: Remote<ProtocolHandler>) => void;
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
getPortAllocator(): import("@endo/exo").Guarded<{
|
|
63
|
+
allocateCustomIBCPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
|
|
64
|
+
allocateICAControllerPort(): import("@agoric/vow").Vow<any>;
|
|
65
|
+
allocateCustomLocalPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
|
|
66
|
+
}>;
|
|
61
67
|
}>;
|
|
62
68
|
//# sourceMappingURL=vat-network.d.ts.map
|
package/src/vat-network.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-network.d.ts","sourceRoot":"","sources":["vat-network.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vat-network.d.ts","sourceRoot":"","sources":["vat-network.js"],"names":[],"mappings":"AAWA;;;;;yCAqCusmC,QAAQ,cAA+B,QAAQ;;;sDAAktE,QAAQ;;;;;mCAA1iJ,UAAU,SAAiC,KAAK,sBAA2B,iBAAiB;iCAAoR,UAAU,YAAiC,WAAW;;;;;;;;;;IAXx0iC,wEAAwE;;IAGxE,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAH1E,wEAAwE;;IAGxE,0EAA0E;;;;;;;GAO7E"}
|
package/src/vat-network.js
CHANGED
|
@@ -3,6 +3,7 @@ import { makeDurableZone } from '@agoric/zone/durable.js';
|
|
|
3
3
|
import {
|
|
4
4
|
prepareEchoConnectionKit,
|
|
5
5
|
prepareLoopbackProtocolHandler,
|
|
6
|
+
preparePortAllocator,
|
|
6
7
|
prepareRouterProtocol,
|
|
7
8
|
} from '@agoric/network';
|
|
8
9
|
import { prepareVowTools } from '@agoric/vat-data/vow.js';
|
|
@@ -20,6 +21,11 @@ export function buildRootObject(_vatPowers, _args, baggage) {
|
|
|
20
21
|
makeRouterProtocol(),
|
|
21
22
|
);
|
|
22
23
|
|
|
24
|
+
const makePortAllocator = preparePortAllocator(zone, powers);
|
|
25
|
+
const portAllocator = zone.makeOnce('PortAllocator', _key =>
|
|
26
|
+
makePortAllocator({ protocol }),
|
|
27
|
+
);
|
|
28
|
+
|
|
23
29
|
const makeLoopbackProtocolHandler = prepareLoopbackProtocolHandler(
|
|
24
30
|
zone,
|
|
25
31
|
powers,
|
|
@@ -35,7 +41,8 @@ export function buildRootObject(_vatPowers, _args, baggage) {
|
|
|
35
41
|
/** @param {Parameters<typeof protocol.unregisterProtocolHandler>} args */
|
|
36
42
|
unregisterProtocolHandler: (...args) =>
|
|
37
43
|
protocol.unregisterProtocolHandler(...args),
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
getPortAllocator() {
|
|
45
|
+
return portAllocator;
|
|
46
|
+
},
|
|
40
47
|
});
|
|
41
48
|
}
|
|
@@ -65,19 +65,9 @@ export function makeMock(log: any): {
|
|
|
65
65
|
network: {
|
|
66
66
|
registerProtocolHandler: () => void;
|
|
67
67
|
makeLoopbackProtocolHandler: () => void;
|
|
68
|
-
bindPort: () => {
|
|
69
|
-
addListener: () => void;
|
|
70
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
71
|
-
addListener: () => void;
|
|
72
|
-
}>;
|
|
73
68
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
74
69
|
registerProtocolHandler: () => void;
|
|
75
70
|
makeLoopbackProtocolHandler: () => void;
|
|
76
|
-
bindPort: () => {
|
|
77
|
-
addListener: () => void;
|
|
78
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
79
|
-
addListener: () => void;
|
|
80
|
-
}>;
|
|
81
71
|
}>;
|
|
82
72
|
};
|
|
83
73
|
};
|
|
@@ -88,11 +78,11 @@ export function makePopulatedFakeVatAdmin(): {
|
|
|
88
78
|
adminNode: {
|
|
89
79
|
done: () => Promise<any>;
|
|
90
80
|
terminateWithFailure: () => void;
|
|
91
|
-
upgrade: (_bundleCap: any, _options: any) => never;
|
|
81
|
+
upgrade: (_bundleCap: any, _options: any) => never; /** @type {import('@agoric/swingset-vat').VatAdminFacet} */
|
|
92
82
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
93
83
|
done: () => Promise<any>;
|
|
94
84
|
terminateWithFailure: () => void;
|
|
95
|
-
upgrade: (_bundleCap: any, _options: any) => never;
|
|
85
|
+
upgrade: (_bundleCap: any, _options: any) => never; /** @type {import('@agoric/swingset-vat').VatAdminFacet} */
|
|
96
86
|
}>;
|
|
97
87
|
}> | {
|
|
98
88
|
root: any;
|
|
@@ -103,11 +93,11 @@ export function makePopulatedFakeVatAdmin(): {
|
|
|
103
93
|
adminNode: {
|
|
104
94
|
done: () => Promise<any>;
|
|
105
95
|
terminateWithFailure: () => void;
|
|
106
|
-
upgrade: (_bundleCap: any, _options: any) => never;
|
|
96
|
+
upgrade: (_bundleCap: any, _options: any) => never; /** @type {import('@agoric/swingset-vat').VatAdminFacet} */
|
|
107
97
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
108
98
|
done: () => Promise<any>;
|
|
109
99
|
terminateWithFailure: () => void;
|
|
110
|
-
upgrade: (_bundleCap: any, _options: any) => never;
|
|
100
|
+
upgrade: (_bundleCap: any, _options: any) => never; /** @type {import('@agoric/swingset-vat').VatAdminFacet} */
|
|
111
101
|
}>;
|
|
112
102
|
} | {
|
|
113
103
|
root: any;
|
|
@@ -123,11 +113,11 @@ export function makePopulatedFakeVatAdmin(): {
|
|
|
123
113
|
adminNode: {
|
|
124
114
|
done: () => Promise<any>;
|
|
125
115
|
terminateWithFailure: () => void;
|
|
126
|
-
upgrade: (_bundleCap: any, _options: any) => never;
|
|
116
|
+
upgrade: (_bundleCap: any, _options: any) => never; /** @type {import('@agoric/swingset-vat').VatAdminFacet} */
|
|
127
117
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
128
118
|
done: () => Promise<any>;
|
|
129
119
|
terminateWithFailure: () => void;
|
|
130
|
-
upgrade: (_bundleCap: any, _options: any) => never;
|
|
120
|
+
upgrade: (_bundleCap: any, _options: any) => never; /** @type {import('@agoric/swingset-vat').VatAdminFacet} */
|
|
131
121
|
}>;
|
|
132
122
|
}> | {
|
|
133
123
|
root: any;
|
|
@@ -138,11 +128,11 @@ export function makePopulatedFakeVatAdmin(): {
|
|
|
138
128
|
adminNode: {
|
|
139
129
|
done: () => Promise<any>;
|
|
140
130
|
terminateWithFailure: () => void;
|
|
141
|
-
upgrade: (_bundleCap: any, _options: any) => never;
|
|
131
|
+
upgrade: (_bundleCap: any, _options: any) => never; /** @type {import('@agoric/swingset-vat').VatAdminFacet} */
|
|
142
132
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
143
133
|
done: () => Promise<any>;
|
|
144
134
|
terminateWithFailure: () => void;
|
|
145
|
-
upgrade: (_bundleCap: any, _options: any) => never;
|
|
135
|
+
upgrade: (_bundleCap: any, _options: any) => never; /** @type {import('@agoric/swingset-vat').VatAdminFacet} */
|
|
146
136
|
}>;
|
|
147
137
|
} | {
|
|
148
138
|
root: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot-test-utils.d.ts","sourceRoot":"","sources":["boot-test-utils.js"],"names":[],"mappings":";;;;;;;;;;;AAiCO,6BAAqB;AAE5B,qBAAqB;AACrB,yBADW,MAAM,CACgB;AAE1B;;;;;;;iBAGmB,GAAG;iBACH,GAAG;eAGL,GAAG;gBACF,GAAG;;;eAIJ,GAAG
|
|
1
|
+
{"version":3,"file":"boot-test-utils.d.ts","sourceRoot":"","sources":["boot-test-utils.js"],"names":[],"mappings":";;;;;;;;;;;AAiCO,6BAAqB;AAE5B,qBAAqB;AACrB,yBADW,MAAM,CACgB;AAE1B;;;;;;;iBAGmB,GAAG;iBACH,GAAG;eAGL,GAAG;gBACF,GAAG;;;eAIJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BvB;AAEG;;;;;;;oEA+CD,2DAA2D;;;;oEAA3D,2DAA2D;;;;;;;;;;;oEAA3D,2DAA2D;;;;oEAA3D,2DAA2D;;;;;;;;;;;;;;;;oEAA3D,2DAA2D;;;;oEAA3D,2DAA2D;;;;;;;;;;;oEAA3D,2DAA2D;;;;oEAA3D,2DAA2D;;;;;;;;;;;;EAkBhE;AAEM,iDAON;mDAjJkD,2BAA2B;4CAClC,oBAAoB;6CACnB,qBAAqB;2CACvB,mBAAmB;6CACjB,qBAAqB;+CACnB,uBAAuB;sDAChB,8BAA8B;oDAChC,4BAA4B;2CACrC,mBAAmB"}
|