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

build ag-chain-cosmos tool #245

Closed
warner opened this issue Jun 2, 2019 · 1 comment
Closed

build ag-chain-cosmos tool #245

warner opened this issue Jun 2, 2019 · 1 comment
Labels
cosmic-swingset package: cosmic-swingset

Comments

@warner
Copy link
Member

warner commented Jun 2, 2019

Like ag-solo, we want an ag-chain-cosmos tool (maybe abbreviated agcc) to create, configure, and start a chain node. I'd like it to create a new base directory and copy the relevant files into it, including the various starting vats and bootstrap code for the demo. agcc is roughly a frontend for the cosmos-sdk's "baseapp" program, but putting the state in a specific base directory (rather than some $HOME/.dotsomething), and copying the swingset-specific files in addition to creating the normal tendermint ones.

The subcommands should probably be:

  • agcc init BASEDIR: mkdir, copy files in, do the equivalent of the cosmos-sdk baseapp's init function (create a genesis.json, a validator keypair, etc)
  • agcc add-genesis-account
  • agcc tendermint
  • agcc start

This tool might be pretty short: init needs to do extra work after delegating to the baseapp's version, then the other commands need to basically assert that CWD is a real basedir and then add --home . to whatever the command was. It also needs to do all the golang+node.js magic from the current lib/ag-chain-cosmos.

@warner
Copy link
Member Author

warner commented Dec 4, 2019

in the old repo. this was cosmic-swingset issue 8

@warner warner transferred this issue from another repository Dec 4, 2019
@warner warner added the cosmic-swingset package: cosmic-swingset label Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmic-swingset package: cosmic-swingset
Projects
None yet
Development

No branches or pull requests

2 participants