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

Add Swell (Testnet) #690

Open
wants to merge 1 commit 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 @@ -511,6 +511,23 @@
"chain": "sepolia"
}
},
{
"name": "Swellchain Testnet",
"identifier": "sepolia/swell",
"chainId": 1924,
"rpc": [
"https://swell-testnet.alt.technology"
],
"explorers": [
"https://swell-testnet-explorer.alt.technology"
],
"superchainLevel": 0,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
"chain": "sepolia"
}
},
{
"name": "Binary Sepolia",
"identifier": "sepolia/tbn",
Expand Down
12 changes: 12 additions & 0 deletions chainList.toml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,18 @@
type = "L2"
chain = "sepolia"

[[chains]]
name = "Swellchain Testnet"
identifier = "sepolia/swell"
chain_id = 1924
rpc = ["https://swell-testnet.alt.technology"]
explorers = ["https://swell-testnet-explorer.alt.technology"]
superchain_level = 0
data_availability_type = "eth-da"
[chains.parent]
type = "L2"
chain = "sepolia"

[[chains]]
name = "Binary Sepolia"
identifier = "sepolia/tbn"
Expand Down
69 changes: 69 additions & 0 deletions superchain/configs/configs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,75 @@
"SystemConfigProxy": "0x5D63A8Dc2737cE771aa4a6510D063b6Ba2c4f6F2"
}
},
{
"Name": "Swellchain Testnet",
"l2_chain_id": 1924,
"PublicRPC": "https://swell-testnet.alt.technology",
"SequencerRPC": "https://swell-testnet.alt.technology",
"Explorer": "https://swell-testnet-explorer.alt.technology",
"SuperchainLevel": 0,
"StandardChainCandidate": true,
"SuperchainTime": null,
"batch_inbox_address": "0x00e4162c4fE9Db4796787E515F616A55650791B7",
"Superchain": "sepolia",
"Chain": "swell",
"canyon_time": 0,
"delta_time": 0,
"ecotone_time": 0,
"fjord_time": 0,
"granite_time": 0,
"block_time": 2,
"seq_window_size": 3600,
"max_sequencer_drift": 600,
"DataAvailabilityType": "eth-da",
"optimism": {
"eip1559Elasticity": 10,
"eip1559Denominator": 50,
"eip1559DenominatorCanyon": 250
},
"GasPayingToken": null,
"genesis": {
"l1": {
"hash": "0xd99f5dc5bb430b382da5e70964a2faf49808c0f450d4e8fa4bb3d4f7f9e3c18a",
"number": 6989267
},
"l2": {
"hash": "0x56d83858e4fab3bcd009c0014c91fce910f0e4585d1f446e043c813043fd0317",
"number": 0
},
"l2_time": 1730453256,
"system_config": {
"batcherAddr": "0x77C60EfDBDa83410EE0373Eda2ed06891238c93d",
"overhead": "0x0000000000000000000000000000000000000000000000000000000000000000",
"scalar": "0x010000000000000000000000000000000000000000000000000c5fc500000558",
"gasLimit": 60000000
}
},
"Addresses": {
"AddressManager": "0x9C7D8212d8c996ab3c849bF4d6d5cC0A597A5CE5",
"AnchorStateRegistryProxy": "0x6D1443dD3f58889C6A8DE51E74b5fCa9c7116513",
"BatchSubmitter": "0x77C60EfDBDa83410EE0373Eda2ed06891238c93d",
"Challenger": "0x9C420427CABF2ab4b9e609ca8F4c64BB92bc76b0",
"DelayedWETHProxy": "0xD89F9eC2D109FB5f978A3b5B846d6aA1959872fb",
"DisputeGameFactoryProxy": "0xF098dc3596d96b6Dfd43FdE6066551449242Fc15",
"Guardian": "0x7a50f00e8D05b95F98fE38d8BeE366a7324dCf7E",
"L1CrossDomainMessengerProxy": "0xD89F9eC2D109FB5f978A3b5B846d6aA1959872fb",
"L1ERC721BridgeProxy": "0x2Cff2FDA74b121B7D6371C740d5166F47a93d45C",
"L1StandardBridgeProxy": "0xeBb79a1D00B2d489f53ADee985a2Ded2A3553F22",
"MIPS": "0x47B0E34C1054009e696BaBAAd56165e1e994144d",
"OptimismMintableERC20FactoryProxy": "0xBa2b3e7a330ce394202ACB258f670B2926dB63BE",
"OptimismPortalProxy": "0x595329C60C0B9E54a5246E98fB0fA7FcFd454f64",
"PermissionedDisputeGame": "0x01Fe650FB880A287D1b7C2df6e830dA0540387fA",
"PreimageOracle": "0x92240135b46fc1142dA181f550aE8f595B858854",
"Proposer": "0xfAD4ab1C91530649bf3c1F3DadB401160d3854D0",
"ProxyAdmin": "0x85046864B00763415af4DA8d7Bd6FA9404385690",
"ProxyAdminOwner": "0xbA9b48E881c79C5e8E00891Dd0DBfd9322632da7",
"SuperchainConfig": "0xC2Be75506d5724086DEB7245bd260Cc9753911Be",
"SystemConfigOwner": "0x6C22aD23a35658d045165ac1d20486C39A3BEFCE",
"SystemConfigProxy": "0xb8dB232300F007833592befD46E141C6aD3558ec",
"UnsafeBlockSigner": "0xACE029EaF8513FE15f03a511976F311454E4B423"
}
},
{
"Name": "Minato",
"l2_chain_id": 1946,
Expand Down
60 changes: 60 additions & 0 deletions superchain/configs/sepolia/swell.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name = "Swellchain Testnet"
chain_id = 1924
public_rpc = "https://swell-testnet.alt.technology"
sequencer_rpc = "https://swell-testnet.alt.technology"
explorer = "https://swell-testnet-explorer.alt.technology"
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 = "0x00e4162c4fE9Db4796787E515F616A55650791B7"
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 = 2
seq_window_size = 3600
max_sequencer_drift = 600
data_availability_type = "eth-da"

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

[genesis]
l2_time = 1730453256
[genesis.l1]
hash = "0xd99f5dc5bb430b382da5e70964a2faf49808c0f450d4e8fa4bb3d4f7f9e3c18a"
number = 6989267
[genesis.l2]
hash = "0x56d83858e4fab3bcd009c0014c91fce910f0e4585d1f446e043c813043fd0317"
number = 0
[genesis.system_config]
batcherAddress = "0x77C60EfDBDa83410EE0373Eda2ed06891238c93d"
overhead = "0x0000000000000000000000000000000000000000000000000000000000000000"
scalar = "0x010000000000000000000000000000000000000000000000000c5fc500000558"
gasLimit = 60000000

[addresses]
SystemConfigOwner = "0x6C22aD23a35658d045165ac1d20486C39A3BEFCE"
ProxyAdminOwner = "0xbA9b48E881c79C5e8E00891Dd0DBfd9322632da7"
Guardian = "0x7a50f00e8D05b95F98fE38d8BeE366a7324dCf7E"
Challenger = "0x9C420427CABF2ab4b9e609ca8F4c64BB92bc76b0"
Proposer = "0xfAD4ab1C91530649bf3c1F3DadB401160d3854D0"
UnsafeBlockSigner = "0xACE029EaF8513FE15f03a511976F311454E4B423"
BatchSubmitter = "0x77C60EfDBDa83410EE0373Eda2ed06891238c93d"
AddressManager = "0x9C7D8212d8c996ab3c849bF4d6d5cC0A597A5CE5"
L1CrossDomainMessengerProxy = "0xD89F9eC2D109FB5f978A3b5B846d6aA1959872fb"
L1ERC721BridgeProxy = "0x2Cff2FDA74b121B7D6371C740d5166F47a93d45C"
L1StandardBridgeProxy = "0xeBb79a1D00B2d489f53ADee985a2Ded2A3553F22"
OptimismMintableERC20FactoryProxy = "0xBa2b3e7a330ce394202ACB258f670B2926dB63BE"
OptimismPortalProxy = "0x595329C60C0B9E54a5246E98fB0fA7FcFd454f64"
SystemConfigProxy = "0xb8dB232300F007833592befD46E141C6aD3558ec"
ProxyAdmin = "0x85046864B00763415af4DA8d7Bd6FA9404385690"
SuperchainConfig = "0xC2Be75506d5724086DEB7245bd260Cc9753911Be"
AnchorStateRegistryProxy = "0x6D1443dD3f58889C6A8DE51E74b5fCa9c7116513"
DelayedWETHProxy = "0xD89F9eC2D109FB5f978A3b5B846d6aA1959872fb"
DisputeGameFactoryProxy = "0xF098dc3596d96b6Dfd43FdE6066551449242Fc15"
MIPS = "0x47B0E34C1054009e696BaBAAd56165e1e994144d"
PermissionedDisputeGame = "0x01Fe650FB880A287D1b7C2df6e830dA0540387fA"
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 @@ -260,6 +260,30 @@
"SystemConfigProxy": "0xD3d4c6B703978a5d24FecF3a70a51127667Ff1A4",
"UnsafeBlockSigner": "0x6967D304E9b7E26b5eb3f5A1FD1239DaAD3215E6"
},
"1924": {
"AddressManager": "0x9C7D8212d8c996ab3c849bF4d6d5cC0A597A5CE5",
"AnchorStateRegistryProxy": "0x6D1443dD3f58889C6A8DE51E74b5fCa9c7116513",
"BatchSubmitter": "0x77C60EfDBDa83410EE0373Eda2ed06891238c93d",
"Challenger": "0x9C420427CABF2ab4b9e609ca8F4c64BB92bc76b0",
"DelayedWETHProxy": "0xD89F9eC2D109FB5f978A3b5B846d6aA1959872fb",
"DisputeGameFactoryProxy": "0xF098dc3596d96b6Dfd43FdE6066551449242Fc15",
"Guardian": "0x7a50f00e8D05b95F98fE38d8BeE366a7324dCf7E",
"L1CrossDomainMessengerProxy": "0xD89F9eC2D109FB5f978A3b5B846d6aA1959872fb",
"L1ERC721BridgeProxy": "0x2Cff2FDA74b121B7D6371C740d5166F47a93d45C",
"L1StandardBridgeProxy": "0xeBb79a1D00B2d489f53ADee985a2Ded2A3553F22",
"MIPS": "0x47B0E34C1054009e696BaBAAd56165e1e994144d",
"OptimismMintableERC20FactoryProxy": "0xBa2b3e7a330ce394202ACB258f670B2926dB63BE",
"OptimismPortalProxy": "0x595329C60C0B9E54a5246E98fB0fA7FcFd454f64",
"PermissionedDisputeGame": "0x01Fe650FB880A287D1b7C2df6e830dA0540387fA",
"PreimageOracle": "0x92240135b46fc1142dA181f550aE8f595B858854",
"Proposer": "0xfAD4ab1C91530649bf3c1F3DadB401160d3854D0",
"ProxyAdmin": "0x85046864B00763415af4DA8d7Bd6FA9404385690",
"ProxyAdminOwner": "0xbA9b48E881c79C5e8E00891Dd0DBfd9322632da7",
"SuperchainConfig": "0xC2Be75506d5724086DEB7245bd260Cc9753911Be",
"SystemConfigOwner": "0x6C22aD23a35658d045165ac1d20486C39A3BEFCE",
"SystemConfigProxy": "0xb8dB232300F007833592befD46E141C6aD3558ec",
"UnsafeBlockSigner": "0xACE029EaF8513FE15f03a511976F311454E4B423"
},
"1946": {
"AddressManager": "0x6e8A77673109783001150DFA770E6c662f473DA9",
"AnchorStateRegistryProxy": "0xa4AbebA1612Cf731843460791e1A925c84d0991C",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added superchain/extra/genesis/sepolia/swell.json.gz
Binary file not shown.
101 changes: 101 additions & 0 deletions validation/genesis/validation-inputs/1924/deploy-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"fundDevAccounts": false,
"l2GenesisBlockNonce": "0x0",
"l2GenesisBlockGasLimit": "0x3938700",
"l2GenesisBlockDifficulty": null,
"l2GenesisBlockMixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"l2GenesisBlockNumber": "0x0",
"l2GenesisBlockGasUsed": "0x0",
"l2GenesisBlockParentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"l2GenesisBlockBaseFeePerGas": "0x3b9aca00",
"proxyAdminOwner": "0xba9b48e881c79c5e8e00891dd0dbfd9322632da7",
"finalSystemOwner": "0xba9b48e881c79c5e8e00891dd0dbfd9322632da7",
"baseFeeVaultRecipient": "0x7f52c2198f60e3221c10cbe843eb253934fc98b4",
"l1FeeVaultRecipient": "0x7f52c2198f60e3221c10cbe843eb253934fc98b4",
"sequencerFeeVaultRecipient": "0x7f52c2198f60e3221c10cbe843eb253934fc98b4",
"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": "0xace029eaf8513fe15f03a511976f311454e4b423",
"batchSenderAddress": "0x77c60efdbda83410ee0373eda2ed06891238c93d",
"eip1559Elasticity": 10,
"eip1559Denominator": 50,
"eip1559DenominatorCanyon": 250,
"l2GenesisRegolithTimeOffset": "0x0",
"l2GenesisCanyonTimeOffset": "0x0",
"l2GenesisDeltaTimeOffset": "0x0",
"l2GenesisEcotoneTimeOffset": "0x0",
"l2GenesisFjordTimeOffset": "0x0",
"l2GenesisGraniteTimeOffset": "0x0",
"l1ChainID": 11155111,
"l2ChainID": 1924,
"l2BlockTime": 2,
"finalizationPeriodSeconds": 12,
"maxSequencerDrift": 600,
"sequencerWindowSize": 3600,
"channelTimeout": 300,
"batchInboxAddress": "0x00e4162c4fe9db4796787e515f616a55650791b7",
"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": "0xd99f5dc5bb430b382da5e70964a2faf49808c0f450d4e8fa4bb3d4f7f9e3c18a",
"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": "0xebb79a1d00b2d489f53adee985a2ded2a3553f22",
"l1CrossDomainMessengerProxy": "0xd89f9ec2d109fb5f978a3b5b846d6aa1959872fb",
"l1ERC721BridgeProxy": "0x2cff2fda74b121b7d6371c740d5166f47a93d45c",
"systemConfigProxy": "0xb8db232300f007833592befd46e141c6ad3558ec",
"optimismPortalProxy": "0x595329c60c0b9e54a5246e98fb0fa7fcfd454f64",
"daChallengeProxy": "0x0000000000000000000000000000000000000000",
"protocolVersionsProxy": "0x79add5713b383daa0a138d3c4780c7a1804a8090",
"deploymentWaitConfirmations": 0
}

4 changes: 4 additions & 0 deletions validation/genesis/validation-inputs/1924/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"