onflow / flow-cli

The Flow CLI is a command-line interface that provides useful utilities for building Flow applications
https://onflow.org
Apache License 2.0
206 stars 62 forks source link

Import address feature for dependency manager #1618

Open bluesign opened 1 month ago

bluesign commented 1 month ago

Issue To Be Solved

(Optional): Suggest A Solution

It would be nice to have an option to import an address with all contracts and dependencies from network.

chasefleming commented 1 month ago

I like this idea! To clarify: the idea is to add every contract and dependencies found from an address, correct? For example, if no contract name was provided flow dependencies add testnet://7e60df042a9c0868. Then everything from 7e60df042a9c0868 would be installed and setup. This would setup contract a project quickly for an address.

bluesign commented 1 month ago

On Thu May 23, 2024 at 5:25 PM UTC, Chase Fleming wrote:

I like this idea! To clarify: the idea is to add every contract and dependencies found from an address, correct? For example, if no contract name was provided flow dependencies add testnet://7e60df042a9c0868. Then everything from 7e60df042a9c0868 would be installed and setup. This would setup contract a project quickly for an address.

Yes, that's correct. The idea is to make it easy to add all the contracts and their dependencies from a given address. This will make a lot easier for developers to clone a project / or setup their flow.json file from active configuration on mainnet/testnet quickly.