Ask or search…
K

Void Hunts

Contracts

Addresses

DFK Chain

Name
Mainnet
Testnet
HuntsDiamond
0xEaC69796Cff468ED1694A6FfAc4cbC23bbe33aFa
0xEF333BfE61d9274549d1b2504c2d52c9F9DB4B83

Interfaces

interface IHuntsDiamond {
// Events
event FeeAddressAdded(address indexed feeAddress, uint256 indexed feePercent);
event FeeDeferred(address indexed source, address indexed from, address indexed to, address token, uint256 amount, uint64 timestamp);
event FeeDisbursed(address indexed source, address indexed from, address indexed to, address token, uint256 amount, uint64 timestamp);
event FeeLockedBurned(address indexed source, address indexed from, address indexed to, address token, uint256 amount, uint64 timestamp);
event HuntCanceled(uint256 huntId);
event HuntCompleted(uint256 huntId, tuple(uint256 id, uint256 huntDataId, uint256 startBlock, uint256[] heroIds, address player, uint8 status, uint256 resultSubmittedTimestamp, uint256[] petXpBonuses, uint256 startAtTime, uint256 retries, tuple(address item, uint16 submittedAmount, uint16 usedAmount)[] consumableItems) hunt, bool huntWon, uint256[] heroIds)
event HuntEquipmentMinted(uint256 indexed huntId, address indexed item, address indexed player, uint8 equipmentType, uint16 displayId, uint8 rarity, uint256 nftId);
event HuntPetBonusReceived(uint256 indexed questId, address indexed player, uint256 heroId, uint256 petId);
event HuntResultSubmitted(uint256 huntId, bool result);
event HuntRetried(uint256 huntId);
event HuntRewardMinted(uint256 indexed huntId, address indexed player, address indexed item, uint256 amount, uint256 data);
event HuntStarted(tuple(uint256 id, uint256 huntDataId, uint256 startBlock, uint256[] heroIds, address player, uint8 status, uint256 resultSubmittedTimestamp, uint256[] petXpBonuses, uint256 startAtTime, uint256 retries, tuple(address item, uint16 submittedAmount, uint16 usedAmount)[] consumableItems) hunt);
event HuntXP(uint256 indexed huntId, address indexed player, uint256 heroId, uint64 xpEarned);
// State-Changing Functions
function cancelHunt(uint256 _huntId);
function completeHunt(uint256 _huntId);
function retryHunt(uint256 _huntId);
function startHunt(uint256 _huntDataId, uint256[] _heroIds);
// View Functions
function getActiveHunts() view returns (uint256[]);
function getHeroHunt(uint256 _heroId) view returns (tuple(uint256 id, uint256 huntDataId, uint256 startBlock, uint256[] heroIds, address player, uint8 status, uint256 resultSubmittedTimestamp, uint256[] petXpBonuses, uint256 startAtTime, uint256 retries, tuple(address item, uint16 submittedAmount, uint16 usedAmount)[] consumableItems));
function getHeroHuntAvailableAtTimestamps(uint256 _huntDataId, uint256[] _heroIds) view returns (uint256[]);
function getHunt(uint256 _huntId) view returns (tuple(uint256 id, uint256 huntDataId, uint256 startBlock, uint256[] heroIds, address player, uint8 status, uint256 resultSubmittedTimestamp, uint256[] petXpBonuses, uint256 startAtTime, uint256 retries, tuple(address item, uint16 submittedAmount, uint16 usedAmount)[] consumableItems));
function getHuntCooldown() view returns (uint256);
function getHuntCounter() view returns (uint256);
function getUserHuntIds(address _address) view returns (uint256[]);
function getUserHunts(address _address) view returns (tuple(uint256 id, uint256 huntDataId, uint256 startBlock, uint256[] heroIds, address player, uint8 status, uint256 resultSubmittedTimestamp, uint256[] petXpBonuses, uint256 startAtTime, uint256 retries, tuple(address item, uint16 submittedAmount, uint16 usedAmount)[] consumableItems)[]);
function huntAtIndex(uint256 _id) view returns (uint256);
}

ABIs

HuntsDiamond.json
36KB
Code