Application-specific blockchain for decentralized exchange, a parachain in Polkadot ecosystem. Implementation includes MEV solution, Proof of Liquidity and no gas economy.
Reliable decentralized exchange (DEX) blockchain - interoperable with other blockchains using Polkadot. The exchange is using a consensus algorithm that solves MEV/frontrunning problems and makes all participants' access to trading opportunities equal.
The design of the blockchain guarantees fixed-fees that provides greater control of trading costs and higher arbitrage opportunity. Assets on the exchange will serve multiple purposes- at the first iteration, they are the block producer’s stake and exchange liquidity at the same time, and more comes later.
Follow these steps to prepare a local Substrate development environment 🛠️
Install all the required dependencies with a single command (be patient, this can take up to 30 minutes).
curl https://getsubstrate.io -sSf | bash -s -- --fast
Find manual setup instructions at the Substrate Developer Hub.
Recommended rustc version for the build is nightly-2021-10-19
Environment variables for ethereum apps should be set up before the build:
ETH_APP_ID=0xdd514baa317bf095ddba2c0a847765feb389c6a0
ERC20_APP_ID=0x00e392c04743359e39f00cd268a5390d27ef6b44
build node:
rustup target add wasm32-unknown-unknown
cargo build --release
./scripts/build-mangata-node-docker-image.sh
Purge any existing dev chain state:
./target/release/mangata-node purge-chain --dev
Start a dev chain:
./target/release/mangata-node --dev
cd ./devops
docker-compose up
sh scripts/build-multi-validator-mangata-node-docker-image.sh
docker-compose -f devops/multi-validator-docker-compose.yml up
Export RUSTFLAGS
export RUSTFLAGS="-g"
Build node:
cargo build --release
Run node:
RUSTFLAGS="-g" cargo run -j12 --release -- --tmp --dev
Go to VS code and attach the process!