Skip to content

Integrate Ethereum #7

Description

@vinsonly
  1. Write Escrow contract to facilitate transactions
  • Contract is created by seller
  • Buyer deposits, and specifies time
  • Seller then accepts or declines, if accepted, the specified time is now in effect
  • Once buyer confirms the receipt of food, money is released to seller
  • If buyer doesn't pick up food, money is released to seller after 3 days
  • seller deposits security deposit when creating contract
  • must have a minimum of 0.5 eth in the security deposit
  • the full amount of the security deposit may not be withdrawn unless the contract is deleted

required:

  • buyer paying for food when ordering
  • seller is paid once food is accepted by buyer
  • buyer is refunded when offer is declined
  • buyer may apply for refund if offer is not accepted within 5 minutes
  • buyer is refunded if contract is closed

functions:

  • constructor
  • deposit - buyer pays for food
  • payOut - send funds to seller
  • refund - send funds to buyer
  1. Instantiate Contract on the Test Network

  2. Test Smart Contract

  3. Integrate web app with web3 API

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions