Documentation
  • INTRODUCTION
  • USERS
    • White Paper
    • Main features of CyberWay
    • Bandwidth differences between EOS and CyberWay
    • Bandwidth implementation
    • How to Launch EOS dApps on CyberWay
    • Glossary
  • DEVELOPMENT ENVIRONMENT
    • Core Concepts
    • 1 Before You Begin
    • 2 Install the CDT
    • 3 Create Development Wallet
    • 4 Start keosd and nodeos
    • 5 Create Test Accounts
  • SOFTWARE MANUALS
    • Core
      • nodeos
      • cleos
      • keosd
      • cyberway.cdt
    • How To Guides
      • How To Ban An Unwanted Account
      • How To Calculate Reward For An Author
      • How To Calculate Reward For A Beneficiary
      • How To Calculate Reward For A Curator
      • How To Create A Wallet
      • How To Create An Account
      • How To Create A Proxy Account
      • How To Create Key Pair
      • How To Delegate Resources
      • How To Deploy A Node Using A Snapshot
      • How To Deploy A Smart Contract
      • How To Get Account Information
      • How To Get Block Information
      • How To Get Transaction Information
      • How To Import A Key
      • How To Link Permission
      • How To List All Key Pair
      • How To Stake Tokens
      • How To Stop A Node Using Docker
      • How To Submit A Proposal For HardFork
      • How To Transfer Tokens To A Worker
      • How To Undelegate Resources
      • How To Unlink Permission
      • How To Unstake Tokens
      • How To Vote
    • API Reference
      • Nodeos Chain API
      • Nodeos Producer API
      • Nodeos Net API
    • Cleos Command Reference
      • Convert
      • Create
      • Get
      • Multisig
      • Net
      • Push
      • Set
      • Sign
      • System
      • Transfer
      • Version
      • Wallet
    • Explorer Command Reference
      • How To Check Your Balance
      • How To Find Out Account ID
      • How To Convert Golos To Golos Power And Vice Versa
      • How To Stake Tokens CYBER
      • How To Transfer Funds From One Account To Another
      • How To Transfer Funds From Pending to Liquid
      • How To Bay Stake
      • How To Withdraw Stake
      • How To Vote For A Validator
      • How To Revoke Your Vote For A Validator
      • How To Bay Vesting Using Explorer
      • How To Vote For A Witness
      • How To Revoke Your Vote For A Witness
  • DEVPORTAL
    • System Contracts
      • BIOS
      • Domain names
      • Govern
      • Multi-Signature
      • Stake
      • Tokens
    • Application Contracts
      • Golos Contracts
        • Charge
        • Control
        • Emission
        • Publication
        • Referral program
        • Social
        • Vesting
        • Memo-keys
        • Determining Rewards for a Post
    • Guide to Creating and Deploying an Application on CyberWay
      • 1 Preliminary Work
      • 2 Creating a Simple Contract
      • 3 Creating Tokens
      • 4 Understanding ABI Files
      • 5 Data Persistence
      • 6 Secondary Indexes
      • 7 Adding Inline Actions
      • 8 Inline Action to External Contract
      • 9 Conclusion
    • The cyberway_wallet designed for the Bittrex market
    • The Event Model
  • VALIDATORS
    • Testnet Installation Guide
      • 1 General
      • 2 Configuring the Docker Image
      • 3 Create Container
      • 4 Connecting to a Node
      • 5 List of Commands Applicable to Any Kind of Container
    • Mainnet Connection Guide
      • Docker-Compose Start-up Instructions
      • APPENDIX A
      • APPENDIX B
    • Golos Blockchain Transit
    • How to join CyberWay for those who are interested in being validators ?
    • Stake Usage Guide
    • Regulations for CyberWay validators. Voting for Validators
Powered by GitBook
On this page
  • Install cyberway.cdt on local server
  • Clone the cyberway.cdt repository
  • Build binaries
  • Install tools
  • Uninstall
  • Important
  1. DEVELOPMENT ENVIRONMENT

2 Install the CDT

This section provides guidance on how to install cyberway.cdt tools on your server.

The CyberWay Contract Development Toolkit (CyberWay CDT) is based on EOSIO CDT and is a collection of tools related to contract compilation. CyberWay CDT is primarily used for compiling contracts and generating ABI.

It is recommended to build and debug contracts on a specific server. Therefore, the server where CDT is installed, must meet the following characteristics (or above):

  • RAM size (a min. of): 8 GB

  • disk space (a min. of): 20 GB

One of the following operating systems must also be installed on the server:

  • Ubuntu 16.04

  • Ubuntu 18.04

  • MacOS Darwin 10.12 (or later versions)

  • Centos 7

  • Fedora 25 (or later versions)

  • Mint 18

Attention

  • If you have previously installed CyberWay.CDT, run the uninstall.sh script (it is in the root of CyberWay.CDT repository) before downloading and using the binary releases.

Install cyberway.cdt on local server

Installing cyberway.cdt requires you to perform the following actions: 1. Cloning the cyberway.cdt repository to your server 2. Building binaries 3. Tools installation

The last two actions are performed by scripts build.sh and install.sh located in the root of cyberway.cdt. These scripts are universal and designed for all operating systems supported by the CyberWay platform.

Clone the cyberway.cdt repository

The location where cyberway.cdt is cloned is not that important because cyberway.cdt will be installing as a local binary in later steps. You can clone cyberway.cdt to "contracts" directory previously created or to any other location on your local system that is fit.

 $ cd CONTRACTS_DIR
 $ git clone --recursive https://github.com/cyberway/cyberway.cdt

Build binaries

 $ cd cyberway.cdt
 $ ./build.sh

Install tools

 $ sudo ./install.sh

The following tools will be installed to your local machine:

  • cyberway-abidiff

  • cyberway-cpp

  • eosio-abigen

  • eosio-cc

  • eosio-init

  • eosio-ld

  • eosio-objcopy

  • eosio-pp

  • eosio-wasm2wast

  • eosio-wast2wasm

  • llvm-ar

  • llvm-nm

  • llvm-objdump

  • llvm-ranlib

  • llvm-readelf

  • llvm-readobj

  • llvm-strip

Uninstall

 $ cd cyberway.cdt
 $ sudo ./uninstall.sh

The install.sh and uninstall.sh scripts need to be ran with sudo because various binaries of cyberway.cdt will be installed locally. It needs to be typed computer's account password.

Important

Installing cyberway.cdt will make the compiled binary global, therefore it can be accessable anywhere. For this tutorial, it is strongly suggested that you do not skip the install step for cyberway.cdt, failing to install will make it more difficult to follow this and other tutorials and make usage more difficult in general.

Previous1 Before You BeginNext3 Create Development Wallet

Last updated 5 years ago