Skip to content

NeoBlocks/hackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEO

NEO Smart Economy Workshop

Introduction

Please find the Slides for the workshop here.

Welcome to the NEO Smart Economy hackathon on Wednesday 4 September in Amsterdam. During the hackathon, please join us on our Flock chat channel, so we can communicate with each other and share questions and information.

Flock

You can enter your e-mail address and join.

Preparing your environment

Make up teams and share the various tasks between the participants.

Setup your workstation

Make sure you have Git and Docker installed. Start pulling the image and clone the workshop repository. Now you can connect to our dedicated private network and start using the NEO blockchain.

Instructions for Linux:

# Install packages
sudo apt install git docker.io

# Create a working directory and pull the Git repository
mkdir ~/smarteconomy
cd ~/smarteconomy
git clone https://github.com/NeoBlocks/hackathon.git

# Pull the Docker image and create a local container
mkdir ~/smarteconomy/data
sudo docker run -it --name hackathon-node -v ~/smarteconomy/data:/app/data --restart=unless-stopped neoblocks/hackathon

On Mac or Windows

Once installed, please pull the image and run the container.

git clone https://github.com/NeoBlocks/hackathon.git
sudo docker run -it --name hackathon-node -v ~/smarteconomy/data:/app/data --restart=unless-stopped neoblocks/hackathon

You can always detach from the container with Ctrl-P-Q and then reattach with docker attach hackathon-node

Interacting with your wallet

Once you have your NEO console open, you can create a wallet. With the built-in compiler you can easily compile and deploy Python smart contracts to the blockchain. Ask us to send you some GAS when you are ready to deploy the first contract.

# Create a new wallet
wallet create /app/data/wallet.json

# Now check your wallet
wallet

# We can now add the script hash for the Workshop Euro token:
wallet import token 0x0547ad0e6bd7bbac7781f95218454c53bc44275d

In the bottom of the screen you will see the progress of your node synchronization. Make sure the node is fully synced before sending any transactions. The wallet needs to be up to sync as well. Type wallet to check the synchornization status. If at any time you feel like something is not quite okay with your wallet or balances, you can use wallet rebuild to start syncing from scratch. This should take a couple of minutes. In the wallet overview you can also check your address and your address script hash, that should look like this:

Script hash b'\xadU\xc1QmV\x19;\x17\x7flq\xc7\x97\xeb\x18J\xba\x16\xe2' <class 'bytes'>

Share your address on Flock to receive some virtual EUR tokens.

Spending tokens or assets

You can use your EUR balance to send some tokens to your neighbour.

wallet send EUR AMd14Q5C6YYGrz1cQA7GjfhgaNagrUkYzP 5 --from-addr=AH5HhymNXdQ14W4CbFjoqmkRPAcrjpSZRT

Now both check your wallet and notice that the tokens have moved:

wallet

Challenges

Please make sure to check out our neo-boa code examples and documentation first.

When you are ready, go to the challenge page to read about the challenge.

Good Luck!

About

NEO Smart Economy Hackathon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published