From be06d02d4454a499e496e54122276e3f25957de1 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Mon, 26 Aug 2024 23:15:35 -0500 Subject: [PATCH] chore: introduce economic committee charter to new auctioneer --- .../src/proposals/add-auction.js | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/packages/inter-protocol/src/proposals/add-auction.js b/packages/inter-protocol/src/proposals/add-auction.js index 1dfe91432a56..ca5bb004759b 100644 --- a/packages/inter-protocol/src/proposals/add-auction.js +++ b/packages/inter-protocol/src/proposals/add-auction.js @@ -26,6 +26,7 @@ export const addAuction = async ( chainStorage, chainTimerService, economicCommitteeCreatorFacet: electorateCreatorFacet, + econCharterKit, priceAuthority, zoe, }, @@ -153,19 +154,26 @@ export const addAuction = async ( ), ); + const kit = harden({ + label: 'auctioneer', + creatorFacet: governedCreatorFacet, + adminFacet: governorStartResult.adminFacet, + publicFacet: governedPublicFacet, + instance: governedInstance, + + governor: governorStartResult.instance, + governorCreatorFacet: governorStartResult.creatorFacet, + governorAdminFacet: governorStartResult.adminFacet, + }); produceAuctioneerKit.reset(); - produceAuctioneerKit.resolve( - harden({ - label: 'auctioneer', - creatorFacet: governedCreatorFacet, - adminFacet: governorStartResult.adminFacet, - publicFacet: governedPublicFacet, - instance: governedInstance, - - governor: governorStartResult.instance, - governorCreatorFacet: governorStartResult.creatorFacet, - governorAdminFacet: governorStartResult.adminFacet, - }), + produceAuctioneerKit.resolve(kit); + + // introduce economic committee charter to new auctioneer + // cf addGovernorsToEconCharter() in committee-proposal.js + await E(E.get(econCharterKit).creatorFacet).addInstance( + kit.instance, + kit.governorCreatorFacet, + kit.label, ); auctionInstance.reset(); @@ -187,6 +195,7 @@ export const ADD_AUCTION_MANIFEST = harden({ board: true, chainStorage: true, chainTimerService: true, + econCharterKit: true, economicCommitteeCreatorFacet: true, priceAuthority: true, zoe: true,