-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c140b2b
commit a266096
Showing
3 changed files
with
88 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: Installation | ||
|
||
slug: /casper/installation | ||
--- | ||
|
||
This section provides detailed instructions on how to install the Invariant protocol on Casper, including prerequisites and steps for setting up the development environment. | ||
|
||
## Prerequisites | ||
|
||
- Rust & Cargo ([rustup](https://www.rust-lang.org/tools/install)) | ||
- wasm-strip ([wabt](https://github.com/WebAssembly/wabt)) | ||
- cargo-odra ([cargo-odra](https://github.com/odradev/cargo-odra)) | ||
|
||
### Rust & Cargo | ||
|
||
```bash | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
``` | ||
|
||
### wasm-strip | ||
|
||
```bash | ||
sudo apt install wabt | ||
``` | ||
|
||
### cargo-odra | ||
|
||
```bash | ||
cargo install cargo-odra --locked | ||
``` | ||
|
||
## Build protocol | ||
|
||
- Clone repository | ||
|
||
``` | ||
git clone [email protected]:invariant-labs/protocol-cspr.git | ||
``` | ||
|
||
- Build contract | ||
|
||
``` | ||
cargo odra build -b casper | ||
``` | ||
|
||
- Run tests | ||
|
||
``` | ||
cargo odra test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters