InstallationAdminFacet
event AddressesUpdated(address _aavegotchiDiamond, address _realmDiamond, address _gltr, address _pixelcraft, address _aavegotchiDAO, bytes _backendPubKey)
event AddInstallationType(uint256 _installationId)
event EditInstallationType(uint256 _installationId)
event DeprecateInstallation(uint256 _installationId)
event SetInstallationUnequipType(uint256 _installationId, uint256 _unequipType)
event EditInstallationUnequipType(uint256 _installationId)
event UpgradeCancelled(uint256 _realmId, uint256 _coordinateX, uint256 _coordinateY, uint256 _installationId)
event EditDeprecateTime(uint256 _installationId, uint256 _newDeprecatetime)
function deprecateInstallations(uint256[] _installationIds) external
Allow the Diamond owner to deprecate an installation
Deprecated installations cannot be crafted by users
Name | Type | Description |
---|---|---|
_installationIds | uint256[] | An array containing the identifiers of installations to deprecate |
function setAddresses(address _aavegotchiDiamond, address _realmDiamond, address _gltr, address _pixelcraft, address _aavegotchiDAO, bytes _backendPubKey) external
Allow the diamond owner to set some important contract addresses
Name | Type | Description |
---|---|---|
_aavegotchiDiamond | address | The aavegotchi diamond address |
_realmDiamond | address | The Realm diamond address |
_gltr | address | The $GLTR token address |
_pixelcraft | address | Pixelcraft address |
_aavegotchiDAO | address | The Aavegotchi DAO address |
_backendPubKey | bytes | The Backend Key |
function getAddresses() external view returns (address _aavegotchiDiamond, address _realmDiamond, address _gltr, address _pixelcraft, address _aavegotchiDAO, bytes _backendPubKey)
function addInstallationTypes(struct InstallationTypeIO[] _installationTypes) external
Allow the diamond owner to add an installation type
Name | Type | Description |
---|---|---|
_installationTypes | struct InstallationTypeIO[] | An array of structs, each struct representing each installationType to be added |
function editDeprecateTime(uint256 _typeId, uint40 _deprecateTime) external
function editInstallationTypes(uint256[] _ids, struct InstallationType[] _installationTypes) external
function editInstallationUnequipTypes(uint256[] _ids, uint256[] _unequipTypes) external
function mintInstallations(uint16[] _installationIds, uint16[] _amounts, address _toAddress) external
Allow the owner to mint installations
This function does not check for deprecation because otherwise the installations could be minted by players. Make sure that the installation is deprecated when you add it onchain
Name | Type | Description |
---|---|---|
_installationIds | uint16[] | An array containing the identifiers of the installationTypes to mint |
_amounts | uint16[] | An array containing the amounts of the installationTypes to mint |
_toAddress | address | Address to mint installations |
struct MissingAltars {
uint256 _parcelId;
uint256 _oldAltarId;
uint256 _newAltarId;
}
function fixMissingAltars(struct InstallationAdminFacet.MissingAltars[] _altars) external
struct BuggedUpgradeInput {
uint256 _parcelId;
uint16 _coordinateX;
uint16 _coordinateY;
uint256 _installationId;
}
function deleteBuggedUpgrades(struct InstallationAdminFacet.BuggedUpgradeInput[] _upgrades) external
Used if a parcel has an upgrade that must be deleted.
function deleteBuggedUpgradesWithHashes(bytes32[] _hashes) external
function getUniqueHash(uint256 _parcelId, uint16 _x, uint16 _y, uint256 _installationId) external view returns (uint256)
function toggleGameManager(address _newGameManager, bool _active) external