contexts

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: GPL-3.0 Imports: 32 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Warm indicates that the instance to track is a warm instance
	Warm instanceCacheLevel = iota

	// Precompiled indicates that the instance to track is cold and has been created from precompiled code
	Precompiled

	// Bytecode indicates that the instance to track is cold and has been created from raw bytecode
	Bytecode
)
View Source
const VMStoragePrefix = "VM@"

VMStoragePrefix defines the VM prefix

View Source
const WarmInstancesEnabled = true

WarmInstancesEnabled controls the usage of warm instances

Variables

View Source
var (
	ErrInvalidLengthAsync        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAsync          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAsync = fmt.Errorf("proto: unexpected end of group")
)
View Source
var SerializableCallType_name = map[int32]string{
	0: "DirectCall",
	1: "AsynchronousCall",
	2: "AsynchronousCallBack",
	3: "ESDTTransferAndExecute",
}
View Source
var SerializableCallType_value = map[string]int32{
	"DirectCall":             0,
	"AsynchronousCall":       1,
	"AsynchronousCallBack":   2,
	"ESDTTransferAndExecute": 3,
}

Functions

func AddAsyncArgumentsToOutputTransfers

func AddAsyncArgumentsToOutputTransfers(
	output vmhost.OutputContext,
	address []byte,
	asyncParams *vmcommon.AsyncArguments,
	callType vm.CallType,
	vmOutput *vmcommon.VMOutput) error

Called to process OutputTransfers created by a direct call (on dest) builtin function call by the VM

func AppendAsyncArgumentsToCallbackCallData

func AppendAsyncArgumentsToCallbackCallData(
	hasher crypto.Hasher,
	data []byte,
	asyncArguments *vmcommon.AsyncArguments,
	parseArgumentsFunc func(data string) ([][]byte, error)) ([]byte, error)
	Called when a SCR for a callback is created outside the VM
	(by createAsyncCallBackSCRFromVMOutput())
	This is the case
	A)	after an async call executed following a builtin function call,
	B)	other cases where processing the output trasnfers of a VMOutput did
		not produce a SCR of type AsynchronousCallBack
    TODO(check): function not used?

func AppendOutputTransfers

func AppendOutputTransfers(account *vmcommon.OutputAccount, existingTransfers []vmcommon.OutputTransfer, transfers ...vmcommon.OutputTransfer)

func AppendTransferAsyncDataToCallData

func AppendTransferAsyncDataToCallData(
	callData []byte,
	asyncData []byte,
	parseArgumentsFunc func(data string) ([][]byte, error)) ([]byte, error)
	Called when a SCR is created from VMOutput in order to recompose
	async data and call data into a transfer data ready for the SCR
	(by preprocessOutTransferToSCR())
    TODO(check): function not used?

func CreateCallbackAsyncParams

func CreateCallbackAsyncParams(hasher crypto.Hasher, asyncParams *vmcommon.AsyncArguments) [][]byte

Used by when a callback SCR is created

  1. after a failure of an async call Async data is extracted (by extractAsyncCallParamsFromTxData()) and then reappended to the new SCR's callback data (by reapendAsyncParamsToTxData())
  2. from the last transfer (see useLastTransferAsAsyncCallBackWhenNeeded())

func DebugCallIDAsString

func DebugCallIDAsString(arr []byte) string

DebugCallIDAsString - just for debug purposes

func GenerateNewCallID

func GenerateNewCallID(hasher crypto.Hasher, parentCallID []byte, suffix []byte) []byte

GenerateNewCallID will generate a new call ID as byte slice

func IsCallAsync

func IsCallAsync(callType vm.CallType) bool

IsCallAsync checks if the call is an async or callback async

func NewAsyncContext

func NewAsyncContext(
	host vmhost.VMHost,
	callArgsParser vmhost.CallArgsParser,
	esdtTransferParser vmcommon.ESDTTransferParser,
	_ *marshal.GogoProtoMarshalizer,
) (*asyncContext, error)

NewAsyncContext creates a new asyncContext.

