github.com/mavryk-network/mvgo@v1.19.9/rpc/dal.go (about) 1 // Copyright (c) 2024 Blockwatch Data Inc. 2 // Author: alex@blockwatch.cc 3 4 package rpc 5 6 import "github.com/mavryk-network/mvgo/mavryk" 7 8 // Ensure DAL types implement the TypedOperation interface. 9 var ( 10 _ TypedOperation = (*DalPublishCommitment)(nil) 11 ) 12 13 type DalPublishCommitment struct { 14 Manager 15 SlotHeader struct { 16 Index byte `json:"slot_index"` 17 Commitment string `json:"commitment"` 18 Proof mavryk.HexBytes `json:"commitment_proof"` 19 } `json:"slot_header"` 20 } 21 22 type DalResult struct { 23 SlotHeader struct { 24 Version string `json:"version"` 25 Level int64 `json:"level"` 26 Index byte `json:"index"` 27 Commitment string `json:"commitment"` 28 } `json:"slot_header"` 29 }