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

Bridge type #363

Closed
Closed

Conversation

dusannosovic-ethernal
Copy link

@dusannosovic-ethernal dusannosovic-ethernal commented Sep 2, 2024

Description

This pull request introduces a new Bridge type that manages multiple bridge managers. The Bridge type contains a map of bridge managers, with the chainID as the key. The primary purpose of the Bridge type is to serve as a wrapper around these bridge managers. It iterates through all the bridge managers and invokes their respective functions.

Bridge type functions:

  • Close()
  • PostBlockAsync(req *PostBlockRequest)
  • PostBlock(req *PostBlockRequest) error
  • PostEpoch(req *PostEpochRequest) error
  • BridgeBatch(pendingBlockNumber uint64) ([]*BridgeBatchSigned, error)
  • InsertEpoch(epoch uint64, tx *bolt.Tx) error

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Breaking changes

Please complete this section if any breaking changes have been made, otherwise delete it

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the relevant labels
  • I have updated the official documentation
  • I have added sufficient documentation in code

Testing

  • I have tested this code with the official test suite
  • I have tested this code manually

@dusannosovic-ethernal dusannosovic-ethernal self-assigned this Sep 2, 2024
@goran-ethernal goran-ethernal deleted the BLADE-206-bridge-event-manager branch September 3, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants