Documentation ¶
Index ¶
- Variables
- func RegisterExecutorServiceServer(s grpc.ServiceRegistrar, srv ExecutorServiceServer)
- type CallTrace
- func (*CallTrace) Descriptor() ([]byte, []int)deprecated
- func (x *CallTrace) GetContext() *TransactionContext
- func (x *CallTrace) GetSteps() []*TransactionStep
- func (*CallTrace) ProtoMessage()
- func (x *CallTrace) ProtoReflect() protoreflect.Message
- func (x *CallTrace) Reset()
- func (x *CallTrace) String() string
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)deprecated
- func (x *Contract) GetAddress() string
- func (x *Contract) GetCaller() string
- func (x *Contract) GetData() []byte
- func (x *Contract) GetGas() uint64
- func (x *Contract) GetValue() string
- func (*Contract) ProtoMessage()
- func (x *Contract) ProtoReflect() protoreflect.Message
- func (x *Contract) Reset()
- func (x *Contract) String() string
- type Error
- type ExecutionTraceStep
- func (*ExecutionTraceStep) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutionTraceStep) GetDepth() uint32
- func (x *ExecutionTraceStep) GetError() Error
- func (x *ExecutionTraceStep) GetGasCost() uint64
- func (x *ExecutionTraceStep) GetGasRefund() uint64
- func (x *ExecutionTraceStep) GetMemory() []byte
- func (x *ExecutionTraceStep) GetMemorySize() uint32
- func (x *ExecutionTraceStep) GetOp() string
- func (x *ExecutionTraceStep) GetPc() uint64
- func (x *ExecutionTraceStep) GetRemainingGas() uint64
- func (x *ExecutionTraceStep) GetReturnData() []byte
- func (x *ExecutionTraceStep) GetStack() []string
- func (x *ExecutionTraceStep) GetStorage() map[string]string
- func (*ExecutionTraceStep) ProtoMessage()
- func (x *ExecutionTraceStep) ProtoReflect() protoreflect.Message
- func (x *ExecutionTraceStep) Reset()
- func (x *ExecutionTraceStep) String() string
- type ExecutorServiceClient
- type ExecutorServiceServer
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetAddress() string
- func (x *Log) GetBatchHash() []byte
- func (x *Log) GetBatchNumber() uint64
- func (x *Log) GetData() []byte
- func (x *Log) GetIndex() uint32
- func (x *Log) GetTopics() [][]byte
- func (x *Log) GetTxHash() []byte
- func (x *Log) GetTxIndex() uint32
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type ProcessBatchRequest
- func (*ProcessBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessBatchRequest) GetBatchL2Data() []byte
- func (x *ProcessBatchRequest) GetChainId() uint64
- func (x *ProcessBatchRequest) GetCoinbase() string
- func (x *ProcessBatchRequest) GetContractsBytecode() map[string]string
- func (x *ProcessBatchRequest) GetDb() map[string]string
- func (x *ProcessBatchRequest) GetEthTimestamp() uint64
- func (x *ProcessBatchRequest) GetFrom() string
- func (x *ProcessBatchRequest) GetGlobalExitRoot() []byte
- func (x *ProcessBatchRequest) GetNoCounters() uint64
- func (x *ProcessBatchRequest) GetOldAccInputHash() []byte
- func (x *ProcessBatchRequest) GetOldBatchNum() uint64
- func (x *ProcessBatchRequest) GetOldStateRoot() []byte
- func (x *ProcessBatchRequest) GetTxHashToGenerateCallTrace() []byte
- func (x *ProcessBatchRequest) GetTxHashToGenerateExecuteTrace() []byte
- func (x *ProcessBatchRequest) GetUpdateMerkleTree() uint32
- func (*ProcessBatchRequest) ProtoMessage()
- func (x *ProcessBatchRequest) ProtoReflect() protoreflect.Message
- func (x *ProcessBatchRequest) Reset()
- func (x *ProcessBatchRequest) String() string
- type ProcessBatchResponse
- func (*ProcessBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessBatchResponse) GetCntArithmetics() uint32
- func (x *ProcessBatchResponse) GetCntBinaries() uint32
- func (x *ProcessBatchResponse) GetCntKeccakHashes() uint32
- func (x *ProcessBatchResponse) GetCntMemAligns() uint32
- func (x *ProcessBatchResponse) GetCntPoseidonHashes() uint32
- func (x *ProcessBatchResponse) GetCntPoseidonPaddings() uint32
- func (x *ProcessBatchResponse) GetCntSteps() uint32
- func (x *ProcessBatchResponse) GetCumulativeGasUsed() uint64
- func (x *ProcessBatchResponse) GetError() Error
- func (x *ProcessBatchResponse) GetNewAccInputHash() []byte
- func (x *ProcessBatchResponse) GetNewBatchNum() uint64
- func (x *ProcessBatchResponse) GetNewLocalExitRoot() []byte
- func (x *ProcessBatchResponse) GetNewStateRoot() []byte
- func (x *ProcessBatchResponse) GetResponses() []*ProcessTransactionResponse
- func (*ProcessBatchResponse) ProtoMessage()
- func (x *ProcessBatchResponse) ProtoReflect() protoreflect.Message
- func (x *ProcessBatchResponse) Reset()
- func (x *ProcessBatchResponse) String() string
- type ProcessTransactionResponse
- func (*ProcessTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessTransactionResponse) GetCallTrace() *CallTrace
- func (x *ProcessTransactionResponse) GetCreateAddress() string
- func (x *ProcessTransactionResponse) GetError() Error
- func (x *ProcessTransactionResponse) GetExecutionTrace() []*ExecutionTraceStep
- func (x *ProcessTransactionResponse) GetGasLeft() uint64
- func (x *ProcessTransactionResponse) GetGasRefunded() uint64
- func (x *ProcessTransactionResponse) GetGasUsed() uint64
- func (x *ProcessTransactionResponse) GetLogs() []*Log
- func (x *ProcessTransactionResponse) GetReturnValue() []byte
- func (x *ProcessTransactionResponse) GetRlpTx() []byte
- func (x *ProcessTransactionResponse) GetStateRoot() []byte
- func (x *ProcessTransactionResponse) GetTxHash() []byte
- func (x *ProcessTransactionResponse) GetType() uint32
- func (*ProcessTransactionResponse) ProtoMessage()
- func (x *ProcessTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *ProcessTransactionResponse) Reset()
- func (x *ProcessTransactionResponse) String() string
- type TransactionContext
- func (*TransactionContext) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionContext) GetBatch() []byte
- func (x *TransactionContext) GetData() []byte
- func (x *TransactionContext) GetExecutionTime() uint32
- func (x *TransactionContext) GetFrom() string
- func (x *TransactionContext) GetGas() uint64
- func (x *TransactionContext) GetGasPrice() string
- func (x *TransactionContext) GetGasUsed() uint64
- func (x *TransactionContext) GetOldStateRoot() []byte
- func (x *TransactionContext) GetOutput() []byte
- func (x *TransactionContext) GetTo() string
- func (x *TransactionContext) GetType() string
- func (x *TransactionContext) GetValue() string
- func (*TransactionContext) ProtoMessage()
- func (x *TransactionContext) ProtoReflect() protoreflect.Message
- func (x *TransactionContext) Reset()
- func (x *TransactionContext) String() string
- type TransactionStep
- func (*TransactionStep) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionStep) GetContract() *Contract
- func (x *TransactionStep) GetDepth() uint32
- func (x *TransactionStep) GetError() Error
- func (x *TransactionStep) GetGas() uint64
- func (x *TransactionStep) GetGasCost() uint64
- func (x *TransactionStep) GetGasRefund() uint64
- func (x *TransactionStep) GetMemory() []byte
- func (x *TransactionStep) GetOp() uint32
- func (x *TransactionStep) GetPc() uint64
- func (x *TransactionStep) GetReturnData() []byte
- func (x *TransactionStep) GetStack() []string
- func (x *TransactionStep) GetStateRoot() []byte
- func (*TransactionStep) ProtoMessage()
- func (x *TransactionStep) ProtoReflect() protoreflect.Message
- func (x *TransactionStep) Reset()
- func (x *TransactionStep) String() string
- type UnimplementedExecutorServiceServer
- type UnsafeExecutorServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Error_name = map[int32]string{ 0: "ERROR_UNSPECIFIED", 1: "ERROR_NO_ERROR", 2: "ERROR_OUT_OF_GAS", 3: "ERROR_STACK_OVERFLOW", 4: "ERROR_STACK_UNDERFLOW", 5: "ERROR_MAX_CODE_SIZE_EXCEEDED", 6: "ERROR_CONTRACT_ADDRESS_COLLISION", 7: "ERROR_EXECUTION_REVERTED", 8: "ERROR_OUT_OF_COUNTERS_STEP", 9: "ERROR_OUT_OF_COUNTERS_KECCAK", 10: "ERROR_OUT_OF_COUNTERS_BINARY", 11: "ERROR_OUT_OF_COUNTERS_MEM", 12: "ERROR_OUT_OF_COUNTERS_ARITH", 13: "ERROR_OUT_OF_COUNTERS_PADDING", 14: "ERROR_OUT_OF_COUNTERS_POSEIDON", 15: "ERROR_INVALID_JUMP", 16: "ERROR_INVALID_OPCODE", 17: "ERROR_INVALID_STATIC", 18: "ERROR_INVALID_BYTECODE_STARTS_EF", 19: "ERROR_INTRINSIC_INVALID_SIGNATURE", 20: "ERROR_INTRINSIC_INVALID_CHAIN_ID", 21: "ERROR_INTRINSIC_INVALID_NONCE", 22: "ERROR_INTRINSIC_INVALID_GAS_LIMIT", 23: "ERROR_INTRINSIC_INVALID_BALANCE", 24: "ERROR_INTRINSIC_INVALID_BATCH_GAS_LIMIT", 25: "ERROR_INTRINSIC_INVALID_SENDER_CODE", 26: "ERROR_INTRINSIC_TX_GAS_OVERFLOW", 27: "ERROR_BATCH_DATA_TOO_BIG", } Error_value = map[string]int32{ "ERROR_UNSPECIFIED": 0, "ERROR_NO_ERROR": 1, "ERROR_OUT_OF_GAS": 2, "ERROR_STACK_OVERFLOW": 3, "ERROR_STACK_UNDERFLOW": 4, "ERROR_MAX_CODE_SIZE_EXCEEDED": 5, "ERROR_CONTRACT_ADDRESS_COLLISION": 6, "ERROR_EXECUTION_REVERTED": 7, "ERROR_OUT_OF_COUNTERS_STEP": 8, "ERROR_OUT_OF_COUNTERS_KECCAK": 9, "ERROR_OUT_OF_COUNTERS_BINARY": 10, "ERROR_OUT_OF_COUNTERS_MEM": 11, "ERROR_OUT_OF_COUNTERS_ARITH": 12, "ERROR_OUT_OF_COUNTERS_PADDING": 13, "ERROR_OUT_OF_COUNTERS_POSEIDON": 14, "ERROR_INVALID_JUMP": 15, "ERROR_INVALID_OPCODE": 16, "ERROR_INVALID_STATIC": 17, "ERROR_INVALID_BYTECODE_STARTS_EF": 18, "ERROR_INTRINSIC_INVALID_SIGNATURE": 19, "ERROR_INTRINSIC_INVALID_CHAIN_ID": 20, "ERROR_INTRINSIC_INVALID_NONCE": 21, "ERROR_INTRINSIC_INVALID_GAS_LIMIT": 22, "ERROR_INTRINSIC_INVALID_BALANCE": 23, "ERROR_INTRINSIC_INVALID_BATCH_GAS_LIMIT": 24, "ERROR_INTRINSIC_INVALID_SENDER_CODE": 25, "ERROR_INTRINSIC_TX_GAS_OVERFLOW": 26, "ERROR_BATCH_DATA_TOO_BIG": 27, } )
Enum value maps for Error.
var ExecutorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "executor.v1.ExecutorService", HandlerType: (*ExecutorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ProcessBatch", Handler: _ExecutorService_ProcessBatch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "executor.proto", }
ExecutorService_ServiceDesc is the grpc.ServiceDesc for ExecutorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_executor_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExecutorServiceServer ¶
func RegisterExecutorServiceServer(s grpc.ServiceRegistrar, srv ExecutorServiceServer)
Types ¶
type CallTrace ¶
type CallTrace struct { Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` Steps []*TransactionStep `protobuf:"bytes,2,rep,name=steps,proto3" json:"steps,omitempty"` // contains filtered or unexported fields }
func (*CallTrace) Descriptor
deprecated
func (*CallTrace) GetContext ¶
func (x *CallTrace) GetContext() *TransactionContext
func (*CallTrace) GetSteps ¶
func (x *CallTrace) GetSteps() []*TransactionStep
func (*CallTrace) ProtoMessage ¶
func (*CallTrace) ProtoMessage()
func (*CallTrace) ProtoReflect ¶
func (x *CallTrace) ProtoReflect() protoreflect.Message
type Contract ¶
type Contract struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Caller string `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` Gas uint64 `protobuf:"varint,5,opt,name=gas,proto3" json:"gas,omitempty"` // contains filtered or unexported fields }
func (*Contract) Descriptor
deprecated
func (*Contract) GetAddress ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) ProtoReflect ¶
func (x *Contract) ProtoReflect() protoreflect.Message
type Error ¶
type Error int32
const ( Error_ERROR_UNSPECIFIED Error = 0 // ERROR_NO_ERROR indicates the execution ended successfully Error_ERROR_NO_ERROR Error = 1 // ERROR_OUT_OF_GAS indicates there is not enough balance to continue the execution Error_ERROR_OUT_OF_GAS Error = 2 // ERROR_STACK_OVERFLOW indicates a stack overflow has happened Error_ERROR_STACK_OVERFLOW Error = 3 // ERROR_STACK_UNDERFLOW indicates a stack overflow has happened Error_ERROR_STACK_UNDERFLOW Error = 4 // ERROR_MAX_CODE_SIZE_EXCEEDED indicates the code size is beyond the maximum Error_ERROR_MAX_CODE_SIZE_EXCEEDED Error = 5 // ERROR_CONTRACT_ADDRESS_COLLISION there is a collision regarding contract addresses Error_ERROR_CONTRACT_ADDRESS_COLLISION Error = 6 // ERROR_EXECUTION_REVERTED indicates the execution has been reverted Error_ERROR_EXECUTION_REVERTED Error = 7 // ERROR_OUT_OF_COUNTERS_STEP indicates there is not enough step counters to continue the execution Error_ERROR_OUT_OF_COUNTERS_STEP Error = 8 // ERROR_OUT_OF_COUNTERS_KECCAK indicates there is not enough keccak counters to continue the execution Error_ERROR_OUT_OF_COUNTERS_KECCAK Error = 9 // ERROR_OUT_OF_COUNTERS_BINARY indicates there is not enough binary counters to continue the execution Error_ERROR_OUT_OF_COUNTERS_BINARY Error = 10 // ERROR_OUT_OF_COUNTERS_MEM indicates there is not enough memory aligncounters to continue the execution Error_ERROR_OUT_OF_COUNTERS_MEM Error = 11 // ERROR_OUT_OF_COUNTERS_ARITH indicates there is not enough arith counters to continue the execution Error_ERROR_OUT_OF_COUNTERS_ARITH Error = 12 // ERROR_OUT_OF_COUNTERS_PADDING indicates there is not enough padding counters to continue the execution Error_ERROR_OUT_OF_COUNTERS_PADDING Error = 13 // ERROR_OUT_OF_COUNTERS_POSEIDON indicates there is not enough poseidon counters to continue the execution Error_ERROR_OUT_OF_COUNTERS_POSEIDON Error = 14 // ERROR_INVALID_JUMP indicates there is an invalid jump opcode Error_ERROR_INVALID_JUMP Error = 15 // ERROR_INVALID_OPCODE indicates there is an invalid opcode Error_ERROR_INVALID_OPCODE Error = 16 // ERROR_INVALID_STATIC indicates there is an invalid static call Error_ERROR_INVALID_STATIC Error = 17 // ERROR_INVALID_BYTECODE_STARTS_EF indicates there is a bytecode starting with 0xEF Error_ERROR_INVALID_BYTECODE_STARTS_EF Error = 18 // ERROR_INTRINSIC_INVALID_SIGNATURE indicates the transaction is failing at the signature intrinsic check Error_ERROR_INTRINSIC_INVALID_SIGNATURE Error = 19 // ERROR_INTRINSIC_INVALID_CHAIN_ID indicates the transaction is failing at the chain id intrinsic check Error_ERROR_INTRINSIC_INVALID_CHAIN_ID Error = 20 // ERROR_INTRINSIC_INVALID_NONCE indicates the transaction is failing at the nonce intrinsic check Error_ERROR_INTRINSIC_INVALID_NONCE Error = 21 // ERROR_INTRINSIC_INVALID_GAS indicates the transaction is failing at the gas limit intrinsic check Error_ERROR_INTRINSIC_INVALID_GAS_LIMIT Error = 22 // ERROR_INTRINSIC_INVALID_BALANCE indicates the transaction is failing at balance intrinsic check Error_ERROR_INTRINSIC_INVALID_BALANCE Error = 23 // ERROR_INTRINSIC_INVALID_BATCH_GAS_LIMIT indicates the batch is exceeding the batch gas limit Error_ERROR_INTRINSIC_INVALID_BATCH_GAS_LIMIT Error = 24 // ERROR_INTRINSIC_INVALID_SENDER_CODE indicates the transaction sender is invalid Error_ERROR_INTRINSIC_INVALID_SENDER_CODE Error = 25 // ERROR_INTRINSIC_TX_GAS_OVERFLOW indicates the transaction gasLimit*gasPrice > MAX_UINT_256 - 1 Error_ERROR_INTRINSIC_TX_GAS_OVERFLOW Error = 26 // ERROR_BATCH_DATA_TOO_BIG indicates the batch_l2_data is too big to be processed Error_ERROR_BATCH_DATA_TOO_BIG Error = 27 )
func (Error) Descriptor ¶
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
func (Error) Number ¶
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶
func (Error) Type() protoreflect.EnumType
type ExecutionTraceStep ¶
type ExecutionTraceStep struct { // Program Counter Pc uint64 `protobuf:"varint,1,opt,name=pc,proto3" json:"pc,omitempty"` // OpCode Op string `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"` // Remaining gas RemainingGas uint64 `protobuf:"varint,3,opt,name=remaining_gas,json=remainingGas,proto3" json:"remaining_gas,omitempty"` // Gas cost of the operation GasCost uint64 `protobuf:"varint,4,opt,name=gas_cost,json=gasCost,proto3" json:"gas_cost,omitempty"` // Content of memory Memory []byte `protobuf:"bytes,5,opt,name=memory,proto3" json:"memory,omitempty"` // Size of memory MemorySize uint32 `protobuf:"varint,6,opt,name=memory_size,json=memorySize,proto3" json:"memory_size,omitempty"` // Content of the stack Stack []string `protobuf:"bytes,7,rep,name=stack,proto3" json:"stack,omitempty"` // Returned data ReturnData []byte `protobuf:"bytes,8,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"` // Content of the storage Storage map[string]string `` /* 155-byte string literal not displayed */ // Call depth Depth uint32 `protobuf:"varint,10,opt,name=depth,proto3" json:"depth,omitempty"` // Gas refund GasRefund uint64 `protobuf:"varint,11,opt,name=gas_refund,json=gasRefund,proto3" json:"gas_refund,omitempty"` // Error Error Error `protobuf:"varint,12,opt,name=error,proto3,enum=executor.v1.Error" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ExecutionTraceStep) Descriptor
deprecated
func (*ExecutionTraceStep) Descriptor() ([]byte, []int)
Deprecated: Use ExecutionTraceStep.ProtoReflect.Descriptor instead.
func (*ExecutionTraceStep) GetDepth ¶
func (x *ExecutionTraceStep) GetDepth() uint32
func (*ExecutionTraceStep) GetError ¶
func (x *ExecutionTraceStep) GetError() Error
func (*ExecutionTraceStep) GetGasCost ¶
func (x *ExecutionTraceStep) GetGasCost() uint64
func (*ExecutionTraceStep) GetGasRefund ¶
func (x *ExecutionTraceStep) GetGasRefund() uint64
func (*ExecutionTraceStep) GetMemory ¶
func (x *ExecutionTraceStep) GetMemory() []byte
func (*ExecutionTraceStep) GetMemorySize ¶
func (x *ExecutionTraceStep) GetMemorySize() uint32
func (*ExecutionTraceStep) GetOp ¶
func (x *ExecutionTraceStep) GetOp() string
func (*ExecutionTraceStep) GetPc ¶
func (x *ExecutionTraceStep) GetPc() uint64
func (*ExecutionTraceStep) GetRemainingGas ¶
func (x *ExecutionTraceStep) GetRemainingGas() uint64
func (*ExecutionTraceStep) GetReturnData ¶
func (x *ExecutionTraceStep) GetReturnData() []byte
func (*ExecutionTraceStep) GetStack ¶
func (x *ExecutionTraceStep) GetStack() []string
func (*ExecutionTraceStep) GetStorage ¶
func (x *ExecutionTraceStep) GetStorage() map[string]string
func (*ExecutionTraceStep) ProtoMessage ¶
func (*ExecutionTraceStep) ProtoMessage()
func (*ExecutionTraceStep) ProtoReflect ¶
func (x *ExecutionTraceStep) ProtoReflect() protoreflect.Message
func (*ExecutionTraceStep) Reset ¶
func (x *ExecutionTraceStep) Reset()
func (*ExecutionTraceStep) String ¶
func (x *ExecutionTraceStep) String() string
type ExecutorServiceClient ¶
type ExecutorServiceClient interface { /// Processes a batch ProcessBatch(ctx context.Context, in *ProcessBatchRequest, opts ...grpc.CallOption) (*ProcessBatchResponse, error) }
ExecutorServiceClient is the client API for ExecutorService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewExecutorServiceClient ¶
func NewExecutorServiceClient(cc grpc.ClientConnInterface) ExecutorServiceClient
type ExecutorServiceServer ¶
type ExecutorServiceServer interface { /// Processes a batch ProcessBatch(context.Context, *ProcessBatchRequest) (*ProcessBatchResponse, error) // contains filtered or unexported methods }
ExecutorServiceServer is the server API for ExecutorService service. All implementations must embed UnimplementedExecutorServiceServer for forward compatibility
type Log ¶
type Log struct { // Address of the contract that generated the event Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // List of topics provided by the contract Topics [][]byte `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"` // Supplied by the contract, usually ABI-encoded Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // Batch in which the transaction was included BatchNumber uint64 `protobuf:"varint,4,opt,name=batch_number,json=batchNumber,proto3" json:"batch_number,omitempty"` // Hash of the transaction TxHash []byte `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // Index of the transaction in the block TxIndex uint32 `protobuf:"varint,6,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` // Hash of the batch in which the transaction was included BatchHash []byte `protobuf:"bytes,7,opt,name=batch_hash,json=batchHash,proto3" json:"batch_hash,omitempty"` // Index of the log in the block Index uint32 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
func (*Log) GetAddress ¶
func (*Log) GetBatchHash ¶
func (*Log) GetBatchNumber ¶
func (*Log) GetTxIndex ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type ProcessBatchRequest ¶
type ProcessBatchRequest struct { OldStateRoot []byte `protobuf:"bytes,1,opt,name=old_state_root,json=oldStateRoot,proto3" json:"old_state_root,omitempty"` OldAccInputHash []byte `protobuf:"bytes,2,opt,name=old_acc_input_hash,json=oldAccInputHash,proto3" json:"old_acc_input_hash,omitempty"` OldBatchNum uint64 `protobuf:"varint,3,opt,name=old_batch_num,json=oldBatchNum,proto3" json:"old_batch_num,omitempty"` ChainId uint64 `protobuf:"varint,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` BatchL2Data []byte `protobuf:"bytes,5,opt,name=batch_l2_data,json=batchL2Data,proto3" json:"batch_l2_data,omitempty"` GlobalExitRoot []byte `protobuf:"bytes,6,opt,name=global_exit_root,json=globalExitRoot,proto3" json:"global_exit_root,omitempty"` EthTimestamp uint64 `protobuf:"varint,7,opt,name=eth_timestamp,json=ethTimestamp,proto3" json:"eth_timestamp,omitempty"` Coinbase string `protobuf:"bytes,8,opt,name=coinbase,proto3" json:"coinbase,omitempty"` UpdateMerkleTree uint32 `protobuf:"varint,9,opt,name=update_merkle_tree,json=updateMerkleTree,proto3" json:"update_merkle_tree,omitempty"` TxHashToGenerateExecuteTrace []byte `` /* 154-byte string literal not displayed */ TxHashToGenerateCallTrace []byte `` /* 145-byte string literal not displayed */ // flag to indicate that counters should not be taken into account NoCounters uint64 `protobuf:"varint,12,opt,name=no_counters,json=noCounters,proto3" json:"no_counters,omitempty"` // from is used for unsigned transactions with sender From string `protobuf:"bytes,13,opt,name=from,proto3" json:"from,omitempty"` // For testing purposes only Db map[string]string `` /* 146-byte string literal not displayed */ ContractsBytecode map[string]string `` // For debug/testing purpposes only. Don't fill this on production /* 201-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ProcessBatchRequest) Descriptor
deprecated
func (*ProcessBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProcessBatchRequest.ProtoReflect.Descriptor instead.
func (*ProcessBatchRequest) GetBatchL2Data ¶
func (x *ProcessBatchRequest) GetBatchL2Data() []byte
func (*ProcessBatchRequest) GetChainId ¶
func (x *ProcessBatchRequest) GetChainId() uint64
func (*ProcessBatchRequest) GetCoinbase ¶
func (x *ProcessBatchRequest) GetCoinbase() string
func (*ProcessBatchRequest) GetContractsBytecode ¶
func (x *ProcessBatchRequest) GetContractsBytecode() map[string]string
func (*ProcessBatchRequest) GetDb ¶
func (x *ProcessBatchRequest) GetDb() map[string]string
func (*ProcessBatchRequest) GetEthTimestamp ¶
func (x *ProcessBatchRequest) GetEthTimestamp() uint64
func (*ProcessBatchRequest) GetFrom ¶
func (x *ProcessBatchRequest) GetFrom() string
func (*ProcessBatchRequest) GetGlobalExitRoot ¶
func (x *ProcessBatchRequest) GetGlobalExitRoot() []byte
func (*ProcessBatchRequest) GetNoCounters ¶
func (x *ProcessBatchRequest) GetNoCounters() uint64
func (*ProcessBatchRequest) GetOldAccInputHash ¶
func (x *ProcessBatchRequest) GetOldAccInputHash() []byte
func (*ProcessBatchRequest) GetOldBatchNum ¶
func (x *ProcessBatchRequest) GetOldBatchNum() uint64
func (*ProcessBatchRequest) GetOldStateRoot ¶
func (x *ProcessBatchRequest) GetOldStateRoot() []byte
func (*ProcessBatchRequest) GetTxHashToGenerateCallTrace ¶
func (x *ProcessBatchRequest) GetTxHashToGenerateCallTrace() []byte
func (*ProcessBatchRequest) GetTxHashToGenerateExecuteTrace ¶
func (x *ProcessBatchRequest) GetTxHashToGenerateExecuteTrace() []byte
func (*ProcessBatchRequest) GetUpdateMerkleTree ¶
func (x *ProcessBatchRequest) GetUpdateMerkleTree() uint32
func (*ProcessBatchRequest) ProtoMessage ¶
func (*ProcessBatchRequest) ProtoMessage()
func (*ProcessBatchRequest) ProtoReflect ¶
func (x *ProcessBatchRequest) ProtoReflect() protoreflect.Message
func (*ProcessBatchRequest) Reset ¶
func (x *ProcessBatchRequest) Reset()
func (*ProcessBatchRequest) String ¶
func (x *ProcessBatchRequest) String() string
type ProcessBatchResponse ¶
type ProcessBatchResponse struct { NewStateRoot []byte `protobuf:"bytes,1,opt,name=new_state_root,json=newStateRoot,proto3" json:"new_state_root,omitempty"` NewAccInputHash []byte `protobuf:"bytes,2,opt,name=new_acc_input_hash,json=newAccInputHash,proto3" json:"new_acc_input_hash,omitempty"` NewLocalExitRoot []byte `protobuf:"bytes,3,opt,name=new_local_exit_root,json=newLocalExitRoot,proto3" json:"new_local_exit_root,omitempty"` NewBatchNum uint64 `protobuf:"varint,4,opt,name=new_batch_num,json=newBatchNum,proto3" json:"new_batch_num,omitempty"` CntKeccakHashes uint32 `protobuf:"varint,5,opt,name=cnt_keccak_hashes,json=cntKeccakHashes,proto3" json:"cnt_keccak_hashes,omitempty"` CntPoseidonHashes uint32 `protobuf:"varint,6,opt,name=cnt_poseidon_hashes,json=cntPoseidonHashes,proto3" json:"cnt_poseidon_hashes,omitempty"` CntPoseidonPaddings uint32 `protobuf:"varint,7,opt,name=cnt_poseidon_paddings,json=cntPoseidonPaddings,proto3" json:"cnt_poseidon_paddings,omitempty"` CntMemAligns uint32 `protobuf:"varint,8,opt,name=cnt_mem_aligns,json=cntMemAligns,proto3" json:"cnt_mem_aligns,omitempty"` CntArithmetics uint32 `protobuf:"varint,9,opt,name=cnt_arithmetics,json=cntArithmetics,proto3" json:"cnt_arithmetics,omitempty"` CntBinaries uint32 `protobuf:"varint,10,opt,name=cnt_binaries,json=cntBinaries,proto3" json:"cnt_binaries,omitempty"` CntSteps uint32 `protobuf:"varint,11,opt,name=cnt_steps,json=cntSteps,proto3" json:"cnt_steps,omitempty"` CumulativeGasUsed uint64 `protobuf:"varint,12,opt,name=cumulative_gas_used,json=cumulativeGasUsed,proto3" json:"cumulative_gas_used,omitempty"` Responses []*ProcessTransactionResponse `protobuf:"bytes,13,rep,name=responses,proto3" json:"responses,omitempty"` Error Error `protobuf:"varint,14,opt,name=error,proto3,enum=executor.v1.Error" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ProcessBatchResponse) Descriptor
deprecated
func (*ProcessBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProcessBatchResponse.ProtoReflect.Descriptor instead.
func (*ProcessBatchResponse) GetCntArithmetics ¶
func (x *ProcessBatchResponse) GetCntArithmetics() uint32
func (*ProcessBatchResponse) GetCntBinaries ¶
func (x *ProcessBatchResponse) GetCntBinaries() uint32
func (*ProcessBatchResponse) GetCntKeccakHashes ¶
func (x *ProcessBatchResponse) GetCntKeccakHashes() uint32
func (*ProcessBatchResponse) GetCntMemAligns ¶
func (x *ProcessBatchResponse) GetCntMemAligns() uint32
func (*ProcessBatchResponse) GetCntPoseidonHashes ¶
func (x *ProcessBatchResponse) GetCntPoseidonHashes() uint32
func (*ProcessBatchResponse) GetCntPoseidonPaddings ¶
func (x *ProcessBatchResponse) GetCntPoseidonPaddings() uint32
func (*ProcessBatchResponse) GetCntSteps ¶
func (x *ProcessBatchResponse) GetCntSteps() uint32
func (*ProcessBatchResponse) GetCumulativeGasUsed ¶
func (x *ProcessBatchResponse) GetCumulativeGasUsed() uint64
func (*ProcessBatchResponse) GetError ¶
func (x *ProcessBatchResponse) GetError() Error
func (*ProcessBatchResponse) GetNewAccInputHash ¶
func (x *ProcessBatchResponse) GetNewAccInputHash() []byte
func (*ProcessBatchResponse) GetNewBatchNum ¶
func (x *ProcessBatchResponse) GetNewBatchNum() uint64
func (*ProcessBatchResponse) GetNewLocalExitRoot ¶
func (x *ProcessBatchResponse) GetNewLocalExitRoot() []byte
func (*ProcessBatchResponse) GetNewStateRoot ¶
func (x *ProcessBatchResponse) GetNewStateRoot() []byte
func (*ProcessBatchResponse) GetResponses ¶
func (x *ProcessBatchResponse) GetResponses() []*ProcessTransactionResponse
func (*ProcessBatchResponse) ProtoMessage ¶
func (*ProcessBatchResponse) ProtoMessage()
func (*ProcessBatchResponse) ProtoReflect ¶
func (x *ProcessBatchResponse) ProtoReflect() protoreflect.Message
func (*ProcessBatchResponse) Reset ¶
func (x *ProcessBatchResponse) Reset()
func (*ProcessBatchResponse) String ¶
func (x *ProcessBatchResponse) String() string
type ProcessTransactionResponse ¶
type ProcessTransactionResponse struct { // Hash of the transaction TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // RLP encoded transaction // [nonce, gasPrice, gasLimit, to, value, data, v, r, s] RlpTx []byte `protobuf:"bytes,2,opt,name=rlp_tx,json=rlpTx,proto3" json:"rlp_tx,omitempty"` // Type indicates legacy transaction // It will be always 0 (legacy) in the executor Type uint32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // Returned data from the runtime (function result or data supplied with revert opcode) ReturnValue []byte `protobuf:"bytes,4,opt,name=return_value,json=returnValue,proto3" json:"return_value,omitempty"` // Total gas left as result of execution GasLeft uint64 `protobuf:"varint,5,opt,name=gas_left,json=gasLeft,proto3" json:"gas_left,omitempty"` // Total gas used as result of execution or gas estimation GasUsed uint64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` // Total gas refunded as result of execution GasRefunded uint64 `protobuf:"varint,7,opt,name=gas_refunded,json=gasRefunded,proto3" json:"gas_refunded,omitempty"` // Any error encountered during the execution Error Error `protobuf:"varint,8,opt,name=error,proto3,enum=executor.v1.Error" json:"error,omitempty"` // New SC Address in case of SC creation CreateAddress string `protobuf:"bytes,9,opt,name=create_address,json=createAddress,proto3" json:"create_address,omitempty"` // State Root StateRoot []byte `protobuf:"bytes,10,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` // Logs emited by LOG opcode Logs []*Log `protobuf:"bytes,11,rep,name=logs,proto3" json:"logs,omitempty"` // Trace ExecutionTrace []*ExecutionTraceStep `protobuf:"bytes,13,rep,name=execution_trace,json=executionTrace,proto3" json:"execution_trace,omitempty"` CallTrace *CallTrace `protobuf:"bytes,14,opt,name=call_trace,json=callTrace,proto3" json:"call_trace,omitempty"` // contains filtered or unexported fields }
func (*ProcessTransactionResponse) Descriptor
deprecated
func (*ProcessTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProcessTransactionResponse.ProtoReflect.Descriptor instead.
func (*ProcessTransactionResponse) GetCallTrace ¶
func (x *ProcessTransactionResponse) GetCallTrace() *CallTrace
func (*ProcessTransactionResponse) GetCreateAddress ¶
func (x *ProcessTransactionResponse) GetCreateAddress() string
func (*ProcessTransactionResponse) GetError ¶
func (x *ProcessTransactionResponse) GetError() Error
func (*ProcessTransactionResponse) GetExecutionTrace ¶
func (x *ProcessTransactionResponse) GetExecutionTrace() []*ExecutionTraceStep
func (*ProcessTransactionResponse) GetGasLeft ¶
func (x *ProcessTransactionResponse) GetGasLeft() uint64
func (*ProcessTransactionResponse) GetGasRefunded ¶
func (x *ProcessTransactionResponse) GetGasRefunded() uint64
func (*ProcessTransactionResponse) GetGasUsed ¶
func (x *ProcessTransactionResponse) GetGasUsed() uint64
func (*ProcessTransactionResponse) GetLogs ¶
func (x *ProcessTransactionResponse) GetLogs() []*Log
func (*ProcessTransactionResponse) GetReturnValue ¶
func (x *ProcessTransactionResponse) GetReturnValue() []byte
func (*ProcessTransactionResponse) GetRlpTx ¶
func (x *ProcessTransactionResponse) GetRlpTx() []byte
func (*ProcessTransactionResponse) GetStateRoot ¶
func (x *ProcessTransactionResponse) GetStateRoot() []byte
func (*ProcessTransactionResponse) GetTxHash ¶
func (x *ProcessTransactionResponse) GetTxHash() []byte
func (*ProcessTransactionResponse) GetType ¶
func (x *ProcessTransactionResponse) GetType() uint32
func (*ProcessTransactionResponse) ProtoMessage ¶
func (*ProcessTransactionResponse) ProtoMessage()
func (*ProcessTransactionResponse) ProtoReflect ¶
func (x *ProcessTransactionResponse) ProtoReflect() protoreflect.Message
func (*ProcessTransactionResponse) Reset ¶
func (x *ProcessTransactionResponse) Reset()
func (*ProcessTransactionResponse) String ¶
func (x *ProcessTransactionResponse) String() string
type TransactionContext ¶
type TransactionContext struct { // CALL or CREATE Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Sender of the transaction From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // Target of the transaction To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` // Input data of the transaction Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // Gas of the transaction Gas uint64 `protobuf:"varint,5,opt,name=gas,proto3" json:"gas,omitempty"` // Value of the transaction Value string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` // Hash of the batch in which the transaction was included Batch []byte `protobuf:"bytes,7,opt,name=batch,proto3" json:"batch,omitempty"` // Returned data from the runtime (function result or data supplied with revert opcode) Output []byte `protobuf:"bytes,8,opt,name=output,proto3" json:"output,omitempty"` // Total gas used as result of execution GasUsed uint64 `protobuf:"varint,9,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` // Gas Price GasPrice string `protobuf:"bytes,10,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` // Execution Time ExecutionTime uint32 `protobuf:"varint,11,opt,name=execution_time,json=executionTime,proto3" json:"execution_time,omitempty"` // Starting state root OldStateRoot []byte `protobuf:"bytes,12,opt,name=old_state_root,json=oldStateRoot,proto3" json:"old_state_root,omitempty"` // contains filtered or unexported fields }
func (*TransactionContext) Descriptor
deprecated
func (*TransactionContext) Descriptor() ([]byte, []int)
Deprecated: Use TransactionContext.ProtoReflect.Descriptor instead.
func (*TransactionContext) GetBatch ¶
func (x *TransactionContext) GetBatch() []byte
func (*TransactionContext) GetData ¶
func (x *TransactionContext) GetData() []byte
func (*TransactionContext) GetExecutionTime ¶
func (x *TransactionContext) GetExecutionTime() uint32
func (*TransactionContext) GetFrom ¶
func (x *TransactionContext) GetFrom() string
func (*TransactionContext) GetGas ¶
func (x *TransactionContext) GetGas() uint64
func (*TransactionContext) GetGasPrice ¶
func (x *TransactionContext) GetGasPrice() string
func (*TransactionContext) GetGasUsed ¶
func (x *TransactionContext) GetGasUsed() uint64
func (*TransactionContext) GetOldStateRoot ¶
func (x *TransactionContext) GetOldStateRoot() []byte
func (*TransactionContext) GetOutput ¶
func (x *TransactionContext) GetOutput() []byte
func (*TransactionContext) GetTo ¶
func (x *TransactionContext) GetTo() string
func (*TransactionContext) GetType ¶
func (x *TransactionContext) GetType() string
func (*TransactionContext) GetValue ¶
func (x *TransactionContext) GetValue() string
func (*TransactionContext) ProtoMessage ¶
func (*TransactionContext) ProtoMessage()
func (*TransactionContext) ProtoReflect ¶
func (x *TransactionContext) ProtoReflect() protoreflect.Message
func (*TransactionContext) Reset ¶
func (x *TransactionContext) Reset()
func (*TransactionContext) String ¶
func (x *TransactionContext) String() string
type TransactionStep ¶
type TransactionStep struct { StateRoot []byte `protobuf:"bytes,1,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` // Call depth Depth uint32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"` // Program counter Pc uint64 `protobuf:"varint,3,opt,name=pc,proto3" json:"pc,omitempty"` // Remaining gas Gas uint64 `protobuf:"varint,4,opt,name=gas,proto3" json:"gas,omitempty"` // Gas cost of the operation GasCost uint64 `protobuf:"varint,5,opt,name=gas_cost,json=gasCost,proto3" json:"gas_cost,omitempty"` // Gas refunded during the operation GasRefund uint64 `protobuf:"varint,6,opt,name=gas_refund,json=gasRefund,proto3" json:"gas_refund,omitempty"` // Opcode Op uint32 `protobuf:"varint,7,opt,name=op,proto3" json:"op,omitempty"` // Content of the stack Stack []string `protobuf:"bytes,8,rep,name=stack,proto3" json:"stack,omitempty"` // Content of the memory Memory []byte `protobuf:"bytes,9,opt,name=memory,proto3" json:"memory,omitempty"` // Return Data ReturnData []byte `protobuf:"bytes,10,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"` // Contract information Contract *Contract `protobuf:"bytes,11,opt,name=contract,proto3" json:"contract,omitempty"` // Error Error Error `protobuf:"varint,12,opt,name=error,proto3,enum=executor.v1.Error" json:"error,omitempty"` // contains filtered or unexported fields }
func (*TransactionStep) Descriptor
deprecated
func (*TransactionStep) Descriptor() ([]byte, []int)
Deprecated: Use TransactionStep.ProtoReflect.Descriptor instead.
func (*TransactionStep) GetContract ¶
func (x *TransactionStep) GetContract() *Contract
func (*TransactionStep) GetDepth ¶
func (x *TransactionStep) GetDepth() uint32
func (*TransactionStep) GetError ¶
func (x *TransactionStep) GetError() Error
func (*TransactionStep) GetGas ¶
func (x *TransactionStep) GetGas() uint64
func (*TransactionStep) GetGasCost ¶
func (x *TransactionStep) GetGasCost() uint64
func (*TransactionStep) GetGasRefund ¶
func (x *TransactionStep) GetGasRefund() uint64
func (*TransactionStep) GetMemory ¶
func (x *TransactionStep) GetMemory() []byte
func (*TransactionStep) GetOp ¶
func (x *TransactionStep) GetOp() uint32
func (*TransactionStep) GetPc ¶
func (x *TransactionStep) GetPc() uint64
func (*TransactionStep) GetReturnData ¶
func (x *TransactionStep) GetReturnData() []byte
func (*TransactionStep) GetStack ¶
func (x *TransactionStep) GetStack() []string
func (*TransactionStep) GetStateRoot ¶
func (x *TransactionStep) GetStateRoot() []byte
func (*TransactionStep) ProtoMessage ¶
func (*TransactionStep) ProtoMessage()
func (*TransactionStep) ProtoReflect ¶
func (x *TransactionStep) ProtoReflect() protoreflect.Message
func (*TransactionStep) Reset ¶
func (x *TransactionStep) Reset()
func (*TransactionStep) String ¶
func (x *TransactionStep) String() string
type UnimplementedExecutorServiceServer ¶
type UnimplementedExecutorServiceServer struct { }
UnimplementedExecutorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedExecutorServiceServer) ProcessBatch ¶
func (UnimplementedExecutorServiceServer) ProcessBatch(context.Context, *ProcessBatchRequest) (*ProcessBatchResponse, error)
type UnsafeExecutorServiceServer ¶
type UnsafeExecutorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeExecutorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExecutorServiceServer will result in compilation errors.