Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(orchestrator): return unwrapped vows #9537

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

0xpatrickdev
Copy link
Member

refs: #9449

Description

Returns unwrapped vows in Orchestrator (makeLocalAccount, getChain).

@0xpatrickdev 0xpatrickdev force-pushed the pc/orchestrator-unwrapped-vows branch from ae9ecf5 to b3802fc Compare June 19, 2024 20:51
Copy link

cloudflare-workers-and-pages bot commented Jun 19, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 94d0c3c
Status: ✅  Deploy successful!
Preview URL: https://76bd3baa.agoric-sdk.pages.dev
Branch Preview URL: https://pc-orchestrator-unwrapped-vo.agoric-sdk.pages.dev

View logs

@0xpatrickdev 0xpatrickdev requested a review from turadg June 19, 2024 21:03
@0xpatrickdev 0xpatrickdev marked this pull request as ready for review June 19, 2024 21:03
@@ -50,44 +51,89 @@ export const OrchestratorI = M.interface('Orchestrator', {
* orchestrationService: Remote<OrchestrationService>;
* storageNode: Remote<StorageNode>;
* timerService: Remote<TimerService>;
* vowTools: VowTools;
* zcf: ZCF;
* }} powers
*/
export const prepareOrchestrator = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is now a kit. prepareOrchestratorKit.

but no consumers need these other facets so the module should still export a prepareOrchestrator that returns a makeOrchestrator that returns just its orchestrator facet

Comment on lines 95 to 98
const orc = makeOrchestrator().orchestrator;

return async (...args) => fn(orc, ctx, ...args);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't have access to the whole kit (per above).

@turadg turadg force-pushed the pc/orchestrator-unwrapped-vows branch from b3802fc to 5b3d56e Compare June 19, 2024 22:44
Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested changes made, sending to merge queue

@turadg turadg added the automerge:rebase Automatically rebase updates, then merge label Jun 19, 2024
- returning unwrapped vows to ensure tests are passing and functionality is preserved
@0xpatrickdev 0xpatrickdev force-pushed the pc/orchestrator-unwrapped-vows branch from 5b3d56e to 94d0c3c Compare June 20, 2024 03:10
@mergify mergify bot merged commit 56687b4 into master Jun 20, 2024
77 checks passed
@mergify mergify bot deleted the pc/orchestrator-unwrapped-vows branch June 20, 2024 04:00
@0xpatrickdev 0xpatrickdev added the asyncFlow related to membrane-based replay and upgrade of async functions label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asyncFlow related to membrane-based replay and upgrade of async functions automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants