Expand description
Modules§
Structs§
- Entrypoint
Signature - Normalized
Method Signature - Standard signature for a contract method.
Constants§
- UNNAMED_
INTERFACE - The interface name used when a free function has no explicit
interface = "..."override.
Functions§
- contract_
entrypoint_ id - Derive a standard entrypoint ID for a contract method. The interface name is a domain separator.
- entrypoint_
export_ name - entrypoint_
export_ name_ for - The export symbol name of the entrypoint for the given
(interface, version, method) triple:
contract_entrypoint_idrendered throughentrypoint_export_name. Use this instead of composing the two by hand so that every caller stays in sync if the ID preimage ever changes (for example, if a signature checksum is added to it). - entrypoint_
link_ name - Human-readable symbol name carrying the entrypoint-ID preimage, used as
the rv32 wrapper’s
export_nameso a duplicate entrypoint ID fails the build with an error naming the interface and method (rather than a bare 16-hex ID). Built from the same (interface, MAJOR version, method signature) triple ascontract_entrypoint_id, so link-name equality coincides exactly with entrypoint-ID equality. Symbol names never reach the lowered rv32 image (they live in non-allocatable ELF sections), so readability costs nothing in the deployed artifact. - event_
signature - Derive a standard event signature for a contract event type.
- exception_
selector - Derive a standard exception selector for a contract exception type.
- exception_
selector_ from_ major exception_selectorwith the major version already derived (the exact preimage component, e.g."1"or"0.9"— not a full semver string).- interface_
id - Derive the interface ID of an (interface name, version) pair: the identity of an interface at a major version, shared by every entrypoint the interface exports.