Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add vara sdk docs #368

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions docs/docs/vara/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ This section provides detailed instructions on how to install the Invariant prot
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
#### Add wasm32 target
#### Install rust and add wasm32 target
```bash
rustup target add wasm32-unknown-unknown
rustup install 1.78
rustup target add wasm32-unknown-unknown --toolchain 1.78
```
#### Install wasm-opt
```bash
cargo install wasm-opt --locked
```

## Build Protocol
Expand All @@ -31,18 +36,33 @@ git clone git@github.com:invariant-labs/protocol-vara.git
#### Build contract

```bash
cargo build
chmod +x ./build.sh
./build.sh dev
```

#### Build in release mode

```bash
cargo contract build --release
chmod +x ./build.sh
./build.sh
```

#### Run tests

```bash
chmod +x ./tests.sh
./tests.sh
```

## SDK
To build SDK go to the dedicated folder [SDK](https://github.com/invariant-labs/protocol-vara/tree/master/sdk)
#### Build sdk
```bash
chmod +x ./build.sh
./build.sh
```
#### Run sdk tests
```bash
chmod +x ./tests.sh
./tests.sh
```
Loading
Loading