Skip to content

Rename layout to customEncoding; indent JSON examples - #4

Merged
forshtat merged 1 commit into
forshtat:ideas-erc7730-non-abi-dispatchfrom
kuzdogan:rename-layout-to-custom-encoding
Aug 4, 2026
Merged

Rename layout to customEncoding; indent JSON examples#4
forshtat merged 1 commit into
forshtat:ideas-erc7730-non-abi-dispatchfrom
kuzdogan:rename-layout-to-custom-encoding

Conversation

@kuzdogan

@kuzdogan kuzdogan commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Two mechanical changes, no semantic ones.

  1. Changed layout to customEncoding — in the ERC, in the companion JSON Schema, and in the example descriptors under assets/erc-0000/.

There is a lot of generic naming in the spec "path" "layout" etc. and I appreciate more descriptive naming.

  1. Indented the JSON examples more explicitly, for easier reading. Anything that nests is expanded one level per line; flat entries such as { "path": "to", "label": "To" } stay on a single line.

🤖 Generated with Claude Code

Two mechanical changes, no semantic ones.

1. Rename the `layout` key to `customEncoding` everywhere it refers to the
   mechanism: the Specification heading and prose, all JSON examples in the
   ERC, the companion JSON Schema (including the `$layout` definition group
   and every `#/$layout/...` reference), and the example descriptors under
   assets/erc-0000/.

   Two occurrences are deliberately left alone: the `title:` frontmatter, and
   "an ABI-encoded `array` data layout" under `sequence`, which uses "layout"
   as an ordinary English word rather than as the key name.

2. Reformat every JSON block in the ERC, replacing the mix of single-line and
   multi-line styles with one consistent rule: any object or array that
   contains another object or array is expanded one level per line, while a
   flat one holding only scalars stays on a single line if it fits in 100
   columns. So nesting is always visible, but short leaf entries such as
   { "path": "to", "label": "To" } are not spread over four lines.

Verified: all 47 `$ref`s in the schema still resolve, all 12 example
descriptors validate against the renamed schema (the pre-rename `layout` key
is rejected by it, so the check is not vacuous), and every JSON block in the
ERC round-trips through a parser unchanged apart from whitespace.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

The commit 7ec37e1 (as a parent of a66de8d) contains errors.
Please inspect the Run Summary for details.

@github-actions github-actions Bot added the w-ci label Aug 4, 2026
@forshtat
forshtat merged commit 9eb2316 into forshtat:ideas-erc7730-non-abi-dispatch Aug 4, 2026
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants