types

package
v0.4.9-rc9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 27

Documentation

Index

Constants

View Source
const DefaultAspectPoolSize = 10

Variables

View Source
var (
	GetAspectContext func(ctx context.Context, aspectId common.Address, key string) ([]byte, error)
	SetAspectContext func(ctx context.Context, aspectId common.Address, key string, value []byte) error
)

for jit-inherent

View Source
var (
	GetEvmHostHook                    func(context.Context) (EVMHostAPI, error)
	GetStateDbHook                    func(context.Context) (StateDBHostAPI, error)
	GetAspectRuntimeContextHostHook   func(context.Context) (RuntimeContextHostAPI, error)
	GetAspectStateHostHook            func(context.Context) (AspectStateHostAPI, error)
	GetAspectPropertyHostHook         func(context.Context) (AspectPropertyHostAPI, error)
	GetAspectTransientStorageHostHook func(context.Context) (AspectTransientStorageHostAPI, error)
	GetAspectTraceHostHook            func(context.Context) (AspectTraceHostAPI, error)

	// JITSenderAspectByContext returns the sender Aspect address of the user operation
	JITSenderAspectByContext func(ctx context.Context, userOpHash common.Hash) (common.Address, error)
	IsCommit                 func(ctx context.Context) bool
)
View Source
var File_aspect_v2_host_api_proto protoreflect.FileDescriptor
View Source
var File_aspect_v2_joinpoint_input_proto protoreflect.FileDescriptor

Enum value maps for JoinPointRunType.

Functions

func CanExecPoint

func CanExecPoint(runJPs int64, cut PointCut) bool

func CheckIsJoinPoint

func CheckIsJoinPoint(runJPs *big.Int) (map[int64]string, bool)

func CheckIsTransactionLevel

func CheckIsTransactionLevel(runJPs int64) bool

func CheckIsTxVerifier

func CheckIsTxVerifier(runJPs int64) bool

func InitRuntimePool

func InitRuntimePool(ctx context.Context, logger types.Logger, msgPoolCapacity, queryPoolCapacity int32)

InitRuntimePool init runtime pool with given capacity.

func IsAspectContractAddr

func IsAspectContractAddr(to *common.Address) bool

Types

type AspectCode

type AspectCode struct {
	AspectId string
	Version  uint64
	Priority int8
	Code     []byte
}

type AspectExecutionResult

type AspectExecutionResult struct {
	Gas    uint64
	Err    error
	Ret    []byte
	Revert RevertScope
}

type AspectLogger

type AspectLogger interface {
	CaptureAspectEnter(joinpoint JoinPointRunType, from, to, aspectId common.Address, input []byte, gas uint64, value *big.Int, execCtx proto.Message)
	CaptureAspectExit(joinpoint JoinPointRunType, result *AspectExecutionResult)
}

AspectLogger is used to collect execution traces from when an aspect gets triggered

type AspectPropertyHostAPI

type AspectPropertyHostAPI interface {
	Get(ctx *RunnerContext, key string) ([]byte, error)
}

type AspectProvider

type AspectProvider interface {
	GetTxBondAspects(context.Context, common.Address, PointCut) ([]*AspectCode, error)
	GetAccountVerifiers(context.Context, common.Address) ([]*AspectCode, error)
	GetLatestBlock() int64
}

type AspectStateHostAPI

type AspectStateHostAPI interface {
	Get(ctx *RunnerContext, key string) []byte
	Set(ctx *RunnerContext, key string, value []byte) error
}

type AspectStore

type AspectStore interface {
	Get(key []byte) []byte

	// Has checks if a key exists. Panics on nil key.
	Has(key []byte) bool

	// Set sets the key. Panics on nil key or value.
	Set(key, value []byte)

	// Delete deletes the key. Panics on nil key.
	Delete(key []byte)
}

type AspectTraceHostAPI

type AspectTraceHostAPI interface {
	QueryStateChange(ctx *RunnerContext, query *StateChangeQuery) ([]byte, error)
	QueryCallTree(ctx *RunnerContext, query *CallTreeQuery) ([]byte, error)
}

type AspectTransientStorageHostAPI

type AspectTransientStorageHostAPI interface {
	Get(ctx *RunnerContext, aspectId []byte, key string) ([]byte, error)
	Set(ctx *RunnerContext, key string, value []byte) error
}

type Blake2FInput

type Blake2FInput struct {
	H      []byte `protobuf:"bytes,1,req,name=h" json:"h,omitempty"`
	M      []byte `protobuf:"bytes,2,req,name=m" json:"m,omitempty"`
	T      []byte `protobuf:"bytes,3,req,name=t" json:"t,omitempty"`
	Final  *bool  `protobuf:"varint,4,req,name=final" json:"final,omitempty"`
	Rounds []byte `protobuf:"bytes,5,req,name=rounds" json:"rounds,omitempty"`
	// contains filtered or unexported fields
}

func (*Blake2FInput) Descriptor deprecated

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

Deprecated: Use Blake2FInput.ProtoReflect.Descriptor instead.

func (*Blake2FInput) GetFinal

func (x *Blake2FInput) GetFinal() bool

func (*Blake2FInput) GetH

func (x *Blake2FInput) GetH() []byte

func (*Blake2FInput) GetM

func (x *Blake2FInput) GetM() []byte

func (*Blake2FInput) GetRounds

func (x *Blake2FInput) GetRounds() []byte

func (*Blake2FInput) GetT

func (x *Blake2FInput) GetT() []byte

func (*Blake2FInput) ProtoMessage

func (*Blake2FInput) ProtoMessage()

func (*Blake2FInput) ProtoReflect

func (x *Blake2FInput) ProtoReflect() protoreflect.Message

func (*Blake2FInput) Reset

func (x *Blake2FInput) Reset()

func (*Blake2FInput) String

func (x *Blake2FInput) String() string

type BlockInput

type BlockInput struct {
	Number *uint64 `protobuf:"varint,1,req,name=number" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockInput) Descriptor deprecated

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

Deprecated: Use BlockInput.ProtoReflect.Descriptor instead.

func (*BlockInput) GetNumber

func (x *BlockInput) GetNumber() uint64

func (*BlockInput) MarshalJSON

func (x *BlockInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*BlockInput) ProtoMessage

func (*BlockInput) ProtoMessage()

func (*BlockInput) ProtoReflect

func (x *BlockInput) ProtoReflect() protoreflect.Message

func (*BlockInput) Reset

func (x *BlockInput) Reset()

func (*BlockInput) String

func (x *BlockInput) String() string

func (*BlockInput) UnmarshalJSON

func (x *BlockInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type Bn256AddInput

type Bn256AddInput struct {
	A *G1 `protobuf:"bytes,1,req,name=a" json:"a,omitempty"`
	B *G1 `protobuf:"bytes,2,req,name=b" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*Bn256AddInput) Descriptor deprecated

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

Deprecated: Use Bn256AddInput.ProtoReflect.Descriptor instead.

func (*Bn256AddInput) GetA

func (x *Bn256AddInput) GetA() *G1

func (*Bn256AddInput) GetB

func (x *Bn256AddInput) GetB() *G1

func (*Bn256AddInput) ProtoMessage

func (*Bn256AddInput) ProtoMessage()

func (*Bn256AddInput) ProtoReflect

func (x *Bn256AddInput) ProtoReflect() protoreflect.Message

func (*Bn256AddInput) Reset

func (x *Bn256AddInput) Reset()

func (*Bn256AddInput) String

func (x *Bn256AddInput) String() string

type Bn256PairingInput

type Bn256PairingInput struct {
	Cs []*G1 `protobuf:"bytes,1,rep,name=cs" json:"cs,omitempty"`
	Ts []*G2 `protobuf:"bytes,2,rep,name=ts" json:"ts,omitempty"`
	// contains filtered or unexported fields
}

func (*Bn256PairingInput) Descriptor deprecated

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

Deprecated: Use Bn256PairingInput.ProtoReflect.Descriptor instead.

func (*Bn256PairingInput) GetCs

func (x *Bn256PairingInput) GetCs() []*G1

func (*Bn256PairingInput) GetTs

func (x *Bn256PairingInput) GetTs() []*G2

func (*Bn256PairingInput) ProtoMessage

func (*Bn256PairingInput) ProtoMessage()

func (*Bn256PairingInput) ProtoReflect

func (x *Bn256PairingInput) ProtoReflect() protoreflect.Message

func (*Bn256PairingInput) Reset

func (x *Bn256PairingInput) Reset()

func (*Bn256PairingInput) String

func (x *Bn256PairingInput) String() string

type Bn256ScalarMulInput

type Bn256ScalarMulInput struct {
	A      *G1    `protobuf:"bytes,1,req,name=a" json:"a,omitempty"`
	Scalar []byte `protobuf:"bytes,2,req,name=scalar" json:"scalar,omitempty"`
	// contains filtered or unexported fields
}

func (*Bn256ScalarMulInput) Descriptor deprecated

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

Deprecated: Use Bn256ScalarMulInput.ProtoReflect.Descriptor instead.

func (*Bn256ScalarMulInput) GetA

func (x *Bn256ScalarMulInput) GetA() *G1

func (*Bn256ScalarMulInput) GetScalar

func (x *Bn256ScalarMulInput) GetScalar() []byte

func (*Bn256ScalarMulInput) ProtoMessage

func (*Bn256ScalarMulInput) ProtoMessage()

func (*Bn256ScalarMulInput) ProtoReflect

func (x *Bn256ScalarMulInput) ProtoReflect() protoreflect.Message

func (*Bn256ScalarMulInput) Reset

func (x *Bn256ScalarMulInput) Reset()

func (*Bn256ScalarMulInput) String

func (x *Bn256ScalarMulInput) String() string

type BoolData

type BoolData struct {
	Data *bool `protobuf:"varint,1,req,name=data" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolData) Descriptor deprecated

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

Deprecated: Use BoolData.ProtoReflect.Descriptor instead.

func (*BoolData) GetData

func (x *BoolData) GetData() bool

func (*BoolData) ProtoMessage

func (*BoolData) ProtoMessage()

func (*BoolData) ProtoReflect

func (x *BoolData) ProtoReflect() protoreflect.Message

func (*BoolData) Reset

func (x *BoolData) Reset()

func (*BoolData) String

func (x *BoolData) String() string

type BytesArrayData

type BytesArrayData struct {
	Data [][]byte `protobuf:"bytes,1,rep,name=data" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BytesArrayData) Descriptor deprecated

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

Deprecated: Use BytesArrayData.ProtoReflect.Descriptor instead.

func (*BytesArrayData) GetData

func (x *BytesArrayData) GetData() [][]byte

func (*BytesArrayData) ProtoMessage

func (*BytesArrayData) ProtoMessage()

func (*BytesArrayData) ProtoReflect

func (x *BytesArrayData) ProtoReflect() protoreflect.Message

func (*BytesArrayData) Reset

func (x *BytesArrayData) Reset()

func (*BytesArrayData) String

func (x *BytesArrayData) String() string

type BytesData

type BytesData struct {
	Data []byte `protobuf:"bytes,1,req,name=data" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BytesData) Descriptor deprecated

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

Deprecated: Use BytesData.ProtoReflect.Descriptor instead.

func (*BytesData) GetData

func (x *BytesData) GetData() []byte

func (*BytesData) ProtoMessage

func (*BytesData) ProtoMessage()

func (*BytesData) ProtoReflect

func (x *BytesData) ProtoReflect() protoreflect.Message

func (*BytesData) Reset

func (x *BytesData) Reset()

func (*BytesData) String

func (x *BytesData) String() string

type CallTreeQuery

type CallTreeQuery struct {
	CallIdx *int64 `protobuf:"varint,1,req,name=call_idx,json=callIdx" json:"call_idx,omitempty"`
	// contains filtered or unexported fields
}

func (*CallTreeQuery) Descriptor deprecated

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

Deprecated: Use CallTreeQuery.ProtoReflect.Descriptor instead.

func (*CallTreeQuery) GetCallIdx

func (x *CallTreeQuery) GetCallIdx() int64

func (*CallTreeQuery) ProtoMessage

func (*CallTreeQuery) ProtoMessage()

func (*CallTreeQuery) ProtoReflect

func (x *CallTreeQuery) ProtoReflect() protoreflect.Message

func (*CallTreeQuery) Reset

func (x *CallTreeQuery) Reset()

func (*CallTreeQuery) String

func (x *CallTreeQuery) String() string

type EVMHostAPI

type EVMHostAPI interface {
	StaticCall(ctx *RunnerContext, request *StaticCallRequest) (*StaticCallResult, error)
	JITCall(ctx *RunnerContext, request *JitInherentRequest) (*JitInherentResponse, error)
}

type EcRecoverInput

type EcRecoverInput struct {
	Hash []byte `protobuf:"bytes,1,req,name=hash" json:"hash,omitempty"`
	V    []byte `protobuf:"bytes,2,req,name=v" json:"v,omitempty"`
	R    []byte `protobuf:"bytes,3,req,name=r" json:"r,omitempty"`
	S    []byte `protobuf:"bytes,4,req,name=s" json:"s,omitempty"`
	// contains filtered or unexported fields
}

func (*EcRecoverInput) Descriptor deprecated

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

Deprecated: Use EcRecoverInput.ProtoReflect.Descriptor instead.

func (*EcRecoverInput) GetHash

func (x *EcRecoverInput) GetHash() []byte

func (*EcRecoverInput) GetR

func (x *EcRecoverInput) GetR() []byte

func (*EcRecoverInput) GetS

func (x *EcRecoverInput) GetS() []byte

func (*EcRecoverInput) GetV

func (x *EcRecoverInput) GetV() []byte

func (*EcRecoverInput) ProtoMessage

func (*EcRecoverInput) ProtoMessage()

func (*EcRecoverInput) ProtoReflect

func (x *EcRecoverInput) ProtoReflect() protoreflect.Message

func (*EcRecoverInput) Reset

func (x *EcRecoverInput) Reset()

func (*EcRecoverInput) String

func (x *EcRecoverInput) String() string

type EthAccessList

type EthAccessList struct {
	AccessList []*EthAccessTuple `protobuf:"bytes,1,rep,name=access_list,json=accessList" json:"access_list,omitempty"`
	// contains filtered or unexported fields
}

func (*EthAccessList) Descriptor deprecated

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

Deprecated: Use EthAccessList.ProtoReflect.Descriptor instead.

func (*EthAccessList) GetAccessList

func (x *EthAccessList) GetAccessList() []*EthAccessTuple

func (*EthAccessList) ProtoMessage

func (*EthAccessList) ProtoMessage()

func (*EthAccessList) ProtoReflect

func (x *EthAccessList) ProtoReflect() protoreflect.Message

func (*EthAccessList) Reset

func (x *EthAccessList) Reset()

func (*EthAccessList) String

func (x *EthAccessList) String() string

type EthAccessTuple

type EthAccessTuple struct {
	Address     []byte   `protobuf:"bytes,1,req,name=address" json:"address,omitempty"`
	StorageKeys [][]byte `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys" json:"storage_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*EthAccessTuple) Descriptor deprecated

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

Deprecated: Use EthAccessTuple.ProtoReflect.Descriptor instead.

func (*EthAccessTuple) GetAddress

func (x *EthAccessTuple) GetAddress() []byte

func (*EthAccessTuple) GetStorageKeys

func (x *EthAccessTuple) GetStorageKeys() [][]byte

func (*EthAccessTuple) ProtoMessage

func (*EthAccessTuple) ProtoMessage()

func (*EthAccessTuple) ProtoReflect

func (x *EthAccessTuple) ProtoReflect() protoreflect.Message

func (*EthAccessTuple) Reset

func (x *EthAccessTuple) Reset()

func (*EthAccessTuple) String

func (x *EthAccessTuple) String() string

type EthCallMessage

type EthCallMessage struct {
	From []byte `protobuf:"bytes,1,req,name=from" json:"from,omitempty"`
	To   []byte `protobuf:"bytes,2,opt,name=to" json:"to,omitempty"`
	// data is the data payload bytes of the transaction.
	Data            []byte   `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"`
	Gas             *uint64  `protobuf:"varint,4,req,name=gas" json:"gas,omitempty"`
	Value           []byte   `protobuf:"bytes,5,req,name=value" json:"value,omitempty"`
	Ret             []byte   `protobuf:"bytes,6,opt,name=ret" json:"ret,omitempty"`
	GasUsed         *uint64  `protobuf:"varint,7,opt,name=gas_used,json=gasUsed" json:"gas_used,omitempty"`
	Error           *string  `protobuf:"bytes,8,opt,name=error" json:"error,omitempty"`
	Index           *uint64  `protobuf:"varint,9,req,name=index" json:"index,omitempty"`
	ParentIndex     *int64   `protobuf:"varint,10,opt,name=parent_index,json=parentIndex" json:"parent_index,omitempty"`
	ChildrenIndices []uint64 `protobuf:"varint,11,rep,name=children_indices,json=childrenIndices" json:"children_indices,omitempty"`
	// contains filtered or unexported fields
}

func (*EthCallMessage) Descriptor deprecated

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

Deprecated: Use EthCallMessage.ProtoReflect.Descriptor instead.

func (*EthCallMessage) GetChildrenIndices

func (x *EthCallMessage) GetChildrenIndices() []uint64

func (*EthCallMessage) GetData

func (x *EthCallMessage) GetData() []byte

func (*EthCallMessage) GetError

func (x *EthCallMessage) GetError() string

func (*EthCallMessage) GetFrom

func (x *EthCallMessage) GetFrom() []byte

func (*EthCallMessage) GetGas

func (x *EthCallMessage) GetGas() uint64

func (*EthCallMessage) GetGasUsed

func (x *EthCallMessage) GetGasUsed() uint64

func (*EthCallMessage) GetIndex

func (x *EthCallMessage) GetIndex() uint64

func (*EthCallMessage) GetParentIndex

func (x *EthCallMessage) GetParentIndex() int64

func (*EthCallMessage) GetRet

func (x *EthCallMessage) GetRet() []byte

func (*EthCallMessage) GetTo

func (x *EthCallMessage) GetTo() []byte

func (*EthCallMessage) GetValue

func (x *EthCallMessage) GetValue() []byte

func (*EthCallMessage) ProtoMessage

func (*EthCallMessage) ProtoMessage()

func (*EthCallMessage) ProtoReflect

func (x *EthCallMessage) ProtoReflect() protoreflect.Message

func (*EthCallMessage) Reset

func (x *EthCallMessage) Reset()

func (*EthCallMessage) String

func (x *EthCallMessage) String() string

type EthCallTree

type EthCallTree struct {
	Calls []*EthCallMessage `protobuf:"bytes,1,rep,name=calls" json:"calls,omitempty"`
	// contains filtered or unexported fields
}

func (*EthCallTree) Descriptor deprecated

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

Deprecated: Use EthCallTree.ProtoReflect.Descriptor instead.

func (*EthCallTree) GetCalls

func (x *EthCallTree) GetCalls() []*EthCallMessage

func (*EthCallTree) ProtoMessage

func (*EthCallTree) ProtoMessage()

func (*EthCallTree) ProtoReflect

func (x *EthCallTree) ProtoReflect() protoreflect.Message

func (*EthCallTree) Reset

func (x *EthCallTree) Reset()

func (*EthCallTree) String

func (x *EthCallTree) String() string

type EthLog

