ProximaX Supercontracts Rust SDK
Official ProximaX Supercontracts SDK Library in Rust lang.
Getting Started
All Supercontracts stuff include in dependency:
[]
= "0.1"
To start new development new Supercontrac follow this steps:
-
cargo new sc-app
-
Add to
Cargo.toml
:
[]
= "0.1"
- Add to
src/main.rs
:
extern xpx_supercontracts_sdk;
use ping;
pub extern "C"
- Build:
cargo build --target wasm32-unknown-unknown --release
- If build success result contains in:
target
- Convert to Wat/Wast format:
wasm2wat sc-app
SDK Documentation
See Docs
directory.
Exampels
- See
eamples
directory - Build specific exmaple:
cargo build --target wasm32-unknown-unknown --example ping
License: Apache 2.0
Copyright (c) 2019 ProximaX Limited