@agoric/governance 0.10.4-dev-1cb7915.0 → 0.10.4-dev-823c8d1.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 +10 -10
- package/src/committee.d.ts +3 -0
- package/src/committee.d.ts.map +1 -1
- package/src/committee.js +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/governance",
|
|
3
|
-
"version": "0.10.4-dev-
|
|
3
|
+
"version": "0.10.4-dev-823c8d1.0+823c8d1",
|
|
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-
|
|
35
|
-
"@agoric/internal": "0.3.3-dev-
|
|
36
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
37
|
-
"@agoric/store": "0.9.3-dev-
|
|
38
|
-
"@agoric/time": "0.3.3-dev-
|
|
39
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
40
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
34
|
+
"@agoric/ertp": "0.16.3-dev-823c8d1.0+823c8d1",
|
|
35
|
+
"@agoric/internal": "0.3.3-dev-823c8d1.0+823c8d1",
|
|
36
|
+
"@agoric/notifier": "0.6.3-dev-823c8d1.0+823c8d1",
|
|
37
|
+
"@agoric/store": "0.9.3-dev-823c8d1.0+823c8d1",
|
|
38
|
+
"@agoric/time": "0.3.3-dev-823c8d1.0+823c8d1",
|
|
39
|
+
"@agoric/vat-data": "0.5.3-dev-823c8d1.0+823c8d1",
|
|
40
|
+
"@agoric/zoe": "0.26.3-dev-823c8d1.0+823c8d1",
|
|
41
41
|
"@endo/bundle-source": "^3.4.2",
|
|
42
42
|
"@endo/captp": "^4.4.2",
|
|
43
43
|
"@endo/errors": "^1.2.7",
|
|
@@ -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-
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-823c8d1.0+823c8d1",
|
|
53
53
|
"@endo/bundle-source": "^3.4.2",
|
|
54
54
|
"@endo/init": "^1.1.6",
|
|
55
55
|
"ava": "^5.3.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"typeCoverage": {
|
|
79
79
|
"atLeast": 89.35
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "823c8d1b7e337ec4583e2fb799fb74144fb3039c"
|
|
82
82
|
}
|
package/src/committee.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {ElectorateCreatorFacet, CommitteeElectoratePublic, QuestionDetails, OutcomeRecord, AddQuestion} from './types.js';
|
|
3
|
+
*/
|
|
1
4
|
/**
|
|
2
5
|
* @typedef { ElectorateCreatorFacet & {
|
|
3
6
|
* getVoterInvitations: () => Promise<Invitation<{ voter: { castBallotFor(handle: any, choice?: any, ): void}}>>[]
|
package/src/committee.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"committee.d.ts","sourceRoot":"","sources":["committee.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"committee.d.ts","sourceRoot":"","sources":["committee.js"],"names":[],"mappings":"AAiBA;;GAEG;AAEH;;;;GAIG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAOnC;AAoBK,2BARI,GAAG,CAAC;IACV,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC,eACM;IAAE,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;CAAC,WAC/D,OAAO,kBAAkB,EAAE,OAAO,GAChC;IAAC,YAAY,EAAE,+BAA+B,CAAC;IAAC,WAAW,EAAE,yBAAyB,CAAA;CAAC,CAkInG;8CAhKa,sBAAsB,GAAG;IAClC,mBAAmB,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC;QAAE,KAAK,EAAE;YAAE,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,GAAK,IAAI,CAAA;SAAC,CAAA;KAAC,CAAC,CAAC,EAAE,CAAA;CAChH;+CAN6G,YAAY;4CAAZ,YAAY"}
|
package/src/committee.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { makeStoredPublishKit } from '@agoric/notifier';
|
|
2
2
|
import { M } from '@agoric/store';
|
|
3
|
-
import { natSafeMath } from '@agoric/zoe/src/contractSupport/index.js';
|
|
4
3
|
import { E } from '@endo/eventual-send';
|
|
5
4
|
|
|
6
5
|
import { StorageNodeShape } from '@agoric/internal';
|
|
@@ -20,8 +19,6 @@ import { prepareVoterKit } from './voterKit.js';
|
|
|
20
19
|
* @import {ElectorateCreatorFacet, CommitteeElectoratePublic, QuestionDetails, OutcomeRecord, AddQuestion} from './types.js';
|
|
21
20
|
*/
|
|
22
21
|
|
|
23
|
-
const { ceilDivide } = natSafeMath;
|
|
24
|
-
|
|
25
22
|
/**
|
|
26
23
|
* @typedef { ElectorateCreatorFacet & {
|
|
27
24
|
* getVoterInvitations: () => Promise<Invitation<{ voter: { castBallotFor(handle: any, choice?: any, ): void}}>>[]
|
|
@@ -139,7 +136,7 @@ export const start = (zcf, privateArgs, baggage) => {
|
|
|
139
136
|
const quorumThreshold = quorumRule => {
|
|
140
137
|
switch (quorumRule) {
|
|
141
138
|
case QuorumRule.MAJORITY:
|
|
142
|
-
return
|
|
139
|
+
return Math.ceil((committeeSize + 1) / 2);
|
|
143
140
|
case QuorumRule.ALL:
|
|
144
141
|
return committeeSize;
|
|
145
142
|
case QuorumRule.NO_QUORUM:
|