An interactive deployer tool to build/visualize Hyperlane's smart contract
This dev tool can be thought as a code generator/ interactive playground to support bridge development using Hyperlane's CLI and its smart contact . Now, it only offers two routes, including both collateralized ERC20&ERC4626 to synthetic
and XERC20 routes. Specialized features can also be selected. They are , for example, 'Fast Fee', 'Fast Transfer' and 'Route Limits Management'.
I walked through Hyperlane 's bridge smart contract and its deployment flow. Then I simplified the flow and visualized the core smart contract by integrating Openzeppelin wizard 's code generator API and its UI into my project. Other relevant dependencies are also utillized e.g. defi-wonderland ' sXERC20.sol.
The hacky stuff is that I modified and included more features into the original OZ (Openzeppelin) code generator engine in order to support other contract which are not written by OZ yet. For example, I have added addImportWithNoInheritance
method, so that developer can use this api to generate smart contract as needed with less restrictions.