validator

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidValidation = errors.New("invalid validation input")

Functions

This section is empty.

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func New

func New(params dps.Params, index dps.Reader) *Validator

func (*Validator) Account

func (v *Validator) Account(account identifier.Account) (flow.Address, error)

func (*Validator) Block

func (v *Validator) Block(rosBlockID identifier.Block) (uint64, flow.Identifier, error)

Block identifier tries to extrapolate the block identifier to a full version of itself. If both index and hash are zero values, it is assumed that the latest block is referenced.

func (*Validator) CompleteBlockID added in v1.3.0

func (v *Validator) CompleteBlockID(rosBlockID identifier.Block) error

CompleteBlockID verifies that both index and hash are populated in the block ID.

func (*Validator) Currency

func (v *Validator) Currency(currency identifier.Currency) (string, uint, error)

func (*Validator) Request added in v1.3.0

func (v *Validator) Request(request interface{}) error

func (*Validator) Transaction

func (v *Validator) Transaction(transaction identifier.Transaction) (flow.Identifier, error)

Jump to

Keyboard shortcuts

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