Skip to content

Commit

Permalink
feat(facade): propagate vowTools
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Jun 20, 2024
1 parent 62c73f5 commit 9550773
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/orchestration/src/exos/orchestrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
* @import {Zone} from '@agoric/base-zone';
* @import {ChainHub} from './chain-hub.js';
* @import {AsyncFlowTools} from '@agoric/async-flow';
* @import {Vow} from '@agoric/vow';
* @import {Vow, VowTools} from '@agoric/vow';
* @import {TimerService} from '@agoric/time';
* @import {LocalChain} from '@agoric/vats/src/localchain.js';
* @import {RecorderKit, MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js'.
Expand Down Expand Up @@ -50,12 +50,19 @@ export const OrchestratorI = M.interface('Orchestrator', {
* orchestrationService: Remote<OrchestrationService>;
* storageNode: Remote<StorageNode>;
* timerService: Remote<TimerService>;
* vowTools: VowTools;
* zcf: ZCF;
* }} powers
*/
export const prepareOrchestrator = (
zone,
{ chainHub, localchain, makeLocalChainFacade, makeRemoteChainFacade },
{
chainHub,
localchain,
makeLocalChainFacade,
makeRemoteChainFacade,
vowTools: _vowTools,
},
) =>
zone.exoClass(
'Orchestrator',
Expand Down
3 changes: 3 additions & 0 deletions packages/orchestration/src/facade.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { prepareOrchestrator } from './exos/orchestrator.js';
* makeCosmosOrchestrationAccount: any;
* makeLocalChainFacade: MakeLocalChainFacade;
* makeRemoteChainFacade: MakeRemoteChainFacade;
* vowTools: VowTools;
* asyncFlowTools: AsyncFlowTools;
* }} powers
*/
Expand All @@ -49,6 +50,7 @@ export const makeOrchestrationFacade = ({
makeRecorderKit,
makeLocalChainFacade,
makeRemoteChainFacade,
vowTools,
asyncFlowTools,
}) => {
(zone &&
Expand All @@ -75,6 +77,7 @@ export const makeOrchestrationFacade = ({
orchestrationService,
storageNode,
timerService,
vowTools,
zcf,
});

Expand Down
1 change: 1 addition & 0 deletions packages/orchestration/src/utils/start-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const provideOrchestration = (
makeLocalChainFacade,
makeRemoteChainFacade,
asyncFlowTools,
vowTools,
...remotePowers,
});
return { ...facade, chainHub, zone };
Expand Down

0 comments on commit 9550773

Please sign in to comment.