func NewBlockchainContext

func NewBlockchainContext(
	host vmhost.VMHost,
	blockChainHook vmcommon.BlockchainHook,
) (*blockchainContext, error)

NewBlockchainContext creates a new blockchainContext

func NewDisabledGasTracer

func NewDisabledGasTracer() *disabledGasTracer

NewDisabledGasTracer creates a new disabledGasTracer

func NewEnabledGasTracer

func NewEnabledGasTracer() *gasTracer

NewEnabledGasTracer creates a new gasTracer

func NewInstanceTracker

func NewInstanceTracker() (*instanceTracker, error)

NewInstanceTracker creates a new instanceTracker instance

func NewManagedTypesContext

func NewManagedTypesContext(host vmhost.VMHost) (*managedTypesContext, error)

NewManagedTypesContext creates a new managedTypesContext

func NewMeteringContext

func NewMeteringContext(
	host vmhost.VMHost,
	gasMap config.GasScheduleMap,
	blockGasLimit uint64,
) (*meteringContext, error)

NewMeteringContext creates a new meteringContext

func NewOutputContext

func NewOutputContext(host vmhost.VMHost) (*outputContext, error)

NewOutputContext creates a new outputContext

func NewReservedFunctions

func NewReservedFunctions(scAPINames vmcommon.FunctionNames, builtInFuncContainer vmcommon.BuiltInFunctionContainer) *reservedFunctions

NewReservedFunctions creates a new reservedFunctions

func NewRuntimeContext

func NewRuntimeContext(
	host vmhost.VMHost,
	vmType []byte,
	builtInFuncContainer vmcommon.BuiltInFunctionContainer,
	vmExecutor executor.Executor,
	hasher vmhost.HashComputer,
) (*runtimeContext, error)

NewRuntimeContext creates a new runtimeContext

func NewStorageContext

func NewStorageContext(
	host vmhost.VMHost,
	blockChainHook vmcommon.BlockchainHook,
	protectedKeyPrefix []byte,
) (*storageContext, error)

NewStorageContext creates a new storageContext

func NewVMOutputAccount

func NewVMOutputAccount(address []byte) *vmcommon.OutputAccount

NewVMOutputAccount creates a new output account and sets the given address

func ReturnCodeToBytes

func ReturnCodeToBytes(returnCode vmcommon.ReturnCode) []byte

ReturnCodeToBytes returns the provided returnCode as byte slice

Types

type Cacher

type Cacher interface {
	// Clear is used to completely clear the cache.
	Clear()
	// Put adds a value to the cache.  Returns true if an eviction occurred.
	Put(key []byte, value interface{}, sizeInBytes int) (evicted bool)
	// Get looks up a key's value from the cache.
	Get(key []byte) (value interface{}, ok bool)
	// Has checks if a key is in the cache, without updating the
	// recent-ness or deleting it for being stale.
	Has(key []byte) bool
	// Peek returns the key value (or undefined if not found) without updating
	// the "recently used"-ness of the key.
	Peek(key []byte) (value interface{}, ok bool)
	// HasOrAdd checks if a key is in the cache without updating the
	// recent-ness or deleting it for being stale, and if not adds the value.
	HasOrAdd(key []byte, value interface{}, sizeInBytes int) (has, added bool)
	// Remove removes the provided key from the cache.
	Remove(key []byte)
	// Keys returns a slice of the keys in the cache, from oldest to newest.
	Keys() [][]byte
	// Len returns the number of items in the cache.
	Len() int
	// SizeInBytesContained returns the size in bytes of all contained elements
	SizeInBytesContained() uint64
	// MaxSize returns the maximum number of items which can be stored in the cache.
	MaxSize() int
	// RegisterHandler registers a new handler to be called when a new data is added
	RegisterHandler(handler func(key []byte, value interface{}), id string)
	// UnRegisterHandler deletes the handler from the list
	UnRegisterHandler(id string)
	// Close closes the underlying temporary db if the cacher implementation has one,
	// otherwise it does nothing
	Close() error
	// IsInterfaceNil returns true if there is no value under the interface
	IsInterfaceNil() bool
}

Cacher provides caching services

type SerializableAsyncContext

type SerializableAsyncContext struct {
	Address                      []byte                               `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
	CallID                       []byte                               `protobuf:"bytes,2,opt,name=CallID,proto3" json:"CallID,omitempty"`
	CallType                     SerializableCallType                 `protobuf:"varint,3,opt,name=CallType,proto3,enum=contexts.SerializableCallType" json:"CallType,omitempty"`
	CallerAddr                   []byte                               `protobuf:"bytes,4,opt,name=CallerAddr,proto3" json:"CallerAddr,omitempty"`
	ParentAddr                   []byte                               `protobuf:"bytes,5,opt,name=ParentAddr,proto3" json:"ParentAddr,omitempty"`
	CallerCallID                 []byte                               `protobuf:"bytes,6,opt,name=CallerCallID,proto3" json:"CallerCallID,omitempty"`
	CallbackAsyncInitiatorCallID []byte                               `protobuf:"bytes,7,opt,name=CallbackAsyncInitiatorCallID,proto3" json:"CallbackAsyncInitiatorCallID,omitempty"`
	Callback                     string                               `protobuf:"bytes,8,opt,name=Callback,proto3" json:"Callback,omitempty"`
	CallbackData                 []byte                               `protobuf:"bytes,9,opt,name=CallbackData,proto3" json:"CallbackData,omitempty"`
	GasAccumulated               uint64                               `protobuf:"varint,10,opt,name=GasAccumulated,proto3" json:"GasAccumulated,omitempty"`
	ReturnData                   []byte                               `protobuf:"bytes,11,opt,name=ReturnData,proto3" json:"ReturnData,omitempty"`
	AsyncCallGroups              []*vmhost.SerializableAsyncCallGroup `protobuf:"bytes,12,rep,name=asyncCallGroups,proto3" json:"asyncCallGroups,omitempty"`
	CallsCounter                 uint64                               `protobuf:"varint,13,opt,name=CallsCounter,proto3" json:"CallsCounter,omitempty"`
	TotalCallsCounter            uint64                               `protobuf:"varint,14,opt,name=TotalCallsCounter,proto3" json:"TotalCallsCounter,omitempty"`
	ChildResults                 *SerializableVMOutput                `protobuf:"bytes,15,opt,name=ChildResults,proto3" json:"ChildResults,omitempty"`
}

func (*SerializableAsyncContext) Descriptor

func (*SerializableAsyncContext) Descriptor() ([]byte, []int)

func (*SerializableAsyncContext) Equal

func (this *SerializableAsyncContext) Equal(that interface{}) bool

func (*SerializableAsyncContext) GetAddress

func (m *SerializableAsyncContext) GetAddress() []byte

func (*SerializableAsyncContext) GetAsyncCallGroups

func (m *SerializableAsyncContext) GetAsyncCallGroups() []*vmhost.SerializableAsyncCallGroup

func (*SerializableAsyncContext) GetCallID

func (m *SerializableAsyncContext) GetCallID() []byte

func (*SerializableAsyncContext) GetCallType

func (*SerializableAsyncContext) GetCallback

func (m *SerializableAsyncContext) GetCallback() string

func (*SerializableAsyncContext) GetCallbackAsyncInitiatorCallID

func (m *SerializableAsyncContext) GetCallbackAsyncInitiatorCallID() []byte

func (*SerializableAsyncContext) GetCallbackData

func (m *SerializableAsyncContext) GetCallbackData() []byte

func (*SerializableAsyncContext) GetCallerAddr

func (m *SerializableAsyncContext) GetCallerAddr() []byte

func (*SerializableAsyncContext) GetCallerCallID

func (m *SerializableAsyncContext) GetCallerCallID() []byte

func (*SerializableAsyncContext) GetCallsCounter

func (m *SerializableAsyncContext) GetCallsCounter() uint64

func (*SerializableAsyncContext) GetChildResults

func (m *SerializableAsyncContext) GetChildResults() *SerializableVMOutput

func (*SerializableAsyncContext) GetGasAccumulated

func (m *SerializableAsyncContext) GetGasAccumulated() uint64

func (*SerializableAsyncContext) GetParentAddr added in v1.5.8

func (m *SerializableAsyncContext) GetParentAddr() []byte

func (*SerializableAsyncContext) GetReturnData

func (m *SerializableAsyncContext) GetReturnData() []byte

func (*SerializableAsyncContext) GetTotalCallsCounter

func (m *SerializableAsyncContext) GetTotalCallsCounter() uint64

func (*SerializableAsyncContext) GoString

func (this *SerializableAsyncContext) GoString() string

func (*SerializableAsyncContext) IsComplete

func (context *SerializableAsyncContext) IsComplete() bool

IsComplete returns true if no more async calls are pending

func (*SerializableAsyncContext) Marshal

func (m *SerializableAsyncContext) Marshal() (dAtA []byte, err error)

func (*SerializableAsyncContext) MarshalTo

func (m *SerializableAsyncContext) MarshalTo(dAtA []byte) (int, error)

func (*SerializableAsyncContext) MarshalToSizedBuffer

func (m *SerializableAsyncContext) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SerializableAsyncContext) ProtoMessage

func (*SerializableAsyncContext) ProtoMessage()

func (*SerializableAsyncContext) Reset

func (m *SerializableAsyncContext) Reset()

func (*SerializableAsyncContext) Size

func (m *SerializableAsyncContext) Size() (n int)

func (*SerializableAsyncContext) String

func (this *SerializableAsyncContext) String() string

func (*SerializableAsyncContext) Unmarshal

func (m *SerializableAsyncContext) Unmarshal(dAtA []byte) error

func (*SerializableAsyncContext) XXX_DiscardUnknown

func (m *SerializableAsyncContext) XXX_DiscardUnknown()

func (*SerializableAsyncContext) XXX_Marshal

func (m *SerializableAsyncContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SerializableAsyncContext) XXX_Merge

func (m *SerializableAsyncContext) XXX_Merge(src proto.Message)

func (*SerializableAsyncContext) XXX_Size

func (m *SerializableAsyncContext) XXX_Size() int

func (*SerializableAsyncContext) XXX_Unmarshal

func (m *SerializableAsyncContext) XXX_Unmarshal(b []byte) error

type SerializableCallType

type SerializableCallType int32
const (
	DirectCall             SerializableCallType = 0
	AsynchronousCall       SerializableCallType = 1
	AsynchronousCallBack   SerializableCallType = 2
	ESDTTransferAndExecute SerializableCallType = 3
)

func (SerializableCallType) EnumDescriptor

func (SerializableCallType) EnumDescriptor() ([]byte, []int)

func (SerializableCallType) String

func (x SerializableCallType) String() string

type SerializableLogEntry

type SerializableLogEntry struct {
	Identifier []byte   `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
	Address    []byte   `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"`
	Topics     [][]byte `protobuf:"bytes,3,rep,name=Topics,proto3" json:"Topics,omitempty"`
	Data       []byte   `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"`
}

