Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ Feature Branch ] Genesis allocs validation (#489)
* fix go.work version declaration * add genesis predeploy test, validation metadata for chains 10,34443 and wire up * undo accidental changes * fix ci config * add sepolia/worldcoin * add worldchain * some small fixes chain 480 passes! * change format of genesis creation command * add nvm * 4801 passes * introduce monorepoBuildCommand artifact * try removing source command * install nvm * no need to install just * linting * introduce boolean switch for using legacy deployments format * Get mode, metal and zora genesis.allocs validation working (#496) * introduce node_version need to reexamine writeDeploymentsLegacy * fix bug in writeDeploymentsLegacy * fix declaration of legacy deployments and add note * improve diff * use hardhat Deployment type to pad data and avoid unmarshaling errors e.g. on mode * fix writeDeploymentsLegacy, mode now validates! * remove note * introduce GenesisCreationCommand mapping allows metadata file to choose from a list and have chainId automatically injected into command * introduce BuilldCommand mapping * op sepolia validates * remove UseLegacyDeploymentsFormat * remove op mainnet metadata for now * remove op sepolia (it doesn't validate yet) * echo nvm version * just codegen * load nvm * fix * try installing nvm in a step * require node_version to be set * just lint-all * attempt to patch genesis creation source code to make validation work at a wider range of commits * adds metal metadata -- validates! * add zora metadata -- validates! * Enhance `add-chain` tool to capture deploy config and monorep commit information (#504) * add-chain: ingest and store deploy-config and genesis-creation commit * remove genesis-system-configs dir we no longer use this * add test data for deploy-config * check errs properly * link validation to add-chain * fix up add-chain e2e tests * simplify test side effect handling * don't bother cleaning up -test genesis validation inputs (They now don't end up bound into the validation package) * tweak spacing * prefer os.ModePerm over 0o777 * typo * typo * remove unused params * use commented constants for metadata defaults * fix clean-add-chain cmd * use localised, gitignored optimism-temporary directory for genesis validation purposes (#507) * 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 * just tidy-all * harmonize op-geth version * improve naming of ci steps * dedupe perChainTestName * remove temporary directory after tests run * tidy up test script * rename test * rename commands * add testGenesisAllocsMetadata * use dynamic config building in CI (#534) * use dynamic config building in CI This works by having a small workflow run, compute the list of chain ids to run genesis validation checks on, and then modify a subsequent config file which circleci then runs. * add comment * fan in * fix * fix script * Update .circleci/continue_config.yml Co-authored-by: Vinod Damle <[email protected]> --------- Co-authored-by: Vinod Damle <[email protected]> * remove temporarily added chains (#535) * git restore --source=main -- superchain * just codegen * just lint-all * lint * typo * enhance comment * swap op-node1 and op-node2 to retain chronological ordering * add explainer about parallelism * modify message in genesis-allocs-all-ok * simplify patch file * tweak go version in golang-validate-genesis-allocs job * remove the test artifacts written to validationInputsDir * don't forget we swapped opnode1<>opnode2 * fix another opnode1<>opnode2 permutation * Revert "simplify patch file" This reverts commit 9b7f6d8. * fix op-node1/2 err * add note about gvm --------- Co-authored-by: Vinod Damle <[email protected]>
- Loading branch information