Skip to content

feat(erc8021): add serviceCodes field to Attribution schema 2#208

Merged
jxom merged 4 commits intowevm:mainfrom
dgca:danc/erc8021-service-codes
Apr 8, 2026
Merged

feat(erc8021): add serviceCodes field to Attribution schema 2#208
jxom merged 4 commits intowevm:mainfrom
dgca:danc/erc8021-service-codes

Conversation

@dgca
Copy link
Copy Markdown
Contributor

@dgca dgca commented Apr 2, 2026

Adds support for the serviceCodes field (s key) in ERC-8021 Attribution schema 2. This field was recently added to the spec to attribute service-layer participants like block builders, relayers, and solvers.

Changes:

  • AttributionSchemaId2 type now includes serviceCodes?: readonly string[]
  • Encoding/decoding handles the CBOR s key as string[]
  • getSchemaId detects serviceCodes as schema 2
  • Tests cover encoding, decoding, roundtrips, empty arrays, and the spec test vector

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

@dgca is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/ox@208

commit: 1a8bf17

@dgca dgca marked this pull request as ready for review April 2, 2026 20:27
@jxom jxom merged commit 30537f8 into wevm:main Apr 8, 2026
8 of 10 checks passed
@github-actions github-actions bot mentioned this pull request Apr 8, 2026
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.

2 participants