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: add support for avail as a da #285

Merged
merged 29 commits into from
Jul 25, 2023

Conversation

mtsitrin
Copy link
Contributor

PR Standards

Opening a pull request should be able to meet the following requirements


For Author:

  • Targeted PR against correct branch
  • included the correct type prefix in the PR title
  • Linked to Github issue with discussion and accepted design
  • Targets only one github issue
  • Wrote unit and integration tests
  • All CI checks have passed
  • Added relevant godoc comments

For Reviewer:

  • confirmed the correct type prefix in the PR title
  • Reviewers assigned
  • confirmed all author checklist items have been addressed

After reviewer approval:

  • In case targets main branch, PR should be squashed and merged.
  • In case PR targets a release branch, PR should be rebased.

mtsitrin added 28 commits July 4, 2023 09:22
…service-output-should-be-generalised-for-da-layer
@mtsitrin mtsitrin requested a review from a team as a code owner July 17, 2023 14:04
@mtsitrin mtsitrin linked an issue Jul 17, 2023 that may be closed by this pull request
Copy link
Contributor

@ItayLevyOfficial ItayLevyOfficial left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -40,10 +41,13 @@ func Cmd() *cobra.Command {
out, err := utils.ExecBashCommand(exportKeyCmd)
printKeyOutput(out.String(), err)
} else if keyID != "" && keyID == damanager.GetKeyName() {
//TODO: avail doesn't need cmd to get the keys, it's stored in the config
Copy link
Contributor

Choose a reason for hiding this comment

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

avail doesn't get included in the supported keys in this flow right

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know, there should be issue to handle it

data_layer/avail/avail.go Outdated Show resolved Hide resolved
@@ -36,10 +38,11 @@ func NewDAManager(datype config.DAType, home string) *DAManager {
dalayer = &celestia.Celestia{
Root: home,
}
case config.Avail:
dalayer = avail.NewAvail(home)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe break newavail to constructor and init config, like celestia?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the init of celestia is for the light client. we don't have light client in avail

@@ -13,7 +12,7 @@ type DAMock struct {
}

func (d *DAMock) GetStatus(c config.RollappConfig) string {
return ""
return "Running mock DA"
Copy link
Contributor

Choose a reason for hiding this comment

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

why

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the DA row is displayed now, u prefer something else to be written for mock DA?

Copy link
Contributor

@ItayLevyOfficial ItayLevyOfficial left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Add support for avail as a DA
2 participants