Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
neo-python-workshop
Search
____easy
September 30, 2018
0
190
neo-python-workshop
2018/09/30 NEO勉強会 #1
____easy
September 30, 2018
Tweet
Share
More Decks by ____easy
See All by ____easy
dBFT_consensus_as_distributed_system
____easy
2
730
overviewofneo
____easy
0
240
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.8k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
14
1.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Building Applications with DynamoDB
mza
94
6.4k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
104
19k
A Tale of Four Properties
chriscoyier
158
23k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Typedesign – Prime Four
hannesfritz
41
2.6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
Transcript
NEOεϚʔτίϯτϥΫτ ϓϩάϥϛϯά with Python NEOϫʔΫγϣοϓ 20189݄30 NEO KEYMAKERS JAPAN
ΞδΣϯμ ɾ)BOET0O neo-pythonͷηοτΞοϓ ɾ)BOET0O ؆୯ͳεϚʔτίϯτϥΫτ ɾ)BOET0O ಠࣗ௨՟/&1ͷൃߦ ɾ)BOET0O NEX ICOςϯϓϨʔτʢ͕࣌ؒ͋Εʣ
NEOΫϥΠΞϯτͷछྨ NEO-GUI NEO-CLI NEO-Python Mac Windows Linux Not yet Not
yet
NEOΫϥΠΞϯτͷػೳ NEO-GUI NEO-CLI NEO-Python ίϚϯυϥΠϯ εϚʔτ ίϯτϥΫτ API
Hands-On0: ηοτΞοϓ ɾ%PDLFSͷΠϯετʔϧ ɾ1ZUIPOͷΠϯετʔϧ https://store.docker.com/editions/community/docker-ce-desktop-mac https://qiita.com/____easy/items/0d9a0fd7d6a2c2367f18
Hands-On1: neo-pythonͷηοτΞοϓ CityOfZion͕࡞ͬͨDockerΠϝʔδΛར༻ͯ͠ɺϓϥΠϕʔτ ωοτͷڥΛ࡞Δ Dockerࢀߟɿhttps://morizyun.github.io/docker/about-docker-command.html neo-pythonڥߏஙࢀߟɿhttps://goo.gl/ut9KjL
Hands-On2: ؆୯ͳεϚʔτίϯτϥΫτ εϚʔτίϯτϥΫτͰ “Hello World”Λදࣔͤ͞Δ·ͰͷྲྀΕ neo-pythonεϚʔτίϯτϥΫτࢀߟɿhttps://goo.gl/2Fj3H7 build import contract testinvoke
.pyϑΝΠϧ͔Β .avmϑΝΠϧʹม εϚʔτίϯτϥΫτΛ ωοτϫʔΫʹEFQMPZ εϚʔτίϯτϥΫτͷ ϝιουͷݺͼग़͠
Hands-On2: ؆୯ͳεϚʔτίϯτϥΫτ εϚʔτίϯτϥΫτͰ “Hello World”Λදࣔͤ͞Δ neo-pythonεϚʔτίϯτϥΫτࢀߟɿhttps://goo.gl/2Fj3H7 def Main(): print("Hello World")
neo> config sc-events on neo> build 1-print.py test 07 05 True False
Hands-On3: ಠࣗ௨՟/&1ͷൃߦ EthereumͷERC20τʔΫϯͱಉ͡ϝιουΛ࣮ neo-python NEP5ൃߦࢀߟɿhttps://goo.gl/JF8Gb7 def DoTransfer(t_from, t_to, amount): def
DoTransferFrom(t_from, t_to, amount): def DoApprove(t_owner, t_spender, amount): def GetAllowance(t_owner, t_spender): def BalanceOf(account): neo> build NEP5.py test 0710 05 True False name []
Hands-On4: NEX ICOςϯϓϨʔτ 1. ։࢝࣌ؒɺऴྃ࣌ؒͳͲΛఆΊͯ*$0ΛΧελϚΠζ͢Δ neo-python ICOςϯϓϨʔτࢀߟɿhttps://goo.gl/gcM8QC neo> build ico_template.py
test 0710 05 True False name [] neo> testinvoke {ίϯτϥΫτΞυϨε} mintTokens [] —attach-neo=500 2. ICOʹࢀՃ͢Δ