call

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractCallType

type ContractCallType uint8
const (
	ContractCallOrdered ContractCallType
	ContractCallUnordered
	ContractCallSaga
)

func (ContractCallType) String

func (t ContractCallType) String() string

type ID

type ID uint64

type LogicContext

type LogicContext struct {
	ID   ID
	Mode Mode // either "execution" or "validation"

	Request reference.Global // reference of incoming request record

	Callee reference.Global // Contract that is called
	Parent reference.Global // Parent of the callee
	Class  reference.Global // Class (base class) of the callee
	Code   reference.Global // Code reference of the callee

	Caller      reference.Global // Contract that made the call
	CallerClass reference.Global // Class (base class) of the caller

	TraceID string     // trace mark for Jaeger and friends
	Pulse   pulse.Data // pre-fetched pulse for call context
}

LogicContext is a context of contract execution. Everything that is required to implement foundation functions. This struct shouldn't be used in core components.

type Mode

type Mode int

Mode indicates whether we execute or validate

const (
	Execute Mode = iota
	Validate
)

func (Mode) String

func (m Mode) String() string

Jump to

Keyboard shortcuts

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