You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I need to copy+paste all contracts into my playground project which can make building even a simple contract on top of common standard contracts tedious and bloat a single file contract dapp into a 4+ contract suite. This can lead to issue when trying to build on FlowToken, which seems to be a protected contract in the playground namespace.
Suggested solution
It would be very helpful to have access to at least standard contracts via aliases, especially if those contracts are already running in the supporting emulator. Contracts that would be helpful to include are:
FungibleToken
FlowToken
NonFungibleToken
ViewResolver
MetadataViews
FungibleTokenMetadataViews
ExampleNFT
All of these contracts, with the exception of FungibleTokenMetadataViews are deployed when running flow emulator --contracts.
This would allow for rapid prototyping and promote composability and best practices while doing so. If implemented, it would also be helpful to inform users of the ability to import these contracts, how to do so (alias or import syntax - #751), and link to more info on each. Doing so would not only educate users about the feature, but would also serve as another pointer to commonly used and requested contracts.
Description
Currently, I need to copy+paste all contracts into my playground project which can make building even a simple contract on top of common standard contracts tedious and bloat a single file contract dapp into a 4+ contract suite. This can lead to issue when trying to build on FlowToken, which seems to be a protected contract in the playground namespace.
Suggested solution
It would be very helpful to have access to at least standard contracts via aliases, especially if those contracts are already running in the supporting emulator. Contracts that would be helpful to include are:
All of these contracts, with the exception of FungibleTokenMetadataViews are deployed when running
flow emulator --contracts
.This would allow for rapid prototyping and promote composability and best practices while doing so. If implemented, it would also be helpful to inform users of the ability to import these contracts, how to do so (alias or import syntax - #751), and link to more info on each. Doing so would not only educate users about the feature, but would also serve as another pointer to commonly used and requested contracts.
Alternatives
flow.json
file on export of a playground project #225)The text was updated successfully, but these errors were encountered: