From 3e7267d9c0684a655c8524f2d9ef177ef1ef01ed Mon Sep 17 00:00:00 2001 From: thinkAfCod Date: Sat, 27 Jul 2024 18:16:38 +0800 Subject: [PATCH] add op genesis config json file --- .../src/main/resources/optimism-mainnet.json | 53 +++++++++++++++++++ .../src/main/resources/optimism-sepolia.json | 14 ++++- 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 config/src/main/resources/optimism-mainnet.json diff --git a/config/src/main/resources/optimism-mainnet.json b/config/src/main/resources/optimism-mainnet.json new file mode 100644 index 00000000000..f96a7ba9b7a --- /dev/null +++ b/config/src/main/resources/optimism-mainnet.json @@ -0,0 +1,53 @@ +{ + "config": { + "chainId": 10, + "homesteadBlock": 0, + "eip150Block": 0, + "eip155Block": 0, + "eip158Block": 0, + "byzantiumBlock": 0, + "constantinopleBlock": 0, + "petersburgBlock": 0, + "istanbulBlock": 0, + "muirGlacierBlock": 0, + "berlinBlock": 3950000, + "londonBlock": 105235063, + "arrowGlacierBlock": 105235063, + "grayGlacierBlock": 105235063, + "mergeNetsplitBlock": 105235063, + "shanghaiTime": 1704992401, + "cancunTime": 1710374401, + "bedrockBlock": 105235063, + "regolithTime": 0, + "canyonTime": 1704992401, + "ecotoneTime": 1710374401, + "fjordTime": 1720627201, + "terminalTotalDifficulty": 0, + "terminalTotalDifficultyPassed": true, + "optimism": { + "eip1559Elasticity": 6, + "eip1559Denominator": 50, + "eip1559DenominatorCanyon": 250 + }, + "discovery": { + "bootnodes": [ + "enode://d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666@18.138.108.67:30303", + "enode://22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de@3.209.45.79:30303", + "enode://2b252ab6a1d0f971d9722cb839a42cb81db019ba44c08754628ab4a823487071b5695317c8ccd085219c3a03af063495b2f1da8d18218da2d6a82981b45e6ffc@65.108.70.101:30303", + "enode://4aeb4ab6c14b23e2c4cfdce879c04b0748a20d8e9b59e25ded2a08143e265c6c25936e74cbc8e641e3312ca288673d91f2f93f8e277de3cfa444ecdaaf982052@157.90.35.166:30303" + ] + } + }, + "nonce": "0x0", + "timestamp": "0x0", + "extraData": "0x000000000000000000000000000000000000000000000000000000000000000000000398232e2064f896018496b4b44b3d62751f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "gasLimit": "0xe4e1c0", + "difficulty": "0x1", + "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "coinbase": "0x0000000000000000000000000000000000000000", + "alloc": {}, + "number": "0x0", + "gasUsed": "0x0", + "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "stateHash": "0xeddb4c1786789419153a27c4c80ff44a2226b6eda04f7e22ce5bae892ea568eb" +} diff --git a/config/src/main/resources/optimism-sepolia.json b/config/src/main/resources/optimism-sepolia.json index 1ae25603933..323e42ef9a0 100644 --- a/config/src/main/resources/optimism-sepolia.json +++ b/config/src/main/resources/optimism-sepolia.json @@ -17,11 +17,23 @@ "mergeNetsplitBlock": 0, "bedrockBlock": 0, "regolithTime": 0, + "canyontime": 1699981200, + "ecotonetime": 1708534800, + "fjordtime": 1716998400, "terminalTotalDifficulty": 0, "terminalTotalDifficultyPassed": true, "optimism": { "eip1559Elasticity": 6, - "eip1559Denominator": 50 + "eip1559Denominator": 50, + "eip1559DenominatorCanyon": 250, + }, + "discovery": { + "bootnodes": [ + "enode://d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666@18.138.108.67:30303", + "enode://22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de@3.209.45.79:30303", + "enode://2b252ab6a1d0f971d9722cb839a42cb81db019ba44c08754628ab4a823487071b5695317c8ccd085219c3a03af063495b2f1da8d18218da2d6a82981b45e6ffc@65.108.70.101:30303", + "enode://4aeb4ab6c14b23e2c4cfdce879c04b0748a20d8e9b59e25ded2a08143e265c6c25936e74cbc8e641e3312ca288673d91f2f93f8e277de3cfa444ecdaaf982052@157.90.35.166:30303" + ] } }, "nonce": "0x0",