Nutritionist

The Nutritionist assists users in crafting Pet Treats used in feeding Pets. This contract is a facet on the PetCore diamond.

Contracts

Addresses

NameMainnetTestnet

DFK Chain

0x1990F87d6BC9D9385917E3EDa0A7674411C3Cd7F

0x5C827fa180B26d61DA3c89DD39D1b945DfBA7Dda

Kaia

0x6362b205b539afb5FC369277365441c1dC6fAa28

0x71901994A6269aC8F787F70FAC7c5783C1e0B0B2

Metis

0x74cE6E7cEF79F5ae6363c6CB1F6c2b528E92D7c7

0x0FAD77111b78B1dF31B12522Fb9298171bb2c55f

Interfaces

interface INutritionist {

    event BonusTreatsAwarded(address indexed player, uint8 treatType, uint256 quantity);
    event PetFed(address indexed fedBy, uint256 petId, uint8 foodType, uint256 hungryAt);
    event TreatCrafted(address indexed player, uint8 treatType, uint256 quantity, address item1, address item2);
    
    function craftTreats(tuple(uint8 treatType, uint256 treatQuantity, address item1, address item2)[] _treatData);
    function feedPets(tuple(uint256 petId, uint8 treatType)[] _feedData);
    function treatInfo(uint8) view returns (address treatAddress, uint256 goldCost, bool isActive);
    function treatIngredientRequirements(uint8, address) view returns (uint256);

}

ABIs

Types

Treat Type

Use the following Treat Types when crafting Pet Treats and feeding Pets.

enum TreatType {
    REGULAR,
    PREMIUM
}
PetsPet Treats

Last updated