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

[Extensions] Enhance ERC20 Drop ClaimCondition functionality #4392

Conversation

jnsdls
Copy link
Member

@jnsdls jnsdls commented Sep 4, 2024

PR-Codex overview

This PR enhances ERC20 Drop ClaimCondition functionality by adding metadata support and refactoring read and write methods.

Detailed summary

  • Added metadata field to setClaimConditions in IDropERC20
  • Updated method selectors and inputs in multiple files
  • Refactored read and write methods for improved functionality

The following files were skipped due to too many changes: packages/thirdweb/src/extensions/erc20/drops/read/getClaimConditions.ts, packages/thirdweb/src/extensions/erc20/drop20.test.ts

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

Copy link

changeset-bot bot commented Sep 4, 2024

🦋 Changeset detected

Latest commit: c5b9d1c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Minor

Not sure what this means? Click here to learn what changesets are.

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

Copy link

vercel bot commented Sep 4, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 2:41am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 2:41am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 2:41am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 2:41am

@jnsdls jnsdls marked this pull request as ready for review September 4, 2024 21:47
Copy link

graphite-app bot commented Sep 4, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Contributor

github-actions bot commented Sep 4, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43.29 KB (0%) 866 ms (0%) 995 ms (+2.15% 🔺) 1.9 s
thirdweb (cjs) 100.65 KB (0%) 2.1 s (0%) 2.2 s (-11.75% 🔽) 4.2 s
thirdweb (minimal + tree-shaking) 4.81 KB (0%) 97 ms (0%) 52 ms (-74.03% 🔽) 148 ms
thirdweb/chains (tree-shaking) 492 B (0%) 10 ms (0%) 69 ms (+290.74% 🔺) 79 ms
thirdweb/react (minimal + tree-shaking) 16.22 KB (0%) 325 ms (0%) 172 ms (-11.99% 🔽) 497 ms

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 75.44910% with 41 lines in your changes missing coverage. Please review.

Project coverage is 60.03%. Comparing base (6d75abf) to head (c5b9d1c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../extensions/erc20/drops/read/getClaimConditions.ts 62.36% 35 Missing ⚠️
...ensions/erc20/drops/write/resetClaimEligibility.ts 92.85% 5 Missing ⚠️
...extensions/erc721/drops/read/getClaimConditions.ts 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4392      +/-   ##
==========================================
+ Coverage   60.00%   60.03%   +0.03%     
==========================================
  Files         980      982       +2     
  Lines       80038    80201     +163     
  Branches     3634     3642       +8     
==========================================
+ Hits        48024    48150     +126     
- Misses      31335    31372      +37     
  Partials      679      679              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 6d75abf
packages 59.15% <75.44%> (+0.04%) ⬆️

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

Files with missing lines Coverage Δ
...extensions/erc721/drops/read/getClaimConditions.ts 62.36% <75.00%> (ø)
...ensions/erc20/drops/write/resetClaimEligibility.ts 92.85% <92.85%> (ø)
.../extensions/erc20/drops/read/getClaimConditions.ts 62.36% <62.36%> (ø)

... and 2 files with indirect coverage changes

@jnsdls jnsdls changed the base branch from _Update_Refactor_claim_condition_retrieval_and_add_support_check to graphite-base/4392 September 4, 2024 23:19
Copy link

graphite-app bot commented Sep 4, 2024

Merge activity

@jnsdls jnsdls changed the base branch from graphite-base/4392 to main September 4, 2024 23:40
@jnsdls jnsdls force-pushed the _Extensions_Enhance_ERC20_Drop_ClaimCondition_functionality branch from cd7d8cf to 54b2c46 Compare September 5, 2024 00:04
jnsdls added a commit that referenced this pull request Sep 5, 2024
<!-- start pr-codex -->

## PR-Codex overview
This PR enhances ERC20 Drop ClaimCondition with metadata support and refactors function selectors.

### Detailed summary
- Added `metadata` field to `setClaimConditions` function
- Refactored function selectors for consistency
- Updated `getClaimConditions` to support new changes

> The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/erc20/drops/read/getClaimConditions.ts`, `packages/thirdweb/src/extensions/erc20/drop20.test.ts`

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

<!-- end pr-codex -->
@jnsdls jnsdls force-pushed the _Extensions_Enhance_ERC20_Drop_ClaimCondition_functionality branch from 54b2c46 to fa0cf7d Compare September 5, 2024 00:35
<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to enhance the ERC20 Drop ClaimCondition feature by adding metadata support and improving claim condition retrieval.

### Detailed summary
- Added `metadata` field to `setClaimConditions` function in ERC20 Drop
- Updated function selectors and inputs in ERC20 Drop
- Renamed `ById` to `MultiById` for clarity
- Improved claim condition retrieval logic
- Added support for `resetClaimEligibility` in ERC20 Drop
- Updated exports and imports for clarity

> The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/erc20/drops/read/getClaimConditions.ts`, `packages/thirdweb/src/extensions/erc20/drop20.test.ts`

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

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants