@agoric/pegasus 0.7.13-dev-aa68d8f.0 → 0.7.13-dev-96c9ff5.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.
Files changed (2) hide show
  1. package/package.json +21 -21
  2. package/src/contract.js +9 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/pegasus",
3
- "version": "0.7.13-dev-aa68d8f.0+aa68d8f",
3
+ "version": "0.7.13-dev-96c9ff5.0+96c9ff5",
4
4
  "description": "Peg-as-us contract",
5
5
  "type": "module",
6
6
  "main": "./src/pegasus.js",
@@ -28,26 +28,26 @@
28
28
  },
29
29
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
30
30
  "dependencies": {
31
- "@agoric/assert": "0.6.1-dev-aa68d8f.0+aa68d8f",
32
- "@agoric/ertp": "0.16.3-dev-aa68d8f.0+aa68d8f",
33
- "@agoric/internal": "0.3.3-dev-aa68d8f.0+aa68d8f",
34
- "@agoric/network": "0.1.1-dev-aa68d8f.0+aa68d8f",
35
- "@agoric/notifier": "0.6.3-dev-aa68d8f.0+aa68d8f",
36
- "@agoric/store": "0.9.3-dev-aa68d8f.0+aa68d8f",
37
- "@agoric/swingset-vat": "0.32.3-dev-aa68d8f.0+aa68d8f",
38
- "@agoric/vats": "0.15.2-dev-aa68d8f.0+aa68d8f",
39
- "@agoric/vow": "0.1.1-dev-aa68d8f.0+aa68d8f",
40
- "@agoric/zoe": "0.26.3-dev-aa68d8f.0+aa68d8f",
41
- "@agoric/zone": "0.2.3-dev-aa68d8f.0+aa68d8f",
42
- "@endo/bundle-source": "^3.2.2",
43
- "@endo/captp": "^4.1.1",
44
- "@endo/far": "^1.1.1",
45
- "@endo/init": "^1.1.1",
46
- "@endo/nat": "^5.0.6",
47
- "@endo/promise-kit": "^1.1.1"
31
+ "@agoric/assert": "0.6.1-dev-96c9ff5.0+96c9ff5",
32
+ "@agoric/ertp": "0.16.3-dev-96c9ff5.0+96c9ff5",
33
+ "@agoric/internal": "0.3.3-dev-96c9ff5.0+96c9ff5",
34
+ "@agoric/network": "0.1.1-dev-96c9ff5.0+96c9ff5",
35
+ "@agoric/notifier": "0.6.3-dev-96c9ff5.0+96c9ff5",
36
+ "@agoric/store": "0.9.3-dev-96c9ff5.0+96c9ff5",
37
+ "@agoric/swingset-vat": "0.32.3-dev-96c9ff5.0+96c9ff5",
38
+ "@agoric/vats": "0.15.2-dev-96c9ff5.0+96c9ff5",
39
+ "@agoric/vow": "0.1.1-dev-96c9ff5.0+96c9ff5",
40
+ "@agoric/zoe": "0.26.3-dev-96c9ff5.0+96c9ff5",
41
+ "@agoric/zone": "0.2.3-dev-96c9ff5.0+96c9ff5",
42
+ "@endo/bundle-source": "^3.2.3",
43
+ "@endo/captp": "^4.2.0",
44
+ "@endo/far": "^1.1.2",
45
+ "@endo/init": "^1.1.2",
46
+ "@endo/nat": "^5.0.7",
47
+ "@endo/promise-kit": "^1.1.2"
48
48
  },
49
49
  "devDependencies": {
50
- "@agoric/vat-data": "0.5.3-dev-aa68d8f.0+aa68d8f",
50
+ "@agoric/vat-data": "0.5.3-dev-96c9ff5.0+96c9ff5",
51
51
  "ava": "^5.3.0",
52
52
  "c8": "^9.1.0",
53
53
  "import-meta-resolve": "^2.2.1"
@@ -71,7 +71,7 @@
71
71
  "access": "public"
72
72
  },
73
73
  "typeCoverage": {
74
- "atLeast": 91.45
74
+ "atLeast": 90.68
75
75
  },
76
- "gitHead": "aa68d8fba19087b3a2c72bd59f6f9e47e34ffe1b"
76
+ "gitHead": "96c9ff577fe14cebeb5a38543ba7f8598ffcd0c7"
77
77
  }
package/src/contract.js CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-check
1
2
  import { prepareVowTools } from '@agoric/vow/vat.js';
2
3
  import { makeDurableZone } from '@agoric/zone/durable.js';
3
4
  import { makePegasus } from './pegasus.js';
@@ -6,10 +7,14 @@ import '@agoric/zoe/exported.js';
6
7
 
7
8
  import '../exported.js';
8
9
 
10
+ /**
11
+ * @import {Remote} from '@agoric/vow';
12
+ */
13
+
9
14
  /**
10
15
  * @type {ContractStartFn<import('./pegasus.js').Pegasus, never, {}, {
11
- * board: ERef<BoardDepositFacet>,
12
- * namesByAddress: ERef<import('@agoric/vats').NameHub>
16
+ * board: Remote<BoardDepositFacet>,
17
+ * namesByAddress: Remote<import('@agoric/vats').NameHub>
13
18
  * }>}
14
19
  */
15
20
  export const start = (zcf, privateArgs, baggage) => {
@@ -23,10 +28,12 @@ export const start = (zcf, privateArgs, baggage) => {
23
28
  // start requires that the object passed in must be durable. Given that we
24
29
  // haven't made pegasus durable yet, we'll wrap its non-durable methods within
25
30
  // an exo object to workaround this requirement.
31
+ // @ts-expect-error makePegasus returns a remotable object
26
32
  const publicFacet = zone.exo('PublicFacet', undefined, {
27
33
  ...makePegasus({ zcf, board, namesByAddress, when }),
28
34
  });
29
35
 
36
+ // @ts-expect-error XXX durable wrapping non-durable
30
37
  return harden({
31
38
  publicFacet,
32
39
  });