Documentation
¶
Index ¶
- Variables
- type Validator
- func (v *Validator) Account(account identifier.Account) (flow.Address, error)
- func (v *Validator) Block(rosBlockID identifier.Block) (uint64, flow.Identifier, error)
- func (v *Validator) CompleteBlockID(rosBlockID identifier.Block) error
- func (v *Validator) Currency(currency identifier.Currency) (string, uint, error)
- func (v *Validator) Request(request interface{}) error
- func (v *Validator) Transaction(transaction identifier.Transaction) (flow.Identifier, error)
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 (*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) Transaction ¶
func (v *Validator) Transaction(transaction identifier.Transaction) (flow.Identifier, error)
Click to show internal directories.
Click to hide internal directories.