Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second Weekend Project - 4Q 2023 - Group 9 #2

Open
AlexGabrielANDREI opened this issue Nov 5, 2023 · 14 comments
Open

Second Weekend Project - 4Q 2023 - Group 9 #2

AlexGabrielANDREI opened this issue Nov 5, 2023 · 14 comments

Comments

@AlexGabrielANDREI
Copy link
Owner

Second weekend project - 4Q 2023 - GROUP 9

Contract: https://sepolia.etherscan.io/address/0x5C2D5Da7884f0bcDB452f877c8c0eb8dfC754409

Contract creation by Gabriel1190: https://sepolia.etherscan.io/tx/0x6bf4d9c1206a0d8460b3446748136715fea67a8d4bffc2fd5c098bc303ba9a9a

image

@AlexGabrielANDREI
Copy link
Owner Author

Gabriel1190 call successfully “vote” with tx:
https://sepolia.etherscan.io/tx/0xfd571c4feac0d4958e084630cb896bd99a313c9af6b9db9b303b99c3bf87e924
image

@AlexGabrielANDREI
Copy link
Owner Author

@AlexGabrielANDREI
Copy link
Owner Author

Stefan Adrian call successfully “vote” with tx:
https://sepolia.etherscan.io/tx/0xb233500973f8baaa4a84575e64d7e40f5eaf42642acd3bae92bf8733ebf44180

image

@AlexGabrielANDREI
Copy link
Owner Author

javiermontescarrera call successfully “vote” with tx:
https://sepolia.etherscan.io/tx/0xad262c3d71c9793a585a12b298e686b32c24323a1ec2db7081c5351067749efa

image

@AlexGabrielANDREI
Copy link
Owner Author

javiermontescarrera created a new script to get the winning proposal, which was merged with the main branch:

image

@AlexGabrielANDREI
Copy link
Owner Author

@AlexGabrielANDREI
Copy link
Owner Author

javiermontescarrera forced an exception due to trying to vote more than once:
image

@AlexGabrielANDREI
Copy link
Owner Author

javiermontescarrera raised another exception because he tried to give right to vote to Alice but it reverted because he isn't the chairperson:

image

@AlexGabrielANDREI
Copy link
Owner Author

@ASIdevelopment
Copy link
Collaborator

ASIdevelopment commented Nov 5, 2023

Adrian Stefan added DelegateVote script
image

Execution Script:

The provided execution script is written in JavaScript using the ethers library to interact with the Ethereum blockchain.
It takes parameters for the contract address and the address to which the vote should be delegated.
The script configures the Ethereum provider, wallet, and checks the account balance.
It uses Typechain to attach the smart contract and sends a transaction to delegate the vote.
The script monitors the transaction's progress and provides the transaction hash upon completion.
In summary, the delegation part of the contract allows voters to transfer their voting rights to another address, enabling a flexible and secure way to participate in the voting process. The execution script facilitates this delegation process by interacting with the Ethereum blockchain.

@aliceliu7
Copy link
Collaborator

aliceliu7 commented Nov 6, 2023

Alice unsuccessfully voted for option 2. The execution reverted due to Alice not having voting permissions:
Reverted No Voting Permissions Updated

@dzgierski19
Copy link
Collaborator

dawidzz unsuccessfully voted for option 1. The execution reverted.
image

@Gagan921
Copy link
Collaborator

Gagan921 commented Nov 6, 2023

gagan921 unsuccessfully voted for option 2. The execution reverted.
image
image

@Gagan921
Copy link
Collaborator

Gagan921 commented Nov 6, 2023

gagan921 created a new script to get the winning proposal, which was merged with the main branch:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants