Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Feb 4, 2025

TOOL-3389


PR-Codex overview

This PR introduces a default fee configuration for contracts, modifies contract settings to accommodate this new fee structure, and enhances the user interface to reflect changes in platform fees.

Detailed summary

  • Added DEFAULT_FEE_RECIPIENT and DEFAULT_FEE_BPS in addresses.ts.
  • Updated ContractSettingsPage to include hasDefaultFeeConfig.
  • Modified filtering logic in contract-function.tsx to exclude certain functions.
  • Integrated getPlatformFeeInfo to determine fee configuration.
  • Changed CustomContractForm to use default fee values.
  • Enhanced PlatformFeeFieldset to display fee information based on marketplace status.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@kumaryash90 kumaryash90 requested review from a team as code owners February 4, 2025 21:30
@vercel
Copy link

vercel bot commented Feb 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 11, 2025 10:02pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Feb 11, 2025 10:02pm
login ⬜️ Skipped (Inspect) Feb 11, 2025 10:02pm
thirdweb_playground ⬜️ Skipped (Inspect) Feb 11, 2025 10:02pm
wallet-ui ⬜️ Skipped (Inspect) Feb 11, 2025 10:02pm

@changeset-bot
Copy link

changeset-bot bot commented Feb 4, 2025

⚠️ No Changeset found

Latest commit: 0c1bb6c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Feb 4, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 4, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.81%. Comparing base (dceb47d) to head (0c1bb6c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6159   +/-   ##
=======================================
  Coverage   56.81%   56.81%           
=======================================
  Files        1163     1163           
  Lines       64342    64342           
  Branches     5213     5213           
=======================================
  Hits        36556    36556           
  Misses      27057    27057           
  Partials      729      729           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from dceb47d
packages 55.01% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.21 KB (0%) 925 ms (0%) 234 ms (+2.27% 🔺) 1.2 s
thirdweb (cjs) 121.86 KB (0%) 2.5 s (0%) 375 ms (+36.05% 🔺) 2.9 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 46 ms (+275.56% 🔺) 158 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 26 ms (+291.17% 🔺) 36 ms
thirdweb/react (minimal + tree-shaking) 19.29 KB (0%) 386 ms (0%) 46 ms (+47.34% 🔺) 432 ms

@vercel vercel bot temporarily deployed to Preview – docs-v2 February 10, 2025 22:50 Inactive
@vercel vercel bot temporarily deployed to Preview – login February 10, 2025 22:50 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui February 10, 2025 22:50 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground February 10, 2025 22:50 Inactive
@vercel vercel bot temporarily deployed to Preview – login February 10, 2025 23:46 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui February 10, 2025 23:46 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground February 10, 2025 23:46 Inactive
@vercel vercel bot temporarily deployed to Preview – login February 11, 2025 21:02 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui February 11, 2025 21:02 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground February 11, 2025 21:02 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground February 11, 2025 21:09 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui February 11, 2025 21:09 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 February 11, 2025 21:09 Inactive
@vercel vercel bot temporarily deployed to Preview – login February 11, 2025 21:09 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground February 11, 2025 21:52 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 February 11, 2025 21:52 Inactive
@vercel vercel bot temporarily deployed to Preview – login February 11, 2025 21:52 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui February 11, 2025 21:52 Inactive
@kumaryash90 kumaryash90 added the merge-queue Adds the pull request to Graphite's merge queue. label Feb 11, 2025
Copy link
Member Author

kumaryash90 commented Feb 11, 2025

Merge activity

  • Feb 11, 4:56 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 11, 4:59 PM EST: A user added this pull request to the Graphite merge queue.
  • Feb 11, 5:03 PM EST: A user merged this pull request with the Graphite merge queue.

TOOL-3389

<!--

## 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 a default fee configuration for contract deployments, updates the handling of platform fees, and improves the UI components related to fee management, ensuring that default values are used consistently throughout the application.

### Detailed summary
- Added `DEFAULT_FEE_RECIPIENT` and `DEFAULT_FEE_BPS` to `addresses.ts`.
- Introduced `hasDefaultFeeConfig` in `ContractSettingsPage`.
- Filtered out specific functions related to platform fees in `contract-function.tsx`.
- Integrated platform fee logic in `CustomContractForm`.
- Updated `PlatformFeeFieldset` to reflect marketplace conditions.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the yash/deploy-config-updates branch from bd2eede to 0c1bb6c Compare February 11, 2025 22:00
@vercel vercel bot temporarily deployed to Preview – docs-v2 February 11, 2025 22:00 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui February 11, 2025 22:00 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground February 11, 2025 22:00 Inactive
@vercel vercel bot temporarily deployed to Preview – login February 11, 2025 22:00 Inactive
@graphite-app graphite-app bot merged commit 0c1bb6c into main Feb 11, 2025
32 checks passed
@graphite-app graphite-app bot deleted the yash/deploy-config-updates branch February 11, 2025 22:03
@vercel vercel bot temporarily deployed to Production – wallet-ui February 11, 2025 22:03 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 February 11, 2025 22:03 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground February 11, 2025 22:03 Inactive
@vercel vercel bot temporarily deployed to Production – login February 11, 2025 22:03 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. DO NOT MERGE This pull request is still in progress and is not ready to be merged. merge-queue Adds the pull request to Graphite's merge queue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants