ForgeFacet
event TransferSingle(address operator, address from, address to, uint256 id, uint256 value)
event TransferBatch(address operator, address from, address to, uint256[] ids, uint256[] values)
event ItemSmelted(uint256 itemId, uint256 gotchiId)
event ItemForged(uint256 itemId, uint256 gotchiId)
event ForgeQueueClaimed(uint256 itemId, uint256 gotchiId)
event ForgeTimeReduced(uint256 queueId, uint256 gotchiId, uint256 itemId, uint40 _blocksReduced)
event AddedToQueue(address owner, uint256 itemId, uint256 gotchiId, uint40 readyBlock, uint256 queueId)
event QueueTimeReduced(uint256 gotchiId, uint40 reducedBlocks)
modifier onlyAavegotchiUnlocked(uint256 gotchiId)
modifier onlyAavegotchiOwner(uint256 gotchiId)
function getAavegotchiSmithingLevel(uint256 gotchiId) public view returns (uint256)
function getAavegotchiSmithingSkillPts(uint256 gotchiId) public view returns (uint256)
function getSmithingLevelMultiplierBips(uint256 gotchiId) public view returns (uint256)
function getCoreTokenId(uint8 rarityScoreModifier, bool[16] slotPositions) public pure returns (uint256 tokenId)
function geodeTokenIdFromRsm(uint8 rarityScoreModifier) public pure returns (uint256 tokenId)
function geodeRsmFromTokenId(uint256 tokenId) public pure returns (uint8 rarityScoreModifier)
function smeltWearables(uint256[] _itemIds, uint256[] _gotchiIds) external
function forgeTime(uint256 gotchiId, uint8 rsm) public view returns (uint256)
function claimForgeQueueItems(uint256[] gotchiIds) external
function reduceQueueTime(uint256[] _gotchiIds, uint40[] _amounts) external
Allow a user to speed up multiple queues(installation craft time) by paying the correct amount of $GLTR tokens
Will throw if the caller is not the queue owner $GLTR tokens are burnt upon usage amount expressed in block numbers
Name | Type | Description |
---|---|---|
_gotchiIds | uint256[] | An array containing the gotchi ID queues to speed up |
_amounts | uint40[] | An array containing the corresponding amounts of $GLTR tokens to pay for each queue speedup |
function getForgeQueueItem(uint256 gotchiId) external view returns (struct ForgeQueueItem)
function getForgeQueue() external view returns (struct ForgeQueueItem[] queue)
function getForgeQueueItemsByOwner(address _owner) external view returns (struct ForgeQueueItem[] output)
function forgeWearables(uint256[] _itemIds, uint256[] _gotchiIds, uint40[] _gltr) external
function isForgeable(uint256 itemId) public view returns (bool available)
function isGotchiForging(uint256 gotchiId) public view returns (bool)
function mintEssence(address owner) external
function fixInvalidTokenIds(address[] owners) external
function adminMint(address account, uint256 id, uint256 amount) external
function adminMintBatch(address to, uint256[] ids, uint256[] amounts) external
function burn(address account, uint256 id, uint256 amount) external