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

DApp Questのコントラクト開発

DApp Questのコントラクト開発

Katsunori Tanaka

February 21, 2019
Tweet

More Decks by Katsunori Tanaka

Other Decks in Programming

Transcript

  1. ߹ಉձࣾ%..DPNాதࠀయ
    CMPDLDIBJOUPLZPɹ
    !CMPDLDIBJOUPLZP
    %"QQ2VFTUͷίϯτϥΫτ։ൃ

    View full-size slide

  2. © DMM.com
    ࣗݾ঺հ
    ాதࠀయ
    w !FDPV⒎FT@
    w FDPVGFT HJUIVC

    w 'SPOUFOE˰.JEEMF.BOBHFS˰
    #MPDLDIBJO
    ߹ಉձࣾ%..DPNςΫϊϩδʔຊ෦
    ϒϩοΫνΣʔϯݚڀࣨ


    View full-size slide

  3. © DMM.com
    Ξ΢τϥΠϯ
    0VUMJOF
    w 2VFTU֓ཁ
    w ίϯτϥΫτઃܭɾ։ൃ؀ڥ
    w ίϯτϥΫτͷςετɾηΩϡϦςΟ
    w ޻෉ͨ͠఺ۤ࿑ͨ͠఺
    w ·ͱΊ

    View full-size slide

  4. © DMM.com
    2VFTU֓ཁ

    View full-size slide

  5. © DMM.com
    2VFTU֓ཁ
    %"QQ2VFTUͱ͸
    w ίϛϡχςΟʔͷϗετ ӡӦऀ
    ͕ઃఆͨ͠ςʔϚʹରͯ͠ήετ ࢀՃ

    ͕࣭໰Λ౤ߘ͠ɺͦͷ࣭໰Λ௨ֶͯ͡ͼΛ୳ٻ͍ͯ͘͠ϓϩμΫτ
    w ϗετ͕ʮϧʔϜʯͱݺ͹ΕΔ࣭໰Λ౤ߘͰ͖Δ৔ॴΛ࡞੒
    w ࣭ͷߴ͍࣭໰Λ౤ߘ͢ΔΠϯηϯςΟϒͱͯ͠ɺ࠾༻͞Ε࣭ͨ໰ͷ౤ߘ
    ऀʹରͯ͠ɺ͋Β͔͡Ίઃఆ͞ΕֹͨͷΫϦϓτใु &5)
    ͕ࢧ෷ΘΕ
    Δ


    View full-size slide

  6. © DMM.com
    2VFTU֓ཁ
    %"QQ2VFTUͱ͸
    w ใुʹ࢖ΘΕΔΫϦϓτ &5)
    ͸ϗετ͕͋Β͔͡Ί༬ୗ͢Δ΄͔ɺή
    ετʹΑΔ౤͛મ΋ड͚෇͚Δ
    w ࣭໰ͷืू͕ऴྃ͢Δͱɺ༬ୗ͞ΕͨΫϦϓτ &5)
    ϗετʹฦۚ


    View full-size slide

  7. © DMM.com
    2VFTU֓ཁ
    %"QQ2VFTUͱ͸
    w 2VFTUϓϩμΫτͷ֓೦σʔλϞσϧ


    View full-size slide

  8. © DMM.com
    2VFTU֓ཁ
    %"QQ2VFTUͱ͸
    w 1P$ʢ֓೦࣮ূʣ
    w 69ٕज़্ͷ՝୊Λ࣮ࡍʹܗʹ͢Δ͜ͱͰચ͍ग़͢
    w ΠϯηϯςΟϒઃܭɺঝೝཉٻ
    w ΢ΥϨοτϒϥ΢β
    w Ψείετ
    w ϒϩοΫִؒʢτϥϯβΫγϣϯ଴ͪ࣌ؒʣ
    w ϑΝΠφϦςΟ
    w ηΩϡϦςΟ


    View full-size slide

  9. © DMM.com
    ίϯτϥΫτઃܭɾ։ൃ؀ڥ

    View full-size slide

  10. © DMM.com
    ίϯτϥΫτઃܭɾ։ൃ؀ڥ
    ઃܭํ਑
    w ΨείετͱτϥϯβΫγϣϯͷ଴ػ࣌ؒΛ࠷௿ݶʹ͍ͨ͠
    w ঢ়ଶม਺΁ͷॻ͖ࠐΈස౓Λ࠷௿ݶʹ
    w ίϯτϥΫτʹ࣋ͨͤΔඞཁͷແ͍σʔλ͸%#ʹ
    w ήετ ࣭໰౤ߘऀ
    ʹ͸ΨεΛ࢖Θͤͳ͍ʢૹۚ͸QVTIܕʣ
    w ηΩϡϦςΟϦεΫΛ௿ݮ͍ͨ͠
    w ˠઃܭΛγϯϓϧʹ


    View full-size slide

  11. © DMM.com
    ίϯτϥΫτઃܭɾ։ൃ؀ڥ
    'BDUPSZ1BUUFSO


    View full-size slide

  12. © DMM.com
    ίϯτϥΫτઃܭɾ։ൃ؀ڥ
    'BDUPSZ1BUUFSO


    View full-size slide

  13. © DMM.com
    ίϯτϥΫτઃܭɾ։ൃ؀ڥ
    'BDUPSZ1BUUFSO


    'BDUPSZίϯτϥΫτͷൈਮ

    View full-size slide

  14. © DMM.com
    ίϯτϥΫτઃܭɾ։ൃ؀ڥ
    ίϯτϥΫτ։ൃ؀ڥ


    w 5SV⒐F'SBNFXPSL
    w UFTU
    w CVJME
    w NJHSBUJPO
    w 0QFO;FQQFMJO4PMJEJUZ
    w (BOBDIF(6*
    w (FUI1SJWBUFOFU3PQTUFO5FTUOFU

    View full-size slide

  15. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ

    View full-size slide

  16. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ
    ίϯτϥΫτͷςετ


    w 5FTUJOHXJUI5SV⒐F'SBNFXPSL
    w JNQPSUOPEFNPEVMFT
    w DIBJ
    w DIBJBTQSPNJTFE
    w DIBJCJHOVNCFS
    w PQFO[FQQFMJOTPMJEJUZUFTUIFMQFS
    w ˠBTTFSUJPOʹศར

    View full-size slide

  17. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ
    ίϯτϥΫτͷςετ


    View full-size slide

  18. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ
    ίϯτϥΫτͷςετ


    View full-size slide

  19. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ
    ίϯτϥΫτͷςετ


    View full-size slide

  20. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ
    ςετΧόϨοδ


    w TPMJEJUZDPWFSBHF
    w OPEFNPEVMF
    w OQNTDSJQUTʹ࣮ߦίϚϯυΛఆٛ QBDLBHFKTPO

    w OQNSVODPWFSBHF
    w TPMDPWFSKTʹͯPQUJPOઃఆՄ

    View full-size slide

  21. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ
    ςετΧόϨοδ


    w TPMJEJUZDPWFSBHF
    OQNSVODPWFSBHF

    View full-size slide

  22. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ
    ςετΧόϨοδ


    w TPMJEJUZDPWFSBHF
    w DPWFSBHFDPOUSBODUTҎԼʹ)5.-ϑΝΠϧग़ྗ

    View full-size slide

  23. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ
    ίϯτϥΫτͷηΩϡϦςΟ


    w &UIFSFVN4NBSU$POUSBDU#FTU1SBDUJDFTCZ$POTFO4ZT
    w ্هΛGPMLͨ͠೔ຊޠ༁ʹDPNNJUˣ
    w IUUQTFDPV⒎FTHJUIVCJPTNBSUDPOUSBDUCFTUQSBDUJDFT
    w 4FDVSJUZ$POTJEFSBUJPOTCZFUIFSFVNTPMJEJUZ

    View full-size slide

  24. © DMM.com
    ίϯτϥΫτͷςετɾηΩϡϦςΟ
    ίϯτϥΫτͷηΩϡϦςΟ


    w νΣοΫπʔϧ
    w .ZUISJM$MBTTJD
    w 0ZFOUF
    w 4FDVSJGZFUD
    DGIUUQTDPOTFOTZTHJUIVCJPTNBSUDPOUSBDUCFTUQSBDUJDFTTFDVSJUZ@UPPMT
    w 4FDVSJUZ"VEJU3FWJFX

    View full-size slide

  25. © DMM.com
    ޻෉ͨ͠఺ۤ࿑ͨ͠఺

    View full-size slide

  26. © DMM.com
    ޻෉ͨ͠఺ۤ࿑ͨ͠఺
    ޻෉ͨ͠఺


    w ίϯτϥΫτΛςετωοτɾϝΠϯωοτʹNJHSBUFͨ͠ΒࣗಈͰϩ
    άΛ࢒͢
    w NJHSBUJPOMPH

    View full-size slide

  27. © DMM.com
    ޻෉ͨ͠఺ۤ࿑ͨ͠఺
    ޻෉ͨ͠఺


    NJHSBUJPO-PHKT

    View full-size slide

  28. © DMM.com
    ޻෉ͨ͠఺ۤ࿑ͨ͠఺
    ޻෉ͨ͠఺


    @EFQMPZ@SPPN@GBDUPSZKT

    View full-size slide

  29. © DMM.com
    ޻෉ͨ͠఺ۤ࿑ͨ͠఺
    ۤ࿑ͨ͠఺


    w 5SV⒐FUFTUJOHGSBNFXPSLʹJOKFDU͞ΕΔ8FCKTͷόʔδϣϯ
    w ܥͳͷʹɺϑϩϯτΤϯυͰͷ࣮૷͸ܥ
    w 5SV⒐FWFSͰղফɹʘ ?P?
    ʗ
    w 8FCKTܥͷෆ҆ఆ͞
    w DG8FCKT%FWFMPQNFOU1JUGBMM

    View full-size slide

  30. © DMM.com
    ·ͱΊ

    View full-size slide

  31. © DMM.com
    ·ͱΊ
    ·ͱΊ


    w 1P$ϓϩμΫτɿ%"QQ2VFTU
    w ίϯτϥΫτʹ΋ͨͤΔσʔλ͸࠷খݶʹ͢ΔίϯτϥΫτઃܭ
    w ΤίγεςϜΛۦ࢖ͨ͠ίϯτϥΫτ։ൃ؀ڥ
    w ՄಡੑΛߴΊΔίϯτϥΫτͷςετͱΧόϨοδ
    w جຊతͳηΩϡϦςΟ஌ࣝशಘͱʴЋରࡦ

    View full-size slide

  32. © DMM.com
    ࢀߟϦϯΫ
    ࢀߟϦϯΫू


    w RVFTUDPOUSBDUFUIFSFVN 2VFTU$POUSBDU(JUIVC3FQP

    w &UIFSFVN4NBSU$POUSBDU#FTU1SBDUJDFT
    w &UIFSFVN4NBSU$POUSBDU#FTU1SBDUJDFT ೔ຊޠ༁

    w 4FDVSJUZ$POTJEFSBUJPOT
    w 8FCKT%FWFMPQNFOU1JUGBMM Ҏલͷൃදࢿྉ

    View full-size slide

  33. © DMM.com
    ࢼֶͯ͠Ϳ
    εϚʔτίϯτϥΫτ։ൃ
    %..DPNϒϩοΫνΣʔϯݚڀࣨ<ஶ>

    View full-size slide

  34. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠
    5IBOLZPVGPSZPVSLJOEBUUFOUJPO

    View full-size slide