request

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockRequest added in v1.1.1

type BlockRequest struct {
	Chain       *tz.ChainID
	BlockHeader protocol.TenderbakeBlockHeader
}

func (*BlockRequest) GetChainID added in v1.1.1

func (r *BlockRequest) GetChainID() *tz.ChainID

func (*BlockRequest) GetLevel added in v1.1.1

func (r *BlockRequest) GetLevel() int32

func (*BlockRequest) GetRound added in v1.1.1

func (r *BlockRequest) GetRound() int32

func (*BlockRequest) RequestKind added in v1.1.1

func (*BlockRequest) RequestKind() string

type EndorsementRequest

type EndorsementRequest struct {
	Chain     *tz.ChainID
	Branch    *tz.BlockHash
	Operation protocol.InlinedEndorsementContents
}

func (*EndorsementRequest) GetChainID added in v1.1.1

func (r *EndorsementRequest) GetChainID() *tz.ChainID

func (*EndorsementRequest) GetLevel added in v1.1.1

func (r *EndorsementRequest) GetLevel() int32

func (*EndorsementRequest) GetRound added in v1.1.1

func (r *EndorsementRequest) GetRound() int32

func (*EndorsementRequest) RequestKind

func (*EndorsementRequest) RequestKind() string

type GenericOperationRequest

type GenericOperationRequest struct {
	Branch     *tz.BlockHash
	Operations []protocol.OperationContents
}

func (*GenericOperationRequest) RequestKind

func (*GenericOperationRequest) RequestKind() string

type PreendorsementRequest

type PreendorsementRequest struct {
	Chain     *tz.ChainID
	Branch    *tz.BlockHash
	Operation protocol.InlinedPreendorsementContents
}

func (*PreendorsementRequest) GetChainID added in v1.1.1

func (r *PreendorsementRequest) GetChainID() *tz.ChainID

func (*PreendorsementRequest) GetLevel added in v1.1.1

func (r *PreendorsementRequest) GetLevel() int32

func (*PreendorsementRequest) GetRound added in v1.1.1

func (r *PreendorsementRequest) GetRound() int32

func (*PreendorsementRequest) RequestKind

func (*PreendorsementRequest) RequestKind() string

type SignRequest

type SignRequest interface {
	RequestKind() string
}

type Watermark

type Watermark struct {
	Level int32                          `json:"level"`
	Round int32                          `json:"round"`
	Hash  tz.Option[tz.BlockPayloadHash] `json:"hash"`
}

func NewWatermark added in v1.1.1

func NewWatermark(req WithWatermark, hash *crypt.Digest) *Watermark

func (*Watermark) Validate

func (l *Watermark) Validate(stored *Watermark) bool

type WithWatermark

type WithWatermark interface {
	SignRequest
	GetChainID() *tz.ChainID
	GetLevel() int32
	GetRound() int32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL