This is the boilerplate for creating EOSIO contracts
Dependency repositories:
- eos -
cleos
,nodeos
,keosd
- eosio.cdt -
eosio-cpp
,... - eosio.contracts -
eosio.bios
,eosio.msig
,eosio.system
,eosio.token
,eosio.wrap
- Oraclize EOS API header
- Linux
- WSL
- Mac
- M-1 (from setup file)
- download latest (stable) version of
.deb
file from here. - in the bash terminal
$ wget https://github.com/eosio/eosio.cdt/releases/download/v1.5.0/eosio.cdt-1.5.0-1_amd64.deb $ sudo apt install ./eosio.cdt-1.5.0-1_amd64.deb
- download latest (stable) version of
- M-2 (from scratch)
- in the bash terminal
$ git clone --recursive https://github.com/eosio/eosio.cdt $ cd eosio.cdt $ ./build.sh $ sudo ./install.sh
- Just execute
setup.sh
bash script file and run on Linux system.
Otherwise, follow the steps (detailed below):
- Repository: eosio.cdt repo.
- copy and paste the following folders from
Source:
eosio.cdt
repo:- goto the "libraries" folder:- boost
- eosiolib
Destination:
eosio-playground
- Commands for creating folder:
- boost:
svn checkout https://github.com/EOSIO/eosio.cdt/trunk/libraries/boost/include/boost
- eosiolib:
svn checkout https://github.com/EOSIO/eosio.cdt/trunk/libraries/eosiolib
- boost:
- Commands for updating folder:
- boost:
cd boost
svn update
- eosiolib:
cd eosiolib
svn update
- boost:
- copy and paste the following folders from
Source:
eosio.contracts
git repo:- goto the "libraries" folder:- eosio.bios
- eosio.msig
- eosio.system
- eosio.token
- eosio.wrap
- Commands for creating folder:
- eosio.bios:
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/eosio.bios
- eosio.msig:
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/eosio.msig
- eosio.system:
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/eosio.system
- eosio.token:
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/eosio.token
- eosio.wrap:
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/eosio.wrap
- eosio.bios:
- Commands for updating folder:
- eosio.bios:
cd eosio.bios
svn update
- eosio.msig:
cd eosio.msig
svn update
- eosio.system:
cd eosio.system
svn update
- eosio.token:
cd eosio.token
svn update
- eosio.wrap:
cd eosio.wrap
svn update
- eosio.bios:
- Repository: eos-api
- create folder inside
eosio-playground
cloned repo.:git submodule add https://github.com/oraclize/eos-api.git eos-api
- update the repo. inside
eosio-playground
cloned repo.:- M-1:
git submodule update
- M-2:
cd eos-api
git pull
- M-1: