feat: add erc-1155 support for zora nfts #3711
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
🤖 Generated by Copilot at ec59aae
Added support for minting ERC-1155 NFTs using the Zora protocol and the fixed price sale strategy. Updated the UI and the contract interfaces to handle different NFT standards. Exported the
ZoraCreator1155Impl
contract from the@lenster/abis
package.Related issues
Fixes # (issue)
Type of change
Explanation of the changes
🤖 Generated by Copilot at ec59aae
Nft
component (link)Metadata
component (link, link)ZoraCreator1155Impl
contract from@lenster/abis
to interact with the ERC-1155 NFTs created by the Zora protocol (link, link)FIXED_PRICE_SALE_STRATEGY
constant as the address of the contract that implements the fixed price sale logic for the ERC-1155 NFTs (link)erc721Address
variable tonftAddress
to reflect the generic NFT address that could be either ERC-721 or ERC-1155 in theMintAction
component (link)abi
andargs
variables based on thenft.contractStandard
property to use the appropriate contract interface and arguments for the minting function in theMintAction
component (link)encodeAbiParameters
function fromviem
in theMintAction
component (link)usePrepareContractWrite
hook to use thenftAddress
,abi
, andargs
variables instead of the hardcoded values for the ERC-721 minting function in theMintAction
component (link)PuzzleIcon
component from@heroicons/react/outline
to display the NFT type icon in theMetadata
component (link)nft.contractStandard
property to show the NFT type in theMetadata
component (link)parseAbiParameters
function fromviem
to decode the ABI parameters for the ERC-1155 minting function in theMintAction
component (link)Emoji
🖼️🧩🚀