Custom bridges can bring a significant amount of complexity and risk to any project.
Before you commit to a custom bridge, be sure that the Standard Bridge definitely does not support your use case.
Building a custom bridged token is often sufficient for projects that need more flexibility.
Guidelines
Custom bridges can use any design pattern you can think of. However, with increased complexity comes increased risk. Consider directly extending or modifying theStandardBridge
contract before building your own bridge contracts from scratch.
Doing so will provide you with an audited foundation upon which you can add extra logic.
If you choose not to extend the StandardBridge
contract, you may still want to follow the interface that the StandardBridge
provides.
Bridges that extend this interface will be compatible with the Superchain Bridges UI.
You can read more about the design of the Standard Bridge in the guide on Using the Standard Bridge.