Skip to content

feat: upgrade @railgun-community/wallet to 10.9.0, handle new EIP-7702 transaction type - #98

Open
munikes wants to merge 1 commit into
Railgun-Community:mainfrom
munikes:feat/sdk-10.9.0-eip7702-clean
Open

feat: upgrade @railgun-community/wallet to 10.9.0, handle new EIP-7702 transaction type#98
munikes wants to merge 1 commit into
Railgun-Community:mainfrom
munikes:feat/sdk-10.9.0-eip7702-clean

Conversation

@munikes

@munikes munikes commented Aug 26, 2026

Copy link
Copy Markdown

Upgrades @railgun-community/wallet from 10.8.1 to 10.9.0 and @railgun-community/shared-models from 8.0.0 to 8.0.1.

The newer SDK adds EIP-7702 support, which introduces two breaking type changes: BroadcasterRawParamsTransact became a discriminated union (COMMON | TX7702) keyed on transactType, and EVMGasType gained Type4. Together these produce 7 compile errors across 4 files.

This PR does not implement EIP-7702 relaying — it makes the broadcaster reject those requests explicitly rather than assuming the old COMMON-only shape:

  • transact-method.ts: type guard rejecting non-COMMON requests before destructuring, following the file's existing rejection pattern (dbg + incrementReliability(BAD_DATA) + return).
  • gas-estimate.ts / process-transaction.ts: explicit throw for Type4, alongside the existing Type2 guards. TransactionGasDetailsType4 uses maxFeePerGas/maxPriorityFeePerGas rather than gasPrice, so it could never satisfy those code paths anyway.
  • gas-by-speed-block-native.ts / gas-by-speed.ts: added the missing EVMGasType.Type4 switch case (this was the actual cause of the 'not all code paths return a value' errors).

Verified with the full build pipeline (tsc + tsc-alias) and running in production on Ethereum mainnet: a real relayed transaction completed end-to-end after the upgrade, with reliability incrementing normally.

@socket-security

Copy link
Copy Markdown

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​railgun-community/​shared-models@​8.0.0 ⏵ 8.0.180 +410077 +387100
Updated@​railgun-community/​wallet@​10.8.1 ⏵ 10.9.078 +110084 +193100

View full report

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