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_NOT_ENOUGH_FUNDS indicates there is not enough funds to continue the execution ERROR_NOT_ENOUGH_FUNDS // ERROR_INSUFFICIENT_BALANCE indicates there is not enough balance to continue the execution ERROR_INSUFFICIENT_BALANCE // ERROR_CODE_NOT_FOUND indicates the code was not found ERROR_CODE_NOT_FOUND // 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_DEPTH indicates the maximum call depth has been passed ERROR_DEPTH // ERROR_EXECUTION_REVERTED indicates the execution has been reverted ERROR_EXECUTION_REVERTED // ERROR_CODE_STORE_OUT_OF_GAS indicates there is not enough gas for the storage ERROR_CODE_STORE_OUT_OF_GAS // 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_TX indicates the transaction is invalid because of invalid jump dest, invalid opcode, invalid deploy // or invalid static tx ERROR_INVALID_TX // 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_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.