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. !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
  2. 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$
  3. 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
  4. Proprietary and Confidential © 2019 peek the balance init the

    program the program name define the balance & record spendings
  5. 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)
  6. 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
  7. 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