@agoric/inter-protocol 0.16.1-dev-4989f26.0 → 0.16.1-dev-779b73d.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.16.1-dev-4989f26.0+4989f26",
3
+ "version": "0.16.1-dev-779b73d.0+779b73d",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -29,29 +29,29 @@
29
29
  },
30
30
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
31
31
  "dependencies": {
32
- "@agoric/assert": "0.6.1-dev-4989f26.0+4989f26",
33
- "@agoric/ertp": "0.16.3-dev-4989f26.0+4989f26",
34
- "@agoric/governance": "0.10.3-dev-4989f26.0+4989f26",
35
- "@agoric/internal": "0.3.3-dev-4989f26.0+4989f26",
36
- "@agoric/notifier": "0.6.3-dev-4989f26.0+4989f26",
37
- "@agoric/store": "0.9.3-dev-4989f26.0+4989f26",
38
- "@agoric/time": "0.3.3-dev-4989f26.0+4989f26",
39
- "@agoric/vat-data": "0.5.3-dev-4989f26.0+4989f26",
40
- "@agoric/vats": "0.15.1-dev-4989f26.0+4989f26",
41
- "@agoric/zoe": "0.26.3-dev-4989f26.0+4989f26",
32
+ "@agoric/assert": "0.6.1-dev-779b73d.0+779b73d",
33
+ "@agoric/ertp": "0.16.3-dev-779b73d.0+779b73d",
34
+ "@agoric/governance": "0.10.3-dev-779b73d.0+779b73d",
35
+ "@agoric/internal": "0.3.3-dev-779b73d.0+779b73d",
36
+ "@agoric/notifier": "0.6.3-dev-779b73d.0+779b73d",
37
+ "@agoric/store": "0.9.3-dev-779b73d.0+779b73d",
38
+ "@agoric/time": "0.3.3-dev-779b73d.0+779b73d",
39
+ "@agoric/vat-data": "0.5.3-dev-779b73d.0+779b73d",
40
+ "@agoric/vats": "0.15.1-dev-779b73d.0+779b73d",
41
+ "@agoric/zoe": "0.26.3-dev-779b73d.0+779b73d",
42
42
  "@endo/captp": "^3.1.1",
43
43
  "@endo/eventual-send": "^0.17.2",
44
44
  "@endo/far": "^0.2.18",
45
45
  "@endo/marshal": "^0.8.5",
46
46
  "@endo/nat": "^4.1.27",
47
- "agoric": "0.21.1-dev-4989f26.0+4989f26",
47
+ "agoric": "0.21.1-dev-779b73d.0+779b73d",
48
48
  "jessie.js": "^0.3.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@agoric/deploy-script-support": "0.10.3-dev-4989f26.0+4989f26",
52
- "@agoric/smart-wallet": "0.5.3-dev-4989f26.0+4989f26",
53
- "@agoric/swingset-liveslots": "0.10.3-dev-4989f26.0+4989f26",
54
- "@agoric/swingset-vat": "0.32.3-dev-4989f26.0+4989f26",
51
+ "@agoric/deploy-script-support": "0.10.3-dev-779b73d.0+779b73d",
52
+ "@agoric/smart-wallet": "0.5.3-dev-779b73d.0+779b73d",
53
+ "@agoric/swingset-liveslots": "0.10.3-dev-779b73d.0+779b73d",
54
+ "@agoric/swingset-vat": "0.32.3-dev-779b73d.0+779b73d",
55
55
  "@endo/bundle-source": "^2.5.1",
56
56
  "@endo/init": "^0.5.56",
57
57
  "@endo/promise-kit": "^0.2.56",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "4989f26753580251326c40fd6a7a7e3b853aff01"
82
+ "gitHead": "779b73d11992c1e00cfe99bfe3444081107a34a1"
83
83
  }
@@ -333,6 +333,7 @@ export const makeScheduler = async (
333
333
  // NB: may be fired with the initial params as well
334
334
  async updateState(_newState) {
335
335
  trace('received param update', _newState);
336
+ await null;
336
337
  if (!nextSchedule) {
337
338
  trace('repairing nextSchedule and restarting');
338
339
  ({ nextSchedule } = await initializeNextSchedule());
@@ -131,10 +131,8 @@ export const prepare = async (zcf, privateArgs, baggage) => {
131
131
  addr,
132
132
  [invitation],
133
133
  );
134
- if (highPrioritySendersManager) {
135
- // eslint-disable-next-line @jessie.js/no-nested-await -- after another await
136
- await E(highPrioritySendersManager).add(description, addr);
137
- }
134
+ await (highPrioritySendersManager &&
135
+ E(highPrioritySendersManager).add(description, addr));
138
136
  return `added ${addr}`;
139
137
  };
140
138
 
@@ -146,10 +144,8 @@ export const prepare = async (zcf, privateArgs, baggage) => {
146
144
  const removeOracle = async addr => {
147
145
  trace('removeOracle', addr);
148
146
  await E(faKit.creator).removeOracle(addr);
149
- if (highPrioritySendersManager) {
150
- // eslint-disable-next-line @jessie.js/no-nested-await -- after another await
151
- await E(highPrioritySendersManager).remove(description, addr);
152
- }
147
+ await (highPrioritySendersManager &&
148
+ E(highPrioritySendersManager).remove(description, addr));
153
149
  return `removed ${addr}`;
154
150
  };
155
151
 
@@ -62,7 +62,6 @@ export const ensureOracleBrands = async (
62
62
  let b = await brand;
63
63
  if (!b) {
64
64
  // not 1st await
65
- // eslint-disable-next-line @jessie.js/no-nested-await
66
65
  b = await E(agoricNames).provideInertBrand(
67
66
  name,
68
67
  harden({ decimalPlaces: parseInt(decimals, 10) }),
@@ -363,23 +363,25 @@ export const makeAnchorAsset = async (
363
363
  slotToBoardRemote,
364
364
  );
365
365
  const metricsKey = `${stablePsmKey}.${keyword}.metrics`;
366
- if (toSlotReviver.has(metricsKey)) {
366
+ const maybeReviveMetrics = async () => {
367
+ if (!toSlotReviver.has(metricsKey)) {
368
+ return;
369
+ }
367
370
  const metrics = toSlotReviver.getItem(metricsKey);
368
371
  produceAnchorBalancePayments.resolve(
369
372
  makeScalarBigMapStore('Anchor balance payments', { durable: true }),
370
373
  );
371
374
  // XXX this rule should only apply to the 1st await
372
- // eslint-disable-next-line @jessie.js/no-nested-await
373
375
  const anchorPaymentMap = await anchorBalancePayments;
374
376
 
375
377
  // TODO: validate that `metrics.anchorPoolBalance.value` is
376
378
  // pass-by-copy PureData (e.g., contains no remotables).
377
- // eslint-disable-next-line @jessie.js/no-nested-await
378
379
  const pmt = await E(mint).mintPayment(
379
380
  AmountMath.make(brand, metrics.anchorPoolBalance.value),
380
381
  );
381
382
  anchorPaymentMap.init(brand, pmt);
382
- }
383
+ };
384
+ await maybeReviveMetrics();
383
385
 
384
386
  await Promise.all([
385
387
  E(E(agoricNamesAdmin).lookupAdmin('issuer')).update(keyword, kit.issuer),
@@ -66,11 +66,11 @@ export const prepare = async (zcf, privateArgs, baggage) => {
66
66
  };
67
67
  trace('awaiting takeFeeMint');
68
68
  const feeMint = await takeFeeMint();
69
+ const storageNode = await privateArgs.storageNode;
69
70
  const makeAssetReserveKit = await prepareAssetReserveKit(baggage, {
70
71
  feeMint,
71
72
  makeRecorderKit,
72
- // eslint-disable-next-line @jessie.js/no-nested-await -- spurious
73
- storageNode: await privateArgs.storageNode,
73
+ storageNode,
74
74
  zcf,
75
75
  });
76
76
 
@@ -963,7 +963,6 @@ export const prepareVaultManagerKit = (
963
963
 
964
964
  try {
965
965
  // TODO `await` is allowed until the above ordering is fixed
966
- // eslint-disable-next-line @jessie.js/no-nested-await
967
966
  const vaultKit = await vault.initVaultKit(seat, vaultStorageNode);
968
967
  // initVaultKit calls back to handleBalanceChange() which will add the
969
968
  // vault to prioritizedVaults