Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the BridgeCreator.sol contract #77

Merged
merged 4 commits into from
Oct 9, 2023

Conversation

gvladika
Copy link
Contributor

@gvladika gvladika commented Oct 9, 2023

Cherry-pick commits from https://github.com/tsite/nitro-contracts/tree/feature-orbit-bridge

Clean up the code and reduce deployment gas cost by moving contract creation outside of the contructor.

Move the sequencer inbox maxTimeVariation from memory to calldata.

Add DISABLE_VERIFICATION environment variable to disable contract verification.

tsite and others added 4 commits October 9, 2023 13:39
Clean up the code and reduce deployment gas cost by moving contract
creation outside of the contructor.

Move the sequencer inbox maxTimeVariation from memory to calldata.

Index the sender for MessageDelivered events - this allows bridges to
efficiently query the deposit history for an address without requiring an
external indexer.

Add DISABLE_VERIFICATION environment variable to disable contract verification.
remove indexed variable change - this can be done in a separate pr as it breaks the abi
remove RollupCreator.BridgeContracts - use the BridgeCreator.BridgeContracts struct instead
make BridgeCreator.createBridge() return a BridgeContracts struct instead of a tuple
fix unit tests
run "yarn format" to clean up the code
@gvladika gvladika requested a review from gzeoneth October 9, 2023 11:49
@cla-bot cla-bot bot added the s label Oct 9, 2023
Copy link
Member

@gzeoneth gzeoneth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gvladika gvladika merged commit c03dddc into feature-orbit-bridge Oct 9, 2023
4 checks passed
@gvladika gvladika deleted the bridge-creator-cherrypick branch October 9, 2023 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants