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

Bring PR up to date with ethereum-optimism:superchain-registry/main #1

Open
wants to merge 32 commits into
base: lattice-redstone
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9ef8325
permit testnets and devnets to use newer contract versions (#508)
tessr Aug 27, 2024
8a84609
feat(bindings): Superchain Crate (#511)
refcell Aug 27, 2024
0966106
fix(bindings): Disable Default Features in superchain dep (#512)
refcell Aug 27, 2024
3bd2566
modify promotion test notification (#516)
geoknee Aug 28, 2024
1bace9f
Add silence for OP Mainnet Optimism_Portal_2_Params (#515)
geoknee Aug 28, 2024
4e6edcb
Store Optimism Config in config toml files (#510)
geoknee Aug 28, 2024
029f38f
Remove submodule (#521)
geoknee Aug 28, 2024
4ecea76
feat(bindings): Remove Rust Bindings (#517)
refcell Aug 28, 2024
a11045f
update op-geth version (#523)
geoknee Aug 28, 2024
c48846a
fix gas-token_test (#522)
geoknee Aug 28, 2024
4ed0b20
tweak add-chain instructions (#528)
tessr Aug 29, 2024
936d40b
Update README.md (#524)
geoknee Aug 29, 2024
70e9dbc
add button with link to just-promotion-test slack message (#527)
geoknee Aug 29, 2024
c7ac144
Update batcher proposer (#526)
cody-wang-cb Aug 30, 2024
852e765
validation: add Optimism Config test (#536)
bitwiseguy Aug 30, 2024
fb63973
Use `op-contracts/v1.3.0` ABI for pre fault proofs validation (#537)
geoknee Aug 30, 2024
389619c
Update superchain.toml (#542)
sbvegan Sep 2, 2024
9c9ba65
[ Feature Branch ] Genesis allocs validation (#489)
geoknee Sep 3, 2024
23d6ccb
circleci: use context to pass rpc urls (#544)
bitwiseguy Sep 3, 2024
29537da
Adds validation metadata for chain with id 9897 (arena-z / nod) (#540)
geoknee Sep 3, 2024
b8d06d9
Modify validation data for Lisk (#543)
geoknee Sep 3, 2024
acc3dbe
feat: Json Configs (#545)
refcell Sep 4, 2024
cece7a7
add genesis validation metadata for mode sepolia (#546)
geoknee Sep 4, 2024
9decb08
add validation metadata for zora sepolia (#547)
geoknee Sep 4, 2024
5bc7649
Merge remote-tracking branch 'origin/main' into lattice-redstone
geoknee Sep 5, 2024
9012c0d
add optimismConfig && just codegen
geoknee Sep 5, 2024
387ec1c
CI: Migrate scheduled workflows to scheduled pipeline jobs (#549)
vdamle Sep 5, 2024
da991d9
Genesis alloc utility: increase buffer size for streaming output/erro…
vdamle Sep 5, 2024
23f8c69
Move `L1SecurityConfigs` and `SuperchainConfig` tests from standard c…
geoknee Sep 6, 2024
9f46397
Merge remote-tracking branch 'origin/main' into gk/lattice-redstone
geoknee Sep 6, 2024
221dea9
modify optimism params for redstone
geoknee Sep 9, 2024
467e8d8
migrate redstone's rollup.json and rerun just add-chain
geoknee Sep 9, 2024
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
Prev Previous commit
Next Next commit
Modify validation data for Lisk (ethereum-optimism#543)
* modify deploy-config validation input metadata for lisk mainnet

* run git submodule update during test

* trigger genesis validation recheck when deploy-config file changes
  • Loading branch information
geoknee authored Sep 3, 2024
commit b8d06d9561d6c2f3f8b47d2acfd6283f8e5b8b2e
5 changes: 3 additions & 2 deletions validation/genesis/genesis-allocs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func testGenesisAllocs(t *testing.T, chain *ChainConfig) {
// blow away any leftover files from the previous run
t.Logf("🛠️ Resetting monorepo to %s...", monorepoCommit)
mustExecuteCommandInDir(monorepoDir, exec.Command("git", "reset", "--hard", monorepoCommit))
mustExecuteCommandInDir(monorepoDir, exec.Command("git", "submodule", "update"))

t.Log("🛠️ Deleting node_modules...")
mustExecuteCommandInDir(monorepoDir, exec.Command("rm", "-rf", "node_modules"))
Expand Down Expand Up @@ -175,9 +176,9 @@ func testGenesisAllocs(t *testing.T, chain *ChainConfig) {
gotData, err := json.MarshalIndent(g.Alloc, "", " ")
require.NoError(t, err)

err = os.WriteFile(path.Join(monorepoDir, "want-alloc.json"), expectedData, os.ModePerm)
err = os.WriteFile(path.Join(monorepoDir, "want-alloc.json"), expectedData, os.ModePerm) // regenerated
require.NoError(t, err)
err = os.WriteFile(path.Join(monorepoDir, "got-alloc.json"), gotData, os.ModePerm)
err = os.WriteFile(path.Join(monorepoDir, "got-alloc.json"), gotData, os.ModePerm) // read from registry
require.NoError(t, err)

require.Equal(t, string(expectedData), string(gotData))
Expand Down
8 changes: 4 additions & 4 deletions validation/genesis/monorepo-outputs.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

echo "Installing and selecting correct Node version"
echo "Installing and selecting correct Node version..."
nvm install $1
nvm use $1

echo "Running install command"
echo "Running install command..."
eval $2

echo "Installing and selecting correct go version"
echo "Installing and selecting correct go version..."
go_version=$(go mod edit -print | grep -m 1 '^go ' | awk '{print $2}')

# Source the gvm script to load gvm functions into the shell
Expand All @@ -20,5 +20,5 @@ go_version=$(go mod edit -print | grep -m 1 '^go ' | awk '{print $2}')
gvm install go${go_version}
gvm use go${go_version}

echo "Running op-node genesis l2 command"
echo "Running l2 genesis creation command..."
eval "$3"
20 changes: 10 additions & 10 deletions validation/genesis/validation-inputs/1135/deploy-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
"l2OutputOracleChallenger": "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb",
"l2GenesisBlockGasLimit": "0x1c9c380",
"l1BlockTime": 12,
"baseFeeVaultRecipient": "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb",
"l1FeeVaultRecipient": "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb",
"sequencerFeeVaultRecipient": "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb",
"baseFeeVaultMinimumWithdrawalAmount": "0x1bc16d674ec80000",
"l1FeeVaultMinimumWithdrawalAmount": "0x1bc16d674ec80000",
"sequencerFeeVaultMinimumWithdrawalAmount": "0x1bc16d674ec80000",
"baseFeeVaultWithdrawalNetwork": 1,
"l1FeeVaultWithdrawalNetwork": 1,
"sequencerFeeVaultWithdrawalNetwork": 1,
"proxyAdminOwner": "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb",
"baseFeeVaultRecipient": "0xdA6e5640aFB2ED212Ba3a6fd83076e2ad3daD185",
"l1FeeVaultRecipient": "0xdA6e5640aFB2ED212Ba3a6fd83076e2ad3daD185",
"sequencerFeeVaultRecipient": "0xdA6e5640aFB2ED212Ba3a6fd83076e2ad3daD185",
"baseFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
"l1FeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
"sequencerFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
"baseFeeVaultWithdrawalNetwork": 0,
"l1FeeVaultWithdrawalNetwork": 0,
"sequencerFeeVaultWithdrawalNetwork": 0,
"proxyAdminOwner": "0xdA6e5640aFB2ED212Ba3a6fd83076e2ad3daD185",
"finalSystemOwner": "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb",
"superchainConfigGuardian": "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb",
"finalizationPeriodSeconds": 604800,
Expand Down
4 changes: 2 additions & 2 deletions validation/genesis/validation-inputs/generate-test-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -o errexit -o pipefail
set -x

# Get the list of changed files
targetList=$(git diff --name-only --merge-base main -- validation/genesis/*.toml)
targetList=$(git diff --name-only --merge-base main -- "validation/genesis/*.toml" "validation/genesis/*.json")

# Check if targetList is empty
if [ -z "$targetList" ]; then
Expand All @@ -12,7 +12,7 @@ if [ -z "$targetList" ]; then
fi

# Process the targetList to extract directory names and then the base names
targetList=$(echo "$targetList" | xargs dirname | xargs basename)
targetList=$(echo "$targetList" | xargs dirname | xargs basename | sort -u)

# Join the array elements with commas and wrap each element in quotes
targets=$(echo "$targetList" | sed 's/.*/"&"/' | tr '\n' ',')
Expand Down