Repository navigation
docs: document originOf, resolveAddress and the alias RPCs - #459
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
A first comment on the main page, I'm still reviewing the other pages
|
LGTM modulo the open threads above |
|
@pecornilleau do you want me to take over this PR by handling the open threads myself and merging it? |
yes that would be very helpful, thank you |
Add an Address translation section to both NAC usage pages describing the originOf and resolveAddress gateway functions (Solidity interface and Michelson view types, classification and resolution codes, when origins are recorded, failure behavior). Document the tez_getTezosEthereumAddress / tez_getEthereumTezosAddress JSON-RPC methods on the Michelson RPC reference and cross-link everything from Accounts and Aliases. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
5375ec0 to
494bed1
Compare
There was a problem hiding this comment.
Solved the pending thread, LGTM
@pecornilleau can you please remove the Draft mode so that we can merge it? |
Summary
The cross-runtime address-translation primitives were undocumented. This PR adds:
originOf/resolveAddress, the classification codes (Unknown / Native / Alias) and resolution codes (Recorded / Derived), when the kernel records an account's origin, short examples, and a failure-behavior entry.VIEW "resolveAddress"snippet in the style of the existingstaticcall_evmone.tez_getTezosEthereumAddress/tez_getEthereumTezosAddress, noting they are served on the main JSON-RPC endpoint rather than under/tezlink.All statements were checked against the kernel and node code (
runtime_gateway.rs,enshrined_contracts.rs, the two runtimeread_originimplementations,rpc_encodings.ml/services.ml). No gas figures were added, since the pages list none for the other gateway functions.Test plan
npm run buildpasses (only pre-existing theme warnings)npm run mochapasses🤖 Generated with Claude Code