Let's say you have to mint an NFT on Optimism but only have USDT on Polygon.
Ah the age old hassle of cross chain investments and transactions start to scare you.
"Do I have Matic on Polygon? Do I have gas on Polygon? How do I bridge my swapped WETH from Polygon to Optimism? Do I sign another tx on Optimism now? Argh."
Cue entry, CupCakes Project.
Define a tx path, sign a few messages and let CupCake bundle txs on Polygon, relay them to Optimism and wait for your sweet NFT while you get a cup cake
Let's say you want to invest in Beefy Finance on Polygon but you have only USDT on Optimism.
Steps using CupCakes -
We allow people to create modules which can be then clubbed together by users or developers to create ZAPs.
An example of a ZAP is shown below:
In the photo above, we have created a zap which connects three modules, Swap module, Strader module, & Beefy module.
Read more about how we do it at https://github.com/unfold-22/unfold-ui/blob/main/README.md
EIP-4337 is fairly new & lacks documentation. There is no support for newly added RPC eth_sendUserOperation & no client library which makes things easier for developers. We had to run a custom relayer which would supports the missing functionalities. Along with that we have also created a library that allows user to now send user operations to blockchain with a few lines.
Discussion