DAOFacet.sol
Documentation for DAOFacet.sol

‌Returns the Game Manager address.
RETURNS address

‌Sets the DAO address to the given address.

‌Whitelists a new collateral to be used in Portals.

‌Updates the modifiers array of the given collateral.

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

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

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

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

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

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

‌Creates a new Wearable Set with the given parameters.

‌Updates the gameManager to the given address.

Copy link
On this page
READ FUNCTIONS
function gameManager() external
WRITE FUNCTIONS
function setDao(address) external
function addCollateralTypes(address, uint256) external
function updateCollateralModifiers(address, uint256) external
function createHaunt(uint24, uint96, bytes3) external
function mintItems(address, uint256[], uint256[]) external
function grantExperience(uint256[], uint32[]) external
function addItemTypes(ItemType[]) external
function addItemTypes(ItemType[]) external
function insertItemTypes(ItemType[]) internal
function addWearableSets(WearableSet[]) external
function setGameManager(address) external
WRITE FUNCTIONS