Skip to content

Instantly share code, notes, and snippets.

@dmytrostriletskyi
Last active July 31, 2019 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmytrostriletskyi/187bd23ff0c899d9b100f451bf6ee030 to your computer and use it in GitHub Desktop.
Save dmytrostriletskyi/187bd23ff0c899d9b100f451bf6ee030 to your computer and use it in GitHub Desktop.
asdasd
wget https://github.com/EOSIO/eos/releases/download/v1.7.4/eosio_1.7.4-1-ubuntu-16.04_amd64.deb && \
sudo apt install ./eosio_1.7.4-1-ubuntu-16.04_amd64.deb && \
mkdir contracts && cd contracts && \
keosd --http-server-address=0.0.0.0:9559 &
nodeos -e -p eosio --plugin eosio::producer_plugin --plugin eosio::chain_api_plugin --plugin eosio::http_plugin \
--plugin eosio::history_plugin --plugin eosio::history_api_plugin --http-server-address=0.0.0.0:8888 \
--access-control-allow-origin='*' --contracts-console --http-validate-host=false \
--verbose-http-errors >> nodeos.log 2>&1 &
export LC_ALL="en_US.UTF-8" && export LC_CTYPE="en_US.UTF-8" && sudo dpkg-reconfigure locales
wget https://github.com/EOSIO/eosio.cdt/releases/download/v1.6.1/eosio.cdt_1.6.1-1_amd64.deb && \
sudo apt install ./eosio.cdt_1.6.1-1_amd64.deb && \
git clone --recursive https://github.com/eosio/eosio.cdt --branch release/1.6.x --single-branch && \
cd eosio.cdt/ && ./build.sh
cd .. && git clone https://github.com/EOSIO/eosio.contracts --branch release/1.6.x --single-branch && \
cd eosio.contracts/ && \
apt-get update && apt-get install libstdc++6 -y && sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt-get update && sudo apt-get install gcc-4.9 -y && sudo apt-get upgrade libstdc++6 -y && \
./build.sh && cd contracts/
cleos wallet list
cleos wallet create --to-console -n remmefaucet
cleos wallet open -n remmefaucet
cleos wallet unlock -n remmefaucet
cleos wallet create_key -n remmefaucet
cleos wallet import -n remmefaucet
eosio public key: EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
eosio private key: 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
cleos create account eosio bob EOS7n3BKU9UcmtZnNYDj54GCMYpNH4t79uGRCZN2qEcRCdJL6NhTB
cleos create account eosio alice EOS6QLxoafVStYT1eS1MTAhWz5qQvEZi1QwmLMdNJjZ9FAuDWfMUG
cleos create account eosio eosio.token EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
cd eosio.token && \
eosio-cpp -I include -o eosio.token.wasm src/eosio.token.cpp --abigen &&
cleos set contract eosio.token /root/eosio.contracts/contracts/eosio.token --abi eosio.token.abi -p eosio.token@active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment