Dengjianping / Manta

The main repo for manta relay nodes and manta parachain nodes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-banner

License: GPL v3

Manta is a privacy preserving DeFi stack on Polkadot/Substrate. The code currently hasn't been properly security audited (work in progress), use it at your own risk.

Compile Manta

./scripts/init.sh
cargo build --release -p manta

Manta Developement

Currently, there are two developing branches:

  • manta: Manta Network's testnet/mainnet node
  • manta-pc: Manta Network's parachain node

Using Docker

You can run manta nodes using docker.

  • Pull latest image.
docker pull mantanetwork/manta:latest
  • Run one dev node locally.
docker run -it -p 9944:9944 mantanetwork/manta:latest --dev --tmp --alice --unsafe-ws-external
  • Run two nodes locally.
# Alice node
docker run \
-p 9944:9944 \
-p 30333:30333 \
--name=alice mantanetwork/manta:latest \
--chain=local \
--tmp \
--alice \
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
--unsafe-ws-external \
--validator

docker run \
-p 9945:9944 \
-p 30334:30333 \
--name=bob mantanetwork/manta:latest \
--bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp \
--chain=local \
--bob \
--unsafe-ws-external \
--validator

Normally, both nodes will produce and finalize blocks.

  • Connect to manta testnet.
docker run mantanetwork/manta:latest --chain manta-testnet --name "ILoveManta"

Contributing

  • use [Manta] as the prefix to submit a PR to manta branch, use [Manta-PC] as the prefix to submit a PR to manta-pc branch.
  • please submit your code through PR.
  • please run cargo +nightly fmt before pushing your code.

About

The main repo for manta relay nodes and manta parachain nodes

License:GNU General Public License v3.0


Languages

Language:Rust 98.0%Language:Shell 1.4%Language:Dockerfile 0.6%