Mangata Substrate
UNLICENSE License
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.
mangata-node
./docker-cargo.sh build --release -p mangata-node
build artifacts will be placed in <REPO ROOT>/docker-cargo/release
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
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
In order to run mangata-parachain locally one need to set up both:
Because of number of parameters is quite troublesome thats why we came up with dedicated dockerized environment.
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
Alice
is set as sudo account for parachain-launch docker setup
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 |