-
Couldn't load subscription status.
- Fork 146
Open
Labels
Milestone
Description
Two SDK teams (@ainhoa-a and @dtynn) have independently come up with the idea of creating a machine-readable JSON (or like) descriptor of FVM syscalls out of the FFI definitions (source of truth).
Assuming JSON, this would likely be some form of a top-level array, containing one entry per syscall. Every entry would contain:
- name of the module
- name of the function
- whether it's privileged or not (see Privilege system for syscalls #468)
- input parameters (array)
- return value, if any (we don't support multi-value returns)
- error numbers
An open question is whether to include documentation or not.