diff --git a/internal/block/block.go b/internal/block/block.go index a7eb69a..792fdc7 100644 --- a/internal/block/block.go +++ b/internal/block/block.go @@ -9,4 +9,5 @@ type Block struct { // Extrinsic represents the block extrinsic data type Extrinsic struct { ET []*TicketProof + EP *PreimageExtrinsic } diff --git a/internal/block/preimage.go b/internal/block/preimage.go new file mode 100644 index 0000000..f767ca8 --- /dev/null +++ b/internal/block/preimage.go @@ -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 \ No newline at end of file