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

Unify flows and orca #15

Open
wants to merge 2 commits into
base: dev/orca-v1
Choose a base branch
from

Conversation

anilhelvaci
Copy link

@anilhelvaci anilhelvaci commented Aug 14, 2024

Context

The idea of using predefined *.flows.js files from orchestration package in third party contracts is a work in progress.

Problem Solved

The current way orca contract demonstrates orchestration package is different to the flows approach described above. Here we take the first of step for unifying those approaches under one repository to have better teaching material for orchestration API.

What are some of the improvements flows brings and orca can use?

  • basic-flows.contract.js is bundled and deployed from the host machine using agoric run
  • basic-flows.contract.test.js uses commonSetup from the orchestration test environment to have simpler and more generic testing setup

Testing

I have confirmed that test pass and contracts can be deployed to multichain setup for both orca and flows.

What can be better?

Currently the folder structure is a little bit too nested. We should flatten that

cc @Jovonni

Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

Did you mean for this to be a DRAFT?

contract/src/flows/test/basic-flows.contract.test.js Outdated Show resolved Hide resolved
t.log({
VatData
})
const setupContext = await commonSetup(t);
Copy link
Member

Choose a reason for hiding this comment

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

👏 glad to see this being used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants