A suite of contracts and utilities that enable cheaper transactions on Optimism (and other EVM-equivalent L2s)
MIT License
op-kompressor
Note This project has potential to reduce the costs of swaps and other transactions with large calldata payloads on L2s by a significant amount. It is intended to be used with ERC-4337 and other account abstraction methods, such as Gnosis Safes that allow for delegatecalling the
CallKompressor
contract.
op-kompressor
is a suite of contracts that allows for relaying compressed abi-encoded payloads to L2 chains (like Optimism) where calldata is an expensive resource.
CallKompressor
The CallKompressor.huff
(@ commit c2cff9c) is deployed on Optimism @ 0xf6fd99599d7121cbbc5e7c95d2ba83aa273d89c8
Deprecated Versions
The CallKompressor
(@ commit b9f2394) is deployed on Optimism @ 0x6C56659A3EBE86394bF67889d860Fc74F404B867
Transaction | L1 Gas Usage | ZeroKompressed? |
---|---|---|
Direct ID Uniswap Payload | 8,828 | No |
ZeroKompressed ID Uniswap Payload | 6,440 | Yes |
op-kompressor
supports a hybrid scheme that uses RLE for zero bytes (the most commonly repeated byte in calldata).