@agoric/inter-protocol 0.13.2-dev-9a7faad.0 → 0.13.2-dev-724fbe0.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/inter-protocol",
3
- "version": "0.13.2-dev-9a7faad.0+9a7faad",
3
+ "version": "0.13.2-dev-724fbe0.0+724fbe0",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -29,17 +29,17 @@
29
29
  },
30
30
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
31
31
  "dependencies": {
32
- "@agoric/assert": "0.5.2-dev-9a7faad.0+9a7faad",
33
- "@agoric/ertp": "0.15.4-dev-9a7faad.0+9a7faad",
34
- "@agoric/governance": "0.9.2-dev-9a7faad.0+9a7faad",
35
- "@agoric/internal": "0.2.2-dev-9a7faad.0+9a7faad",
32
+ "@agoric/assert": "0.5.2-dev-724fbe0.0+724fbe0",
33
+ "@agoric/ertp": "0.15.4-dev-724fbe0.0+724fbe0",
34
+ "@agoric/governance": "0.9.2-dev-724fbe0.0+724fbe0",
35
+ "@agoric/internal": "0.2.2-dev-724fbe0.0+724fbe0",
36
36
  "@agoric/nat": "^4.1.0",
37
- "@agoric/notifier": "0.5.2-dev-9a7faad.0+9a7faad",
38
- "@agoric/store": "0.8.4-dev-9a7faad.0+9a7faad",
39
- "@agoric/swingset-vat": "0.30.3-dev-9a7faad.0+9a7faad",
40
- "@agoric/vat-data": "0.4.4-dev-9a7faad.0+9a7faad",
41
- "@agoric/vats": "0.13.1-dev-9a7faad.0+9a7faad",
42
- "@agoric/zoe": "0.25.4-dev-9a7faad.0+9a7faad",
37
+ "@agoric/notifier": "0.5.2-dev-724fbe0.0+724fbe0",
38
+ "@agoric/store": "0.8.4-dev-724fbe0.0+724fbe0",
39
+ "@agoric/swingset-vat": "0.30.3-dev-724fbe0.0+724fbe0",
40
+ "@agoric/vat-data": "0.4.4-dev-724fbe0.0+724fbe0",
41
+ "@agoric/vats": "0.13.1-dev-724fbe0.0+724fbe0",
42
+ "@agoric/zoe": "0.25.4-dev-724fbe0.0+724fbe0",
43
43
  "@endo/bundle-source": "^2.4.1",
44
44
  "@endo/captp": "^2.0.17",
45
45
  "@endo/eventual-send": "^0.16.7",
@@ -49,7 +49,7 @@
49
49
  "@endo/promise-kit": "^0.2.51"
50
50
  },
51
51
  "devDependencies": {
52
- "@agoric/deploy-script-support": "0.9.5-dev-9a7faad.0+9a7faad",
52
+ "@agoric/deploy-script-support": "0.9.5-dev-724fbe0.0+724fbe0",
53
53
  "@endo/init": "^0.5.51",
54
54
  "@fast-check/ava": "^1.0.1",
55
55
  "ava": "^4.3.1",
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "9a7faad01e6b46f28691cf2195b1a1060abc7683"
79
+ "gitHead": "724fbe0a01516b39ef1e3b4946211a70ac0aa42d"
80
80
  }
@@ -228,7 +228,7 @@ export const makeFeeDistributor = (feeIssuer, terms) => {
228
228
  },
229
229
 
230
230
  /**
231
- * @param {EOnly<DepositFacet>} depositFacet
231
+ * @param {import('@endo/far').EOnly<DepositFacet>} depositFacet
232
232
  */
