Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: op-deployer sepolia test for just add-chain #648

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions chainList.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,23 @@
"chain": "sepolia"
}
},
{
"name": "op-deployer-sepolia-test",
"identifier": "sepolia/opdeployer",
"chainId": 12345,
"rpc": [
"http://awe.some.rpc"
],
"explorers": [
"https://awesomescan.org"
],
"superchainLevel": 0,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
"chain": "sepolia"
}
},
{
"name": "RACE Testnet",
"identifier": "sepolia/race",
Expand Down
12 changes: 12 additions & 0 deletions chainList.toml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,18 @@
type = "L2"
chain = "sepolia"

[[chains]]
name = "op-deployer-sepolia-test"
identifier = "sepolia/opdeployer"
chain_id = 12345
rpc = ["http://awe.some.rpc"]
explorers = ["https://awesomescan.org"]
superchain_level = 0
data_availability_type = "eth-da"
[chains.parent]
type = "L2"
chain = "sepolia"

[[chains]]
name = "RACE Testnet"
identifier = "sepolia/race"
Expand Down
69 changes: 69 additions & 0 deletions superchain/configs/configs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,75 @@
"UnsafeBlockSigner": "0xbB4f4B3a46361653BE9DB255D8ff2D004F0FB248"
}
},
{
"Name": "op-deployer-sepolia-test",
"l2_chain_id": 12345,
"PublicRPC": "http://awe.some.rpc",
"SequencerRPC": "http://awe.some.seq.rpc",
"Explorer": "https://awesomescan.org",
"SuperchainLevel": 0,
"StandardChainCandidate": true,
"SuperchainTime": null,
"batch_inbox_address": "0x00E546b0a52c2879744f6dEf0fb483D581dC6D20",
"Superchain": "sepolia",
"Chain": "opdeployer",
"canyon_time": 0,
"delta_time": 0,
"ecotone_time": 0,
"fjord_time": 0,
"granite_time": 0,
"block_time": 1,
"seq_window_size": 3600,
"max_sequencer_drift": 600,
"DataAvailabilityType": "eth-da",
"optimism": {
"eip1559Elasticity": 6,
"eip1559Denominator": 50,
"eip1559DenominatorCanyon": 250
},
"GasPayingToken": null,
"genesis": {
"l1": {
"hash": "0x5b20e778bba69fe28afa671de8bfb6d26aa2ca3ded8ea41b324a37008aa16e45",
"number": 6926325
},
"l2": {
"hash": "0x547450975472310dcebaa4e702d1eda1051ecb41bfb8013332a991c8b4f373a2",
"number": 0
},
"l2_time": 1729649400,
"system_config": {
"batcherAddr": "0x058158b9D7db00fdA60aA71df0bEA7596F4db5C6",
"overhead": "0x0000000000000000000000000000000000000000000000000000000000000000",
"scalar": "0x010000000000000000000000000000000000000000000000000c5fc500000558",
"gasLimit": 60000000
}
},
"Addresses": {
"AddressManager": "0x2Ee926FBCC6a5640cd449959109fDb24a0033ef7",
"AnchorStateRegistryProxy": "0x9D90032367F707D2Eb5Fc50AB56d0aCDcE1044E9",
"BatchSubmitter": "0x058158b9D7db00fdA60aA71df0bEA7596F4db5C6",
"Challenger": "0x84536c558Ce86d0F1937bA621304b6964933f05f",
"DelayedWETHProxy": "0x738bd793C0f4D3fE156397a655D77c21b92cDD2f",
"DisputeGameFactoryProxy": "0x024DcA8b680a7F0DdE06F8551832b5b5B93D6876",
"Guardian": "0x7a50f00e8D05b95F98fE38d8BeE366a7324dCf7E",
"L1CrossDomainMessengerProxy": "0xa331d31b1E5df5D9C363429Cf4667022A8b11896",
"L1ERC721BridgeProxy": "0x7cC15700968350a0EA6F65662E7A8363215DF2Ca",
"L1StandardBridgeProxy": "0x0202c473f5866Ca064857FE4A8BF366d0B970160",
"MIPS": "0x47B0E34C1054009e696BaBAAd56165e1e994144d",
"OptimismMintableERC20FactoryProxy": "0x5E89332674127Cb6B61fA3CADC45C5073c417B1d",
"OptimismPortalProxy": "0x5B5f60fE5Ab35978D906Dd258b9F86FD337b8C79",
"PermissionedDisputeGame": "0xC1528bB0a6582F0Eb51649C246E06EeCdF50627A",
"PreimageOracle": "0x92240135b46fc1142dA181f550aE8f595B858854",
"Proposer": "0x658c42BBd4802CBE4E8b509e94ff521c5C05d137",
"ProxyAdmin": "0xeb221F4e8CAe1524101751b17256b41BCd0c0e03",
"ProxyAdminOwner": "0x22C454399ece66F5412ED16AD14fE583814449D8",
"SuperchainConfig": "0xC2Be75506d5724086DEB7245bd260Cc9753911Be",
"SystemConfigOwner": "0x87204a6141B79F214000c826A8911e69E84a217f",
"SystemConfigProxy": "0x90ee9048203FCFeC3b06004aA505CC44deF00eb2",
"UnsafeBlockSigner": "0x5bcdd0F7f4729F139055A996DEFD27a47fAC9E72"
}
},
{
"Name": "Base Sepolia Testnet",
"l2_chain_id": 84532,
Expand Down
60 changes: 60 additions & 0 deletions superchain/configs/sepolia/opdeployer.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name = "op-deployer-sepolia-test"
chain_id = 12345
public_rpc = "http://awe.some.rpc"
sequencer_rpc = "http://awe.some.seq.rpc"
explorer = "https://awesomescan.org"
superchain_level = 0
standard_chain_candidate = true # This is a temporary field which causes most of the standard validation checks to run on this chain
batch_inbox_addr = "0x00E546b0a52c2879744f6dEf0fb483D581dC6D20"
canyon_time = 0 # Thu 1 Jan 1970 00:00:00 UTC
delta_time = 0 # Thu 1 Jan 1970 00:00:00 UTC
ecotone_time = 0 # Thu 1 Jan 1970 00:00:00 UTC
fjord_time = 0 # Thu 1 Jan 1970 00:00:00 UTC
granite_time = 0 # Thu 1 Jan 1970 00:00:00 UTC
block_time = 1
seq_window_size = 3600
max_sequencer_drift = 600
data_availability_type = "eth-da"

[optimism]
eip1559_elasticity = 6
eip1559_denominator = 50
eip1559_denominator_canyon = 250

[genesis]
l2_time = 1729649400
[genesis.l1]
hash = "0x5b20e778bba69fe28afa671de8bfb6d26aa2ca3ded8ea41b324a37008aa16e45"
number = 6926325
[genesis.l2]
hash = "0x547450975472310dcebaa4e702d1eda1051ecb41bfb8013332a991c8b4f373a2"
number = 0
[genesis.system_config]
batcherAddress = "0x058158b9D7db00fdA60aA71df0bEA7596F4db5C6"
overhead = "0x0000000000000000000000000000000000000000000000000000000000000000"
scalar = "0x010000000000000000000000000000000000000000000000000c5fc500000558"
gasLimit = 60000000

[addresses]
SystemConfigOwner = "0x87204a6141B79F214000c826A8911e69E84a217f"
ProxyAdminOwner = "0x22C454399ece66F5412ED16AD14fE583814449D8"
Guardian = "0x7a50f00e8D05b95F98fE38d8BeE366a7324dCf7E"
Challenger = "0x84536c558Ce86d0F1937bA621304b6964933f05f"
Proposer = "0x658c42BBd4802CBE4E8b509e94ff521c5C05d137"
UnsafeBlockSigner = "0x5bcdd0F7f4729F139055A996DEFD27a47fAC9E72"
BatchSubmitter = "0x058158b9D7db00fdA60aA71df0bEA7596F4db5C6"
AddressManager = "0x2Ee926FBCC6a5640cd449959109fDb24a0033ef7"
L1CrossDomainMessengerProxy = "0xa331d31b1E5df5D9C363429Cf4667022A8b11896"
L1ERC721BridgeProxy = "0x7cC15700968350a0EA6F65662E7A8363215DF2Ca"
L1StandardBridgeProxy = "0x0202c473f5866Ca064857FE4A8BF366d0B970160"
OptimismMintableERC20FactoryProxy = "0x5E89332674127Cb6B61fA3CADC45C5073c417B1d"
OptimismPortalProxy = "0x5B5f60fE5Ab35978D906Dd258b9F86FD337b8C79"
SystemConfigProxy = "0x90ee9048203FCFeC3b06004aA505CC44deF00eb2"
ProxyAdmin = "0xeb221F4e8CAe1524101751b17256b41BCd0c0e03"
SuperchainConfig = "0xC2Be75506d5724086DEB7245bd260Cc9753911Be"
AnchorStateRegistryProxy = "0x9D90032367F707D2Eb5Fc50AB56d0aCDcE1044E9"
DelayedWETHProxy = "0x738bd793C0f4D3fE156397a655D77c21b92cDD2f"
DisputeGameFactoryProxy = "0x024DcA8b680a7F0DdE06F8551832b5b5B93D6876"
MIPS = "0x47B0E34C1054009e696BaBAAd56165e1e994144d"
PermissionedDisputeGame = "0xC1528bB0a6582F0Eb51649C246E06EeCdF50627A"
PreimageOracle = "0x92240135b46fc1142dA181f550aE8f595B858854"
24 changes: 24 additions & 0 deletions superchain/extra/addresses/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,30 @@
"SystemConfigProxy": "0x7F67DC4959cb3E532B10A99F41bDD906C46FdFdE",
"UnsafeBlockSigner": "0xfd7bc3C58Fe4D4296F11F7843ebbA84D729A24B9"
},
"12345": {
"AddressManager": "0x2Ee926FBCC6a5640cd449959109fDb24a0033ef7",
"AnchorStateRegistryProxy": "0x9D90032367F707D2Eb5Fc50AB56d0aCDcE1044E9",
"BatchSubmitter": "0x058158b9D7db00fdA60aA71df0bEA7596F4db5C6",
"Challenger": "0x84536c558Ce86d0F1937bA621304b6964933f05f",
"DelayedWETHProxy": "0x738bd793C0f4D3fE156397a655D77c21b92cDD2f",
"DisputeGameFactoryProxy": "0x024DcA8b680a7F0DdE06F8551832b5b5B93D6876",
"Guardian": "0x7a50f00e8D05b95F98fE38d8BeE366a7324dCf7E",
"L1CrossDomainMessengerProxy": "0xa331d31b1E5df5D9C363429Cf4667022A8b11896",
"L1ERC721BridgeProxy": "0x7cC15700968350a0EA6F65662E7A8363215DF2Ca",
"L1StandardBridgeProxy": "0x0202c473f5866Ca064857FE4A8BF366d0B970160",
"MIPS": "0x47B0E34C1054009e696BaBAAd56165e1e994144d",
"OptimismMintableERC20FactoryProxy": "0x5E89332674127Cb6B61fA3CADC45C5073c417B1d",
"OptimismPortalProxy": "0x5B5f60fE5Ab35978D906Dd258b9F86FD337b8C79",
"PermissionedDisputeGame": "0xC1528bB0a6582F0Eb51649C246E06EeCdF50627A",
"PreimageOracle": "0x92240135b46fc1142dA181f550aE8f595B858854",
"Proposer": "0x658c42BBd4802CBE4E8b509e94ff521c5C05d137",
"ProxyAdmin": "0xeb221F4e8CAe1524101751b17256b41BCd0c0e03",
"ProxyAdminOwner": "0x22C454399ece66F5412ED16AD14fE583814449D8",
"SuperchainConfig": "0xC2Be75506d5724086DEB7245bd260Cc9753911Be",
"SystemConfigOwner": "0x87204a6141B79F214000c826A8911e69E84a217f",
"SystemConfigProxy": "0x90ee9048203FCFeC3b06004aA505CC44deF00eb2",
"UnsafeBlockSigner": "0x5bcdd0F7f4729F139055A996DEFD27a47fAC9E72"
},
"1301": {
"AddressManager": "0xEf1295ED471DFEC101691b946fb6B4654E88f98A",
"AnchorStateRegistryProxy": "0xf971F1b0D80eb769577135b490b913825BfcF00B",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions validation/exclusions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,36 @@ var exclusions = map[string]map[uint64]bool{
ChainIDRPCTest: {
11155421: true, // sepolia-dev-0/oplabs-devnet-0 No Public RPC declared
11763072: true, // sepolia-dev-0/base-devnet-0 No Public RPC declared
12345: true, // sepolia/opdeployer
},
GenesisRPCTest: {
11155421: true, // sepolia-dev-0/oplabs-devnet-0 No Public RPC declared
11763072: true, // sepolia-dev-0/base-devnet-0 No Public RPC declared
12345: true, // sepolia/opdeployer
},
UniquenessTest: {
11155421: true, // sepolia-dev-0/oplabs-devnet-0 Not in https://github.com/ethereum-lists/chains
11763072: true, // sepolia-dev-0/base-devnet-0 Not in https://github.com/ethereum-lists/chains
12345: true, // sepolia/opdeployer
},

// Standard Checks
OptimismPortal2ParamsTest: {
11763072: true, // sepolia-dev0/base-devnet-0
},

GasTokenTest: {
12345: true, // sepolia/opdeployer
},
L2SecurityConfigTest: {
12345: true, // sepolia/opdeployer
},
DataAvailabilityTypeTest: {
12345: true, // sepolia/opdeployer
},
GPOParamsTest: {
12345: true, // sepolia/opdeployer
},
}

var silences = map[string]map[uint64]time.Time{
Expand Down
1 change: 0 additions & 1 deletion validation/genesis/genesis-allocs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ func testGenesisAllocs(t *testing.T, chain *ChainConfig) {
allocs := types.GenesisAlloc{}
err = json.Unmarshal(expectedData, &allocs)
removeEmptyStorageSlots(allocs, t)

require.NoError(t, err)
expectedData, err = json.MarshalIndent(allocs, "", " ")
require.NoError(t, err)
Expand Down
102 changes: 102 additions & 0 deletions validation/genesis/validation-inputs/12345/deploy-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"fundDevAccounts": false,
"l2GenesisBlockNonce": "0x0",
"l2GenesisBlockGasLimit": "0x3938700",
"l2GenesisBlockDifficulty": null,
"l2GenesisBlockMixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"l2GenesisBlockNumber": "0x0",
"l2GenesisBlockGasUsed": "0x0",
"l2GenesisBlockParentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"l2GenesisBlockBaseFeePerGas": "0x3b9aca00",
"proxyAdminOwner": "0xfbeef5bfeab27798b8b2c7d32d63d45c35e61654",
"finalSystemOwner": "0x22c454399ece66f5412ed16ad14fe583814449d8",
"baseFeeVaultRecipient": "0xaeb324cbe8449c6dbcc1980b2e46feb124457d1f",
"l1FeeVaultRecipient": "0x15f58dc6f60eeaa36b24636b2b4cadbf1eb14472",
"sequencerFeeVaultRecipient": "0x4e1f4dc0ce6bf79504a04609691aab7215a3b9de",
"baseFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
"l1FeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
"sequencerFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
"baseFeeVaultWithdrawalNetwork": 1,
"l1FeeVaultWithdrawalNetwork": 1,
"sequencerFeeVaultWithdrawalNetwork": 1,
"enableGovernance": true,
"governanceTokenSymbol": "OP",
"governanceTokenName": "Optimism",
"governanceTokenOwner": "0xdeaddeaddeaddeaddeaddeaddeaddeaddeaddead",
"gasPriceOracleOverhead": 0,
"gasPriceOracleScalar": 0,
"gasPriceOracleBaseFeeScalar": 1368,
"gasPriceOracleBlobBaseFeeScalar": 810949,
"useCustomGasToken": false,
"customGasTokenAddress": "0x0000000000000000000000000000000000000000",
"p2pSequencerAddress": "0x5bcdd0f7f4729f139055a996defd27a47fac9e72",
"batchSenderAddress": "0x058158b9d7db00fda60aa71df0bea7596f4db5c6",
"eip1559Elasticity": 6,
"eip1559Denominator": 50,
"eip1559DenominatorCanyon": 250,
"l2GenesisRegolithTimeOffset": "0x0",
"l2GenesisCanyonTimeOffset": "0x0",
"l2GenesisDeltaTimeOffset": "0x0",
"l2GenesisEcotoneTimeOffset": "0x0",
"l2GenesisFjordTimeOffset": "0x0",
"l2GenesisGraniteTimeOffset": "0x0",
"l1ChainID": 11155111,
"l2ChainID": 12345,
"l2BlockTime": 1,
"finalizationPeriodSeconds": 12,
"maxSequencerDrift": 600,
"sequencerWindowSize": 3600,
"channelTimeout": 300,
"batchInboxAddress": "0x00e546b0a52c2879744f6def0fb483d581dc6d20",
"systemConfigStartBlock": 0,
"useAltDA": false,
"daCommitmentType": "",
"daChallengeWindow": 0,
"daResolveWindow": 0,
"daBondSize": 0,
"daResolverRefundPercentage": 0,
"l1BlockTime": 12,
"l1GenesisBlockTimestamp": "0x0",
"l1GenesisBlockNonce": "0x0",
"l1GenesisBlockGasLimit": "0x0",
"l1GenesisBlockDifficulty": null,
"l1GenesisBlockMixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"l1GenesisBlockCoinbase": "0x0000000000000000000000000000000000000000",
"l1GenesisBlockNumber": "0x0",
"l1GenesisBlockGasUsed": "0x0",
"l1GenesisBlockParentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"l1GenesisBlockBaseFeePerGas": null,
"l1StartingBlockTag": "0x5b20e778bba69fe28afa671de8bfb6d26aa2ca3ded8ea41b324a37008aa16e45",
"requiredProtocolVersion": "0x0000000000000000000000000000000000000000000000000000000000000000",
"recommendedProtocolVersion": "0x0000000000000000000000000000000000000000000000000000000000000000",
"superchainConfigGuardian": "0x0000000000000000000000000000000000000001",
"l2OutputOracleSubmissionInterval": 1,
"l2OutputOracleStartingTimestamp": 1,
"l2OutputOracleStartingBlockNumber": 0,
"l2OutputOracleProposer": "0x0000000000000000000000000000000000000001",
"l2OutputOracleChallenger": "0x0000000000000000000000000000000000000001",
"useFaultProofs": true,
"faultGameAbsolutePrestate": "0x0000000000000000000000000000000000000000000000000000000000000000",
"faultGameMaxDepth": 0,
"faultGameClockExtension": 0,
"faultGameMaxClockDuration": 0,
"faultGameGenesisBlock": 0,
"faultGameGenesisOutputRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"faultGameSplitDepth": 0,
"faultGameWithdrawalDelay": 604800,
"preimageOracleMinProposalSize": 126000,
"preimageOracleChallengePeriod": 86400,
"proofMaturityDelaySeconds": 604800,
"disputeGameFinalityDelaySeconds": 302400,
"respectedGameType": 0,
"l1StandardBridgeProxy": "0x0202c473f5866ca064857fe4a8bf366d0b970160",
"l1CrossDomainMessengerProxy": "0xa331d31b1e5df5d9c363429cf4667022a8b11896",
"l1ERC721BridgeProxy": "0x7cc15700968350a0ea6f65662e7a8363215df2ca",
"systemConfigProxy": "0x90ee9048203fcfec3b06004aa505cc44def00eb2",
"optimismPortalProxy": "0x5b5f60fe5ab35978d906dd258b9f86fd337b8c79",
"daChallengeProxy": "0x0000000000000000000000000000000000000000",
"protocolVersionsProxy": "0x79add5713b383daa0a138d3c4780c7a1804a8090",
"cliqueSignerAddress": "0x0000000000000000000000000000000000000000",
"l1UseClique": false,
"deploymentWaitConfirmations": 0
}
4 changes: 4 additions & 0 deletions validation/genesis/validation-inputs/12345/meta.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
genesis_creation_commit = "5e14a61547a45eef2ebeba677aee4a049f106ed8"
node_version = "18.12.1"
monorepo_build_command = "pnpm"
genesis_creation_command = "forge1"
Loading