-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Document/Implement Eosio SDK #246
Comments
Related to this would be integration of a tool that automatically generates mycontract.abi based upon comments / annotations within contract. Not necessary to close this issue, just adding it to the list of tools that need to be included in the final SDK. |
awesome |
Tried making a CMake project which includes the various SDK components as subdirectory projects, and builds and installs the relevant targets only... This is not something CMake supports, and I ran into dead ends with every dirty hack and workaround I tried, so I've ditched CMake and am now evaluating using a simple shell script that downloads, builds, and assembles the SDK. |
Rolling with the shell script for now, because it makes things work. I've written a super basic eoscpp now; all that remains is to put together a skeleton project w/ test cases |
Ported contract project w/ cmake to build w/ eoscpp. Using that as the basis for the skeleton project. No test cases as yet. |
Todo:
|
It has been decided that the SDK should be part of Eos, rather than Eos part of the SDK which is the typical pattern. This is because we want to build and run Eos contracts as part of the Eos build and test process. To accomplish this, it is proposed to put the build script (presently Todo:
|
We will break this task into following staged steps:
|
Initial version completed. |
@nathanhourt @pavybez we not able to compile the code. Getting below errors. Please provide assistance. Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. The output was: |
Added support for non-type template params and fix issue with typedefs to template types.
Goal:Have Eosio SDK which contains everything necessary to write, build, and test Eos contracts on a Linux operating system.
[Goalposts moved, see comments below; the below description is no longer valid, but provides useful context]
Components of the SDK:
SDK installs to /opt/eosiosdk, and contains all of the above components in a standard Linux software directory structure:
How to develop an Eosio contract:
eoscpp --newcontract mycontract
cmake .
Makefile
or equivalentmake
or equivalenteoscpp
to compilemycontract.cpp
tomycontract.wast
make test
or equivalentmycontract.wast.hpp
frommycontract.wast
mycontract.wast.hpp
eosc contract mycontract mycontract.wast mycontract.abi
The text was updated successfully, but these errors were encountered: