-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get genesis validation checks to run on CI (#529)
* switch to cimg/go:1.22.6-node docker image for genesis validation * remove set -e (nvm.sh exits with code 3, we can apparently just ignore that) * use bash instead of sh * use . instead of source * install pnpm * move optimism-temporary out from under superchain-registry this seems to make go module resolution work as expected * do not allow validate-genesis to timeout * improve pipefail behaviour we allow the scripts which load nvm and gvm to fail * just lint-all * remove all set -e behaviour gives highest chance that validation can succeed * stream output from test helps with debugging, prevents timeouts on circleci * try running as a matrix * add base and base sepolia to genesis validation list (#530) * add base sepolia to genesis validation list * add base mainnet to genesis validation list * Add validation metadata for Lisk mainnet + testnet (#531) * temp: gk/genadd lisk mainnet (revertme) * add lisk metadata for genesis validation * temp: add lisk sepolia (revertme) * add genesis validation metadata for lisk sepolia * Update .circleci/config.yml * add comment
- Loading branch information
Showing
28 changed files
with
387 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name = "Lisk" | ||
chain_id = 1135 | ||
public_rpc = "https://rpc.api.lisk.com" | ||
sequencer_rpc = "https://rpc.api.lisk.com" | ||
explorer = "https://blockscout.lisk.com" | ||
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 = "0xFf00000000000000000000000000000000001135" | ||
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 = 1720627201 # Wed 10 Jul 2024 16:00:01 UTC | ||
block_time = 2 | ||
seq_window_size = 3600 | ||
max_sequencer_drift = 600 | ||
data_availability_type = "eth-da" | ||
|
||
[genesis] | ||
l2_time = 1714728791 | ||
[genesis.l1] | ||
hash = "0xd580bdbd001908860f225c16ddaa08ada64471a68435694760c111253d97ffce" | ||
number = 19788720 | ||
[genesis.l2] | ||
hash = "0x5a693d1d8ee27b8e62868d0349af430a2d2e173c8c8988e7b0c9ef91893cbf00" | ||
number = 0 | ||
[genesis.system_config] | ||
batcherAddress = "0xa6Ea2f3299b63c53143c993d2d5E60A69Cd6Fe24" | ||
overhead = "0x00000000000000000000000000000000000000000000000000000000000000bc" | ||
scalar = "0x00000000000000000000000000000000000000000000000000000000000f4240" | ||
gasLimit = 30000000 | ||
|
||
[addresses] | ||
SystemConfigOwner = "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb" | ||
ProxyAdminOwner = "0xECd4150ABbb1EBff13f74e42Fb43C3d78B4E0b45" | ||
Guardian = "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb" | ||
Challenger = "0xBeA2Bc852a160B8547273660E22F4F08C2fa9Bbb" | ||
Proposer = "0x0AbD6da1cE10D1cD6c7C9C14b905786D20f3EB23" | ||
UnsafeBlockSigner = "0xb9DE90a90c5E441C483e754FE7341100D5fbaEcA" | ||
BatchSubmitter = "0xa6Ea2f3299b63c53143c993d2d5E60A69Cd6Fe24" | ||
AddressManager = "0x2dF7057d3F25212E51aFEA8dA628668229Ea423f" | ||
L1CrossDomainMessengerProxy = "0x31B72D76FB666844C41EdF08dF0254875Dbb7edB" | ||
L1ERC721BridgeProxy = "0x3A44A3b263FB631cdbf25f339e2D29497511A81f" | ||
L1StandardBridgeProxy = "0x2658723Bf70c7667De6B25F99fcce13A16D25d08" | ||
L2OutputOracleProxy = "0x113cB99283AF242Da0A0C54347667edF531Aa7d6" | ||
OptimismMintableERC20FactoryProxy = "0xc1dA06CC5DD5cE23bABa924463de7F762039252d" | ||
OptimismPortalProxy = "0x26dB93F8b8b4f7016240af62F7730979d353f9A7" | ||
SystemConfigProxy = "0x05f23282FFDCA8286E4738C1aF79079f3d843750" | ||
ProxyAdmin = "0xeC432c4F1d0E12737f3a42a459B84848Af979b2d" | ||
SuperchainConfig = "0x26C7bFB430d68Bf74d2d52497836d4336b555dE7" | ||
DisputeGameFactoryProxy = "0x0479e6757eb4743843b309DDDF78E6bA242F38BE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
name = "Lisk Sepolia Testnet" | ||
chain_id = 4202 | ||
public_rpc = "https://rpc.sepolia-api.lisk.com" | ||
sequencer_rpc = "https://rpc.sepolia-api.lisk.com" | ||
explorer = "https://sepolia-blockscout.lisk.com" | ||
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 = "0xff00000000000000000000000000000000004202" | ||
canyon_time = 1705312994 # Mon 15 Jan 2024 10:03:14 UTC | ||
delta_time = 1705312994 # Mon 15 Jan 2024 10:03:14 UTC | ||
ecotone_time = 1708534800 # Wed 21 Feb 2024 17:00:00 UTC | ||
fjord_time = 1716998400 # Wed 29 May 2024 16:00:00 UTC | ||
granite_time = 1723478400 # Mon 12 Aug 2024 16:00:00 UTC | ||
block_time = 2 | ||
seq_window_size = 3600 | ||
max_sequencer_drift = 600 | ||
data_availability_type = "eth-da" | ||
|
||
[genesis] | ||
l2_time = 1705312992 | ||
[genesis.l1] | ||
hash = "0x7d9d6dcec39efe182119f41b1bd2aa7b35b82e43927522afea86d210a4eace4b" | ||
number = 5089851 | ||
[genesis.l2] | ||
hash = "0xead3e6ddd08ae7e27fd952b74ceb468ba889047ac96b351dd13bd55e5faf3372" | ||
number = 0 | ||
[genesis.system_config] | ||
batcherAddress = "0x246E119a5BcC2875161b23E4e602e25cEcE96E37" | ||
overhead = "0x0000000000000000000000000000000000000000000000000000000000000834" | ||
scalar = "0x00000000000000000000000000000000000000000000000000000000000f4240" | ||
gasLimit = 30000000 | ||
|
||
[addresses] | ||
SystemConfigOwner = "0x19De6D30Bf43654B7244B8adA135E1AA639bF091" | ||
ProxyAdminOwner = "0x465874903125F26316c730aE84862606a3326cA5" | ||
Guardian = "0x7a50f00e8D05b95F98fE38d8BeE366a7324dCf7E" | ||
Challenger = "0x19De6D30Bf43654B7244B8adA135E1AA639bF091" | ||
Proposer = "0xBbD3a1D90B0Ef416581ACdC6a72046b38D3af9AD" | ||
UnsafeBlockSigner = "0x99804980804e9EbE78db89C049fFe36ceaaEF654" | ||
BatchSubmitter = "0x246E119a5BcC2875161b23E4e602e25cEcE96E37" | ||
AddressManager = "0x27Bb4A7cd8FB20cb816BF4Aac668BF841bb3D5d3" | ||
L1CrossDomainMessengerProxy = "0x857824E6234f7733ecA4e9A76804fd1afa1A3A2C" | ||
L1ERC721BridgeProxy = "0xb4E988CF1aD8C361D56118437502A8f11C7FaA01" | ||
L1StandardBridgeProxy = "0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5" | ||
L2OutputOracleProxy = "0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348" | ||
OptimismMintableERC20FactoryProxy = "0x269d632C1E518a922C30C749cFD3f82Eb5C779B0" | ||
OptimismPortalProxy = "0xe3d90F21490686Ec7eF37BE788E02dfC12787264" | ||
SystemConfigProxy = "0xF54791059df4a12BA461b881B4080Ae81a1d0AC0" | ||
ProxyAdmin = "0x5Db9F05921d8d5a6a157F6f49c411cc0e46c6330" | ||
SuperchainConfig = "0xC2Be75506d5724086DEB7245bd260Cc9753911Be" | ||
DisputeGameFactoryProxy = "0x9AA3890a87E6BD2CB85Dad1A5D8B0A9D669e658a" |
Binary file added
BIN
+1012 Bytes
...extra/bytecodes/0x201bcc24ab6d4794cf5541df1c60a1c69a7fb41983e741af191ac359b14fc0bd.bin.gz
Binary file not shown.
Binary file added
BIN
+2.1 KB
...extra/bytecodes/0x23e5bfe4c08e51a3843b99263331d840d2ebf572da0c26dcbdb136e3a2f4e5da.bin.gz
Binary file not shown.
Binary file added
BIN
+4.36 KB
...extra/bytecodes/0x500de9f31550615d518dd958ff44761e7838402d216d1fbd460827161ce7492e.bin.gz
Binary file not shown.
Binary file added
BIN
+4.36 KB
...extra/bytecodes/0x9541cf433b875e417e7ea0780e56de353d6379a5e44c9bbe7feb37d4b935b7c2.bin.gz
Binary file not shown.
Binary file added
BIN
+2.73 KB
...extra/bytecodes/0x96435d55c649991c139885a22e9e51284b9e376fb6aa6375edb82f4840823b5e.bin.gz
Binary file not shown.
Binary file added
BIN
+990 Bytes
...extra/bytecodes/0x972b092fc1d78f209bd2eb3d280ce3631acbdc639b6780ec0db92f357ff07dc7.bin.gz
Binary file not shown.
Binary file added
BIN
+991 Bytes
...extra/bytecodes/0x9ea11bb101449e678180593a4935202fac6a932effc6e3ae28b4f9683b38d469.bin.gz
Binary file not shown.
Binary file added
BIN
+1012 Bytes
...extra/bytecodes/0xdb46c3075511b7a4bbe03b5f0fecbab06daeab5263685f5b5976795126693681.bin.gz
Binary file not shown.
Binary file added
BIN
+3.64 KB
...extra/bytecodes/0xefb5da480590ed307719bdc79ac88950271044beda2df3b0d4db9c739e9c1d58.bin.gz
Binary file not shown.
Binary file added
BIN
+1.11 KB
...extra/bytecodes/0xf35fe602ba2a3b96f2e27ff7c8b8010800a8d0d616a5fb1f902e087b590355f3.bin.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
set -e | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
|
||
echo "Inferring and selecting correct Node version" | ||
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
echo "Installing and selecting correct Node version" | ||
nvm install $1 | ||
nvm use $1 | ||
|
||
echo "Running install command" | ||
eval $2 | ||
|
||
echo "Inferring and selecting correct go version" | ||
|
||
echo "Installing and selecting correct go version" | ||
go_version=$(grep -m 1 '^go ' go.mod | awk '{print $2}') | ||
|
||
# Source the gvm script to load gvm functions into the shell | ||
set +e | ||
source ~/.gvm/scripts/gvm || exit 1 | ||
gvm install go${go_version} || exit 1 | ||
gvm use go${go_version} || exit 1 | ||
set -e | ||
|
||
. ~/.gvm/scripts/gvm | ||
gvm install go${go_version} | ||
gvm use go${go_version} | ||
|
||
echo "Running op-node genesis l2 command" | ||
|
||
eval "$3" |
Oops, something went wrong.