types

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 4 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 fvm.Error
}

func (*FlowError) Error

func (f *FlowError) Error() string

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
	Error         error
	Logs          []string
	Events        []flow.Event
}

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.

Jump to

Keyboard shortcuts

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