Documentation ¶
Index ¶
- Constants
- func Err(errorCode pb.Error) error
- func ErrorCode(err error) pb.Error
- func IsIntrinsicError(error pb.Error) bool
- func IsOutOfCountersError(error pb.Error) bool
- func NewExecutorClient(ctx context.Context, c Config) (pb.ExecutorServiceClient, *grpc.ClientConn, context.CancelFunc)
- type Config
Constants ¶
View Source
const ( // ERROR_UNSPECIFIED indicates the execution ended successfully ERROR_UNSPECIFIED int32 = iota // ERROR_NO_ERROR indicates the execution ended successfully ERROR_NO_ERROR // ERROR_OUT_OF_GAS indicates there is not enough balance to continue the execution ERROR_OUT_OF_GAS // ERROR_STACK_OVERFLOW indicates a stack overflow has happened ERROR_STACK_OVERFLOW // ERROR_STACK_UNDERFLOW indicates a stack overflow has happened ERROR_STACK_UNDERFLOW // ERROR_MAX_CODE_SIZE_EXCEEDED indicates the code size is beyond the maximum ERROR_MAX_CODE_SIZE_EXCEEDED // ERROR_CONTRACT_ADDRESS_COLLISION there is a collision regarding contract addresses ERROR_CONTRACT_ADDRESS_COLLISION // ERROR_EXECUTION_REVERTED indicates the execution has been reverted ERROR_EXECUTION_REVERTED // ERROR_OUT_OF_COUNTERS_STEP indicates there is not enough step counters to continue the execution ERROR_OUT_OF_COUNTERS_STEP // ERROR_OUT_OF_COUNTERS_KECCAK indicates there is not enough keccak counters to continue the execution ERROR_OUT_OF_COUNTERS_KECCAK // ERROR_OUT_OF_COUNTERS_BINARY indicates there is not enough binary counters to continue the execution ERROR_OUT_OF_COUNTERS_BINARY // ERROR_OUT_OF_COUNTERS_MEM indicates there is not enough memory aligncounters to continue the execution ERROR_OUT_OF_COUNTERS_MEM // ERROR_OUT_OF_COUNTERS_ARITH indicates there is not enough arith counters to continue the execution ERROR_OUT_OF_COUNTERS_ARITH // ERROR_OUT_OF_COUNTERS_PADDING indicates there is not enough padding counters to continue the execution ERROR_OUT_OF_COUNTERS_PADDING // ERROR_OUT_OF_COUNTERS_POSEIDON indicates there is not enough poseidon counters to continue the execution ERROR_OUT_OF_COUNTERS_POSEIDON // ERROR_INVALID_JUMP indicates there is an invalid jump opcode ERROR_INVALID_JUMP // ERROR_INVALID_OPCODE indicates there is an invalid opcode ERROR_INVALID_OPCODE // ERROR_INVALID_STATIC indicates there is an invalid static call ERROR_INVALID_STATIC // ERROR_INVALID_BYTECODE_STARTS_EF indicates there is a bytecode starting with 0xEF ERROR_INVALID_BYTECODE_STARTS_EF // ERROR_INTRINSIC_INVALID_SIGNATURE indicates the transaction is failing at the signature intrinsic check ERROR_INTRINSIC_INVALID_SIGNATURE // ERROR_INTRINSIC_INVALID_CHAIN_ID indicates the transaction is failing at the chain id intrinsic check ERROR_INTRINSIC_INVALID_CHAIN_ID // ERROR_INTRINSIC_INVALID_NONCE indicates the transaction is failing at the nonce intrinsic check ERROR_INTRINSIC_INVALID_NONCE // ERROR_INTRINSIC_INVALID_GAS_LIMIT indicates the transaction is failing at the gas limit intrinsic check ERROR_INTRINSIC_INVALID_GAS_LIMIT // ERROR_INTRINSIC_INVALID_BALANCE indicates the transaction is failing at balance intrinsic check ERROR_INTRINSIC_INVALID_BALANCE // ERROR_INTRINSIC_INVALID_BATCH_GAS_LIMIT indicates the batch is exceeding the batch gas limit ERROR_INTRINSIC_INVALID_BATCH_GAS_LIMIT // ERROR_INTRINSIC_INVALID_SENDER_CODE indicates the batch is exceeding the batch gas limit ERROR_INTRINSIC_INVALID_SENDER_CODE // ERROR_INTRINSIC_TX_GAS_OVERFLOW indicates the transaction gasLimit*gasPrice > MAX_UINT_256 - 1 ERROR_INTRINSIC_TX_GAS_OVERFLOW // ERROR_BATCH_DATA_TOO_BIG indicates the batch_l2_data is too big to be processed ERROR_BATCH_DATA_TOO_BIG )
Variables ¶
This section is empty.
Functions ¶
func IsIntrinsicError ¶
IsIntrinsicError indicates if the error is due to a intrinsic check
func IsOutOfCountersError ¶
IsOutOfCountersError indicates if the error is an OOC
func NewExecutorClient ¶
func NewExecutorClient(ctx context.Context, c Config) (pb.ExecutorServiceClient, *grpc.ClientConn, context.CancelFunc)
NewExecutorClient is the executor client constructor.
Types ¶
Click to show internal directories.
Click to hide internal directories.