@agoric/governance 0.10.4-dev-075749a.0 → 0.10.4-dev-24fb1f5.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-075749a.0+075749a",
3
+ "version": "0.10.4-dev-24fb1f5.0+24fb1f5",
4
4
  "description": "Core governance support",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -31,13 +31,13 @@
31
31
  },
32
32
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
33
33
  "dependencies": {
34
- "@agoric/ertp": "0.16.3-dev-075749a.0+075749a",
35
- "@agoric/internal": "0.3.3-dev-075749a.0+075749a",
36
- "@agoric/notifier": "0.6.3-dev-075749a.0+075749a",
37
- "@agoric/store": "0.9.3-dev-075749a.0+075749a",
38
- "@agoric/time": "0.3.3-dev-075749a.0+075749a",
39
- "@agoric/vat-data": "0.5.3-dev-075749a.0+075749a",
40
- "@agoric/zoe": "0.26.3-dev-075749a.0+075749a",
34
+ "@agoric/ertp": "0.16.3-dev-24fb1f5.0+24fb1f5",
35
+ "@agoric/internal": "0.3.3-dev-24fb1f5.0+24fb1f5",
36
+ "@agoric/notifier": "0.6.3-dev-24fb1f5.0+24fb1f5",
37
+ "@agoric/store": "0.9.3-dev-24fb1f5.0+24fb1f5",
38
+ "@agoric/time": "0.3.3-dev-24fb1f5.0+24fb1f5",
39
+ "@agoric/vat-data": "0.5.3-dev-24fb1f5.0+24fb1f5",
40
+ "@agoric/zoe": "0.26.3-dev-24fb1f5.0+24fb1f5",
41
41
  "@endo/bundle-source": "^3.2.3",
42
42
  "@endo/captp": "^4.2.0",
43
43
  "@endo/errors": "^1.2.2",
@@ -49,7 +49,7 @@
49
49
  "import-meta-resolve": "^2.2.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@agoric/swingset-vat": "0.32.3-dev-075749a.0+075749a",
52
+ "@agoric/swingset-vat": "0.32.3-dev-24fb1f5.0+24fb1f5",
53
53
  "@endo/bundle-source": "^3.2.3",
54
54
  "@endo/init": "^1.1.2",
55
55
  "ava": "^5.3.0",
@@ -78,5 +78,5 @@
78
78
  "typeCoverage": {
79
79
  "atLeast": 89.31
80
80
  },
81
- "gitHead": "075749ae0360d3e66364e466f37825028e71cdfe"
81
+ "gitHead": "24fb1f54ab763bfefc9a01bd01a72168e78cc92b"
82
82
  }
@@ -26,7 +26,7 @@ export type QuestionRecord = {
26
26
  */
27
27
  export function startCounter(zcf: ZCF, questionSpec: QuestionSpec, quorumThreshold: unknown, voteCounter: ERef<Installation>, questionStore: MapStore<Handle<"Question">, QuestionRecord>, questionsPublisher: Publisher<unknown>, outcomePublisher: Publisher<OutcomeRecord>): Promise<AddQuestionReturn>;
28
28
  /** @param {MapStore<Handle<'Question'>, QuestionRecord>} questionStore */
29
- export function getOpenQuestions(questionStore: MapStore<Handle<"Question">, QuestionRecord>): Promise<any>;
29
+ export function getOpenQuestions(questionStore: MapStore<Handle<"Question">, QuestionRecord>): Promise<Handle<"Question">[]>;
30
30
  /**
31
31
  * @param {ERef<Handle<'Question'>>} questionHandleP
32
32
  * @param {MapStore<Handle<'Question'>, QuestionRecord>} questionStore
@@ -1 +1 @@
1
- {"version":3,"file":"electorateTools.d.ts","sourceRoot":"","sources":["electorateTools.js"],"names":[],"mappings":";aAUc,IAAI,CAAC,uBAAuB,CAAC;iBAC7B,sBAAsB;cACtB,OAAO,cAAc,EAAE,SAAS;;AAR9C;;GAEG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;GAWG;AACH,kCATW,GAAG,gBACH,YAAY,mBACZ,OAAO,eACP,IAAI,CAAC,YAAY,CAAC,iBAClB,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC,sBAC5C,SAAS,CAAC,OAAO,CAAC,oBAClB,SAAS,CAAC,aAAa,CAAC,GACtB,OAAO,CAAC,iBAAiB,CAA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65
 
66
66
  /** @param {MapStore<Handle<'Question'>, QuestionRecord>} questionStore */
67
67
  const getOpenQuestions = async questionStore => {
68
+ /** @type {[Promise<boolean>, Handle<'Question'>][]} */
68
69
  const isOpenPQuestions = [...questionStore.entries()].map(
69
70
  ([key, { publicFacet }]) => {
70
71
  return [E(publicFacet).isOpen(), key];
71
72
  },
72
73
  );
73
74
 
75
+ /** @type {[boolean, Handle<'Question'>][]} */
74
76
  const isOpenQuestions = await deeplyFulfilled(harden(isOpenPQuestions));
75
77
  return isOpenQuestions
76
78
  .filter(([open, _key]) => open)