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

Adds NFTStorefrontV2 and USDCFlow to bootstrapping #6611

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

joshuahannan
Copy link
Member

Closes onflow/flow-emulator#535

Adds the NFTStorefrontV2 and USDCFlow smart contracts to the flow-go bootstrapping so they are automatically deployed to the emulator. Will make it easier for developers to test with these contracts without having to deploy them themselves.

@turbolent
Copy link
Member

Good idea to add these contracts! If the goal is to add these for mostly developer convenience, then the Emulator might be a better place to add this.

Not sure if customizing/extending the bootstrapping is already possible so it can be done in the Emulator alone – if not maybe that's something that should be done here in flow-go, and then what the PR currently does (adding the contracts) should be moved to the Emulator.

@joshuahannan joshuahannan force-pushed the add-usdc-to-bootstrap branch from 7009009 to 16708af Compare November 1, 2024 16:54
@joshuahannan joshuahannan self-assigned this Nov 5, 2024
@bluesign
Copy link
Contributor

bluesign commented Nov 7, 2024

@turbolent yeah this never realized unfortunately #2812

maybe we can reopen the issue and then move things to emulator.

@joshuahannan
Copy link
Member Author

Just taking a look at this again. What do we think is the best thing to do here? It is certainly easier for me to just do it like in this PR, but I totally understand if we'd rather use the emulator. Just will take some extra work for us to get that other emulator feature working and build in the deployment there

@bluesign
Copy link
Contributor

bluesign commented Jan 3, 2025

I am a bit torn here; on one hand I like the idea of Foundation contracts to be bootstrapped, on the other hand, it is hard to retire stuff from bootstrap I guess. ( not sure if this is 100% true, just my guess )

I would vote for customized bootstrap, with this contract behind an option on bootstrap. ( in the mean time we can maybe put others also behind a flag )

@janezpodhostnik
Copy link
Contributor

janezpodhostnik commented Jan 3, 2025

See my comment on #2812 (comment).

For not I'm not opposed to adding these two new contracts to flow-go if they help developers (and us).

@joshuahannan joshuahannan force-pushed the add-usdc-to-bootstrap branch from 16708af to 2ba5ae5 Compare January 6, 2025 17:44
@joshuahannan joshuahannan requested a review from Kay-Zee as a code owner January 6, 2025 17:44
@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 95.34884% with 2 lines in your changes missing coverage. Please review.

Project coverage is 41.20%. Comparing base (72adf9e) to head (2ba5ae5).

Files with missing lines Patch % Lines
utils/unittest/execution_state.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6611      +/-   ##
==========================================
+ Coverage   41.18%   41.20%   +0.01%     
==========================================
  Files        2109     2109              
  Lines      185660   185701      +41     
==========================================
+ Hits        76460    76514      +54     
+ Misses     102788   102773      -15     
- Partials     6412     6414       +2     
Flag Coverage Δ
unittests 41.20% <95.34%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In Review
Development

Successfully merging this pull request may close these issues.

Deploy USDCFlow.cdc to the emulator by default
5 participants