Smart Contracts SDK

Learn how to use the ZP Smart Contract SDK to write, compile and test smart contracts in the ZF* language.

Zen-SDK Repo -> https://github.com/zenprotocol/ZFS-SDK

Installation

From Source

You will need to have mono installed. Instructions for your OS can be found here. For Linux, you will need either the mono-devel or mono-complete package. Do not install mono from your package manager - follow the instructions on the mono website.

Linux

  • Clone this repo

  • Run the following commands. Note that this could take a few minutes.

  • cd ZFS-SDK

  • ./paket restore

  • ./build.sh

OSX

  • Clone this repo

  • Run the following commands. Note that this could take a few minutes.

  • cd ZFS-SDK

  • mono paket restore

  • ./build.sh

From NPM

OSX

  1. Install mono-devel. If you choose to install via a package manager, add Mono's own repository first.

  2. Install Nodejs

    1. Recommended to install using NVM

    2. Recommended to install Node LTS nvm install 8.9.4

Windows

  1. Install Nodejs (LTS version recommended)

Linux

  1. Install mono-devel. If you choose to install via a package manager, add Mono's own repository first.

  2. Install Nodejs (Version >= 6)

    1. Recommended to install using NVM

    2. Recommended to install Node LTS (8.9.4) nvm install --lts

Point your npm directory to our repository

Run the following commands in the Terminal / Command Prompt:

Installing / Updating

Run the following commands in the Terminal / Command Prompt:

Usage

create

elaborate

verify

extract

compile

pack

generate-fsx

run-fsx

contractid

acost

info

Last updated