Skip to content

refactor: deduplicate checksum logic, rename GUNZILLA→ALTERNATE, update seaport-js#1855

Merged
ryanio merged 4 commits intomainfrom
refactor/dedupe-checksum-logic
Jan 13, 2026
Merged

refactor: deduplicate checksum logic, rename GUNZILLA→ALTERNATE, update seaport-js#1855
ryanio merged 4 commits intomainfrom
refactor/dedupe-checksum-logic

Conversation

@ryanio
Copy link
Collaborator

@ryanio ryanio commented Jan 13, 2026

Summary

  • Pre-compute checksummed protocol addresses in a Set for O(1) lookups
  • Reuse requireValidProtocol in getSeaportInstance and getSeaportVersion
  • Remove ~60 lines of duplicated checksum normalization code
  • Update @opensea/seaport-js from 4.0.5 to 4.0.6
  • Rename GUNZILLA constants to ALTERNATE (used by multiple chains):
    • GUNZILLA_SEAPORT_1_6_ADDRESSALTERNATE_SEAPORT_V1_6_ADDRESS
    • GUNZILLA_CONDUIT_ADDRESSALTERNATE_CONDUIT_ADDRESS
    • GUNZILLA_CONDUIT_KEYALTERNATE_CONDUIT_KEY
    • GUNZILLA_FEE_RECIPIENTALTERNATE_FEE_RECIPIENT
    • GUNZILLA_SIGNED_ZONE_V2_ADDRESSALTERNATE_SIGNED_ZONE_V2_ADDRESS

Test plan

  • Lint passes
  • Tests pass

🤖 Generated with Claude Code

ryanio and others added 2 commits January 13, 2026 13:04
- Pre-compute checksummed addresses in a Set for O(1) lookups
- Reuse requireValidProtocol in getSeaportInstance and getSeaportVersion
- Remove ~60 lines of duplicated checksum code

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@socket-security
Copy link

socket-security bot commented Jan 13, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​opensea/​seaport-js@​4.0.5 ⏵ 4.0.69110010092 +670

View full report

@ryanio ryanio changed the title refactor: deduplicate protocol address checksum logic refactor: deduplicate checksum logic and update seaport-js to 4.0.6 Jan 13, 2026
Rename chain-specific protocol constants to be more generic since
they're used by multiple chains (Gunzilla, Somnia, etc.):
- GUNZILLA_SEAPORT_1_6_ADDRESS → ALTERNATE_SEAPORT_V1_6_ADDRESS
- GUNZILLA_CONDUIT_ADDRESS → ALTERNATE_CONDUIT_ADDRESS
- GUNZILLA_CONDUIT_KEY → ALTERNATE_CONDUIT_KEY
- GUNZILLA_FEE_RECIPIENT → ALTERNATE_FEE_RECIPIENT
- GUNZILLA_SIGNED_ZONE_V2_ADDRESS → ALTERNATE_SIGNED_ZONE_V2_ADDRESS

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@ryanio ryanio changed the title refactor: deduplicate checksum logic and update seaport-js to 4.0.6 refactor: deduplicate checksum logic, rename GUNZILLA→ALTERNATE, update seaport-js Jan 13, 2026
@ryanio ryanio merged commit 3bd1d90 into main Jan 13, 2026
7 of 8 checks passed
@ryanio ryanio deleted the refactor/dedupe-checksum-logic branch January 13, 2026 21:13
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