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

Create accounts & deployments in flow init #1854

Open
jribbink opened this issue Dec 6, 2024 · 0 comments
Open

Create accounts & deployments in flow init #1854

jribbink opened this issue Dec 6, 2024 · 0 comments
Labels
Feature A new user feature or a new package API

Comments

@jribbink
Copy link
Contributor

jribbink commented Dec 6, 2024

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.

@jribbink jribbink added the Feature A new user feature or a new package API label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new user feature or a new package API
Projects
Status: No status
Development

No branches or pull requests

1 participant