@agoric/governance 0.10.4-dev-034d7f6.0 → 0.10.4-dev-bb3d92f.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 +11 -12
- package/src/binaryVoteCounter.d.ts.map +1 -1
- package/src/binaryVoteCounter.js +2 -3
- package/src/contractGovernance/paramManager.d.ts.map +1 -1
- package/src/contractGovernance/paramManager.js +1 -2
- package/src/multiCandidateVoteCounter.d.ts.map +1 -1
- package/src/multiCandidateVoteCounter.js +2 -3
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-bb3d92f.0+bb3d92f",
|
|
4
4
|
"description": "Core governance support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/assert": "0.6.1-dev-
|
|
35
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
36
|
-
"@agoric/internal": "0.3.3-dev-
|
|
37
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
38
|
-
"@agoric/store": "0.9.3-dev-
|
|
39
|
-
"@agoric/time": "0.3.3-dev-
|
|
40
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
41
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
34
|
+
"@agoric/assert": "0.6.1-dev-bb3d92f.0+bb3d92f",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-bb3d92f.0+bb3d92f",
|
|
36
|
+
"@agoric/internal": "0.3.3-dev-bb3d92f.0+bb3d92f",
|
|
37
|
+
"@agoric/notifier": "0.6.3-dev-bb3d92f.0+bb3d92f",
|
|
38
|
+
"@agoric/store": "0.9.3-dev-bb3d92f.0+bb3d92f",
|
|
39
|
+
"@agoric/time": "0.3.3-dev-bb3d92f.0+bb3d92f",
|
|
40
|
+
"@agoric/vat-data": "0.5.3-dev-bb3d92f.0+bb3d92f",
|
|
41
|
+
"@agoric/zoe": "0.26.3-dev-bb3d92f.0+bb3d92f",
|
|
42
42
|
"@endo/bundle-source": "^3.2.3",
|
|
43
43
|
"@endo/captp": "^4.2.0",
|
|
44
44
|
"@endo/eventual-send": "^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-
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-bb3d92f.0+bb3d92f",
|
|
53
53
|
"@endo/bundle-source": "^3.2.3",
|
|
54
54
|
"@endo/init": "^1.1.2",
|
|
55
55
|
"ava": "^5.3.0",
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
],
|
|
66
66
|
"ava": {
|
|
67
67
|
"files": [
|
|
68
|
-
"test/**/test-*.*",
|
|
69
68
|
"test/**/*.test.*"
|
|
70
69
|
],
|
|
71
70
|
"require": [
|
|
@@ -79,5 +78,5 @@
|
|
|
79
78
|
"typeCoverage": {
|
|
80
79
|
"atLeast": 89.31
|
|
81
80
|
},
|
|
82
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "bb3d92fdf0763723117190b29ed1a2e44389e771"
|
|
83
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binaryVoteCounter.d.ts","sourceRoot":"","sources":["binaryVoteCounter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"binaryVoteCounter.d.ts","sourceRoot":"","sources":["binaryVoteCounter.js"],"names":[],"mappings":"AA2CA,+BAA+B;AAC/B,qDA6JE;AAMF;;;GAGG;AACH;;qBAH6D,MAAM;;;;;;EAqBlE;sCAlNyF,YAAY;kCAAZ,YAAY;mCAAZ,YAAY"}
|
package/src/binaryVoteCounter.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint @typescript-eslint/no-floating-promises: "warn" */
|
|
2
1
|
import { makePromiseKit } from '@endo/promise-kit';
|
|
3
2
|
import { makeExo, keyEQ, makeScalarMapStore } from '@agoric/store';
|
|
4
3
|
import { E } from '@endo/eventual-send';
|
|
@@ -114,7 +113,7 @@ const makeBinaryVoteCounter = (
|
|
|
114
113
|
outcome: 'fail',
|
|
115
114
|
reason: 'No quorum',
|
|
116
115
|
};
|
|
117
|
-
E(publisher).publish(voteOutcome);
|
|
116
|
+
void E(publisher).publish(voteOutcome);
|
|
118
117
|
return;
|
|
119
118
|
}
|
|
120
119
|
|
|
@@ -127,7 +126,7 @@ const makeBinaryVoteCounter = (
|
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
// XXX if we should distinguish ties, publish should be called in if above
|
|
130
|
-
E.when(outcomePromise.promise, position => {
|
|
129
|
+
void E.when(outcomePromise.promise, position => {
|
|
131
130
|
/** @type {OutcomeRecord} */
|
|
132
131
|
const voteOutcome = {
|
|
133
132
|
question: details.questionHandle,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paramManager.d.ts","sourceRoot":"","sources":["paramManager.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"paramManager.d.ts","sourceRoot":"","sources":["paramManager.js"],"names":[],"mappings":";eA2Cc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,mBAAmB;cACpD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,mBAAmB;qBACnD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,KAAK,mBAAmB;iBAC1D,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,KAAK,mBAAmB;mBACtD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,KAAK,mBAAmB;YACxD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,mBAAmB;cACpD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,mBAAmB;eACnD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,eAAe,EAAE,UAAU,CAAC,GAAG,CAAC,KAAK,mBAAmB;eACrF,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,mBAAmB;kBACpD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,cAAc,EAAE,SAAS,KAAK,mBAAmB;qBAC9E,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,cAAc,EAAE,YAAY,KAAK,mBAAmB;gBACjF,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,mBAAmB;;;AA7B/D;;;GAGG;AACH;;SAUC;AAED;;;;;;;;;;;;;;;GAeG;AAEH;;;GAGG;AACH,sMAgXC;qCA1ZiI,aAAa;sCAAb,aAAa;oCAH3G,kBAAkB;qCAG4E,aAAa;iDAAb,aAAa"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint @typescript-eslint/no-floating-promises: "warn" */
|
|
2
1
|
import { Far, passStyleOf } from '@endo/marshal';
|
|
3
2
|
import { AmountMath } from '@agoric/ertp';
|
|
4
3
|
import { assertKeywordName } from '@agoric/zoe/src/cleanProposal.js';
|
|
@@ -382,7 +381,7 @@ const makeParamManagerBuilder = (publisherKit, zoe) => {
|
|
|
382
381
|
const build = () => {
|
|
383
382
|
// XXX let params be finished async. A concession to upgradability
|
|
384
383
|
// UNTIL https://github.com/Agoric/agoric-sdk/issues/4343
|
|
385
|
-
E.when(finishBuilding(), () => publish());
|
|
384
|
+
void E.when(finishBuilding(), () => publish());
|
|
386
385
|
|
|
387
386
|
// CRUCIAL: Contracts that call buildParamManager should only export the
|
|
388
387
|
// resulting paramManager to their creatorFacet, where it will be picked up by
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiCandidateVoteCounter.d.ts","sourceRoot":"","sources":["multiCandidateVoteCounter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multiCandidateVoteCounter.d.ts","sourceRoot":"","sources":["multiCandidateVoteCounter.js"],"names":[],"mappings":"AAoCA,oCAAoC;AACpC,kEAuLE;AAEF;;;GAGG;AACH;;qBAH6D,MAAM;;;;;;EAiBlE;2CA5NmG,YAAY;kCAAZ,YAAY;wCAAZ,YAAY"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint @typescript-eslint/no-floating-promises: "warn" */
|
|
2
1
|
import { keyEQ, makeExo, makeScalarMapStore } from '@agoric/store';
|
|
3
2
|
import { E } from '@endo/eventual-send';
|
|
4
3
|
import { makePromiseKit } from '@endo/promise-kit';
|
|
@@ -101,7 +100,7 @@ const makeMultiCandidateVoteCounter = (
|
|
|
101
100
|
outcome: 'fail',
|
|
102
101
|
reason: 'No quorum',
|
|
103
102
|
};
|
|
104
|
-
E(publisher).publish(voteOutcome);
|
|
103
|
+
void E(publisher).publish(voteOutcome);
|
|
105
104
|
return;
|
|
106
105
|
}
|
|
107
106
|
|
|
@@ -144,7 +143,7 @@ const makeMultiCandidateVoteCounter = (
|
|
|
144
143
|
outcomePromise.resolve(untiedPositions.concat(tieWinners));
|
|
145
144
|
}
|
|
146
145
|
|
|
147
|
-
E.when(outcomePromise.promise, winPositions => {
|
|
146
|
+
void E.when(outcomePromise.promise, winPositions => {
|
|
148
147
|
/** @type { MultiOutcomeRecord } */
|
|
149
148
|
const voteOutcome = {
|
|
150
149
|
question: details.questionHandle,
|