DAOFacet.sol

Documentation for DAOFacet.sol

READ FUNCTIONS

function gameManager() external

‌Returns the Game Manager address.

WRITE FUNCTIONS

function setDao(address) external

‌Sets the DAO address to the given address.

function addCollateralTypes(address, uint256) external

‌Whitelists a new collateral to be used in Portals.

function updateCollateralModifiers(address, uint256) external

‌Updates the modifiers array of the given collateral.

function createHaunt(uint24, uint96, bytes3) external

‌Creates a new Haunt with the given parameters. Reverts if the previous Haunt has not completed.

function mintItems(address, uint256[], uint256[]) external

Mints and transfers Items to the given address, with the given quantities.

function grantExperience(uint256[], uint32[]) external

‌Grants the given amount of experience to each given Aavegotchi.

function addItemTypes(ItemType[]) external

‌Creates a new type of Item with the given parameters, but does not mint it.

function addItemTypes(ItemType[]) external

‌Creates a new type of Item with the given parameters, but does not mint it. Also adds the SVG files for each wearable added.

function insertItemTypes(ItemType[]) internal

Inserts the items into memory. Called by both addItemTypes and addItemTypesAndSvgs.

function addWearableSets(WearableSet[]) external

‌Creates a new Wearable Set with the given parameters.

function setGameManager(address) external

‌Updates the gameManager to the given address.

WRITE FUNCTIONS