Skip to content

Commit 9e812cc

Browse files
committed
fix: merge fixes
1 parent cc19f93 commit 9e812cc

27 files changed

Lines changed: 55 additions & 57 deletions

File tree

packages/testing/src/execution_testing/forks/forks/eips/amsterdam/eip_7928.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def gas_costs(cls) -> GasCosts:
3636
"""
3737
return replace(
3838
super(EIP7928, cls).gas_costs(),
39-
GAS_BLOCK_ACCESS_LIST_ITEM=2000,
39+
BLOCK_ACCESS_LIST_ITEM=2000,
4040
)
4141

4242
@classmethod

packages/testing/src/execution_testing/forks/forks/eips/berlin/eip_2930.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ def fn(
5555
)
5656
if access_list is not None:
5757
for access in access_list:
58-
intrinsic_cost += gas_costs.GAS_TX_ACCESS_LIST_ADDRESS
58+
intrinsic_cost += gas_costs.TX_ACCESS_LIST_ADDRESS
5959
for _ in access.storage_keys:
60-
intrinsic_cost += (
61-
gas_costs.GAS_TX_ACCESS_LIST_STORAGE_KEY
62-
)
60+
intrinsic_cost += gas_costs.TX_ACCESS_LIST_STORAGE_KEY
6361
return intrinsic_cost
6462

6563
return fn

packages/testing/src/execution_testing/forks/forks/eips/byzantium/eip_196.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ def gas_costs(cls) -> GasCosts:
3030
"""Set gas costs for BN254 addition and multiplication."""
3131
return replace(
3232
super(EIP196, cls).gas_costs(),
33-
GAS_PRECOMPILE_ECADD=500,
34-
GAS_PRECOMPILE_ECMUL=40_000,
33+
PRECOMPILE_ECADD=500,
34+
PRECOMPILE_ECMUL=40_000,
3535
)

packages/testing/src/execution_testing/forks/forks/eips/byzantium/eip_197.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ def gas_costs(cls) -> GasCosts:
2929
"""Set gas costs for BN254 pairing check."""
3030
return replace(
3131
super(EIP197, cls).gas_costs(),
32-
GAS_PRECOMPILE_ECPAIRING_BASE=100_000,
33-
GAS_PRECOMPILE_ECPAIRING_PER_POINT=80_000,
32+
PRECOMPILE_ECPAIRING_BASE=100_000,
33+
PRECOMPILE_ECPAIRING_PER_POINT=80_000,
3434
)

packages/testing/src/execution_testing/forks/forks/eips/byzantium/eip_211.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def opcode_gas_map(
2424
base_map = super(EIP211, cls).opcode_gas_map()
2525
return {
2626
**base_map,
27-
Opcodes.RETURNDATASIZE: gas_costs.GAS_BASE,
27+
Opcodes.RETURNDATASIZE: gas_costs.BASE,
2828
Opcodes.RETURNDATACOPY: cls._with_memory_expansion(
29-
cls._with_data_copy(gas_costs.GAS_VERY_LOW, gas_costs),
29+
cls._with_data_copy(gas_costs.VERY_LOW, gas_costs),
3030
memory_expansion_calculator,
3131
),
3232
}

packages/testing/src/execution_testing/forks/forks/eips/cancun/eip_1153.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def opcode_gas_map(
2626
base_map = super(EIP1153, cls).opcode_gas_map()
2727
return {
2828
**base_map,
29-
Opcodes.TLOAD: gas_costs.GAS_WARM_SLOAD,
30-
Opcodes.TSTORE: gas_costs.GAS_WARM_SLOAD,
29+
Opcodes.TLOAD: gas_costs.WARM_SLOAD,
30+
Opcodes.TSTORE: gas_costs.WARM_SLOAD,
3131
}
3232

3333
@classmethod

packages/testing/src/execution_testing/forks/forks/eips/cancun/eip_4844.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def gas_costs(cls) -> GasCosts:
189189
"""On Cancun, the point evaluation precompile gas cost is set."""
190190
return replace(
191191
super(EIP4844, cls).gas_costs(),
192-
GAS_PRECOMPILE_POINT_EVALUATION=50_000,
192+
PRECOMPILE_POINT_EVALUATION=50_000,
193193
)
194194

195195
@classmethod
@@ -208,7 +208,7 @@ def opcode_gas_map(
208208
base_map = super(EIP4844, cls).opcode_gas_map()
209209

210210
# Add Cancun-specific opcodes
211-
return {**base_map, Opcodes.BLOBHASH: gas_costs.GAS_VERY_LOW}
211+
return {**base_map, Opcodes.BLOBHASH: gas_costs.VERY_LOW}
212212

213213
@classmethod
214214
def valid_opcodes(cls) -> List[Opcodes]:

packages/testing/src/execution_testing/forks/forks/eips/cancun/eip_5656.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def opcode_gas_map(
2727
return {
2828
**base_map,
2929
Opcodes.MCOPY: cls._with_memory_expansion(
30-
cls._with_data_copy(gas_costs.GAS_VERY_LOW, gas_costs),
30+
cls._with_data_copy(gas_costs.VERY_LOW, gas_costs),
3131
memory_expansion_calculator,
3232
),
3333
}

packages/testing/src/execution_testing/forks/forks/eips/cancun/eip_7516.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def opcode_gas_map(
2929
# Add Cancun-specific opcodes
3030
return {
3131
**base_map,
32-
Opcodes.BLOBBASEFEE: gas_costs.GAS_BASE,
32+
Opcodes.BLOBBASEFEE: gas_costs.BASE,
3333
}
3434

3535
@classmethod

packages/testing/src/execution_testing/forks/forks/eips/constantinople/eip_1014.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def _calculate_create2_gas(
2626

2727
init_code_size = metadata["init_code_size"]
2828
init_code_words = (init_code_size + 31) // 32
29-
hash_gas = gas_costs.GAS_KECCAK256_PER_WORD * init_code_words
29+
hash_gas = gas_costs.OPCODE_KECCACK256_PER_WORD * init_code_words
3030

31-
return gas_costs.GAS_CREATE + hash_gas
31+
return gas_costs.OPCODE_CREATE_BASE + hash_gas
3232

3333
@classmethod
3434
def create_opcodes(cls) -> List[Opcodes]:

0 commit comments

Comments
 (0)