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
  • Chain ID
  • Fees
  • Equipment Contract Mapping
  • Contract Addresses
  • Interfaces
  • ABIs
  1. Contracts
  2. Bridging

Equipment Bridge (Synapse)

The Equipment Bridge (formerly the Pet Bridge) processes the cross-chain bridging of all Pet and Equipment NFTs.

Chain ID

Bridging Pets is not available directly between Harmony and Kaia and must go through DFK Chain first. Pets cannot be sent to Harmony. Any Pets sent incorrectly may be permanently lost.

Use the following destination Chain IDs for the Equipment Bridge:

  • DFK Chain: 53935

  • Kaia: 8217

Fees

Bridging has a fee associated with each transaction. This fee must be included in the value field of the transaction. The fees for bridging Pets/Equipment are as follows:

  • Harmony to DFK Chain: 0.016 ONE

  • DFK Chain to Kaia: 0.03 JEWEL

  • Kaia to DFK Chain: 0.0018 KLAY

Equipment Contract Mapping

Use the following mappings for the _equipmentCore input on the sendEquipment function:

  • Weapon: 1

  • Accessory/Offhand: 2

  • Armor: 3

  • Pet: 4

Contract Addresses

Name
Mainnet
Testnet

Harmony

0x4e8e955E40C1Dc09BAfb685ecAdE418214068c42

N/A

DFK Chain

0x36829ba54e6A0f11fB6e5A45aC5aD2742ec86a0B

0xfD5FE9415F82374a05f6f4B47745917723577f5C

Kaia

0x5EcB820B32b60cCEd4506bd3b06C80BaFb879446

0x8f6F50CfdAB5710102b7B4240B5c97ec0AfcDf4c

Interfaces

interface IEquipmentBridge {

    event EquipmentArrived(uint256 indexed equipmentId, uint16 indexed equipmentType, uint256 arrivalChainId);
    event EquipmentSent(uint256 indexed equipmentId, uint16 indexed equipmentType, uint256 arrivalChainId);
    event PetArrived(uint256 indexed petId, uint256 arrivalChainId);
    event PetSent(uint256 indexed petId, uint256 arrivalChainId);

    function equipmentTypes(uint16) view returns (address);
    function heroBridgeAddress() view returns (address);
    function pets() view returns (address);
    function sendEquipment(uint256 _equipmentId, uint16 _equipmentCore, uint256 _dstChainId) payable;
    function sendPet(uint256 _petId, uint256 _dstChainId) payable;

}

ABIs

PreviousHero Bridge (LayerZero)NextEquipment Bridge (LayerZero)

Last updated 4 months ago

21KB
EquipmentBridgeUpgradeable.json