-
Notifications
You must be signed in to change notification settings - Fork 245
docs: orchestration contract package skeleton #11323
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
base: master
Are you sure you want to change the base?
Conversation
…o orchestration contract
- fix liquid staking / forwarding logic - StrideAccount is not ICA - make a stride account for strideAddr - punt resolve; it's just promise resolution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems useful but I have reservations about adding it to agoric-sdk. Since it's meant to be a template, why not have it in a new repo? Easy to clone and begin working.
I'll give it a quick try... |
"@agoric/fast-usdc": "^0.1.0", | ||
"@agoric/internal": "^0.3.2", | ||
"@agoric/swingset-liveslots": "^0.10.2", | ||
"@agoric/vow": "^0.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@turadg when I use a new repository, I get a bunch of...
? Please choose a version of "@agoric/vow" from this list: 0.2.0-upgrade-20-dev-ef71
cfd.0
I guess I could use dev
packages. But then it's another independent set of dependencies to track. hm.
"test:c8": "c8 --all $C8_OPTIONS ava", | ||
"test:xs": "exit 0", | ||
"lint-fix": "yarn lint:eslint --fix", | ||
"lint": "run-s --continue-on-error lint:*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in a new repo, yarn lint
says /bin/sh: 1: run-s: not found
], | ||
"scripts": { | ||
"build": "exit 0", | ||
"test": "ava", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in a new repo, yarn test
says:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/connolly/projects/orch-skel/node_modules/@agoric/orchestration/test/network-fakes.ts' imported from /home/connolly/projects/orch-skel/test/supports.ts
@dtribble suggested merging the current work on the swap component into this branch. |
Deploying agoric-sdk with
|
Latest commit: |
674bbf0
|
Status: | ✅ Deploy successful! |
Preview URL: | https://025f308d.agoric-sdk.pages.dev |
Branch Preview URL: | https://dc-orch-template.agoric-sdk.pages.dev |
@dtribble also asked whether the skeleton here is transactional or portfolio; implicitly that suggests adding a portfolio example. Meanwhile, we do have other portfolio example materials:
|
ffa30d9
to
674bbf0
Compare
Description
Intended for use as the basis of SPIKE projects. Do not merge.
To develop an orchestration contract:
test/my-orch-sequence.mmd
@agoric/orchestration
objects and messagestest/my-orch-seq-sim.test.ts
src/my.contract.ts
) with flows (my.flows.ts
) and make a test for it (test/my-orch-contract.test.ts
)Template orchestration contract package, extracted from
fast-usdc-contract
and some earlier teaching materials. Written in typescript.Further refinements should add a
orch-skel-deploy
package and perhaps separate anorch-skel-contract
package from theorch-skel
API package.Security / Scaling / Upgrade Considerations
N/A
Testing Considerations
Includes a couple very basic tests.