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

Merged
merged 4 commits into from
Jan 27, 2025

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.11%. Comparing base (a80d14d) to head (e7c3957).

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.09%   41.11%   +0.02%     
==========================================
  Files        2119     2119              
  Lines      185897   185938      +41     
==========================================
+ Hits        76390    76453      +63     
+ Misses     103095   103075      -20     
+ Partials     6412     6410       -2     
Flag Coverage Δ
unittests 41.11% <95.34%> (+0.02%) ⬆️

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.

@joshuahannan joshuahannan force-pushed the add-usdc-to-bootstrap branch from 2ba5ae5 to 60f248d Compare January 22, 2025 20:19
@joshuahannan joshuahannan requested a review from a team as a code owner January 22, 2025 20:19
@joshuahannan joshuahannan changed the title Adds NFTStorefrontV2 and USDCFlow to bootstrapping Adds NFTStorefrontV2, USDCFlow, and FlowExecutionParameters to bootstrapping Jan 22, 2025
@joshuahannan joshuahannan changed the title Adds NFTStorefrontV2, USDCFlow, and FlowExecutionParameters to bootstrapping Adds NFTStorefrontV2 and USDCFlow to bootstrapping Jan 22, 2025
@joshuahannan
Copy link
Member Author

joshuahannan commented Jan 23, 2025

Can I get an approval here? It doesn't seem like we're going to get the emulator bootstrapping work done any time soon, so I'd like to just get this in if possible so we have it

@turbolent turbolent requested review from a team and removed request for a team January 23, 2025 19:03
@joshuahannan joshuahannan force-pushed the add-usdc-to-bootstrap branch from e7f4ce1 to 7889107 Compare January 24, 2025 15:07
@joshuahannan joshuahannan requested a review from a team January 24, 2025 15:29
@joshuahannan joshuahannan force-pushed the add-usdc-to-bootstrap branch from 7889107 to c45c9b8 Compare January 24, 2025 19:07
@joshuahannan joshuahannan force-pushed the add-usdc-to-bootstrap branch from c45c9b8 to e7c3957 Compare January 27, 2025 16:43
@joshuahannan
Copy link
Member Author

@onflow/cadence Can I get an approval here? Thank you!

@turbolent
Copy link
Member

This is unrelated to Cadence, this should be reviewed by the execution/protocol team

@turbolent turbolent requested a review from a team January 27, 2025 17:11
@joshuahannan joshuahannan added this pull request to the merge queue Jan 27, 2025
Merged via the queue into master with commit 64c8b79 Jan 27, 2025
56 checks passed
@joshuahannan joshuahannan deleted the add-usdc-to-bootstrap branch January 27, 2025 17:57
turbolent added a commit to onflow/flow-emulator that referenced this pull request Jan 30, 2025
since onflow/flow-go#6611, flow-go deploys the contract during bootstrapping
turbolent added a commit to onflow/cadence-tools that referenced this pull request Jan 31, 2025
deployed by default during bootstrapping since onflow/flow-go#6611
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Deploy USDCFlow.cdc to the emulator by default
6 participants