-
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.
Merge pull request #368 from invariant-labs/add-vara-sdk-docs
add vara sdk docs
- Loading branch information
Showing
3 changed files
with
812 additions
and
4 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
``` |
Oops, something went wrong.