Skip to content

test: add SignedFill EIP-712 conformity vectors#6

Merged
prestwich merged 1 commit intomainfrom
fill-vectors-test
Feb 3, 2026
Merged

test: add SignedFill EIP-712 conformity vectors#6
prestwich merged 1 commit intomainfrom
fill-vectors-test

Conversation

@prestwich
Copy link
Member

Summary

  • Add fill-specific test vectors to verify TypeScript SDK correctly computes EIP-712 signing hashes for fill scenarios
  • Vectors are generated from Rust SDK to ensure cross-implementation conformity

Test cases:

  • minimal_fill: all zeros base case
  • mainnet_eth_fill: filler providing WETH on mainnet
  • multi_token_fill: filler providing multiple tokens
  • cross_chain_fill: outputs to mainnet and rollup
  • large_amount_fill: amounts exceeding JS safe integer
  • signet_rollup_fill: fill on Signet rollup (chain 519)

Test plan

  • pnpm test:run tests/fill-vectors.test.ts passes (29 tests)
  • All existing tests continue to pass

🤖 Generated with Claude Code

Add fill-specific test vectors to verify TypeScript SDK correctly
computes EIP-712 signing hashes for fill scenarios. Vectors are
generated from Rust SDK to ensure cross-implementation conformity.

Test cases:
- minimal_fill: all zeros base case
- mainnet_eth_fill: filler providing WETH on mainnet
- multi_token_fill: filler providing multiple tokens
- cross_chain_fill: outputs to mainnet and rollup
- large_amount_fill: amounts exceeding JS safe integer
- signet_rollup_fill: fill on Signet rollup (chain 519)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@prestwich prestwich merged commit 575f00f into main Feb 3, 2026
5 checks passed
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.

1 participant