-
Notifications
You must be signed in to change notification settings - Fork 621
Update deploy config #6667
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
Update deploy config #6667
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6667 +/- ##
==========================================
- Coverage 55.05% 55.04% -0.01%
==========================================
Files 889 889
Lines 55858 55862 +4
Branches 3823 3824 +1
==========================================
+ Hits 30751 30752 +1
- Misses 25012 25016 +4
+ Partials 95 94 -1
🚀 New features to boost your workflow:
|
size-limit report 📦
|
| // force `ipfs://` prefix | ||
| uri: publishedContractNoFee?.publishMetadataUri.startsWith("ipfs://") | ||
| ? publishedContractNoFee.publishMetadataUri | ||
| : `ipfs://${publishedContractNoFee?.publishMetadataUri}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks wrong? you're fetching the same thing twice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this second one is the hardcoded version metadata for specific cases.
first one is latest or given version metadata, as default.
Merge activity
|
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces support for contracts that have no fees by adding new properties and constants to handle fee exemption logic. It modifies several components to utilize the new metadata and fee configurations, ensuring that contracts can be deployed without fees based on specific versions and chains.
### Detailed summary
- Added `contractMetadataNoFee` prop to `DeployFormForUri` and `CustomContractForm`.
- Introduced `ZERO_FEE_VERSIONS` and `ZERO_FEE_CHAINS` constants in `fee-config.ts`.
- Updated `DeployFormForPublishInfo` to fetch metadata for contracts without fees.
- Adjusted fee logic in `CustomContractForm` to use `ZERO_FEE_CHAINS`.
- Modified deployment logic to conditionally use fee-exempt metadata.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
6624214 to
a230532
Compare
PR-Codex overview
This PR introduces support for contracts with zero fees by adding new metadata properties and configurations. It modifies the deployment forms to handle both fee and no-fee contracts, ensuring that the fee structure is applied correctly based on the contract version and chain.
Detailed summary
contractMetadataNoFeeprop toDeployFormForUri.ZERO_FEE_VERSIONSandZERO_FEE_CHAINSconstants infee-config.ts.DeployFormForUriPropsto includecontractMetadataNoFee.DeployFormForUrito fetch and usecontractMetadataNoFee.DeployFormForPublishInfoto find and handle no-fee versions.CustomContractFormto utilizemetadataNoFeewhen applicable.ZERO_FEE_CHAINSfor fee exemptions.