-
Notifications
You must be signed in to change notification settings - Fork 67
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
Conversation
This reverts commit e5ccda2.
…service-output-should-be-generalised-for-da-layer
…rt-for-avail-as-a-da
…rt-for-avail-as-a-da
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.
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 |
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.
avail doesn't get included in the supported keys in this flow right
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.
I know, there should be issue to handle it
@@ -36,10 +38,11 @@ func NewDAManager(datype config.DAType, home string) *DAManager { | |||
dalayer = &celestia.Celestia{ | |||
Root: home, | |||
} | |||
case config.Avail: | |||
dalayer = avail.NewAvail(home) |
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.
maybe break newavail
to constructor and init config, like celestia?
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.
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" |
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
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.
the DA row is displayed now, u prefer something else to be written for mock DA?
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.
LGTM
PR Standards
Opening a pull request should be able to meet the following requirements
For Author:
godoc
commentsFor Reviewer:
After reviewer approval: