Muon
latest

Basics

  • Introduction to Muon Apps
  • Structure of a Muon App

Samples

  • TWAPER (Price Feed App)
Muon
  • Muon Development Documentation
  • Edit on GitHub

Muon Development Documentation

Muon is a decentralized optimistic oracle network that carries out data requests from any source. It acts as a unique inter-blockchain data-availability network that makes messaging and secure data interfacing possible between different chains that are otherwise incompatible.

Contents

Basics

  • Introduction to Muon Apps
    • What is a Muon App?
    • A Simple Oracle App
    • Deploying the App
    • Verifying Signatures on the Contract
  • Structure of a Muon App
    • Functions
      • onRequest
      • signParams
        • How to Use Gateway Data
    • Memory
    • Utilities

Samples

  • TWAPER (Price Feed App)
    • Calculating TWAP of a Pair
      • Obtaining Price Changes
      • Listing the Price for Each Block
      • Detecting Outliers
      • Applying Fuse Mechanism
        • Calculating Fuse Price
        • Updating priceCumulativeLast
      • Obtaining the Pair Price
    • Calculating TWAP of Routes
      • Calculating Prices of Routes
      • Loading the Configuration
    • Calculating the TWAP of an LP Token
    • Handling the Request
      • Method: price
      • Method: lp_price
Next

© Copyright 2021, Graziella. Revision aed2f00d.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds