double_baking

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveDoubleBakingEvidenceFor

func SaveDoubleBakingEvidenceFor(ctx context.Context, op models.Operation, repo EvidenceRepo, provider BakesProvider) error

func SaveUnprocessedDoubleBakingEvidences

func SaveUnprocessedDoubleBakingEvidences(ctx context.Context, unit UnitOfWork, provider BakesProvider) (err error)

Types

type BakesProvider

type BakesProvider interface {
	DoubleOperationEvidence(ctx context.Context, blockLevel int, operationHash string) (dee models.DoubleOperationEvidence, err error)
}

type EvidenceRepo

type EvidenceRepo interface {
	Last() (found bool, evidence models.DoubleOperationEvidenceExtended, err error)
	Create(evidence models.DoubleOperationEvidence) error
}

type UnitOfWork

type UnitOfWork interface {
	GetDoubleBaking() double_baking.Repo
	GetOperation() operation.Repo
}

Jump to

Keyboard shortcuts

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