CacheCore
Contracts
Addresses
Name
Mainnet
Testnet
Interface
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);
}ABI
Last updated