Skip to content

Conversation

@AugustoL
Copy link
Collaborator

@AugustoL AugustoL commented Jan 1, 2026

Description

Add e2e tests for base, arbitrum, optmism, bnb smart chain and polygon

Related Issue

closes #100

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • Performance improvement
  • Other (please describe):

Checklist

  • I have run npm run format:fix and npm run lint:fix
  • I have run npm run typecheck with no errors
  • I have run tests with npm run test:run
  • I have tested my changes locally
  • I have updated documentation if needed
  • My code follows the project's architecture patterns

Improve e2e test reliability by increasing retries and adding
incremental timeout on each retry (+20s per attempt).

- Add custom test fixture with timeout that increases on retries
- Increase retries to 3 in CI, 1 locally
- Update all spec files to use the custom fixture
Add comprehensive e2e test suite for Base network (chain ID 8453):

Blocks:
- Genesis block, early blocks, pre/post-upgrade blocks
- Real data from blocks 0, 1M, 10M, 25M
- Gas details, size, fee recipient verification

Transactions:
- Aerodrome DEX swap (swapExactTokensForTokens)
- USDC transfer (transferWithAuthorization)
- Input data and attributes verification

Addresses:
- ERC20 tokens: USDC, USDbC, WETH, AERO
- Aerodrome Router DEX contract
- OP Stack predeploys: SequencerFeeVault, L1Block,
  GasPriceOracle, L2StandardBridge, L2CrossDomainMessenger

Includes upgrade timestamps for Canyon, Delta, Ecotone,
Fjord, Granite, Holocene, and Isthmus.
Add comprehensive e2e tests for Arbitrum One (chain ID 42161) covering
blocks, transactions, and addresses across network history including
Nitro upgrade and ArbOS versions.
@AugustoL AugustoL self-assigned this Jan 1, 2026
@AugustoL AugustoL added the enhancement New feature or request label Jan 1, 2026
@github-actions
Copy link

github-actions bot commented Jan 1, 2026

🚀 Preview: https://pr-106--openscan.netlify.app
📝 Commit: 8070c9360488d9c75afce15c1baf7b29cfbe5910

Add comprehensive e2e tests for Optimism (chain ID 10) covering blocks,
transactions, and addresses across network history including Bedrock,
Ecotone, and Holocene upgrades. Tests include system transactions
(Type 126) and detailed value assertions for gas, nonce, and hashes.

Also fix strict mode violations in error handling locators across all
test files by adding .first() to prevent multiple element matches.
Add comprehensive e2e tests for BNB Smart Chain (BSC) network covering:

Blocks (43 tests total):
- Genesis block #0 with hash verification
- Block openscan-explorer#10,000,000 (pre-Euler) with hash/parentHash
- Block openscan-explorer#20,000,000 (post-Euler) with 321 transactions
- Block openscan-explorer#30,000,000 (post-Luban, fast finality)
- Block openscan-explorer#40,000,000 (post-Feynman, BNB Chain Fusion)
- Block openscan-explorer#50,000,000 (post-Maxwell, 0.75s block time)
- More details section tests for all blocks

Transactions:
- Real transaction from block 20M with nonce/position verification
- DEX swap transaction from block 40M
- DEX aggregator transaction from block 50M
- Legacy Type 0 transaction verification

Addresses:
- BEP20 tokens (WBNB, USDT, BUSD, USDC, CAKE, DAI)
- DEX contracts (PancakeSwap Router v2, Factory v2, Universal Router)
- System contracts (ValidatorSet, SystemReward, TokenHub, StakeHub, Governor)
- Staking contracts (PancakeSwap Main Staking, Cake Pool)

Fixture data includes real on-chain block hashes, parent hashes,
and transaction data fetched from BSC mainnet RPC.
Add comprehensive e2e tests for Polygon PoS network covering:

Blocks (46 tests total):
- Genesis block #0 with hash verification
- Block openscan-explorer#10,000,000 (early Polygon activity)
- Block openscan-explorer#20,000,000 (growing DeFi activity)
- Block openscan-explorer#30,000,000 (mature network)
- Block openscan-explorer#38,189,056 (Delhi hard fork)
- Block openscan-explorer#50,000,000 (high activity)
- Block openscan-explorer#62,278,656 (Ahmedabad hard fork - MATIC to POL)
- Block openscan-explorer#65,000,000 (post-Ahmedabad POL era)
- More details section tests for all blocks

Transactions:
- Legacy Type 0 NFT transfer from block 30M
- EIP-1559 DeFi swap from block 50M
- EIP-1559 contract interaction from block 65M
- Nonce and position verification

Addresses:
- ERC20 tokens (WPOL, USDC.e, USDC, USDT, WETH, DAI, AAVE, LINK)
- DEX contracts (QuickSwap Router, Uniswap V3, SushiSwap)
- NFT & Lending (OpenSea Storefront, Aave V3 Pool)
- System contracts (POL Token, StateReceiver)

Fixture includes real on-chain data with upgrade history:
- Mainnet launch (May 2020)
- EIP-1559 activation (March 2022)
- Delhi hard fork (January 2023)
- Napoli hard fork (March 2024)
- Ahmedabad hard fork (September 2024)
- Heimdall v2 (July 2025)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve e2e tests

1 participant