MegaYours Docs
  • 🚀MegaYours
    • Extending your on chain data
  • 💾Megadata
    • Solana Integration
  • 🌎Yours Protocol
    • 🤔Getting Started
      • Setting up Your Project
      • Creating Your First Module
      • Creating & Minting Tokens
      • Composable Tokens
      • Making Your Tokens Interoperable
    • 💱Tokens
      • Types
      • Functions
      • Unique Identifier
    • 🧩Modules
      • 🔌Attaching Modules
      • 🌈Relationships
      • 🎭ERC1155
      • 📚Declaration
      • 👾External
    • 📄Metadata
    • 🔗Interoperability
    • 🔄Migration from Originals
      • FT3
      • Interfaces
      • Prototype
  • 👾Import Existing Tokens from any Chain
    • 🛰️Gamma Chain
  • 🔗Links
    • Github: Yours Protocol
Powered by GitBook
On this page

Was this helpful?

  1. Yours Protocol
  2. Modules

Declaration

Yours Protocol provides metadata for explorers and users which modules are supported in each dapp. In order to make your module show up in explorers you have to extend the following function.

@extend(yours.module_metadata)
function module_metadata() {
  return [
    yours.module_info(
      name = "characters",
      version = 1,
      description = "Defines how a demo character looks like"
    )
  ]
}

This is fully optional but it is recommended if you want to provide information about your module and make it re-usable.

PreviousERC1155NextExternal

Last updated 4 months ago

Was this helpful?

🌎
🧩
📚