强烈建议直接去看EOSIO官网上的教程:https://developers.eos.io/
不要看我的??博文了,以下博文就是我当时随便写写的,现在也没有什么时间详细修改。如果有问题可以提问。
注:由于EOSIO仍在不断更新,所以以下内容的一些步骤可能会在将来某天失效。本开发手册编写时间是在2018.10至2018.11.可能会不断更新。
0 前言——About development
-
可以使用docker,但是docker 是 Setup the development environment neither the production environment。see https://developers.eos.io/eosio-home/docs
-
但是编译EOS的方式有很多种(四种:https://developers.eos.io/eosio-nodeos/docs/install-nodeos),一种是运行build_bash,一种是docker,一种是直接编译源码。对于新手而言:通过docker(我已经完成。)
-
Start develop
First you need enough general knowledge about EOS then you can use your programming skill for EOS.
编写合约:
==>创建账号:create account [OPTIONS] creator name OwnerKey [ActiveKey]
like:cleos create account eosio hello EOS5YScRTMfjR69M4k4pP5qjAzDRfxtP9DY1Rx4WrZP4JnYj4MTRP -p eosio@active
==>编译合约eosio-cpp -o hello.wasm hello.cpp –abigen
==>设置合约:cleos set contract hello $CONTRACTS_DIR/hello -p hello@active
==>运行:cleos push action hello hi ‘[“bob”]’ -p bob@active
4.EOS的ABI文件。
1 EOS开发环境搭建
所谓开发环境就是大家所理解的开发环境…不多说了。我们把区块链和操作系统做个类比吧。这一步就相当于是把操作系统在自己计算机上装好。
参见:https://developers.eos.io/eosio-nodeos/docs/getting-the-code
1.get the code
2.build
3.install executables