Giter Club home page Giter Club logo

ethereum-smart-contracts's Introduction

Smart Wedding Contract on Ethereum Testnet with Solidity

This is a PoC smart wedding contract on Ethereum blockchain with Solidity. It's features:

  • Guest list
  • Objecting marriage
  • Voting for marriage
  • Time constraints on Ethereum Contracts
  • Cancelling wedding by one spouse
  • Formalizing marriage

Developers:

ethereum-smart-contracts's People

Contributors

tolgahanakgun avatar ignacior95 avatar haigol avatar mirsand avatar

Watchers

 avatar Julian avatar

ethereum-smart-contracts's Issues

iDontWantToMarry

  • One of the spouses can change their mind during the ceremony (or before) and the marriage will be cancelled

Objection --> failure

If someone objects it should lead to failure. We need to implement some kind of state.

Validating the voting results (task 5)

The project requirements number 5: "(optional) an objection will not cause an immediate failure, but a voting process will take place instead. The validity of the objection will be decided by the majority of the participants."

Implementing replyInvitation() method

  • The project requirements number 2: "any invited guest will accept or reject the invitation. In case of acceptance, a “ticket” will be released"
  • For now the ticket is generated and released when a user is added to the guest list, this behaviour must be changed
  • Check the date wheteher it is after the ceremony date or not. If so, give an error

Implementing vote() method (task 4)

The project requirements number 4: "a function will implement the sentence “if anyone has an objection to these two being married, speak now or forever hold your peace”. In case of any objection, the whole ceremony will stop and a failure will be registered on the blockchain. In the other case, the wedding will be written forever"

Creating marriage status field

The state of the contract must be stored. These states might be: not married yet, married, divorced, married objected...

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.