The CacheCore contract is used to open Equipment "Caches," similar to Hero Crystals or incubated Pet Eggs. It is used for equipment airdrops and will be used for crafting in the future.
Copy interface ICacheCoreDiamond {
// Events
event CacheCreated ( address indexed owner, uint256 indexed cacheId, address equipmentContract, uint8 equipmentType, uint16 displayId, uint8 rarity, uint256 createdBlock, uint64 craftedBy);
event CacheOpened ( address indexed owner, uint256 indexed cacheId, uint256 indexed equipmentId, address equipmentContract, uint8 equipmentType, uint16 displayId, uint8 rarity, uint64 craftedBy);
event Paused ( address account);
event Unpaused ( address account);
// State-Changing Functions
function multiOpen ( uint256 [] _cacheIds );
function open ( uint256 _cacheId ) returns ( uint256 );
// View Functions
function getCache ( uint256 _cacheId ) view returns (tuple( address owner , uint256 createdBlock , address equipmentContract , uint8 equipmentType , uint16 displayId , uint8 rarity , uint64 craftedBy));
function getUserCaches ( address _address ) view returns ( uint256 []);
function getUserCachesData ( address _address ) view returns ( uint256 [] , tuple( address owner , uint256 createdBlock , address equipmentContract , uint8 equipmentType , uint16 displayId , uint8 rarity , uint64 craftedBy)[]);
function nextCacheId () view returns ( uint256 );
function paused () view returns ( bool );
function totalCaches () view returns ( uint256 );
}