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

feat: support multi challenger & fix launch cmd bug #84

Closed
wants to merge 6 commits into from

Conversation

djm07073
Copy link
Contributor

Support multiple challengers and submitters. However, during initial bridge creation, only one challenger and submitter must be configured

@djm07073 djm07073 requested a review from a team as a code owner June 15, 2024 13:00
Copy link

codecov bot commented Jun 15, 2024

Codecov Report

Attention: Patch coverage is 55.33981% with 46 lines in your changes missing coverage. Please review.

Project coverage is 51.20%. Comparing base (5cc0de9) to head (6761b92).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
+ Coverage   51.01%   51.20%   +0.18%     
==========================================
  Files          57       57              
  Lines        4203     4250      +47     
==========================================
+ Hits         2144     2176      +32     
- Misses       1611     1623      +12     
- Partials      448      451       +3     
Files Coverage Δ
x/opchild/client/cli/tx.go 58.74% <100.00%> (+0.13%) ⬆️
x/ophost/types/genesis.go 0.00% <ø> (ø)
x/ophost/types/hooks.go 0.00% <0.00%> (ø)
x/opchild/client/cli/genesis.go 0.00% <0.00%> (ø)
x/ophost/types/tx.go 51.13% <62.50%> (+0.44%) ⬆️
x/ophost/client/cli/tx.go 61.53% <50.00%> (-0.65%) ⬇️
x/ophost/keeper/msg_server.go 59.86% <84.00%> (+0.97%) ⬆️
x/ophost/types/bridge_config.go 13.55% <21.05%> (+4.86%) ⬆️
x/ophost/types/hook/bridge_hook.go 51.25% <52.77%> (+6.80%) ⬆️

@djm07073 djm07073 changed the title feat: support multi challenger feat: support multi challenger & fix launch cmd bug Jun 17, 2024
Comment on lines +4 to +17
// NOTE: it is a modified BridgeConfig from x/ophost/types/types.go to make unmarshal easier
type BridgeCliConfig struct {
Challenger string `json:"challenger"`
Proposer string `json:"proposer"`
SubmissionInterval string `json:"submission_interval"`
FinalizationPeriod string `json:"finalization_period"`
SubmissionStartTime string `json:"submission_start_time"`
Metadata string `json:"metadata"`
BatchInfo BatchCliInfo `json:"batch_info"`
}

type BatchCliInfo struct {
Submitter string `json:"submitter"`
Chain string `json:"chain"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is it okay?

@djm07073 djm07073 force-pushed the fix/multi-challenger branch from 599c577 to 6761b92 Compare June 27, 2024 05:45
@beer-1 beer-1 mentioned this pull request Jun 27, 2024
@beer-1 beer-1 closed this Jun 27, 2024
@beer-1 beer-1 deleted the fix/multi-challenger branch June 27, 2024 06:23
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