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 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 Slide

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

    View Slide

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

    View 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 Slide

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

    View 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 Slide

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

    View Slide

  9. Proprietary and Confidential © 2019 !9

    View Slide

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

    View Slide

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

    View Slide

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

    View 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 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 Slide

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

    View Slide

  16. Proprietary and Confidential © 2019 !16

    View 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 Slide