Code Monkey home page Code Monkey logo

mangata-node's Introduction

Mangata brand

Mangata Node

Omnichain zk-rollup for L1-grade native liquidity. Implementation includes MEV solution, Proof-of-Liquidity, gas-free swaps, algorithmic buy & burn, weight voting & liquidity gauges, time-incentivized liquidity provision, 3rd party incentives, and more.

Themis

Issues Pull Request GitHub last commit Build Status Language

Description

Mangata operates as a cross-chain liquidity protocol, facilitating seamless transactions between Ethereum and various other blockchains through a omnichain zk-rollup Infrastructure. We leverage the power of ZK-rollup, a second-layer (L2) solution, to ensure universal connectivity with first-layer (L1) blockchains. Additionally, our decentralized exchange platform is designed to provide robust protection against Miner Extractable Value (MEV) and frontrunning attempts, thereby safeguarding the interests of our users.

API

Mangata API Docs

Build mangata-node locally

Compile mangata-node binary and wasms artifacts

  • use docker wrapper for cargo to build mangata-node
./docker-cargo.sh build --release -p mangata-node

build artifacts will be placed in <REPO ROOT>/docker-cargo/release

Run tests and generate code coverage report

Run unit tests only:

cargo test

Run unit tests and generate code coverage report in html format:

cargo install cargo-tarpaulin
cargo tarpaulin --timeout 120 --workspace -e runtime-integration-test mangata-node common-runtime mangata-kusama-runtime mangata-rococo-runtime --exclude-files **/mock.rs **/weights.rs **/weights/* --out Html

Generate docker image

You can use build-image.sh script to build & generate docker image

./scripts/build-image.sh mangatasolutions/mangata-node:dev

or you can use already compiled build atributes generated in previous step

SKIP_BUILD=1 BUILD_DIR=./docker-cargo/release ./scripts/build-image.sh

This will generate new local docker image mangatasolutions/mangata-node:dev

Run

In order to run mangata-parachain locally one need to set up both:

  • local relay network
  • local parachain network

Because of number of parameters is quite troublesome thats why we came up with dedicated dockerized environment.

Set up network using parachain-launch

Dockerized setup requires you to build development docker image mangatasolutions/mangata-node:dev.

Start docker environment using, you need to

cd ./launch
yarn install
yarn gen
yarn up

once started, you can access nodes using port forwards

Docker setup can be stopped using

cd ./launch
yarn down

Sudo access

Alice is set as sudo account for parachain-launch docker setup

Mangata node configuration

There is number of chain configurations available for both development and production environements:

chainspec (--chain) Sudo Description
mangata-kusama ******* production kusama public mainnet
mangata-kusama-local Alice development kusama local testnet
mangata-rococo ******* production rococo public testnet
mangata-rococo-local Alice development rococo local testnet

mangata-node's People

Contributors

0xbasar avatar alexchetverov avatar algoeddy avatar andkoo avatar ashi20192020 avatar c410-f3r avatar codebyeddy avatar danforbes avatar devdanco avatar eddyjlsh avatar gleb-urvanov avatar goncer avatar istrike7 avatar jeluard avatar joshorndorff avatar kaichaosun avatar majusko avatar mateuszaaa avatar omaksi avatar petou avatar riusricardo avatar shawntabrizi avatar stanieltron avatar tenequm avatar tomen avatar tripleight avatar vanderian avatar

Stargazers

 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.