Pedro Valido (@pedrovalido) • Hey
Hey, I'm Pedro! Smart Contract Dev @ FujiDAO and Head of Infrastructure @ Pulsar Finance
Publications
- Exciting News! 🚀 Our team recently won the Optimism Foundation Hack the Stack prize at ETHGlobal Lisbon. The project that clinched us the prize is Rupper20, and I'd love to share with you the technical magic behind it.
Rupper20 is a Rollup solution, designed specifically for Peer-to-Peer (P2P) transfers. It's unique in its ability to accept any ERC20 token as a native token.
We built it on a customized version of Optimism's op-geth, and we made some strategic changes - like removing the ability to make smart contract calls and creations - to enable faster transactions and reduce gas fees.
To facilitate our project, we created a Docker image called p2perc20-op-geth. This image is instrumental in deploying our rollup node and serves as the cornerstone of our project.
We also modified the existing Optimism stack implementation, with a key change to the L1 OptimismPortal contract. This contract bridged native L1 tokens to L2.
However, our version has a broader role - it can now bridge ANY ERC20 token from L1 to L2, thereby creating a whole new range of possibilities. Now, any user can transfer their ERC20 tokens from L1 to L2, where these tokens become the native currency of that layer.
To demonstrate the potential of Rupper20, we set up a local L1 blockchain node (which could be any existing L1 or L2). Then, we deployed Rupper20 as an L2 blockchain node, showcasing its versatility as an Ethereum Virtual Machine (EVM) scaling solution.
Once both nodes were operational, we deployed the modified contracts necessary for bridging ERC20 from L1 to L2. This was a crucial step in proving our concept.
We then executed some transactions, bridging ERC20 from L1 to L2, where the balance showed up as the native L2 token.
Finally, we made transactions between two users using the native L2 token, thus successfully demonstrating P2P transactions on a rollup with ERC20 as a native token.
The potential and versatility of Rupper20 have got us incredibly excited. We're eager to continue innovating and pushing the boundaries of blockchain technology.
If you'd like to explore our project further, please check it out here: https://github.com/P2P-ERC20-Rollup.
We welcome your thoughts, feedback, and support as we stride forward in this exciting journey.
- Hello World :)