• Stars
    star
    128
  • Rank 280,959 (Top 6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿต๏ธ Let Your ETH Chill โ€” Gasless Ethereum account abstraction with Flashbots
Zeneth Logo

Gasless Ethereum account abstraction with Flashbots.

๐Ÿš€ zeneth.app ๐Ÿšง @ScopeLift

Ethereum Badge

About

With Flashbots, users can send transactions directly to miners so their transactions may be included in a block without ever being seen in the mempool. Miners typically include your transaction in a block because they earn revenue from gas fees, but with flashbots you can include transactions with a gas price of zero, as long as you also include a transaction that pays the miner in ETH in some way.

This is commonly used to protect yourself from bots. For example, by making a large Uniswap trade or executing an arbitrage via Flashbots, bots cannot see your transaction and frontrun it.

Zeneth uses Flashbots for a different reasonโ€”improving UX.

A major UX problem in Ethereum is that most wallets are not contract wallets, but externally owned accounts (EOAs), such as MetaMask. With EOAs, you always need ETH for gas unless you happen to be interacting with a contract that supports meta-transactions. This can be problematic for user-facing applications as their new users need to acquire both ETH and often some token to user their application.

For example, you don't need ETH for transaction fees on zkSync's Layer 2 network, but if I'm a new user trying to get DAI into zkSync, I need to first find ETH, use that to pay for gas to enter zkSync, then never use that ETH again. This adds a lot of friction to user onboarding.

Zeneth fixes this. You can now bundle any sequence of transactions, send them for zero gas, and at the end use our "SwapBriber" contract which will swap some of your tokens for ETH to pay the miner. In the demo video you can see the following sequence of transactions:

  1. User signs a zero-gas price transaction approving the zkSync contract to spend their DAI
  2. User signs a zero-gas price transaction depositing their DAI into zkSync
  3. User signs a zero-gas price transaction approving the SwapBriber contract to spend their DAI
  4. User signs a zero-gas price transaction transferring tokens to the SwapBriber contract, which swaps those tokens for ETH and transfers the ETH to the miner

Then, all four of these transactions are sent as a bundle to the miner, who includes them in a block.

Status

Zeneth was built for the ETHGlobal hackathon. You can learn more by watching the hackathon submission video.

The project works on mainnet, but is not currently deployed for public use. Stay tuned to learn more about Zeneth's public launch.

Development

This project is a monorepo with three packages:

  • contracts contains the smart contracts
  • zeneth-js is a TypeScript library containing the core Zeneth logic
  • frontend is a simple frontend app for interacting with Flashbots

Dependencies

To ensure that everyone is using the same version of nodejs on this project, volta is recommended!

Develop

yarn
yarn dev

Test

yarn test

Serve

yarn build
yarn start

More Repositories

1

umbra-protocol

๐ŸŒ•๐ŸŒ‘ Privacy Preserving Shielded Payments On The Ethereum Blockchain
TypeScript
355
star
2

l2-optimizoooors

Gas efficient routers for L2 applications
Solidity
94
star
3

flexible-voting

๐Ÿ’ช๐Ÿ—ณ๏ธ Flexible Voting โ€“ A Powerful Building Block for DAO Governance
Solidity
85
star
4

scopelint

An opinionated formatting and linting tool for foundry projects
Rust
77
star
5

foundry-template

An opinionated template for Foundry projects.
Solidity
75
star
6

vue-tailwind-ethereum-template

A template for creating Ethereum applications using Vue and Tailwind
TypeScript
58
star
7

trueblocks-plotter

Easily query and plot historical Ethereum data
TypeScript
37
star
8

stealth-address-erc-contracts

๐Ÿ“„ Contracts for ERC-5564 Stealth Addresses and ERC-6538 Stealth Meta-Address Registry
Solidity
27
star
9

stealth-address-sdk

โŒจ๏ธ TypeScript SDK for ERC-5564 Stealth Addresses and ERC-6538 Stealth Meta-Address Registry
TypeScript
24
star
10

cove-backend

Simple, reliable, open-source contract verification built for an L2 centric Ethereum ecosystem
Rust
23
star
11

token-shielder

๐Ÿ›ก๏ธ A simple frontend for shielding tokens in RAILGUN
TypeScript
19
star
12

l2-flexible-voting

๐Ÿ—ณ๏ธ L1 voting on L2
Solidity
19
star
13

endaoment

๐ŸถAn Interest Earning, Money Streaming, DeFi Enabled DAO
Solidity
14
star
14

ovm-og-multisigwallet

๐Ÿ’ผ The OG Gnosis Multisig, updated to work on Optimistic Ethereum
TypeScript
13
star
15

scorched-earth

๐Ÿ”ฅ๐ŸŒŽDecentralized Content Suggestions Using Two Of Two Scorched Earth
TypeScript
13
star
16

fakerdao

๐ŸŽญPool MKR tokens to auction voting power to the highest bidder.
JavaScript
12
star
17

cove-frontend

Robust, open-source contract verification for the EVM
TypeScript
11
star
18

optimizoors-perpetual-protocol

โ›ฝ Calldata Optimized Router for Perpetual Protocol
Solidity
9
star
19

delegated-liquidity

๐Ÿšฐ๐Ÿ—ณ๏ธ Custom Uniswap v4 Pool that allows governance token holders to vote and LP at the same time
Solidity
6
star
20

kaspa-wallet

๐Ÿ‘ A web wallet for the Kaspa blockchain network
JavaScript
4
star
21

umbra-subgraph

Umbra subgraph
TypeScript
3
star
22

cozy-triggers

Triggers for the Cozy Protocol
TypeScript
2
star
23

stealth-address-docs

MDX
1
star
24

governor-cross-chain-state-query-example

Solidity
1
star
25

l2-optimizoooors-frontend

TypeScript
1
star
26

scopelint-erc20-example

Solidity
1
star
27

umbra-collectible

TypeScript
1
star
28

l2-flexible-voting-governor-subgraph

TypeScript
1
star
29

cove-test-repo

Solidity
1
star
30

guinea-pig-dao

Solidity
1
star
31

optimizoors-1inch-protocol

โ›ฝ Calldata Optimized Router for 1inch Network
Solidity
1
star
32

l2-flexible-voting-frontend

๐Ÿšง Under construction: ๐Ÿ–ฅ๏ธ Frontend for ๐Ÿ—ณ๏ธ L1 voting on L2
TypeScript
1
star
33

arbitrum-governor-upgrade

Solidity
1
star