@agoric/governance 0.10.4-upgrade-18-dev-aaebae4.0 → 0.10.4-upgrade-18-dev-cc4b6b8.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-upgrade-18-dev-aaebae4.0+aaebae4",
3
+ "version": "0.10.4-upgrade-18-dev-cc4b6b8.0+cc4b6b8",
4
4
  "description": "Core governance support",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -13,7 +13,7 @@
13
13
  "prepack": "tsc --build tsconfig.build.json",
14
14
  "postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
15
15
  "test": "ava",
16
- "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
16
+ "test:c8": "c8 --all $C8_OPTIONS ava",
17
17
  "test:xs": "exit 0",
18
18
  "lint-fix": "yarn lint:eslint --fix",
19
19
  "lint": "run-s --continue-on-error lint:*",
@@ -31,29 +31,29 @@
31
31
  },
32
32
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
33
33
  "dependencies": {
34
- "@agoric/ertp": "0.16.3-upgrade-18-dev-aaebae4.0+aaebae4",
35
- "@agoric/internal": "0.4.0-upgrade-18-dev-aaebae4.0+aaebae4",
36
- "@agoric/notifier": "0.7.0-upgrade-18-dev-aaebae4.0+aaebae4",
37
- "@agoric/store": "0.9.3-upgrade-18-dev-aaebae4.0+aaebae4",
38
- "@agoric/time": "0.3.3-upgrade-18-dev-aaebae4.0+aaebae4",
39
- "@agoric/vat-data": "0.5.3-upgrade-18-dev-aaebae4.0+aaebae4",
40
- "@agoric/zoe": "0.26.3-upgrade-18-dev-aaebae4.0+aaebae4",
41
- "@endo/bundle-source": "^3.4.2",
42
- "@endo/captp": "^4.4.2",
43
- "@endo/errors": "^1.2.7",
44
- "@endo/eventual-send": "^1.2.7",
45
- "@endo/far": "^1.1.8",
46
- "@endo/marshal": "^1.6.1",
47
- "@endo/nat": "^5.0.12",
48
- "@endo/promise-kit": "^1.1.7",
34
+ "@agoric/ertp": "0.16.3-upgrade-18-dev-cc4b6b8.0+cc4b6b8",
35
+ "@agoric/internal": "0.4.0-upgrade-18-dev-cc4b6b8.0+cc4b6b8",
36
+ "@agoric/notifier": "0.7.0-upgrade-18-dev-cc4b6b8.0+cc4b6b8",
37
+ "@agoric/store": "0.9.3-upgrade-18-dev-cc4b6b8.0+cc4b6b8",
38
+ "@agoric/time": "0.3.3-upgrade-18-dev-cc4b6b8.0+cc4b6b8",
39
+ "@agoric/vat-data": "0.5.3-upgrade-18-dev-cc4b6b8.0+cc4b6b8",
40
+ "@agoric/zoe": "0.26.3-upgrade-18-dev-cc4b6b8.0+cc4b6b8",
41
+ "@endo/bundle-source": "^3.5.0",
42
+ "@endo/captp": "^4.4.3",
43
+ "@endo/errors": "^1.2.8",
44
+ "@endo/eventual-send": "^1.2.8",
45
+ "@endo/far": "^1.1.9",
46
+ "@endo/marshal": "^1.6.2",
47
+ "@endo/nat": "^5.0.13",
48
+ "@endo/promise-kit": "^1.1.8",
49
49
  "import-meta-resolve": "^2.2.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@agoric/swingset-vat": "0.33.0-upgrade-18-dev-aaebae4.0+aaebae4",
53
- "@endo/bundle-source": "^3.4.2",
54
- "@endo/init": "^1.1.6",
52
+ "@agoric/swingset-vat": "0.33.0-upgrade-18-dev-cc4b6b8.0+cc4b6b8",
53
+ "@endo/bundle-source": "^3.5.0",
54
+ "@endo/init": "^1.1.7",
55
55
  "ava": "^5.3.0",
56
- "c8": "^9.1.0"
56
+ "c8": "^10.1.2"
57
57
  },
58
58
  "files": [
59
59
  "README.md",
@@ -76,7 +76,7 @@
76
76
  "access": "public"
77
77
  },
