Documentation
¶
Overview ¶
Command ledgerfieldsgen emits one typed-decoder Go file per ledger entry type listed in ledger/entry/schema.Specs. For each spec entry it looks up every field's XRPL type and ordinal in codec/binarycodec/definitions and writes a struct + Decode + emit methods that match the runtime contract in ledger/entry.Entry.
Invocation: from the repo root,
go run ./ledger/entry/cmd/entrygen
The package itself carries a //go:generate directive so `go generate ./...` picks it up.
Click to show internal directories.
Click to hide internal directories.