From 69c3592fb17505e81e49ef7dfb1dc53e9c2340fe Mon Sep 17 00:00:00 2001 From: Hesham Shabanah Date: Thu, 16 May 2024 10:54:37 +0200 Subject: [PATCH] Update the genesis file for the Spark to new EIPs (#14) --- VERSION.FUSE.txt | 2 +- src/Nethermind/Chains/spark.json | 98 +++++++++++++++++++++++++++----- 2 files changed, 84 insertions(+), 16 deletions(-) diff --git a/VERSION.FUSE.txt b/VERSION.FUSE.txt index 28cbf7c0aae3..f4965a313a28 100644 --- a/VERSION.FUSE.txt +++ b/VERSION.FUSE.txt @@ -1 +1 @@ -5.0.0 \ No newline at end of file +6.0.0 \ No newline at end of file diff --git a/src/Nethermind/Chains/spark.json b/src/Nethermind/Chains/spark.json index 0c620b8d7e36..ac560aef12d6 100644 --- a/src/Nethermind/Chains/spark.json +++ b/src/Nethermind/Chains/spark.json @@ -82,6 +82,18 @@ "eip1559BaseFeeMaxChangeDenominator": "0x8", "eip1559ElasticityMultiplier": "0x2", "eip1559BaseFeeInitialValue": "0x3b9aca00", + "eip1559BaseFeeMinValue": "0x2540be400", + "eip1559BaseFeeMinValueTransition": "0xF4B906", + "eip2565Transition": "0xF4B906", + "eip3198Transition": "0xF4B906", + "eip3529Transition": "0xF4B906", + "eip3541Transition": "0xF4B906", + "eip3651TransitionTimestamp": "0x6645FFCC", + "eip3855TransitionTimestamp": "0x6645FFCC", + "eip3860TransitionTimestamp": "0x6645FFCC", + "eip1153TransitionTimestamp": "0x6645FFCC", + "eip5656TransitionTimestamp": "0x6645FFCC", + "eip6780TransitionTimestamp": "0x6645FFCC", "maxCodeSize": 24576, "maxCodeSizeTransition": "0x0" }, @@ -151,10 +163,19 @@ "0x0000000000000000000000000000000000000005": { "builtin": { "name": "modexp", - "activate_at": 0, "pricing": { - "modexp": { - "divisor": 20 + "0": { + "price": { + "modexp": { + "divisor": 20 + } + } + }, + "0xF4B906": { + "info": "EIP-2565: ModExp Gas Cost.", + "price": { + "modexp2565": {} + } } } } @@ -162,11 +183,21 @@ "0x0000000000000000000000000000000000000006": { "builtin": { "name": "alt_bn128_add", - "activate_at": 0, "pricing": { - "linear": { - "base": 500, - "word": 0 + "0": { + "price": { + "alt_bn128_const_operations": { + "price": 500 + } + } + }, + "0xF4B906": { + "info": "EIP-1108 Istanbul HF", + "price": { + "alt_bn128_const_operations": { + "price": 150 + } + } } } } @@ -174,11 +205,21 @@ "0x0000000000000000000000000000000000000007": { "builtin": { "name": "alt_bn128_mul", - "activate_at": 0, "pricing": { - "linear": { - "base": 40000, - "word": 0 + "0": { + "price": { + "alt_bn128_const_operations": { + "price": 4000 + } + } + }, + "0xF4B906": { + "info": "EIP-1108 Istanbul HF", + "price": { + "alt_bn128_const_operations": { + "price": 6000 + } + } } } } @@ -186,11 +227,38 @@ "0x0000000000000000000000000000000000000008": { "builtin": { "name": "alt_bn128_pairing", - "activate_at": 0, "pricing": { - "alt_bn128_pairing": { - "base": 100000, - "pair": 80000 + "0": { + "price": { + "alt_bn128_pairing": { + "base": 100000, + "pair": 80000 + } + } + }, + "0xF4B906": { + "info": "EIP-1108 Istanbul HF", + "price": { + "alt_bn128_pairing": { + "base": 45000, + "pair": 34000 + } + } + } + } + } + }, + "0x0000000000000000000000000000000000000009": { + "builtin": { + "name": "blake2_f", + "pricing": { + "0xF4B906": { + "info": "EIP-152 Istanbul HF", + "price": { + "blake2_f": { + "gas_per_round": 1 + } + } } } }