Skip to content

Commit

Permalink
chore(types): fixup governance
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Feb 10, 2023
1 parent 85f966c commit 06298b2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/governance/src/contractGovernor.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ const validateQuestionFromCounter = async (zoe, electorate, voteCounter) => {
* governedContractInstallation: Installation<CF>,
* governed: {
* issuerKeywordRecord: IssuerKeywordRecord,
* terms: {governedParams: {[CONTRACT_ELECTORATE]: Amount<'set'>}},
* terms: {governedParams: {[CONTRACT_ELECTORATE]: InvitationParam}},
* }
* }>}
*/

/**
* @typedef {() => {creatorFacet: GovernorFacet<any>, publicFacet: GovernedPublicFacetMethods}} GovernableStartFn
* @typedef {(zcf?: any, privateArgs?: any, baggage?: any) => import('type-fest').Promisable<{creatorFacet: GovernorFacet<any>, publicFacet: GovernedPublicFacetMethods}>} GovernableStartFn
*/

/**
Expand All @@ -136,7 +136,7 @@ const validateQuestionFromCounter = async (zoe, electorate, voteCounter) => {
* governedContractInstallation: Installation<SF>,
* governed: {
* issuerKeywordRecord: IssuerKeywordRecord,
* terms: {governedParams: {[CONTRACT_ELECTORATE]: Amount<'set'>}},
* terms: {governedParams: {[CONTRACT_ELECTORATE]: import('./contractGovernance/typedParamManager.js').InvitationParam}},
* }
* }>} zcf
* @param {{
Expand Down
4 changes: 2 additions & 2 deletions packages/governance/src/types-ambient.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,11 @@
* @property {VoteOnParamChanges} voteOnParamChanges
* @property {VoteOnApiInvocation} voteOnApiInvocation
* @property {VoteOnOfferFilter} voteOnOfferFilter
* @property {() => Promise<LimitedCreatorFacet<CF>>} getCreatorFacet - creator
* @property {() => ERef<LimitedCreatorFacet<CF>>} getCreatorFacet - creator
* facet of the governed contract, without the tightly held ability to change
* param values.
* @property {(poserInvitation: Invitation) => Promise<void>} replaceElectorate
* @property {() => Promise<AdminFacet>} getAdminFacet
* @property {() => ERef<AdminFacet>} getAdminFacet
* @property {() => GovernedPublicFacet<PF>} getPublicFacet - public facet of the governed contract
* @property {() => Instance} getInstance - instance of the governed
* contract
Expand Down
1 change: 1 addition & 0 deletions packages/inter-protocol/src/proposals/econ-behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ export const startRewardDistributor = async ({
E(instanceKit.creatorFacet).makeDepositFacetDestination(
rewardDistributorDepositFacet,
),
// @ts-expect-error FIXME looks like legit uncovered bug
Reserve: E(instanceKit.creatorFacet).makeOfferDestination(
'Collateral',
E.get(reserveKit).publicFacet,
Expand Down
2 changes: 1 addition & 1 deletion packages/inter-protocol/test/psm/test-governedPsm.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ test('replace electorate of Economic Committee', async t => {
harden({}),
electorateTerms,
{
// mocks
// @ts-expect-error mock
marshaller: {},
storageNode: makeFakeStorageKit('governedPsmTest').rootNode,
},
Expand Down

0 comments on commit 06298b2

Please sign in to comment.