Skip to content

Vara-Lab/Sails-Factory-Contract-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open in Gitpod

Sails Factory Contract Template

Deploy the Contract on the IDEA Platform and Interact with Your Contract

Step 1: Open Contract on Gitpod

Gitpod

Step 2: Configure gitpod to compile the contract

  • Rust: You need to have rust 1.81 or newer to be able to compile your contract:
rustup install 1.81
rustup default 1.81
rustup target add wasm32-unknown-unknown
  • Next, you need to install the wasm-opt (to optimize WebAssembly files):
sudo apt install binaryen

Step 3: Compile and Deploy the Smart Contract

Compile the smart contract by running the following command:

cargo build --release

Once the compilation is complete, locate the wasm.opt.wasm file in the target/wasm32-unknown-unknown/release directory.

Step 4: Interact with Your Contract on Vara Network

  1. Access Gear IDE using your web browser.
  2. Connect your Substrate wallet to Gear IDE.
  3. Upload the wasm.opt.wasm and app.idl files by clicking the "Upload Program" button.

About

Sails Factory Smart Contract Template for Vara Network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages