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

"Family budget" in minutes 
with Chainstack

"Family budget" in minutes 
with Chainstack

- Today’s showcase: “Family budget”
- Live! Create the infrastructure in minutes
- The smart contract and use case
- Live! Deploy a contract and make transactions
- Q&A

Alex Khaerov

July 23, 2019
Tweet

More Decks by Alex Khaerov

Other Decks in Programming

Transcript

  1. Proprietary and Confidential © 2019
    hayorov
    chainstack.com !1
    Blockchain project in minutes 

    with Chainstack
    Alex Khaerov
    Development Lead
    [email protected]

    View full-size slide

  2. !2
    Agenda
    • Today’s showcase: “Family budget”
    • Live! Create the infrastructure in minutes
    • The smart contract and use case
    • Live! Deploy a contract and make transactions
    • Q&A

    View full-size slide

  3. Proprietary and Confidential © 2019
    hayorov
    chainstack.com !3
    Quorum blockchain
    (ethereum-based)
    Jupyter notebook
    with web3py

    View full-size slide

  4. Proprietary and Confidential © 2019
    hayorov
    chainstack.com !4
    Today’s showcase
    “Family budget”

    View full-size slide

  5. Proprietary and Confidential © 2019 !5
    Family budget
    Total balance
    - 200$ - 10$ - 15$
    -100$
    - 50$ - 100$
    1000$
    - 10$
    - 15$
    900$
    890$
    875$
    675$
    575$
    560$
    510$
    500$

    View full-size slide

  6. Proprietary and Confidential © 2019 !6
    Family budget
    NaN$
    1000$
    define
    the balance
    X
    X
    Total balance

    View full-size slide

  7. Proprietary and Confidential © 2019
    My Family
    The blockchain infrastructure
    Create a project
    The balance tracker
    Dad
    Mom
    Girl
    Boy
    >
    Contract
    Deploy a network with 4 nodes
    Write some smart contract

    View full-size slide

  8. Proprietary and Confidential © 2019
    hayorov
    chainstack.com !8
    Live! Create the infrastructure
    in minutes

    View full-size slide

  9. Proprietary and Confidential © 2019 !9

    View full-size slide

  10. Proprietary and Confidential © 2019
    hayorov
    chainstack.com !10
    The smart contract

    View full-size slide

  11. Proprietary and Confidential © 2019
    peek the balance
    init the program
    the program name
    define the balance
    & record spendings

    View full-size slide

  12. Proprietary and Confidential © 2019
    hayorov
    chainstack.com !12
    The use case

    View full-size slide

  13. Proprietary and Confidential © 2019 !13
    Dad deploys the contract
    Mom
    Addr: 0x4…d1
    Mom defines the balance
    Dad
    Addr: 0x3…d3
    simpleStorage.constructor(0x4…d1) simpleStorage.makeRecord(1000)

    View full-size slide

  14. Proprietary and Confidential © 2019 !14
    records spendings
    Boy
    Addr: 0x4…22
    Dad
    Addr: 0x3…d3
    Mom
    Addr: 0x4…d1
    Girl
    Addr: 0x5…99
    simpleStorage.makeRecord(-15)
    simpleStorage.getBalance()
    gets the balance

    View full-size slide

  15. Proprietary and Confidential © 2019
    hayorov
    chainstack.com !15
    Live! Deploy a contract
    and make transactions

    View full-size slide

  16. Proprietary and Confidential © 2019 !16

    View full-size slide

  17. Proprietary and Confidential © 2019 !17
    bit.ly/cs14free
    Try Chainstack with free 14 days
    Alex Khaerov
    Development Lead
    [email protected]
    and subscribe for updates at bit.ly/cs-updates

    View full-size slide