Skip to content

tests: evm tools compatibility #287

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

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

zsystm
Copy link
Contributor

@zsystm zsystm commented Jul 15, 2025

Description

Closes: #104

Test Coverage

Foundry

  • Uniswap v3 deployment
    • Note: Batch deployment isn’t supported yet, so we’re using the --slow flag for now. Full batch deployment will be possible once app-side mempool is implemented — tracked in Scope App-Side Mempool #214.
  • Cast-based tests
    • Network info queries (eth_chainId, net_version, etc.)
    • Read ERC-20 state (totalSupply, balanceOf, etc.)
    • Send ERC-20 transfer and validate balances
    • Over-balance transfer and revert check
  • Forge scripts and unit tests
    • ERC-20 & counter tests (*.t.sol)
    • Scripts for querying, deploying, reading, transferring, and reverting

Hardhat

  • Deploy ERC-20 and Uniswap via Hardhat script
  • Call contract functions and log state (e.g. totalSupply, balanceOf)
  • Send transactions and confirm state changes
  • Handle revert cases

SDK

  • viem
    • Client config, ERC-20 read/write, edge case testing
  • web3.js
    • Provider setup, read/write, revert check and logging
  • ethers.js

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • tackled an existing issue or discussed with a team member
  • left instructions on how to review the changes
  • targeted the main branch

Reviewers Checklist

All items are required.
Please add a note if the item is not applicable
and please add your handle next to the items reviewed
if you only reviewed selected items.

I have...

  • added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • confirmed all author checklist items have been addressed
  • confirmed that this PR does not change production code
  • reviewed content
  • tested instructions (if applicable)
  • confirmed all CI checks have passed

@zsystm zsystm force-pushed the tests/evm-tools-compatibility branch 2 times, most recently from 66aa894 to acd05af Compare July 15, 2025 07:16
@zsystm zsystm self-assigned this Jul 15, 2025
@zsystm zsystm force-pushed the tests/evm-tools-compatibility branch 4 times, most recently from aa4b7bc to abec6e8 Compare July 15, 2025 09:07
@zsystm zsystm force-pushed the tests/evm-tools-compatibility branch from 6e590a1 to eeb6cff Compare July 15, 2025 10:13
@zsystm zsystm force-pushed the tests/evm-tools-compatibility branch from df6969d to 2eb1207 Compare July 16, 2025 15:17
@zsystm zsystm force-pushed the tests/evm-tools-compatibility branch from f6641fa to 30d7d15 Compare July 17, 2025 00:05
@zsystm zsystm force-pushed the tests/evm-tools-compatibility branch from 0f795fa to 0d91caa Compare July 17, 2025 03:26
@zsystm zsystm force-pushed the tests/evm-tools-compatibility branch 5 times, most recently from d233aca to 8bca57f Compare July 17, 2025 08:39
@zsystm zsystm force-pushed the tests/evm-tools-compatibility branch from 8bca57f to 893d36a Compare July 17, 2025 08:45
@zsystm zsystm marked this pull request as ready for review July 17, 2025 09:27
@zsystm zsystm marked this pull request as draft July 17, 2025 09:35
@zsystm zsystm force-pushed the tests/evm-tools-compatibility branch from d917f8a to 9a2f4f0 Compare July 17, 2025 09:40
@zsystm zsystm marked this pull request as ready for review July 17, 2025 10:10
@zsystm zsystm requested a review from vladjdk July 18, 2025 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Compatibility Tests to Cosmos/EVM Repo
1 participant