1. 02 Jan, 2025 2 commits
  2. 30 Dec, 2024 1 commit
  3. 24 Dec, 2024 5 commits
  4. 23 Dec, 2024 6 commits
    • Maurelian's avatar
      bcb6ef90
    • Tyler Smith's avatar
      feat,interop: add db syncing between nodes (#13357) · 590fc814
      Tyler Smith authored
      * feature: Allow adding arbitrary HTTP handlers to RPC HTTP Server.
      
      * feature: Add sync package to handle streaming db files between nodes.
      
      * tweak: Add DB sync server handler to op-supervisor server.
      
      * feature: Use db sync if it's configured and there's no existing db.
      
      * tweak: Use retry lib, which also adds max retries.
      
      * rename: SyncRPC -> SyncEndpoint.
      
      * tweak: Make the initial chain set part of the Server constructor.
      
      * cleanup: Remove unused functions.
      
      * rename: client -> syncClient to avoid package collision.
      
      * fix: Load DepSet and use for sync server.
      
      * tweak: Use client.BasicHTTPClient for sync client.
      
      * fix: Don't double concat the path.
      
      * tests,fix: Set sync resume to true.
      
      * tweak: Add error context.
      
      * tweak: Make http body close lint-friendly.
      
      * tweak: Change retry policy to backoff from 1s to 30s, up to 10 minutes.
      
      * tests,fix: Use require.ErrorIs to handle wrapped error.
      590fc814
    • Yann Hodique's avatar
      feat(kurtosis-devnet): extract information from op-deployer artifact (#13492) · 2a903ea4
      Yann Hodique authored
      This is in service of outputting useful information at the end of the
      deployment.
      
      Here we get back some useful wallets and addresses for downstream
      consumption.
      2a903ea4
    • Yann Hodique's avatar
      feat(kurtosis-devnet): use inspect as a data source (#13493) · 4c162a26
      Yann Hodique authored
      This enables us to retrieve information about artifacts and services,
      for downstream consumption.
      4c162a26
    • Huberto's avatar
      Fix typos (#13433) · f38d8291
      Huberto authored
      * Update README.md
      
      * Update README.md
      
      * op-supervisor: fix typo in README.md
      
      ---------
      Co-authored-by: default avatarprotolambda <proto@protolambda.com>
      f38d8291
    • Yann Hodique's avatar
      feat(kurtosis-devnet): add small cli tool to expand template (#13514) · a79e4ec2
      Yann Hodique authored
      This can be used in isolation to sanity check that a kurtosis-devnet
      template expands properly, without having to run the entire workflow
      (although it would fail early anyway).
      a79e4ec2
  5. 21 Dec, 2024 2 commits
  6. 20 Dec, 2024 8 commits
  7. 19 Dec, 2024 8 commits
    • George Knee's avatar
      op-chain-ops/ecotone-scalar: prefer `.FillBytes()` to `.Bytes()` and `copy` (#13472) · c377d513
      George Knee authored
      * prefer .FillBytes() to .Bytes() and copy
      
      The latter can result in an error if the number is less than 32 bytes in length (it gets padded incorrectly).
      
      * add tests
      
      * output to JSON
      
      * add test case for OPM
      
      * tidy up
      
      * use const in test
      c377d513
    • protolambda's avatar
      op-service: RPC subscribe interface fix and utils (#13476) · dad0bc4f
      protolambda authored
      * op-service: RPC subscribe interface fix and utils
      
      * op-service: fix subscribe args pass through
      dad0bc4f
    • Maurelian's avatar
      Introduce forked upgrade testing (#13323) · fa60a286
      Maurelian authored
      * feat: Basic upgrade test scaffolding
      
      * Add Superchain Registry
      
      * Fork from Registry
      
      * feat: allowCheatcodes on setPreinstalls in L2Genesis
      
      * feat: Refactory and clean up registry reads
      
      * feat: cleanup Upgrade.s.sol
      
      * fix: Move strings into function body
      
      Upgrade has no constructor
      
      * feat: Some cleanup
      
      * feat: write optimismPortal2
      
      * feat: Automatically run anvil on 8546
      
      * feat: Add upgrade testing to Ci
      
      * fix: use parameter to set UPGRADE_TEST env var
      
      * feat: more cleanup
      
      * fix: PR feedback
      
      * tweak ci
      
      * fix: justfile bug
      
      * fix: Upgrade syntax errors
      
      * add export MAINNET_RPC_URL to ci
      
      * debug address in use
      
      * feat: Allow cheatcodes for FFIInterface
      
      * feat: use EIP1967Helper
      
      * feat: improve comments in Setup.sol
      
      * feat: add support for interop and optimized test setups
      
      - Implemented the ability to use interop in test configurations.
      - Added checks to skip tests when certain conditions for forked tests are met.
      - Enhanced Setup with options for overriding L2 genesis and creating forks.
      - Included additional logging for L1 setup processes.
      - Enabled etching of deployed upgrade contracts for testing purposes.
      
      * feat: Use ETH_RPC_URL as env var name
      
      * test fixes for forking
      
      * feat: anvil-fork-stop does not error
      
      * feat: Do not mess with EVM env on a fork test
      
      * feat: Take anvil out of the loop
      
      * feat: Don't warp if forked
      
      * fix: isForkTest not forkBlock
      
      * lint
      
      * feat: enforce forking from sepolia or mainnet
      
      * fix(ctb): test fixes for a forked env
      
      * Revert "feat: Take anvil out of the loop"
      
      This reverts commit c70e8d7fd6f65319050b06df4eeb78461a682260.
      
      * feat: remove anvil-fork-stop
      
      also add helpful comments on just commands
      
      * fix: unsilence anvil
      
      * fix snapshot and semgrep
      
      * temp: slightly faster just-upgrade loop
      
      * feat: pin fork block
      
      * feat: change upgrade_test to test_upgrade in config.yml for consistency
      
      * feat: cache forked state
      
      * speculative: skip l2 work
      
      * feat: skip benchmark tests if isFork
      
      * feat: skip deploying L2 tokens when forking
      
      * feat: add skipIfForkTest
      
      * feat: limit upgrade testing to L1 contracts
      
      * feat: move skipping logic into Setup.sol
      
      * feat: Simplify ci config for upgrade tests
      
      * gas snapshot
      
      * delete ignored deploy artifact
      
      * remove unused added vm call
      
      * feat: remove modifications to skipped test paths
      
      * feat: improve block number handling
      
      * feat: Document adding a new contract
      
      * fix: ci config syntax error
      
      * better justfile comments
      
      * feat: skip some tests and log messages when you do
      
      * feat: skip SystemConfig tests with incompatible iface
      
      * feat: add returnIfForkTest and fix a bunch of tests
      
      * feat: more test fixes and tweaks
      
      * gas snapshot
      
      * feat: Add test-upgrade-rerun to justfile and ci config
      
      * feat: Make PINNED_BLOCK_NUMBER be not a magic number
      
      * fix: long standing bug unrelated to this work
      
      the L1 xDM test was exercising the L2 xDM. Fork testing caught this
      because it skips deploying L2 contracts.
      Deploying the L2 contracts to the same network as the L1 contracts was
      always a bit janky anyways.
      
      * feat: PDG: cleaner fork test handling
      
      * feat: remove unused import
      
      * fix incorrect vm.roll/warp skipping logic
      
      * fix: OptimismPortal2 tests
      
      * fix gas snapshot
      
      * fix: restore test_list to contracts-bedrock-tests job
      
      * feat(ci): Split up the test-upgrade CI job
      
      * fix(ci): remove erroneous param reference
      
      * feat: Improve caching of forked state
      
      * feat: use config syntax for inserting rpc url
      
      * debug: cache key
      
      * feat: Fix cache key checksum
      
      * Apply suggestions from code review
      Co-authored-by: default avatarMatt Solomon <matt@mattsolomon.dev>
      
      * clarify comment about setup.setup forking
      
      * feat: remove diff meant for upstack
      
      * fix lint
      
      * feat: make isForkTest private and add a getter
      
      * debugging with annotations
      
      * feat: fix test_findLatestGames_static_succeeds
      
      * fix: OptimismPortal2 test_initialize_succeeds
      
      Read guardian from chain rather than config
      
      * feat: fix returnIfForkTest
      
      Properly uses the return opcode to halt the test.
      
      * fix: Portal tests for forking
      
      * fix: DGF test for forking
      
      * fix: Skip CGT tests on L1StandardBridge
      
      * fix: Skip CGT tests on L1CrossDomainMessenger
      
      * fix DGF testFuzz_create_succeeds
      
      * fix: DGF testFuzz_create_sameUUID_reverts
      
      * feat: remove debugging annotations
      
      * fix: remove left over console
      
      * fix: PermissionedDisputeGame tests
      
      * fix: remove unused import
      
      * fix: test_donateETH_succeeds for fork testing
      
      * fix: isForkTest getter call
      
      * feat: Temporarily skip UnexpectedRootClaim failures on forked upgrade tests
      
      * Revert "feat: remove diff meant for upstack"
      
      This reverts commit cab685617fd9db6961debe503f81042575b848f7.
      
      * feat: clearer env var name for NO_MATCH_CONTRACTS
      
      * fix gas snapshot
      
      * fix test_constructor_succeeds tests after disableInit rebase
      
      * lint
      
      ---------
      Co-authored-by: default avatarMatt Solomon <matt@mattsolomon.dev>
      fa60a286
    • Michael Amadi's avatar
      Proxy disable initializers check (#13317) · ea5d8305
      Michael Amadi authored
      * add script that checks that proxied (non predeploy) contracts call `_disableInitializers` in their constructor
      
      * add check that all initialize functions of proxied contracts (not predeploys) have the external and initializer modifiers
      
      * add to ctb justfile but not in `just check` yet
      
      * fixes
      
      * use semgrep instead
      
      * ...
      
      * fixes
      
      * fixes
      
      * fixes
      
      * fixes
      
      * fixes
      
      * fix comment on semgrep test
      
      * fix semgrep test
      
      * rename rule
      
      * rename rule
      
      * add exception
      ea5d8305
    • taozui472's avatar
      fix typos (#13477) · 713dc46b
      taozui472 authored
      713dc46b
    • Inphi's avatar
      cannon: Fix parentheses in syscall noop handling (#13470) · d66f8532
      Inphi authored
      * cannon: Fix parentheses in syscall noop handling
      
      * cannon: Add cannon64 test case for the undefined syscall path
      d66f8532
    • mbaxter's avatar
      cannon: Use 32-bit futex values (#13453) · b6cf8ee2
      mbaxter authored
      * cannon: Update futex-related tests - use 32-bit futex values
      
      * cannon: Update go vm implementation - use 32-bit futex values
      
      * cannon: Update sol 64-bit vm implementation - use 32-bit futex values
      
      * cannon: Update sol 32-bit vm implementation - use 32-bit futex values
      
      * cannon: Update MIPS64 version
      
      * cannon: Update MIPS2 version
      
      * cannon: Run semver lock
      
      * cannon: Update semver comments to match actual version
      
      * cannon: Run semver-lock
      
      * cannon: Randomize futex value in register when testing
      
      * cannon: Tweak comment
      
      * cannon: Ignore the upper bytes in the futex value register
      
      * cannon: Make FutexVal thread field 32-bit
      
      * cannon: Run semver-lock
      
      * cannon: Fix some inconsistencies, run semver-lock
      
      * cannon: Rename testutil method
      b6cf8ee2
    • Michael Amadi's avatar
      use disableInitializers (#13183) · bf7e95ce
      Michael Amadi authored
      * use disableInitializers
      
      * use disableInitializers
      
      * use disableInitializers
      
      * use disableInitializers
      
      * fixes
      
      * assert the values of storage slot of proxies and implementation contracts
      
      * fix initialize's visibility
      
      * fixes
      
      * fixes
      
      * fixes
      
      * semver bump
      bf7e95ce
  8. 18 Dec, 2024 8 commits