InstallationUpgradeFacet
UpgradeTimeReduced
upgradeInstallation
Allow a user to upgrade an installation in a parcel
Will throw if the caller is not the owner of the parcel in which the installation is installed
Parameters
Name | Type | Description |
---|---|---|
_upgradeQueue | struct UpgradeQueue | A struct containing details about the queue which contains the installation to upgrade |
_gotchiId | uint256 | The id of the gotchi which is upgrading the installation |
_signature | bytes | API signature |
_gltr | uint40 | Amount of GLTR to use, can be 0 |
finalizeUpgrades
Allow anyone to finalize any existing queue upgrade
reduceUpgradeTime
getAllUpgradeQueue
Query details about all ongoing upgrade queues
TO BE DEPRECATED
Return Values
Name | Type | Description |
---|---|---|
[0] | struct UpgradeQueue[] | output_ An array of structs, each representing an ongoing upgrade queue |
getUserUpgradeQueue
Query details about all pending craft queues
TO BE REPLACED BY getUserUpgradeQueueNew after the old queue is cleared out
Parameters
Name | Type | Description |
---|---|---|
_owner | address | Address to query queue |
Return Values
Name | Type | Description |
---|---|---|
output_ | struct UpgradeQueue[] | An array of structs, each representing a pending craft queue |
indexes_ | uint256[] | An array of IDs, to be used in the new finalizeUpgrades() function |
getUserUpgradeQueueNew
Query details about all pending craft queues
Parameters
Name | Type | Description |
---|---|---|
_owner | address | Address to query queue |
Return Values
Name | Type | Description |
---|---|---|
output_ | struct UpgradeQueue[] | An array of structs, each representing a pending craft queue |
indexes_ | uint256[] | An array of IDs, to be used in the new finalizeUpgrades() function |
getUpgradeQueueId
getParcelUpgradeQueue
parcelQueueEmpty
For realm to validate whether a parcel has an upgrade queueing before removing an installation