types

package
v0.32.0-beta1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowError

type FlowError struct {
	FlowError fvmerrors.Error
}

func (*FlowError) Error

func (f *FlowError) Error() string

func (*FlowError) Unwrap added in v0.20.2

func (f *FlowError) Unwrap() error

type ScriptResult

type ScriptResult struct {
	ScriptID flow.Identifier
	Value    cadence.Value
	Error    error
	Logs     []string
	Events   []flow.Event
}

A ScriptResult is the result of executing a script.

func (ScriptResult) Reverted

func (r ScriptResult) Reverted() bool

Reverted returns true if the script executed with errors.

func (ScriptResult) Succeeded

func (r ScriptResult) Succeeded() bool

Succeeded returns true if the script executed without errors.

type StorableTransactionResult

type StorableTransactionResult struct {
	ErrorCode    int
	ErrorMessage string
	Logs         []string
	Events       []flowgo.Event
}

type TransactionResult

type TransactionResult struct {
	TransactionID   flow.Identifier
	ComputationUsed uint64
	Error           error
	Logs            []string
	Events          []flow.Event
	Debug           *TransactionResultDebug
}

A TransactionResult is the result of executing a transaction.

func (TransactionResult) Reverted

func (r TransactionResult) Reverted() bool

Reverted returns true if the transaction executed with errors.

func (TransactionResult) Succeeded

func (r TransactionResult) Succeeded() bool

Succeeded returns true if the transaction executed without errors.

type TransactionResultDebug added in v0.25.0

type TransactionResultDebug struct {
	Message string
	Meta    map[string]string
}

TransactionResultDebug provides details about unsuccessful transaction execution

func NewTransactionInvalidHashAlgo added in v0.25.0

func NewTransactionInvalidHashAlgo(
	key flowgo.AccountPublicKey,
	address flowgo.Address,
	invalidAlgo hash.HashingAlgorithm,
) *TransactionResultDebug

NewTransactionInvalidHashAlgo creates debug details for transactions with invalid hashing algorithm

func NewTransactionInvalidSignature added in v0.25.0

func NewTransactionInvalidSignature(
	tx *flowgo.TransactionBody,
) *TransactionResultDebug

NewTransactionInvalidSignature creates more debug details for transactions with invalid signature

Jump to

Keyboard shortcuts

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