Wallet quests are also called external quests. It is a special type of quest with unique requirements and rewards. It uses a PartnerVault contract to manage these requirements and rewards.
Specifics:
- When the user submits the NFT for an external requirement, this NFT gets transferred to the PartnerVault contract.
- When the admin creates an external reward quest and the user completes this quest, the user will be rewarded with the nft from PartnerVault.
- In order to add the external reward quest, make sure that the NFT / Currency is present in the PartnerVault.
- Use the admin panel to add the nfts and currencies to PartnerVault.
- Make sure to use supply and deadline properties when adding such a quest, as not setting these parameters will result in an unlimited quest, and we can lose NFTs / currencies or deplete the PartnerVault.
- This will make users skip the quest they already completed, as the nfts are not there.
When a partner wants to add its NFTs / currency as a reward we need to provide general data about this requirement/reward. In order to display partner NFT / currency info, we need to add the following to the questItems.json file
- ERC20/ERC721 address
- Description
- Image
- Website.
NOTE: A nft/currency address is a key by which the frontend will search for information about the requirement/reward and display it to the user.