@agoric/governance 0.10.4-dev-1145be3.0.1145be3 → 0.10.4-dev-b084a06.0.b084a06
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 -13
- package/src/binaryVoteCounter.d.ts +1 -0
- package/src/binaryVoteCounter.d.ts.map +1 -1
- package/src/binaryVoteCounter.js +3 -0
- package/src/committee.d.ts +6 -0
- package/src/committee.d.ts.map +1 -1
- package/src/committee.js +4 -0
- package/src/contractGovernance/assertions.d.ts +4 -0
- package/src/contractGovernance/assertions.d.ts.map +1 -1
- package/src/contractGovernance/assertions.js +4 -0
- package/src/contractGovernance/governApi.d.ts +2 -0
- package/src/contractGovernance/governApi.d.ts.map +1 -1
- package/src/contractGovernance/governApi.js +1 -0
- package/src/contractGovernance/governFilter.d.ts +2 -0
- package/src/contractGovernance/governFilter.d.ts.map +1 -1
- package/src/contractGovernance/governFilter.js +1 -0
- package/src/contractGovernance/governParam.d.ts +4 -2
- package/src/contractGovernance/governParam.d.ts.map +1 -1
- package/src/contractGovernance/governParam.js +3 -2
- package/src/contractGovernance/paramManager.d.ts +8 -1
- package/src/contractGovernance/paramManager.d.ts.map +1 -1
- package/src/contractGovernance/paramManager.js +4 -1
- package/src/contractGovernance/typedParamManager.d.ts +2 -0
- package/src/contractGovernance/typedParamManager.d.ts.map +1 -1
- package/src/contractGovernance/typedParamManager.js +2 -1
- package/src/contractGovernor.d.ts +3 -0
- package/src/contractGovernor.d.ts.map +1 -1
- package/src/contractGovernor.js +2 -1
- package/src/contractGovernorKit.d.ts +5 -3
- package/src/contractGovernorKit.d.ts.map +1 -1
- package/src/contractGovernorKit.js +2 -1
- package/src/contractHelper.d.ts +33 -31
- package/src/contractHelper.d.ts.map +1 -1
- package/src/contractHelper.js +1 -0
- package/src/electorateTools.d.ts +7 -1
- package/src/electorateTools.d.ts.map +1 -1
- package/src/electorateTools.js +3 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +3 -4
- package/src/multiCandidateVoteCounter.d.ts +1 -0
- package/src/multiCandidateVoteCounter.d.ts.map +1 -1
- package/src/multiCandidateVoteCounter.js +3 -0
- package/src/noActionElectorate.d.ts +1 -0
- package/src/noActionElectorate.d.ts.map +1 -1
- package/src/noActionElectorate.js +1 -0
- package/src/types.d.ts +31 -26
- package/src/types.d.ts.map +1 -1
- package/src/types.js +26 -29
- package/src/voterKit.d.ts +2 -0
- package/src/voterKit.d.ts.map +1 -1
- package/src/voterKit.js +2 -1
- package/tools/puppetContractGovernor.d.ts +7 -7
- package/tools/puppetContractGovernor.d.ts.map +1 -1
- package/tools/puppetContractGovernor.js +2 -2
- package/tools/puppetGovernance.d.ts +15 -13
- package/tools/puppetGovernance.d.ts.map +1 -1
- package/tools/puppetGovernance.js +2 -1
- package/exported.d.ts +0 -33
- package/exported.js +0 -1
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-b084a06.0.b084a06",
|
|
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-b084a06.0.b084a06",
|
|
35
|
+
"@agoric/internal": "0.3.3-dev-b084a06.0.b084a06",
|
|
36
|
+
"@agoric/notifier": "0.6.3-dev-b084a06.0.b084a06",
|
|
37
|
+
"@agoric/store": "0.9.3-dev-b084a06.0.b084a06",
|
|
38
|
+
"@agoric/time": "0.3.3-dev-b084a06.0.b084a06",
|
|
39
|
+
"@agoric/vat-data": "0.5.3-dev-b084a06.0.b084a06",
|
|
40
|
+
"@agoric/zoe": "0.26.3-dev-b084a06.0.b084a06",
|
|
41
41
|
"@endo/bundle-source": "^4.1.2",
|
|
42
42
|
"@endo/captp": "^4.4.8",
|
|
43
43
|
"@endo/errors": "^1.2.13",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"import-meta-resolve": "^4.1.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-b084a06.0.b084a06",
|
|
53
53
|
"@endo/bundle-source": "^4.1.2",
|
|
54
54
|
"@endo/init": "^1.1.12",
|
|
55
55
|
"ava": "^6.4.1",
|
|
@@ -59,8 +59,6 @@
|
|
|
59
59
|
"README.md",
|
|
60
60
|
"src/",
|
|
61
61
|
"tools/",
|
|
62
|
-
"exported.js",
|
|
63
|
-
"exported.d.ts",
|
|
64
62
|
"NEWS.md"
|
|
65
63
|
],
|
|
66
64
|
"ava": {
|
|
@@ -76,7 +74,7 @@
|
|
|
76
74
|
"access": "public"
|
|
77
75
|
},
|
|
78
76
|
"typeCoverage": {
|
|
79
|
-
"atLeast": 89.
|
|
77
|
+
"atLeast": 89.5
|
|
80
78
|
},
|
|
81
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "b084a067b866127f7d05c66e6865750132c4a7d8"
|
|
82
80
|
}
|
|
@@ -17,4 +17,5 @@ import type { BuildVoteCounter } from './types.js';
|
|
|
17
17
|
import type { QuestionSpec } from './types.js';
|
|
18
18
|
import type { ZCF } from '@agoric/zoe';
|
|
19
19
|
import type { OutcomeRecord } from './types.js';
|
|
20
|
+
import type { Publisher } from '@agoric/notifier';
|
|
20
21
|
//# sourceMappingURL=binaryVoteCounter.d.ts.map
|
|
@@ -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":"AA+CA,+BAA+B;AAC/B,oCADW,gBAAgB,CA8JzB;AAMF;;;GAGG;AACH,2BAHW,IAAI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAC,CAAC,wBAC1D;IAAC,gBAAgB,EAAE,UAAU,aAAa,CAAC,CAAA;CAAC;;;EAoBtD;sCAjNyF,YAAY;kCAAZ,YAAY;yBADhF,aAAa;mCACuD,YAAY;+BAF1E,kBAAkB"}
|
package/src/binaryVoteCounter.js
CHANGED
|
@@ -18,9 +18,12 @@ import {
|
|
|
18
18
|
import { makeQuorumCounter } from './quorumCounter.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
+
* @import {Handle} from '@agoric/zoe';
|
|
21
22
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
23
|
+
* @import {Publisher} from '@agoric/notifier';
|
|
22
24
|
* @import {ZCF} from '@agoric/zoe';
|
|
23
25
|
* @import {BuildVoteCounter, OutcomeRecord, Position, QuestionSpec, VoteStatistics} from './types.js';
|
|
26
|
+
* @import {PromiseRecord} from '@endo/promise-kit';
|
|
24
27
|
*/
|
|
25
28
|
|
|
26
29
|
const validateBinaryQuestionSpec = questionSpec => {
|
package/src/committee.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @import {Handle} from '@agoric/zoe';
|
|
2
3
|
* @import {Remote} from '@agoric/internal';
|
|
4
|
+
* @import {StoredPublishKit} from '@agoric/notifier';
|
|
3
5
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
4
6
|
* @import {ContractMeta, Invitation, ZCF} from '@agoric/zoe';
|
|
5
7
|
* @import {ElectorateCreatorFacet, CommitteeElectoratePublic, QuestionDetails, OutcomeRecord, AddQuestion} from './types.js';
|
|
6
8
|
* @import {Baggage} from '@agoric/vat-data';
|
|
7
9
|
* @import {QuestionRecord} from './electorateTools.js';
|
|
10
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
11
|
+
* @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
|
|
8
12
|
*/
|
|
9
13
|
/**
|
|
10
14
|
* @typedef { ElectorateCreatorFacet & {
|
|
@@ -32,7 +36,9 @@ export type CommitteeElectorateCreatorFacet = ElectorateCreatorFacet & {
|
|
|
32
36
|
};
|
|
33
37
|
import type { ContractMeta } from '@agoric/zoe';
|
|
34
38
|
import type { ZCF } from '@agoric/zoe';
|
|
39
|
+
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
35
40
|
import type { Remote } from '@agoric/internal';
|
|
41
|
+
import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
|
|
36
42
|
import type { Baggage } from '@agoric/vat-data';
|
|
37
43
|
import type { CommitteeElectoratePublic } from './types.js';
|
|
38
44
|
import type { ElectorateCreatorFacet } from './types.js';
|
package/src/committee.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"committee.d.ts","sourceRoot":"","sources":["committee.js"],"names":[],"mappings":"AAkBA
|
|
1
|
+
{"version":3,"file":"committee.d.ts","sourceRoot":"","sources":["committee.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AAEH,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAOnC;AAoBK,2BARI,IAAI;IACV,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC,eACM;IAAE,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IAAC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAA;CAAC,WACnE,OAAO,GACL;IAAC,YAAY,EAAE,+BAA+B,CAAC;IAAC,WAAW,EAAE,yBAAyB,CAAA;CAAC,CAuInG;8CArKa,sBAAsB,GAAG;IAClC,mBAAmB,EAAE,MAAM,OAAO,CAAC,WAAW;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;kCAX4C,aAAa;yBAAb,aAAa;iCAI/B,0CAA0C;4BAP/C,kBAAkB;gCAQd,0CAA0C;6BAH7C,kBAAkB;+CADqE,YAAY;4CAAZ,YAAY;gCAD7E,aAAa"}
|
package/src/committee.js
CHANGED
|
@@ -17,12 +17,16 @@ import { ElectorateCreatorI, ElectoratePublicI } from './typeGuards.js';
|
|
|
17
17
|
import { prepareVoterKit } from './voterKit.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
+
* @import {Handle} from '@agoric/zoe';
|
|
20
21
|
* @import {Remote} from '@agoric/internal';
|
|
22
|
+
* @import {StoredPublishKit} from '@agoric/notifier';
|
|
21
23
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
22
24
|
* @import {ContractMeta, Invitation, ZCF} from '@agoric/zoe';
|
|
23
25
|
* @import {ElectorateCreatorFacet, CommitteeElectoratePublic, QuestionDetails, OutcomeRecord, AddQuestion} from './types.js';
|
|
24
26
|
* @import {Baggage} from '@agoric/vat-data';
|
|
25
27
|
* @import {QuestionRecord} from './electorateTools.js';
|
|
28
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
29
|
+
* @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
|
|
26
30
|
*/
|
|
27
31
|
|
|
28
32
|
/**
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Brand} from '@agoric/ertp';
|
|
3
|
+
*/
|
|
1
4
|
export function makeLooksLikeBrand(name: any): (brand: Brand) => void;
|
|
2
5
|
export function makeAssertInstallation(name: any): (installation: any) => void;
|
|
3
6
|
export function makeAssertInstance(name: any): (instance: any) => void;
|
|
4
7
|
export function makeAssertBrandedRatio(name: any, modelRatio: any): (ratio: any) => boolean;
|
|
5
8
|
export function assertRelativeTime(value: any): void;
|
|
6
9
|
export function assertTimestamp(value: any): void;
|
|
10
|
+
import type { Brand } from '@agoric/ertp';
|
|
7
11
|
//# sourceMappingURL=assertions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["assertions.js"],"names":[],"mappings":"AAMA,gDAES,OADK,KACA,UAGb;AAGD,oDACS,iBAAY,UAKpB;AAGD,gDACS,aAAQ,UAKhB;AAGD,qEACS,UAAK,aAQb;AAGD,qDAEC;AAGD,kDAEC"}
|
|
1
|
+
{"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["assertions.js"],"names":[],"mappings":"AAMA;;GAEG;AAEH,gDAES,OADK,KACA,UAGb;AAGD,oDACS,iBAAY,UAKpB;AAGD,gDACS,aAAQ,UAKhB;AAGD,qEACS,UAAK,aAQb;AAGD,qDAEC;AAGD,kDAEC;2BAhDuB,cAAc"}
|
|
@@ -4,6 +4,10 @@ import { assertIsRatio } from '@agoric/ertp/src/ratio.js';
|
|
|
4
4
|
import { mustMatch } from '@agoric/store';
|
|
5
5
|
import { RelativeTimeRecordShape, TimestampRecordShape } from '@agoric/time';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @import {Brand} from '@agoric/ertp';
|
|
9
|
+
*/
|
|
10
|
+
|
|
7
11
|
const makeLooksLikeBrand = name => {
|
|
8
12
|
/** @param {Brand} brand */
|
|
9
13
|
return brand => {
|
|
@@ -13,6 +13,7 @@ export function setupApiGovernance(getGovernedApis: () => ERef<GovernedApis>, ge
|
|
|
13
13
|
* @import {Passable, RemotableObject} from '@endo/pass-style';
|
|
14
14
|
* @import {Position, ApiGovernor, ApiInvocationIssue, PoserFacet, VoteOnApiInvocation, GovernedApis} from '../types.js';
|
|
15
15
|
* @import {TimerService} from '@agoric/time';
|
|
16
|
+
* @import {ERef} from '@agoric/vow';
|
|
16
17
|
*/
|
|
17
18
|
/**
|
|
18
19
|
* Make a pair of positions for a question about whether to invoke an API. If
|
|
@@ -32,6 +33,7 @@ export function makeApiInvocationPositions(apiMethodName: string, methodArgs: Pa
|
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
import type { GovernedApis } from '../types.js';
|
|
36
|
+
import type { ERef } from '@agoric/vow';
|
|
35
37
|
import type { TimerService } from '@agoric/time';
|
|
36
38
|
import type { PoserFacet } from '../types.js';
|
|
37
39
|
import type { ApiGovernor } from '../types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governApi.d.ts","sourceRoot":"","sources":["governApi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"governApi.d.ts","sourceRoot":"","sources":["governApi.js"],"names":[],"mappings":"AAkCA;;;;;;;;GAQG;AACH,oDANW,MAAM,KAAK,YAAY,CAAC,oBACxB,MAAM,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,SACrC,KAAK,YAAY,CAAC,wBAClB,MAAM,OAAO,CAAC,UAAU,CAAC,GACvB,WAAW,CA4FvB;AAzHD;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH,0DAHW,MAAM,cACN,QAAQ,EAAE;;;;;;;;EAMpB;kCAjB0G,aAAa;0BAEjG,aAAa;kCADL,cAAc;gCAD8D,aAAa;iCAAb,aAAa;8BAD5E,kBAAkB"}
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
* @import {Passable, RemotableObject} from '@endo/pass-style';
|
|
16
16
|
* @import {Position, ApiGovernor, ApiInvocationIssue, PoserFacet, VoteOnApiInvocation, GovernedApis} from '../types.js';
|
|
17
17
|
* @import {TimerService} from '@agoric/time';
|
|
18
|
+
* @import {ERef} from '@agoric/vow';
|
|
18
19
|
*/
|
|
19
20
|
|
|
20
21
|
/**
|
|
@@ -11,6 +11,7 @@ export function setupFilterGovernance(timer: ERef<TimerService>, getUpdatedPoser
|
|
|
11
11
|
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
12
12
|
* @import {Position, ApiGovernor, ApiInvocationIssue, PoserFacet, VoteOnApiInvocation, FilterGovernor, GovernedCreatorFacet, OfferFilterIssue, VoteOnOfferFilter} from '../types.js';
|
|
13
13
|
* @import {TimerService} from '@agoric/time';
|
|
14
|
+
* @import {ERef} from '@agoric/vow';
|
|
14
15
|
*/
|
|
15
16
|
/**
|
|
16
17
|
* Make a pair of positions for a question about whether to update the offer
|
|
@@ -28,6 +29,7 @@ export function makeOfferFilterPositions(strings: string[]): {
|
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
import type { TimerService } from '@agoric/time';
|
|
32
|
+
import type { ERef } from '@agoric/vow';
|
|
31
33
|
import type { PoserFacet } from '../types.js';
|
|
32
34
|
import type { GovernedCreatorFacet } from '../types.js';
|
|
33
35
|
import type { FilterGovernor } from '../types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governFilter.d.ts","sourceRoot":"","sources":["governFilter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"governFilter.d.ts","sourceRoot":"","sources":["governFilter.js"],"names":[],"mappings":"AAgCA;;;;;;;GAOG;AACH,6CALW,KAAK,YAAY,CAAC,wBAClB,MAAM,OAAO,CAAC,UAAU,CAAC,cACzB,qBAAqB,EAAE,CAAC,GACtB,cAAc,CAqE1B;AA/FD;;;;;GAKG;AAEH;;;;;;GAMG;AACH,kDAFW,MAAM,EAAE;;;;;;;EAMlB;kCAf8B,cAAc;0BACtB,aAAa;gCAFoI,aAAa;0CAAb,aAAa;oCAAb,aAAa"}
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
15
15
|
* @import {Position, ApiGovernor, ApiInvocationIssue, PoserFacet, VoteOnApiInvocation, FilterGovernor, GovernedCreatorFacet, OfferFilterIssue, VoteOnOfferFilter} from '../types.js';
|
|
16
16
|
* @import {TimerService} from '@agoric/time';
|
|
17
|
+
* @import {ERef} from '@agoric/vow';
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -19,17 +19,18 @@ export function makeParamChangePositions(changes: Record<string, ParamValue>): P
|
|
|
19
19
|
* the question described by questionSpec.
|
|
20
20
|
*
|
|
21
21
|
* @param {{ parameterName: string, paramPath: unknown}} paramSpec
|
|
22
|
-
* @param {QuestionSpec<ParamChangeIssue
|
|
22
|
+
* @param {QuestionSpec<ParamChangeIssue>} questionSpec
|
|
23
23
|
*/
|
|
24
24
|
export function assertBallotConcernsParam(paramSpec: {
|
|
25
25
|
parameterName: string;
|
|
26
26
|
paramPath: unknown;
|
|
27
|
-
}, questionSpec: QuestionSpec<ParamChangeIssue
|
|
27
|
+
}, questionSpec: QuestionSpec<ParamChangeIssue>): void;
|
|
28
28
|
/**
|
|
29
29
|
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
30
30
|
* @import {ParamValue, ParamChangePositions, QuestionSpec, ChangeParamsPosition, ParamChangeIssue, ParamGovernor, ParamManagerRetriever, PoserFacet, VoteOnParamChanges} from '../types.js';
|
|
31
31
|
* @import {TimerService} from '@agoric/time';
|
|
32
32
|
* @import {Passable} from '@endo/marshal';
|
|
33
|
+
* @import {ERef} from '@agoric/vow';
|
|
33
34
|
*/
|
|
34
35
|
/**
|
|
35
36
|
* The electorate that governs changes to the contract's parameters. It must be
|
|
@@ -37,6 +38,7 @@ export function assertBallotConcernsParam(paramSpec: {
|
|
|
37
38
|
*/
|
|
38
39
|
export const CONTRACT_ELECTORATE: "Electorate";
|
|
39
40
|
import type { ParamManagerRetriever } from '../types.js';
|
|
41
|
+
import type { ERef } from '@agoric/vow';
|
|
40
42
|
import type { Instance } from '@agoric/zoe';
|
|
41
43
|
import type { TimerService } from '@agoric/time';
|
|
42
44
|
import type { PoserFacet } from '../types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governParam.d.ts","sourceRoot":"","sources":["governParam.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"governParam.d.ts","sourceRoot":"","sources":["governParam.js"],"names":[],"mappings":"AA4DA;;;;;;GAMG;AACH,oEANW,MAAM,KAAK,qBAAqB,CAAC,oBACjC,QAAQ,SACR,YAAY,wBACZ,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,gBAAgB,CAAC,QAWxC;AA7CD;;;;;;GAMG;AAEH;;;GAGG;AACH,kCAA4B,YAAY,CAAC;2CAVsI,aAAa;0BAGrK,aAAa;8BAJoC,aAAa;kCAEtD,cAAc;gCADkI,aAAa;mCAAb,aAAa;gCAAb,aAAa;0CAAb,aAAa;sCAAb,aAAa;kCAAb,aAAa"}
|
|
@@ -16,6 +16,7 @@ import { ParamChangesQuestionDetailsShape } from '../typeGuards.js';
|
|
|
16
16
|
* @import {ParamValue, ParamChangePositions, QuestionSpec, ChangeParamsPosition, ParamChangeIssue, ParamGovernor, ParamManagerRetriever, PoserFacet, VoteOnParamChanges} from '../types.js';
|
|
17
17
|
* @import {TimerService} from '@agoric/time';
|
|
18
18
|
* @import {Passable} from '@endo/marshal';
|
|
19
|
+
* @import {ERef} from '@agoric/vow';
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
/**
|
|
@@ -44,7 +45,7 @@ const makeParamChangePositions = changes => {
|
|
|
44
45
|
* the question described by questionSpec.
|
|
45
46
|
*
|
|
46
47
|
* @param {{ parameterName: string, paramPath: unknown}} paramSpec
|
|
47
|
-
* @param {QuestionSpec<ParamChangeIssue
|
|
48
|
+
* @param {QuestionSpec<ParamChangeIssue>} questionSpec
|
|
48
49
|
*/
|
|
49
50
|
const assertBallotConcernsParam = (paramSpec, questionSpec) => {
|
|
50
51
|
mustMatch(questionSpec, ParamChangesQuestionDetailsShape);
|
|
@@ -94,7 +95,7 @@ const setupParamGovernance = (
|
|
|
94
95
|
|
|
95
96
|
const { positive, negative } = makeParamChangePositions(changes);
|
|
96
97
|
|
|
97
|
-
/** @type {ParamChangeIssue
|
|
98
|
+
/** @type {ParamChangeIssue} */
|
|
98
99
|
const issue = harden({
|
|
99
100
|
spec: {
|
|
100
101
|
paramPath: paramSpec.paramPath,
|
|
@@ -15,7 +15,7 @@ export type ParamManagerBuilder = {
|
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
18
|
-
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
18
|
+
* @import {ContractMeta, Installation, Instance, Invitation, Keyword, ZCF, ZoeService} from '@agoric/zoe';
|
|
19
19
|
* @import {AnyParamManager, GovernanceSubscriptionState, ParamManagerBase, ParamStateRecord, ParamValueTyped, UpdateParams} from '../types.js';
|
|
20
20
|
* @import {CopyRecord} from '@endo/marshal';
|
|
21
21
|
* @import {Timestamp} from '@agoric/time';
|
|
@@ -23,6 +23,9 @@ export type ParamManagerBuilder = {
|
|
|
23
23
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
24
24
|
* @import {ParamType} from '../constants.js';
|
|
25
25
|
* @import {Ratio} from '@agoric/ertp';
|
|
26
|
+
* @import {Amount} from '@agoric/ertp';
|
|
27
|
+
* @import {Brand} from '@agoric/ertp';
|
|
28
|
+
* @import {ERef} from '@agoric/vow';
|
|
26
29
|
*/
|
|
27
30
|
/**
|
|
28
31
|
* @param {ParamManagerBase} paramManager
|
|
@@ -52,6 +55,8 @@ export function assertElectorateMatches(paramManager: ParamManagerBase, governed
|
|
|
52
55
|
* @param {ERef<ZoeService>} [zoe]
|
|
53
56
|
*/
|
|
54
57
|
export function makeParamManagerBuilder(publisherKit: StoredPublisherKit<GovernanceSubscriptionState>, zoe?: ERef<ZoeService>): ParamManagerBuilder;
|
|
58
|
+
import type { Amount } from '@agoric/ertp';
|
|
59
|
+
import type { Brand } from '@agoric/ertp';
|
|
55
60
|
import type { Installation } from '@agoric/zoe';
|
|
56
61
|
import type { Instance } from '@agoric/zoe';
|
|
57
62
|
import type { Invitation } from '@agoric/zoe';
|
|
@@ -65,4 +70,6 @@ import { CONTRACT_ELECTORATE } from './governParam.js';
|
|
|
65
70
|
import type { ParamValueTyped } from '../types.js';
|
|
66
71
|
import type { GovernanceSubscriptionState } from '../types.js';
|
|
67
72
|
import type { StoredPublisherKit } from '@agoric/notifier';
|
|
73
|
+
import type { ZoeService } from '@agoric/zoe';
|
|
74
|
+
import type { ERef } from '@agoric/vow';
|
|
68
75
|
//# sourceMappingURL=paramManager.d.ts.map
|
|
@@ -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":";eAqDc,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,WAAW,GAAG,CAAC,KAAK,mBAAmB;eAC7D,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,mBAAmB;kBACpD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,mBAAmB;qBACvD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,KAAK,mBAAmB;gBAC1D,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,mBAAmB;WACjD,MAAM,eAAe;;AA7CnC;;;;;;;;;;;;;GAaG;AAEH;;;GAGG;AACH,sDAHW,gBAAgB,kBAChB;IAAC,CAAC,mBAAmB,CAAC,EAAE,gBAAgB,YAAY,CAAC,CAAA;CAAC,QAYhE;AAED;;;;;;;;;;;;;;;GAeG;AAEH;;;GAGG;AACH,sDAHW,mBAAmB,2BAA2B,CAAC,QAC/C,KAAK,UAAU,CAAC,uBAgX1B;4BAxZwB,cAAc;2BACf,cAAc;kCATuD,aAAa;8BAAb,aAAa;gCAAb,aAAa;2BAOlF,cAAc;gCALT,eAAe;+BAChB,cAAc;kCACX,cAAc;qCAHqF,aAAa;sCAAb,aAAa;oCAL3G,kBAAkB;qCAK4E,aAAa;iDAAb,aAAa;wCAI1G,kBAAkB;gCALsC,aAAa;0BAUnF,aAAa"}
|
|
@@ -20,7 +20,7 @@ import { CONTRACT_ELECTORATE } from './governParam.js';
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
23
|
-
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
23
|
+
* @import {ContractMeta, Installation, Instance, Invitation, Keyword, ZCF, ZoeService} from '@agoric/zoe';
|
|
24
24
|
* @import {AnyParamManager, GovernanceSubscriptionState, ParamManagerBase, ParamStateRecord, ParamValueTyped, UpdateParams} from '../types.js';
|
|
25
25
|
* @import {CopyRecord} from '@endo/marshal';
|
|
26
26
|
* @import {Timestamp} from '@agoric/time';
|
|
@@ -28,6 +28,9 @@ import { CONTRACT_ELECTORATE } from './governParam.js';
|
|
|
28
28
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
29
29
|
* @import {ParamType} from '../constants.js';
|
|
30
30
|
* @import {Ratio} from '@agoric/ertp';
|
|
31
|
+
* @import {Amount} from '@agoric/ertp';
|
|
32
|
+
* @import {Brand} from '@agoric/ertp';
|
|
33
|
+
* @import {ERef} from '@agoric/vow';
|
|
31
34
|
*/
|
|
32
35
|
|
|
33
36
|
/**
|
|
@@ -26,6 +26,7 @@ export type InvitationParam = {
|
|
|
26
26
|
};
|
|
27
27
|
export type SyncSpecTuple = ST<"amount"> | ST<"brand"> | ST<"installation"> | ST<"instance"> | ST<"nat"> | ST<"ratio"> | ST<"string"> | ST<"timestamp"> | ST<"relativeTime"> | ST<"unknown">;
|
|
28
28
|
export type AsyncSpecTuple = ["invitation", Invitation];
|
|
29
|
+
import type { Keyword } from '@agoric/zoe';
|
|
29
30
|
import type { GovernanceSubscriptionState } from '../types.js';
|
|
30
31
|
import type { StoredPublisherKit } from '@agoric/notifier';
|
|
31
32
|
import type { ZCF } from '@agoric/zoe';
|
|
@@ -36,4 +37,5 @@ import type { ParamStateRecord } from '../types.js';
|
|
|
36
37
|
import type { ParamValueForType } from '../types.js';
|
|
37
38
|
import type { ParamManagerBase } from '../types.js';
|
|
38
39
|
import type { UpdateParams } from '../types.js';
|
|
40
|
+
import type { Amount } from '@agoric/ertp';
|
|
39
41
|
//# sourceMappingURL=typedParamManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedParamManager.d.ts","sourceRoot":"","sources":["typedParamManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typedParamManager.d.ts","sourceRoot":"","sources":["typedParamManager.js"],"names":[],"mappings":"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"}
|
|
@@ -5,10 +5,11 @@ import { CONTRACT_ELECTORATE } from './governParam.js';
|
|
|
5
5
|
import { makeParamManagerBuilder } from './paramManager.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
8
|
+
* @import {ContractMeta, Installation, Instance, Invitation, Keyword, ZCF} from '@agoric/zoe';
|
|
9
9
|
* @import {VoteCounterCreatorFacet, VoteCounterPublicFacet, QuestionSpec, OutcomeRecord, AddQuestion, AddQuestionReturn, GovernanceSubscriptionState, GovernanceTerms, ParamManagerBase, ParamStateRecord, ParamValueForType, UpdateParams} from '../types.js';
|
|
10
10
|
* @import {ParamType} from '../constants.js';
|
|
11
11
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
12
|
+
* @import {Amount} from '@agoric/ertp';
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -22,11 +22,14 @@ export function start<SF extends GovernableStartFn>(zcf: ZCF<{
|
|
|
22
22
|
}>;
|
|
23
23
|
export type ContractGovernorTerms = StandardTerms;
|
|
24
24
|
import type { ContractMeta } from '@agoric/zoe';
|
|
25
|
+
import type { ZoeService } from '@agoric/zoe';
|
|
26
|
+
import type { ERef } from '@agoric/vow';
|
|
25
27
|
import type { Instance } from '@agoric/zoe';
|
|
26
28
|
import type { ParamChangeIssueDetails } from './types.js';
|
|
27
29
|
import type { GovernableStartFn } from './types.js';
|
|
28
30
|
import type { TimerService } from '@agoric/time';
|
|
29
31
|
import type { Installation } from '@agoric/zoe';
|
|
32
|
+
import type { IssuerKeywordRecord } from '@agoric/zoe';
|
|
30
33
|
import { CONTRACT_ELECTORATE } from './contractGovernance/governParam.js';
|
|
31
34
|
import type { InvitationParam } from './contractGovernance/typedParamManager.js';
|
|
32
35
|
import type { ZCF } from '@agoric/zoe';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractGovernor.d.ts","sourceRoot":"","sources":["contractGovernor.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contractGovernor.d.ts","sourceRoot":"","sources":["contractGovernor.js"],"names":[],"mappings":"AAqBA,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAGnC;AAYK,6CAJI,KAAK,UAAU,CAAC,cAChB,QAAQ,WACR,uBAAuB,+BAkBjC;AAYM,iDAJI,KAAK,UAAU,CAAC,cAChB,QAAQ,eACR,QAAQ,+BAYlB;AA0FM,sBAnB0B,EAAE,SAAtB,iBAAmB,OACrB,IAAI;IACV,KAAK,EAAE,YAAY,CAAC;IACpB,4BAA4B,EAAE,aAAa,EAAE,CAAC,CAAC;IAC/C,QAAQ,EAAE;QACR,mBAAmB,EAAE,mBAAmB,CAAC;QACzC,KAAK,EAAE;YAAC,cAAc,EAAE;gBAAC,CAAC,mBAAmB,CAAC,EAAE,eAAe,CAAA;aAAC,CAAA;SAAC,CAAC;QAClE,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAA;CACF,CAAC,eACM;IACN,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC,WAKO,OAAO,GAJL,OAAO,CAAC;IAChB,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;IACvC,WAAW,EAAE,cAAc,CAAC;CAC7B,CAAC,CA8DJ;oCAjJY,aAAa;kCAnE8F,aAAa;gCAAb,aAAa;0BAK9G,aAAa;8BALoF,aAAa;6CAClC,YAAY;uCAAZ,YAAY;kCAChF,cAAc;kCAF2E,aAAa;yCAAb,aAAa;oCALjG,qCAAqC;qCAQvC,2CAA2C;yBAH2C,aAAa;6BAI3G,kBAAkB;0CAHuD,YAAY;oCAAZ,YAAY;mCADS,aAAa"}
|
package/src/contractGovernor.js
CHANGED
|
@@ -9,11 +9,12 @@ import { prepareContractGovernorKit } from './contractGovernorKit.js';
|
|
|
9
9
|
import { ParamChangesQuestionDetailsShape } from './typeGuards.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @import {ContractMeta, Installation, Instance, Invitation, StandardTerms, ZCF} from '@agoric/zoe';
|
|
12
|
+
* @import {ContractMeta, Installation, Instance, Invitation, IssuerKeywordRecord, StandardTerms, ZCF, ZoeService} from '@agoric/zoe';
|
|
13
13
|
* @import {GovernableStartFn, GovernorCreatorFacet, GovernorPublic, ParamChangeIssueDetails} from './types.js';
|
|
14
14
|
* @import {TimerService} from '@agoric/time';
|
|
15
15
|
* @import {InvitationParam} from './contractGovernance/typedParamManager.js';
|
|
16
16
|
* @import {Baggage} from '@agoric/vat-data';
|
|
17
|
+
* @import {ERef} from '@agoric/vow';
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
const trace = makeTracer('CGov', false);
|
|
@@ -15,17 +15,17 @@ export function prepareContractGovernorKit(baggage: Baggage, powers: {
|
|
|
15
15
|
* @returns {Promise<void>}
|
|
16
16
|
*/
|
|
17
17
|
replaceElectorate(poserInvitation: Invitation): Promise<void>;
|
|
18
|
-
voteOnParamChanges(voteCounterInstallation: Installation, deadline: import("@agoric/time").Timestamp, paramSpec: import("./types.js").ParamChangesSpec
|
|
18
|
+
voteOnParamChanges(voteCounterInstallation: Installation, deadline: import("@agoric/time").Timestamp, paramSpec: import("./types.js").ParamChangesSpec): Promise<import("./types.js").ContractGovernanceVoteResult>;
|
|
19
19
|
voteOnApiInvocation(apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[], voteCounterInstallation: Installation, deadline: import("@agoric/time").Timestamp): Promise<import("./types.js").ContractGovernanceVoteResult>;
|
|
20
20
|
voteOnOfferFilter(voteCounterInstallation: Installation, deadline: import("@agoric/time").Timestamp, strings: string[]): Promise<import("./types.js").ContractGovernanceVoteResult>;
|
|
21
21
|
getCreatorFacet(): any;
|
|
22
22
|
getAdminFacet(): import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<GovernableStartFn>;
|
|
23
|
-
getInstance(): Instance<GovernableStartFn>;
|
|
23
|
+
getInstance(): import("@agoric/zoe/src/zoeService/utils.js").Instance<GovernableStartFn>;
|
|
24
24
|
getPublicFacet(): object & import("./types.js").GovernedPublicFacetMethods;
|
|
25
25
|
};
|
|
26
26
|
public: {
|
|
27
27
|
getElectorate(): Promise<Instance>;
|
|
28
|
-
getGovernedContract(): Instance<GovernableStartFn>;
|
|
28
|
+
getGovernedContract(): import("@agoric/zoe/src/zoeService/utils.js").Instance<GovernableStartFn>;
|
|
29
29
|
/** @param {Instance} counter */
|
|
30
30
|
validateVoteCounter(counter: Instance): Promise<void>;
|
|
31
31
|
/** @param {Instance} regP */
|
|
@@ -37,6 +37,8 @@ export function prepareContractGovernorKit(baggage: Baggage, powers: {
|
|
|
37
37
|
export type ContractGovernorKit = EReturn<EReturn<typeof prepareContractGovernorKit>>;
|
|
38
38
|
import type { Baggage } from '@agoric/vat-data';
|
|
39
39
|
import type { TimerService } from '@agoric/time';
|
|
40
|
+
import type { ZoeService } from '@agoric/zoe';
|
|
41
|
+
import type { ERef } from '@agoric/vow';
|
|
40
42
|
import type { GovernableStartFn } from './types.js';
|
|
41
43
|
import type { StartedInstanceKit } from '@agoric/zoe/src/zoeService/utils.js';
|
|
42
44
|
import type { Instance } from '@agoric/zoe';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractGovernorKit.d.ts","sourceRoot":"","sources":["contractGovernorKit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contractGovernorKit.d.ts","sourceRoot":"","sources":["contractGovernorKit.js"],"names":[],"mappings":"AAyEO,oDANI,OAAO,UACP;IACN,KAAK,EAAE,YAAY,CAAC;IACpB,GAAG,EAAE,KAAK,UAAU,CAAC,CAAC;CACvB;;iCAiCqB,OAAO,CAAC,QAAQ,CAAC;gCAOjB,OAAO,CAAC,UAAU,CAAC;;;;;;QAmEpC;;;WAGG;2CAFQ,UAAU,GACR,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;QAkE1B,gCAAgC;qCAApB,QAAQ;QAepB,6BAA6B;iCAAjB,QAAQ;QAWpB,uCAAuC;mCAA3B,WAAW;;GAY9B;kCAEa,QAAQ,QAAQ,OAAO,0BAA0B,CAAC,CAAC;6BAxQvC,kBAAkB;kCACb,cAAc;gCAHuC,aAAa;0BAM1E,aAAa;uCALgG,YAAY;wCAG3G,qCAAqC;8BAJU,aAAa;gCACmC,YAAY;gCAD5D,aAAa;kCAAb,aAAa;iCACmC,YAAY;6BAFtH,WAAW"}
|
|
@@ -18,12 +18,13 @@ import { ClosingRuleShape, ParamChangesSpecShape } from './typeGuards.js';
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @import {EReturn} from '@endo/far';
|
|
21
|
-
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
21
|
+
* @import {ContractMeta, Installation, Instance, Invitation, ZCF, ZoeService} from '@agoric/zoe';
|
|
22
22
|
* @import {ClosingRule, GovernableStartFn, LimitedCF, PoserFacet, VoteOnApiInvocation, VoteOnOfferFilter, VoteOnParamChanges} from './types.js';
|
|
23
23
|
* @import {Baggage} from '@agoric/vat-data';
|
|
24
24
|
* @import {TimerService} from '@agoric/time';
|
|
25
25
|
* @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
|
|
26
26
|
* @import {TypedParamManager} from './contractGovernance/typedParamManager.js';
|
|
27
|
+
* @import {ERef} from '@agoric/vow';
|
|
27
28
|
*/
|
|
28
29
|
|
|
29
30
|
const trace = makeTracer('CGK', false);
|