func (*SerializableLogEntry) Descriptor

func (*SerializableLogEntry) Descriptor() ([]byte, []int)

func (*SerializableLogEntry) Equal

func (this *SerializableLogEntry) Equal(that interface{}) bool

func (*SerializableLogEntry) GetAddress

func (m *SerializableLogEntry) GetAddress() []byte

func (*SerializableLogEntry) GetData

func (m *SerializableLogEntry) GetData() []byte

func (*SerializableLogEntry) GetIdentifier

func (m *SerializableLogEntry) GetIdentifier() []byte

func (*SerializableLogEntry) GetTopics

func (m *SerializableLogEntry) GetTopics() [][]byte

func (*SerializableLogEntry) GoString

func (this *SerializableLogEntry) GoString() string

func (*SerializableLogEntry) Marshal

func (m *SerializableLogEntry) Marshal() (dAtA []byte, err error)

func (*SerializableLogEntry) MarshalTo

func (m *SerializableLogEntry) MarshalTo(dAtA []byte) (int, error)

func (*SerializableLogEntry) MarshalToSizedBuffer

func (m *SerializableLogEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SerializableLogEntry) ProtoMessage

func (*SerializableLogEntry) ProtoMessage()

func (*SerializableLogEntry) Reset

func (m *SerializableLogEntry) Reset()