type EthLog struct {

	// address of the contract that generated the event
	Address []byte `protobuf:"bytes,1,req,name=address" json:"address,omitempty"`
	// topics is a list of topics provided by the contract.
	Topics [][]byte `protobuf:"bytes,2,rep,name=topics" json:"topics,omitempty"`
	// data which is supplied by the contract, usually ABI-encoded
	Data  []byte  `protobuf:"bytes,3,req,name=data" json:"data,omitempty"`
	Index *uint64 `protobuf:"varint,4,req,name=index" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*EthLog) Descriptor deprecated

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

Deprecated: Use EthLog.ProtoReflect.Descriptor instead.

func (*EthLog) GetAddress

func (x *EthLog) GetAddress() []byte

func (*EthLog) GetData

func (x *EthLog) GetData() []byte

func (*EthLog) GetIndex

func (x *EthLog) GetIndex() uint64

func (*EthLog) GetTopics

func (x *EthLog) GetTopics() [][]byte

func (*EthLog) ProtoMessage

func (*EthLog) ProtoMessage()

func (*EthLog) ProtoReflect

func (x *EthLog) ProtoReflect() protoreflect.Message

func (*EthLog) Reset

func (x *EthLog) Reset()

func (*EthLog) String

func (x *EthLog) String() string

type EthLogs

type EthLogs struct {
	Logs []*EthLog `protobuf:"bytes,1,rep,name=logs" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

runtime context types

func (*EthLogs) Descriptor deprecated

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

Deprecated: Use EthLogs.ProtoReflect.Descriptor instead.

func (*EthLogs) GetLogs

func (x *EthLogs) GetLogs() []*EthLog

func (*EthLogs) ProtoMessage

func (*EthLogs) ProtoMessage()

func (*EthLogs) ProtoReflect

func (x *EthLogs) ProtoReflect() protoreflect.Message

func (*EthLogs) Reset

func (x *EthLogs) Reset()

func (*EthLogs) String

func (x *EthLogs) String() string

type EthReceipt

type EthReceipt struct {
	Status            *uint64   `protobuf:"varint,1,req,name=status" json:"status,omitempty"`
	CumulativeGasUsed *uint64   `protobuf:"varint,2,req,name=cumulative_gas_used,json=cumulativeGasUsed" json:"cumulative_gas_used,omitempty"`
	LogsBloom         []byte    `protobuf:"bytes,3,req,name=logs_bloom,json=logsBloom" json:"logs_bloom,omitempty"`
	EffectiveGasPrice []byte    `protobuf:"bytes,4,req,name=effective_gas_price,json=effectiveGasPrice" json:"effective_gas_price,omitempty"`
	Logs              []*EthLog `protobuf:"bytes,5,rep,name=logs" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*EthReceipt) Descriptor deprecated

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

Deprecated: Use EthReceipt.ProtoReflect.Descriptor instead.

func (*EthReceipt) GetCumulativeGasUsed

func (x *EthReceipt) GetCumulativeGasUsed() uint64

func (*EthReceipt) GetEffectiveGasPrice

func (x *EthReceipt) GetEffectiveGasPrice() []byte

func (*EthReceipt) GetLogs

func (x *EthReceipt) GetLogs() []*EthLog

func (*EthReceipt) GetLogsBloom

func (x *EthReceipt) GetLogsBloom() []byte

func (*EthReceipt) GetStatus

func (x *EthReceipt) GetStatus() uint64

func (*EthReceipt) ProtoMessage

func (*EthReceipt) ProtoMessage()

func (*EthReceipt) ProtoReflect

func (x *EthReceipt) ProtoReflect() protoreflect.Message

func (*EthReceipt) Reset

func (x *EthReceipt) Reset()

func (*EthReceipt) String

func (x *EthReceipt) String() string

type EthStateChange

type EthStateChange struct {
	Account   []byte  `protobuf:"bytes,1,req,name=account" json:"account,omitempty"`
	Value     []byte  `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	CallIndex *uint64 `protobuf:"varint,3,req,name=call_index,json=callIndex" json:"call_index,omitempty"`
	// contains filtered or unexported fields
}

func (*EthStateChange) Descriptor deprecated

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

Deprecated: Use EthStateChange.ProtoReflect.Descriptor instead.

func (*EthStateChange) GetAccount

func (x *EthStateChange) GetAccount() []byte

func (*EthStateChange) GetCallIndex

func (x *EthStateChange) GetCallIndex() uint64

func (*EthStateChange) GetValue

func (x *EthStateChange) GetValue() []byte

func (*EthStateChange) ProtoMessage

func (*EthStateChange) ProtoMessage()

func (*EthStateChange) ProtoReflect

func (x *EthStateChange) ProtoReflect() protoreflect.Message

func (*EthStateChange) Reset

func (x *EthStateChange) Reset()

func (*EthStateChange) String

func (x *EthStateChange) String() string

type EthStateChangeIndices

type EthStateChangeIndices struct {
	Indices [][]byte `protobuf:"bytes,1,rep,name=indices" json:"indices,omitempty"`
	// contains filtered or unexported fields
}

func (*EthStateChangeIndices) Descriptor deprecated

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

Deprecated: Use EthStateChangeIndices.ProtoReflect.Descriptor instead.

func (*EthStateChangeIndices) GetIndices

func (x *EthStateChangeIndices) GetIndices() [][]byte

func (*EthStateChangeIndices) ProtoMessage

func (*EthStateChangeIndices) ProtoMessage()

func (*EthStateChangeIndices) ProtoReflect

func (x *EthStateChangeIndices) ProtoReflect() protoreflect.Message

func (*EthStateChangeIndices) Reset

func (x *EthStateChangeIndices) Reset()

func (*EthStateChangeIndices) String

func (x *EthStateChangeIndices) String() string

type EthStateChanges

type EthStateChanges struct {
	All []*EthStateChange `protobuf:"bytes,1,rep,name=all" json:"all,omitempty"`
	// contains filtered or unexported fields
}

func (*EthStateChanges) Descriptor deprecated

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

Deprecated: Use EthStateChanges.ProtoReflect.Descriptor instead.

func (*EthStateChanges) GetAll

func (x *EthStateChanges) GetAll() []*EthStateChange

func (*EthStateChanges) ProtoMessage

func (*EthStateChanges) ProtoMessage()

func (*EthStateChanges) ProtoReflect

func (x *EthStateChanges) ProtoReflect() protoreflect.Message

func (*EthStateChanges) Reset

func (x *EthStateChanges) Reset()

func (*EthStateChanges) String

func (x *EthStateChanges) String() string

type G1

type G1 struct {
	X []byte `protobuf:"bytes,1,req,name=x" json:"x,omitempty"`
	Y []byte `protobuf:"bytes,2,req,name=y" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*G1) Descriptor deprecated

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

Deprecated: Use G1.ProtoReflect.Descriptor instead.

func (*G1) GetX

func (x *G1) GetX() []byte

func (*G1) GetY

func (x *G1) GetY() []byte

func (*G1) ProtoMessage

func (*G1) ProtoMessage()

func (*G1) ProtoReflect

func (x *G1) ProtoReflect() protoreflect.Message

func (*G1) Reset

func (x *G1) Reset()

func (*G1) String

func (x *G1) String() string

type G2

type G2 struct {
	X1 []byte `protobuf:"bytes,1,req,name=x1" json:"x1,omitempty"`
	X2 []byte `protobuf:"bytes,2,req,name=x2" json:"x2,omitempty"`
	Y1 []byte `protobuf:"bytes,3,req,name=y1" json:"y1,omitempty"`
	Y2 []byte `protobuf:"bytes,4,req,name=y2" json:"y2,omitempty"`
	// contains filtered or unexported fields
}

func (*G2) Descriptor deprecated

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

Deprecated: Use G2.ProtoReflect.Descriptor instead.

func (*G2) GetX1

func (x *G2) GetX1() []byte

func (*G2) GetX2

func (x *G2) GetX2() []byte

func (*G2) GetY1

func (x *G2) GetY1() []byte

func (*G2) GetY2

func (x *G2) GetY2() []byte

func (*G2) ProtoMessage

func (*G2) ProtoMessage()

func (*G2) ProtoReflect

func (x *G2) ProtoReflect() protoreflect.Message

func (*G2) Reset

func (x *G2) Reset()

func (*G2) String

func (x *G2) String() string

type GlobalPool

type GlobalPool struct {
	// contains filtered or unexported fields
}

func RunnerPool

func RunnerPool(commit bool) *GlobalPool

func (*GlobalPool) Return

func (p *GlobalPool) Return(key string, vm types.AspectRuntime)

ReturnRuntime returns the the runtime instance to the pool, is the pool is enabled.

func (*GlobalPool) Runtime

func (p *GlobalPool) Runtime(ctx context.Context, logger types.Logger, code []byte, registry *types.HostAPIRegistry) (string, types.AspectRuntime, error)

Runtime returns a aspect-runtime instance from the pool or creating a new one.

type InitInput

type InitInput struct {
	Tx       *WithFromTxInput `protobuf:"bytes,1,req,name=tx" json:"tx,omitempty"`
	Block    *BlockInput      `protobuf:"bytes,2,req,name=block" json:"block,omitempty"`
	CallData []byte           `protobuf:"bytes,3,req,name=call_data,json=callData" json:"call_data,omitempty"`
	// contains filtered or unexported fields
}

func (*InitInput) Descriptor deprecated

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

Deprecated: Use InitInput.ProtoReflect.Descriptor instead.

func (*InitInput) GetBlock

func (x *InitInput) GetBlock() *BlockInput

func (*InitInput) GetCallData

func (x *InitInput) GetCallData() []byte

func (*InitInput) GetTx

func (x *InitInput) GetTx() *WithFromTxInput

func (*InitInput) MarshalJSON

func (x *InitInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*InitInput) ProtoMessage

func (*InitInput) ProtoMessage()

func (*InitInput) ProtoReflect

func (x *InitInput) ProtoReflect() protoreflect.Message

func (*InitInput) Reset

func (x *InitInput) Reset()

func (*InitInput) String

func (x *InitInput) String() string

func (*InitInput) UnmarshalJSON

func (x *InitInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type IntArrayData

type IntArrayData struct {
	Data []int64 `protobuf:"varint,1,rep,name=data" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*IntArrayData) Descriptor deprecated

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

Deprecated: Use IntArrayData.ProtoReflect.Descriptor instead.

func (*IntArrayData) GetData

func (x *IntArrayData) GetData() []int64

func (*IntArrayData) ProtoMessage

func (*IntArrayData) ProtoMessage()

func (*IntArrayData) ProtoReflect

func (x *IntArrayData) ProtoReflect() protoreflect.Message

func (*IntArrayData) Reset

func (x *IntArrayData) Reset()

func (*IntArrayData) String

func (x *IntArrayData) String() string

type IntData

type IntData struct {
	Data *int64 `protobuf:"varint,1,req,name=data" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*IntData) Descriptor deprecated

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

Deprecated: Use IntData.ProtoReflect.Descriptor instead.

func (*IntData) GetData

func (x *IntData) GetData() int64

func (*IntData) ProtoMessage

func (*IntData) ProtoMessage()

func (*IntData) ProtoReflect

func (x *IntData) ProtoReflect() protoreflect.Message

func (*IntData) Reset

func (x *IntData) Reset()

func (*IntData) String

func (x *IntData) String() string

type JitInherentRequest

type JitInherentRequest struct {
	Sender               []byte  `protobuf:"bytes,1,req,name=sender" json:"sender,omitempty"`
	Nonce                *uint64 `protobuf:"varint,2,opt,name=nonce" json:"nonce,omitempty"`
	NonceKey             []byte  `protobuf:"bytes,3,opt,name=nonce_key,json=nonceKey" json:"nonce_key,omitempty"`
	InitCode             []byte  `protobuf:"bytes,4,opt,name=init_code,json=initCode" json:"init_code,omitempty"`
	CallData             []byte  `protobuf:"bytes,5,req,name=call_data,json=callData" json:"call_data,omitempty"`
	CallGasLimit         *uint64 `protobuf:"varint,6,opt,name=call_gas_limit,json=callGasLimit" json:"call_gas_limit,omitempty"`
	VerificationGasLimit *uint64 `protobuf:"varint,7,opt,name=verification_gas_limit,json=verificationGasLimit" json:"verification_gas_limit,omitempty"`
	PaymasterAndData     []byte  `protobuf:"bytes,8,opt,name=paymaster_and_data,json=paymasterAndData" json:"paymaster_and_data,omitempty"`
	// contains filtered or unexported fields
}

func (*JitInherentRequest) Descriptor deprecated

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

Deprecated: Use JitInherentRequest.ProtoReflect.Descriptor instead.

func (*JitInherentRequest) GetCallData

func (x *JitInherentRequest) GetCallData() []byte

func (*JitInherentRequest) GetCallGasLimit

func (x *JitInherentRequest) GetCallGasLimit() uint64

func (*JitInherentRequest) GetInitCode

func (x *JitInherentRequest) GetInitCode() []byte

func (*JitInherentRequest) GetNonce

func (x *JitInherentRequest) GetNonce() uint64

func (*JitInherentRequest) GetNonceKey

func (x *JitInherentRequest) GetNonceKey() []byte

func (*JitInherentRequest) GetPaymasterAndData

func (x *JitInherentRequest) GetPaymasterAndData() []byte

func (*JitInherentRequest) GetSender

func (x *JitInherentRequest) GetSender() []byte

func (*JitInherentRequest) GetVerificationGasLimit

func (x *JitInherentRequest) GetVerificationGasLimit() uint64

func (*JitInherentRequest) ProtoMessage

func (*JitInherentRequest) ProtoMessage()

func (*JitInherentRequest) ProtoReflect

func (x *JitInherentRequest) ProtoReflect() protoreflect.Message

func (*JitInherentRequest) Reset

func (x *JitInherentRequest) Reset()

func (*JitInherentRequest) String

func (x *JitInherentRequest) String() string

type JitInherentResponse

type JitInherentResponse struct {
	JitInherentHashes [][]byte `protobuf:"bytes,1,rep,name=jit_inherent_hashes,json=jitInherentHashes" json:"jit_inherent_hashes,omitempty"`
	TxHash            []byte   `protobuf:"bytes,2,opt,name=tx_hash,json=txHash" json:"tx_hash,omitempty"`
	Success           *bool    `protobuf:"varint,3,req,name=success" json:"success,omitempty"`
	Ret               []byte   `protobuf:"bytes,4,opt,name=ret" json:"ret,omitempty"`
	ErrorMsg          *string  `protobuf:"bytes,5,opt,name=error_msg,json=errorMsg" json:"error_msg,omitempty"`
	// contains filtered or unexported fields
}

func (*JitInherentResponse) Descriptor deprecated

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

Deprecated: Use JitInherentResponse.ProtoReflect.Descriptor instead.

func (*JitInherentResponse) GetErrorMsg

func (x *JitInherentResponse) GetErrorMsg() string

func (*JitInherentResponse) GetJitInherentHashes

func (x *JitInherentResponse) GetJitInherentHashes() [][]byte

func (*JitInherentResponse) GetRet

func (x *JitInherentResponse) GetRet() []byte

func (*JitInherentResponse) GetSuccess

func (x *JitInherentResponse) GetSuccess() bool

func (*JitInherentResponse) GetTxHash

func (x *JitInherentResponse) GetTxHash() []byte

func (*JitInherentResponse) ProtoMessage

func (*JitInherentResponse) ProtoMessage()

func (*JitInherentResponse) ProtoReflect

func (x *JitInherentResponse) ProtoReflect() protoreflect.Message

func (*JitInherentResponse) Reset

func (x *JitInherentResponse) Reset()

func (*JitInherentResponse) String

func (x *JitInherentResponse) String() string

type JoinPointRunType

type JoinPointRunType int64
const (
	JoinPointRunType_Unknown          JoinPointRunType = 0
	JoinPointRunType_VerifyTx         JoinPointRunType = 1
	JoinPointRunType_PreTxExecute     JoinPointRunType = 2
	JoinPointRunType_PreContractCall  JoinPointRunType = 4
	JoinPointRunType_PostContractCall JoinPointRunType = 8
	JoinPointRunType_PostTxExecute    JoinPointRunType = 16

	TransactionLevelJP = int64(JoinPointRunType_PreTxExecute) + int64(JoinPointRunType_PreContractCall) + int64(JoinPointRunType_PostContractCall) + int64(JoinPointRunType_PostTxExecute)
)

func (JoinPointRunType) IsPreCall

func (j JoinPointRunType) IsPreCall() bool

func (JoinPointRunType) String

func (j JoinPointRunType) String() string

type NoFromTxInput

type NoFromTxInput struct {
	Hash []byte `protobuf:"bytes,1,req,name=hash" json:"hash,omitempty"`
	To   []byte `protobuf:"bytes,2,req,name=to" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*NoFromTxInput) Descriptor deprecated

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

Deprecated: Use NoFromTxInput.ProtoReflect.Descriptor instead.

func (*NoFromTxInput) GetHash

func (x *NoFromTxInput) GetHash() []byte

func (*NoFromTxInput) GetTo

func (x *NoFromTxInput) GetTo() []byte

func (*NoFromTxInput) MarshalJSON

func (x *NoFromTxInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*NoFromTxInput) ProtoMessage

func (*NoFromTxInput) ProtoMessage()

func (*NoFromTxInput) ProtoReflect

func (x *NoFromTxInput) ProtoReflect() protoreflect.Message

func (*NoFromTxInput) Reset

func (x *NoFromTxInput) Reset()

func (*NoFromTxInput) String

func (x *NoFromTxInput) String() string

func (*NoFromTxInput) UnmarshalJSON

func (x *NoFromTxInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type NoOpsAspectLogger

type NoOpsAspectLogger struct{}

func (NoOpsAspectLogger) CaptureAspectEnter

func (n NoOpsAspectLogger) CaptureAspectEnter(_ JoinPointRunType, _, _, _ common.Address, _ []byte, _ uint64, _ *big.Int, _ proto.Message)

func (NoOpsAspectLogger) CaptureAspectExit

func (n NoOpsAspectLogger) CaptureAspectExit(_ JoinPointRunType, _ *AspectExecutionResult)

type NoOpsLogger

type NoOpsLogger struct {
}

func (NoOpsLogger) Debug

func (n NoOpsLogger) Debug(_ string, _ ...interface{})

func (NoOpsLogger) Error

func (n NoOpsLogger) Error(_ string, _ ...interface{})

func (NoOpsLogger) Info

func (n NoOpsLogger) Info(_ string, _ ...interface{})

func (NoOpsLogger) With

func (n NoOpsLogger) With(_ ...interface{}) types2.Logger

type OperationInput

type OperationInput struct {
	Tx       *WithFromTxInput `protobuf:"bytes,1,req,name=tx" json:"tx,omitempty"`
	Block    *BlockInput      `protobuf:"bytes,2,req,name=block" json:"block,omitempty"`
	CallData []byte           `protobuf:"bytes,3,req,name=call_data,json=callData" json:"call_data,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationInput) Descriptor deprecated

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

Deprecated: Use OperationInput.ProtoReflect.Descriptor instead.

func (*OperationInput) GetBlock

func (x *OperationInput) GetBlock() *BlockInput

func (*OperationInput) GetCallData

func (x *OperationInput) GetCallData() []byte

func (*OperationInput) GetTx

func (x *OperationInput) GetTx() *WithFromTxInput

func (*OperationInput) MarshalJSON

func (x *OperationInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*OperationInput) ProtoMessage

func (*OperationInput) ProtoMessage()

func (*OperationInput) ProtoReflect

func (x *OperationInput) ProtoReflect() protoreflect.Message

func (*OperationInput) Reset

func (x *OperationInput) Reset()

func (*OperationInput) String

func (x *OperationInput) String() string

func (*OperationInput) UnmarshalJSON

func (x *OperationInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type PointCut

type PointCut string
const (
	FILTER_TX                 PointCut = "filterTx"
	VERIFY_TX                 PointCut = "verifyTx"
	ON_GAS_PAYMENT_METHOD     PointCut = "onGasPayment"
	PRE_TX_EXECUTE_METHOD     PointCut = "preTxExecute"
	PRE_CONTRACT_CALL_METHOD  PointCut = "preContractCall"
	POST_CONTRACT_CALL_METHOD PointCut = "postContractCall"
	POST_TX_EXECUTE_METHOD    PointCut = "postTxExecute"
	POST_TX_COMMIT            PointCut = "postTxCommit"

	INIT_METHOD      PointCut = "init"
	OPERATION_METHOD PointCut = "operation"
	IS_OWNER_METHOD  PointCut = "isOwner"
)

type PostContractCallInput

type PostContractCallInput struct {
	Call  *PostExecMessageInput `protobuf:"bytes,1,req,name=call" json:"call,omitempty"`
	Block *BlockInput           `protobuf:"bytes,2,req,name=block" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*PostContractCallInput) Descriptor deprecated

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

Deprecated: Use PostContractCallInput.ProtoReflect.Descriptor instead.

func (*PostContractCallInput) GetBlock

func (x *PostContractCallInput) GetBlock() *BlockInput

func (*PostContractCallInput) GetCall

func (*PostContractCallInput) MarshalJSON

func (x *PostContractCallInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*PostContractCallInput) ProtoMessage

func (*PostContractCallInput) ProtoMessage()

func (*PostContractCallInput) ProtoReflect

func (x *PostContractCallInput) ProtoReflect() protoreflect.Message

func (*PostContractCallInput) Reset

func (x *PostContractCallInput) Reset()

func (*PostContractCallInput) String

func (x *PostContractCallInput) String() string

func (*PostContractCallInput) UnmarshalJSON

func (x *PostContractCallInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type PostExecMessageInput

type PostExecMessageInput struct {
	From  []byte  `protobuf:"bytes,1,req,name=from" json:"from,omitempty"`
	To    []byte  `protobuf:"bytes,2,req,name=to" json:"to,omitempty"`
	Index *uint64 `protobuf:"varint,3,req,name=index" json:"index,omitempty"`
	Data  []byte  `protobuf:"bytes,4,req,name=data" json:"data,omitempty"`
	Value []byte  `protobuf:"bytes,5,req,name=value" json:"value,omitempty"`
	Gas   *uint64 `protobuf:"varint,6,opt,name=gas" json:"gas,omitempty"`
	Ret   []byte  `protobuf:"bytes,7,opt,name=ret" json:"ret,omitempty"`
	Error *string `protobuf:"bytes,8,opt,name=error" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*PostExecMessageInput) Descriptor deprecated

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

Deprecated: Use PostExecMessageInput.ProtoReflect.Descriptor instead.

func (*PostExecMessageInput) GetData

func (x *PostExecMessageInput) GetData() []byte

func (*PostExecMessageInput) GetError

func (x *PostExecMessageInput) GetError() string

func (*PostExecMessageInput) GetFrom

func (x *PostExecMessageInput) GetFrom() []byte

func (*PostExecMessageInput) GetGas

func (x *PostExecMessageInput) GetGas() uint64

func (*PostExecMessageInput) GetIndex

func (x *PostExecMessageInput) GetIndex() uint64

func (*PostExecMessageInput) GetRet

func (x *PostExecMessageInput) GetRet() []byte

func (*PostExecMessageInput) GetTo

func (x *PostExecMessageInput) GetTo() []byte

func (*PostExecMessageInput) GetValue

func (x *PostExecMessageInput) GetValue() []byte

func (*PostExecMessageInput) MarshalJSON

func (x *PostExecMessageInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*PostExecMessageInput) ProtoMessage

func (*PostExecMessageInput) ProtoMessage()

func (*PostExecMessageInput) ProtoReflect

func (x *PostExecMessageInput) ProtoReflect() protoreflect.Message

func (*PostExecMessageInput) Reset

func (x *PostExecMessageInput) Reset()

func (*PostExecMessageInput) String

func (x *PostExecMessageInput) String() string

func (*PostExecMessageInput) UnmarshalJSON

func (x *PostExecMessageInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type PostTxExecuteInput

type PostTxExecuteInput struct {
	Tx      *WithFromTxInput `protobuf:"bytes,1,req,name=tx" json:"tx,omitempty"`
	Block   *BlockInput      `protobuf:"bytes,2,req,name=block" json:"block,omitempty"`
	Receipt *ReceiptInput    `protobuf:"bytes,3,req,name=receipt" json:"receipt,omitempty"`
	// contains filtered or unexported fields
}

func (*PostTxExecuteInput) Descriptor deprecated

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

Deprecated: Use PostTxExecuteInput.ProtoReflect.Descriptor instead.

func (*PostTxExecuteInput) GetBlock

func (x *PostTxExecuteInput) GetBlock() *BlockInput

func (*PostTxExecuteInput) GetReceipt

func (x *PostTxExecuteInput) GetReceipt() *ReceiptInput

func (*PostTxExecuteInput) GetTx

func (x *PostTxExecuteInput) GetTx() *WithFromTxInput

func (*PostTxExecuteInput) MarshalJSON

func (x *PostTxExecuteInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*PostTxExecuteInput) ProtoMessage

func (*PostTxExecuteInput) ProtoMessage()

func (*PostTxExecuteInput) ProtoReflect

func (x *PostTxExecuteInput) ProtoReflect() protoreflect.Message

func (*PostTxExecuteInput) Reset

func (x *PostTxExecuteInput) Reset()

func (*PostTxExecuteInput) String

func (x *PostTxExecuteInput) String() string

func (*PostTxExecuteInput) UnmarshalJSON

func (x *PostTxExecuteInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type PreContractCallInput

type PreContractCallInput struct {
	Call  *PreExecMessageInput `protobuf:"bytes,1,req,name=call" json:"call,omitempty"`
	Block *BlockInput          `protobuf:"bytes,2,req,name=block" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*PreContractCallInput) Descriptor deprecated

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

Deprecated: Use PreContractCallInput.ProtoReflect.Descriptor instead.

func (*PreContractCallInput) GetBlock

func (x *PreContractCallInput) GetBlock() *BlockInput

func (*PreContractCallInput) GetCall

func (*PreContractCallInput) MarshalJSON

func (x *PreContractCallInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*PreContractCallInput) ProtoMessage

func (*PreContractCallInput) ProtoMessage()

func (*PreContractCallInput) ProtoReflect

func (x *PreContractCallInput) ProtoReflect() protoreflect.Message

func (*PreContractCallInput) Reset

func (x *PreContractCallInput) Reset()

func (*PreContractCallInput) String

func (x *PreContractCallInput) String() string

func (*PreContractCallInput) UnmarshalJSON

func (x *PreContractCallInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type PreExecMessageInput

type PreExecMessageInput struct {
	From  []byte  `protobuf:"bytes,1,req,name=from" json:"from,omitempty"`
	To    []byte  `protobuf:"bytes,2,req,name=to" json:"to,omitempty"`
	Index *uint64 `protobuf:"varint,3,req,name=index" json:"index,omitempty"`
	Data  []byte  `protobuf:"bytes,4,req,name=data" json:"data,omitempty"`
	Value []byte  `protobuf:"bytes,5,req,name=value" json:"value,omitempty"`
	Gas   *uint64 `protobuf:"varint,6,req,name=gas" json:"gas,omitempty"`
	// contains filtered or unexported fields
}

func (*PreExecMessageInput) Descriptor deprecated

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

Deprecated: Use PreExecMessageInput.ProtoReflect.Descriptor instead.

func (*PreExecMessageInput) GetData

func (x *PreExecMessageInput) GetData() []byte

func (*PreExecMessageInput) GetFrom

func (x *PreExecMessageInput) GetFrom() []byte

func (*PreExecMessageInput) GetGas

func (x *PreExecMessageInput) GetGas() uint64

func (*PreExecMessageInput) GetIndex

func (x *PreExecMessageInput) GetIndex() uint64

func (*PreExecMessageInput) GetTo

func (x *PreExecMessageInput) GetTo() []byte

func (*PreExecMessageInput) GetValue

func (x *PreExecMessageInput) GetValue() []byte

func (*PreExecMessageInput) MarshalJSON

func (x *PreExecMessageInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*PreExecMessageInput) ProtoMessage

func (*PreExecMessageInput) ProtoMessage()

func (*PreExecMessageInput) ProtoReflect

func (x *PreExecMessageInput) ProtoReflect() protoreflect.Message

func (*PreExecMessageInput) Reset

func (x *PreExecMessageInput) Reset()

func (*PreExecMessageInput) String

func (x *PreExecMessageInput) String() string

func (*PreExecMessageInput) UnmarshalJSON

func (x *PreExecMessageInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type PreTxExecuteInput

type PreTxExecuteInput struct {
	Tx    *WithFromTxInput `protobuf:"bytes,1,req,name=tx" json:"tx,omitempty"`
	Block *BlockInput      `protobuf:"bytes,2,req,name=block" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*PreTxExecuteInput) Descriptor deprecated

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

Deprecated: Use PreTxExecuteInput.ProtoReflect.Descriptor instead.

func (*PreTxExecuteInput) GetBlock

func (x *PreTxExecuteInput) GetBlock() *BlockInput

func (*PreTxExecuteInput) GetTx

func (x *PreTxExecuteInput) GetTx() *WithFromTxInput

func (*PreTxExecuteInput) MarshalJSON

func (x *PreTxExecuteInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*PreTxExecuteInput) ProtoMessage

func (*PreTxExecuteInput) ProtoMessage()

func (*PreTxExecuteInput) ProtoReflect

func (x *PreTxExecuteInput) ProtoReflect() protoreflect.Message

func (*PreTxExecuteInput) Reset

func (x *PreTxExecuteInput) Reset()

func (*PreTxExecuteInput) String

func (x *PreTxExecuteInput) String() string

func (*PreTxExecuteInput) UnmarshalJSON

func (x *PreTxExecuteInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type ReceiptInput

type ReceiptInput struct {
	Status *uint64 `protobuf:"varint,1,req,name=status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptInput) Descriptor deprecated

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

Deprecated: Use ReceiptInput.ProtoReflect.Descriptor instead.

func (*ReceiptInput) GetStatus

func (x *ReceiptInput) GetStatus() uint64

func (*ReceiptInput) MarshalJSON

func (x *ReceiptInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*ReceiptInput) ProtoMessage

func (*ReceiptInput) ProtoMessage()

func (*ReceiptInput) ProtoReflect

func (x *ReceiptInput) ProtoReflect() protoreflect.Message

func (*ReceiptInput) Reset

func (x *ReceiptInput) Reset()

func (*ReceiptInput) String

func (x *ReceiptInput) String() string

func (*ReceiptInput) UnmarshalJSON

func (x *ReceiptInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type RevertScope

type RevertScope uint8
const (
	NotRevert RevertScope = iota
	RevertCall
	RevertTx
)

type RunnerContext

type RunnerContext struct {
	Ctx           context.Context
	AspectId      common.Address
	AspectVersion uint64
	BlockNumber   int64
	Point         string
	ContractAddr  common.Address
	Gas           uint64
	Commit        bool
	VMContext     types.VMContext
}

func (*RunnerContext) RemainingGas

func (r *RunnerContext) RemainingGas() uint64

func (*RunnerContext) SetGas

func (r *RunnerContext) SetGas(gas uint64)

func (*RunnerContext) SetVMContext

func (r *RunnerContext) SetVMContext(vmContext types.VMContext)

type RuntimeContextHostAPI

type RuntimeContextHostAPI interface {
	Get(ctx *RunnerContext, key string) ([]byte, error)
}

type StateChangeQuery

type StateChangeQuery struct {
	Account      []byte   `protobuf:"bytes,1,req,name=account" json:"account,omitempty"`
	StateVarName *string  `protobuf:"bytes,2,req,name=state_var_name,json=stateVarName" json:"state_var_name,omitempty"`
	Indices      [][]byte `protobuf:"bytes,3,rep,name=indices" json:"indices,omitempty"`
	// contains filtered or unexported fields
}

trace api types

func (*StateChangeQuery) Descriptor deprecated

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

Deprecated: Use StateChangeQuery.ProtoReflect.Descriptor instead.

func (*StateChangeQuery) GetAccount

func (x *StateChangeQuery) GetAccount() []byte

func (*StateChangeQuery) GetIndices

func (x *StateChangeQuery) GetIndices() [][]byte

func (*StateChangeQuery) GetStateVarName

func (x *StateChangeQuery) GetStateVarName() string

func (*StateChangeQuery) ProtoMessage

func (*StateChangeQuery) ProtoMessage()

func (*StateChangeQuery) ProtoReflect

func (x *StateChangeQuery) ProtoReflect() protoreflect.Message

func (*StateChangeQuery) Reset

func (x *StateChangeQuery) Reset()

func (*StateChangeQuery) String

func (x *StateChangeQuery) String() string

type StateDBHostAPI

type StateDBHostAPI interface {
	GetBalance(address common.Address) *big.Int
	GetState(address common.Address, key common.Hash) common.Hash
	GetCodeHash(address common.Address) common.Hash
	GetCodeSize(address common.Address) int
	GetNonce(address common.Address) uint64
	HasSuicided(address common.Address) bool
}

type StaticCallRequest

type StaticCallRequest struct {
	From []byte  `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"`
	To   []byte  `protobuf:"bytes,2,req,name=to" json:"to,omitempty"`
	Data []byte  `protobuf:"bytes,3,req,name=data" json:"data,omitempty"`
	Gas  *uint64 `protobuf:"varint,4,opt,name=gas" json:"gas,omitempty"`
	// contains filtered or unexported fields
}

evm api types

func (*StaticCallRequest) Descriptor deprecated

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

Deprecated: Use StaticCallRequest.ProtoReflect.Descriptor instead.

func (*StaticCallRequest) GetData

func (x *StaticCallRequest) GetData() []byte

func (*StaticCallRequest) GetFrom

func (x *StaticCallRequest) GetFrom() []byte

func (*StaticCallRequest) GetGas

func (x *StaticCallRequest) GetGas() uint64

func (*StaticCallRequest) GetTo

func (x *StaticCallRequest) GetTo() []byte

func (*StaticCallRequest) ProtoMessage

func (*StaticCallRequest) ProtoMessage()

func (*StaticCallRequest) ProtoReflect

func (x *StaticCallRequest) ProtoReflect() protoreflect.Message

func (*StaticCallRequest) Reset

func (x *StaticCallRequest) Reset()

func (*StaticCallRequest) String

func (x *StaticCallRequest) String() string

type StaticCallResult

type StaticCallResult struct {
	Ret     []byte  `protobuf:"bytes,1,opt,name=ret" json:"ret,omitempty"`
	VmError *string `protobuf:"bytes,2,opt,name=vm_error,json=vmError" json:"vm_error,omitempty"`
	GasLeft *uint64 `protobuf:"varint,3,req,name=gas_left,json=gasLeft" json:"gas_left,omitempty"`
	// contains filtered or unexported fields
}

func (*StaticCallResult) Descriptor deprecated

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

Deprecated: Use StaticCallResult.ProtoReflect.Descriptor instead.

func (*StaticCallResult) GetGasLeft

func (x *StaticCallResult) GetGasLeft() uint64

func (*StaticCallResult) GetRet

func (x *StaticCallResult) GetRet() []byte

func (*StaticCallResult) GetVmError

func (x *StaticCallResult) GetVmError() string

func (*StaticCallResult) ProtoMessage

func (*StaticCallResult) ProtoMessage()

func (*StaticCallResult) ProtoReflect

func (x *StaticCallResult) ProtoReflect() protoreflect.Message

func (*StaticCallResult) Reset

func (x *StaticCallResult) Reset()

func (*StaticCallResult) String

func (x *StaticCallResult) String() string

type StringArrayData

type StringArrayData struct {
	Data []string `protobuf:"bytes,1,rep,name=data" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*StringArrayData) Descriptor deprecated

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

Deprecated: Use StringArrayData.ProtoReflect.Descriptor instead.

func (*StringArrayData) GetData

func (x *StringArrayData) GetData() []string

func (*StringArrayData) ProtoMessage

func (*StringArrayData) ProtoMessage()

func (*StringArrayData) ProtoReflect

func (x *StringArrayData) ProtoReflect() protoreflect.Message

func (*StringArrayData) Reset

func (x *StringArrayData) Reset()

func (*StringArrayData) String

func (x *StringArrayData) String() string

type StringData

type StringData struct {
	Data *string `protobuf:"bytes,1,req,name=data" json:"data,omitempty"`
	// contains filtered or unexported fields
}

basic types

func (*StringData) Descriptor deprecated

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

Deprecated: Use StringData.ProtoReflect.Descriptor instead.

func (*StringData) GetData

func (x *StringData) GetData() string

func (*StringData) ProtoMessage

func (*StringData) ProtoMessage()

func (*StringData) ProtoReflect

func (x *StringData) ProtoReflect() protoreflect.Message

func (*StringData) Reset

func (x *StringData) Reset()

func (*StringData) String

func (x *StringData) String() string

type TxVerifyInput

type TxVerifyInput struct {
	Tx             *NoFromTxInput `protobuf:"bytes,1,req,name=tx" json:"tx,omitempty"`
	Block          *BlockInput    `protobuf:"bytes,2,req,name=block" json:"block,omitempty"`
	ValidationData []byte         `protobuf:"bytes,3,req,name=validation_data,json=validationData" json:"validation_data,omitempty"`
	CallData       []byte         `protobuf:"bytes,4,req,name=call_data,json=callData" json:"call_data,omitempty"`
	// contains filtered or unexported fields
}

func (*TxVerifyInput) Descriptor deprecated

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

Deprecated: Use TxVerifyInput.ProtoReflect.Descriptor instead.

func (*TxVerifyInput) GetBlock

func (x *TxVerifyInput) GetBlock() *BlockInput

func (*TxVerifyInput) GetCallData

func (x *TxVerifyInput) GetCallData() []byte

func (*TxVerifyInput) GetTx

func (x *TxVerifyInput) GetTx() *NoFromTxInput

func (*TxVerifyInput) GetValidationData

func (x *TxVerifyInput) GetValidationData() []byte

func (*TxVerifyInput) MarshalJSON

func (x *TxVerifyInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*TxVerifyInput) ProtoMessage

func (*TxVerifyInput) ProtoMessage()

func (*TxVerifyInput) ProtoReflect

func (x *TxVerifyInput) ProtoReflect() protoreflect.Message

func (*TxVerifyInput) Reset

func (x *TxVerifyInput) Reset()

func (*TxVerifyInput) String

func (x *TxVerifyInput) String() string

func (*TxVerifyInput) UnmarshalJSON

func (x *TxVerifyInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type UintData

type UintData struct {
	Data *uint64 `protobuf:"varint,1,req,name=data" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UintData) Descriptor deprecated

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

Deprecated: Use UintData.ProtoReflect.Descriptor instead.

func (*UintData) GetData

func (x *UintData) GetData() uint64

func (*UintData) ProtoMessage

func (*UintData) ProtoMessage()

func (*UintData) ProtoReflect

func (x *UintData) ProtoReflect() protoreflect.Message

func (*UintData) Reset

func (x *UintData) Reset()

func (*UintData) String

func (x *UintData) String() string

type WithFromTxInput

type WithFromTxInput struct {
	Hash []byte `protobuf:"bytes,1,req,name=hash" json:"hash,omitempty"`
	To   []byte `protobuf:"bytes,2,req,name=to" json:"to,omitempty"`
	From []byte `protobuf:"bytes,3,req,name=from" json:"from,omitempty"`
	// contains filtered or unexported fields
}

func (*WithFromTxInput) Descriptor deprecated

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

Deprecated: Use WithFromTxInput.ProtoReflect.Descriptor instead.

func (*WithFromTxInput) GetFrom

func (x *WithFromTxInput) GetFrom() []byte

func (*WithFromTxInput) GetHash

func (x *WithFromTxInput) GetHash() []byte

func (*WithFromTxInput) GetTo

func (x *WithFromTxInput) GetTo() []byte

func (*WithFromTxInput) MarshalJSON

func (x *WithFromTxInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*WithFromTxInput) ProtoMessage

func (*WithFromTxInput) ProtoMessage()

func (*WithFromTxInput) ProtoReflect

func (x *WithFromTxInput) ProtoReflect() protoreflect.Message

func (*WithFromTxInput) Reset

func (x *WithFromTxInput) Reset()

func (*WithFromTxInput) String

func (x *WithFromTxInput) String() string

func (*WithFromTxInput) UnmarshalJSON

func (x *WithFromTxInput) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

Jump to

Keyboard shortcuts

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