A Scala SDK for the iExec decentralised computing platform
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo/src/main/scala/ec/iex
project
sdk/src/main
utils
.gitignore
.gitmodules
LICENSE
README.md
assembly.sbt
build.sbt
version.sbt

README.md

iExec Scala SDK (Small Development Toolkit...)

Pre-requisites

Import iExec wallet into geth

geth account import ./iexec_wallet_priv.key

Generate contracts wrappers with web3j

npm install
truffle compile --all --network ropsten
for c in $(pwd)/build/contracts/*.json; do web3j truffle generate $c -o /tmp/Factorial -p ec.iex; done

Build and run

Clone

  • Fetch codebase and its submodules

git clone --recursive https://github.com/jopasserat/iexec-scala-sdk

(Re-)Generate solidity contract wrappers

  • This should only be needed when updating the PoCo submodule
  • From the top level directory of this repository, run:
for c in sdk/src/main/resources/PoCo/deployed/contracts/*.json; do
  web3j truffle generate $(pwd)/$c -o $(pwd)/abiWrapper/ -p ec.iex
done

Run demo

sbt "project demo" run

Separate project for SDK

sbt "project sdk" compile