SstoreSetGasuint64=20000// Once per SLOAD operation.
LogDataGasuint64=8// Per byte in a LOG* operation's data.
CallStipenduint64=2300// Free gas given at beginning of call.
EcrecoverGasuint64=3000//
Sha256WordGasuint64=12//
Sha3Gasuint64=30// Once per SHA3 operation.
Sha256Gasuint64=60//
IdentityWordGasuint64=3//
Sha3WordGasuint64=6// Once per word of the SHA3 operation's data.
SstoreResetGasuint64=5000// Once per SSTORE operation if the zeroness changes from zero.
SstoreClearGasuint64=5000// Once per SSTORE operation if the zeroness doesn't change.
SstoreRefundGasuint64=15000// Once per SSTORE operation if the zeroness changes to zero.
JumpdestGasuint64=1// Refunded gas, once per SSTORE operation if the zeroness changes to zero.
IdentityGasuint64=15//
EpochDurationuint64=30000// Duration between proof-of-work epochs.
CallGasuint64=40// Once per CALL operation & message call transaction.
CreateDataGasuint64=200//
Ripemd160Gasuint64=600//
Ripemd160WordGasuint64=120//
CallCreateDepthuint64=1024// Maximum depth of call/create stack.
ExpGasuint64=10// Once per EXP instruction
LogGasuint64=375// Per LOG* operation.
...
...
@@ -60,7 +53,22 @@ const (
MemoryGasuint64=3// Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL.
TxDataNonZeroGasuint64=68// Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions.
MaxCodeSize=24576
MaxCodeSize=24576// Maximum bytecode to permit for a contract
// Precompiled contract gas prices
EcrecoverGasuint64=3000// Elliptic curve sender recovery gas price
Sha256BaseGasuint64=60// Base price for a SHA256 operation
Sha256PerWordGasuint64=12// Per-word price for a SHA256 operation
Ripemd160BaseGasuint64=600// Base price for a RIPEMD160 operation
Ripemd160PerWordGasuint64=120// Per-word price for a RIPEMD160 operation
IdentityBaseGasuint64=15// Base price for a data copy operation
IdentityPerWordGasuint64=3// Per-work price for a data copy operation
ModExpQuadCoeffDivuint64=100// Divisor for the quadratic particle of the big int modular exponentiation
Bn256AddGasuint64=500// Gas needed for an elliptic curve addition
Bn256ScalarMulGasuint64=2000// Gas needed for an elliptic curve scalar multiplication
Bn256PairingBaseGasuint64=100000// Base price for an elliptic curve pairing check
Bn256PairingPerPointGasuint64=80000// Per-point price for an elliptic curve pairing check