Documentation

ProximaX Supercontracts Rust SDK

Official ProximaX Supercontracts SDK Library in Rust lang.

Getting Started

All Supercontracts stuff include in dependency: toml [dependencies] xpx_supercontracts_sdk = "0.1"

To start new development new Supercontrac follow this steps: 1. cargo new sc-app

  1. Add to Cargo.toml: toml [dependencies] xpx_supercontracts_sdk = "0.1"

  2. Add to src/main.rs: ```rust extern xpxsupercontractssdk; use xpxsupercontractssdk::utils::ping;

[no_mangle]

pub extern "C" fn app_main() -> i64 { ping(100).unwrap() } ```

  1. Build: cargo build --target wasm32-unknown-unknown --release
  2. If build success result contains in: target
  3. Convert to Wat/Wast format: wasm2wat sc-app

SDK Documentation

See Docs directory.

Exampels

License: Apache 2.0

Copyright (c) 2019 ProximaX Limited