@agoric/network 0.1.1-upgrade-16-dev-24665a9.0 → 0.1.1-upgrade-16-dev-d492653.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/network",
3
- "version": "0.1.1-upgrade-16-dev-24665a9.0+24665a9",
3
+ "version": "0.1.1-upgrade-16-dev-d492653.0+d492653",
4
4
  "description": "Agoric's network protocol API",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -21,10 +21,10 @@
21
21
  "author": "Agoric",
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@agoric/assert": "0.6.1-upgrade-16-dev-24665a9.0+24665a9",
25
- "@agoric/internal": "0.3.3-upgrade-16-dev-24665a9.0+24665a9",
26
- "@agoric/store": "0.9.3-upgrade-16-dev-24665a9.0+24665a9",
27
- "@agoric/vat-data": "0.5.3-upgrade-16-dev-24665a9.0+24665a9",
24
+ "@agoric/assert": "0.6.1-upgrade-16-dev-d492653.0+d492653",
25
+ "@agoric/internal": "0.3.3-upgrade-16-dev-d492653.0+d492653",
26
+ "@agoric/store": "0.9.3-upgrade-16-dev-d492653.0+d492653",
27
+ "@agoric/vat-data": "0.5.3-upgrade-16-dev-d492653.0+d492653",
28
28
  "@endo/base64": "^1.0.5",
29
29
  "@endo/far": "^1.1.2",
30
30
  "@endo/pass-style": "^1.4.0",
@@ -32,10 +32,10 @@
32
32
  "@endo/promise-kit": "^1.1.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@agoric/swingset-liveslots": "0.10.3-upgrade-16-dev-24665a9.0+24665a9",
36
- "@agoric/swingset-vat": "0.32.3-upgrade-16-dev-24665a9.0+24665a9",
37
- "@agoric/vow": "0.1.1-upgrade-16-dev-24665a9.0+24665a9",
38
- "@agoric/zone": "0.2.3-upgrade-16-dev-24665a9.0+24665a9",
35
+ "@agoric/swingset-liveslots": "0.10.3-upgrade-16-dev-d492653.0+d492653",
36
+ "@agoric/swingset-vat": "0.32.3-upgrade-16-dev-d492653.0+d492653",
37
+ "@agoric/vow": "0.1.1-upgrade-16-dev-d492653.0+d492653",
38
+ "@agoric/zone": "0.2.3-upgrade-16-dev-d492653.0+d492653",
39
39
  "@endo/bundle-source": "^3.2.3",
40
40
  "ava": "^5.3.0",
41
41
  "c8": "^9.1.0"
@@ -68,5 +68,5 @@
68
68
  "typeCoverage": {
69
69
  "atLeast": 89.7
70
70
  },
71
- "gitHead": "24665a97248b854fcb01185d360429301470ed57"
71
+ "gitHead": "d49265372b3cdd681558791b0c780e1c3062bdcc"
72
72
  }
package/src/network.d.ts CHANGED
@@ -12,9 +12,9 @@ export function getPrefixes(addr: string): string[];
12
12
  * @param {ReturnType<import('@agoric/vow').prepareVowTools>} powers
13
13
  */
14
14
  export function prepareLoopbackProtocolHandler(zone: import("@agoric/base-zone").Zone, { watch, allVows }: ReturnType<(zone: import("@agoric/base-zone").Zone, powers?: {
15
- isRetryableReason?: import("@agoric/vow").IsRetryableReason | undefined;
15
+ isRetryableReason?: ((reason: any) => boolean) | undefined;
16
16
  } | undefined) => {
17
- when: <T, TResult1 = import("@agoric/vow").EUnwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
17
+ when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
18
18
  watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
19
19
  makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
20
20
  allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
@@ -69,9 +69,9 @@ export const ENDPOINT_SEPARATOR: "/";
69
69
  export function rethrowUnlessMissing(err: unknown): undefined;
70
70
  export function crossoverConnection(zone: import("@agoric/zone").Zone, handler0: import("@agoric/vow").Remote<Required<ConnectionHandler>, {}>, addr0: string, handler1: import("@agoric/vow").Remote<Required<ConnectionHandler>, {}>, addr1: string, makeConnection: (opts: ConnectionOpts) => Connection, current?: globalThis.WeakSetStore<Closable> | undefined): Connection[];
71
71
  export function prepareNetworkProtocol(zone: import("@agoric/base-zone").Zone, powers: ReturnType<(zone: import("@agoric/base-zone").Zone, powers?: {
72
- isRetryableReason?: import("@agoric/vow").IsRetryableReason | undefined;
72
+ isRetryableReason?: ((reason: any) => boolean) | undefined;
73
73
  } | undefined) => {
74
- when: <T, TResult1 = import("@agoric/vow").EUnwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
74
+ when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
75
75
  watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
76
76
  makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
77
77
  allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
@@ -115,19 +115,19 @@ export function prepareEchoConnectionKit(zone: import("@agoric/base-zone").Zone)
115
115
  };
116
116
  }>;
117
117
  export function preparePortAllocator(zone: import("@agoric/base-zone").Zone, { watch }: ReturnType<(zone: import("@agoric/base-zone").Zone, powers?: {
118
- isRetryableReason?: import("@agoric/vow").IsRetryableReason | undefined;
118
+ isRetryableReason?: ((reason: any) => boolean) | undefined;
119
119
  } | undefined) => {
120
- when: <T, TResult1 = import("@agoric/vow").EUnwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
120
+ when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
121
121
  watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
122
122
  makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
123
123
  allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
124
124
  }>): (args_0: {
125
125
  protocol: Protocol;
126
126
  }) => import("@endo/exo").Guarded<{
127
- allocateCustomIBCPort(specifiedName?: string): Promise<import("@agoric/vow").Vow<Port>>;
128
- allocateICAControllerPort(): Promise<import("@agoric/vow").Vow<Port>>;
129
- allocateICQControllerPort(): Promise<import("@agoric/vow").Vow<Port>>;
130
- allocateCustomLocalPort(specifiedName?: string): Promise<import("@agoric/vow").Vow<Port>>;
127
+ allocateCustomIBCPort(specifiedName?: string): import("@agoric/vow").Vow<Port>;
128
+ allocateICAControllerPort(): import("@agoric/vow").Vow<Port>;
129
+ allocateICQControllerPort(): import("@agoric/vow").Vow<Port>;
130
+ allocateCustomLocalPort(specifiedName?: string): import("@agoric/vow").Vow<Port>;
131
131
  }>;
132
132
  export type MakeEchoConnectionKit = ReturnType<typeof prepareEchoConnectionKit>;
133
133
  export type ConnectionOpts = {
@@ -1 +1 @@
1
- {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["network.js"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,kCAFW,MAAM,YAahB;AAutCD,mFAAmF;AAEnF;;;;;GAKG;AACH,qDAHW,OAAO,mBAAmB,EAAE,IAAI,sBAChC,UAAU;;;wFAnwC0J,CAAC;;;oBAiB5K,SAAI;EAkvCoD;;;;IAmCpD;;;;;OAKG;;;;IAgEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;GA8CV;AA/5CD;;GAEG;AAEH;;;GAGG;AACH,qCAAsC;AAG/B,0CADK,OAAO,aAWlB;AAyJM,0CARI,OAAO,cAAc,EAAE,IAAI,yMAKpB,cAAc,wFAgD/B;AA+6BM,6CAHI,OAAO,mBAAmB,EAAE,IAAI,UAChC,UAAU;;;;;;;EAAuC;;;;;gBAkC3D;AAOM,+CAFI,OAAO,mBAAmB,EAAE,IAAI;;QAsCnC;;;;WAIG;;QASH;;;;WAIG;;;;;YAjBH;;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,UAAU,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;wCAx+CyG,YAAY;0BAAZ,YAAY;mCAAZ,YAAY;uCAAZ,YAAY;gCAAZ,YAAY;8BAAZ,YAAY;qCAAZ,YAAY;8BAAZ,YAAY"}
package/src/network.js CHANGED
@@ -1475,7 +1475,7 @@ export const preparePortAllocator = (zone, { watch }) =>
1475
1475
  */
1476
1476
  ({ protocol }) => ({ protocol, lastICAPortNum: 0n, lastICQPortNum: 0n }),
1477
1477
  {
1478
- async allocateCustomIBCPort(specifiedName = '') {
1478
+ allocateCustomIBCPort(specifiedName = '') {
1479
1479
  const { state } = this;
1480
1480
  let localAddr = `/ibc-port/`;
1481
1481
 
@@ -1488,7 +1488,7 @@ export const preparePortAllocator = (zone, { watch }) =>
1488
1488
  // Allocate an IBC port with a unique generated name.
1489
1489
  return watch(E(state.protocol).bindPort(localAddr));
1490
1490
  },
1491
- async allocateICAControllerPort() {
1491
+ allocateICAControllerPort() {
1492
1492
  const { state } = this;
1493
1493
  state.lastICAPortNum += 1n;
1494
1494
  return watch(
@@ -1497,7 +1497,7 @@ export const preparePortAllocator = (zone, { watch }) =>
1497
1497
  ),
1498
1498
  );
1499
1499
  },
1500
- async allocateICQControllerPort() {
1500
+ allocateICQControllerPort() {
1501
1501
  const { state } = this;
1502
1502
  state.lastICQPortNum += 1n;
1503
1503
  return watch(
@@ -1506,7 +1506,7 @@ export const preparePortAllocator = (zone, { watch }) =>
1506
1506
  ),
1507
1507
  );
1508
1508
  },
1509
- async allocateCustomLocalPort(specifiedName = '') {
1509
+ allocateCustomLocalPort(specifiedName = '') {
1510
1510
  const { state } = this;
1511
1511
 
1512
1512
  let localAddr = `/local/`;
package/src/router.d.ts CHANGED
@@ -32,9 +32,9 @@ export function prepareRouter<T>(zone: import("@agoric/base-zone").Zone): () =>
32
32
  unregister(prefix: string, route: T): void;
33
33
  }>;
34
34
  export function prepareRouterProtocol(zone: import("@agoric/base-zone").Zone, powers: ReturnType<(zone: import("@agoric/base-zone").Zone, powers?: {
35
- isRetryableReason?: import("@agoric/vow").IsRetryableReason | undefined;
35
+ isRetryableReason?: ((reason: any) => boolean) | undefined;
36
36
  } | undefined) => {
37
- when: <T, TResult1 = import("@agoric/vow").EUnwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
37
+ when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
38
38
  watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
39
39
  makeVowKit: <T_2>() => VowKit<T_2>;
40
40
  allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["router.js"],"names":[],"mappings":"AAWA;;;GAGG;AAEH;;;;;;;;;GASG;AAEH;;;;GAIG;AAMI,8BAiDU,CAAC,QAnDP,OAAO,mBAAmB,EAAE,IAAI;IAiBrC,6BAA6B;;IAyB7B;;;OAGG;qBAFQ,MAAM,SAQN,CAAC,AAPA;IAKZ;;;OAGG;uBAFQ,MAAM,SACN,CAAC;GAWjB;AAgBM,4CAJI,OAAO,mBAAmB,EAAE,IAAI,UAChC,UAAU;;;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