func (*SerializableLogEntry) Size

func (m *SerializableLogEntry) Size() (n int)

func (*SerializableLogEntry) String

func (this *SerializableLogEntry) String() string

func (*SerializableLogEntry) Unmarshal

func (m *SerializableLogEntry) Unmarshal(dAtA []byte) error

func (*SerializableLogEntry) XXX_DiscardUnknown

func (m *SerializableLogEntry) XXX_DiscardUnknown()

func (*SerializableLogEntry) XXX_Marshal

func (m *SerializableLogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SerializableLogEntry) XXX_Merge

func (m *SerializableLogEntry) XXX_Merge(src proto.Message)

func (*SerializableLogEntry) XXX_Size

func (m *SerializableLogEntry) XXX_Size() int

func (*SerializableLogEntry) XXX_Unmarshal

func (m *SerializableLogEntry) XXX_Unmarshal(b []byte) error

type SerializableOutputAccount

type SerializableOutputAccount struct {
	Address             []byte                                `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
	Nonce               uint64                                `protobuf:"varint,2,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	Balance             *math_big.Int                         `` /* 140-byte string literal not displayed */
	StorageUpdates      map[string]*SerializableStorageUpdate `` /* 169-byte string literal not displayed */
	Code                []byte                                `protobuf:"bytes,5,opt,name=Code,proto3" json:"Code,omitempty"`
	CodeMetadata        []byte                                `protobuf:"bytes,6,opt,name=CodeMetadata,proto3" json:"CodeMetadata,omitempty"`
	CodeDeployerAddress []byte                                `protobuf:"bytes,7,opt,name=CodeDeployerAddress,proto3" json:"CodeDeployerAddress,omitempty"`
	BalanceDelta        *math_big.Int                         `` /* 150-byte string literal not displayed */
	OutputTransfers     []*SerializableOutputTransfer         `protobuf:"bytes,9,rep,name=OutputTransfers,proto3" json:"OutputTransfers,omitempty"`
	GasUsed             uint64                                `protobuf:"varint,10,opt,name=GasUsed,proto3" json:"GasUsed,omitempty"`
}

func (*SerializableOutputAccount) Descriptor

func (*SerializableOutputAccount) Descriptor() ([]byte, []int)

func (*SerializableOutputAccount) Equal

func (this *SerializableOutputAccount) Equal(that interface{}) bool

func (*SerializableOutputAccount) GetAddress

func (m *SerializableOutputAccount) GetAddress() []byte

func (*SerializableOutputAccount) GetBalance

func (m *SerializableOutputAccount) GetBalance() *math_big.Int

func (*SerializableOutputAccount) GetBalanceDelta

func (m *SerializableOutputAccount) GetBalanceDelta() *math_big.Int

func (*SerializableOutputAccount) GetCode

func (m *SerializableOutputAccount) GetCode() []byte

func (*SerializableOutputAccount) GetCodeDeployerAddress

func (m *SerializableOutputAccount) GetCodeDeployerAddress() []byte

func (*SerializableOutputAccount) GetCodeMetadata

func (m *SerializableOutputAccount) GetCodeMetadata() []byte

func (*SerializableOutputAccount) GetGasUsed

func (m *SerializableOutputAccount) GetGasUsed() uint64

func (*SerializableOutputAccount) GetNonce

func (m *SerializableOutputAccount) GetNonce() uint64

func (*SerializableOutputAccount) GetOutputTransfers

