-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(thirdweb): add support for ThirdWeb mint
plugin
#444
Conversation
🦋 Changeset detectedLatest commit: a5e9c0d The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
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
A few helper functions that could be moved into the utils and the types.ts
file is a little confusing - it looks like mocked returns and you could cast them to the Viem type for that simulation but it doesn't really look like they're types.
@@ -0,0 +1,267 @@ | |||
import { mint } from './ThirdWeb' | |||
// import { getFees, mint, simulateMint } from './ThirdWeb' |
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.
cleanup
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.
Ive left the commented code so that I can easily run the non-mocked tests when needed. (the mocked tests are kind of useless 😅)
Wondering if maybe there is a better way to have non-mocked tests to be run locally.
throw new Error('Invalid contract type') | ||
} | ||
|
||
export function formatAmount(amount: FilterOperator | undefined) { |
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 and the getMintAmount could both probably live in the utils package.
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.
Going to make a separate PR to add these functions to utils.
Integration of
thirdweb
mint action plugin for QuestDKThis PR introduces the integration of the
thirdweb
mint plugin for QuestDK.About The Project
Thirdweb is a robust platform that streamlines the process of minting and managing NFTs. By providing easy-to-use tools and infrastructure, it empowers creators to mint, deploy, and manage their NFT collections efficiently.
Implementation Details
Thirdweb is available on most major L2 networks such as base and optimism
We have support for two types of contracts,
DropERC1155
andOpenEditionERC721
, both are quite similar, with the difference being the ERC1155 can utilize a tokenId parameter. Both use theclaim
functions on their respective contracts.Sample Mints
Example Transactions