About
FrameGas lets an account that only holds an ERC20 (a stablecoin, a governance token, an agent's USDC budget) send any transaction on Ethereum without ever touching ETH. You sign one EIP-8141 frame transaction. The paymaster's validation frame reads the token price from a Uniswap v4 pool and checks your cap, balance and allowance. Its settlement frame pulls the token, swaps it for ETH on the same pool and pays the gas. Your call runs. A last frame refunds whatever token wasn't used. All of it is atomic, so if any frame fails nothing moves.
This only works in the alternative mempool. Send the same signed bytes to the canonical mempool and it comes back with StorageReadNonSender, because the paymaster reads pool state during validation. The alt mempool lets it in because the paymaster is staked.
What's in the repo: the paymaster with 44 contract tests and a 10,000 run fuzz; a bootstrap mode that handles a user's very first transaction in a single tx with no precompile and no relayer; a per account daily quota enforced in validation; a TypeScript SDK (framegas.send({payToken, maxTokenCost, calls})) that simulates first and sizes every frame; an MCP server so agents can pay their own gas from a token budget; a Skill in the Uniswap AI format; a Chainlink CRE workflow for price sanity bounds; a demo with replay and live modes; and docs/findings.md with what I learned about how the devnet's rules differ from ERC-8421, including a 100k shared validation cap for staked entities, disabled precompiles (filed as forshtat/mempool-workshop#1), the state gas cost of crossing a tick for the first time, and what it costs to grief a paymaster that prices from a pool.
Measured on the devnet: a normal transaction costs the user 1.04x the gas fee in tokens with a 1.17x reserve. The first transaction per token costs about 0.56 fgUSD more because of the allowance slot. The paymaster can lose at most 0.002 ETH on any single transaction.
Limitations: EIP-8141 ships in Hegotá, so this runs on the EF alt mempool devnet (chain 1337) only. The stake is locked for good. Permit deadlines have to be max uint because TIMESTAMP is banned in validation. Thin pools make a failed settlement cheap to force, so I enforce a minimum liquidity check at admission.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






