-
Notifications
You must be signed in to change notification settings - Fork 3
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
Karlb/celo10 2 #256
Karlb/celo10 2 #256
Commits on Oct 16, 2024
-
Adding funding.json file required to apply for retropgf
Configuration menu - View commit details
-
Copy full SHA for a62fb67 - Browse repository at this point
Copy the full SHA a62fb67View commit details -
Configuration menu - View commit details
-
Copy full SHA for cab1576 - Browse repository at this point
Copy the full SHA cab1576View commit details -
dependabot: no PRs for version updates
Setting `open-pull-requests-limit: 0` prevent version updates but should keep the security scans and updates according to https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#overriding-the-default-behavior-with-a-configuration-file > If you only require security updates and want to exclude version > updates, you can set open-pull-requests-limit to 0 in order to prevent > version updates for a given package-ecosystem.
Configuration menu - View commit details
-
Copy full SHA for ad47103 - Browse repository at this point
Copy the full SHA ad47103View commit details -
adding trivy scanning to the Docker files (#41)
* adding trivy scanning to the Docker files * adding docker build scan * fixing typo * adding context for bedrock images * adding context to ops dockerfile packages * fixing context for ops packges: * removing push/pull triggers and adding just a manual workflow run with workflow_dispatch
Configuration menu - View commit details
-
Copy full SHA for 69a6a7a - Browse repository at this point
Copy the full SHA 69a6a7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbf8fcd - Browse repository at this point
Copy the full SHA bbf8fcdView commit details -
Add fee currency parameter to IntrinsicGas
As far as I understand, all gas values are for the L1 transaction that submits the tx batches. Therefore, the fee currency can be set to `nil`.
Configuration menu - View commit details
-
Copy full SHA for d6db76b - Browse repository at this point
Copy the full SHA d6db76bView commit details -
Add forkdiff comparison to optimism (#32)
* Add pages workflow and forkdiff config * Remove TODOs * Update trigger to reflect future celo default branch pattern * Update latest rebased commit
Configuration menu - View commit details
-
Copy full SHA for 53c95dc - Browse repository at this point
Copy the full SHA 53c95dcView commit details -
Remove common/interfaces/IExchange.sol (duplicate) We keep the one in the `mento` directory. Remove common/libraries/ReentrancyGuard.sol (duplicate) Directly use the original from OpenZeppelin.
Configuration menu - View commit details
-
Copy full SHA for 00a5ac8 - Browse repository at this point
Copy the full SHA 00a5ac8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1825ba - Browse repository at this point
Copy the full SHA e1825baView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3a5452 - Browse repository at this point
Copy the full SHA d3a5452View commit details -
Configuration menu - View commit details
-
Copy full SHA for b63c91e - Browse repository at this point
Copy the full SHA b63c91eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c369b3 - Browse repository at this point
Copy the full SHA 5c369b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d7c59e - Browse repository at this point
Copy the full SHA 7d7c59eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac3e23b - Browse repository at this point
Copy the full SHA ac3e23bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 262358a - Browse repository at this point
Copy the full SHA 262358aView commit details -
Add more powerful MockSortedOracles
This allows testing of newly deployed fee currencies even when MockSortedOracles is used. This is the some implementation used in celo-monorepo (except for updating it to a more recent solidity version).
Configuration menu - View commit details
-
Copy full SHA for 72042bf - Browse repository at this point
Copy the full SHA 72042bfView commit details -
Add fee currency functions to MintableERC20
so that BridgedETH and other bridged ERC20 tokens can be used as fee currencies. I won't included testing until the FeeCurrencyDirectory is ready.
Configuration menu - View commit details
-
Copy full SHA for 20a2b04 - Browse repository at this point
Copy the full SHA 20a2b04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63b013a - Browse repository at this point
Copy the full SHA 63b013aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c423ab - Browse repository at this point
Copy the full SHA 6c423abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fde921 - Browse repository at this point
Copy the full SHA 9fde921View commit details -
Disable cUSD in L2 genesis for now
Until we fix the errors caused by enabling it.
Configuration menu - View commit details
-
Copy full SHA for e444986 - Browse repository at this point
Copy the full SHA e444986View commit details -
Fix Genesis contract count test
We need to include Celo's contracts in the count to make it succeed.
Configuration menu - View commit details
-
Copy full SHA for d6caef1 - Browse repository at this point
Copy the full SHA d6caef1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d751e7 - Browse repository at this point
Copy the full SHA 1d751e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 378096b - Browse repository at this point
Copy the full SHA 378096bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1ca9f3 - Browse repository at this point
Copy the full SHA a1ca9f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for cea51ed - Browse repository at this point
Copy the full SHA cea51edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bf1d43 - Browse repository at this point
Copy the full SHA 5bf1d43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c0ea6c - Browse repository at this point
Copy the full SHA 9c0ea6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5658ed1 - Browse repository at this point
Copy the full SHA 5658ed1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b05d826 - Browse repository at this point
Copy the full SHA b05d826View commit details -
Change config script to pass verification on deploy (#150)
* faultGameMaxDuration -> faultGameMaxClockDuration. * Add faultgamewithdrawaldelay (take sepolia value).
Configuration menu - View commit details
-
Copy full SHA for 010a20c - Browse repository at this point
Copy the full SHA 010a20cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e62d49c - Browse repository at this point
Copy the full SHA e62d49cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f7bdfb - Browse repository at this point
Copy the full SHA 4f7bdfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e1664c - Browse repository at this point
Copy the full SHA 3e1664cView commit details -
Deploy Celo contracts on devnet
Without those we can't test most of the Celo-specific functionality.
Configuration menu - View commit details
-
Copy full SHA for b502a39 - Browse repository at this point
Copy the full SHA b502a39View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0a608e - Browse repository at this point
Copy the full SHA f0a608eView commit details -
Set devAccount[0] as owner of FeeCurrencyDirectory
This makes it possible to modify the FeeCurrencyDirectory entries in devnet.
Configuration menu - View commit details
-
Copy full SHA for 5a395f2 - Browse repository at this point
Copy the full SHA 5a395f2View commit details -
Add e2e test for bridging WETH to L2
It is also prepared for using the bridged WETH as fee currency, but we are currently lacking a simple way to send fee currency txs, so I left the final tx out.
Configuration menu - View commit details
-
Copy full SHA for 09e332c - Browse repository at this point
Copy the full SHA 09e332cView commit details -
Configuration menu - View commit details
-
Copy full SHA for be55ed7 - Browse repository at this point
Copy the full SHA be55ed7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d62afa - Browse repository at this point
Copy the full SHA 2d62afaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5770300 - Browse repository at this point
Copy the full SHA 5770300View commit details -
This works by loading the database of a celo node. It then removes all existing blocks and generates a new genesis block including the existing state tree. Migrate to urfave/cli/v2 Update op-chain-ops/cmd/op-migrate/main.go Co-authored-by: Karl Bartel <[email protected]> Combine Cel2 migration scripts (#148) * Initial script to play with celo DB history migration * Can Read All the headers Co-authored-by: Alec Schaefer <[email protected]> * Adds new command to migrate ancients db * Adds comment * Adds extension methods for transformation * Implements Transform CeloBody * Adds impl that runs steps in a concurrent pipeline * Adds transformHead, verify hashing works cleanup * add migration for non-frozen blocks * copy over entire db and modify in place, works with op-geth at piersy/minimal-data-migration * remove unecessary copying, cleanup code * close and reopen DBs * migrate newdb in place * saving progress Co-authored-by: Mariano Cortesi <[email protected]> * Refactor code to improve database migration process * better logging * refactor: inline parMigrateAncientRange * Remove frozen blocks from nonAncient DB * check hash matches on nonAncients migration * clean up branch Removes unused code, move code for better separation of concerns. * decode into new types * fix transformHeader * make old freezer not readonly so that .meta files are created * add configurable memory limit * add comment about memory * Added celo-dbmigrate Makefile target * Added dockerfile for celo-dbmigrate and celo-migrate tools * Workflow for running cel2-migration-tool * Update cel2-migration-tool image registry * update op-geth to point to https://github.com/celo-org/op-geth/commits/piersy/for-use-with-migrated-celo-datadir-use-gas-limit-differentiation-rebased-celo6/ * add celo6 logging * rename scripts to celo-migrate-state and celo-migrate-blocks * first pass at combining scripts * saving progress on testing * fix lint error, use %w to fmt errors * add updated state migration input files to testdata * add ability to run block and state migration seperately or together * add option for migrating only frozen blocks * remove old scripts * minor logging improvements in block migrations * invert clearNonAncients flag logic --> keepNonAncients, make dry-run flag only apply to state migration * adds README, improves logging * fix lint err * Fix Makefile and Dockerfile * move createNewDbIfNotExists * rename keep-non-ancients * update TODO to add more context and state changes * Remove channel buffers from ancients migration Co-authored-by: Valentin Rodygin <[email protected]> * bump default batch size to 100000 * add back extended usage string * add info on state migration to README * remove --state-dry-run flag * update default batch size to 50k * Adding building for op images * Setting our values for image registry and repository * update README * fix logging when newAncients > oldAncients * fix return value when skipping ancients * skip transforming block bodies that have already been transformed * misc. fixes to get re-runs with --keep-non-ancients working * adds TODO * addresses cosmetic feedback * add flag for specifying a buffer * Show progress on rsync * Update to latest op-geth * state-migration: Refactor subtask * state-migration: Use EIP1559 settings from deploy config Fixes #135 * state-migration: Enable Fjord hardfork during migration Fixes #160 * state-migration: Deterministicly set migration block timestamp Fixes #157 Sets the timestamp to be 5s after the last block. * state-migration: Set WithdrawalsHash in Cel2 migration block * fixup! Fix Makefile and Dockerfile * add note to README about using snapshots for pre-migration * Set blob gas header fields for transition block These are now required to be set since cancun was activated. * Use InitialBaseFee for pre-gingerbread transitionb * Fix warnings about capitalized error strings * Output chain config as marshalled JSON * state-migration: Handle accounts with existing balance Fixes #158 * remove allocs file, add instructions for how to generate allocs file to README, update TODOs --------- Co-authored-by: Mariano Cortesi <[email protected]> Co-authored-by: Alec Schaefer <[email protected]> Co-authored-by: Mariano Cortesi <[email protected]> Co-authored-by: Javier Cortejoso <[email protected]> Co-authored-by: Paul Lange <[email protected]> Co-authored-by: Valentin Rodygin <[email protected]> Co-authored-by: Piers Powlesland <[email protected]> Set balance of `CeloDistributionSchedule` contract (#162) * state-migration: Initialize CeloDistributionSchedule Fixes #155 * state-migration: Don't fail when distribution schedule update errors * Review comments state-migration: Set ParentBeaconRoot (#176) This allows header validation to pass during snap sync state-migration: Set address of distribution schedule (#177) state-migration: Read total supply directly from state (#182) * state-migration: Read totalSupply directly from storage * Added trigger for updated dependencies * Removen token bindings --------- Co-authored-by: Javier Cortejoso <[email protected]> Fix l2 block older than l1 origin error (#184) (#187) * Revert to using time.Now() for migration block Instead of simply adding 5 to the parent block time. We really do need a deterministic time for the migration block so that all parties that run the migration arrive at the same migration block but the problem is that op-geth requires that the L2 migration block (aka l2 origin) occurs after the l1 origin (I guess the point where you deploy the bridge contracts to the l1). When we migrate a partially synced datadir the block before the transition block will be very old, up to 4 years old! So of course it occurs before the l1 origin. So a fix just to get things working is to use time.Now(), but probably we should make this a configurable parameter. * add flag to specify timestamp * Update op-chain-ops/cmd/celo-migrate/main.go --------- Co-authored-by: piersy <[email protected]> Migration script fixes (#179) * Fixed migration for datadirs without ancients The script was assuming that ancients would have been migrated and was considering the numAncients-1 to be the next block to migrate but when numAncients is zero that's a problem. Also remved logic for picking up where db migration left of for the level db since it was complicating the logic and that process takes a few seconds, which is nothing compared with the minutes taken to migrate the ancients. * Ensure that we set gas limit if migrating at pre-gingerbread point Fix migration script gap in migrated blocks (#189) * Fix migration script gap in migrated blocks The range of ancient blocks to remove from the non ancients database was off by one and resulted in a gap between ancients and non ancients. Also corrected some log statements that were off by one. Add pre-migration command to migration script (#192) * add pre-migration command, rsync and ancients run in parallel, remove onlyAncients flag * remove block and state migration sub-commands * make non ancient migration its own step, add flag to measure time * add more granular timers * open db without freezer in state migration, remove clearAll * fix error * remove update flag from rsync command, add rsync comments * delete commented out versions of checkForPrevFullMigration * remove aliases * remove clearNonAncients flag * remove measureTime flag, always log time measurements * remove logging from help text * remove db reset * move scan for extra ancients into pre-migration * update README * rename extraAncientNumHashes to strayAncientBlocks state-migration: Fail if account would be overwritten (#202) * state-migration: Fail if account would be overwritten * Review changes * Review changes 2 * Fail in unclear state * more changes * Use whitelist to decide if nonce and state are overwritten Cosmetic changes to the migration script - Use more lists for added readability - Capitalize Alfajores and Celo - Reorder scripting instructions to fit the actual order or operations - Use GitHub callouts migration: Add tests (#217) * migration: Add tests for state migration * migration: Fix issues shown by tests * migration: pass allowlist into state migration Allows for easier testing * migration: Add test with allowlist * Correct overwrite counter * Use in memory DB migration: Add working allowlist for Alfajores (#220) * migration: Simplify tests * migration: Add working allowlist for Alfajores Adapt migration code to changes in StateDB StateDB.CreateAccount used to copy existing balance, now it does not any more. migration: Set fields correctly for migration block (#212) migration: Enable Granite (#226) Write genesis file in state migration (#219) * squash of #167 * add writeGenesis * open old freezer in readonly mode, fix locking error * remove devAlloc * Revert "open old freezer in readonly mode, fix locking error" This reverts commit e3fddea. * fix locking error * fix lint error, check errors, add comment * remove comment * filter extra genesis fields * fix issue with genesis extra data * update testdata --------- Co-authored-by: Javier Cortejoso <[email protected]> migration: Overwrite create2deployer code (#233) migration: Allow 'createx' preinstall (#238) The code already exists on Alfajores and matches the one that would be deployed, therefore we just allow this address. add migration-block-number flag (#245) * add migration-block-number flag * address feedback * move migration-block-number flag out of state migration options Fixes for re-running migration script on same destination db (#246) * add reset flag * add --checksum to rsync options
Configuration menu - View commit details
-
Copy full SHA for a9048b2 - Browse repository at this point
Copy the full SHA a9048b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0bb8a6 - Browse repository at this point
Copy the full SHA a0bb8a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04ccf7e - Browse repository at this point
Copy the full SHA 04ccf7eView commit details -
Improving the docker tagging logic. [Context](https://github.com/orgs/community/discussions/25191) (thanks @alvarof2 for the link)
Configuration menu - View commit details
-
Copy full SHA for d85660f - Browse repository at this point
Copy the full SHA d85660fView commit details -
Use name AbstractFeeCurrency to avoid confusion
...with the FeeCurrency in celo/testing/FeeCurrency.sol . It also is a good idea to clearly name abstract contracts, so that nobody tries to use them as a non-abstract contract (e.g. tries a deployment).
Configuration menu - View commit details
-
Copy full SHA for 6110665 - Browse repository at this point
Copy the full SHA 6110665View commit details -
* ci: Add shellcheck job * Update op-e2e/celo/run_all_tests.sh Co-authored-by: Karl Bartel <[email protected]> --------- Co-authored-by: Karl Bartel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7be9bdc - Browse repository at this point
Copy the full SHA 7be9bdcView commit details -
Configuration menu - View commit details
-
Copy full SHA for e71f699 - Browse repository at this point
Copy the full SHA e71f699View commit details -
Configuration menu - View commit details
-
Copy full SHA for db38bb7 - Browse repository at this point
Copy the full SHA db38bb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e16eac - Browse repository at this point
Copy the full SHA 9e16eacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a40b42 - Browse repository at this point
Copy the full SHA 1a40b42View commit details -
Configuration menu - View commit details
-
Copy full SHA for c16e226 - Browse repository at this point
Copy the full SHA c16e226View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1f0e30 - Browse repository at this point
Copy the full SHA f1f0e30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cf8726 - Browse repository at this point
Copy the full SHA 9cf8726View commit details -
Configuration menu - View commit details
-
Copy full SHA for a96b76d - Browse repository at this point
Copy the full SHA a96b76dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf92a8a - Browse repository at this point
Copy the full SHA bf92a8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b5972e - Browse repository at this point
Copy the full SHA 2b5972eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9967f68 - Browse repository at this point
Copy the full SHA 9967f68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53af002 - Browse repository at this point
Copy the full SHA 53af002View commit details -
Configuration menu - View commit details
-
Copy full SHA for 310a67b - Browse repository at this point
Copy the full SHA 310a67bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f74c24 - Browse repository at this point
Copy the full SHA 2f74c24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0954bcc - Browse repository at this point
Copy the full SHA 0954bccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 49178b4 - Browse repository at this point
Copy the full SHA 49178b4View commit details -
migration: Fix baseFee calculation (#240)
Change base fee calculation for transition block Previously we used the parent base fee, now we use the eip1559 calculation to calculate the base fee for the transition block. Also updated the referenced op-geth that includes an updated CalcBaseFee function. The approach was changed to remove reliance on IsCel2 inside CalcBaseFee which helps to avoid unexpected consequences when working with tests that do or don't set the cel2 fork Co-authored-by: Piers Powlesland <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for adb4c6d - Browse repository at this point
Copy the full SHA adb4c6dView commit details -
migration: Make migration-block-time a required flag (#242)
Make migration-block-time a required flag --------- Co-authored-by: alecps <[email protected]> Co-authored-by: piersy <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5bb648a - Browse repository at this point
Copy the full SHA 5bb648aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e6b3c1 - Browse repository at this point
Copy the full SHA 5e6b3c1View commit details -
EigenDA current limit for Holesky (their documentation is currently outdated but the limit seems to be set to 16 MB based on the updated tests from [this PR](Layr-Labs/eigenda-proxy#100)).
Configuration menu - View commit details
-
Copy full SHA for e6522c6 - Browse repository at this point
Copy the full SHA e6522c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6206728 - Browse repository at this point
Copy the full SHA 6206728View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10fbe78 - Browse repository at this point
Copy the full SHA 10fbe78View commit details -
contracts: Update allowed interface list with Celo interfaces
Those have warnings with `check-interfaces.sh`. Ignore those warnings for now.
Configuration menu - View commit details
-
Copy full SHA for 6bf4868 - Browse repository at this point
Copy the full SHA 6bf4868View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57b4b18 - Browse repository at this point
Copy the full SHA 57b4b18View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd79580 - Browse repository at this point
Copy the full SHA bd79580View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad2fbdb - Browse repository at this point
Copy the full SHA ad2fbdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24f392a - Browse repository at this point
Copy the full SHA 24f392aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2971ca - Browse repository at this point
Copy the full SHA a2971caView commit details -
op-chain-ops: Use noop for unimplemented writeJson
This cheatcode is used to store the Celo L2 predeploy addresses in a JSON file when run with forge. Inside TestEndToEndApply/initial_chain , the same code is called but we don't care for the generated JSON file. So just returning `nil` makes the test work without any disadvantages.
Configuration menu - View commit details
-
Copy full SHA for 0ad4c78 - Browse repository at this point
Copy the full SHA 0ad4c78View commit details -
contracts: versioning for Celo modified contracts
Changes in implementation require changes in version. This is ensured by `./scripts/checks/check-semver-diff.sh`.
Configuration menu - View commit details
-
Copy full SHA for 300dc97 - Browse repository at this point
Copy the full SHA 300dc97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25a39f6 - Browse repository at this point
Copy the full SHA 25a39f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a83c16 - Browse repository at this point
Copy the full SHA 8a83c16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17d0504 - Browse repository at this point
Copy the full SHA 17d0504View commit details -
OptimismPortal2 set initial
_balance
through StorageSetter pattern (#……254) * OptimismPortal2 set initial `_balance` through StorageSetter pattern Fixes #239 The custom gas-token feature adaptation for the fault-proof system using the `OptimismPortal2` contract has been merged recently upstream. We are using the custom-gas-token feature and additionally require a modification of the OptimismPortal's `_balance` value to be set to the entire allocation of Celo on the L2 - meaning that all L1 token is initially locked in the bridge and only usable on the L2. Those changes are now adapted also to the `OptimismPortal2`, which was a requirement to make our custom-gas-token pre-locked balance feature work in conjunction with fault-proofs. * Adapt withdraw e2e-tests to work with fault-proofs * Use prettier for formatting e2e tests * Fix typo Co-authored-by: Valentin Rodygin <[email protected]> * Set L1-fee scalars to zero in devnet --------- Co-authored-by: Valentin Rodygin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a8e1c45 - Browse repository at this point
Copy the full SHA a8e1c45View commit details