Skip to content

DRAFT: add caip ipld log#2

Open
zachferland wants to merge 1 commit into
masterfrom
CAIPs/caip-ipld_log
Open

DRAFT: add caip ipld log#2
zachferland wants to merge 1 commit into
masterfrom
CAIPs/caip-ipld_log

Conversation

@zachferland
Copy link
Copy Markdown

Opening local PR again, to decide if want to make this a CAIP or not. It is very minimally defined to be a general CAIP. Have to decide if such a minimally defined spec is useful or not and if makes sense as a CAIP.

Comment thread CAIPs/caip-ipld_log.md
}
type GenesisEvent struct {
header GenesisHeader
data Any | &Any
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

not sure how to define ANY or CID of ANY in ipld schema language

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
data Any | &Any
data Any | Link

@zachferland zachferland requested a review from oed November 10, 2022 16:35
Comment thread CAIPs/caip-ipld_log.md
Comment on lines +59 to +68
type DataHeader struct {
controllers optional [String]
}

type DataEvent struct {
id Link
prev Link
header optional DataHeader
data Any | &Any
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
type DataHeader struct {
controllers optional [String]
}
type DataEvent struct {
id Link
prev Link
header optional DataHeader
data Any | &Any
}
type Event GenesisEvent | DataEvent | AnchorDataEvent
type DataHeader struct {
controllers optional [String]
}
type DataEvent struct {
id &GenesisEvent
prev &Event | [&Event]
header optional DataHeader
data Any | Link
}

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