0.3.1 • Published 3 months ago

@daimo/bulk v0.3.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
3 months ago

Bulk

Make compressed 4337 bundles swole again.

Bulk makes 4337 on L2 cheaper. Bundlers can pass compressed bundles to BundleBulker, which decompresses them before calling the 4337 EntryPoint contract. This reduces L1 data usage, the dominant cost of rollup transactions.

For example, here's a single USDC transfer executed as as a one-op bundle.

Before: 1.6kb

After: 353b

Details

Decompression happens via arbitrary contracts that implement IInflator. This lets bundlers or individual applications can define their own templates or decompression algorithms. Inflators can be stateful for greater savings.

A bundler supports compression as follows:

  • client submits compressed op
  • bundler inflates, validates as usual
  • bundler submits compressed

Compression is independent from the security of the contract account being called. The same userops go to the EntryPoint either way, validation and execution identical--this is just an optimization to use less calldata.

Bulk is intended for use directly by bundlers, eg with API keys--so griefing can be mitigated offchain. The userop mempool remains important for censorship resistance, and apps can continue to submit uncompressed ops to mempool as a fallback if a direct bundler API is unavailable.

Deployment Details

The deployment address of BundleBulker is 0x000000000091A1F34f51CE866bEd8983dB51a97E. (deployed using create2 with salt 7cf7a0f0060e1519d0ee3e12e0ee57890f69d7aa693404299a3a779e90cd7921)

Mainnets

Chain NameDeployment
Ethereum0x000000000091A1F34f51CE866bEd8983dB51a97E
Base0x000000000091A1F34f51CE866bEd8983dB51a97E
OP Mainnet0x000000000091A1F34f51CE866bEd8983dB51a97E
Polygon0x000000000091A1F34f51CE866bEd8983dB51a97E
Gnosis0x000000000091A1F34f51CE866bEd8983dB51a97E
Arbitrum One0x000000000091A1F34f51CE866bEd8983dB51a97E
BSC0x000000000091A1F34f51CE866bEd8983dB51a97E
opBNB0x000000000091A1F34f51CE866bEd8983dB51a97E
Avalanche0x000000000091A1F34f51CE866bEd8983dB51a97E
Linea Mainnet0x000000000091A1F34f51CE866bEd8983dB51a97E
lyra0x000000000091A1F34f51CE866bEd8983dB51a97E
Scroll0x000000000091A1F34f51CE866bEd8983dB51a97E
Klaytn0x000000000091A1F34f51CE866bEd8983dB51a97E
DFK Chain0x000000000091A1F34f51CE866bEd8983dB51a97E
Celo0x000000000091A1F34f51CE866bEd8983dB51a97E

Testnets

Chain NameDeployment
Sepolia0x000000000091A1F34f51CE866bEd8983dB51a97E
Goerli0x000000000091A1F34f51CE866bEd8983dB51a97E
Base Sepolia0x000000000091A1F34f51CE866bEd8983dB51a97E
Base Goerli0x000000000091A1F34f51CE866bEd8983dB51a97E
Optimism Goerli0x000000000091A1F34f51CE866bEd8983dB51a97E
Polygon Mumbai0x000000000091A1F34f51CE866bEd8983dB51a97E
Arbitrum Sepolia0x000000000091A1F34f51CE866bEd8983dB51a97E
Arbitrum Goerli0x000000000091A1F34f51CE866bEd8983dB51a97E
BSC Testnet0x000000000091A1F34f51CE866bEd8983dB51a97E
Avalanche Fuji0x000000000091A1F34f51CE866bEd8983dB51a97E
Scroll Sepolia0x000000000091A1F34f51CE866bEd8983dB51a97E
Gnosis Chiado0x000000000091A1F34f51CE866bEd8983dB51a97E
Linea Goerli Testnet0x000000000091A1F34f51CE866bEd8983dB51a97E
Celo Alfajores0x000000000091A1F34f51CE866bEd8983dB51a97E

Quick start

Proof of concept. In active development.

git clone git@github.com:daimo-eth/bulk --recurse-submodules
foundryup
forge test
0.3.0

3 months ago

0.3.1

3 months ago

0.2.4

4 months ago

0.2.1

4 months ago

0.2.0

4 months ago

0.2.3

4 months ago

0.2.2

4 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago