-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] feat: Add verifyClaim export and canClaim function #6234
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
[SDK] feat: Add verifyClaim export and canClaim function #6234
Conversation
🦋 Changeset detectedLatest commit: 159ffbf The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
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. This stack of pull requests is managed by Graphite. Learn more about stacking. |
| * @example | ||
| * ```ts | ||
| * import { decodeVerifyClaimResult } from "thirdweb/extensions/erc20"; | ||
| * const result = decodeVerifyClaimResultResult("..."); |
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.
The example code shows decodeVerifyClaimResultResult but the actual function name is decodeVerifyClaimResult. The extra "Result" suffix should be removed from the example for accuracy.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
size-limit report 📦
|
b48ca59 to
486b8df
Compare
jnsdls
left a comment
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.
LGTM except for lint and test failures and the AI has some feedback for you, too
486b8df to
8e573ec
Compare
8e573ec to
8d4962a
Compare
8d4962a to
0378f35
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6234 +/- ##
==========================================
+ Coverage 56.81% 56.90% +0.09%
==========================================
Files 1163 1166 +3
Lines 64342 64475 +133
Branches 5213 5224 +11
==========================================
+ Hits 36556 36692 +136
+ Misses 27057 27056 -1
+ Partials 729 727 -2
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
Fixes TOOL-3381
<!--
## 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 focuses on exposing the `canClaim` extension function for ERC20, ERC721, and ERC1155 drops, allowing for better claim verification and improving the overall functionality of the drops system.
### Detailed summary
- Added `canClaim` function to `erc20`, `erc721`, and `erc1155` extensions.
- Updated tests to include `canClaim` functionality.
- Modified JSON ABI files to include `verifyClaim` function.
- Adjusted gas values in tests.
- Enhanced error handling in `extract-error.ts`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
0378f35 to
159ffbf
Compare

Fixes TOOL-3381
PR-Codex overview
This PR focuses on exposing the
canClaimfunction for ERC20, ERC721, and ERC1155 drops, enhancing the claim verification process. It includes updates to related tests and modifies contract ABIs to support the new function.Detailed summary
canClaimfunction toerc20,erc721, anderc1155extensions.verifyClaimfunction.drop20.test.ts,drop721.test.ts, anddrop1155.test.ts.FiatSteps.tsxto format text correctly.