AlchemicaFacet
StartSurveying
ChannelAlchemica
ExitAlchemica
SurveyingRoundProgressed
TransferTokensToGotchi
ERC20TransferFailed
isSurveying
startSurveying
getAlchemicaAddresses
getTotalAlchemicas
Query details about all total alchemicas present
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256[4][5] | output_ A two dimensional array, each representing an alchemica value |
getRealmAlchemica
Query details about the remaining alchemica in a parcel
Parameters
Name | Type | Description |
---|---|---|
_realmId | uint256 | The identifier of the parcel to query |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256[4] | output_ An array containing details about each remaining alchemica in the parcel |
getParcelCurrentRound
Query details about the remaining alchemica in a parcel
Parameters
Name | Type | Description |
---|---|---|
_realmId | uint256 | The identifier of the parcel to query |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | output_ An array containing details about each remaining alchemica in the parcel |
progressSurveyingRound
Allow the diamond owner to increment the surveying round
getRoundAlchemica
Query details about all alchemica gathered in a surveying round in a parcel
Parameters
Name | Type | Description |
---|---|---|
_realmId | uint256 | Identifier of the parcel to query |
_roundId | uint256 | Identifier of the surveying round to query |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256[] | output_ An array representing the numbers of alchemica gathered in a round |
getRoundBaseAlchemica
Query details about the base alchemica gathered in a surveying round in a parcel
Parameters
Name | Type | Description |
---|---|---|
_realmId | uint256 | Identifier of the parcel to query |
_roundId | uint256 | Identifier of the surveying round to query |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256[] | output_ An array representing the numbers of base alchemica gathered in a round |
setVars
Allow the diamond owner to set some important diamond state variables
Parameters
Name | Type | Description |
---|---|---|
_alchemicas | uint256[4][5] | A nested array containing the amount of alchemicas available |
_boostMultipliers | uint256[4] | The boost multiplers applied to each parcel |
_greatPortalCapacity | uint256[4] | The individual alchemica capacity of the great portal |
_installationsDiamond | address | The installations diamond address |
_vrfCoordinator | address | The chainlink vrfCoordinator address |
_linkAddress | address | The link token address |
_alchemicaAddresses | address[4] | The four alchemica token addresses |
_gltrAddress | address | |
_backendPubKey | bytes | The Realm(gotchiverse) backend public key |
_gameManager | address | The address of the game manager |
_tileDiamond | address | |
_aavegotchiDiamond | address |
setTotalAlchemicas
getAvailableAlchemica
Query the available alchemica in a parcel
Parameters
Name | Type | Description |
---|---|---|
_realmId | uint256 | identifier of parcel to query |
Return Values
Name | Type | Description |
---|---|---|
_availableAlchemica | uint256[4] | An array representing the available quantity of alchemicas |
TransferAmounts
lastClaimedAlchemica
claimAvailableAlchemica
Allow parcel owner to claim available alchemica with his parent NFT(Aavegotchi)
Parameters
Name | Type | Description |
---|---|---|
_realmId | uint256 | Identifier of parcel to claim alchemica from |
_gotchiId | uint256 | Identifier of Aavegotchi to use for alchemica collecction/claiming |
_signature | bytes | Message signature used for backend validation |
getHarvestRates
getCapacities
getTotalClaimed
channelAlchemica
Allow a parcel owner to channel alchemica
_This transfers alchemica to the parent ERC721 token with id gotchiId and also to the great portal
Parameters
Name | Type | Description |
---|---|---|
_realmId | uint256 | Identifier of parcel where alchemica is being channeled from |
_gotchiId | uint256 | Identifier of parent ERC721 aavegotchi which alchemica is channeled to |
_lastChanneled | uint256 | The last time alchemica was channeled in this _realmId |
_signature | bytes | Message signature used for backend validation |
getLastChanneled
Return the last timestamp of a channeling
used as a parameter in channelAlchemica
Parameters
Name | Type | Description |
---|---|---|
_gotchiId | uint256 | Identifier of parent ERC721 aavegotchi |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | last channeling timestamp |
getParcelLastChanneled
Return the last timestamp of an altar channeling
used as a parameter in channelAlchemica
Parameters
Name | Type | Description |
---|---|---|
_parcelId | uint256 | Identifier of ERC721 parcel |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | last channeling timestamp |
batchTransferAlchemica
Helper function to batch transfer alchemica
_The inner array element order for amounts is FUD, FOMO, ALPHA, KEK
Parameters
Name | Type | Description |
---|---|---|
_targets | address[] | Array of target addresses |
_amounts | uint256[4][] | Nested array of amounts to transfer. |
batchTransferTokensToGotchis
Helper function to batch transfer alchemica to Aavegotchis
Parameters
Name | Type | Description |
---|---|---|
_gotchiIds | uint256[] | Array of Gotchi IDs |
_tokenAddresses | address[] | Array of tokens to transfer |
_amounts | uint256[][] | Nested array of amounts to transfer. |
setChannelingLimits
Owner function to change the altars channeling limits @param _altarLevel Array of altars level
Parameters
Name | Type | Description |
---|---|---|
_altarLevel | uint256[] | |
_limits | uint256[] | Array of time limits |