![github-banner](https://user-images.githubusercontent.com/98164067/154848582-58988e81-6a89-4c5f-bdae-ec83478e245c.png)
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.
chmod u+x ./scripts/init.sh
./scripts/init.sh
cargo b --profile production
Tips: The binary will be generated under
target/production/manta
.
Currently, there are two developing branches:
manta
: Manta Network/Calamari Network's parachain runtimedolphin
: Dolphin testnet runtime (a standlone testnet runs its own consensus)
Manta/Calamari's version number:
v<x>.<y>.<z>
where:
<x>
is the major version, i.e. major product release.<y>
is the middle verison, i.e. adding major features.<z>
is the minor version, i.e. performance improvement and bug fixes.
- please submit your code through PR.
- please run
cargo +nightly fmt
before pushing your code.
the publish draft releases workflow builds:
- manta the manta/calamari parachain executable
- wasm runtimes:
- manta the manta parachain wasm runtime
- calamari the calamari parachain wasm runtime
the workflow is triggered whenever a tag containing a semver is pushed to the github repo. if you have a branch derived from the manta branch, you may trigger a ci-build and create a draft release (only available to Manta-Network org members) with commands similar to the following:
# clone the repo and checkout the `manta` branch
git clone --branch manta [email protected]:Manta-Network/Manta.git
# create a new branch called `my-awesome-feature`, derived from branch `manta` which contains the ci build workflow
git checkout -b my-awesome-feature manta
# ... add my awesome feature ...
git add .
git commit -m "added my awesome feature"
# create a tag pointing to the last commit that is also named with the semver and latest commit sha `v3.0.0-<short-git-sha>` (eg: `v3.0.0-abcd123`)
git tag -a v3.0.0-$(git rev-parse --short HEAD) -m "manta and my awesome feature"
# push my awesome feature branch **and** my new tag to origin (github)
git push origin my-awesome-feature --tags
now you can watch the ci build your awesome feature and publish your draft release on the actions tab. note that draft releases become available relatively quickly, but wasm and binary artifacts are only added to the draft release when their ci build completes, which may be an hour or more after your git push.
This project's MSRV is rustc 1.57