@xw3/maki-quest-hooks
v0.1.5
Published
Xircus Quest SDK
Downloads
414
Readme
Xircus Maki Quest Hooks
Modern Web3 Application Kit for TON & Telegram
Quest UI Components and React Hooks
Uses @tanstack/react-query useQuery for queries and useMutation for functions
Installation
npm install @xw3/maki-quest-hooks
yarn add @xw3/maki-quest-hooks
Hooks
| Name | Description |
|--- |--- |
|useQuests | Returns the quests by app |
|useQuest | Returns the quest by questId |
|useCurrentQuestor | Returns the questor by userId |
|useQuestor | Returns the questor by userId |
|useQuestorPoints | Returns the questor points |
|useQuestorTickets | Returns the questor tickets |
|useFarm | Generates a farm timer |
|usePacks | Returns all packs |
|useFriends | Returns the friends by questId |
|useFriendsCount | Returns the total friends by questId |
|useQuestorActions | Contains join, addPoints, addPointsDaily, addRefPoints |
|useQuestorFarm | Contains farm and verify mutation |
|useQuestorJoin | Instantly joins a quest by questId |
|useQuestorItems | Contains the questor items done or active by questId |
|useQuestSetting | Contains the app quest setting for farm, daily, rewards, etc |
|useReferralInvite | Instantly process the referral invite code |
|useReferror | Returns the referror by referral code |