78
78
  "typeCoverage": {
79
- "atLeast": 89.35
79
+ "atLeast": 89.49
80
80
  },
81
- "gitHead": "aaebae4892112869b545faad80bfbe0b8d8602b8"
81
+ "gitHead": "cc4b6b8b8131b14b4e50f45ff01d6018f9ee3995"
82
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"governParam.d.ts","sourceRoot":"","sources":["governParam.js"],"names":[],"mappings":"AAwDA;;;;;;GAMG;AACH,oEANW,MAAM,IAAI,CAAC,qBAAqB,CAAC,oBACjC,QAAQ,SACR,OAAO,cAAc,EAAE,YAAY,wBACnC,MAAM,OAAO,CAAC,UAAU,CAAC,GACvB,aAAa,CA0FzB;AAhID;;;;;;GAMG;AACH,kDAHW,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GACxB,oBAAoB,CAQhC;AAED;;;;;;GAMG;AACH,qDAHW;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAC,gBAC5C,aAAa,iBAAiB,OAAO,CAAC,CAAC,QAWjD;AAzCD;;GAEG;AAEH;;;GAGG;AACH,+CAAyC;2CAPsI,aAAa;gCAAb,aAAa;mCAAb,aAAa;gCAAb,aAAa;0CAAb,aAAa;sCAAb,aAAa;kCAAb,aAAa"}
1
+ {"version":3,"file":"governParam.d.ts","sourceRoot":"","sources":["governParam.js"],"names":[],"mappings":"AAwDA;;;;;;GAMG;AACH,oEANW,MAAM,IAAI,CAAC,qBAAqB,CAAC,oBACjC,QAAQ,SACR,OAAO,cAAc,EAAE,YAAY,wBACnC,MAAM,OAAO,CAAC,UAAU,CAAC,GACvB,aAAa,CA0FzB;AAhID;;;;;;GAMG;AACH,kDAHW,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GACxB,oBAAoB,CAQhC;AAED;;;;;;GAMG;AACH,qDAHW;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAC,gBAC5C,aAAa,iBAAiB,OAAO,CAAC,CAAC,QAWjD;AAzCD;;GAEG;AAEH;;;GAGG;AACH,kCAA4B,YAAY,CAAC;2CAPsI,aAAa;gCAAb,aAAa;mCAAb,aAAa;gCAAb,aAAa;0CAAb,aAAa;sCAAb,aAAa;kCAAb,aAAa"}
@@ -43,7 +43,7 @@ export function assertElectorateMatches(paramManager: ParamManagerBase, governed
43
43
  * @param {import('@agoric/notifier').StoredPublisherKit<GovernanceSubscriptionState>} publisherKit
44
44
  * @param {ERef<ZoeService>} [zoe]
45
45
  */
46
- export function makeParamManagerBuilder(publisherKit: import("@agoric/notifier").StoredPublisherKit<GovernanceSubscriptionState>, zoe?: globalThis.ERef<ZoeService> | undefined): ParamManagerBuilder;
46
+ export function makeParamManagerBuilder(publisherKit: import("@agoric/notifier").StoredPublisherKit<GovernanceSubscriptionState>, zoe?: ERef<ZoeService>): ParamManagerBuilder;
47
47
  import type { AnyParamManager } from '../types.js';
48
48
  import type { ParamManagerBase } from '../types.js';
49
49
  import { CONTRACT_ELECTORATE } from './governParam.js';
@@ -1 +1 @@
1
- {"version":3,"file":"paramManager.d.ts","sourceRoot":"","sources":["paramManager.js"],"names":[],"mappings":";eA0Cc,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,KA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AAE,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;WACjD,MAAM,eAAe;;AAlCnC;;GAEG;AAEH;;;GAGG;AACH,sDAHW,gBAAgB,kBAChB;IAAC,CAAC,mBAAmB,CAAC,EAAE,gBAAgB,YAAY,CAAC,CAAA;CAAC,QAYhE;AAED;;;;;;;;;;;;;;;GAeG;AAEH;;;GAGG;AACH,sDAHW,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,QAC1E,IAAI,CAAC,UAAU,CAAC,uBAgX1B;qCAtZiI,aAAa;sCAAb,aAAa;oCAH3G,kBAAkB;qCAG4E,aAAa;iDAAb,aAAa"}
@@ -120,7 +120,6 @@ const makeParamManagerBuilder = (publisherKit, zoe) => {
120
120
  });
