Skip to content

CREDITSCOM/contract-executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation | Guides | News

Twitter AGPL License Build Status

Contract Executor

Contract Executor is app for deploy and execute methods of smart-contract

Used environment
How to build
Maven build compilation from sources files for contract-executor

Maven - Is a tool that can be used for building and managing any Java-based project. It is a command-line tool for building Java (and other) programs developed by Apache.

It's up to you to set up your prerequisites and environment to run Maven on Windows. Therefore, the major prerequisite needed is Java SDK installation because Maven is written in Java and primarily it is used to build Java programs.

The installation of Apache Maven implies extracting the archive and adding the bin folder with the mvn command to the PATH.

Detailed steps are:

  1. Download and install JDK and Add ‘JAVA_HOME’ Environment Variable. After installing Java you must add JAVA_HOME variable to JDK install folder. In addition, ‘java/bin’ directory must be included in ‘PATH’ variable.

  1. Download and install Maven and set the ‘M2_HOME’ and ‘MAVEN_HOME’ variables to maven installation folder. You can download Maven here.

  1. Afterward, ‘maven/bin’ directory must be included in ‘PATH’ variable also. To run maven from command prompt, this is necessary so update the PATH variable with 'maven/bin' directory.

  1. Check the installation by typing the following command in the console: mvn -version

  1. Install Git and clone the thrift-api-client repository from GitHub: https://github.com/CREDITSCOM/thrift-api-client
  2. Change to the directory by using command:_ cd_
  3. Change the working brach to dev: git checkout dev
  4. Once on the directory write the following command in the prompt to build compilation from sources files: mvn clean install

  1. Now, repeat the process for smart-contract-api repository. Clone it from the repository: https://github.com/CREDITSCOM/smart-contract-api
  2. Change the working brach to dev: git checkout dev
  3. Change to the directory by using command:_ cd. _Then build compilation from sources by using the command: mvn clean install

  1. Finally clone contract-executor repository from: https://github.com/CREDITSCOM/contract-executor
  2. Change the working brach to dev: git checkout dev
  3. Change to the contract-executor directory and build it by using:mvn clean install. If all the steps were performed properly and secuently, errors won’t be.

Build

Windows

git clone https://github.com/CREDITSCOM/thrift-api-client.git
cd thrift-api-client
git checkout dev
call mvn clean install
cd..

git clone https://github.com/CREDITSCOM/smart-contract-api.git
cd smart-contract-api
git checkout dev
call mvn clean install
cd..

git clone https://github.com/CREDITSCOM/contract-executor.git
cd contract-executor
git checkout dev
cd sc-api-support
call mvn clean install
cd..
cd contract-executor
call mvn clean install
cd..
cd..

rem Warning!!!
rem get these files with the same suffix in the target folders
rem example
rem sc-api-support-v0.8.4-b35.jar
rem contract-executor-v0.8.4-b35.jar 
rem rename them to sc-api-support.jar and contract-executor.jar -> node directory
rem DO NOT FORGET to change next lines in [api] department of node config.ini file to:
rem executor_commit_min=1518
rem executor_commit_max=1518

Ubuntu 18.04

git clone https://github.com/CREDITSCOM/thrift-api-client.git
cd thrift-api-client
git checkout dev
mvn clean install
cd ..

git clone https://github.com/CREDITSCOM/smart-contract-api.git
cd smart-contract-api
git checkout dev
mvn clean install
cd ..

git clone https://github.com/CREDITSCOM/contract-executor.git
cd contract-executor
git checkout dev
cd sc-api-support
mvn clean install
cd ..
cd contract-executor
mvn clean install
cd ..
cd ..

# Warning!!!
# get these files with the same suffix in the target folders
# example
# sc-api-support-v0.8.4-b35.jar
# contract-executor-v0.8.4-b35.jar 
# rename them to sc-api-support.jar and contract-executor.jar -> node directory
# DO NOT FORGET to change next lines in [api] department of node config.ini file to:
# executor_commit_min=1518
# executor_commit_max=1518

Resources

CREDITS Website

Documentation

Whitepaper

Technical paper

Developers portal

Credits forum

Community links

About

App for deploy and execute methods of smart-contract

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages