builtin

package
v0.0.0-zh-01 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultValidation

type DefaultValidation struct {
	Capabilities    Capabilities
	TxValidatorV1_2 TransactionValidator
	TxValidatorV1_3 TransactionValidator
}

func (*DefaultValidation) Init

func (v *DefaultValidation) Init(dependencies ...validation.Dependency) error

func (*DefaultValidation) Validate

func (v *DefaultValidation) Validate(block *common.Block, namespace string, txPosition int, actionPosition int, contextData ...validation.ContextDatum) error

type DefaultValidationFactory

type DefaultValidationFactory struct {
}

func (*DefaultValidationFactory) New

func (*DefaultValidationFactory) New() validation.Plugin

type TransactionValidator

type TransactionValidator interface {
	Validate(block *common.Block, namespace string, txPosition int, actionPosition int, policy []byte) commonerrors.TxValidationError
}

Directories

Path Synopsis
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
v12
mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
v13
mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

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