-
Notifications
You must be signed in to change notification settings - Fork 69
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: Add support for avail as a DA #355
Merged
Merged
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5327575
Added avail client.
omritoptix 34269ac
Merge remote-tracking branch 'origin/main' into omritoptix/49-add-pol…
omritoptix 390e3bb
Removed redundant DaStartHeight flag.
omritoptix 926ded5
Renamed blockBatchSizeBytes to blockBatchMaxSizeBytes as batch can be…
omritoptix ad3c47d
Updated golangci-lint pre-commit hook.
omritoptix c7d4bfd
Added avail client to registry.
omritoptix 25685b3
Updated avail log messages.
omritoptix 77a2210
Moved util functionality from celestia to a util.go file.
omritoptix 988f132
Added health event emission to avail client.
omritoptix 5817b05
Merge remote-tracking branch 'origin/main' into omritoptix/49-add-pol…
mtsitrin 8244200
added avail example config
mtsitrin 325e9d1
fixed wrong quotes used in example
mtsitrin 3248244
updated cosmosclient version
mtsitrin da16f3b
Merge branch 'main' into omritoptix/49-add-polygon-avail
omritoptix 5c4f20b
Fixed go-fmt.
omritoptix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,15 +78,16 @@ batch_submit_max_time = "{{ .BlockManagerConfig.BatchSubmitMaxTime }}" | |
|
||
### da config ### | ||
da_layer = "{{ .DALayer }}" # mock, celestia | ||
da_start_height = {{ .BlockManagerConfig.DAStartHeight }} | ||
namespace_id = "{{ .BlockManagerConfig.NamespaceID }}" | ||
da_config = "{{ .DAConfig }}" | ||
|
||
# max size of batch in bytes that can be accepted by DA | ||
block_batch_size_bytes = {{ .BlockManagerConfig.BlockBatchSizeBytes }} | ||
block_batch_max_size_bytes = {{ .BlockManagerConfig.BlockBatchMaxSizeBytes }} | ||
|
||
#celestia config | ||
#celestia config example: | ||
# da_config = "{\"base_url\": \"http://127.0.0.1:26659\", \"timeout\": 60000000000, \"fee\":20000, \"gas_limit\": 20000000, \"namespace_id\":\"000000000000ffff\"}" | ||
da_config = "{{ .DAConfig }}" | ||
# Avail config example: | ||
# da_config = “{\“seed\“: \“MNEMONIC\“, \“api_url\“: \“wss://kate.avail.tools/ws\“, \“app_id\“: 0, \“tip\“:10}“, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. seems like there are curly quotes (vs straight quotes) |
||
|
||
### settlement config ### | ||
settlement_layer = "{{ .SettlementLayer }}" # mock, dymension | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why u need it? isn't the manager stopped by the context already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it is but it takes the manager time due to the other case running (so the context.Done() case doesn't get a context switch immediately but only after a few seconds).
the tests kept failing so this fixed it.
prob it's bit dirty. if you have a better idea..