mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
53 lines
2.5 KiB
Go
53 lines
2.5 KiB
Go
// (c) 2019-2020, Lux Partners Limited.
|
|
//
|
|
// This file is a derived work, based on the go-ethereum library whose original
|
|
// notices appear below.
|
|
//
|
|
// It is distributed under a license compatible with the licensing terms of the
|
|
// original code from which it is derived.
|
|
//
|
|
// Much love to the original authors for their work.
|
|
// **********
|
|
// Copyright 2014 The go-ethereum Authors
|
|
// This file is part of the go-ethereum library.
|
|
//
|
|
// The go-ethereum library is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// The go-ethereum library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Lesser General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
package vmerrs
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// List evm execution errors
|
|
var (
|
|
ErrOutOfGas = errors.New("out of gas")
|
|
ErrCodeStoreOutOfGas = errors.New("contract creation code storage out of gas")
|
|
ErrDepth = errors.New("max call depth exceeded")
|
|
ErrInsufficientBalance = errors.New("insufficient balance for transfer")
|
|
ErrContractAddressCollision = errors.New("contract address collision")
|
|
ErrExecutionReverted = errors.New("execution reverted")
|
|
ErrMaxInitCodeSizeExceeded = errors.New("max initcode size exceeded")
|
|
ErrMaxCodeSizeExceeded = errors.New("max code size exceeded")
|
|
ErrInvalidJump = errors.New("invalid jump destination")
|
|
ErrWriteProtection = errors.New("write protection")
|
|
ErrReturnDataOutOfBounds = errors.New("return data out of bounds")
|
|
ErrGasUintOverflow = errors.New("gas uint64 overflow")
|
|
ErrInvalidCode = errors.New("invalid code: must not begin with 0xef")
|
|
ErrNonceUintOverflow = errors.New("nonce uint64 overflow")
|
|
ErrAddrProhibited = errors.New("prohibited address cannot be sender or created contract address")
|
|
ErrInvalidCoinbase = errors.New("invalid coinbase")
|
|
ErrSenderAddressNotAllowListed = errors.New("cannot issue transaction from non-allow listed address")
|
|
)
|