Create accounts & deployments in `flow init`
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 209
- Forks
- 87
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 3
Description
Issue To Be Solved
flow init is an effective way to instantiate a Cadence project so that developers can begin writing Cadence with a single command. However, in order to deploy their contracts, the developer must still create accounts and configure deployments in their flow.json, which can be burdensome.
(Optional): Suggest A Solution
To reduce friciton, flow init can create accounts & configure a default deployment for the generated starter contract. flow project deploy --network=testnet (or mainnet) would then work out-of-box. This gives developers a 0-configuration path to create and deploy a contract with 2 commands.
The account creation could be parallelized for both testnet/mainnet & the total slowdown shouldn't be more than ~8s. Users who wish to opt out should have the option to do so using a flag, e.g. --skip-deployments.
(Optional): Context
Reduce developer friction deploying contracts.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the flow init command entry point and inspect the existing account-creation and deployment configuration commands. Verify the generated project can run flow project deploy --network=testnet or mainnet without manual setup, while an opt-out flag such as --skip-deployments prevents that setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- blockchain, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100