@agoric/governance 0.10.4-dev-2f5ba60.0.2f5ba60 → 0.10.4-dev-b4286a6.0.b4286a6
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 +10 -10
- package/src/contractGovernance/paramManager.d.ts +2 -0
- package/src/contractGovernance/paramManager.d.ts.map +1 -1
- package/src/contractGovernance/paramManager.js +1 -0
- package/src/contractGovernorKit.d.ts +1 -1
- package/src/contractHelper.d.ts +25 -25
- package/src/electorateTools.d.ts +1 -1
- package/src/quorumCounter.d.ts +1 -1
- package/src/typeGuards.d.ts +1 -1
- package/src/types.d.ts +27 -18
- package/src/types.d.ts.map +1 -1
- package/src/types.js +31 -20
- package/tools/puppetGovernance.d.ts +12 -12
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-b4286a6.0.b4286a6",
|
|
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-b4286a6.0.b4286a6",
|
|
35
|
+
"@agoric/internal": "0.3.3-dev-b4286a6.0.b4286a6",
|
|
36
|
+
"@agoric/notifier": "0.6.3-dev-b4286a6.0.b4286a6",
|
|
37
|
+
"@agoric/store": "0.9.3-dev-b4286a6.0.b4286a6",
|
|
38
|
+
"@agoric/time": "0.3.3-dev-b4286a6.0.b4286a6",
|
|
39
|
+
"@agoric/vat-data": "0.5.3-dev-b4286a6.0.b4286a6",
|
|
40
|
+
"@agoric/zoe": "0.26.3-dev-b4286a6.0.b4286a6",
|
|
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-b4286a6.0.b4286a6",
|
|
53
53
|
"@endo/bundle-source": "^4.1.2",
|
|
54
54
|
"@endo/init": "^1.1.12",
|
|
55
55
|
"ava": "^5.3.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"typeCoverage": {
|
|
79
79
|
"atLeast": 89.48
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "b4286a66bf43d6be6880e04c213153dc06275ee8"
|
|
82
82
|
}
|
|
@@ -22,6 +22,7 @@ export type ParamManagerBuilder = {
|
|
|
22
22
|
* @import {RelativeTime} from '@agoric/time';
|
|
23
23
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
24
24
|
* @import {ParamType} from '../constants.js';
|
|
25
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
25
26
|
*/
|
|
26
27
|
/**
|
|
27
28
|
* @param {ParamManagerBase} paramManager
|
|
@@ -54,6 +55,7 @@ export function makeParamManagerBuilder(publisherKit: StoredPublisherKit<Governa
|
|
|
54
55
|
import type { Installation } from '@agoric/zoe';
|
|
55
56
|
import type { Instance } from '@agoric/zoe';
|
|
56
57
|
import type { Invitation } from '@agoric/zoe';
|
|
58
|
+
import type { Ratio } from '@agoric/ertp';
|
|
57
59
|
import type { CopyRecord } from '@endo/marshal';
|
|
58
60
|
import type { Timestamp } from '@agoric/time';
|
|
59
61
|
import type { RelativeTime } from '@agoric/time';
|
|
@@ -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":";eAkDc,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;;AA1CnC;;;;;;;;;;GAUG;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,IAAI,CAAC,UAAU,CAAC,uBAgX1B;kCA7ZuE,aAAa;8BAAb,aAAa;gCAAb,aAAa;2BAO7D,cAAc;gCALT,eAAe;+BAChB,cAAc;kCACX,cAAc;qCAHqF,aAAa;sCAAb,aAAa;oCAL3G,kBAAkB;qCAK4E,aAAa;iDAAb,aAAa;wCAI1G,kBAAkB"}
|
|
@@ -27,6 +27,7 @@ import { CONTRACT_ELECTORATE } from './governParam.js';
|
|
|
27
27
|
* @import {RelativeTime} from '@agoric/time';
|
|
28
28
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
29
29
|
* @import {ParamType} from '../constants.js';
|
|
30
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
30
31
|
*/
|
|
31
32
|
|
|
32
33
|
/**
|
|
@@ -16,7 +16,7 @@ export function prepareContractGovernorKit(baggage: Baggage, powers: {
|
|
|
16
16
|
*/
|
|
17
17
|
replaceElectorate(poserInvitation: Invitation): Promise<void>;
|
|
18
18
|
voteOnParamChanges(voteCounterInstallation: Installation, deadline: import("@agoric/time").Timestamp, paramSpec: import("./types.js").ParamChangesSpec<import("./types.js").StandardParamPath>): Promise<import("./types.js").ContractGovernanceVoteResult>;
|
|
19
|
-
voteOnApiInvocation(apiMethodName: string, methodArgs: Passable[], voteCounterInstallation: Installation, deadline: import("@agoric/time").Timestamp): Promise<import("./types.js").ContractGovernanceVoteResult>;
|
|
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>;
|
package/src/contractHelper.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export function handleParamGovernance<M extends ParamTypesMap>(zcf: ZCF<Governan
|
|
|
43
43
|
getInstallation: (name: string) => Installation;
|
|
44
44
|
getInvitationAmount: (name: string) => InvitationAmount;
|
|
45
45
|
getNat: (name: string) => bigint;
|
|
46
|
-
getRatio: (name: string) => Ratio;
|
|
46
|
+
getRatio: (name: string) => import("@agoric/ertp").Ratio;
|
|
47
47
|
getString: (name: string) => string;
|
|
48
48
|
getTimestamp: (name: string) => import("@agoric/time").TimestampRecord;
|
|
49
49
|
getRelativeTime: (name: string) => import("@agoric/time").RelativeTimeRecord;
|
|
@@ -53,31 +53,31 @@ export function handleParamGovernance<M extends ParamTypesMap>(zcf: ZCF<Governan
|
|
|
53
53
|
};
|
|
54
54
|
augmentPublicFacet: <PF extends {}>(originalPublicFacet: PF) => GovernedPublicFacet<PF>;
|
|
55
55
|
augmentVirtualPublicFacet: <OPF extends {}>(originalPublicFacet: OPF) => OPF & {
|
|
56
|
-
getBrand: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
57
|
-
getInstallation: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
58
|
-
getInstance: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
59
|
-
getAmount: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
60
|
-
getInvitationAmount: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
61
|
-
getNat: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
62
|
-
getRatio: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
63
|
-
getString: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
64
|
-
getTimestamp: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
65
|
-
getRelativeTime: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
66
|
-
getUnknown: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
56
|
+
getBrand: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
57
|
+
getInstallation: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
58
|
+
getInstance: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
59
|
+
getAmount: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
60
|
+
getInvitationAmount: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
61
|
+
getNat: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
62
|
+
getRatio: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
63
|
+
getString: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
64
|
+
getTimestamp: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
65
|
+
getRelativeTime: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
66
|
+
getUnknown: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
67
67
|
getSubscription: () => globalThis.StoredSubscription<GovernanceSubscriptionState>;
|
|
68
68
|
getGovernedParams: () => globalThis.ERef<import("./types.js").ParamStateRecord>;
|
|
69
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, OPF & {
|
|
70
|
-
getBrand: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
71
|
-
getInstallation: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
72
|
-
getInstance: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
73
|
-
getAmount: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
74
|
-
getInvitationAmount: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
75
|
-
getNat: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
76
|
-
getRatio: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
77
|
-
getString: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
78
|
-
getTimestamp: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
79
|
-
getRelativeTime: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
80
|
-
getUnknown: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
69
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, OPF & {
|
|
70
|
+
getBrand: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
71
|
+
getInstallation: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
72
|
+
getInstance: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
73
|
+
getAmount: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
74
|
+
getInvitationAmount: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
75
|
+
getNat: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
76
|
+
getRatio: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
77
|
+
getString: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
78
|
+
getTimestamp: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
79
|
+
getRelativeTime: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
80
|
+
getUnknown: import("@agoric/swingset-liveslots").PlusContext<never, ((name: string) => InvitationAmount) | ((name: string) => Amount) | ((name: string) => Brand) | ((name: string) => Instance) | ((name: string) => Installation) | ((name: string) => bigint) | ((name: string) => import("@agoric/ertp").Ratio) | ((name: string) => string) | ((name: string) => import("@agoric/time").TimestampRecord) | ((name: string) => import("@agoric/time").RelativeTimeRecord) | ((name: string) => any)>;
|
|
81
81
|
getSubscription: () => globalThis.StoredSubscription<GovernanceSubscriptionState>;
|
|
82
82
|
getGovernedParams: () => globalThis.ERef<import("./types.js").ParamStateRecord>;
|
|
83
83
|
}>;
|
|
@@ -95,7 +95,7 @@ export function handleParamGovernance<M extends ParamTypesMap>(zcf: ZCF<Governan
|
|
|
95
95
|
get: () => TypedParamManager<M & {
|
|
96
96
|
Electorate: "invitation";
|
|
97
97
|
}>;
|
|
98
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
98
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
99
99
|
get: () => TypedParamManager<M & {
|
|
100
100
|
Electorate: "invitation";
|
|
101
101
|
}>;
|
package/src/electorateTools.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export function getQuestion(questionHandleP: ERef<Handle<"Question">>, questionS
|
|
|
41
41
|
*/
|
|
42
42
|
export function getPoserInvitation(zcf: ZCF, addQuestion: AddQuestion): Promise<Invitation<{
|
|
43
43
|
addQuestion: AddQuestion;
|
|
44
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
44
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
45
45
|
addQuestion: AddQuestion;
|
|
46
46
|
}>, undefined>>;
|
|
47
47
|
import type { VoteCounterCreatorFacet } from './types.js';
|
package/src/quorumCounter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function makeQuorumCounter(quorumThreshold: any): {
|
|
2
2
|
check: (stats: any) => boolean;
|
|
3
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
3
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
4
4
|
check: (stats: any) => boolean;
|
|
5
5
|
}>;
|
|
6
6
|
//# sourceMappingURL=quorumCounter.d.ts.map
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ 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 let timer: Pattern;
|
|
5
|
+
export let timer: import("@endo/patterns").Pattern;
|
|
6
6
|
export { TimestampShape as deadline };
|
|
7
7
|
}
|
|
8
8
|
export namespace YesOfferFilterPositionShape {
|
package/src/types.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export type QuorumRule = "majority" | "all" | "no_quorum";
|
|
|
19
19
|
export type SimpleIssue = {
|
|
20
20
|
text: string;
|
|
21
21
|
};
|
|
22
|
-
export type ParamValue = Amount | Brand | Installation | Instance | number | bigint | Ratio | string |
|
|
23
|
-
export type ParamValueForType<T extends ParamType> = T extends "amount" ? Amount<any> : T extends "brand" ? Brand : T extends "installation" ? Installation : T extends "instance" ? Instance : T extends "invitation" ? Amount<"set"> : T extends "nat" ? bigint : T extends "ratio" ? Ratio : T extends "string" ? string : T extends "timestamp" ?
|
|
22
|
+
export type ParamValue = Amount | Brand | Installation | Instance | number | bigint | Ratio | string | TimestampRecord | RelativeTimeRecord | Container<any, any>;
|
|
23
|
+
export type ParamValueForType<T extends ParamType> = T extends "amount" ? Amount<any> : T extends "brand" ? Brand : T extends "installation" ? Installation : T extends "instance" ? Instance : T extends "invitation" ? Amount<"set"> : T extends "nat" ? bigint : T extends "ratio" ? Ratio : T extends "string" ? string : T extends "timestamp" ? Timestamp : T extends "relativeTime" ? RelativeTime : T extends "unknown" ? unknown : never;
|
|
24
24
|
export type ParamValueTyped<T extends ParamType = ParamType> = {
|
|
25
25
|
type: T;
|
|
26
26
|
value: ParamValueForType<T>;
|
|
@@ -28,9 +28,9 @@ export type ParamValueTyped<T extends ParamType = ParamType> = {
|
|
|
28
28
|
/**
|
|
29
29
|
* Terms a contract must provide in order to be governed.
|
|
30
30
|
*/
|
|
31
|
-
export type GovernanceTerms<T extends
|
|
32
|
-
electionManager:
|
|
33
|
-
governedParams:
|
|
31
|
+
export type GovernanceTerms<T extends ParamTypesMap> = {
|
|
32
|
+
electionManager: Instance<typeof start>;
|
|
33
|
+
governedParams: ParamRecordsFromTypes<T & {
|
|
34
34
|
Electorate: "invitation";
|
|
35
35
|
}>;
|
|
36
36
|
};
|
|
@@ -227,22 +227,22 @@ export type VoterFacet = {
|
|
|
227
227
|
submitVote: SubmitVote;
|
|
228
228
|
};
|
|
229
229
|
export type ClosingRule = {
|
|
230
|
-
timer: ERef<
|
|
231
|
-
deadline:
|
|
230
|
+
timer: ERef<TimerService>;
|
|
231
|
+
deadline: Timestamp;
|
|
232
232
|
};
|
|
233
233
|
export type CloseVoting = (closingRule: ClosingRule, closeVoting: () => void) => any;
|
|
234
234
|
export type AddQuestionReturn = {
|
|
235
235
|
publicFacet: VoteCounterPublicFacet;
|
|
236
236
|
creatorFacet: VoteCounterCreatorFacet;
|
|
237
|
-
instance:
|
|
238
|
-
deadline:
|
|
237
|
+
instance: Instance<typeof import("./binaryVoteCounter.js").start>;
|
|
238
|
+
deadline: Timestamp;
|
|
239
239
|
questionHandle: Handle<"Question">;
|
|
240
240
|
};
|
|
241
241
|
export type AddQuestion = (voteCounter: ERef<Installation>, questionSpec: QuestionSpec) => Promise<AddQuestionReturn>;
|
|
242
242
|
export type CreateQuestion = (name: string, proposedValue: ParamValue, voteCounterInstallation: Installation, contractInstance: Instance, closingRule: ClosingRule) => Promise<QuestionDetails>;
|
|
243
243
|
export type ParamChangeIssue<P = StandardParamPath> = {
|
|
244
244
|
spec: ParamChangesSpec<P>;
|
|
245
|
-
contract:
|
|
245
|
+
contract: Instance<(zcf: ZCF<GovernanceTerms<{}>>) => {}>;
|
|
246
246
|
};
|
|
247
247
|
export type ApiInvocationIssue = {
|
|
248
248
|
apiMethodName: string;
|
|
@@ -294,8 +294,8 @@ export type ParamManagerBase = {
|
|
|
294
294
|
getNat: (name: string) => bigint;
|
|
295
295
|
getRatio: (name: string) => Ratio;
|
|
296
296
|
getString: (name: string) => string;
|
|
297
|
-
getTimestamp: (name: string) =>
|
|
298
|
-
getRelativeTime: (name: string) =>
|
|
297
|
+
getTimestamp: (name: string) => TimestampRecord;
|
|
298
|
+
getRelativeTime: (name: string) => RelativeTimeRecord;
|
|
299
299
|
getUnknown: (name: string) => any;
|
|
300
300
|
/**
|
|
301
301
|
* - for
|
|
@@ -468,9 +468,9 @@ export type StandardParamPath = {
|
|
|
468
468
|
export type ParamManagerRetriever = {
|
|
469
469
|
get: (paramKey?: ParamKey) => AnyParamManager;
|
|
470
470
|
};
|
|
471
|
-
export type VoteOnParamChanges<P = StandardParamPath> = (voteCounterInstallation: Installation, deadline:
|
|
472
|
-
export type VoteOnApiInvocation = (apiMethodName: string, methodArgs: Passable[], voteCounterInstallation: Installation, deadline:
|
|
473
|
-
export type VoteOnOfferFilter = (voteCounterInstallation: Installation, deadline:
|
|
471
|
+
export type VoteOnParamChanges<P = StandardParamPath> = (voteCounterInstallation: Installation, deadline: Timestamp, paramSpec: ParamChangesSpec<P>) => Promise<ContractGovernanceVoteResult>;
|
|
472
|
+
export type VoteOnApiInvocation = (apiMethodName: string, methodArgs: Passable[], voteCounterInstallation: Installation, deadline: Timestamp) => Promise<ContractGovernanceVoteResult>;
|
|
473
|
+
export type VoteOnOfferFilter = (voteCounterInstallation: Installation, deadline: Timestamp, strings: string[]) => Promise<ContractGovernanceVoteResult>;
|
|
474
474
|
export type ParamGovernor = {
|
|
475
475
|
voteOnParamChanges: VoteOnParamChanges;
|
|
476
476
|
createdQuestion: CreatedQuestion;
|
|
@@ -493,7 +493,7 @@ export type GovernedContractTerms = {
|
|
|
493
493
|
issuerKeywordRecord: IssuerKeywordRecord;
|
|
494
494
|
privateArgs: object;
|
|
495
495
|
};
|
|
496
|
-
export type AssertContractGovernance = (zoe: ERef<ZoeService>, allegedGoverned:
|
|
496
|
+
export type AssertContractGovernance = (zoe: ERef<ZoeService>, allegedGoverned: Instance<(zcf: ZCF<GovernanceTerms<{}>>) => {}>, allegedGovernor: Instance<(zcf: any) => {
|
|
497
497
|
publicFacet: GovernorPublic;
|
|
498
498
|
}>, contractGovernorInstallation: Installation<typeof import("@agoric/governance/src/contractGovernor.js").start>) => Promise<GovernancePair>;
|
|
499
499
|
/**
|
|
@@ -507,14 +507,14 @@ export type GovernableStartFn = ContractStartFunction & ((zcf?: any, pa?: any, b
|
|
|
507
507
|
creatorFacet: GovernedCreatorFacet<{}>;
|
|
508
508
|
publicFacet: GovernedPublicFacet<{}>;
|
|
509
509
|
}>);
|
|
510
|
-
export type GovernorSF = typeof
|
|
510
|
+
export type GovernorSF = typeof start;
|
|
511
511
|
/**
|
|
512
512
|
* Same result as StartedInstanceKit but:
|
|
513
513
|
* - typed for contractGovernor installation being started by Zoe. (It in turn starts the governed contract.)
|
|
514
514
|
* - parameterized by Installation instead of StartFunction
|
|
515
515
|
*/
|
|
516
516
|
export type GovernorStartedInstallationKit<I extends ERef<Installation<GovernableStartFn>>> = {
|
|
517
|
-
instance:
|
|
517
|
+
instance: Instance<GovernorSF>;
|
|
518
518
|
adminFacet: AdminFacet;
|
|
519
519
|
creatorFacet: GovernorCreatorFacet<InstallationStart<Awaited<I>>>;
|
|
520
520
|
publicFacet: GovernorPublic;
|
|
@@ -545,10 +545,19 @@ export type GovernanceFacetKit<SF extends GovernableStartFn> = {
|
|
|
545
545
|
};
|
|
546
546
|
import type { Installation } from '@agoric/zoe';
|
|
547
547
|
import type { Instance } from '@agoric/zoe';
|
|
548
|
+
import type { Ratio } from '@agoric/ertp';
|
|
549
|
+
import type { TimestampRecord } from '@agoric/time';
|
|
550
|
+
import type { RelativeTimeRecord } from '@agoric/time';
|
|
548
551
|
import type { Container } from '@endo/pass-style';
|
|
549
552
|
import type { ParamType } from './constants.js';
|
|
553
|
+
import type { Timestamp } from '@agoric/time';
|
|
554
|
+
import type { RelativeTime } from '@agoric/time';
|
|
555
|
+
import type { ParamTypesMap } from './contractGovernance/typedParamManager.js';
|
|
556
|
+
import type { start } from './contractGovernor.js';
|
|
557
|
+
import type { ParamRecordsFromTypes } from './contractGovernance/typedParamManager.js';
|
|
550
558
|
import type { Publisher } from '@agoric/notifier';
|
|
551
559
|
import type { Invitation } from '@agoric/zoe';
|
|
560
|
+
import type { TimerService } from '@agoric/time';
|
|
552
561
|
import type { ZCF } from '@agoric/zoe';
|
|
553
562
|
import type { InvitationAmount } from '@agoric/zoe';
|
|
554
563
|
import type { Passable } from '@endo/pass-style';
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;;;;;;2BAuBc,UAAU,GAAG,OAAO,GAAG,WAAW;;;;;;;2BAWlC,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,gBAAgB,GACtE,cAAkB;yBAUL,UAAU,GAAG,KAAK,GAAG,WAAW;;UAKhC,MAAM;;yBAIN,MAAM,GAAG,KAAK,GAAG,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GACvE,KAAS,GAAG,MAAM,GAAG,eAAe,GACpC,kBAAsB,GAAG,UAAU,GAAG,EAAE,GAAG,CAAC;8BAOpB,CAAC,SAAb,SAAW,IACX,CAAC,SAAS,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,GAC1C,CAAC,SAAS,OAAO,GAAG,KAAK,GACzB,CAAC,SAAS,cAAc,GAAG,YAAY,GACvC,CAAC,SAAS,UAAU,GAAG,QAAQ,GAC/B,CAAC,SAAS,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,GACtC,CAAC,SAAS,KAAK,GAAG,MAAM,GACxB,CAAC,SAAS,OAAO,GAAG,KAAK,GACzB,CAAC,SAAS,QAAQ,GAAG,MAAM,GAC3B,CAAC,SAAS,WAAW,GAAG,SAAS,GACjC,CAAC,SAAS,cAAc,GAAG,YAAY,GACvC,CAAC,SAAS,SAAS,GAAG,OAAO,GAC/B,KAAO;4BAK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B;+BA5BjB,cAAc;kCACX,cAAc;mCACb,2CAA2C;2BACnD,uBAAuB;2CACP,2CAA2C;+BAXvD,kBAAkB;gCAE0B,aAAa;kCAUtD,cAAc;yBAV2B,aAAa;sCADnB,aAAa;8BAFzC,kBAAkB;gCAEU,aAAa;2CAEvC,qCAAqC;uCAFX,aAAa;6BAHrD,WAAW"}
|
package/src/types.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable @agoric/group-jsdoc-imports */
|
|
2
|
+
|
|
1
3
|
export {};
|
|
2
4
|
|
|
3
5
|
/**
|
|
@@ -7,6 +9,15 @@ export {};
|
|
|
7
9
|
* @import {AdminFacet, InstallationStart, InvitationAmount} from '@agoric/zoe';
|
|
8
10
|
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
9
11
|
* @import {ContractStartFunction} from '@agoric/zoe/src/zoeService/utils.js';
|
|
12
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
13
|
+
* @import {TimestampRecord} from '@agoric/time';
|
|
14
|
+
* @import {RelativeTimeRecord} from '@agoric/time';
|
|
15
|
+
* @import {Timestamp} from '@agoric/time';
|
|
16
|
+
* @import {RelativeTime} from '@agoric/time';
|
|
17
|
+
* @import {ParamTypesMap} from './contractGovernance/typedParamManager.js';
|
|
18
|
+
* @import {start} from './contractGovernor.js';
|
|
19
|
+
* @import {ParamRecordsFromTypes} from './contractGovernance/typedParamManager.js';
|
|
20
|
+
* @import {TimerService} from '@agoric/time';
|
|
10
21
|
*/
|
|
11
22
|
|
|
12
23
|
/**
|
|
@@ -42,8 +53,8 @@ export {};
|
|
|
42
53
|
|
|
43
54
|
/**
|
|
44
55
|
* @typedef { Amount | Brand | Installation | Instance | number | bigint |
|
|
45
|
-
* Ratio | string |
|
|
46
|
-
*
|
|
56
|
+
* Ratio | string | TimestampRecord |
|
|
57
|
+
* RelativeTimeRecord | Container<any, any> } ParamValue
|
|
47
58
|
*/
|
|
48
59
|
|
|
49
60
|
// XXX better to use the manifest constant ParamTypes
|
|
@@ -59,8 +70,8 @@ export {};
|
|
|
59
70
|
* T extends 'nat' ? bigint :
|
|
60
71
|
* T extends 'ratio' ? Ratio :
|
|
61
72
|
* T extends 'string' ? string :
|
|
62
|
-
* T extends 'timestamp' ?
|
|
63
|
-
* T extends 'relativeTime' ?
|
|
73
|
+
* T extends 'timestamp' ? Timestamp :
|
|
74
|
+
* T extends 'relativeTime' ? RelativeTime :
|
|
64
75
|
* T extends 'unknown' ? unknown :
|
|
65
76
|
* never
|
|
66
77
|
* } ParamValueForType
|
|
@@ -74,10 +85,10 @@ export {};
|
|
|
74
85
|
/**
|
|
75
86
|
* Terms a contract must provide in order to be governed.
|
|
76
87
|
*
|
|
77
|
-
* @template {
|
|
88
|
+
* @template {ParamTypesMap} T Governed parameters of contract
|
|
78
89
|
* @typedef {{
|
|
79
|
-
* electionManager:
|
|
80
|
-
* governedParams:
|
|
90
|
+
* electionManager: Instance<typeof start>,
|
|
91
|
+
* governedParams: ParamRecordsFromTypes<T & {
|
|
81
92
|
* Electorate: 'invitation'
|
|
82
93
|
* }>
|
|
83
94
|
* }} GovernanceTerms
|
|
@@ -342,8 +353,8 @@ export {};
|
|
|
342
353
|
|
|
343
354
|
/**
|
|
344
355
|
* @typedef {object} ClosingRule
|
|
345
|
-
* @property {ERef<
|
|
346
|
-
* @property {
|
|
356
|
+
* @property {ERef<TimerService>} timer
|
|
357
|
+
* @property {Timestamp} deadline
|
|
347
358
|
*/
|
|
348
359
|
|
|
349
360
|
/**
|
|
@@ -356,8 +367,8 @@ export {};
|
|
|
356
367
|
* @typedef {object} AddQuestionReturn
|
|
357
368
|
* @property {VoteCounterPublicFacet} publicFacet
|
|
358
369
|
* @property {VoteCounterCreatorFacet} creatorFacet
|
|
359
|
-
* @property {
|
|
360
|
-
* @property {
|
|
370
|
+
* @property {Instance<typeof import('./binaryVoteCounter.js').start>} instance
|
|
371
|
+
* @property {Timestamp} deadline
|
|
361
372
|
* @property {Handle<'Question'>} questionHandle
|
|
362
373
|
*/
|
|
363
374
|
|
|
@@ -388,7 +399,7 @@ export {};
|
|
|
388
399
|
* @template [P=StandardParamPath] path for a paramManagerRetriever
|
|
389
400
|
* @typedef {object} ParamChangeIssue
|
|
390
401
|
* @property {ParamChangesSpec<P>} spec
|
|
391
|
-
* @property {
|
|
402
|
+
* @property {Instance<(zcf: ZCF<GovernanceTerms<{}>>) => {}>} contract
|
|
392
403
|
*/
|
|
393
404
|
|
|
394
405
|
/**
|
|
@@ -441,8 +452,8 @@ export {};
|
|
|
441
452
|
* @property {(name: string) => bigint} getNat
|
|
442
453
|
* @property {(name: string) => Ratio} getRatio
|
|
443
454
|
* @property {(name: string) => string} getString
|
|
444
|
-
* @property {(name: string) =>
|
|
445
|
-
* @property {(name: string) =>
|
|
455
|
+
* @property {(name: string) => TimestampRecord} getTimestamp
|
|
456
|
+
* @property {(name: string) => RelativeTimeRecord} getRelativeTime
|
|
446
457
|
* @property {(name: string) => any} getUnknown
|
|
447
458
|
* @property {(name: string, proposedValue: ParamValue) => ParamValue} getVisibleValue - for
|
|
448
459
|
* most types, the visible value is the same as proposedValue. For Invitations
|
|
@@ -624,7 +635,7 @@ export {};
|
|
|
624
635
|
*
|
|
625
636
|
* @callback VoteOnParamChanges
|
|
626
637
|
* @param {Installation} voteCounterInstallation
|
|
627
|
-
* @param {
|
|
638
|
+
* @param {Timestamp} deadline
|
|
628
639
|
* @param {ParamChangesSpec<P>} paramSpec
|
|
629
640
|
* @returns {Promise<ContractGovernanceVoteResult>}
|
|
630
641
|
*/
|
|
@@ -634,14 +645,14 @@ export {};
|
|
|
634
645
|
* @param {string} apiMethodName
|
|
635
646
|
* @param {Passable[]} methodArgs
|
|
636
647
|
* @param {Installation} voteCounterInstallation
|
|
637
|
-
* @param {
|
|
648
|
+
* @param {Timestamp} deadline
|
|
638
649
|
* @returns {Promise<ContractGovernanceVoteResult>}
|
|
639
650
|
*/
|
|
640
651
|
|
|
641
652
|
/**
|
|
642
653
|
* @callback VoteOnOfferFilter
|
|
643
654
|
* @param {Installation} voteCounterInstallation
|
|
644
|
-
* @param {
|
|
655
|
+
* @param {Timestamp} deadline
|
|
645
656
|
* @param {string[]} strings
|
|
646
657
|
* @returns {Promise<ContractGovernanceVoteResult>}
|
|
647
658
|
*/
|
|
@@ -689,7 +700,7 @@ export {};
|
|
|
689
700
|
* @callback AssertContractGovernance
|
|
690
701
|
*
|
|
691
702
|
* @param {ERef<ZoeService>} zoe
|
|
692
|
-
* @param {
|
|
703
|
+
* @param {Instance<(zcf: ZCF<GovernanceTerms<{}>>) => {}>} allegedGoverned
|
|
693
704
|
* @param {Instance<(zcf) => {publicFacet: GovernorPublic}>} allegedGovernor
|
|
694
705
|
* @param {Installation<typeof import('@agoric/governance/src/contractGovernor.js').start>} contractGovernorInstallation
|
|
695
706
|
* @returns {Promise<GovernancePair>}
|
|
@@ -711,7 +722,7 @@ export {};
|
|
|
711
722
|
*/
|
|
712
723
|
|
|
713
724
|
/**
|
|
714
|
-
* @typedef {typeof
|
|
725
|
+
* @typedef {typeof start} GovernorSF
|
|
715
726
|
*/
|
|
716
727
|
|
|
717
728
|
// TODO find a way to parameterize the startInstance so the governed contract types flow
|
|
@@ -722,7 +733,7 @@ export {};
|
|
|
722
733
|
* Same result as StartedInstanceKit but:
|
|
723
734
|
* - typed for contractGovernor installation being started by Zoe. (It in turn starts the governed contract.)
|
|
724
735
|
* - parameterized by Installation instead of StartFunction
|
|
725
|
-
* @property {
|
|
736
|
+
* @property {Instance<GovernorSF>} instance
|
|
726
737
|
* @property {AdminFacet} adminFacet
|
|
727
738
|
* @property {GovernorCreatorFacet<InstallationStart<Awaited<I>>>} creatorFacet
|
|
728
739
|
* @property {GovernorPublic} publicFacet
|
|
@@ -23,20 +23,20 @@ export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<Zoe
|
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
creatorFacet: {
|
|
25
25
|
changeParams: (paramSpec: import("../src/types.js").ParamChangesSpec<any>) => Promise<void>;
|
|
26
|
-
invokeAPI: (apiMethodName: string, methodArgs: Passable[]) => Promise<{
|
|
26
|
+
invokeAPI: (apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[]) => Promise<{
|
|
27
27
|
apiMethodName: string;
|
|
28
|
-
methodArgs: Passable[];
|
|
28
|
+
methodArgs: import("@endo/pass-style").Passable[];
|
|
29
29
|
}>;
|
|
30
30
|
setFilters: (strings: Array<string>) => Promise<void>;
|
|
31
31
|
getCreatorFacet: () => Promise<{}>;
|
|
32
32
|
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<SF>;
|
|
33
33
|
getInstance: () => Instance<SF>;
|
|
34
34
|
getPublicFacet: () => Awaited<ReturnType<SF>>["publicFacet"];
|
|
35
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
35
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
36
36
|
changeParams: (paramSpec: import("../src/types.js").ParamChangesSpec<any>) => Promise<void>;
|
|
37
|
-
invokeAPI: (apiMethodName: string, methodArgs: Passable[]) => Promise<{
|
|
37
|
+
invokeAPI: (apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[]) => Promise<{
|
|
38
38
|
apiMethodName: string;
|
|
39
|
-
methodArgs: Passable[];
|
|
39
|
+
methodArgs: import("@endo/pass-style").Passable[];
|
|
40
40
|
}>;
|
|
41
41
|
setFilters: (strings: Array<string>) => Promise<void>;
|
|
42
42
|
getCreatorFacet: () => Promise<{}>;
|
|
@@ -46,7 +46,7 @@ export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<Zoe
|
|
|
46
46
|
}>;
|
|
47
47
|
publicFacet: {
|
|
48
48
|
getGovernedContract: () => Instance<SF>;
|
|
49
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
49
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
50
50
|
getGovernedContract: () => Instance<SF>;
|
|
51
51
|
}>;
|
|
52
52
|
}>)>;
|
|
@@ -67,20 +67,20 @@ export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<Zoe
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
creatorFacet: {
|
|
69
69
|
changeParams: (paramSpec: import("../src/types.js").ParamChangesSpec<any>) => Promise<void>;
|
|
70
|
-
invokeAPI: (apiMethodName: string, methodArgs: Passable[]) => Promise<{
|
|
70
|
+
invokeAPI: (apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[]) => Promise<{
|
|
71
71
|
apiMethodName: string;
|
|
72
|
-
methodArgs: Passable[];
|
|
72
|
+
methodArgs: import("@endo/pass-style").Passable[];
|
|
73
73
|
}>;
|
|
74
74
|
setFilters: (strings: Array<string>) => Promise<void>;
|
|
75
75
|
getCreatorFacet: () => Promise<{}>;
|
|
76
76
|
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<SF>;
|
|
77
77
|
getInstance: () => Instance<SF>;
|
|
78
78
|
getPublicFacet: () => Awaited<ReturnType<SF>>["publicFacet"];
|
|
79
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
79
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
80
80
|
changeParams: (paramSpec: import("../src/types.js").ParamChangesSpec<any>) => Promise<void>;
|
|
81
|
-
invokeAPI: (apiMethodName: string, methodArgs: Passable[]) => Promise<{
|
|
81
|
+
invokeAPI: (apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[]) => Promise<{
|
|
82
82
|
apiMethodName: string;
|
|
83
|
-
methodArgs: Passable[];
|
|
83
|
+
methodArgs: import("@endo/pass-style").Passable[];
|
|
84
84
|
}>;
|
|
85
85
|
setFilters: (strings: Array<string>) => Promise<void>;
|
|
86
86
|
getCreatorFacet: () => Promise<{}>;
|
|
@@ -90,7 +90,7 @@ export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<Zoe
|
|
|
90
90
|
}>;
|
|
91
91
|
publicFacet: {
|
|
92
92
|
getGovernedContract: () => Instance<SF>;
|
|
93
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
93
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
94
94
|
getGovernedContract: () => Instance<SF>;
|
|
95
95
|
}>;
|
|
96
96
|
}>)>;
|