func (m *SerializableOutputAccount) GetOutputTransfers() []*SerializableOutputTransfer

func (*SerializableOutputAccount) GetStorageUpdates

func (m *SerializableOutputAccount) GetStorageUpdates() map[string]*SerializableStorageUpdate

func (*SerializableOutputAccount) GoString

func (this *SerializableOutputAccount) GoString() string

func (*SerializableOutputAccount) Marshal

func (m *SerializableOutputAccount) Marshal() (dAtA []byte, err error)

func (*SerializableOutputAccount) MarshalTo

func (m *SerializableOutputAccount) MarshalTo(dAtA []byte) (int, error)

func (*SerializableOutputAccount) MarshalToSizedBuffer

func (m *SerializableOutputAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SerializableOutputAccount) ProtoMessage

func (*SerializableOutputAccount) ProtoMessage()

func (*SerializableOutputAccount) Reset

func (m *SerializableOutputAccount) Reset()

func (*SerializableOutputAccount) Size

func (m *SerializableOutputAccount) Size() (n int)

func (*SerializableOutputAccount) String

func (this *SerializableOutputAccount) String() string

func (*SerializableOutputAccount) Unmarshal

func (m *SerializableOutputAccount) Unmarshal(dAtA []byte) error

func (*SerializableOutputAccount) XXX_DiscardUnknown

func (m *SerializableOutputAccount) XXX_DiscardUnknown()

func (*SerializableOutputAccount) XXX_Marshal

func (m *SerializableOutputAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SerializableOutputAccount) XXX_Merge

func (m *SerializableOutputAccount) XXX_Merge(src proto.Message)

func (*SerializableOutputAccount) XXX_Size

func (m *SerializableOutputAccount) XXX_Size() int

func (*SerializableOutputAccount) XXX_Unmarshal

func (m *SerializableOutputAccount) XXX_Unmarshal(b []byte) error

type SerializableOutputTransfer

type SerializableOutputTransfer struct {
	Value         *math_big.Int        `` /* 136-byte string literal not displayed */
	GasLimit      uint64               `protobuf:"varint,2,opt,name=GasLimit,proto3" json:"GasLimit,omitempty"`
	GasLocked     uint64               `protobuf:"varint,3,opt,name=GasLocked,proto3" json:"GasLocked,omitempty"`
	Data          []byte               `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"`
	CallType      SerializableCallType `protobuf:"varint,5,opt,name=CallType,proto3,enum=contexts.SerializableCallType" json:"CallType,omitempty"`
	SenderAddress []byte               `protobuf:"bytes,6,opt,name=SenderAddress,proto3" json:"SenderAddress,omitempty"`
}

func (*SerializableOutputTransfer) Descriptor

func (*SerializableOutputTransfer) Descriptor() ([]byte, []int)

func (*SerializableOutputTransfer) Equal

func (this *SerializableOutputTransfer) Equal(that interface{}) bool

func (*SerializableOutputTransfer) GetCallType

func (*SerializableOutputTransfer) GetData

func (m *SerializableOutputTransfer) GetData() []byte

func (*SerializableOutputTransfer) GetGasLimit

func (m *SerializableOutputTransfer) GetGasLimit() uint64

func (*SerializableOutputTransfer) GetGasLocked

func (m *SerializableOutputTransfer) GetGasLocked() uint64

func (*SerializableOutputTransfer) GetSenderAddress

func (m *SerializableOutputTransfer) GetSenderAddress() []byte

func (*SerializableOutputTransfer) GetValue

func (m *SerializableOutputTransfer) GetValue() *math_big.Int

func (*SerializableOutputTransfer) GoString

func (this *SerializableOutputTransfer) GoString() string

func (*SerializableOutputTransfer) Marshal

func (m *SerializableOutputTransfer) Marshal() (dAtA []byte, err error)

func (*SerializableOutputTransfer) MarshalTo

func (m *SerializableOutputTransfer) MarshalTo(dAtA []byte) (int, error)

func (*SerializableOutputTransfer) MarshalToSizedBuffer

