2021-03-31 10:14:02 +00:00
|
|
|
# Nimbus
|
|
|
|
# Copyright (c) 2018 Status Research & Development GmbH
|
|
|
|
# Licensed under either of
|
|
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
|
|
# http://opensource.org/licenses/MIT)
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except
|
|
|
|
# according to those terms.
|
|
|
|
|
2021-04-08 14:52:10 +00:00
|
|
|
when defined(evmc_enabled) or not defined(vm2_enabled):
|
|
|
|
import
|
|
|
|
./vm/interpreter/gas_costs as vmg
|
|
|
|
else:
|
|
|
|
import
|
|
|
|
./vm2/interpreter/gas_costs as vmg
|
2021-03-31 10:14:02 +00:00
|
|
|
|
|
|
|
export
|
|
|
|
vmg.Bls12381G1AddGas,
|
|
|
|
vmg.Bls12381G1MulGas,
|
|
|
|
vmg.Bls12381G2AddGas,
|
|
|
|
vmg.Bls12381G2MulGas,
|
|
|
|
vmg.Bls12381MapG1Gas,
|
|
|
|
vmg.Bls12381MapG2Gas,
|
|
|
|
vmg.Bls12381PairingBaseGas,
|
|
|
|
vmg.Bls12381PairingPerPairGas,
|
|
|
|
vmg.ColdAccountAccessCost,
|
|
|
|
vmg.ColdSloadCost,
|
|
|
|
vmg.GasCostKind,
|
|
|
|
vmg.GasCosts,
|
|
|
|
vmg.GasECAdd,
|
|
|
|
vmg.GasECAddIstanbul,
|
|
|
|
vmg.GasECMul,
|
|
|
|
vmg.GasECMulIstanbul,
|
|
|
|
vmg.GasECPairingBase,
|
|
|
|
vmg.GasECPairingBaseIstanbul,
|
|
|
|
vmg.GasECPairingPerPoint,
|
|
|
|
vmg.GasECPairingPerPointIstanbul,
|
|
|
|
vmg.GasECRecover,
|
|
|
|
vmg.GasFeeKind,
|
|
|
|
vmg.GasIdentity,
|
|
|
|
vmg.GasIdentityWord,
|
|
|
|
vmg.GasParams,
|
|
|
|
vmg.GasQuadDivisorEIP2565,
|
|
|
|
vmg.GasRIPEMD160,
|
|
|
|
vmg.GasRIPEMD160Word,
|
|
|
|
vmg.GasSHA256,
|
|
|
|
vmg.GasSHA256Word,
|
|
|
|
vmg.WarmStorageReadCost,
|
|
|
|
vmg.forkToSchedule,
|
|
|
|
vmg.gasFees
|
|
|
|
|
|
|
|
# End
|