@agoric/vats 0.15.2-dev-217005a.0 → 0.15.2-dev-b196804.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/vats",
3
- "version": "0.15.2-dev-217005a.0+217005a",
3
+ "version": "0.15.2-dev-b196804.0+b196804",
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-217005a.0+217005a",
26
- "@agoric/ertp": "0.16.3-dev-217005a.0+217005a",
27
- "@agoric/governance": "0.10.4-dev-217005a.0+217005a",
28
- "@agoric/internal": "0.3.3-dev-217005a.0+217005a",
29
- "@agoric/network": "0.1.1-dev-217005a.0+217005a",
30
- "@agoric/notifier": "0.6.3-dev-217005a.0+217005a",
31
- "@agoric/store": "0.9.3-dev-217005a.0+217005a",
32
- "@agoric/swingset-vat": "0.32.3-dev-217005a.0+217005a",
33
- "@agoric/time": "0.3.3-dev-217005a.0+217005a",
34
- "@agoric/vat-data": "0.5.3-dev-217005a.0+217005a",
35
- "@agoric/vow": "0.1.1-dev-217005a.0+217005a",
36
- "@agoric/zoe": "0.26.3-dev-217005a.0+217005a",
37
- "@agoric/zone": "0.2.3-dev-217005a.0+217005a",
25
+ "@agoric/cosmic-proto": "0.4.1-dev-b196804.0+b196804",
26
+ "@agoric/ertp": "0.16.3-dev-b196804.0+b196804",
27
+ "@agoric/governance": "0.10.4-dev-b196804.0+b196804",
28
+ "@agoric/internal": "0.3.3-dev-b196804.0+b196804",
29
+ "@agoric/network": "0.1.1-dev-b196804.0+b196804",
30
+ "@agoric/notifier": "0.6.3-dev-b196804.0+b196804",
31
+ "@agoric/store": "0.9.3-dev-b196804.0+b196804",
32
+ "@agoric/swingset-vat": "0.32.3-dev-b196804.0+b196804",
33
+ "@agoric/time": "0.3.3-dev-b196804.0+b196804",
34
+ "@agoric/vat-data": "0.5.3-dev-b196804.0+b196804",
35
+ "@agoric/vow": "0.1.1-dev-b196804.0+b196804",
36
+ "@agoric/zoe": "0.26.3-dev-b196804.0+b196804",
37
+ "@agoric/zone": "0.2.3-dev-b196804.0+b196804",
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-217005a.0+217005a",
49
+ "@agoric/swingset-liveslots": "0.10.3-dev-b196804.0+b196804",
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": "217005a921dcac6928c999e6bfe06330a5947ac5"
81
+ "gitHead": "b196804c28fe5ed5f742c0e23a4d223b7fc0a164"
82
82
  }
@@ -109,7 +109,9 @@ type Producer<T> = {
109
109
  };
110
110
 
111
111
  type VatSourceRef = { bundleName?: string; bundleID?: string };
112
- type VatLoader<Names extends string = keyof WellKnownVats> = <N extends Names>(
112
+ type VatLoader<Names extends keyof WellKnownVats = keyof WellKnownVats> = <
113
+ N extends Names,
114
+ >(
113
115
  name: N,
114
116
  sourceRef?: VatSourceRef,
115
117
  ) => Promise<Awaited<WellKnownVats[N]>>;
@@ -342,6 +344,7 @@ type ChainBootstrapSpaceT = {
342
344
  client: ClientManager;
343
345
  clientCreator: any;
344
346
  coreEvalBridgeHandler: import('../types.js').BridgeHandler;
347
+ cosmosInterchainService: import('@agoric/orchestration').CosmosInterchainService;
345
348
  /** Utilities to support debugging */
346
349
  diagnostics: {
347
350
  /**
@@ -368,7 +371,6 @@ type ChainBootstrapSpaceT = {
368
371
  namesByAddress: import('../types.js').NameHub;
369
372
  namesByAddressAdmin: import('../types.js').NamesByAddressAdmin;
370
373
  networkVat: NetworkVat;
371
- orchestration: import('@agoric/orchestration/src/service.js').OrchestrationService;
372
374
  pegasusConnections: import('@agoric/vats').NameHubKit;
373
375
  pegasusConnectionsAdmin: import('@agoric/vats').NameAdmin;
374
376
  priceAuthorityVat: Awaited<PriceAuthorityVat>;
package/src/ibc.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ibc.d.ts","sourceRoot":"","sources":["ibc.js"],"names":[],"mappings":"AAmDO,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"}
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
- console.debug(
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
- console.debug('IBC onCreate');
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
- console.debug('IBC onConnect', localAddr, remoteAddr);
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
- console.debug('IBC onListen', localAddr);
319
+ trace('onListen', localAddr);
317
320
  },
318
321
  /** @type {Required<ProtocolHandler>['onListenRemove']} */
319
322
  async onListenRemove(_port, localAddr) {
320
- console.debug('IBC onListenRemove', localAddr);
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
- console.debug('IBC onRevoke', localAddr);
328
+ trace('onRevoke', localAddr);
326
329
  // @ts-expect-error may not be LocalIbcAddress
327
330
  const portID = localAddrToPortID(localAddr);
328
331