Skip to content

nodestarQ/InclusionBribes

Repository files navigation

InclusionBribes

ETHBerlin Hackathon 2024 entry

We worked on a solution to incentivize block producers to include transactions from censored or sanctioned smart contracts. This is what we came up with during the ETHBerlin04 Hackathon

Prerequisites

you will need:

  1. Github
  2. Node.Js
  3. Foundry
  4. yarn/pnpm
  5. metamask
  6. finally some Sepolia ETH

Installation

  • You need to git clone https://github.com/nodestarQ/antiCensorshipBribes.git and cd into the root folder.
  • Go ahead and do a yarn install:all this will install all the necessary dependencies.
  • The AntiCensorshipBriberFactory and TwisterMonies Smart Contract (that stands in as a placeholder for censored contracts) have been deployed on the Ethereum Sepolia Testnet.

Create Bribe Smart Contract from the Factory

  • yarn deployBribesUi to run it Deploy Bribes UI Screenshot

Sweeper Script

  • run yarn run:sweep to start the sweeper script Deploy Bribes UI Screenshot

"Censored" Contract

  • yarn run:twister`` is going to serve the frontend for our mock censored smart contract. Connect with the website through MetaMask, Select an amount to deposit and press on the Deposit``` button.`
  • Once the transaction gets confirmed it will be picked up by the sweeper, which will claim the rewards and include the block. Censored Contract Screenshot

About

ETHBerlin Hackathon 2024 entry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published