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

A tool outputs the JSON file that enables autogen #1

Open
mishmosh opened this issue Apr 1, 2020 · 1 comment
Open

A tool outputs the JSON file that enables autogen #1

mishmosh opened this issue Apr 1, 2020 · 1 comment

Comments

@mishmosh
Copy link

mishmosh commented Apr 1, 2020

  • CLI tool that you run against the lotus directory
  • Runs a go module using go reflection
  • Outputs a JSON file

Not in scope:

  • Ability to switch branches, etc.
@jimpick
Copy link
Member

jimpick commented Apr 6, 2020

Oops, I forgot this one was here. Wrote it up a second time as #2. Transferring it over here:

The command line tool should do the following:

  1. Take in the directory with the Lotus source code as an argument
  2. Generate a temp directory
  3. Generate a go.mod file with a replace directive pointing to Lotus
  4. Build/execute a go program in the temp directory that links to the Lotus libraries and uses go reflect to catalog the JSON-RPC methods, outputting a schema JSON file.

This tool should live outside the js-lotus-client-schema repo, but the generated outputs will be checked in here.

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

No branches or pull requests

2 participants