ForgeFacet

TransferSingle

event TransferSingle(address operator, address from, address to, uint256 id, uint256 value)

TransferBatch

event TransferBatch(address operator, address from, address to, uint256[] ids, uint256[] values)

ItemSmelted

event ItemSmelted(uint256 itemId, uint256 gotchiId)

ItemForged

event ItemForged(uint256 itemId, uint256 gotchiId)

ForgeQueueClaimed

event ForgeQueueClaimed(uint256 itemId, uint256 gotchiId)

ForgeTimeReduced

event ForgeTimeReduced(uint256 queueId, uint256 gotchiId, uint256 itemId, uint40 _blocksReduced)

AddedToQueue

event AddedToQueue(address owner, uint256 itemId, uint256 gotchiId, uint40 readyBlock, uint256 queueId)

QueueTimeReduced

event QueueTimeReduced(uint256 gotchiId, uint40 reducedBlocks)

onlyAavegotchiUnlocked

modifier onlyAavegotchiUnlocked(uint256 gotchiId)

onlyAavegotchiOwner

modifier onlyAavegotchiOwner(uint256 gotchiId)

getAavegotchiSmithingLevel

function getAavegotchiSmithingLevel(uint256 gotchiId) public view returns (uint256)

getAavegotchiSmithingSkillPts

function getAavegotchiSmithingSkillPts(uint256 gotchiId) public view returns (uint256)

getSmithingLevelMultiplierBips

function getSmithingLevelMultiplierBips(uint256 gotchiId) public view returns (uint256)

getCoreTokenId

function getCoreTokenId(uint8 rarityScoreModifier, bool[16] slotPositions) public pure returns (uint256 tokenId)

geodeTokenIdFromRsm

function geodeTokenIdFromRsm(uint8 rarityScoreModifier) public pure returns (uint256 tokenId)

geodeRsmFromTokenId

function geodeRsmFromTokenId(uint256 tokenId) public pure returns (uint8 rarityScoreModifier)

smeltWearables

function smeltWearables(uint256[] _itemIds, uint256[] _gotchiIds) external

forgeTime

function forgeTime(uint256 gotchiId, uint8 rsm) public view returns (uint256)

claimForgeQueueItems

function claimForgeQueueItems(uint256[] gotchiIds) external

reduceQueueTime

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

Parameters

NameTypeDescription

_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

getForgeQueueItem

function getForgeQueueItem(uint256 gotchiId) external view returns (struct ForgeQueueItem)

getForgeQueue

function getForgeQueue() external view returns (struct ForgeQueueItem[] queue)

getForgeQueueItemsByOwner

function getForgeQueueItemsByOwner(address _owner) external view returns (struct ForgeQueueItem[] output)

forgeWearables

function forgeWearables(uint256[] _itemIds, uint256[] _gotchiIds, uint40[] _gltr) external

isForgeable

function isForgeable(uint256 itemId) public view returns (bool available)

isGotchiForging

function isGotchiForging(uint256 gotchiId) public view returns (bool)

mintEssence

function mintEssence(address owner) external

fixInvalidTokenIds

function fixInvalidTokenIds(address[] owners) external

adminMint

function adminMint(address account, uint256 id, uint256 amount) external

adminMintBatch

function adminMintBatch(address to, uint256[] ids, uint256[] amounts) external

burn

function burn(address account, uint256 id, uint256 amount) external