Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Nov 26, 2024

CNCT-2438


PR-Codex overview

This PR introduces the LoyaltyCard extension for the ERC721 contract, enhancing the functionality for deploying loyalty card NFTs, and updates various related methods and events.

Detailed summary

  • Added ignore rule in codecov.yml for generated files.
  • Enhanced issue validation in .github/workflows/issue.yml.
  • Introduced LoyaltyCard with deployment and event handling.
  • Updated ABI files for LoyaltyCard and Multiwrap.
  • Added methods for cancel, revoke, mintTo, and unwrap in LoyaltyCard.
  • Implemented event filters for TokensMinted, TokensWrapped, and TokensUnwrapped.
  • Added tests for deploying LoyaltyCard and other ERC721 types.

The following files were skipped due to too many changes: packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts, packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts, packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts, packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts, packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts

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

@linear
Copy link

linear bot commented Nov 26, 2024

@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2024

🦋 Changeset detected

Latest commit: 7488102

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

@vercel
Copy link

vercel bot commented Nov 26, 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 Nov 27, 2024 3:55pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 3:55pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 3:55pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 3:55pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 26, 2024

Your org has enabled 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.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.92 KB (0%) 959 ms (0%) 377 ms (+60.96% 🔺) 1.4 s
thirdweb (cjs) 107.27 KB (0%) 2.2 s (0%) 539 ms (+27.24% 🔺) 2.7 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 90 ms (+778.73% 🔺) 202 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 4 ms (-37.85% 🔽) 14 ms
thirdweb/react (minimal + tree-shaking) 18.28 KB (0%) 366 ms (0%) 63 ms (+131.18% 🔺) 429 ms

@codecov
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

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

Project coverage is 46.19%. Comparing base (9d3c8ac) to head (7488102).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...thirdweb/src/extensions/prebuilts/deploy-erc721.ts 86.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5529      +/-   ##
==========================================
- Coverage   46.20%   46.19%   -0.01%     
==========================================
  Files        1080     1081       +1     
  Lines       58569    58613      +44     
  Branches     3929     3933       +4     
==========================================
+ Hits        27060    27075      +15     
- Misses      30826    30855      +29     
  Partials      683      683              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 9d3c8ac
packages 41.75% <86.66%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
...thirdweb/src/extensions/prebuilts/deploy-erc721.ts 94.64% <86.66%> (-1.24%) ⬇️

... and 1 file with indirect coverage changes

@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 26, 2024
Copy link
Contributor Author

gregfromstl commented Nov 26, 2024

Merge activity

  • Nov 26, 5:35 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 27, 10:51 AM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 27, 10:51 AM EST: A user added this pull request to the Graphite merge queue.
  • Nov 27, 10:55 AM EST: A user merged this pull request with the Graphite merge queue.

[
"constructor()",
"function cancel(uint256 tokenId)",
"function initialize(address _defaultAdmin, string _name, string _symbol, string _contractURI, address[] _trustedForwarders, address _saleRecipient, address _royaltyRecipient, uint128 _royaltyBps, uint128 _platformFeeBps, address _platformFeeRecipient)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only need this function here, everything else is duplicates

CNCT-2438

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces enhancements to the `thirdweb` library by adding support for a new `LoyaltyCard` extension, improving event handling, and updating the `github_checks` workflow to validate PR branches for issue references.

### Detailed summary
- Added `ignore` pattern in `codecov.yml`.
- Updated `issue.yml` to check PR body and branch name for valid issue references.
- Implemented `LoyaltyCard` extension with deployment support and event handling.
- Added new functions for `TokensMinted`, `TokensUnwrapped`, and `TokensWrapped` events.
- Updated `Multiwrap` and `LoyaltyCard` ABIs.
- Added tests for deploying `LoyaltyCard` and other ERC721 types.

> The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.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

merge-queue Adds the pull request to Graphite's merge queue. packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants