@agoric/vats 0.15.2-dev-217005a.0 → 0.15.2-dev-023e19f.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/ibc.d.ts.map +1 -1
- package/src/ibc.js +9 -6
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-023e19f.0+023e19f",
|
|
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/cosmic-proto": "0.4.1-dev-
|
|
26
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
27
|
-
"@agoric/governance": "0.10.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/network": "0.1.1-dev-
|
|
30
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
31
|
-
"@agoric/store": "0.9.3-dev-
|
|
32
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
33
|
-
"@agoric/time": "0.3.3-dev-
|
|
34
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
35
|
-
"@agoric/vow": "0.1.1-dev-
|
|
36
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
37
|
-
"@agoric/zone": "0.2.3-dev-
|
|
25
|
+
"@agoric/cosmic-proto": "0.4.1-dev-023e19f.0+023e19f",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-023e19f.0+023e19f",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-023e19f.0+023e19f",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-023e19f.0+023e19f",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-023e19f.0+023e19f",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-023e19f.0+023e19f",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-023e19f.0+023e19f",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-023e19f.0+023e19f",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-023e19f.0+023e19f",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-023e19f.0+023e19f",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-023e19f.0+023e19f",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-023e19f.0+023e19f",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-023e19f.0+023e19f",
|
|
38
38
|
"@endo/errors": "^1.2.2",
|
|
39
39
|
"@endo/far": "^1.1.2",
|
|
40
40
|
"@endo/import-bundle": "^1.1.2",
|
|
@@ -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-023e19f.0+023e19f",
|
|
50
50
|
"@endo/bundle-source": "^3.2.3",
|
|
51
51
|
"@endo/init": "^1.1.2",
|
|
52
52
|
"ava": "^5.3.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"typeCoverage": {
|
|
79
79
|
"atLeast": 91.21
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "023e19f0ed07c5ee83801d8619f4b507f07abdaf"
|
|
82
82
|
}
|
package/src/ibc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibc.d.ts","sourceRoot":"","sources":["ibc.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ibc.d.ts","sourceRoot":"","sources":["ibc.js"],"names":[],"mappings":"AAsDO,kDAHI,IAAI,GACF,GAAG,CAmHf;AAMM,yCAHI,IAAI,UACJ,QAAQ;cASH,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC;;qBAOpC,eAAe;mBACjB,aAAa;EA+mBpC;AAIM,uCADK,IAAI;IAQV;;;OAGG;qBAFQ,MAAM,OACN,GAAG;GAYnB;yBAhyBa,OAAO,kBAAkB,CAAC;uBAG3B,IAAI,CAChB,cAAkB,EAClB,cAAkB,GAAG,WAAW,GAAG,qBAAqB,CACrD,GAAG;IACN,SAAa,EAAE,QAAQ,CAAC;IACxB,UAAc,EAAE,UAAU,CAAC;IAC3B,YAAgB,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACnC;0BAdmB,mBAAmB;8BAC0B,aAAa;qCAH+B,iBAAiB;mCACyE,YAAY;yCAAZ,YAAY;wCAZjL,iBAAiB;4BAcc,aAAa;oCAFyH,YAAY;8BADtG,iBAAiB"}
|
package/src/ibc.js
CHANGED
|
@@ -5,6 +5,7 @@ import { E } from '@endo/far';
|
|
|
5
5
|
|
|
6
6
|
import { byteSourceToBase64, base64ToBytes } from '@agoric/network';
|
|
7
7
|
|
|
8
|
+
import { makeTracer } from '@agoric/internal';
|
|
8
9
|
import {
|
|
9
10
|
localAddrToPortID,
|
|
10
11
|
decodeRemoteIbcAddress,
|
|
@@ -12,6 +13,8 @@ import {
|
|
|
12
13
|
encodeRemoteIbcAddress,
|
|
13
14
|
} from '../tools/ibc-utils.js';
|
|
14
15
|
|
|
16
|
+
const trace = makeTracer('IBC', false);
|
|
17
|
+
|
|
15
18
|
/**
|
|
16
19
|
* @import {LocalIbcAddress, RemoteIbcAddress} from '../tools/ibc-utils.js';
|
|
17
20
|
* @import {AttemptDescription} from '@agoric/network';
|
|
@@ -105,7 +108,7 @@ export const prepareIBCConnectionHandler = zone => {
|
|
|
105
108
|
async onOpen(conn, localAddr, remoteAddr, _handler) {
|
|
106
109
|
const { channelID, portID, channelKeyToConnP } = this.state;
|
|
107
110
|
|
|
108
|
-
|
|
111
|
+
trace(
|
|
109
112
|
'onOpen Remote IBC Connection',
|
|
110
113
|
channelID,
|
|
111
114
|
portID,
|
|
@@ -236,7 +239,7 @@ export const prepareIBCProtocol = (zone, powers) => {
|
|
|
236
239
|
protocolHandler: {
|
|
237
240
|
/** @type {Required<ProtocolHandler>['onCreate']} */
|
|
238
241
|
async onCreate(impl) {
|
|
239
|
-
|
|
242
|
+
trace('onCreate');
|
|
240
243
|
this.state.protocolImpl = impl;
|
|
241
244
|
},
|
|
242
245
|
/** @type {Required<ProtocolHandler>['onInstantiate']} */
|
|
@@ -267,7 +270,7 @@ export const prepareIBCProtocol = (zone, powers) => {
|
|
|
267
270
|
const { util } = this.facets;
|
|
268
271
|
const { portToPendingConns, srcPortToOutbounds } = this.state;
|
|
269
272
|
|
|
270
|
-
|
|
273
|
+
trace('onConnect', localAddr, remoteAddr);
|
|
271
274
|
// @ts-expect-error may not be LocalIbcAddress
|
|
272
275
|
const portID = localAddrToPortID(localAddr);
|
|
273
276
|
const pendingConns = portToPendingConns.get(portID);
|
|
@@ -313,16 +316,16 @@ export const prepareIBCProtocol = (zone, powers) => {
|
|
|
313
316
|
},
|
|
314
317
|
/** @type {Required<ProtocolHandler>['onListen']} */
|
|
315
318
|
async onListen(_port, localAddr) {
|
|
316
|
-
|
|
319
|
+
trace('onListen', localAddr);
|
|
317
320
|
},
|
|
318
321
|
/** @type {Required<ProtocolHandler>['onListenRemove']} */
|
|
319
322
|
async onListenRemove(_port, localAddr) {
|
|
320
|
-
|
|
323
|
+
trace('onListenRemove', localAddr);
|
|
321
324
|
},
|
|
322
325
|
/** @type {Required<ProtocolHandler>['onRevoke']} */
|
|
323
326
|
async onRevoke(_port, localAddr) {
|
|
324
327
|
const { portToPendingConns } = this.state;
|
|
325
|
-
|
|
328
|
+
trace('onRevoke', localAddr);
|
|
326
329
|
// @ts-expect-error may not be LocalIbcAddress
|
|
327
330
|
const portID = localAddrToPortID(localAddr);
|
|
328
331
|
|