Enum evm_gasometer::GasCost [−][src]
pub enum GasCost {
Show 23 variants
Zero,
Base,
VeryLow,
Low,
Invalid,
ExtCodeSize {
target_is_cold: bool,
},
Balance {
target_is_cold: bool,
},
BlockHash,
ExtCodeHash {
target_is_cold: bool,
},
Call {
value: U256,
gas: U256,
target_is_cold: bool,
target_exists: bool,
},
CallCode {
value: U256,
gas: U256,
target_is_cold: bool,
target_exists: bool,
},
DelegateCall {
gas: U256,
target_is_cold: bool,
target_exists: bool,
},
StaticCall {
gas: U256,
target_is_cold: bool,
target_exists: bool,
},
Suicide {
value: U256,
target_is_cold: bool,
target_exists: bool,
already_removed: bool,
},
SStore {
original: H256,
current: H256,
new: H256,
target_is_cold: bool,
},
Sha3 {
len: U256,
},
Log {
n: u8,
len: U256,
},
ExtCodeCopy {
target_is_cold: bool,
len: U256,
},
VeryLowCopy {
len: U256,
},
Exp {
power: U256,
},
Create,
Create2 {
len: U256,
},
SLoad {
target_is_cold: bool,
},
}
Expand description
Gas cost.
Variants
Zero gas cost.
Base gas cost.
Very low gas cost.
Low gas cost.
Fail the gasometer.
Gas cost for EXTCODESIZE
.
Fields of ExtCodeSize
target_is_cold: bool
True if address has not been previously accessed in this transaction
Gas cost for BALANCE
.
Fields of Balance
target_is_cold: bool
True if address has not been previously accessed in this transaction
Gas cost for BLOCKHASH
.
Gas cost for EXTBLOCKHASH
.
Fields of ExtCodeHash
target_is_cold: bool
True if address has not been previously accessed in this transaction
Gas cost for CALL
.
Fields of Call
Gas cost for `CALLCODE.
Fields of CallCode
Gas cost for DELEGATECALL
.
Fields of DelegateCall
Gas cost for STATICCALL
.
Fields of StaticCall
Gas cost for SUICIDE
.
Fields of Suicide
Gas cost for SSTORE
.
Fields of SStore
Gas cost for SHA3
.
Fields of Sha3
len: U256
Length of the data.
Gas cost for LOG
.
Gas cost for EXTCODECOPY
.
Fields of ExtCodeCopy
Gas cost for some copy opcodes that is documented as VERYLOW
.
Fields of VeryLowCopy
len: U256
Length.
Gas cost for EXP
.
Fields of Exp
power: U256
Power of EXP
.
Gas cost for CREATE
.
Gas cost for CREATE2
.
Fields of Create2
len: U256
Length.
Gas cost for SLOAD
.
Fields of SLoad
target_is_cold: bool
True if target has not been previously accessed in this transaction
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GasCost
impl UnwindSafe for GasCost
Blanket Implementations
Mutably borrows from an owned value. Read more