func (m *SerializableOutputTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SerializableOutputTransfer) ProtoMessage

func (*SerializableOutputTransfer) ProtoMessage()

func (*SerializableOutputTransfer) Reset

func (m *SerializableOutputTransfer) Reset()

func (*SerializableOutputTransfer) Size

func (m *SerializableOutputTransfer) Size() (n int)

func (*SerializableOutputTransfer) String

func (this *SerializableOutputTransfer) String() string

func (*SerializableOutputTransfer) Unmarshal

func (m *SerializableOutputTransfer) Unmarshal(dAtA []byte) error

func (*SerializableOutputTransfer) XXX_DiscardUnknown

func (m *SerializableOutputTransfer) XXX_DiscardUnknown()

func (*SerializableOutputTransfer) XXX_Marshal

func (m *SerializableOutputTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SerializableOutputTransfer) XXX_Merge

func (m *SerializableOutputTransfer) XXX_Merge(src proto.Message)

func (*SerializableOutputTransfer) XXX_Size

func (m *SerializableOutputTransfer) XXX_Size() int

func (*SerializableOutputTransfer) XXX_Unmarshal

func (m *SerializableOutputTransfer) XXX_Unmarshal(b []byte) error

type SerializableStorageUpdate

type SerializableStorageUpdate struct {
	Offset  []byte `protobuf:"bytes,1,opt,name=Offset,proto3" json:"Offset,omitempty"`
	Data    []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	Written bool   `protobuf:"varint,3,opt,name=Written,proto3" json:"Written,omitempty"`
}

func (*SerializableStorageUpdate) Descriptor

func (*SerializableStorageUpdate) Descriptor() ([]byte, []int)

func (*SerializableStorageUpdate) Equal

func (this *SerializableStorageUpdate) Equal(that interface{}) bool

func (*SerializableStorageUpdate) GetData

func (m *SerializableStorageUpdate) GetData() []byte

func (*SerializableStorageUpdate) GetOffset

func (m *SerializableStorageUpdate) GetOffset() []byte

func (*SerializableStorageUpdate) GetWritten

func (m *SerializableStorageUpdate) GetWritten() bool

func (*SerializableStorageUpdate) GoString

func (this *SerializableStorageUpdate) GoString() string

func (*SerializableStorageUpdate) Marshal

func (m *SerializableStorageUpdate) Marshal() (dAtA []byte, err error)

func (*SerializableStorageUpdate) MarshalTo

func (m *SerializableStorageUpdate) MarshalTo(dAtA []byte) (int, error)

func (*SerializableStorageUpdate) MarshalToSizedBuffer

func (m *SerializableStorageUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SerializableStorageUpdate) ProtoMessage

func (*SerializableStorageUpdate) ProtoMessage()

func (*SerializableStorageUpdate) Reset

func (m *SerializableStorageUpdate) Reset()

func (*SerializableStorageUpdate) Size

func (m *SerializableStorageUpdate) Size() (n int)

func (*SerializableStorageUpdate) String

func (this *SerializableStorageUpdate) String() string

func (*SerializableStorageUpdate) Unmarshal

func (m *SerializableStorageUpdate) Unmarshal(dAtA []byte) error

func (*SerializableStorageUpdate) XXX_DiscardUnknown

func (m *SerializableStorageUpdate) XXX_DiscardUnknown()

func (*SerializableStorageUpdate) XXX_Marshal

func (m *SerializableStorageUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SerializableStorageUpdate) XXX_Merge

func (m *SerializableStorageUpdate) XXX_Merge(src proto.Message)

func (*SerializableStorageUpdate) XXX_Size

func (m *SerializableStorageUpdate) XXX_Size() int

func (*SerializableStorageUpdate) XXX_Unmarshal

func (m *SerializableStorageUpdate) XXX_Unmarshal(b []byte) error

type SerializableVMOutput

