-
Notifications
You must be signed in to change notification settings - Fork 56
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: fix docs and bad namings in API #2620
base: main
Are you sure you want to change the base?
Conversation
@@ -22,7 +22,7 @@ pub struct GraphEntry { | |||
pub owner: PublicKey, | |||
pub parents: Vec<PublicKey>, | |||
pub content: GraphContent, | |||
pub outputs: Option<Vec<(PublicKey, GraphContent)>>, | |||
pub outputs: Vec<(PublicKey, GraphContent)>, | |||
/// signs the above 4 fields with the owners key |
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 reason for option here is that some patterns we do not have outputs, only Parent. i.e. when used as a file change history the GraphEntry can only go backwards. So the content is a direct or whatever and changes with each entry. There are no outputs in that pattern though.
@@ -1,9 +1,9 @@ | |||
import { LinkedListOptions, PaymentOption } from './types'; |
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.
nice catch
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.
we should also rename this file
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.
Nice @grumbach The docs were old so good to see those changes there too. I left a couple of comments on the GraphEntry type outputs. Looks good to me apart from those comments though
No description provided.