Skip to content

A suite of contracts and utilities that enable cheaper transactions on Optimism (and other EVM-equivalent L2s)

License

Notifications You must be signed in to change notification settings

N0xMare/op-kompressor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

op-kompressortests license

Note
This project is still in early development and is not yet ready for production use. It's kind of a shitpost, but it has potential to reduce the costs of swaps and other transactions with large calldata payloads on Optimism by a significant amount.

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.

Compression Schemes

  • Run Length Encoding - RLE is great for Ethereum calldata because it's often the case that there are many repeated values in a given payload. The downside of RLE is that space efficiency for payloads with many unique values is poor. This is why op-kompressor supports a hybrid scheme that uses RLE for zero bytes (the most commonly repeated byte in calldata). For certain niche use cases, RLE may be a better choice than the hybrid scheme.

TODO

About

A suite of contracts and utilities that enable cheaper transactions on Optimism (and other EVM-equivalent L2s)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 58.7%
  • Rust 41.3%