type SerializableVMOutput struct {
	ReturnData      [][]byte                              `protobuf:"bytes,1,rep,name=ReturnData,proto3" json:"ReturnData,omitempty"`
	ReturnCode      uint64                                `protobuf:"varint,2,opt,name=ReturnCode,proto3" json:"ReturnCode,omitempty"`
	ReturnMessage   string                                `protobuf:"bytes,3,opt,name=ReturnMessage,proto3" json:"ReturnMessage,omitempty"`
	GasRemaining    uint64                                `protobuf:"varint,4,opt,name=GasRemaining,proto3" json:"GasRemaining,omitempty"`
	GasRefund       *math_big.Int                         `` /* 140-byte string literal not displayed */
	OutputAccounts  map[string]*SerializableOutputAccount `` /* 169-byte string literal not displayed */
	DeletedAccounts [][]byte                              `protobuf:"bytes,7,rep,name=DeletedAccounts,proto3" json:"DeletedAccounts,omitempty"`
	TouchedAccounts [][]byte                              `protobuf:"bytes,8,rep,name=TouchedAccounts,proto3" json:"TouchedAccounts,omitempty"`
	Logs            *SerializableLogEntry                 `protobuf:"bytes,9,opt,name=Logs,proto3" json:"Logs,omitempty"`
}

func (*SerializableVMOutput) Descriptor

func (*SerializableVMOutput) Descriptor() ([]byte, []int)

func (*SerializableVMOutput) Equal

func (this *SerializableVMOutput) Equal(that interface{}) bool

func (*SerializableVMOutput) GetDeletedAccounts

func (m *SerializableVMOutput) GetDeletedAccounts() [][]byte

func (*SerializableVMOutput) GetGasRefund

func (m *SerializableVMOutput) GetGasRefund() *math_big.Int

func (*SerializableVMOutput) GetGasRemaining

func (m *SerializableVMOutput) GetGasRemaining() uint64

func (*SerializableVMOutput) GetLogs

func (*SerializableVMOutput) GetOutputAccounts

func (m *SerializableVMOutput) GetOutputAccounts() map[string]*SerializableOutputAccount

func (*SerializableVMOutput) GetReturnCode

func (m *SerializableVMOutput) GetReturnCode() uint64

func (*SerializableVMOutput) GetReturnData

func (m *SerializableVMOutput) GetReturnData() [][]byte

func (*SerializableVMOutput) GetReturnMessage

func (m *SerializableVMOutput) GetReturnMessage() string

func (*SerializableVMOutput) GetTouchedAccounts

func (m *SerializableVMOutput) GetTouchedAccounts() [][]byte

func (*SerializableVMOutput) GoString

func (this *SerializableVMOutput) GoString() string

func (*SerializableVMOutput) Marshal

func (m *SerializableVMOutput) Marshal() (dAtA []byte, err error)

func (*SerializableVMOutput) MarshalTo

func (m *SerializableVMOutput) MarshalTo(dAtA []byte) (int, error)

func (*SerializableVMOutput) MarshalToSizedBuffer

func (m *SerializableVMOutput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SerializableVMOutput) ProtoMessage

func (*SerializableVMOutput) ProtoMessage()

func (*SerializableVMOutput) Reset

func (m *SerializableVMOutput) Reset()

func (*SerializableVMOutput) Size

func (m *SerializableVMOutput) Size() (n int)

func (*SerializableVMOutput) String

func (this *SerializableVMOutput) String() string

func (*SerializableVMOutput) Unmarshal

func (m *SerializableVMOutput) Unmarshal(dAtA []byte) error

func (*SerializableVMOutput) XXX_DiscardUnknown

func (m *SerializableVMOutput) XXX_DiscardUnknown()

func (*SerializableVMOutput) XXX_Marshal

func (m *SerializableVMOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SerializableVMOutput) XXX_Merge

func (m *SerializableVMOutput) XXX_Merge(src proto.Message)

func (*SerializableVMOutput) XXX_Size

func (m *SerializableVMOutput) XXX_Size() int

func (*SerializableVMOutput) XXX_Unmarshal

func (m *SerializableVMOutput) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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