233
233
  makeDepositFacetDestination: depositFacet => {
234
234
  return Far(`DepositFacetDestination`, {
package/src/makeTracer.js CHANGED
@@ -1,5 +1,11 @@
1
+ // @ts-check
1
2
  let debugInstance = 1;
2
3
 
4
+ /**
5
+ *
6
+ * @param {string} name
7
+ * @param {boolean | 'verbose'} enable
8
+ */
3
9
  const makeTracer = (name, enable = true) => {
4
10
  debugInstance += 1;
5
11
  let debugCount = 1;
package/src/my-lien.js CHANGED
@@ -21,7 +21,7 @@ const XLien = /** @type { const } */ ({
21
21
  */
22
22
 
23
23
  /**
24
- * @param {ERef<BridgeManager>} bridgeManager
24
+ * @param {ERef<import('@agoric/vats').BridgeManager>} bridgeManager
25
25
  * @param {Brand<'nat'>} brand
26
26
  * @param {string} [denom]
27
27
  * @returns {StakingAuthority}
@@ -52,7 +52,7 @@ const MILLI = 1_000_000n;
52
52
  * ammInstanceWithoutReserve: Instance,
53
53
  * ammCreatorFacet: XYKAMMCreatorFacet,
54
54
  * ammGovernorCreatorFacet: GovernedContractFacetAccess<XYKAMMPublicFacet,XYKAMMCreatorFacet>,
55
- * economicCommitteeCreatorFacet: CommitteeElectorateCreatorFacet,
55
+ * economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet,
56
56
  * feeDistributorCreatorFacet: import('../feeDistributor.js').FeeDistributorCreatorFacet,
57
57
  * feeDistributorPublicFacet: import('../feeDistributor.js').FeeDistributorPublicFacet,
58
58
  * periodicFeeCollectors: import('../feeDistributor.js').PeriodicFeeCollector[],
@@ -1,3 +1,4 @@
1
+ // @ts-check
1
2
  import { getCopyMapEntries, makeCopyMap } from '@agoric/store';
2
3
  import { E } from '@endo/far';
3
4
 
@@ -7,13 +8,13 @@ export const DEPOSIT_FACET = 'depositFacet';
7
8
  const { details: X } = assert;
8
9
 
9
10
  /**
10
- * @param {ERef<NameAdmin>} nameAdmin
11
+ * @param {ERef<import('@agoric/vats').NameAdmin>} nameAdmin
11
12
  * @param {string[][]} paths
12
13
  */
13
14
  export const reserveThenGetNamePaths = async (nameAdmin, paths) => {
14
15
  /**
15
16
  *
16
- * @param {ERef<NameAdmin>} nextAdmin
17
+ * @param {ERef<import('@agoric/vats').NameAdmin>} nextAdmin
17
18
  * @param {string[]} path
18
19
  */
19
20
  const nextPath = async (nextAdmin, path) => {
@@ -43,7 +44,7 @@ export const reserveThenGetNamePaths = async (nameAdmin, paths) => {
43
44
  };
44
45
 
45
46
  /**
46
- * @param {ERef<NameAdmin>} nameAdmin
47
+ * @param {ERef<import('@agoric/vats').NameAdmin>} nameAdmin
47
48
  * @param {string[]} names
48
49
  */
49
50
  export const reserveThenGetNames = async (nameAdmin, names) =>
@@ -67,7 +68,7 @@ export const reserveThenDeposit = async (
67
68
  console.info('confirmed deposit for', debugName);
68
69
  };
69
70
 
70
- /** @type {<T>(store: ERef<MapStore>, key: string, make: () => T) => Promise<T>} */
71
+ /** @type {<T>(store: ERef<Map<string, T> | import('@agoric/solo/src/scratch').ScratchPad>, key: string, make: () => T) => Promise<T>} */
71
72
  const provideWhen = async (store, key, make) => {
72
73
  const found = await E(store).get(key);
73
74
  if (found) {
@@ -80,7 +81,7 @@ const provideWhen = async (store, key, make) => {
80
81
 
81
82
  /**
82
83
  *
83
- * @param {{ scratch: ERef<MapStore<string, unknown>> }} homeP
84
+ * @param {{ scratch: ERef<import('@agoric/solo/src/scratch').ScratchPad> }} homeP
84
85
  * @param {object} opts
85
86
  * @param {(specifier: string) => Promise<{default: Bundle}>} opts.loadBundle
86
87
  * @param {string} [opts.installCacheKey]
@@ -108,9 +109,12 @@ export const makeInstallCache = async (
108
109
  };
109
110
 
110
111
  const wrapInstall = install => async (mPath, bPath, opts) => {
111
- const { endoZipBase64Sha512: sha512 } = await loadBundle(bPath).then(
112
- m => m.default,
112
+ const bundle = await loadBundle(bPath).then(m => m.default);
113
+ assert(
114
+ 'endoZipBase64Sha512' in bundle,
115
+ 'bundle must be EndoZipBase64Bundle',
113
116
  );
117
+ const { endoZipBase64Sha512: sha512 } = bundle;
114
118
  const detail = await provideWhen(working, sha512, () =>
115
119
  install(mPath, bPath, opts).then(installation => ({
116
120
  installation,