LogoLogo
  • DFK Developer Docs
  • Contracts
    • Exchanges
      • The Trader
      • The Bazaar
    • Sales & Rentals
      • Hero Auction
      • Hero Rental
      • Equipment Auction
      • Pet Auction
      • Land Auction
    • Summoning
      • Hero Summoning
        • Dark Summoning
      • Pet Hatching
    • Meditation Circle
    • Quests
      • Quest Core
      • Historical Contracts
        • Quest Core
        • Profession Quests
        • Training Quests
    • Void Hunts
    • Patrols
    • PVP Combat
    • Influence System
    • Gardens
      • Master Gardener
    • Jeweler 2.0
      • Power-Ups
      • Jeweler 1.0
    • Profiles
    • DFK Duel
      • Previous Seasons
      • Raffle Master
    • Events
      • Gen0 Reroll
      • Gene Reroll
      • Perilous Journey
    • Bridging
      • Hero Bridge (Synapse)
      • Hero Bridge (LayerZero)
      • Equipment Bridge (Synapse)
      • Equipment Bridge (LayerZero)
      • Item Bridge V2
        • Item Bridge V1 (Deprecated)
      • Gaia's Tear Bridge
    • Miscellaneous
      • Airdrops
      • Charity
      • Flag Storage
      • Gen0 Airdrop (Harmony)
      • Gen0 Sale (Harmony)
      • Graveyard
      • Locked Token Claim
      • Locked Token Raffle
      • Token Disburse
  • NFTs
    • Heroes
      • HeroV4 (Metis)
    • Equipment
      • Weapons
      • Armor
      • Accessories
      • Shared Equipment Mappings
      • CacheCore
      • Equipment Shop
      • Visage Shop
    • Pets
      • Pet Exchange
    • Lands
  • Tokens
    • Ecosystem Token
    • Power Tokens
    • Governance Tokens
    • Currencies
      • DFK Gold
      • Gaia's Tears
    • Inventory Items
    • Gold Crops
    • Combat Items
    • Miscellaneous Tokens
      • Collectible Items
      • Raffle Tickets
  • Crafting
    • Alchemist
    • Nutritionist
    • Stone Carver
    • Vendor (Item Gold Trader)
  • Collections
    • Runes
    • Pet Eggs
    • Pet Treats
    • Potions & Consumables
      • Item Consumer
      • Potion Migrator
    • Enhancement Stones
    • Attunement Crystals
      • Atonement Crystals
    • Pages of the Eternal Story
  • API
    • Community GraphQL API
      • Getting Started
      • Auctions
      • Bazaar
      • Heroes
      • Pets
      • Profiles
    • Hero Metadata & Image API
    • Pet Metadata & Image API
    • Token Supply API
  • Community Builders
    • Kingdom Building Program
    • Developer Resources
    • Community Projects
  • DFK CHain
    • Getting Started
    • Nodes & Validators
    • Bridged Tokens
    • Ecosystem Partners
      • Covalent API
      • SupraOracles Price Feeds
      • SupraOracles VRF
    • Miscellaneous Contracts
Powered by GitBook
On this page
  • Contracts
  • Addresses
  • Interfaces
  • ABIs
  • Historical Contracts
  1. Contracts
  2. Summoning

Pet Hatching

Contracts

Addresses

Name
Mainnet
Testnet

DFK Chain

0x564D03ccF4A9634D97100Ec18d7770A3C4E45541

0x0f6A6A3eaAd0C25cc82E1b7dB382bEC1b70eE452

Klaytn

0x22e656419Be8A0abf0B53D0941FfDC3B70Fea36e

0x81d9256c24A2b6A5c8602989e4eb11170b459E3f

Interfaces

interface IPetHatching {

    event EggCracked(address indexed owner, uint256 indexed eggId, uint256 petId);
    event EggIncubated(address indexed owner, uint256 eggId, uint8 indexed eggType, uint8 indexed tier);
    event FeeAddressAdded(address indexed feeAddress, uint256 indexed feePercent);
    event FeeDeferred(address indexed source, address indexed from, address indexed to, address token, uint256 amount, uint64 timestamp);
    event FeeDisbursed(address indexed source, address indexed from, address indexed to, address token, uint256 amount, uint64 timestamp);
    event FeeLockedBurned(address indexed source, address indexed from, address indexed to, address token, uint256 amount, uint64 timestamp);
    event PetRerollStarted(uint256 indexed petId);
    event PetRerolled(uint256 indexed petId, tuple(uint256 id, uint8 originId, string name, uint8 season, uint8 eggType, uint8 rarity, uint8 element, uint8 bonusCount, uint8 profBonus, uint8 profBonusScalar, uint8 craftBonus, uint8 craftBonusScalar, uint8 combatBonus, uint8 combatBonusScalar, uint16 appearance, uint8 background, uint8 shiny, uint64 hungryAt, uint64 equippableAt, uint256 equippedTo) petAfter);
    
    function completePetBonusReroll(uint256 _petId);
    function crack(uint256 _eggId) returns (uint256);
    function eggTypeCosts(uint256) view returns (address eggAddress, address itemAddress1, uint16 itemAmount1, address itemAddress2, uint16 itemAmount2);
    function feeAddresses(uint256) view returns (address);
    function feePercents(uint256) view returns (uint256);
    function getEgg(uint256 _eggId) view returns (tuple(uint256 id, uint256 petId, address owner, uint8 eggType, uint256 seedblock, uint256 finishTime, uint8 tier));
    function getUserEggs(address _address) view returns (uint256[]);
    function incubateEgg(uint8 _eggType, uint8 _tier);
    function incubateEggWithLocked(uint8 _eggType, uint8 _tier);
    function multiCompleteBonusReroll(uint256[] _petIds);
    function multiCrack(uint256[] _eggIds);
    function multiIncubate(uint8[] _eggTypes, uint8[] _tiers, bool[] _useLockedTokens);
    function multiStartBonusReroll(uint256[] _petIds);
    function originId() view returns (uint8);
    function paused() view returns (bool);
    function powerToken() view returns (address);
    function priceTiers(uint256) view returns (uint8 powerTokenCost, uint16 goldCost, uint8 tearCost, uint32 incubationTime, uint16 shinyChance);
    function rerollData(uint256) view returns (uint256 petId, uint256 seedblock, bool needsProfReroll, bool needsCraftReroll, bool needsCombatReroll);
    function season() view returns (uint8);
    function startPetBonusReroll(uint256 _petId);
    function totalEggs() view returns (uint256);

}

ABIs

Historical Contracts

These contracts have been deprecated and should not be used. They are listed here for data analysis and tracking purposes only.

Harmony

Name
Mainnet
Testnet

PetHatching

0x576C260513204392F0eC0bc865450872025CB1cA

0x1263B2a59F17b829D2a53d18a2f459EB77f6801c

PreviousDark SummoningNextMeditation Circle

Last updated 1 year ago

27KB
PetHatching.json