@agoric/governance 0.10.4-dev-f5f34f4.0 → 0.10.4-dev-3c22e86.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 +13 -13
- package/src/committee.d.ts +3 -7
- package/src/committee.d.ts.map +1 -1
- package/src/constants.d.ts +12 -12
- package/src/contractGovernance/paramManager.d.ts +1 -1
- package/src/contractGovernance/paramManager.d.ts.map +1 -1
- package/src/contractGovernance/typedParamManager.d.ts +2 -2
- package/src/contractGovernance/typedParamManager.d.ts.map +1 -1
- package/src/contractGovernor.d.ts +1 -1
- package/src/contractGovernor.d.ts.map +1 -1
- package/src/contractHelper.d.ts +38 -38
- package/src/contractHelper.d.ts.map +1 -1
- package/src/contractHelper.js +2 -2
- package/src/electorateTools.d.ts +1 -5
- package/src/electorateTools.d.ts.map +1 -1
- package/src/noActionElectorate.d.ts.map +1 -1
- package/src/noActionElectorate.js +4 -2
- package/src/question.d.ts +11 -11
- package/src/typeGuards.d.ts +44 -44
- package/src/typeGuards.d.ts.map +1 -1
- package/src/voterKit.d.ts +2 -2
- package/tools/puppetContractGovernor.d.ts +1 -1
- package/tools/puppetContractGovernor.d.ts.map +1 -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-3c22e86.0+3c22e86",
|
|
4
4
|
"description": "Core governance support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,15 +31,15 @@
|
|
|
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/swingset-vat": "0.32.3-dev-
|
|
40
|
-
"@agoric/time": "0.3.3-dev-
|
|
41
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
42
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
34
|
+
"@agoric/assert": "0.6.1-dev-3c22e86.0+3c22e86",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-3c22e86.0+3c22e86",
|
|
36
|
+
"@agoric/internal": "0.3.3-dev-3c22e86.0+3c22e86",
|
|
37
|
+
"@agoric/notifier": "0.6.3-dev-3c22e86.0+3c22e86",
|
|
38
|
+
"@agoric/store": "0.9.3-dev-3c22e86.0+3c22e86",
|
|
39
|
+
"@agoric/swingset-vat": "0.32.3-dev-3c22e86.0+3c22e86",
|
|
40
|
+
"@agoric/time": "0.3.3-dev-3c22e86.0+3c22e86",
|
|
41
|
+
"@agoric/vat-data": "0.5.3-dev-3c22e86.0+3c22e86",
|
|
42
|
+
"@agoric/zoe": "0.26.3-dev-3c22e86.0+3c22e86",
|
|
43
43
|
"@endo/bundle-source": "^2.5.1",
|
|
44
44
|
"@endo/captp": "^3.1.1",
|
|
45
45
|
"@endo/eventual-send": "^0.17.2",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"import-meta-resolve": "^2.2.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
54
|
-
"@agoric/vats": "0.15.2-dev-
|
|
53
|
+
"@agoric/deploy-script-support": "0.10.4-dev-3c22e86.0+3c22e86",
|
|
54
|
+
"@agoric/vats": "0.15.2-dev-3c22e86.0+3c22e86",
|
|
55
55
|
"@endo/bundle-source": "^2.5.1",
|
|
56
56
|
"@endo/init": "^0.5.56",
|
|
57
57
|
"ava": "^5.3.0",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "3c22e864350b333eb1bc0f5f5c64be0ff528a7e7"
|
|
77
77
|
}
|
package/src/committee.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export namespace privateArgsShape {
|
|
2
2
|
export { StorageNodeShape as storageNode };
|
|
3
|
-
export
|
|
3
|
+
export let marshaller: import("@endo/patterns").Matcher;
|
|
4
4
|
}
|
|
5
5
|
export function prepare(zcf: ZCF<{
|
|
6
6
|
committeeName: string;
|
|
@@ -13,11 +13,7 @@ export function prepare(zcf: ZCF<{
|
|
|
13
13
|
publicFacet: CommitteeElectoratePublic;
|
|
14
14
|
};
|
|
15
15
|
export type CommitteeElectorateCreatorFacet = ElectorateCreatorFacet & {
|
|
16
|
-
getVoterInvitations: () => Promise<Invitation<
|
|
17
|
-
voter: {
|
|
18
|
-
castBallotFor(handle: any, choice?: any): void;
|
|
19
|
-
};
|
|
20
|
-
}, never>>[];
|
|
16
|
+
getVoterInvitations: () => Promise<Invitation<R, A>>[];
|
|
21
17
|
};
|
|
22
|
-
import { StorageNodeShape } from
|
|
18
|
+
import { StorageNodeShape } from '@agoric/internal';
|
|
23
19
|
//# sourceMappingURL=committee.d.ts.map
|
package/src/committee.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"committee.d.ts","sourceRoot":"","sources":["committee.js"],"names":[],"mappings":";;;;AAgDO;mBAPa,MAAM;mBACN,MAAM;iBAEf;IAAE,WAAW,EAAE,KAAK,WAAW,CAAC,CAAC;IAAC,UAAU,EAAE,KAAK,UAAU,CAAC,CAAA;CAAC;kBAE9C,+BAA+B;iBAAe,yBAAyB;EA6HlG;;;;
|
|
1
|
+
{"version":3,"file":"committee.d.ts","sourceRoot":"","sources":["committee.js"],"names":[],"mappings":";;;;AAgDO;mBAPa,MAAM;mBACN,MAAM;iBAEf;IAAE,WAAW,EAAE,KAAK,WAAW,CAAC,CAAC;IAAC,UAAU,EAAE,KAAK,UAAU,CAAC,CAAA;CAAC;kBAE9C,+BAA+B;iBAAe,yBAAyB;EA6HlG;;;;iCAtKgC,kBAAkB"}
|
package/src/constants.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export namespace ParamTypes {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
let AMOUNT: "amount";
|
|
3
|
+
let BRAND: "brand";
|
|
4
|
+
let INSTALLATION: "installation";
|
|
5
|
+
let INSTANCE: "instance";
|
|
6
|
+
let INVITATION: "invitation";
|
|
7
|
+
let NAT: "nat";
|
|
8
|
+
let RATIO: "ratio";
|
|
9
|
+
let STRING: "string";
|
|
10
|
+
let PASSABLE_RECORD: "record";
|
|
11
|
+
let TIMESTAMP: "timestamp";
|
|
12
|
+
let RELATIVE_TIME: "relativeTime";
|
|
13
|
+
let UNKNOWN: "unknown";
|
|
14
14
|
}
|
|
15
15
|
export type ParamType = (typeof ParamTypes)[keyof typeof ParamTypes];
|
|
16
16
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -41,5 +41,5 @@ export function assertElectorateMatches(paramManager: ParamManagerBase, governed
|
|
|
41
41
|
* @param {ERef<ZoeService>} [zoe]
|
|
42
42
|
*/
|
|
43
43
|
export function makeParamManagerBuilder(publisherKit: import('@agoric/notifier').StoredPublisherKit<GovernanceSubscriptionState>, zoe?: ERef<ZoeService> | undefined): ParamManagerBuilder;
|
|
44
|
-
import { CONTRACT_ELECTORATE } from
|
|
44
|
+
import { CONTRACT_ELECTORATE } from './governParam.js';
|
|
45
45
|
//# sourceMappingURL=paramManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paramManager.d.ts","sourceRoot":"","sources":["paramManager.js"],"names":[],"mappings":";sBAuCqB,MAAM,SAAS,MAAM,KAAK,mBAAmB;qBAC7C,MAAM,SAAS,KAAK,KAAK,mBAAmB;4BAC5C,MAAM,SAAS,YAAY,KAAK,mBAAmB;wBACnD,MAAM,SAAS,QAAQ,KAAK,mBAAmB;0BAC/C,MAAM,SAAS,UAAU,KAAK,mBAAmB;mBACjD,MAAM,SAAS,MAAM,KAAK,mBAAmB;qBAC7C,MAAM,SAAS,KAAK,KAAK,mBAAmB;sBAC5C,MAAM,SAAS,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,mBAAmB;sBAClF,MAAM,SAAS,MAAM,KAAK,mBAAmB;yBAC7C,MAAM,SAAS,OAAO,wBAAwB,EAAE,SAAS,KAAK,mBAAmB;4BACjF,MAAM,SAAS,OAAO,wBAAwB,EAAE,YAAY,KAAK,mBAAmB;uBACpF,MAAM,SAAS,GAAG,KAAK,mBAAmB;WACjD,MAAM,eAAe;;AA9BnC;;;GAGG;AACH,sDAHW,gBAAgB,kBAChB;IAAC,qBAAqB,EAAE,gBAAgB,YAAY,CAAC,CAAA;CAAC,QAYhE;AAED;;;;;;;;;;;;;;;GAeG;AAEH;;;GAGG;AACH,sDAHW,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,2DAmXpF"}
|
|
1
|
+
{"version":3,"file":"paramManager.d.ts","sourceRoot":"","sources":["paramManager.js"],"names":[],"mappings":";sBAuCqB,MAAM,SAAS,MAAM,KAAK,mBAAmB;qBAC7C,MAAM,SAAS,KAAK,KAAK,mBAAmB;4BAC5C,MAAM,SAAS,YAAY,KAAK,mBAAmB;wBACnD,MAAM,SAAS,QAAQ,KAAK,mBAAmB;0BAC/C,MAAM,SAAS,UAAU,KAAK,mBAAmB;mBACjD,MAAM,SAAS,MAAM,KAAK,mBAAmB;qBAC7C,MAAM,SAAS,KAAK,KAAK,mBAAmB;sBAC5C,MAAM,SAAS,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,mBAAmB;sBAClF,MAAM,SAAS,MAAM,KAAK,mBAAmB;yBAC7C,MAAM,SAAS,OAAO,wBAAwB,EAAE,SAAS,KAAK,mBAAmB;4BACjF,MAAM,SAAS,OAAO,wBAAwB,EAAE,YAAY,KAAK,mBAAmB;uBACpF,MAAM,SAAS,GAAG,KAAK,mBAAmB;WACjD,MAAM,eAAe;;AA9BnC;;;GAGG;AACH,sDAHW,gBAAgB,kBAChB;IAAC,qBAAqB,EAAE,gBAAgB,YAAY,CAAC,CAAA;CAAC,QAYhE;AAED;;;;;;;;;;;;;;;GAeG;AAEH;;;GAGG;AACH,sDAHW,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,2DAmXpF;oCAzZmC,kBAAkB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function makeParamManager<T extends Record<string, SyncSpecTuple | AsyncSpecTuple>>(publisherKit: import('@agoric/notifier').StoredPublisherKit<GovernanceSubscriptionState>, spec: T, zcf: ZCF): TypedParamManager<{ [K in keyof T]: T[K][0]; }>;
|
|
2
2
|
export function makeParamManagerSync<T extends Record<string, SyncSpecTuple>>(publisherKit: import('@agoric/notifier').StoredPublisherKit<GovernanceSubscriptionState>, spec: T): TypedParamManager<{ [K in keyof T]: T[K][0]; }>;
|
|
3
|
-
export function makeParamManagerFromTerms<I extends Record<string, Invitation<
|
|
3
|
+
export function makeParamManagerFromTerms<I extends Record<string, Invitation<R, A>> & {
|
|
4
4
|
Electorate: Invitation;
|
|
5
5
|
}, M extends ParamTypesMap>(publisherKit: import('@agoric/notifier').StoredPublisherKit<GovernanceSubscriptionState>, zcf: ZCF<GovernanceTerms<M>>, invitations: I, paramTypesMap: M): TypedParamManager<M & { [K in keyof I]: "invitation"; }>;
|
|
6
6
|
export type ParamTypesMap = Record<Keyword, ParamType>;
|
|
@@ -24,6 +24,6 @@ export type InvitationParam = {
|
|
|
24
24
|
type: 'invitation';
|
|
25
25
|
value: Amount<'set'>;
|
|
26
26
|
};
|
|
27
|
-
export type SyncSpecTuple = [type: "amount", value: Amount<any>] |
|
|
27
|
+
export type SyncSpecTuple = [type: "amount", value: Amount<any>] | [type: "brand", value: Brand<AssetKind>] | [type: "installation", value: Installation<any>] | [type: "instance", value: Instance] | [type: "nat", value: bigint] | [type: "ratio", value: Ratio] | [type: "string", value: string] | [type: "timestamp", value: import("@agoric/time/src/types.js").Timestamp] | [type: "relativeTime", value: import("@agoric/time/src/types.js").RelativeTime] | [type: "unknown", value: unknown];
|
|
28
28
|
export type AsyncSpecTuple = ['invitation', Invitation];
|
|
29
29
|
//# sourceMappingURL=typedParamManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedParamManager.d.ts","sourceRoot":"","sources":["typedParamManager.js"],"names":[],"mappings":"AAoFO,yGALI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,gBAE1E,GAAG,mDAwBb;AAaM,4FAJI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,4DAepF;AAYM;gBARiD,UAAU;0CAEvD,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,4HAiCpF;4BAhKY,OAAO,OAAO,EAAE,SAAS,CAAC;;;;;;;+HAqB2C,IAAI;yDAMzE,gBAAgB,GAAG,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG;IAAC,QAAQ,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAA;CAAC,GAAG;IAAC,YAAY,EAAE,YAAY,CAAA;CAAC;;;;gEAgBzG,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC;8BAItC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,OAAO,KAAK,CAAC,CAAA;CAAE;4BAO5C,
|
|
1
|
+
{"version":3,"file":"typedParamManager.d.ts","sourceRoot":"","sources":["typedParamManager.js"],"names":[],"mappings":"AAoFO,yGALI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,gBAE1E,GAAG,mDAwBb;AAaM,4FAJI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,4DAepF;AAYM;gBARiD,UAAU;0CAEvD,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,4HAiCpF;4BAhKY,OAAO,OAAO,EAAE,SAAS,CAAC;;;;;;;+HAqB2C,IAAI;yDAMzE,gBAAgB,GAAG,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG;IAAC,QAAQ,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAA;CAAC,GAAG;IAAC,YAAY,EAAE,YAAY,CAAA;CAAC;;;;gEAgBzG,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC;8BAItC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,OAAO,KAAK,CAAC,CAAA;CAAE;4BAO5C,2cASK;6BAEL,CAAC,YAAY,EAAE,UAAU,CAAC"}
|
|
@@ -19,5 +19,5 @@ export function prepare<SF extends GovernableStartFn>(zcf: ZCF<{
|
|
|
19
19
|
publicFacet: GovernorPublic;
|
|
20
20
|
}>;
|
|
21
21
|
export type ContractGovernorTerms = StandardTerms;
|
|
22
|
-
import { CONTRACT_ELECTORATE } from
|
|
22
|
+
import { CONTRACT_ELECTORATE } from './contractGovernance/governParam.js';
|
|
23
23
|
//# sourceMappingURL=contractGovernor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractGovernor.d.ts","sourceRoot":"","sources":["contractGovernor.js"],"names":[],"mappings":"AAsBO,6CAJI,KAAK,UAAU,CAAC,cAChB,QAAQ,WACR,uBAAuB,+BAkBjC;AAYM,iDAJI,KAAK,UAAU,CAAC,cAChB,QAAQ,eACR,QAAQ,+BAWlB;AA0FM;WAjBK,OAAO,wBAAwB,EAAE,YAAY;;cAE1C;QACd,mBAAyB,EAAE,mBAAmB,CAAC;QAC/C,KAAW,EAAE;YAAC,cAAc,EAAE;gBAAC,qBAAqB,EAAE,OAAO,2CAA2C,EAAE,eAAe,CAAA;aAAC,CAAA;SAAC,CAAC;QAC5H,KAAW,CAAC,EAAE,MAAM,CAAC;KAChB;iBAEK;IACV,QAAY,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;;iBAGc,cAAc;GA+D/B;oCAjJY,aAAa"}
|
|
1
|
+
{"version":3,"file":"contractGovernor.d.ts","sourceRoot":"","sources":["contractGovernor.js"],"names":[],"mappings":"AAsBO,6CAJI,KAAK,UAAU,CAAC,cAChB,QAAQ,WACR,uBAAuB,+BAkBjC;AAYM,iDAJI,KAAK,UAAU,CAAC,cAChB,QAAQ,eACR,QAAQ,+BAWlB;AA0FM;WAjBK,OAAO,wBAAwB,EAAE,YAAY;;cAE1C;QACd,mBAAyB,EAAE,mBAAmB,CAAC;QAC/C,KAAW,EAAE;YAAC,cAAc,EAAE;gBAAC,qBAAqB,EAAE,OAAO,2CAA2C,EAAE,eAAe,CAAA;aAAC,CAAA;SAAC,CAAC;QAC5H,KAAW,CAAC,EAAE,MAAM,CAAC;KAChB;iBAEK;IACV,QAAY,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;;iBAGc,cAAc;GA+D/B;oCAjJY,aAAa;oCA1DU,qCAAqC"}
|
package/src/contractHelper.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const GOVERNANCE_STORAGE_KEY: "governance";
|
|
2
|
-
export function validateElectorate(zcf: ZCF<GovernanceTerms<{}> & {}>, paramManager: import('./contractGovernance/typedParamManager').TypedParamManager<
|
|
2
|
+
export function validateElectorate(zcf: ZCF<GovernanceTerms<{}> & {}>, paramManager: import('./contractGovernance/typedParamManager').TypedParamManager<any>): Promise<void>;
|
|
3
3
|
/**
|
|
4
4
|
* Helper for the 90% of contracts that will have only a single set of
|
|
5
5
|
* parameters. Using this for managed parameters, a contract only has to
|
|
@@ -38,31 +38,31 @@ export function handleParamGovernance<M extends import("./contractGovernance/typ
|
|
|
38
38
|
};
|
|
39
39
|
augmentPublicFacet: <PF extends {}>(originalPublicFacet: PF) => GovernedPublicFacet<PF>;
|
|
40
40
|
augmentVirtualPublicFacet: <OPF extends {}>(originalPublicFacet: OPF) => OPF & {
|
|
41
|
-
getAmount: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
42
|
-
getBrand: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
43
|
-
getInstance: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
44
|
-
getInstallation: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
45
|
-
getInvitationAmount: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
46
|
-
getNat: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
47
|
-
getRatio: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
48
|
-
getString: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
49
|
-
getTimestamp: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
50
|
-
getRelativeTime: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
51
|
-
getUnknown: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
41
|
+
getAmount: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
42
|
+
getBrand: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
43
|
+
getInstance: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
44
|
+
getInstallation: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
45
|
+
getInvitationAmount: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
46
|
+
getNat: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
47
|
+
getRatio: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
48
|
+
getString: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
49
|
+
getTimestamp: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
50
|
+
getRelativeTime: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
51
|
+
getUnknown: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
52
52
|
getSubscription: () => StoredSubscription<GovernanceSubscriptionState>;
|
|
53
53
|
getGovernedParams: () => ERef<ParamStateRecord>;
|
|
54
54
|
} & import("@endo/eventual-send").RemotableBrand<{}, OPF & {
|
|
55
|
-
getAmount: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
56
|
-
getBrand: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
57
|
-
getInstance: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
58
|
-
getInstallation: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
59
|
-
getInvitationAmount: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
60
|
-
getNat: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
61
|
-
getRatio: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
62
|
-
getString: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
63
|
-
getTimestamp: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
64
|
-
getRelativeTime: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
65
|
-
getUnknown: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<
|
|
55
|
+
getAmount: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
56
|
+
getBrand: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
57
|
+
getInstance: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
58
|
+
getInstallation: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
59
|
+
getInvitationAmount: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
60
|
+
getNat: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
61
|
+
getRatio: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
62
|
+
getString: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
63
|
+
getTimestamp: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
64
|
+
getRelativeTime: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
65
|
+
getUnknown: import("@agoric/vat-data/src/types.js").PlusContext<never, ((name: string) => Amount<"set">) | ((name: string) => Amount<AssetKind>) | ((name: string) => Brand<AssetKind>) | ((name: string) => Instance) | ((name: string) => Installation<any>) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time/src/types.js").TimestampRecord) | ((name: string) => import("@agoric/time/src/types.js").RelativeTimeRecord) | ((name: string) => any)>;
|
|
66
66
|
getSubscription: () => StoredSubscription<GovernanceSubscriptionState>;
|
|
67
67
|
getGovernedParams: () => ERef<ParamStateRecord>;
|
|
68
68
|
}>;
|
|
@@ -89,7 +89,7 @@ export function handleParamGovernance<M extends import("./contractGovernance/typ
|
|
|
89
89
|
Electorate: "invitation";
|
|
90
90
|
}>;
|
|
91
91
|
}>;
|
|
92
|
-
getInvitation: (name: any) => Promise<Invitation<
|
|
92
|
+
getInvitation: (name: any) => Promise<Invitation<R, A>>;
|
|
93
93
|
getLimitedCreatorFacet: () => CF_2;
|
|
94
94
|
/** @type {() => GovernedApis} */
|
|
95
95
|
getGovernedApis: () => GovernedApis;
|
|
@@ -105,7 +105,7 @@ export function handleParamGovernance<M extends import("./contractGovernance/typ
|
|
|
105
105
|
Electorate: "invitation";
|
|
106
106
|
}>;
|
|
107
107
|
}>;
|
|
108
|
-
getInvitation: (name: any) => Promise<Invitation<
|
|
108
|
+
getInvitation: (name: any) => Promise<Invitation<R, A>>;
|
|
109
109
|
getLimitedCreatorFacet: () => CF_2;
|
|
110
110
|
/** @type {() => GovernedApis} */
|
|
111
111
|
getGovernedApis: () => GovernedApis;
|
|
@@ -119,18 +119,18 @@ export function handleParamGovernance<M extends import("./contractGovernance/typ
|
|
|
119
119
|
}>;
|
|
120
120
|
};
|
|
121
121
|
export namespace publicMixinAPI {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
122
|
+
let getSubscription: any;
|
|
123
|
+
let getGovernedParams: any;
|
|
124
|
+
let getAmount: any;
|
|
125
|
+
let getBrand: any;
|
|
126
|
+
let getInstance: any;
|
|
127
|
+
let getInstallation: any;
|
|
128
|
+
let getInvitationAmount: any;
|
|
129
|
+
let getNat: any;
|
|
130
|
+
let getRatio: any;
|
|
131
|
+
let getString: any;
|
|
132
|
+
let getTimestamp: any;
|
|
133
|
+
let getRelativeTime: any;
|
|
134
|
+
let getUnknown: any;
|
|
135
135
|
}
|
|
136
136
|
//# sourceMappingURL=contractHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractHelper.d.ts","sourceRoot":"","sources":["contractHelper.js"],"names":[],"mappings":"AAcA,kDAAmD;AAsB5C,wCAHI,IAAI,gBAAgB,EAAE,CAAC,GAAG,EAAE,CAAC,gBAC7B,OAAO,wCAAwC,EAAE,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"contractHelper.d.ts","sourceRoot":"","sources":["contractHelper.js"],"names":[],"mappings":"AAcA,kDAAmD;AAsB5C,wCAHI,IAAI,gBAAgB,EAAE,CAAC,GAAG,EAAE,CAAC,gBAC7B,OAAO,wCAAwC,EAAE,iBAAiB,CAAC,GAAG,CAAC,iBAejF;AAyLD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,yKALW,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wHAtImB,OAAO;;yCAuCC,OAAO,WAAW,OAAO,EAAE,KAAK,OAAO;;;6CAAvC,OAAO,WAAW,OAAO,EAAE,KAAK,OAAO;;;6CAAvC,OAAO,WAAW,OAAO,EAAE,KAAK,OAAO;;;qJAgC/C,OAAO;;;;;;;;;;;;;YAkBvC,iCAAiC;mCAAhB,YAAY;;;;;;;;;;;;;;;YAA7B,iCAAiC;mCAAhB,YAAY;;;;;;;;;EAuEpC"}
|
package/src/contractHelper.js
CHANGED
|
@@ -32,7 +32,7 @@ const publicMixinAPI = harden({
|
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* @param {ZCF<GovernanceTerms<{}> & {}>} zcf
|
|
35
|
-
* @param {import('./contractGovernance/typedParamManager').TypedParamManager<
|
|
35
|
+
* @param {import('./contractGovernance/typedParamManager').TypedParamManager<any>} paramManager
|
|
36
36
|
*/
|
|
37
37
|
export const validateElectorate = (zcf, paramManager) => {
|
|
38
38
|
const { governedParams } = zcf.getTerms();
|
|
@@ -53,7 +53,7 @@ harden(validateElectorate);
|
|
|
53
53
|
/**
|
|
54
54
|
* Utility function for `makeParamGovernance`.
|
|
55
55
|
*
|
|
56
|
-
* @template T
|
|
56
|
+
* @template {import('./contractGovernance/typedParamManager.js').ParamTypesMap} T
|
|
57
57
|
* @param {ZCF<GovernanceTerms<{}> & {}>} zcf
|
|
58
58
|
* @param {import('./contractGovernance/typedParamManager').TypedParamManager<T>} paramManager
|
|
59
59
|
*/
|
package/src/electorateTools.d.ts
CHANGED
|
@@ -38,9 +38,5 @@ export function getQuestion(questionHandleP: ERef<Handle<'Question'>>, questionS
|
|
|
38
38
|
* @param {ZCF} zcf
|
|
39
39
|
* @param {AddQuestion} addQuestion
|
|
40
40
|
*/
|
|
41
|
-
export function getPoserInvitation(zcf: ZCF, addQuestion: AddQuestion): Promise<Invitation<
|
|
42
|
-
addQuestion: AddQuestion;
|
|
43
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
44
|
-
addQuestion: AddQuestion;
|
|
45
|
-
}>, never>>;
|
|
41
|
+
export function getPoserInvitation(zcf: ZCF, addQuestion: AddQuestion): Promise<Invitation<R, A>>;
|
|
46
42
|
//# sourceMappingURL=electorateTools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"electorateTools.d.ts","sourceRoot":"","sources":["electorateTools.js"],"names":[],"mappings":";aAKc,KAAK,uBAAuB,CAAC;iBAC7B,sBAAsB;cACtB,OAAO,wBAAwB,EAAE,SAAS;;iCAK7C,GAAG,gBACH,YAAY,mBACZ,OAAO,eACP,KAAK,YAAY,CAAC,iBAClB,SAAS,OAAO,UAAU,CAAC,EAAE,cAAc,CAAC,qBAC5C,UAAU,OAAO,CAAC,oBAClB,UAAU,aAAa,CAAC,KACtB,iBAAiB;AAhB9B;;;;;GAKG;AAEH;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,2BAFU,YAAY,CAsCpB;AAEF,0EAA0E;AAC1E,gDADY,SAAS,OAAO,UAAU,CAAC,EAAE,cAAc,CAAC,gBAYvD;AAED;;;GAGG;AACH,6CAHW,KAAK,OAAO,UAAU,CAAC,CAAC,iBACxB,SAAS,OAAO,UAAU,CAAC,EAAE,cAAc,CAAC,qBAKpD;AAEH;;;GAGG;AACH,wCAHW,GAAG,eACH,WAAW
|
|
1
|
+
{"version":3,"file":"electorateTools.d.ts","sourceRoot":"","sources":["electorateTools.js"],"names":[],"mappings":";aAKc,KAAK,uBAAuB,CAAC;iBAC7B,sBAAsB;cACtB,OAAO,wBAAwB,EAAE,SAAS;;iCAK7C,GAAG,gBACH,YAAY,mBACZ,OAAO,eACP,KAAK,YAAY,CAAC,iBAClB,SAAS,OAAO,UAAU,CAAC,EAAE,cAAc,CAAC,qBAC5C,UAAU,OAAO,CAAC,oBAClB,UAAU,aAAa,CAAC,KACtB,iBAAiB;AAhB9B;;;;;GAKG;AAEH;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,2BAFU,YAAY,CAsCpB;AAEF,0EAA0E;AAC1E,gDADY,SAAS,OAAO,UAAU,CAAC,EAAE,cAAc,CAAC,gBAYvD;AAED;;;GAGG;AACH,6CAHW,KAAK,OAAO,UAAU,CAAC,CAAC,iBACxB,SAAS,OAAO,UAAU,CAAC,EAAE,cAAc,CAAC,qBAKpD;AAEH;;;GAGG;AACH,wCAHW,GAAG,eACH,WAAW,6BAKrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noActionElectorate.d.ts","sourceRoot":"","sources":["noActionElectorate.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,oBAFW,gBAAgB,gBAAgB,EAAE,sBAAsB,CAAC,
|
|
1
|
+
{"version":3,"file":"noActionElectorate.d.ts","sourceRoot":"","sources":["noActionElectorate.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,oBAFW,gBAAgB,gBAAgB,EAAE,sBAAsB,CAAC,CAiDlE"}
|
|
@@ -37,8 +37,10 @@ const start = zcf => {
|
|
|
37
37
|
|
|
38
38
|
const creatorFacet = makeExo('creatorFacet', ElectorateCreatorI, {
|
|
39
39
|
getPoserInvitation() {
|
|
40
|
-
return zcf.makeInvitation(
|
|
41
|
-
|
|
40
|
+
return zcf.makeInvitation(
|
|
41
|
+
() => {},
|
|
42
|
+
`noActionElectorate doesn't allow posing questions`,
|
|
43
|
+
);
|
|
42
44
|
},
|
|
43
45
|
addQuestion(_instance, _question) {
|
|
44
46
|
throw Error(`noActionElectorate doesn't add questions.`);
|
package/src/question.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/** @type {BuildQuestion} */
|
|
2
2
|
export const buildQuestion: BuildQuestion;
|
|
3
3
|
export namespace ChoiceMethod {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
let UNRANKED: "unranked";
|
|
5
|
+
let ORDER: "order";
|
|
6
|
+
let PLURALITY: "plurality";
|
|
7
7
|
}
|
|
8
8
|
export namespace ElectionType {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
let PARAM_CHANGE: "param_change";
|
|
10
|
+
let ELECTION: "election";
|
|
11
|
+
let SURVEY: "survey";
|
|
12
|
+
let API_INVOCATION: "api_invocation";
|
|
13
|
+
let OFFER_FILTER: "offer_filter";
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* @param {QuestionSpec} allegedQuestionSpec
|
|
@@ -20,8 +20,8 @@ export function coerceQuestionSpec({ method, issue, positions, electionType, max
|
|
|
20
20
|
/** @type {PositionIncluded} */
|
|
21
21
|
export const positionIncluded: PositionIncluded;
|
|
22
22
|
export namespace QuorumRule {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
let MAJORITY: "majority";
|
|
24
|
+
let NO_QUORUM: "no_quorum";
|
|
25
|
+
let ALL: "all";
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=question.d.ts.map
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ export const ChoiceMethodShape: import("@endo/patterns").Matcher;
|
|
|
2
2
|
export const QuorumRuleShape: import("@endo/patterns").Matcher;
|
|
3
3
|
export const ElectionTypeShape: import("@endo/patterns").Matcher;
|
|
4
4
|
export namespace ClosingRuleShape {
|
|
5
|
-
export
|
|
5
|
+
export let timer: any;
|
|
6
6
|
export { TimestampShape as deadline };
|
|
7
7
|
}
|
|
8
8
|
export namespace YesOfferFilterPositionShape {
|
|
9
|
-
|
|
9
|
+
let strings: import("@endo/patterns").Matcher;
|
|
10
10
|
}
|
|
11
11
|
export namespace NoOfferFilterPositionShape {
|
|
12
|
-
|
|
12
|
+
let dontUpdate: import("@endo/patterns").Matcher;
|
|
13
13
|
}
|
|
14
14
|
export const OfferFilterPositionsShape: ({
|
|
15
15
|
strings: import("@endo/patterns").Matcher;
|
|
@@ -17,34 +17,34 @@ export const OfferFilterPositionsShape: ({
|
|
|
17
17
|
dontUpdate: import("@endo/patterns").Matcher;
|
|
18
18
|
})[];
|
|
19
19
|
export namespace OfferFilterIssueShape {
|
|
20
|
-
|
|
20
|
+
let strings_1: import("@endo/patterns").Matcher;
|
|
21
21
|
export { strings_1 as strings };
|
|
22
22
|
}
|
|
23
23
|
export namespace OfferFilterQuestionSpecShape {
|
|
24
24
|
export { ChoiceMethodShape as method };
|
|
25
25
|
export { OfferFilterIssueShape as issue };
|
|
26
26
|
export { OfferFilterPositionsShape as positions };
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
27
|
+
export let electionType: string;
|
|
28
|
+
export let maxChoices: number;
|
|
29
|
+
export let maxWinners: number;
|
|
30
30
|
export { ClosingRuleShape as closingRule };
|
|
31
31
|
export { QuorumRuleShape as quorumRule };
|
|
32
32
|
export { NoOfferFilterPositionShape as tieOutcome };
|
|
33
33
|
}
|
|
34
34
|
export namespace OfferFilterQuestionDetailsShape {
|
|
35
|
-
export
|
|
35
|
+
export let questionHandle: import("@endo/patterns").Matcher;
|
|
36
36
|
export { InstanceHandleShape as counterInstance };
|
|
37
37
|
}
|
|
38
38
|
export const ParamChangesSpecShape: import("@endo/patterns").Matcher;
|
|
39
39
|
export const YesParamChangesPositionShape: import("@endo/patterns").Matcher;
|
|
40
40
|
export namespace NoParamChangesPositionShape {
|
|
41
|
-
|
|
41
|
+
let noChange: import("@endo/patterns").Matcher;
|
|
42
42
|
}
|
|
43
43
|
export const ParamChangesPositionsShape: (import("@endo/patterns").Matcher | {
|
|
44
44
|
noChange: import("@endo/patterns").Matcher;
|
|
45
45
|
})[];
|
|
46
46
|
export namespace ParamPathShape {
|
|
47
|
-
|
|
47
|
+
let key: import("@endo/patterns").Matcher;
|
|
48
48
|
}
|
|
49
49
|
export namespace ParamChangesIssueShape {
|
|
50
50
|
export namespace spec {
|
|
@@ -54,30 +54,30 @@ export namespace ParamChangesIssueShape {
|
|
|
54
54
|
export { InstanceHandleShape as contract };
|
|
55
55
|
}
|
|
56
56
|
export namespace ParamChangesQuestionSpecShape {
|
|
57
|
-
export
|
|
57
|
+
export let method: string;
|
|
58
58
|
export { ParamChangesIssueShape as issue };
|
|
59
59
|
export { ParamChangesPositionsShape as positions };
|
|
60
|
-
|
|
60
|
+
let electionType_1: string;
|
|
61
61
|
export { electionType_1 as electionType };
|
|
62
|
-
|
|
62
|
+
let maxChoices_1: number;
|
|
63
63
|
export { maxChoices_1 as maxChoices };
|
|
64
|
-
|
|
64
|
+
let maxWinners_1: number;
|
|
65
65
|
export { maxWinners_1 as maxWinners };
|
|
66
66
|
export { ClosingRuleShape as closingRule };
|
|
67
|
-
export
|
|
67
|
+
export let quorumRule: string;
|
|
68
68
|
export { NoParamChangesPositionShape as tieOutcome };
|
|
69
69
|
}
|
|
70
70
|
export namespace ParamChangesQuestionDetailsShape {
|
|
71
|
-
|
|
71
|
+
let questionHandle_1: import("@endo/patterns").Matcher;
|
|
72
72
|
export { questionHandle_1 as questionHandle };
|
|
73
73
|
export { InstanceHandleShape as counterInstance };
|
|
74
74
|
}
|
|
75
75
|
export namespace YesApiInvocationPositionShape {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
let apiMethodName: import("@endo/patterns").Matcher;
|
|
77
|
+
let methodArgs: import("@endo/patterns").Matcher;
|
|
78
78
|
}
|
|
79
79
|
export namespace NoApiInvocationPositionShape {
|
|
80
|
-
|
|
80
|
+
let dontInvoke: import("@endo/patterns").Matcher;
|
|
81
81
|
}
|
|
82
82
|
export const ApiInvocationPositionsShape: ({
|
|
83
83
|
apiMethodName: import("@endo/patterns").Matcher;
|
|
@@ -86,55 +86,55 @@ export const ApiInvocationPositionsShape: ({
|
|
|
86
86
|
dontInvoke: import("@endo/patterns").Matcher;
|
|
87
87
|
})[];
|
|
88
88
|
export namespace ApiInvocationQuestionSpecShape {
|
|
89
|
-
|
|
89
|
+
let method_1: string;
|
|
90
90
|
export { method_1 as method };
|
|
91
91
|
export { ApiInvocationSpecShape as issue };
|
|
92
92
|
export { ApiInvocationPositionsShape as positions };
|
|
93
|
-
|
|
93
|
+
let electionType_2: string;
|
|
94
94
|
export { electionType_2 as electionType };
|
|
95
|
-
|
|
95
|
+
let maxChoices_2: number;
|
|
96
96
|
export { maxChoices_2 as maxChoices };
|
|
97
|
-
|
|
97
|
+
let maxWinners_2: number;
|
|
98
98
|
export { maxWinners_2 as maxWinners };
|
|
99
99
|
export { ClosingRuleShape as closingRule };
|
|
100
100
|
export { QuorumRuleShape as quorumRule };
|
|
101
101
|
export { NoApiInvocationPositionShape as tieOutcome };
|
|
102
102
|
}
|
|
103
103
|
export namespace ApiInvocationQuestionDetailsShape {
|
|
104
|
-
|
|
104
|
+
let questionHandle_2: import("@endo/patterns").Matcher;
|
|
105
105
|
export { questionHandle_2 as questionHandle };
|
|
106
106
|
export { InstanceHandleShape as counterInstance };
|
|
107
107
|
}
|
|
108
108
|
export namespace YesSimplePositionShape {
|
|
109
|
-
|
|
109
|
+
let text: import("@endo/patterns").Matcher;
|
|
110
110
|
}
|
|
111
111
|
export namespace NoSimplePositionShape {
|
|
112
|
-
|
|
112
|
+
let text_1: import("@endo/patterns").Matcher;
|
|
113
113
|
export { text_1 as text };
|
|
114
114
|
}
|
|
115
115
|
export const SimplePositionsShape: {
|
|
116
116
|
text: import("@endo/patterns").Matcher;
|
|
117
117
|
}[];
|
|
118
118
|
export namespace SimpleIssueShape {
|
|
119
|
-
|
|
119
|
+
let text_2: import("@endo/patterns").Matcher;
|
|
120
120
|
export { text_2 as text };
|
|
121
121
|
}
|
|
122
122
|
export namespace SimpleQuestionSpecShape {
|
|
123
123
|
export { ChoiceMethodShape as method };
|
|
124
124
|
export { SimpleIssueShape as issue };
|
|
125
|
-
export
|
|
126
|
-
|
|
125
|
+
export let positions: import("@endo/patterns").Matcher;
|
|
126
|
+
let electionType_3: import("@endo/patterns").Matcher;
|
|
127
127
|
export { electionType_3 as electionType };
|
|
128
|
-
|
|
128
|
+
let maxChoices_3: import("@endo/patterns").Matcher;
|
|
129
129
|
export { maxChoices_3 as maxChoices };
|
|
130
|
-
|
|
130
|
+
let maxWinners_3: import("@endo/patterns").Matcher;
|
|
131
131
|
export { maxWinners_3 as maxWinners };
|
|
132
132
|
export { ClosingRuleShape as closingRule };
|
|
133
133
|
export { QuorumRuleShape as quorumRule };
|
|
134
134
|
export { NoSimplePositionShape as tieOutcome };
|
|
135
135
|
}
|
|
136
136
|
export namespace SimpleQuestionDetailsShape {
|
|
137
|
-
|
|
137
|
+
let questionHandle_3: import("@endo/patterns").Matcher;
|
|
138
138
|
export { questionHandle_3 as questionHandle };
|
|
139
139
|
export { InstanceHandleShape as counterInstance };
|
|
140
140
|
}
|
|
@@ -146,9 +146,9 @@ export const QuestionDetailsShape: import("@endo/patterns").Matcher;
|
|
|
146
146
|
export const ElectoratePublicI: import("@endo/patterns").InterfaceGuard;
|
|
147
147
|
export const ElectorateCreatorI: import("@endo/patterns").InterfaceGuard;
|
|
148
148
|
export namespace QuestionStatsShape {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
let spoiled: import("@endo/patterns").Matcher;
|
|
150
|
+
let votes: import("@endo/patterns").Matcher;
|
|
151
|
+
let results: import("@endo/patterns").Matcher;
|
|
152
152
|
}
|
|
153
153
|
export const QuestionI: import("@endo/patterns").InterfaceGuard;
|
|
154
154
|
export const BinaryVoteCounterPublicI: import("@endo/patterns").InterfaceGuard;
|
|
@@ -159,15 +159,15 @@ export const VoteCounterPublicI: import("@endo/patterns").InterfaceGuard;
|
|
|
159
159
|
export const VoteCounterAdminI: import("@endo/patterns").InterfaceGuard;
|
|
160
160
|
export const VoteCounterCloseI: import("@endo/patterns").InterfaceGuard;
|
|
161
161
|
export namespace GovernorFacetShape {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
import { TimestampShape } from
|
|
170
|
-
import { InstanceHandleShape } from
|
|
162
|
+
let getParamMgrRetriever: any;
|
|
163
|
+
let getInvitation: any;
|
|
164
|
+
let getLimitedCreatorFacet: any;
|
|
165
|
+
let getGovernedApis: any;
|
|
166
|
+
let getGovernedApiNames: any;
|
|
167
|
+
let setOfferFilter: any;
|
|
168
|
+
}
|
|
169
|
+
import { TimestampShape } from '@agoric/time';
|
|
170
|
+
import { InstanceHandleShape } from '@agoric/zoe/src/typeGuards.js';
|
|
171
171
|
declare namespace ApiInvocationSpecShape { }
|
|
172
172
|
export {};
|
|
173
173
|
//# sourceMappingURL=typeGuards.d.ts.map
|
package/src/typeGuards.d.ts.map
CHANGED
|
@@ -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,wEAMG;AAGH,yEAQG;;;;;;AAQH,gEAGG;AAGH,+EAUE;AAEF,2DAAyC;AACzC,8EAOE;AAEF,8EAKE;AAEF,yEAOG;AAEH,wEAIG;AAEH,wEAEG"}
|
|
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,wEAMG;AAGH,yEAQG;;;;;;AAQH,gEAGG;AAGH,+EAUE;AAEF,2DAAyC;AACzC,8EAOE;AAEF,8EAKE;AAEF,yEAOG;AAEH,wEAIG;AAEH,wEAEG;;;;;;;;;+BAlQ4B,cAAc;oCAKtC,+BAA+B"}
|
package/src/voterKit.d.ts
CHANGED
|
@@ -6,14 +6,14 @@ export function prepareVoterKit(baggage: MapStore<string, unknown>, { submitVote
|
|
|
6
6
|
castBallotFor(questionHandle: any, positions: any, weight?: bigint): Promise<CompletedBallet>;
|
|
7
7
|
};
|
|
8
8
|
invitationMakers: {
|
|
9
|
-
makeVoteInvitation(positions: any, questionHandle: any): Promise<Invitation<
|
|
9
|
+
makeVoteInvitation(positions: any, questionHandle: any): Promise<Invitation<R, A>>;
|
|
10
10
|
};
|
|
11
11
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
12
12
|
voter: {
|
|
13
13
|
castBallotFor(questionHandle: any, positions: any, weight?: bigint): Promise<CompletedBallet>;
|
|
14
14
|
};
|
|
15
15
|
invitationMakers: {
|
|
16
|
-
makeVoteInvitation(positions: any, questionHandle: any): Promise<Invitation<
|
|
16
|
+
makeVoteInvitation(positions: any, questionHandle: any): Promise<Invitation<R, A>>;
|
|
17
17
|
};
|
|
18
18
|
}>;
|
|
19
19
|
//# sourceMappingURL=voterKit.d.ts.map
|
|
@@ -47,5 +47,5 @@ export function start<SF extends GovernableStartFn>(zcf: ZCF<{
|
|
|
47
47
|
* <SF>
|
|
48
48
|
*/
|
|
49
49
|
export type PuppetContractGovernorKit<SF extends GovernableStartFn> = Awaited<ReturnType<typeof start<SF>>>;
|
|
50
|
-
import { CONTRACT_ELECTORATE } from
|
|
50
|
+
import { CONTRACT_ELECTORATE } from '../src/contractGovernance/governParam.js';
|
|
51
51
|
//# sourceMappingURL=puppetContractGovernor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puppetContractGovernor.d.ts","sourceRoot":"","sources":["puppetContractGovernor.js"],"names":[],"mappings":"AA8BO;WAXK,OAAO,wBAAwB,EAAE,YAAY;;cAE1C;QACd,mBAAyB,CAAC,EAAE,mBAAmB,CAAC;QAChD,KAAW,EAAE;YAAC,cAAc,EAAE;gBAAC,qBAAqB,EAAE,OAAO,gDAAgD,EAAE,eAAe,CAAA;aAAE,CAAA;SAAC,CAAC;KAC7H;iBAEK;IACV,QAAY,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;;kCAkCU,iBAAiB,GAAG,CAAC;mCAUtB,MAAM,cACN,OAAO,EAAE;;;;8BALR,MAAM,MAAM,CAAC;;;;QA2BvB,wDAAwD;;;kCAjC9C,iBAAiB,GAAG,CAAC;mCAUtB,MAAM,cACN,OAAO,EAAE;;;;8BALR,MAAM,MAAM,CAAC;;;;QA2BvB,wDAAwD;;;;;;;;GAS3D;;;;sEAIY,QAAQ,WAAW,aAAa,EAAE,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"puppetContractGovernor.d.ts","sourceRoot":"","sources":["puppetContractGovernor.js"],"names":[],"mappings":"AA8BO;WAXK,OAAO,wBAAwB,EAAE,YAAY;;cAE1C;QACd,mBAAyB,CAAC,EAAE,mBAAmB,CAAC;QAChD,KAAW,EAAE;YAAC,cAAc,EAAE;gBAAC,qBAAqB,EAAE,OAAO,gDAAgD,EAAE,eAAe,CAAA;aAAE,CAAA;SAAC,CAAC;KAC7H;iBAEK;IACV,QAAY,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;;kCAkCU,iBAAiB,GAAG,CAAC;mCAUtB,MAAM,cACN,OAAO,EAAE;;;;8BALR,MAAM,MAAM,CAAC;;;;QA2BvB,wDAAwD;;;kCAjC9C,iBAAiB,GAAG,CAAC;mCAUtB,MAAM,cACN,OAAO,EAAE;;;;8BALR,MAAM,MAAM,CAAC;;;;QA2BvB,wDAAwD;;;;;;;;GAS3D;;;;sEAIY,QAAQ,WAAW,aAAa,EAAE,CAAC,CAAC,CAAC;oCApGd,0CAA0C"}
|