@agoric/vats 0.15.2-dev-e468caa.0 → 0.15.2-dev-8c3395c.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 +8 -8
- package/src/proposals/network-proposal.js +6 -6
- package/src/vat-network.d.ts +4 -4
- package/src/vat-network.d.ts.map +1 -1
- package/src/vat-network.js +2 -2
- package/tools/boot-test-utils.d.ts +2 -2
- package/tools/boot-test-utils.js +1 -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-8c3395c.0+8c3395c",
|
|
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-8c3395c.0+8c3395c",
|
|
26
|
+
"@agoric/cosmic-proto": "0.4.1-dev-8c3395c.0+8c3395c",
|
|
27
|
+
"@agoric/ertp": "0.16.3-dev-8c3395c.0+8c3395c",
|
|
28
|
+
"@agoric/governance": "0.10.4-dev-8c3395c.0+8c3395c",
|
|
29
|
+
"@agoric/internal": "0.3.3-dev-8c3395c.0+8c3395c",
|
|
30
|
+
"@agoric/network": "0.1.1-dev-8c3395c.0+8c3395c",
|
|
31
|
+
"@agoric/notifier": "0.6.3-dev-8c3395c.0+8c3395c",
|
|
32
|
+
"@agoric/store": "0.9.3-dev-8c3395c.0+8c3395c",
|
|
33
|
+
"@agoric/swingset-vat": "0.32.3-dev-8c3395c.0+8c3395c",
|
|
34
|
+
"@agoric/time": "0.3.3-dev-8c3395c.0+8c3395c",
|
|
35
|
+
"@agoric/vat-data": "0.5.3-dev-8c3395c.0+8c3395c",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-8c3395c.0+8c3395c",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-8c3395c.0+8c3395c",
|
|
38
38
|
"@endo/far": "^1.1.1",
|
|
39
39
|
"@endo/import-bundle": "^1.1.1",
|
|
40
40
|
"@endo/marshal": "^1.4.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"jessie.js": "^0.3.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
48
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-8c3395c.0+8c3395c",
|
|
49
49
|
"@endo/bundle-source": "^3.2.2",
|
|
50
50
|
"@endo/init": "^1.1.1",
|
|
51
51
|
"ava": "^5.3.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"typeCoverage": {
|
|
79
79
|
"atLeast": 89.58
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "8c3395c882c738af46f68cdd7265a6a0c3b14091"
|
|
82
82
|
}
|
|
@@ -43,8 +43,8 @@ export function getManifestForNetwork(_powers: any, { networkRef, ibcRef }: {
|
|
|
43
43
|
* space.
|
|
44
44
|
*
|
|
45
45
|
* The `networkVat` is CLOSELY HELD in the core space, where later, we claim
|
|
46
|
-
* ports using `E(networkVat).
|
|
47
|
-
* docs, _path_ is:
|
|
46
|
+
* ports using `E(networkVat).bindPort(_path_)`. As discussed in
|
|
47
|
+
* `ProtocolHandler` docs, _path_ is:
|
|
48
48
|
*
|
|
49
49
|
* - /ibc-port/NAME for an IBC port with a known name or,
|
|
50
50
|
* - /ibc-port/ for an IBC port with a fresh name.
|
|
@@ -54,8 +54,8 @@ export function getManifestForNetwork(_powers: any, { networkRef, ibcRef }: {
|
|
|
54
54
|
*
|
|
55
55
|
* Testing facilities include:
|
|
56
56
|
*
|
|
57
|
-
* - loopback ports: `E(networkVat).
|
|
58
|
-
* - an echo port: `E(vats.network).
|
|
57
|
+
* - loopback ports: `E(networkVat).bindPort('/local/')`
|
|
58
|
+
* - an echo port: `E(vats.network).bindPort('/ibc-port/echo')`
|
|
59
59
|
*/
|
|
60
60
|
export type VatLoader2 = ((name: 'network') => NetworkVat) & ((name: 'ibc') => IBCVat);
|
|
61
61
|
/**
|
|
@@ -63,8 +63,8 @@ export type VatLoader2 = ((name: 'network') => NetworkVat) & ((name: 'ibc') => I
|
|
|
63
63
|
* space.
|
|
64
64
|
*
|
|
65
65
|
* The `networkVat` is CLOSELY HELD in the core space, where later, we claim
|
|
66
|
-
* ports using `E(networkVat).
|
|
67
|
-
* docs, _path_ is:
|
|
66
|
+
* ports using `E(networkVat).bindPort(_path_)`. As discussed in
|
|
67
|
+
* `ProtocolHandler` docs, _path_ is:
|
|
68
68
|
*
|
|
69
69
|
* - /ibc-port/NAME for an IBC port with a known name or,
|
|
70
70
|
* - /ibc-port/ for an IBC port with a fresh name.
|
|
@@ -74,8 +74,8 @@ export type VatLoader2 = ((name: 'network') => NetworkVat) & ((name: 'ibc') => I
|
|
|
74
74
|
*
|
|
75
75
|
* Testing facilities include:
|
|
76
76
|
*
|
|
77
|
-
* - loopback ports: `E(networkVat).
|
|
78
|
-
* - an echo port: `E(vats.network).
|
|
77
|
+
* - loopback ports: `E(networkVat).bindPort('/local/')`
|
|
78
|
+
* - an echo port: `E(vats.network).bindPort('/ibc-port/echo')`
|
|
79
79
|
*/
|
|
80
80
|
export type NetVats = {
|
|
81
81
|
network: ERef<NetworkVat>;
|
|
@@ -61,8 +61,8 @@ export const registerNetworkProtocols = async (vats, dibcBridgeManager) => {
|
|
|
61
61
|
* space.
|
|
62
62
|
*
|
|
63
63
|
* The `networkVat` is CLOSELY HELD in the core space, where later, we claim
|
|
64
|
-
* ports using `E(networkVat).
|
|
65
|
-
* docs, _path_ is:
|
|
64
|
+
* ports using `E(networkVat).bindPort(_path_)`. As discussed in
|
|
65
|
+
* `ProtocolHandler` docs, _path_ is:
|
|
66
66
|
*
|
|
67
67
|
* - /ibc-port/NAME for an IBC port with a known name or,
|
|
68
68
|
* - /ibc-port/ for an IBC port with a fresh name.
|
|
@@ -72,8 +72,8 @@ export const registerNetworkProtocols = async (vats, dibcBridgeManager) => {
|
|
|
72
72
|
*
|
|
73
73
|
* Testing facilities include:
|
|
74
74
|
*
|
|
75
|
-
* - loopback ports: `E(networkVat).
|
|
76
|
-
* - an echo port: `E(vats.network).
|
|
75
|
+
* - loopback ports: `E(networkVat).bindPort('/local/')`
|
|
76
|
+
* - an echo port: `E(vats.network).bindPort('/ibc-port/echo')`
|
|
77
77
|
*
|
|
78
78
|
* @param {BootstrapPowers & {
|
|
79
79
|
* consume: { loadCriticalVat: VatLoader<any> };
|
|
@@ -140,7 +140,7 @@ export const setupNetworkProtocols = async (
|
|
|
140
140
|
lastICAPort += 1;
|
|
141
141
|
bindAddr += `${INTERCHAIN_ACCOUNT_CONTROLLER_PORT_PREFIX}${lastICAPort}`;
|
|
142
142
|
}
|
|
143
|
-
const port = when(E(vats.network).
|
|
143
|
+
const port = when(E(vats.network).bindPort(bindAddr));
|
|
144
144
|
ibcportP.push(port);
|
|
145
145
|
}
|
|
146
146
|
return Promise.all(ibcportP);
|
|
@@ -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(vats.network).
|
|
155
|
+
const echoPort = await when(E(vats.network).bindPort('/ibc-port/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() })]);
|
package/src/vat-network.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ 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
|
-
/** @param {Parameters<typeof protocol.
|
|
30
|
-
|
|
29
|
+
/** @param {Parameters<typeof protocol.bindPort>} args */
|
|
30
|
+
bindPort: (localAddr: string) => Promise<Port | import("@agoric/vow").Vow<Port>>;
|
|
31
31
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
32
32
|
makeLoopbackProtocolHandler: (instancePrefix?: string | undefined) => import("@endo/exo").Guarded<{
|
|
33
33
|
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
|
|
@@ -56,7 +56,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
56
56
|
registerProtocolHandler: (paths: string[], protocolHandler: Remote<ProtocolHandler>) => void;
|
|
57
57
|
/** @param {Parameters<typeof protocol.unregisterProtocolHandler>} args */
|
|
58
58
|
unregisterProtocolHandler: (prefix: string, protocolHandler: Remote<ProtocolHandler>) => void;
|
|
59
|
-
/** @param {Parameters<typeof protocol.
|
|
60
|
-
|
|
59
|
+
/** @param {Parameters<typeof protocol.bindPort>} args */
|
|
60
|
+
bindPort: (localAddr: string) => Promise<Port | import("@agoric/vow").Vow<Port>>;
|
|
61
61
|
}>;
|
|
62
62
|
//# 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":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;IAqBI,wEAAwE;;IAGxE,0EAA0E;;IAG1E,
|
|
1
|
+
{"version":3,"file":"vat-network.d.ts","sourceRoot":"","sources":["vat-network.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;IAqBI,wEAAwE;;IAGxE,0EAA0E;;IAG1E,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;;IANzD,wEAAwE;;IAGxE,0EAA0E;;IAG1E,yDAAyD;;GAG5D"}
|
package/src/vat-network.js
CHANGED
|
@@ -35,7 +35,7 @@ export function buildRootObject(_vatPowers, _args, baggage) {
|
|
|
35
35
|
/** @param {Parameters<typeof protocol.unregisterProtocolHandler>} args */
|
|
36
36
|
unregisterProtocolHandler: (...args) =>
|
|
37
37
|
protocol.unregisterProtocolHandler(...args),
|
|
38
|
-
/** @param {Parameters<typeof protocol.
|
|
39
|
-
|
|
38
|
+
/** @param {Parameters<typeof protocol.bindPort>} args */
|
|
39
|
+
bindPort: (...args) => protocol.bindPort(...args),
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -65,7 +65,7 @@ export function makeMock(log: any): {
|
|
|
65
65
|
network: {
|
|
66
66
|
registerProtocolHandler: () => void;
|
|
67
67
|
makeLoopbackProtocolHandler: () => void;
|
|
68
|
-
|
|
68
|
+
bindPort: () => {
|
|
69
69
|
addListener: () => void;
|
|
70
70
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
71
71
|
addListener: () => void;
|
|
@@ -73,7 +73,7 @@ export function makeMock(log: any): {
|
|
|
73
73
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
74
74
|
registerProtocolHandler: () => void;
|
|
75
75
|
makeLoopbackProtocolHandler: () => void;
|
|
76
|
-
|
|
76
|
+
bindPort: () => {
|
|
77
77
|
addListener: () => void;
|
|
78
78
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
79
79
|
addListener: () => void;
|
package/tools/boot-test-utils.js
CHANGED
|
@@ -74,7 +74,7 @@ export const makeMock = log =>
|
|
|
74
74
|
network: Far('network', {
|
|
75
75
|
registerProtocolHandler: noop,
|
|
76
76
|
makeLoopbackProtocolHandler: noop,
|
|
77
|
-
|
|
77
|
+
bindPort: () => Far('network - listener', { addListener: noop }),
|
|
78
78
|
}),
|
|
79
79
|
},
|
|
80
80
|
});
|