EOS Smart Contracts Development Environment set up with Docker

in eos •  7 years ago  (edited)

Minimal commands to run a Smart Contract on EOS

Just set up the environment as shown in the video and run the commands below. You don't need to execute the rows which start with #

EOS Dev environment ready!
❯ /playground

cleos wallet create
cp contracts/hello/ . -R
eosiocppfix -o hello/hello.wast hello/hello.cpp

### NOTE: You can generate or import new keys
## cleos create key
# Private key: 5J21F3YcGvnACPUsAgd7qgnddFQaJtiEPYEMFWerzxrDkwsVRQc
# Public key: EOS8Dx6iX3L6q6Nzs6pqVaqbskhYH3APEo55eVw1S6N1ZF5T87Eqo 
## cleos wallet keys

cleos wallet import 5J21F3YcGvnACPUsAgd7qgnddFQaJtiEPYEMFWerzxrDkwsVRQc
cleos create account eosio mycontract EOS8Dx6iX3L6q6Nzs6pqVaqbskhYH3APEo55eVw1S6N1ZF5T87Eqo EOS8Dx6iX3L6q6Nzs6pqVaqbskhYH3APEo55eVw1S6N1ZF5T87Eqo
cleos set contract mycontract hello/ -p mycontract
cleos push action mycontract hi '["luigi"]' -p mycontract
executed transaction: 44c889aa0a4fb7fe4ca3c52274dc37e48ad1633883a69349f33083847bee91be  232 bytes  102400 cycles
#    mycontract <= mycontract::hi               {"user":"luigi"}
>> Hello, luigi

Congratulation, You deployed your first Smart Contract on EOS local Testnet blockchain!

⚡ Here is the second part How to create a token on the EOS Blockchain https://steemit.com/utopian-io/@luigi-tecnologo/how-to-create-a-token-on-the-eos-blockchain

steem

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thanks for setting up the docker container, makes it a lot easier to get started.

glad you liked it