@agoric/governance 0.10.4-dev-eb7e9eb.0 → 0.10.4-u11.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/CHANGELOG.md +431 -0
- package/package.json +26 -26
- package/src/binaryVoteCounter.d.ts.map +1 -1
- package/src/binaryVoteCounter.js +0 -1
- package/src/committee.d.ts +12 -10
- package/src/committee.d.ts.map +1 -1
- package/src/committee.js +7 -10
- 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/paramManager.js +2 -3
- package/src/contractGovernance/typedParamManager.d.ts +2 -2
- package/src/contractGovernance/typedParamManager.d.ts.map +1 -1
- package/src/contractGovernor.d.ts +3 -5
- package/src/contractGovernor.d.ts.map +1 -1
- package/src/contractGovernor.js +4 -10
- package/src/contractGovernorKit.d.ts +1 -1
- package/src/contractGovernorKit.d.ts.map +1 -1
- package/src/contractGovernorKit.js +0 -1
- package/src/contractHelper.d.ts +40 -40
- package/src/contractHelper.d.ts.map +1 -1
- package/src/contractHelper.js +3 -3
- package/src/electorateTools.d.ts +5 -1
- package/src/electorateTools.d.ts.map +1 -1
- package/src/index.js +1 -1
- package/src/multiCandidateVoteCounter.d.ts.map +1 -1
- package/src/multiCandidateVoteCounter.js +2 -3
- package/src/noActionElectorate.d.ts.map +1 -1
- package/src/noActionElectorate.js +2 -4
- package/src/question.d.ts +11 -11
- package/src/typeGuards.d.ts +74 -72
- package/src/typeGuards.d.ts.map +1 -1
- package/src/types-ambient.d.ts +493 -493
- package/src/types-ambient.d.ts.map +1 -1
- package/src/types-ambient.js +3 -3
- package/src/types.d.ts +8 -4
- package/src/types.d.ts.map +1 -1
- package/src/types.js +3 -3
- package/src/voterKit.d.ts +3 -3
- package/src/voterKit.d.ts.map +1 -1
- package/tools/puppetContractGovernor.d.ts +1 -1
- package/tools/puppetContractGovernor.d.ts.map +1 -1
- package/tools/puppetGovernance.d.ts.map +1 -1
- package/tools/puppetGovernance.js +2 -0
package/src/typeGuards.d.ts
CHANGED
|
@@ -1,48 +1,50 @@
|
|
|
1
|
-
export const ChoiceMethodShape:
|
|
2
|
-
export const QuorumRuleShape:
|
|
3
|
-
export const ElectionTypeShape:
|
|
1
|
+
export const ChoiceMethodShape: import("@endo/patterns").Matcher;
|
|
2
|
+
export const QuorumRuleShape: import("@endo/patterns").Matcher;
|
|
3
|
+
export const ElectionTypeShape: import("@endo/patterns").Matcher;
|
|
4
4
|
export namespace ClosingRuleShape {
|
|
5
|
-
export
|
|
5
|
+
export const timer: any;
|
|
6
6
|
export { TimestampShape as deadline };
|
|
7
7
|
}
|
|
8
8
|
export namespace YesOfferFilterPositionShape {
|
|
9
|
-
|
|
9
|
+
const strings: import("@endo/patterns").Matcher;
|
|
10
10
|
}
|
|
11
11
|
export namespace NoOfferFilterPositionShape {
|
|
12
|
-
|
|
12
|
+
const dontUpdate: import("@endo/patterns").Matcher;
|
|
13
13
|
}
|
|
14
14
|
export const OfferFilterPositionsShape: ({
|
|
15
|
-
strings:
|
|
15
|
+
strings: import("@endo/patterns").Matcher;
|
|
16
16
|
} | {
|
|
17
|
-
dontUpdate:
|
|
17
|
+
dontUpdate: import("@endo/patterns").Matcher;
|
|
18
18
|
})[];
|
|
19
19
|
export namespace OfferFilterIssueShape {
|
|
20
|
-
|
|
20
|
+
const 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 const electionType: string;
|
|
28
|
+
export const maxChoices: number;
|
|
29
|
+
export const 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 const questionHandle: import("@endo/patterns").Matcher;
|
|
36
36
|
export { InstanceHandleShape as counterInstance };
|
|
37
37
|
}
|
|
38
|
-
export const ParamChangesSpecShape:
|
|
39
|
-
export const YesParamChangesPositionShape:
|
|
38
|
+
export const ParamChangesSpecShape: import("@endo/patterns").Matcher;
|
|
39
|
+
export const YesParamChangesPositionShape: import("@endo/patterns").Matcher;
|
|
40
40
|
export namespace NoParamChangesPositionShape {
|
|
41
|
-
|
|
41
|
+
const noChange: import("@endo/patterns").Matcher;
|
|
42
42
|
}
|
|
43
|
-
export const ParamChangesPositionsShape:
|
|
43
|
+
export const ParamChangesPositionsShape: (import("@endo/patterns").Matcher | {
|
|
44
|
+
noChange: import("@endo/patterns").Matcher;
|
|
45
|
+
})[];
|
|
44
46
|
export namespace ParamPathShape {
|
|
45
|
-
|
|
47
|
+
const key: import("@endo/patterns").Matcher;
|
|
46
48
|
}
|
|
47
49
|
export namespace ParamChangesIssueShape {
|
|
48
50
|
export namespace spec {
|
|
@@ -52,120 +54,120 @@ export namespace ParamChangesIssueShape {
|
|
|
52
54
|
export { InstanceHandleShape as contract };
|
|
53
55
|
}
|
|
54
56
|
export namespace ParamChangesQuestionSpecShape {
|
|
55
|
-
export
|
|
57
|
+
export const method: string;
|
|
56
58
|
export { ParamChangesIssueShape as issue };
|
|
57
59
|
export { ParamChangesPositionsShape as positions };
|
|
58
|
-
|
|
60
|
+
const electionType_1: string;
|
|
59
61
|
export { electionType_1 as electionType };
|
|
60
|
-
|
|
62
|
+
const maxChoices_1: number;
|
|
61
63
|
export { maxChoices_1 as maxChoices };
|
|
62
|
-
|
|
64
|
+
const maxWinners_1: number;
|
|
63
65
|
export { maxWinners_1 as maxWinners };
|
|
64
66
|
export { ClosingRuleShape as closingRule };
|
|
65
|
-
export
|
|
67
|
+
export const quorumRule: string;
|
|
66
68
|
export { NoParamChangesPositionShape as tieOutcome };
|
|
67
69
|
}
|
|
68
70
|
export namespace ParamChangesQuestionDetailsShape {
|
|
69
|
-
|
|
71
|
+
const questionHandle_1: import("@endo/patterns").Matcher;
|
|
70
72
|
export { questionHandle_1 as questionHandle };
|
|
71
73
|
export { InstanceHandleShape as counterInstance };
|
|
72
74
|
}
|
|
73
75
|
export namespace YesApiInvocationPositionShape {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
const apiMethodName: import("@endo/patterns").Matcher;
|
|
77
|
+
const methodArgs: import("@endo/patterns").Matcher;
|
|
76
78
|
}
|
|
77
79
|
export namespace NoApiInvocationPositionShape {
|
|
78
|
-
|
|
80
|
+
const dontInvoke: import("@endo/patterns").Matcher;
|
|
79
81
|
}
|
|
80
82
|
export const ApiInvocationPositionsShape: ({
|
|
81
|
-
apiMethodName:
|
|
82
|
-
methodArgs:
|
|
83
|
+
apiMethodName: import("@endo/patterns").Matcher;
|
|
84
|
+
methodArgs: import("@endo/patterns").Matcher;
|
|
83
85
|
} | {
|
|
84
|
-
dontInvoke:
|
|
86
|
+
dontInvoke: import("@endo/patterns").Matcher;
|
|
85
87
|
})[];
|
|
86
88
|
export namespace ApiInvocationQuestionSpecShape {
|
|
87
|
-
|
|
89
|
+
const method_1: string;
|
|
88
90
|
export { method_1 as method };
|
|
89
91
|
export { ApiInvocationSpecShape as issue };
|
|
90
92
|
export { ApiInvocationPositionsShape as positions };
|
|
91
|
-
|
|
93
|
+
const electionType_2: string;
|
|
92
94
|
export { electionType_2 as electionType };
|
|
93
|
-
|
|
95
|
+
const maxChoices_2: number;
|
|
94
96
|
export { maxChoices_2 as maxChoices };
|
|
95
|
-
|
|
97
|
+
const maxWinners_2: number;
|
|
96
98
|
export { maxWinners_2 as maxWinners };
|
|
97
99
|
export { ClosingRuleShape as closingRule };
|
|
98
100
|
export { QuorumRuleShape as quorumRule };
|
|
99
101
|
export { NoApiInvocationPositionShape as tieOutcome };
|
|
100
102
|
}
|
|
101
103
|
export namespace ApiInvocationQuestionDetailsShape {
|
|
102
|
-
|
|
104
|
+
const questionHandle_2: import("@endo/patterns").Matcher;
|
|
103
105
|
export { questionHandle_2 as questionHandle };
|
|
104
106
|
export { InstanceHandleShape as counterInstance };
|
|
105
107
|
}
|
|
106
108
|
export namespace YesSimplePositionShape {
|
|
107
|
-
|
|
109
|
+
const text: import("@endo/patterns").Matcher;
|
|
108
110
|
}
|
|
109
111
|
export namespace NoSimplePositionShape {
|
|
110
|
-
|
|
112
|
+
const text_1: import("@endo/patterns").Matcher;
|
|
111
113
|
export { text_1 as text };
|
|
112
114
|
}
|
|
113
115
|
export const SimplePositionsShape: {
|
|
114
|
-
text:
|
|
116
|
+
text: import("@endo/patterns").Matcher;
|
|
115
117
|
}[];
|
|
116
118
|
export namespace SimpleIssueShape {
|
|
117
|
-
|
|
119
|
+
const text_2: import("@endo/patterns").Matcher;
|
|
118
120
|
export { text_2 as text };
|
|
119
121
|
}
|
|
120
122
|
export namespace SimpleQuestionSpecShape {
|
|
121
123
|
export { ChoiceMethodShape as method };
|
|
122
124
|
export { SimpleIssueShape as issue };
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
+
export const positions: import("@endo/patterns").Matcher;
|
|
126
|
+
const electionType_3: import("@endo/patterns").Matcher;
|
|
125
127
|
export { electionType_3 as electionType };
|
|
126
|
-
|
|
128
|
+
const maxChoices_3: import("@endo/patterns").Matcher;
|
|
127
129
|
export { maxChoices_3 as maxChoices };
|
|
128
|
-
|
|
130
|
+
const maxWinners_3: import("@endo/patterns").Matcher;
|
|
129
131
|
export { maxWinners_3 as maxWinners };
|
|
130
132
|
export { ClosingRuleShape as closingRule };
|
|
131
133
|
export { QuorumRuleShape as quorumRule };
|
|
132
134
|
export { NoSimplePositionShape as tieOutcome };
|
|
133
135
|
}
|
|
134
136
|
export namespace SimpleQuestionDetailsShape {
|
|
135
|
-
|
|
137
|
+
const questionHandle_3: import("@endo/patterns").Matcher;
|
|
136
138
|
export { questionHandle_3 as questionHandle };
|
|
137
139
|
export { InstanceHandleShape as counterInstance };
|
|
138
140
|
}
|
|
139
|
-
export const QuestionSpecShape:
|
|
140
|
-
export const PositionShape:
|
|
141
|
-
export const QuestionHandleShape:
|
|
142
|
-
export const InvitationShape:
|
|
143
|
-
export const QuestionDetailsShape:
|
|
144
|
-
export const ElectoratePublicI:
|
|
145
|
-
export const ElectorateCreatorI:
|
|
141
|
+
export const QuestionSpecShape: import("@endo/patterns").Matcher;
|
|
142
|
+
export const PositionShape: import("@endo/patterns").Matcher;
|
|
143
|
+
export const QuestionHandleShape: import("@endo/patterns").Matcher;
|
|
144
|
+
export const InvitationShape: import("@endo/patterns").Matcher;
|
|
145
|
+
export const QuestionDetailsShape: import("@endo/patterns").Matcher;
|
|
146
|
+
export const ElectoratePublicI: import("@endo/patterns").InterfaceGuard;
|
|
147
|
+
export const ElectorateCreatorI: import("@endo/patterns").InterfaceGuard;
|
|
146
148
|
export namespace QuestionStatsShape {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
export const QuestionI:
|
|
152
|
-
export const BinaryVoteCounterPublicI:
|
|
153
|
-
export const VoterHandle:
|
|
154
|
-
export const BinaryVoteCounterAdminI:
|
|
155
|
-
export const BinaryVoteCounterCloseI:
|
|
156
|
-
export const VoteCounterPublicI:
|
|
157
|
-
export const VoteCounterAdminI:
|
|
158
|
-
export const VoteCounterCloseI:
|
|
149
|
+
const spoiled: import("@endo/patterns").Matcher;
|
|
150
|
+
const votes: import("@endo/patterns").Matcher;
|
|
151
|
+
const results: import("@endo/patterns").Matcher;
|
|
152
|
+
}
|
|
153
|
+
export const QuestionI: import("@endo/patterns").InterfaceGuard;
|
|
154
|
+
export const BinaryVoteCounterPublicI: import("@endo/patterns").InterfaceGuard;
|
|
155
|
+
export const VoterHandle: import("@endo/patterns").Matcher;
|
|
156
|
+
export const BinaryVoteCounterAdminI: import("@endo/patterns").InterfaceGuard;
|
|
157
|
+
export const BinaryVoteCounterCloseI: import("@endo/patterns").InterfaceGuard;
|
|
158
|
+
export const VoteCounterPublicI: import("@endo/patterns").InterfaceGuard;
|
|
159
|
+
export const VoteCounterAdminI: import("@endo/patterns").InterfaceGuard;
|
|
160
|
+
export const VoteCounterCloseI: import("@endo/patterns").InterfaceGuard;
|
|
159
161
|
export namespace GovernorFacetShape {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
import { TimestampShape } from
|
|
168
|
-
import { InstanceHandleShape } from
|
|
162
|
+
const getParamMgrRetriever: any;
|
|
163
|
+
const getInvitation: any;
|
|
164
|
+
const getLimitedCreatorFacet: any;
|
|
165
|
+
const getGovernedApis: any;
|
|
166
|
+
const getGovernedApiNames: any;
|
|
167
|
+
const setOfferFilter: any;
|
|
168
|
+
}
|
|
169
|
+
import { TimestampShape } from "@agoric/time/src/typeGuards";
|
|
170
|
+
import { InstanceHandleShape } from "@agoric/zoe/src/typeGuards.js";
|
|
169
171
|
declare namespace ApiInvocationSpecShape { }
|
|
170
172
|
export {};
|
|
171
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,
|
|
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"}
|