Skip to content

Commit

Permalink
Merge pull request #368 from invariant-labs/add-vara-sdk-docs
Browse files Browse the repository at this point in the history
add vara sdk docs
  • Loading branch information
none00y authored Jul 8, 2024
2 parents 4dcfe6d + 8ea8c1b commit e9dde05
Show file tree
Hide file tree
Showing 3 changed files with 812 additions and 4 deletions.
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 [email protected]: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

0 comments on commit e9dde05

Please sign in to comment.