Giter Site home page Giter Site logo

solidity-assignment2's Introduction

Solidity-Assignment2

Solidity assignment Assignment : Election2022

  1. Candidate to pay <0.1/something> ether/wei to register to election, no registration if not paying enough. -- payable function -- require , msg.value

  2. ElectionCommission is another contract and can only approve a candidate before the election, but aleast 10 mins before election start -- multi contract call -- import

  3. Only Election Commission decides on the Start and Stop time -- block.timestamp

  4. Only an approved candidate can participate in elections

  5. Anybody can vote, but only between the start and end date. And only once

  6. ElectionCommision can announce results only after Stop Time

  7. Only ElectionCommision can withdraw funds after election. payable address withdraw

Tech Requirements:

  1. 2 contracts, ElectionCommision and Election2022
  2. Use payable to pay ether
  3. Show contract calls using various methods

Assignment 2 : Submit on the github and share me the location

  1. Add Appropriate Events to the existing code

  2. Add error handling

  3. Add self destruct to Election2022 contract, which can only be called by Election Commission.

  4. Use a different set of files (new project)and create Election2022 contract using new in ElectionCommision

solidity-assignment2's People

Contributors

fizasayyed avatar

Watchers

 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.