Start local env even if ops-api.json config is missing
- Dominant language
- TypeScript
- Stars
- 138
- Forks
- 44
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 22
Description
Generate ops-api.json config if the file is missing in cli `up` command: https://github.com/GalaChain/sdk/blob/main/chain-cli/src/commands/network-up/index.ts#L106
Probably the best way is to create and import a relevant function from chaincode root directory (`-d`), or call `/lib/cli.js get-contract-names`, as in https://github.com/GalaChain/sdk/blob/main/chain-cli/src/galachain-utils.ts#L147
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in chain-cli/src/commands/network-up/index.ts around line 106 and inspect how the cli `up` command handles ops-api.json. Compare the suggested chaincode-root function approach with calling `/lib/cli.js get-contract-names` from chain-cli/src/galachain-utils.ts around line 147. Done means a missing ops-api.json is generated so the local environment can start.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100