Giter VIP home page Giter VIP logo

encode-p1's Introduction

Report

deploy

  • command yarn hardhat deploy --network goerli
  • tx-hash "0x66cc3f888531aa0151c48ddf43d2a029306ff9fa7b97631d6614577f742a121e"
  • contract address "0xAA4e13c38ACc5652dcde7affA8745D5c2e2f5eab"

give right to vote

  • command yarn hardhat run scripts/Ballot/giveVotingRights.ts --network goerli
  • tx-hash "0x95c81cccb17e16d97aabae02a8f16250cdf59c1daecda988470b239df6be54a7"
  • output
    • Using address 0x0De11B6F33b3d0813004C99b3fF7Ff73c1e1F7a3
    • Wallet balance
    • Attaching ballot contract interface to address 0xAA4e13c38ACc5652dcde7affA8745D5c2e2f5eab
    • Giving right to vote to 0x7c0918D433356007199607fd8C106CdcdD4C5483
    • Awaiting confirmations
    • Transaction completed. Hash: 0x95c81cccb17e16d97aabae02a8f16250cdf59c1daecda988470b239df6be54a7

vote

  • command yarn hardhat run scripts/Ballot/vote.ts --network goerli
  • tx-hash "0x2bf9aa2b4564f52784efd777572c689187ded9e978a627438fe11e83d667b0d8"
  • output
    • Using address 0x0De11B6F33b3d0813004C99b3fF7Ff73c1e1F7a3
    • Wallet balance
    • Attaching ballot contract interface to address 0xAA4e13c38ACc5652dcde7affA8745D5c2e2f5eab
    • casting vote to ballot from 0x0De11B6F33b3d0813004C99b3fF7Ff73c1e1F7a3
    • Awaiting confirmations
    • Transaction completed. Hash: 0x2bf9aa2b4564f52784efd777572c689187ded9e978a627438fe11e83d667b0d8

delegate

  • command yarn hardhat run scripts/Ballot/delegateVote.ts --network goerli
  • tx-hash ""
  • output
    • Using address 0x0De11B6F33b3d0813004C99b3fF7Ff73c1e1F7a3
    • Wallet balance
    • Attaching ballot contract interface to address 0xAA4e13c38ACc5652dcde7affA8745D5c2e2f5eab
    • delegating votes to 0x7c0918D433356007199607fd8C106CdcdD4C5483
    • ERROR - "you have already voted"

get voting result

  • command yarn hardhat run scripts/Ballot/getVotingResult.ts --network goerli
  • output
    • Using address 0x0De11B6F33b3d0813004C99b3fF7Ff73c1e1F7a3
    • Wallet balance
    • Attaching ballot contract interface to address 0xAA4e13c38ACc5652dcde7affA8745D5c2e2f5eab
    • fetching winning proposals
    • winner is #1 "proposal-2"
    • Completed.

encode-p1's People

Contributors

code-z2 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.