ABC of writing Ethereum smart contracts

手把手教你如何寫出以太坊智慧合約

Who we are

Today's workshop

  1. Basic Concepts
  2. Solidity Syntax
  3. Exercises using Play-ed

What do you need?

  1. Play-ed (solidity editor)
  2. Metamask
  3. Gitter Chat (for questions)

https://gitter.im/wizardamigosinstitute/program

1. Basic Concepts

Wallet - Generate User Account

EVM

EVM

EVM

EVM

EVM

EVM

EVM

EVM

EVM

EVM

EVM

Ethereum

EVM

EVM

EVM

Contract Accounts

User Accounts

Transactions

syncronization of blockchain copies

between ethereum nodes

Ethereum

A

 

B

 

C

 

C

EVM

Data of arbitrary length

Fixed-Length Hash

EVM

Blockhash
Blockhash
Blockhash
Blockhash

Contract Accounts

User Accounts

Transactions

EVM

EVM

between

Ethereum

EVM

-10

+10

EVM

EVM

1.

2.

3.

EVM

EVM

EVM

User Accounts

Dapp

User Accounts

User Accounts

Dapp

Dapp

= "Smart Contract Accounts"

Ethereum

DEMO TIME

Create your new external account
 


1. Install & Setup Metamask Wallet


2. Configure it to use Athereum Node


3. Come back and continue

  1. Contract Address
  2. Binary Code
  3. Value Balance
  4. Storage
  5. Memory
  6. Stack
  7. Event Log
  8. Transaction History

Transactions

Wallets send

& cryptographically

sign messages:

  1. Sender + Signature
  2. Receiver (="wallet" OR "existing contract" OR empty)
  3. Value
  4. Gas Limit
  5. Gas Price
  6. Payload (code for new contract if receiver is empty)

Next: How to program interaction between

ABC of writing Ethereum Smart Contracts

By Alexander Praetorius

ABC of writing Ethereum Smart Contracts

work in progress

  • 1,246