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

synthetic-chain package and CLI #46

Merged
merged 5 commits into from
Jan 6, 2024
Merged

synthetic-chain package and CLI #46

merged 5 commits into from
Jan 6, 2024

Conversation

turadg
Copy link
Member

@turadg turadg commented Dec 13, 2023

Description

This simplifies proposal authoring and maintenance. It's a necessary refactor to support Agoric/agoric-sdk#8605

Once this PR is landed, I'll follow up to,

  1. make @agoric/synthetic-chain able to pull from A3P and add proposals on top of it
  2. publish the package to NPM
  3. use that NPM package to rework 8605 a3p integration agoric-sdk#8635
  4. close tool to test proposal on top of agoric-3 chain agoric-sdk#8605

This was referenced Dec 15, 2023
@turadg turadg force-pushed the ta/import-synthetic-chain branch from 7c8ce52 to 69ba060 Compare January 5, 2024 23:11
@turadg turadg changed the title import synthetic-chain synthetic-chain package and CLI Jan 5, 2024
@turadg turadg force-pushed the ta/import-synthetic-chain branch from 69ba060 to 6878544 Compare January 5, 2024 23:16
@turadg turadg force-pushed the ta/import-synthetic-chain branch from 6878544 to ad4c45a Compare January 5, 2024 23:28
@turadg turadg force-pushed the ta/import-synthetic-chain branch from ad4c45a to 97fe8e8 Compare January 5, 2024 23:33
@turadg turadg marked this pull request as ready for review January 5, 2024 23:34
@turadg turadg requested review from mhofman and dckc January 5, 2024 23:34
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.

works for me


- name: build test images
run: |
docker info
./buildTestImages.ts
node_modules/.bin/synthetic-chain build
Copy link
Member

Choose a reason for hiding this comment

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

Is it more idiomatic to do this?

Suggested change
node_modules/.bin/synthetic-chain build
yarn synthetic-chain build

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes but that's not working. I'll take another crack at it after the other items

Comment on lines +10 to +11
"dependencies": {
"@agoric/synthetic-chain": "workspace:*"
Copy link
Member

Choose a reason for hiding this comment

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

I'm not familiar with workspace:*.
I suppose I should look it up...

Comment on lines +15 to +16
"proposals/**/*.js",
"proposals/**/*.ts",
Copy link
Member

Choose a reason for hiding this comment

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

These don't seem to be included in files in package.json. Is that by design?

Copy link
Member Author

Choose a reason for hiding this comment

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

These globs are meant to get all files, independent of what's being published.

languageName: node
linkType: hard

"@esbuild/android-arm64@npm:0.18.20":
Copy link
Member

Choose a reason for hiding this comment

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

I see esbuild pop up in our builds from time to time. I wonder what depends on it.

Here's hoping for a moment to check.

Copy link
Member Author

Choose a reason for hiding this comment

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

'tsx' does

@@ -8,6 +8,7 @@
"type": "module",
"license": "Apache-2.0",
"dependencies": {
"@agoric/synthetic-chain": "file:./agoric-synthetic-chain-0.0.1-alpha.tgz",
Copy link
Member

Choose a reason for hiding this comment

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

There's a copy of this tar file in each proposals directory? I guess that makes sense...

Copy link
Member Author

Choose a reason for hiding this comment

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

Once we're publishing to NPM then it can just pull from there. This is a stop gap

@turadg turadg merged commit 003309d into main Jan 6, 2024
1 check passed
@turadg turadg deleted the ta/import-synthetic-chain branch January 6, 2024 03:39
@turadg turadg mentioned this pull request Jan 9, 2024
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.

tool to test proposal on top of agoric-3 chain
2 participants