@agoric/governance 0.10.4-dev-48da763.0 → 0.10.4-dev-dcddffd.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/governance",
3
- "version": "0.10.4-dev-48da763.0+48da763",
3
+ "version": "0.10.4-dev-dcddffd.0+dcddffd",
4
4
  "description": "Core governance support",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -31,16 +31,16 @@
31
31
  },
32
32
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
33
33
  "dependencies": {
34
- "@agoric/assert": "0.6.1-dev-48da763.0+48da763",
35
- "@agoric/ertp": "0.16.3-dev-48da763.0+48da763",
36
- "@agoric/internal": "0.3.3-dev-48da763.0+48da763",
37
- "@agoric/notifier": "0.6.3-dev-48da763.0+48da763",
38
- "@agoric/store": "0.9.3-dev-48da763.0+48da763",
39
- "@agoric/swingset-vat": "0.32.3-dev-48da763.0+48da763",
40
- "@agoric/time": "0.3.3-dev-48da763.0+48da763",
41
- "@agoric/vat-data": "0.5.3-dev-48da763.0+48da763",
42
- "@agoric/vats": "0.15.2-dev-48da763.0+48da763",
43
- "@agoric/zoe": "0.26.3-dev-48da763.0+48da763",
34
+ "@agoric/assert": "0.6.1-dev-dcddffd.0+dcddffd",
35
+ "@agoric/ertp": "0.16.3-dev-dcddffd.0+dcddffd",
36
+ "@agoric/internal": "0.3.3-dev-dcddffd.0+dcddffd",
37
+ "@agoric/notifier": "0.6.3-dev-dcddffd.0+dcddffd",
38
+ "@agoric/store": "0.9.3-dev-dcddffd.0+dcddffd",
39
+ "@agoric/swingset-vat": "0.32.3-dev-dcddffd.0+dcddffd",
40
+ "@agoric/time": "0.3.3-dev-dcddffd.0+dcddffd",
41
+ "@agoric/vat-data": "0.5.3-dev-dcddffd.0+dcddffd",
42
+ "@agoric/vats": "0.15.2-dev-dcddffd.0+dcddffd",
43
+ "@agoric/zoe": "0.26.3-dev-dcddffd.0+dcddffd",
44
44
  "@endo/captp": "^3.1.1",
45
45
  "@endo/eventual-send": "^0.17.2",
46
46
  "@endo/far": "^0.2.18",
@@ -49,7 +49,7 @@
49
49
  "@endo/promise-kit": "^0.2.56"
50
50
  },
51
51
  "devDependencies": {
52
- "@agoric/deploy-script-support": "0.10.4-dev-48da763.0+48da763",
52
+ "@agoric/deploy-script-support": "0.10.4-dev-dcddffd.0+dcddffd",
53
53
  "@endo/bundle-source": "^2.5.1",
54
54
  "@endo/init": "^0.5.56",
55
55
  "ava": "^5.3.0",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "48da7638d5b3be92dd5f854a2c0d5c203c500dc5"
75
+ "gitHead": "dcddffd2ff28c0ee67ef55f370026bd9235be382"
76
76
  }
@@ -366,10 +366,10 @@ const makeParamManagerBuilder = (publisherKit, zoe) => {
366
366
  const prepared = await Promise.all(asyncResults);
367
367
 
368
368
  // actually update
369
- paramNames.forEach((name, i) => {
369
+ for (const [i, name] of paramNames.entries()) {
370
370
  const setFn = setters[`update${name}`];
371
371
  setFn(prepared[i]);
372
- });
372
+ }
373
373
  publish();
374
374
  };
375
375
 
@@ -169,10 +169,10 @@ const makeMultiCandidateVoteCounter = (
169
169
  chosenPositions.length <= maxChoices ||
170
170
  Fail`The number of choices exceeds the max choices.`;
171
171
 
172
- chosenPositions.forEach(position => {
172
+ for (const position of chosenPositions) {
173
173
  positionIncluded(positions, position) ||
174
174
  Fail`The specified choice is not a legal position: ${position}.`;
175
- });
175
+ }
176
176
 
177
177
  const completedBallot = harden({ chosen: chosenPositions, shares });
178
178