121
121
 
122
122
  // names are keywords so they will necessarily be TitleCase
123
- // eslint-disable-next-line no-use-before-define
124
123
  getters[`get${name}`] = () => getTypedParam(type, name);
125
124
  // CRUCIAL: here we're creating the update functions that can change the
126
125
  // values of the governed contract's parameters. We'll return the updateFns
@@ -292,7 +291,6 @@ const makeParamManagerBuilder = (publisherKit, zoe) => {
292
291
  getVisibleValue,
293
292
  });
294
293
 
295
- // eslint-disable-next-line no-use-before-define
296
294
  getters[`get${name}`] = () => getTypedParam(ParamTypes.INVITATION, name);
297
295
  // CRUCIAL: here we're creating the update functions that can change the
298
296
  // values of the governed contract's parameters. We'll return updateParams
@@ -1 +1 @@
1
- {"version":3,"file":"typedParamManager.d.ts","sourceRo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Aa"}
@@ -3,9 +3,7 @@ export function prepareContractGovernorKit(baggage: import("@agoric/vat-data").B
3
3
  zoe: ERef<ZoeService>;
4
4
  }): (startedInstanceKit: import("@agoric/zoe/src/zoeService/utils.js").StartedInstanceKit<GovernableStartFn>, limitedCreatorFacet: any) => import("@endo/exo").GuardedKit<{
5
5
  helper: {
6
- /** @type {() => Promise<Instance>} */
7
6
  getElectorateInstance(): Promise<Instance>;
8
- /** @type {() => Promise<PoserFacet>} */
9
7
  getUpdatedPoserFacet(): Promise<PoserFacet>;
10
8
  provideApiGovernance(): Promise<import("./types.js").ApiGovernor>;
11
9
  provideFilterGovernance(): import("./types.js").FilterGovernor;
@@ -17,11 +15,8 @@ export function prepareContractGovernorKit(baggage: import("@agoric/vat-data").B
17
15
  * @returns {Promise<void>}
18
16
  */
19
17
  replaceElectorate(poserInvitation: Invitation): Promise<void>;
20
- /** @type {VoteOnParamChanges} */
21
18
  voteOnParamChanges(voteCounterInstallation: Installation, deadline: import("@agoric/time").Timestamp, paramSpec: import("./types.js").ParamChangesSpec<import("./types.js").StandardParamPath>): Promise<import("./types.js").ContractGovernanceVoteResult>;
22
- /** @type {VoteOnApiInvocation} */
23
19
  voteOnApiInvocation(apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[], voteCounterInstallation: Installation, deadline: import("@agoric/time").Timestamp): Promise<import("./types.js").ContractGovernanceVoteResult>;
24
- /** @type {VoteOnOfferFilter} */
25
20
  voteOnOfferFilter(voteCounterInstallation: Installation, deadline: import("@agoric/time").Timestamp, strings: string[]): Promise<import("./types.js").ContractGovernanceVoteResult>;
26
21
  getCreatorFacet(): any;
27
22
  getAdminFacet(): import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<GovernableStartFn>;
@@ -1 +1 @@
1
- {"version":3,"file":"contractGovernorKit.d.ts","sourceRoot":"","sources":["contractGovernorKit.js"],"names":[],"mappings":"AAkEO,oDANI,OAAO,kBAAkB,EAAE,OAAO,UAClC;IACN,KAAK,EAAE,OAA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* @param {M} paramTypesMap
24
24
  * @param {ERef<StorageNode>} [storageNode]
25
25
  * @param {ERef<Marshaller>} [marshaller]
26
+ * @param {object} [overrides]
26
27
  */
27
- export function handleParamGovernance<M extends import("./contractGovernance/typedParamManager.js").ParamTypesMap>(zcf: ZCF<GovernanceTerms<M>>, initialPoserInvitation: Invitation, paramTypesMap: M, storageNode?: globalThis.ERef<globalThis.StorageNode> | undefined, marshaller?: globalThis.ERef<{
28
- toCapData: import("@endo/marshal").ToCapData<unknown>;
29
- fromCapData: import("@endo/marshal").FromCapData<unknown>;
30
- serialize: import("@endo/marshal").ToCapData<unknown>;
31
- unserialize: import("@endo/marshal").FromCapData<unknown>;
32
- }> | undefined): {
28
+ export function handleParamGovernance<M extends import("./contractGovernance/typedParamManager.js").ParamTypesMap>(zcf: ZCF<GovernanceTerms<M>>, initialPoserInvitation: Invitation, paramTypesMap: M, storageNode?: ERef<StorageNode>, marshaller?: ERef<Marshaller>, overrides?: object): {
33
29
  publicMixin: {
34
30
  getAmount: (name: string) => Amount;
35
31
  getBrand: (name: string) => Brand;
@@ -75,7 +71,7 @@ export function handleParamGovernance<M extends import("./contractGovernance/typ
75
71
  getSubscription: () => globalThis.StoredSubscription<GovernanceSubscriptionState>;
76
72
  getGovernedParams: () => globalThis.ERef<import("./types.js").ParamStateRecord>;
77
73
  }>;
78
- makeGovernorFacet: <CF extends {}>(originalCreatorFacet: CF, governedApis?: {} | undefined) => GovernedCreatorFacet<CF>;
74
+ makeGovernorFacet: <CF extends {}>(originalCreatorFacet: CF, governedApis?: {}) => GovernedCreatorFacet<CF>;
79
75
  makeFarGovernorFacet: <CF extends {}>(limitedCreatorFacet: CF, governedApis?: Record<string, (...any: any[]) => unknown> | undefined) => GovernedCreatorFacet<CF>;
80
76
  makeVirtualGovernorFacet: <LCF extends {
81
77
  [methodName: string]: (context?: unknown, ...rest: unknown[]) => unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"contractHelper.d.ts","sourceRoot":"","sources":["contractH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250
  * @param {M} paramTypesMap
251
251
  * @param {ERef<StorageNode>} [storageNode]
252
252
  * @param {ERef<Marshaller>} [marshaller]
253
+ * @param {object} [overrides]
253
254
  */
254
255
  const handleParamGovernance = (
255
256
  zcf,
@@ -257,6 +258,7 @@ const handleParamGovernance = (
257
258
  paramTypesMap,
258
259
  storageNode,
259
260
  marshaller,
261
+ overrides,
260
262
  ) => {
261
263
  /** @type {import('@agoric/notifier').StoredPublisherKit<GovernanceSubscriptionState>} */
262
264
  const publisherKit = makeStoredPublisherKit(
@@ -269,6 +271,7 @@ const handleParamGovernance = (
269
271
  zcf,
270
272
  { Electorate: initialPoserInvitation },
271
273
  paramTypesMap,
274
+ overrides,
272
275
  );
273
276
 
274
277
  return facetHelpers(zcf, paramManager);
@@ -1 +1 @@
1
- {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AASA,iEAAwE;AACxE,+DAAoE;AACpE,iEAME;;;;;;;;;;;AAcF;;;;KAGG;;;;;;;;;;;;;;;;;;;;AAsBH,qEAAqE;AACrE,4EAAkE;;;;AAIlE;;KAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCH;;;;;KAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBH;;IAGG;;;;;;;;;;;;;;;;;;;;;;;;AAmBH,iEAKE;AAEF,6DASE;AAEF,mEAA+D;AAG/D,+DAAyD;AAKzD,oEAKE;AAEF;;;;;;GAMG;AAGH;;;;;;GAQG;;;;;;AAQH;;;GAGG;AAGH;;;;;;;GAUE;AAEF,2DAAyC;AACzC;;GAOE;AAEF;;GAKE;AAEF;;;;;;;GAOG;AAEH;;GAIG;AAEH;;GAEG;;;;;;;;;+BAlQ4B,cAAc;oCAKtC,+BAA+B"}
1
+ {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AASA,iEAAwE;AACxE,+DAAoE;AACpE,iEAME;;;;;;;;;;;AAiBF;;;;KAGE;;;;;;;;;;;;;;;;;;;;AA2BF,qEAAqE;AACrE,4EAAkE;;;;AAIlE;;KAGE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CF;;;;;KAGE;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCF;;IAGE;;;;;;;;;;;;;;;;;;;;;;;;AA0BF,iEAKE;AAEF,6DASE;AAEF,mEAA+D;AAG/D,+DAAyD;AAKzD,oEAKE;AAEF;;;;;;GAMG;AAGH;;;;;;GAQG;;;;;;AASH;;;GAGG;AAGH;;;;;;;GAUE;AAEF,2DAAyC;AACzC;;GAOE;AAEF;;GAKE;AAEF;;;;;;;GAOG;AAEH;;GAIG;AAEH;;GAEG;;;;;;;;;+BAnS4B,cAAc;oCAKtC,+BAA+B"}
package/src/typeGuards.js CHANGED
@@ -17,26 +17,31 @@ export const ElectionTypeShape = M.or(
17
17
  'offer_filter',
18
18
  );
19
19
 
20
- export const ClosingRuleShape = harden({
20
+ export const ClosingRuleShape = {
21
21
  timer: M.eref(TimerShape),
22
22
  deadline: TimestampShape,
23
- });
23
+ };
24
+ harden(ClosingRuleShape);
24
25
 
25
26
  // all the strings that will be in the filter after passing
26
- export const YesOfferFilterPositionShape = harden({
27
+ export const YesOfferFilterPositionShape = {
27
28
  strings: M.arrayOf(M.string()),
28
- });
29
- export const NoOfferFilterPositionShape = harden({
30
- dontUpdate: M.arrayOf(M.string()),
31
- });
32
- export const OfferFilterPositionsShape = harden([
29
+ };
30
+ harden(YesOfferFilterPositionShape);
31
+
32
+ export const NoOfferFilterPositionShape = { dontUpdate: M.arrayOf(M.string()) };
33
+ harden(NoOfferFilterPositionShape);
34
+
35
+ export const OfferFilterPositionsShape = [
33
36
  YesOfferFilterPositionShape,
34
37
  NoOfferFilterPositionShape,
35
- ]);
36
- export const OfferFilterIssueShape = harden({
37
- strings: M.arrayOf(M.string()),
38
- });
39
- export const OfferFilterQuestionSpecShape = harden({
38
+ ];
39
+ harden(OfferFilterPositionsShape);
40
+
41
+ export const OfferFilterIssueShape = { strings: M.arrayOf(M.string()) };
42
+ harden(OfferFilterIssueShape);
43
+
44
+ export const OfferFilterQuestionSpecShape = {
40
45
  method: ChoiceMethodShape,
41
46
  issue: OfferFilterIssueShape,
42
47
  positions: OfferFilterPositionsShape,
@@ -46,34 +51,41 @@ export const OfferFilterQuestionSpecShape = harden({
46
51
  closingRule: ClosingRuleShape,
47
52
  quorumRule: QuorumRuleShape,
48
53
  tieOutcome: NoOfferFilterPositionShape,
49
- });
50
- export const OfferFilterQuestionDetailsShape = harden({
54
+ };
55
+ harden(OfferFilterQuestionSpecShape);
56
+
57
+ export const OfferFilterQuestionDetailsShape = {
51
58
  ...OfferFilterQuestionSpecShape,
52
59
  questionHandle: makeHandleShape('Question'),
53
60
  counterInstance: InstanceHandleShape,
54
- });
61
+ };
62
+ harden(OfferFilterQuestionDetailsShape);
55
63
 
56
64
  // keys are parameter names, values are proposed values
57
65
  export const ParamChangesSpecShape = M.recordOf(M.string(), M.any());
58
66
  export const YesParamChangesPositionShape = ParamChangesSpecShape;
59
- export const NoParamChangesPositionShape = harden({
60
- noChange: M.arrayOf(M.string()),
61
- });
62
- export const ParamChangesPositionsShape = harden([
67
+ export const NoParamChangesPositionShape = { noChange: M.arrayOf(M.string()) };
68
+ harden(NoParamChangesPositionShape);
69
+
70
+ export const ParamChangesPositionsShape = [
63
71
  YesParamChangesPositionShape,
64
72
  NoParamChangesPositionShape,
65
- ]);
66
- export const ParamPathShape = harden({
67
- key: M.any(),
68
- });
69
- export const ParamChangesIssueShape = harden({
73
+ ];
74
+ harden(ParamChangesPositionsShape);
75
+
76
+ export const ParamPathShape = { key: M.any() };
77
+ harden(ParamPathShape);
78
+
79
+ export const ParamChangesIssueShape = {
70
80
  spec: {
71
81
  paramPath: ParamPathShape,
72
82
  changes: ParamChangesSpecShape,
73
83
  },
74
84
  contract: InstanceHandleShape,
75
- });
76
- export const ParamChangesQuestionSpecShape = harden({
85
+ };
86
+ harden(ParamChangesIssueShape);
87
+
88
+ export const ParamChangesQuestionSpecShape = {
77
89
  method: 'unranked',
78
90
  issue: ParamChangesIssueShape,
79
91
  positions: ParamChangesPositionsShape,
@@ -83,27 +95,33 @@ export const ParamChangesQuestionSpecShape = harden({
83
95
  closingRule: ClosingRuleShape,
84
96
  quorumRule: 'majority',
85
97
  tieOutcome: NoParamChangesPositionShape,
86
- });
98
+ };
99
+ harden(ParamChangesQuestionSpecShape);
87
100
 
88
- export const ParamChangesQuestionDetailsShape = harden({
101
+ export const ParamChangesQuestionDetailsShape = {
89
102
  ...ParamChangesQuestionSpecShape,
90
103
  questionHandle: makeHandleShape('Question'),
91
104
  counterInstance: InstanceHandleShape,
92
- });
105
+ };
106
+ harden(ParamChangesQuestionDetailsShape);
93
107
 
94
- const ApiInvocationSpecShape = harden({
108
+ const ApiInvocationSpecShape = {
95
109
  apiMethodName: M.string(),
96
110
  methodArgs: M.arrayOf(M.any()),
97
- });
111
+ };
112
+ harden(ApiInvocationSpecShape);
113
+
98
114
  export const YesApiInvocationPositionShape = ApiInvocationSpecShape;
99
- export const NoApiInvocationPositionShape = harden({
100
- dontInvoke: M.string(),
101
- });
102
- export const ApiInvocationPositionsShape = harden([
115
+ export const NoApiInvocationPositionShape = { dontInvoke: M.string() };
116
+ harden(NoApiInvocationPositionShape);
117
+
118
+ export const ApiInvocationPositionsShape = [
103
119
  YesApiInvocationPositionShape,
104
120
  NoApiInvocationPositionShape,
105
- ]);
106
- export const ApiInvocationQuestionSpecShape = harden({
121
+ ];
122
+ harden(ApiInvocationPositionsShape);
123
+
124
+ export const ApiInvocationQuestionSpecShape = {
107
125
  method: 'unranked',
108
126
  issue: ApiInvocationSpecShape,
109
127
  positions: ApiInvocationPositionsShape,
@@ -113,39 +131,53 @@ export const ApiInvocationQuestionSpecShape = harden({
113
131
  closingRule: ClosingRuleShape,
114
132
  quorumRule: QuorumRuleShape,
115
133
  tieOutcome: NoApiInvocationPositionShape,
116
- });
117
- export const ApiInvocationQuestionDetailsShape = harden({
134
+ };
135
+ harden(ApiInvocationQuestionSpecShape);
136
+
137
+ export const ApiInvocationQuestionDetailsShape = {
118
138
  ...ApiInvocationQuestionSpecShape,
119
139
  questionHandle: makeHandleShape('Question'),
120
140
  counterInstance: InstanceHandleShape,
121
- });
141
+ };
142
+ harden(ApiInvocationQuestionDetailsShape);
122
143
 
123
- const SimpleSpecShape = harden({
124
- text: M.string(),
125
- });
126
- export const YesSimplePositionShape = harden({ text: M.string() });
127
- export const NoSimplePositionShape = harden({ text: M.string() });
128
- export const SimplePositionsShape = harden([
144
+ const SimpleSpecShape = { text: M.string() };
145
+ harden(SimpleSpecShape);
146
+
147
+ export const YesSimplePositionShape = { text: M.string() };
148
+ harden(YesSimplePositionShape);
149
+
150
+ export const NoSimplePositionShape = { text: M.string() };
151
+ harden(NoSimplePositionShape);
152
+
153
+ export const SimplePositionsShape = [
129
154
  YesSimplePositionShape,
130
155
  NoSimplePositionShape,
131
- ]);
156
+ ];
157
+ harden(SimplePositionsShape);
158
+
132
159
  export const SimpleIssueShape = SimpleSpecShape;
133
- export const SimpleQuestionSpecShape = harden({
160
+ harden(SimpleIssueShape);
161
+
162
+ export const SimpleQuestionSpecShape = {
134
163
  method: ChoiceMethodShape,
135
164
  issue: SimpleIssueShape,
136
- positions: M.arrayOf(harden({ text: M.string() })),
165
+ positions: M.arrayOf({ text: M.string() }),
137
166
  electionType: M.or('election', 'survey'),
138
167
  maxChoices: M.gte(1),
139
168
  maxWinners: M.gte(1),
140
169
  closingRule: ClosingRuleShape,
141
170
  quorumRule: QuorumRuleShape,
142
171
  tieOutcome: NoSimplePositionShape,
143
- });
144
- export const SimpleQuestionDetailsShape = harden({
172
+ };
173
+ harden(SimpleQuestionSpecShape);
174
+
175
+ export const SimpleQuestionDetailsShape = {
145
176
  ...SimpleQuestionSpecShape,
146
177
  questionHandle: makeHandleShape('Question'),
147
178
  counterInstance: InstanceHandleShape,
148
- });
179
+ };
180
+ harden(SimpleQuestionDetailsShape);
149
181
 
150
182
  export const QuestionSpecShape = M.or(
151
183
  ApiInvocationQuestionSpecShape,
@@ -199,11 +231,12 @@ export const ElectorateCreatorI = M.interface('Committee AdminFacet', {
199
231
  getPublicFacet: M.call().returns(ElectoratePublicShape),
200
232
  });
201
233
 
202
- export const QuestionStatsShape = harden({
234
+ export const QuestionStatsShape = {
203
235
  spoiled: M.nat(),
204
236
  votes: M.nat(),
205
237
  results: M.arrayOf({ position: PositionShape, total: M.nat() }),
206
- });
238
+ };
239
+ harden(QuestionStatsShape);
207
240
 
208
241
  export const QuestionI = M.interface('Question', {
209
242
  getVoteCounter: M.call().returns(InstanceHandleShape),
@@ -2,7 +2,7 @@ export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<Zoe
2
2
  [k: string]: any;
3
3
  governedParams?: Record<string, unknown>;
4
4
  governedApis?: string[];
5
- }, privateArgsOfGoverned?: {}, issuerKeywordRecord?: IssuerKeywordRecord | undefined): Promise<{
5
+ }, privateArgsOfGoverned?: {}, issuerKeywordRecord?: IssuerKeywordRecord): Promise<{
6
6
  getFakeInvitation: () => Promise<{
7
7
  fakeInvitationPayment: any;
8
8
  fakeInvitationAmount: import("@agoric/ertp").SetAmount<InvitationDetails>;
@@ -1 +1 @@
1
- {"version":3,"file":"puppetGovernance.d.ts","sourceRoot":"","sources":["puppetGovernance.js"],"names":[],"mappings":"AAkCO,sCAR0B,CAAC,SAArB,iBAAmB,OACrB,IAAI,CAAC,UAAU,CAAC,aAChB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SACrB,OAAO,cAAc,EAAE,YAAY,oBACnC;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,0BACvF,EAAE;;;;;;sBAL6C,cAC/C;;;+BAEmC,CAAC;;;kDAC+B,gDACpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAFoC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiF9C;uCAxGmC,iBAAiB;oCAHL,iBAAiB"}
1
+ {"version":3,"file":"puppetGovernance.d.ts","sourceRoot":"","sources":["puppetGovernance.js"],"names":[],"mappings":"AAkCO,sCAR0B,CAAC,SAArB,iBAAmB,OACrB,IAAI,CAAC,UAAU,CAAC,aAChB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SACrB,OAAO,cAAc,EAAE,YAAY,oBACnC;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,0BACvF,EAAE,wBACF,mBAAmB;;;;;;sBAN4B,cAC/C;;;+BAEmC,CAAC;;;kDAC+B,gDACpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BALgD,cAC/C;;;mCAEmC,CAAC;;;sDAC+B,gDACpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+ET;uCAxGmC,iBAAiB;oCAHL,iBAAiB"}