UNPKG

@tokamak-zk-evm/synthesizer

Version:

Tokamak zk-EVM Synthesizer - Processes Ethereum transactions into wire maps for Tokamak zk-SNARK proof generation

44 lines 2.04 kB
export var ERROR; (function (ERROR) { ERROR["OUT_OF_GAS"] = "out of gas"; ERROR["CODESTORE_OUT_OF_GAS"] = "code store out of gas"; ERROR["CODESIZE_EXCEEDS_MAXIMUM"] = "code size to deposit exceeds maximum code size"; ERROR["STACK_UNDERFLOW"] = "stack underflow"; ERROR["STACK_OVERFLOW"] = "stack overflow"; ERROR["INVALID_JUMP"] = "invalid JUMP"; ERROR["INVALID_OPCODE"] = "invalid opcode"; ERROR["OUT_OF_RANGE"] = "value out of range"; ERROR["REVERT"] = "revert"; ERROR["STATIC_STATE_CHANGE"] = "static state change"; ERROR["INTERNAL_ERROR"] = "internal error"; ERROR["CREATE_COLLISION"] = "create collision"; ERROR["STOP"] = "stop"; ERROR["REFUND_EXHAUSTED"] = "refund exhausted"; ERROR["VALUE_OVERFLOW"] = "value overflow"; ERROR["INSUFFICIENT_BALANCE"] = "insufficient balance"; ERROR["INVALID_BEGINSUB"] = "invalid BEGINSUB"; ERROR["INVALID_RETURNSUB"] = "invalid RETURNSUB"; ERROR["INVALID_JUMPSUB"] = "invalid JUMPSUB"; ERROR["INVALID_BYTECODE_RESULT"] = "invalid bytecode deployed"; ERROR["INITCODE_SIZE_VIOLATION"] = "initcode exceeds max initcode size"; ERROR["INVALID_INPUT_LENGTH"] = "invalid input length"; ERROR["INVALID_EOF_FORMAT"] = "invalid EOF format"; // BLS errors ERROR["BLS_12_381_INVALID_INPUT_LENGTH"] = "invalid input length"; ERROR["BLS_12_381_POINT_NOT_ON_CURVE"] = "point not on curve"; ERROR["BLS_12_381_INPUT_EMPTY"] = "input is empty"; ERROR["BLS_12_381_FP_NOT_IN_FIELD"] = "fp point not in field"; // BN254 errors ERROR["BN254_FP_NOT_IN_FIELD"] = "fp point not in field"; // Point Evaluation Errors ERROR["INVALID_COMMITMENT"] = "kzg commitment does not match versioned hash"; ERROR["INVALID_INPUTS"] = "kzg inputs invalid"; ERROR["INVALID_PROOF"] = "kzg proof invalid"; })(ERROR = ERROR || (ERROR = {})); export class EvmError { constructor(error) { this.error = error; this.errorType = 'EvmError'; } } //# sourceMappingURL=exceptions.js.map