@agoric/governance 0.10.4-dev-776528e.0.776528e → 0.10.4-dev-5ff5e7a.0.5ff5e7a
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 +19 -19
- package/source-spec-registry.d.ts +13 -1
- package/source-spec-registry.d.ts.map +1 -1
- package/source-spec-registry.js +7 -0
- package/src/binaryVoteCounter.d.ts.map +1 -1
- package/src/binaryVoteCounter.js +2 -0
- package/src/contractGovernance/governParam.d.ts.map +1 -1
- package/src/contractGovernance/governParam.js +1 -0
- package/src/contractGovernorKit.d.ts +25 -0
- package/src/contractGovernorKit.d.ts.map +1 -1
- package/src/contractHelper.d.ts +120 -35
- package/src/contractHelper.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +60 -0
- package/src/econCommitteeCharter.d.ts.map +1 -0
- package/src/econCommitteeCharter.js +197 -0
- package/src/multiCandidateVoteCounter.d.ts.map +1 -1
- package/src/multiCandidateVoteCounter.js +2 -0
- package/src/noActionElectorate.d.ts.map +1 -1
- package/src/noActionElectorate.js +2 -0
- package/src/question.d.ts.map +1 -1
- package/src/question.js +2 -0
- package/src/typeGuards.d.ts +737 -76
- package/src/typeGuards.d.ts.map +1 -1
- package/src/voterKit.d.ts +7 -0
- package/src/voterKit.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-5ff5e7a.0.5ff5e7a",
|
|
4
4
|
"description": "Core governance support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -29,27 +29,27 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
33
|
-
"@agoric/internal": "0.3.3-dev-
|
|
34
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
35
|
-
"@agoric/store": "0.9.3-dev-
|
|
36
|
-
"@agoric/time": "0.3.3-dev-
|
|
37
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
38
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
39
|
-
"@endo/bundle-source": "^4.
|
|
40
|
-
"@endo/captp": "^4.
|
|
41
|
-
"@endo/errors": "^1.
|
|
42
|
-
"@endo/eventual-send": "^1.
|
|
32
|
+
"@agoric/ertp": "0.16.3-dev-5ff5e7a.0.5ff5e7a",
|
|
33
|
+
"@agoric/internal": "0.3.3-dev-5ff5e7a.0.5ff5e7a",
|
|
34
|
+
"@agoric/notifier": "0.6.3-dev-5ff5e7a.0.5ff5e7a",
|
|
35
|
+
"@agoric/store": "0.9.3-dev-5ff5e7a.0.5ff5e7a",
|
|
36
|
+
"@agoric/time": "0.3.3-dev-5ff5e7a.0.5ff5e7a",
|
|
37
|
+
"@agoric/vat-data": "0.5.3-dev-5ff5e7a.0.5ff5e7a",
|
|
38
|
+
"@agoric/zoe": "0.26.3-dev-5ff5e7a.0.5ff5e7a",
|
|
39
|
+
"@endo/bundle-source": "^4.3.2",
|
|
40
|
+
"@endo/captp": "^4.5.1",
|
|
41
|
+
"@endo/errors": "^1.3.1",
|
|
42
|
+
"@endo/eventual-send": "^1.5.0",
|
|
43
43
|
"@endo/far": "^1.1.14",
|
|
44
|
-
"@endo/marshal": "^1.
|
|
45
|
-
"@endo/nat": "^5.
|
|
46
|
-
"@endo/promise-kit": "^1.1
|
|
44
|
+
"@endo/marshal": "^1.10.0",
|
|
45
|
+
"@endo/nat": "^5.2.0",
|
|
46
|
+
"@endo/promise-kit": "^1.2.1",
|
|
47
47
|
"import-meta-resolve": "^4.1.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
51
|
-
"@endo/bundle-source": "^4.
|
|
52
|
-
"@endo/init": "^1.1.
|
|
50
|
+
"@agoric/swingset-vat": "0.32.3-dev-5ff5e7a.0.5ff5e7a",
|
|
51
|
+
"@endo/bundle-source": "^4.3.2",
|
|
52
|
+
"@endo/init": "^1.1.13",
|
|
53
53
|
"ava": "^7.0.0",
|
|
54
54
|
"c8": "^10.1.3"
|
|
55
55
|
},
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"typeCoverage": {
|
|
77
77
|
"atLeast": 89.5
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "5ff5e7aa9e8c42795c47aabc7222eb56a2915011"
|
|
80
80
|
}
|
|
@@ -20,7 +20,7 @@ export namespace governanceSourceSpecRegistry {
|
|
|
20
20
|
let sourceSpec_2: string;
|
|
21
21
|
export { sourceSpec_2 as sourceSpec };
|
|
22
22
|
}
|
|
23
|
-
namespace
|
|
23
|
+
namespace econCommitteeCharter {
|
|
24
24
|
let bundleName_3: string;
|
|
25
25
|
export { bundleName_3 as bundleName };
|
|
26
26
|
let packagePath_3: string;
|
|
@@ -28,6 +28,14 @@ export namespace governanceSourceSpecRegistry {
|
|
|
28
28
|
let sourceSpec_3: string;
|
|
29
29
|
export { sourceSpec_3 as sourceSpec };
|
|
30
30
|
}
|
|
31
|
+
namespace puppetContractGovernor {
|
|
32
|
+
let bundleName_4: string;
|
|
33
|
+
export { bundleName_4 as bundleName };
|
|
34
|
+
let packagePath_4: string;
|
|
35
|
+
export { packagePath_4 as packagePath };
|
|
36
|
+
let sourceSpec_4: string;
|
|
37
|
+
export { sourceSpec_4 as sourceSpec };
|
|
38
|
+
}
|
|
31
39
|
}
|
|
32
40
|
export function getGovernanceSourceSpec(name: keyof typeof governanceSourceSpecRegistry): {
|
|
33
41
|
bundleName: string;
|
|
@@ -45,5 +53,9 @@ export function getGovernanceSourceSpec(name: keyof typeof governanceSourceSpecR
|
|
|
45
53
|
bundleName: string;
|
|
46
54
|
packagePath: string;
|
|
47
55
|
sourceSpec: string;
|
|
56
|
+
} | {
|
|
57
|
+
bundleName: string;
|
|
58
|
+
packagePath: string;
|
|
59
|
+
sourceSpec: string;
|
|
48
60
|
};
|
|
49
61
|
//# sourceMappingURL=source-spec-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-spec-registry.d.ts","sourceRoot":"","sources":["source-spec-registry.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"source-spec-registry.d.ts","sourceRoot":"","sources":["source-spec-registry.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCO,8CADK,MAAM,OAAO,4BAA4B;;;;;;;;;;;;;;;;;;;;EAEjB"}
|
package/source-spec-registry.js
CHANGED
|
@@ -22,6 +22,13 @@ export const governanceSourceSpecRegistry = {
|
|
|
22
22
|
packagePath: '@agoric/governance/src/contractGovernor.js',
|
|
23
23
|
sourceSpec: resolveSourceSpec('@agoric/governance/src/contractGovernor.js'),
|
|
24
24
|
},
|
|
25
|
+
econCommitteeCharter: {
|
|
26
|
+
bundleName: 'econCommitteeCharter',
|
|
27
|
+
packagePath: '@agoric/governance/src/econCommitteeCharter.js',
|
|
28
|
+
sourceSpec: resolveSourceSpec(
|
|
29
|
+
'@agoric/governance/src/econCommitteeCharter.js',
|
|
30
|
+
),
|
|
31
|
+
},
|
|
25
32
|
puppetContractGovernor: {
|
|
26
33
|
bundleName: 'puppetContractGovernor',
|
|
27
34
|
packagePath: '@agoric/governance/tools/puppetContractGovernor.js',
|
|
@@ -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":"AAiDA,+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
|
@@ -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":"AA6DA;;;;;;GAMG;AACH,oEANW,MAAM,KAAK,qBAAqB,CAAC,oBACjC,QAAQ,SACR,YAAY,wBACZ,MAAM,OAAO,CAAC,UAAU,CAAC,GACvB,aAAa,CA0FzB;AAjID;;;;;;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,QAYxC;AA9CD;;;;;;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"}
|
|
@@ -52,6 +52,7 @@ const assertBallotConcernsParam = (paramSpec, questionSpec) => {
|
|
|
52
52
|
|
|
53
53
|
const { parameterName, paramPath } = paramSpec;
|
|
54
54
|
const { issue } = questionSpec;
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises -- `yarn lint` erroneously thinks this is a promise
|
|
55
56
|
issue.spec.changes[parameterName] ||
|
|
56
57
|
Fail`Question (${issue.spec.changes}) does not concern ${parameterName}`;
|
|
57
58
|
keyEQ(issue.spec.paramPath, paramPath) ||
|
|
@@ -33,6 +33,31 @@ export function prepareContractGovernorKit(baggage: Baggage, powers: {
|
|
|
33
33
|
/** @param {ClosingRule} closingRule */
|
|
34
34
|
validateTimer(closingRule: ClosingRule): void;
|
|
35
35
|
};
|
|
36
|
+
}, {
|
|
37
|
+
helper: import("@endo/patterns").InterfaceGuard<{
|
|
38
|
+
getElectorateInstance: import("@endo/patterns").MethodGuard;
|
|
39
|
+
getUpdatedPoserFacet: import("@endo/patterns").MethodGuard;
|
|
40
|
+
provideApiGovernance: import("@endo/patterns").MethodGuard;
|
|
41
|
+
provideFilterGovernance: import("@endo/patterns").MethodGuard;
|
|
42
|
+
provideParamGovernance: import("@endo/patterns").MethodGuard;
|
|
43
|
+
}>;
|
|
44
|
+
creator: import("@endo/patterns").InterfaceGuard<{
|
|
45
|
+
replaceElectorate: import("@endo/patterns").MethodGuard;
|
|
46
|
+
voteOnParamChanges: import("@endo/patterns").MethodGuard;
|
|
47
|
+
voteOnApiInvocation: import("@endo/patterns").MethodGuard;
|
|
48
|
+
voteOnOfferFilter: import("@endo/patterns").MethodGuard;
|
|
49
|
+
getCreatorFacet: import("@endo/patterns").MethodGuard;
|
|
50
|
+
getAdminFacet: import("@endo/patterns").MethodGuard;
|
|
51
|
+
getInstance: import("@endo/patterns").MethodGuard;
|
|
52
|
+
getPublicFacet: import("@endo/patterns").MethodGuard;
|
|
53
|
+
}>;
|
|
54
|
+
public: import("@endo/patterns").InterfaceGuard<{
|
|
55
|
+
getElectorate: import("@endo/patterns").MethodGuard;
|
|
56
|
+
getGovernedContract: import("@endo/patterns").MethodGuard;
|
|
57
|
+
validateVoteCounter: import("@endo/patterns").MethodGuard;
|
|
58
|
+
validateElectorate: import("@endo/patterns").MethodGuard;
|
|
59
|
+
validateTimer: import("@endo/patterns").MethodGuard;
|
|
60
|
+
}>;
|
|
36
61
|
}>;
|
|
37
62
|
export type ContractGovernorKit = EReturn<EReturn<typeof prepareContractGovernorKit>>;
|
|
38
63
|
import type { Baggage } from '@agoric/vat-data';
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
package/src/contractHelper.d.ts
CHANGED
|
@@ -54,31 +54,31 @@ export function handleParamGovernance<M extends ParamTypesMap>(zcf: ZCF<Governan
|
|
|
54
54
|
};
|
|
55
55
|
augmentPublicFacet: <PF extends {}>(originalPublicFacet: PF) => GovernedPublicFacet<PF>;
|
|
56
56
|
augmentVirtualPublicFacet: <OPF extends {}>(originalPublicFacet: OPF) => OPF & {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
getInstance: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
60
|
-
|
|
61
|
-
getInvitationAmount: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
62
|
-
getNat: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
63
|
-
getRatio: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
64
|
-
getString: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
65
|
-
getTimestamp: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
66
|
-
getRelativeTime: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
67
|
-
getUnknown: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
57
|
+
getAmount: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
58
|
+
getBrand: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
59
|
+
getInstance: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
60
|
+
getInstallation: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
61
|
+
getInvitationAmount: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
62
|
+
getNat: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
63
|
+
getRatio: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
64
|
+
getString: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
65
|
+
getTimestamp: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
66
|
+
getRelativeTime: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
67
|
+
getUnknown: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
68
68
|
getSubscription: () => import("@agoric/notifier").StoredSubscription<GovernanceSubscriptionState>;
|
|
69
69
|
getGovernedParams: () => import("@endo/eventual-send").ERef<import("./types.js").ParamStateRecord>;
|
|
70
70
|
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, OPF & {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
getInstance: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
74
|
-
|
|
75
|
-
getInvitationAmount: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
76
|
-
getNat: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
77
|
-
getRatio: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
78
|
-
getString: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
79
|
-
getTimestamp: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
80
|
-
getRelativeTime: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
81
|
-
getUnknown: import("@agoric/swingset-liveslots").PlusContext<never, (
|
|
71
|
+
getAmount: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
72
|
+
getBrand: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
73
|
+
getInstance: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
74
|
+
getInstallation: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
75
|
+
getInvitationAmount: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
76
|
+
getNat: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
77
|
+
getRatio: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
78
|
+
getString: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
79
|
+
getTimestamp: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
80
|
+
getRelativeTime: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
81
|
+
getUnknown: import("@agoric/swingset-liveslots").PlusContext<never, (...args: any) => any>;
|
|
82
82
|
getSubscription: () => import("@agoric/notifier").StoredSubscription<GovernanceSubscriptionState>;
|
|
83
83
|
getGovernedParams: () => import("@endo/eventual-send").ERef<import("./types.js").ParamStateRecord>;
|
|
84
84
|
}>;
|
|
@@ -115,19 +115,104 @@ export function handleParamGovernance<M extends ParamTypesMap>(zcf: ZCF<Governan
|
|
|
115
115
|
}>;
|
|
116
116
|
};
|
|
117
117
|
export namespace publicMixinAPI {
|
|
118
|
-
let getSubscription: import("@endo/patterns").MethodGuard
|
|
119
|
-
let getGovernedParams: import("@endo/patterns").MethodGuard
|
|
120
|
-
let getAmount: import("@endo/patterns").MethodGuard
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
let
|
|
129
|
-
|
|
130
|
-
|
|
118
|
+
let getSubscription: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"remotable", any>, import("@endo/patterns").SyncValueGuard>;
|
|
119
|
+
let getGovernedParams: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"or", [import("@endo/patterns").MatcherOf<"recordOf", any>, import("@endo/patterns").MatcherOf<"promise", any>]>, import("@endo/patterns").SyncValueGuard>;
|
|
120
|
+
let getAmount: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], {
|
|
121
|
+
brand: (import("@endo/marshal").CopyRecordInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
122
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
123
|
+
}) | (import("@endo/marshal").CopyTaggedInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
124
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
125
|
+
});
|
|
126
|
+
value: import("@endo/patterns").MatcherOf<"or", [import("@endo/patterns").MatcherOf<"nat", bigint>, import("@endo/patterns").MatcherOf<"setOf", any>, import("@endo/patterns").MatcherOf<"arrayOf", import("@endo/patterns").MatcherOf<"key", any>>, import("@endo/patterns").MatcherOf<"bagOf", any>]>;
|
|
127
|
+
}, import("@endo/patterns").SyncValueGuard>;
|
|
128
|
+
let getBrand: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], (string & {
|
|
129
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
130
|
+
}) | (number & {
|
|
131
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
132
|
+
}) | (bigint & {
|
|
133
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
134
|
+
}) | (false & {
|
|
135
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
136
|
+
}) | (true & {
|
|
137
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
138
|
+
}) | (symbol & {
|
|
139
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
140
|
+
}) | (void & {
|
|
141
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
142
|
+
}) | (ArrayBuffer & {
|
|
143
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
144
|
+
}) | (import("@endo/eventual-send").RemotableBrand<any, any> & {
|
|
145
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
146
|
+
}) | (import("@endo/marshal").RemotableObject<string> & {
|
|
147
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
148
|
+
}) | (import("@endo/marshal").CopyArrayInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
149
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
150
|
+
}) | (import("@endo/marshal").CopyRecordInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
151
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
152
|
+
}) | (import("@endo/marshal").CopyTaggedInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
153
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
154
|
+
}), import("@endo/patterns").SyncValueGuard>;
|
|
155
|
+
let getInstance: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"remotable", any>, import("@endo/patterns").SyncValueGuard>;
|
|
156
|
+
let getInstallation: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"remotable", any>, import("@endo/patterns").SyncValueGuard>;
|
|
157
|
+
let getInvitationAmount: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"promise", any>, import("@endo/patterns").SyncValueGuard>;
|
|
158
|
+
let getNat: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"bigint", bigint>, import("@endo/patterns").SyncValueGuard>;
|
|
159
|
+
let getRatio: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"recordOf", any>, import("@endo/patterns").SyncValueGuard>;
|
|
160
|
+
let getString: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"string", string>, import("@endo/patterns").SyncValueGuard>;
|
|
161
|
+
let getTimestamp: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], (string & {
|
|
162
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
163
|
+
}) | (number & {
|
|
164
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
165
|
+
}) | (bigint & {
|
|
166
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
167
|
+
}) | (false & {
|
|
168
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
169
|
+
}) | (true & {
|
|
170
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
171
|
+
}) | (symbol & {
|
|
172
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
173
|
+
}) | (void & {
|
|
174
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
175
|
+
}) | (ArrayBuffer & {
|
|
176
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
177
|
+
}) | (import("@endo/eventual-send").RemotableBrand<any, any> & {
|
|
178
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
179
|
+
}) | (import("@endo/marshal").RemotableObject<string> & {
|
|
180
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
181
|
+
}) | (import("@endo/marshal").CopyArrayInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
182
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
183
|
+
}) | (import("@endo/marshal").CopyRecordInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
184
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
185
|
+
}) | (import("@endo/marshal").CopyTaggedInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
186
|
+
"Symbol(castedType)"?: import("@agoric/time").TimestampRecord | undefined;
|
|
187
|
+
}), import("@endo/patterns").SyncValueGuard>;
|
|
188
|
+
let getRelativeTime: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], (string & {
|
|
189
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
190
|
+
}) | (number & {
|
|
191
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
192
|
+
}) | (bigint & {
|
|
193
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
194
|
+
}) | (false & {
|
|
195
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
196
|
+
}) | (true & {
|
|
197
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
198
|
+
}) | (symbol & {
|
|
199
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
200
|
+
}) | (void & {
|
|
201
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
202
|
+
}) | (ArrayBuffer & {
|
|
203
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
204
|
+
}) | (import("@endo/eventual-send").RemotableBrand<any, any> & {
|
|
205
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
206
|
+
}) | (import("@endo/marshal").RemotableObject<string> & {
|
|
207
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
208
|
+
}) | (import("@endo/marshal").CopyArrayInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
209
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
210
|
+
}) | (import("@endo/marshal").CopyRecordInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
211
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
212
|
+
}) | (import("@endo/marshal").CopyTaggedInterface<import("@endo/marshal").PassableCap, Error> & {
|
|
213
|
+
"Symbol(castedType)"?: import("@agoric/time").RelativeTimeRecord | undefined;
|
|
214
|
+
}), import("@endo/patterns").SyncValueGuard>;
|
|
215
|
+
let getUnknown: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"any", any>, import("@endo/patterns").SyncValueGuard>;
|
|
131
216
|
}
|
|
132
217
|
import type { ParamTypesMap } from './contractGovernance/typedParamManager.js';
|
|
133
218
|
import type { Invitation } from '@agoric/zoe';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractHelper.d.ts","sourceRoot":"","sources":["contractHelper.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;GAWG;AAEH,qCAAsC,YAAY,CAAC;AAwB5C,wCAHI,IAAI,gBAAgB,EAAE,CAAC,GAAG,EAAE,CAAC,gBAC7B,kBAAkB,GAAG,CAAC,iBAQhC;qCAvCqO,YAAY;yBAD1K,aAAa;uCAGjD,2CAA2C;AAgO/E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,sCAT6B,CAAC,SAAjB,aAAe,OAEjB,IAAI,gBAAgB,CAAC,CAAC,CAAC,0BACvB,UAAU,iBACV,CAAC,gBACD,QAAQ,WAAW,CAAC,eACpB,QAAQ,WAAW,CAAC,cACpB,MAAM;;;;;;;;;;;;;;;;yBAzKG,EAAE,SAAP,EAAI;gCAgBC,GAAG,SAAR,EAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsCC,EAAE,SAAP,EAAI,2CAEN,EAAE;2BA7BK,EAAE,SAAP,EAAI,4EAEqB,OAAO;+BAuC8C,GAAG;yCAA7C,OAAO,WAAW,OAAO,EAAE,KAAK,OAAO;;;;;+BA8B3E,EAAE,WACJ,OAAO,4EAEoB,OAAO;;;;;;;;;;;;;YAmBvC,iCAAiC;mCAAhB,YAAY;;;;;;;;;EA0EpC
|
|
1
|
+
{"version":3,"file":"contractHelper.d.ts","sourceRoot":"","sources":["contractHelper.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;GAWG;AAEH,qCAAsC,YAAY,CAAC;AAwB5C,wCAHI,IAAI,gBAAgB,EAAE,CAAC,GAAG,EAAE,CAAC,gBAC7B,kBAAkB,GAAG,CAAC,iBAQhC;qCAvCqO,YAAY;yBAD1K,aAAa;uCAGjD,2CAA2C;AAgO/E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,sCAT6B,CAAC,SAAjB,aAAe,OAEjB,IAAI,gBAAgB,CAAC,CAAC,CAAC,0BACvB,UAAU,iBACV,CAAC,gBACD,QAAQ,WAAW,CAAC,eACpB,QAAQ,WAAW,CAAC,cACpB,MAAM;;;;;;;;;;;;;;;;yBAzKG,EAAE,SAAP,EAAI;gCAgBC,GAAG,SAAR,EAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsCC,EAAE,SAAP,EAAI,2CAEN,EAAE;2BA7BK,EAAE,SAAP,EAAI,4EAEqB,OAAO;+BAuC8C,GAAG;yCAA7C,OAAO,WAAW,OAAO,EAAE,KAAK,OAAO;;;;;+BA8B3E,EAAE,WACJ,OAAO,4EAEoB,OAAO;;;;;;;;;;;;;YAmBvC,iCAAiC;mCAAhB,YAAY;;;;;;;;;EA0EpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCA3Q+B,2CAA2C;gCAJH,aAAa;iCAOvD,0CAA0C;6BAT9C,kBAAkB;iCACd,iDAAiD;8BACP,aAAa;kCAAb,aAAa;iDACiJ,YAAY;yCAAZ,YAAY;0CAAZ,YAAY;0CAI3M,4BAA4B;6BAHzC,kBAAkB;kCAD0L,YAAY"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {MapStore, SetStore} from '@agoric/store';
|
|
3
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
4
|
+
* @import {TimestampValue} from '@agoric/time';
|
|
5
|
+
* @import {ContractMeta, Installation, Instance, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
6
|
+
* @import {GovernorCreatorFacet} from './types.js';
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @file This contract makes it possible for those who govern contracts to call
|
|
10
|
+
* for votes on changes. A more complete implementation would validate
|
|
11
|
+
* parameters, constrain deadlines and possibly split the ability to call for
|
|
12
|
+
* votes into separate capabilities for finer grain encapsulation.
|
|
13
|
+
*
|
|
14
|
+
* XXX There is nothing Inter-Protocol- or "econ"-specific in this module: it
|
|
15
|
+
* is a generic charter over arbitrary governed contracts. The
|
|
16
|
+
* `econCommitteeCharter` name (and the agoricNames registration that uses it)
|
|
17
|
+
* is kept for legacy clarity and on-chain continuity. Relocated from
|
|
18
|
+
* inter-protocol to @agoric/governance (refs #12719).
|
|
19
|
+
*/
|
|
20
|
+
export const INVITATION_MAKERS_DESC: "charter member invitation";
|
|
21
|
+
/** @type {ContractMeta<typeof start>} */
|
|
22
|
+
export const meta: ContractMeta<typeof start>;
|
|
23
|
+
export function start(zcf: ZCF<{
|
|
24
|
+
binaryVoteCounterInstallation: Installation;
|
|
25
|
+
}>, _privateArgs: undefined, baggage: Baggage): Promise<{
|
|
26
|
+
creatorFacet: import("@endo/exo").Guarded<{
|
|
27
|
+
/**
|
|
28
|
+
* @param {Instance<unknown>} governedInstance
|
|
29
|
+
* @param {GovernorCreatorFacet<any>} governorFacet
|
|
30
|
+
* @param {string} [label] for diagnostic use only
|
|
31
|
+
*/
|
|
32
|
+
addInstance: (governedInstance: Instance<unknown>, governorFacet: GovernorCreatorFacet<any>, label?: string) => void;
|
|
33
|
+
makeCharterMemberInvitation: () => Promise<import("@agoric/zoe").Invitation<{
|
|
34
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
35
|
+
VoteOnParamChange: () => Promise<import("@agoric/zoe").Invitation<import("./types.js").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
|
|
36
|
+
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<import("@agoric/zoe").Invitation<import("./types.js").ContractGovernanceVoteResult, undefined>>;
|
|
37
|
+
VoteOnApiCall: (instance: Instance<unknown>, methodName: string, methodArgs: string[], deadline: TimestampValue) => Promise<import("@agoric/zoe").Invitation<import("./types.js").ContractGovernanceVoteResult, undefined>>;
|
|
38
|
+
}>;
|
|
39
|
+
}, undefined>>;
|
|
40
|
+
}>;
|
|
41
|
+
}>;
|
|
42
|
+
export type ParamChangesOfferArgs = {
|
|
43
|
+
deadline: bigint;
|
|
44
|
+
instance: Instance<unknown>;
|
|
45
|
+
params: Record<string, unknown>;
|
|
46
|
+
/**
|
|
47
|
+
* paramPath is determined by contract
|
|
48
|
+
*/
|
|
49
|
+
path?: {
|
|
50
|
+
paramPath: unknown;
|
|
51
|
+
} | undefined;
|
|
52
|
+
};
|
|
53
|
+
import type { ContractMeta } from '@agoric/zoe';
|
|
54
|
+
import type { Installation } from '@agoric/zoe';
|
|
55
|
+
import type { ZCF } from '@agoric/zoe';
|
|
56
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
57
|
+
import type { Instance } from '@agoric/zoe';
|
|
58
|
+
import type { GovernorCreatorFacet } from './types.js';
|
|
59
|
+
import type { TimestampValue } from '@agoric/time';
|
|
60
|
+
//# sourceMappingURL=econCommitteeCharter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AAEH,qCAAsC,2BAA2B,CAAC;AAoBlE,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAMnC;AAQK,2BAJI,IAAI;IAAE,6BAA6B,EAAE,YAAY,CAAA;CAAE,CAAC,gBACpD,SAAS,WACT,OAAO;;QAsHZ;;;;WAIG;wCAHQ,SAAS,OAAO,CAAC,iBACjB,qBAAqB,GAAG,CAAC,UACzB,MAAM;;;;;0CAzEV,SAAS,OAAO,CAAC,cACjB,MAAM,cACN,MAAM,EAAE,YACR,cAAc;;;;GAkF1B;;cAjKa,MAAM;cACN,SAAS,OAAO,CAAC;YACjB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;mBACV,OAAO;;;kCAxBmC,aAAa;kCAAb,aAAa;yBAAb,aAAa;6BAFxD,kBAAkB;8BAEyB,aAAa;0CAC3C,YAAY;oCAFlB,cAAc"}
|