Quest Core
The QuestRewarder
contract mints reward items for QuestCoreV3, and should not be directly interacted with. It emits the RewardMinted
event log as part of Quest Completion transactions.
Contracts
Addresses
DFK Chain
Name | Mainnet | Testnet |
---|---|---|
QuestCoreV3 |
|
|
QuestRewarder |
|
|
Quest Fund |
|
|
Klaytn
Name | Mainnet | Testnet |
---|---|---|
QuestCoreV3 |
|
|
QuestRewarder |
|
|
Quest Fund |
|
|
Interfaces
ABIs
Types
Quest
The primary struct for a Quest that has been created on the contract.
Name | Type | Description |
---|---|---|
|
| The unique |
|
| A unique mapping indicating which category of Quest the Heroes are on (e.g. Fishing, Mining, Training). See Quest Instance. |
|
| The skill level of the Quest. Current values include:
- Fishing, Foraging, Gardening: |
|
| An array of the questing Hero |
|
| The |
|
| The block height at which the Quest was started |
|
| The UNIX timestamp at which the Quest was started |
|
| The UNIX timestamp at which the Quest was/will be completed |
|
| The number of Quest attempts that the Heroes will perform |
| The current status of the Quest on the contract | |
|
| A unique mapping for Quests that have additional varieties, currently including Gardening and Training Quests. See Quest Type. |
Quest Status
Indicates the current status of the Quest on the contract.
Mappings
Quest Instance
Quests in QuestCore V3 are routed to the correct diamond facets by using Instance IDs that are unique to each Quest category. These IDs are also stored in each Hero's currentQuest
state, padded as an 0x
address (e.g. 0x0000000000000000000000000000000000000001
).
Quest Type
For Quests that have additional varieties, the type
input determines which Quest the Hero is ultimately is sent to. Currently Gardening and Training Quests use these mappings.
Gardening Quests
The Quest type
for Gardening Quests matches the poolId
of the Garden, as defined here.
Training Quests
The Quest type
for Training Quests uses the following mapping, matching the stat order used on the HeroCore contract, which is not the same order as the mapping used for stat growth and in the MeditationCircle and similar contracts.
Last updated