Skip to content

Commit

Permalink
Add preimage struct (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
bamzedev authored Jul 30, 2024
1 parent 8d64844 commit d89e21c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ type Block struct {
// Extrinsic represents the block extrinsic data
type Extrinsic struct {
ET []*TicketProof
EP *PreimageExtrinsic
ED *DisputeExtrinsic
}
9 changes: 9 additions & 0 deletions internal/block/preimage.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package block

// PreimageItem represents a single preimage item in the extrinsic
type Preimage struct {
ServiceIndex uint32
Data []byte
}

type PreimageExtrinsic []Preimage

0 comments on commit d89e21c

Please sign in to comment.