Giter VIP home page Giter VIP logo

20-solidity's Introduction

Unit 20 - "Joint Savings Account"

alt=“”

Background

A fintech startup company has recently hired you. This company is disrupting the finance industry with its own cross-border, Ethereum-compatible blockchain that connects financial institutions. Currently, the team is building smart contracts to automate many of the institutions’ financial processes and features, such as hosting joint savings accounts.

To automate the creation of joint savings accounts, you’ll create a Solidity smart contract that accepts two user addresses. These addresses will be able to control a joint savings account. Your smart contract will use ether management functions to implement a financial institution’s requirements for providing the features of the joint savings account. These features will consist of the ability to deposit and withdraw funds from the account.

Files

Joint Savings Smart Contract File

Folder with screenshots

accountOne Address:

0x0c0669Cd5e60a6F4b8ce437E4a4A007093D368Cb

accountTwo Address:

0x7A1f3dFAa0a4a19844B606CD6e91d693083B12c0

Screenshots of contract deployment and interactions

  • Note - for the last 2 withdraw transactions I took one screenshot for each one which showed the contractBalance, lastToWithdraw and the lastWithdrawAmount functions after I executed them, so I only have 6 pictures.

Transaction 1 - setAccounts: alt=“setAccounts” Transaction 2 - deposit 1 Ether as Wei: alt=“setAccounts” Transaction 3 - deposit 10 Ether as Wei: alt=“setAccounts” Transaction 4 - deposit 5 Ether: alt=“setAccounts” Transaction 5 - withdraw 5 Ether into accountOne: alt=“setAccounts” Transaction 6 - withdraw 10 Ether into accountTwo: alt=“setAccounts”

20-solidity's People

Contributors

padibona avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.