fix(examples): euler-multichain — anchor base/arbitrum demo windows at first vault creation#172
Open
abernatskiy wants to merge 1 commit into
Open
fix(examples): euler-multichain — anchor base/arbitrum demo windows at first vault creation#172abernatskiy wants to merge 1 commit into
abernatskiy wants to merge 1 commit into
Conversation
…t first vault creation The base and arbitrum EVaultFactory contracts are deployed far earlier than their first vault, so the demo's ~DEMO_SPAN window (anchored at the factory-deploy block: base 18_000_000, arbitrum 255_000_000) landed in an empty pre-vault range — both chains indexed 0 blocks / 0 vaults, and any run through scripts/examples-e2e.mjs failed its per-chain `inserted.blocks>0` gate (only mainnet had data). Arbitrum was doubly off: its factory emits non-ProxyCreated events well before the first vault, so even its first factory activity wasn't a child creation. Anchor each chain's demo window at its FIRST EVault `ProxyCreated`, verified against the Portal dataset (base 36_016_090, arbitrum 317_852_641); FULL still backfills from the factory-deploy block. All three chains now discover vaults in the default demo (mainnet 39, base 3, arbitrum 5) and clear the per-chain gate. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011h8zdhxsC8A2bcFqZRcjeB
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
euler-multichainexample's base and arbitrum demo windows were anchored at the factory-deploy block (base18_000_000, arbitrum255_000_000), which is far earlier than the first vault. The ~DEMO_SPANwindow landed in an empty pre-vault range, so both chains indexed 0 blocks / 0 vaults — and any run throughscripts/examples-e2e.mjsfailed its per-chaininserted.blocks > 0gate (only mainnet had data).ProxyCreatedevents well before the first vault, so even its first factory activity (block 300,690,953) wasn't a child creation.ProxyCreated, verified against the Portal dataset (base36_016_090, arbitrum317_852_641).PONDER_FULL=1still backfills from the factory-deploy block. Mirrors the existing DEMO/FULL-start split already used for mainnet.Test plan
biome checkclean on the changed config.@subsquid/ponder@0.16.9-sqd.1, dedicated Portal,PONDER_DEMO_SPAN=200000): all three chains now discover vaults and clear the per-chaininserted.blocks > 0gate —🤖 Generated with Claude Code