Giter VIP home page Giter VIP logo

muon-fees-backend's Introduction

MUON fees backend

This project manages the fee computations for requests on the MUON network.

##How it works A group of trusted entities is carefully chosen to operate this fee server and oversee the fee processing. These entities run the "fees backend" project on dedicated servers, and their addresses are included as fee service providers within the Muon Core's configuration.

The rationale behind having multiple servers, rather than a single one, is to enhance trustworthiness and reduce reliance on a single endpoint.

Users can deposit fees into different contracts on various blockchain networks. The list of all contracts that need to be checked to determine the total balance of a user is defined in the URL 'config/contracts.json'.

Installation

First, run npm i to install the project's dependencies. Make a copy of the .env.example file and rename it to .env.

In the .env file, Set the MongoDB connection in the MONGODB_CS variable and establish the appropriate Redis connection by providing the REDIS_URL.

Then place the signer's private key in the SIGNER_PK field and its corresponding public key in the SIGNER field.

Inside the MUON node's global configuration file, located at config/global/default.net.conf.json, there's an object dedicated to the fee server configuration:

"fee": {
    "endpoint": "__URL_TO_FEE_SERVER__",
    "signers": [
      "__SIGNER_PUBLIC_KEY__"
    ]
},

The address for the fee server instance needs to be set within this object, and the same signer's public key must also be added here.

##Running fee server You can initiate this project by executing the npm start command.

muon-fees-backend's People

Contributors

bakhshandeh avatar fofaraz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.