Upgrade to Pro — share decks privately, control downloads, hide ads and more …

neo-python-workshop

C495fa3630646c76cdf4295181e08abc?s=47 ____easy
September 30, 2018
140

 neo-python-workshop

2018/09/30 NEO勉強会 #1

C495fa3630646c76cdf4295181e08abc?s=128

____easy

September 30, 2018
Tweet

Transcript

  1. NEOεϚʔτίϯτϥΫτ ϓϩάϥϛϯά with Python NEOϫʔΫγϣοϓ 2018೥9݄30೔ NEO KEYMAKERS JAPAN

  2. ΞδΣϯμ ɾ)BOET0O neo-pythonͷηοτΞοϓ ɾ)BOET0O ؆୯ͳεϚʔτίϯτϥΫτ ɾ)BOET0O ಠࣗ௨՟/&1ͷൃߦ ɾ)BOET0O NEX ICOςϯϓϨʔτʢ͕࣌ؒ͋Ε͹ʣ

  3. NEOΫϥΠΞϯτͷछྨ NEO-GUI NEO-CLI NEO-Python Mac Windows Linux Not yet Not

    yet
  4. NEOΫϥΠΞϯτͷػೳ NEO-GUI NEO-CLI NEO-Python ίϚϯυϥΠϯ εϚʔτ ίϯτϥΫτ API

  5. Hands-On0: ηοτΞοϓ ɾ%PDLFSͷΠϯετʔϧ ɾ1ZUIPOͷΠϯετʔϧ https://store.docker.com/editions/community/docker-ce-desktop-mac https://qiita.com/____easy/items/0d9a0fd7d6a2c2367f18

  6. Hands-On1: neo-pythonͷηοτΞοϓ CityOfZion͕࡞ͬͨDockerΠϝʔδΛར༻ͯ͠ɺϓϥΠϕʔτ ωοτͷ؀ڥΛ࡞Δ Dockerࢀߟɿhttps://morizyun.github.io/docker/about-docker-command.html neo-python؀ڥߏஙࢀߟɿhttps://goo.gl/ut9KjL

  7. Hands-On2: ؆୯ͳεϚʔτίϯτϥΫτ εϚʔτίϯτϥΫτͰ “Hello World”Λදࣔͤ͞Δ·ͰͷྲྀΕ neo-pythonεϚʔτίϯτϥΫτࢀߟɿhttps://goo.gl/2Fj3H7 build import contract testinvoke

    .pyϑΝΠϧ͔Β .avmϑΝΠϧʹม׵ εϚʔτίϯτϥΫτΛ ωοτϫʔΫʹEFQMPZ εϚʔτίϯτϥΫτͷ ϝιουͷݺͼग़͠
  8. 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
  9. 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 []
  10. 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ʹࢀՃ͢Δ